/* kelebot — 云厂商风格公开站（参考腾讯云 / 阿里云信息架构与视觉密度） */
:root {
  --c-brand: #0052d9;
  --c-brand-hover: #0034b5;
  --c-brand-soft: #ecf2fe;
  --c-ali-accent: #ff6a00;
  --c-text: #1a1a1a;
  --c-text-2: #4b5563;
  --c-text-3: #8a9199;
  --c-border: #e7e7e7;
  --c-border-strong: #dcdcdc;
  --c-bg: #fff;
  --c-bg-soft: #f5f7fa;
  --c-bg-mute: #f0f2f5;
  --c-success: #00a870;
  --c-warning: #ed7b2f;
  --c-danger: #e34d59;
  --c-info: #029cd4;
  --shadow-1: 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow-2: 0 4px 16px rgba(0, 0, 0, 0.08);
  --radius: 3px;
  --header-h: 56px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
  font-size: 14px;
}

a {
  color: var(--c-brand);
  text-decoration: none;
}

a:hover {
  color: var(--c-brand-hover);
}

img {
  max-width: 100%;
}

/* —— Top nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  box-shadow: var(--shadow-1);
}

.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--c-text);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.logo:hover {
  color: var(--c-text);
}

.logo-mark {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--c-brand), #029cd4);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  border-radius: 4px;
  letter-spacing: -0.04em;
}

.logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
  display: block;
  flex-shrink: 0;
}

.logo-img-wrap {
  display: inline-flex;
  padding: 2px;
  background: #fff;
  border-radius: 5px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  height: 32px;
  width: 36px;
  border: 1px solid var(--c-border-strong);
  background: #fff;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 16px;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-main > a,
.nav-drop > summary {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  color: var(--c-text);
  font-size: 14px;
  border-radius: var(--radius);
  cursor: pointer;
  list-style: none;
}

.nav-main > a:hover,
.nav-drop > summary:hover {
  background: var(--c-bg-soft);
  color: var(--c-brand);
}

.nav-drop {
  position: relative;
}

.nav-drop > summary::-webkit-details-marker {
  display: none;
}

.nav-drop[open] > summary {
  color: var(--c-brand);
  background: var(--c-brand-soft);
}

.nav-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 360px;
  background: #fff;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-2);
  padding: 12px;
  display: grid;
  gap: 4px;
}

.nav-panel a {
  display: block;
  padding: 10px 12px;
  color: var(--c-text);
  border-radius: var(--radius);
}

.nav-panel a:hover {
  background: var(--c-bg-soft);
  color: var(--c-brand);
}

.nav-panel strong {
  display: block;
  font-size: 14px;
}

.nav-panel span {
  display: block;
  font-size: 12px;
  color: var(--c-text-3);
  margin-top: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-actions .link {
  color: var(--c-text-2);
  padding: 0 8px;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: 0.15s background, 0.15s border-color, 0.15s color;
}

.btn-sm {
  height: 28px;
  padding: 0 12px;
  font-size: 13px;
}

.btn-lg {
  height: 40px;
  padding: 0 24px;
  font-size: 15px;
}

.btn-primary {
  background: var(--c-brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--c-brand-hover);
  color: #fff;
}

.btn-orange {
  background: var(--c-ali-accent);
  color: #fff;
}

.btn-orange:hover {
  filter: brightness(0.95);
  color: #fff;
}

.btn-default {
  background: #fff;
  border-color: var(--c-border-strong);
  color: var(--c-text);
}

.btn-default:hover {
  border-color: var(--c-brand);
  color: var(--c-brand);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-text {
  background: transparent;
  color: var(--c-brand);
  padding: 0 8px;
}

/* —— Layout —— */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.page {
  background: var(--c-bg-soft);
  min-height: calc(100vh - var(--header-h) - 200px);
}

.page-white {
  background: #fff;
}

/* Hero — cloud style */
.hero-cloud {
  background: linear-gradient(120deg, #0b1f4a 0%, #0052d9 48%, #029cd4 100%);
  color: #fff;
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero-cloud::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 55%;
  height: 140%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 60%);
  pointer-events: none;
}

.hero-cloud .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 12px;
}

.hero-cloud h1 {
  margin: 0 0 12px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
}

.hero-cloud .sub {
  margin: 0 0 28px;
  font-size: 16px;
  opacity: 0.88;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 20px;
  border-radius: 4px;
}

.hero-panel h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.9;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-row div {
  text-align: center;
  padding: 12px 8px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

.stat-row b {
  display: block;
  font-size: 22px;
  font-weight: 700;
}

.stat-row span {
  font-size: 12px;
  opacity: 0.8;
}

/* Sections */
.sec {
  padding: 56px 0;
}

.sec-head {
  margin-bottom: 28px;
}

.sec-head h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
}

.sec-head p {
  margin: 0;
  color: var(--c-text-2);
  font-size: 14px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Product / feature tiles — interactive containers */
.tile {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.tile:hover {
  border-color: #b5c7ff;
  box-shadow: var(--shadow-2);
}

.tile .icon {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: var(--c-brand-soft);
  color: var(--c-brand);
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 13px;
}

.tile h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.tile p {
  margin: 0 0 12px;
  color: var(--c-text-2);
  font-size: 13px;
  min-height: 40px;
}

.tile .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--c-text-3);
  border-top: 1px solid var(--c-border);
  padding-top: 12px;
}

.tile .meta .price {
  color: var(--c-ali-accent);
  font-weight: 700;
  font-size: 16px;
}

/* Page banner */
.page-banner {
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  padding: 28px 0;
}

.page-banner h1 {
  margin: 0 0 6px;
  font-size: 26px;
}

.page-banner p {
  margin: 0;
  color: var(--c-text-2);
}

.crumb {
  font-size: 12px;
  color: var(--c-text-3);
  margin-bottom: 10px;
}

.crumb a {
  color: var(--c-text-3);
}

.crumb a:hover {
  color: var(--c-brand);
}

/* Filters / toolbar */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.search {
  height: 32px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius);
  padding: 0 12px;
  min-width: 240px;
  font-family: inherit;
}

.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 20px;
}

.tabs a {
  padding: 10px 16px;
  color: var(--c-text-2);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tabs a.active,
.tabs a:hover {
  color: var(--c-brand);
  border-bottom-color: var(--c-brand);
}

/* Tables */
.table-wrap {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: auto;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

table.data th,
table.data td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
}

table.data th {
  background: var(--c-bg-soft);
  color: var(--c-text-2);
  font-weight: 500;
  white-space: nowrap;
}

table.data tr:last-child td {
  border-bottom: none;
}

table.data tr:hover td {
  background: #fafbfd;
}

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 2px;
  font-size: 12px;
  background: var(--c-bg-mute);
  color: var(--c-text-2);
}

.tag-success {
  background: #e8f8f2;
  color: var(--c-success);
}

.tag-warning {
  background: #fff1e9;
  color: var(--c-warning);
}

.tag-danger {
  background: #fdecee;
  color: var(--c-danger);
}

.tag-info {
  background: #e8f7fc;
  color: var(--c-info);
}

.tag-brand {
  background: var(--c-brand-soft);
  color: var(--c-brand);
}

/* Pricing cards */
.plan {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan.featured {
  border-color: var(--c-brand);
  box-shadow: 0 0 0 1px var(--c-brand);
}

.plan .badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--c-brand);
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 2px;
}

.plan h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.plan .desc {
  color: var(--c-text-3);
  font-size: 13px;
  margin-bottom: 16px;
}

.plan .amount {
  font-size: 32px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 4px;
}

.plan .amount small {
  font-size: 14px;
  font-weight: 400;
  color: var(--c-text-3);
}

.plan ul {
  margin: 16px 0 24px;
  padding: 0;
  list-style: none;
  flex: 1;
}

.plan li {
  padding: 6px 0 6px 18px;
  position: relative;
  color: var(--c-text-2);
  font-size: 13px;
}

.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--c-success);
  font-weight: 700;
}

/* Docs layout */
.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 24px 0 48px;
}

.docs-side {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 12px;
  height: fit-content;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.docs-side a {
  display: block;
  padding: 8px 10px;
  color: var(--c-text-2);
  border-radius: var(--radius);
  font-size: 13px;
}

.docs-side a.active,
.docs-side a:hover {
  background: var(--c-brand-soft);
  color: var(--c-brand);
}

.docs-body {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 28px 32px;
}

.docs-body h1 {
  margin: 0 0 16px;
  font-size: 24px;
}

.docs-body h2 {
  margin: 28px 0 12px;
  font-size: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-border);
}

.docs-body p,
.docs-body li {
  color: var(--c-text-2);
  font-size: 14px;
}

/* Auth */
.auth-page {
  min-height: calc(100vh - var(--header-h));
  background: var(--c-bg-soft);
  display: grid;
  place-items: center;
  padding: 40px 16px;
}

.auth-box {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-1);
}

.auth-box h1 {
  margin: 0 0 8px;
  font-size: 22px;
}

.auth-box .hint {
  color: var(--c-text-3);
  margin-bottom: 24px;
  font-size: 13px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--c-text-2);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  height: 36px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius);
  padding: 0 12px;
  font-family: inherit;
  font-size: 14px;
}

.field textarea {
  height: auto;
  min-height: 88px;
  padding: 10px 12px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-brand);
  box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.15);
}

/* Footer */
.site-footer {
  background: #001529;
  color: rgba(255, 255, 255, 0.65);
  padding: 48px 0 24px;
  font-size: 13px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.65);
}

.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.footer-grid h4 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Detail two-col */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  padding: 24px 0 48px;
  align-items: start;
}

.panel {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}

.panel-hd {
  padding: 14px 20px;
  border-bottom: 1px solid var(--c-border);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-bd {
  padding: 20px;
}

.buy-box .amount {
  font-size: 28px;
  font-weight: 700;
  color: var(--c-ali-accent);
  margin-bottom: 8px;
}

.buy-box .amount small {
  font-size: 14px;
  color: var(--c-text-3);
  font-weight: 400;
}

.buy-actions {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.kv {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px 12px;
  font-size: 13px;
}

.kv dt {
  color: var(--c-text-3);
}

.kv dd {
  margin: 0;
  color: var(--c-text);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  background: var(--c-text-3);
}

.status-dot.on {
  background: var(--c-success);
}

.status-dot.warn {
  background: var(--c-warning);
}

.status-dot.off {
  background: var(--c-danger);
}

@media (max-width: 960px) {
  .hero-cloud .wrap,
  .grid-3,
  .grid-4,
  .grid-2,
  .detail-layout,
  .docs-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-main {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--c-border);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 12px 12px;
    box-shadow: var(--shadow-2);
    z-index: 99;
  }

  .nav-main.open {
    display: flex;
  }

  .nav-main > a,
  .nav-drop > summary {
    height: 40px;
  }

  .nav-panel {
    position: static;
    min-width: 0;
    box-shadow: none;
    border: none;
    padding: 0 0 8px 8px;
  }

  .site-header-inner {
    flex-wrap: wrap;
    position: relative;
  }

  .nav-actions .link:nth-child(1) {
    display: none;
  }

  .hero-cloud h1 {
    font-size: 28px;
  }
}
