/* KaCloud 官网全局样式 - Aurora Cloud 极光云品牌 */
:root {
  --brand-1: #0EA5E9;
  --brand-2: #2563EB;
  --brand-3: #06B6D4;
  --accent: #F97316;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #94a3b8;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --line: #e2e8f0;
  --grad: linear-gradient(120deg, #0EA5E9, #2563EB 55%, #06B6D4);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.7; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, 92%); margin: 0 auto; }
.wrap { min-height: calc(100vh - 320px); }

/* ---------- 顶部导航 ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .container { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: .5px; }
.brand .logo { width: 34px; height: 34px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 17px; box-shadow: 0 4px 12px rgba(14,165,233,.35); }
.brand small { font-weight: 500; font-size: 12px; color: var(--ink-3); letter-spacing: 1px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--ink-2); font-size: 14px; transition: color .2s; }
.nav-links a:hover { color: var(--brand-2); }
.nav-links a.active { color: var(--brand-2); font-weight: 600; }
.btn { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 9px 20px; font-size: 14px; font-weight: 600; transition: all .2s; border: none; cursor: pointer; }
.btn-p { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(37,99,235,.32); }
.btn-p:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37,99,235,.4); }
.btn-o { background: #fff; color: var(--brand-2); border: 1px solid var(--line); }
.btn-o:hover { border-color: var(--brand-2); color: var(--brand-2); }
.btn-lg { padding: 13px 30px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 72px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(560px 300px at 15% 20%, rgba(14,165,233,.16), transparent 60%),
  radial-gradient(520px 300px at 85% 15%, rgba(6,182,212,.14), transparent 60%),
  radial-gradient(420px 260px at 70% 80%, rgba(249,115,22,.08), transparent 60%); }
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 46px; line-height: 1.25; letter-spacing: .5px; margin-bottom: 18px; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { font-size: 17px; color: var(--ink-2); max-width: 540px; margin-bottom: 30px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero .trust { display: flex; gap: 26px; color: var(--ink-3); font-size: 13px; }
.hero .trust b { color: var(--ink); font-size: 16px; display: block; }
.hero .hero-img { background: var(--grad); border-radius: 20px; box-shadow: var(--shadow); display: grid; place-items: center; min-height: 320px; color: #fff; position: relative; overflow: hidden; }
.hero .hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.14), transparent 50%); }
.hero .hero-img .mock { position: relative; z-index: 1; text-align: center; padding: 26px; width: 86%; }
.hero .hero-img .mock h3 { font-size: 20px; margin-bottom: 12px; }
.hero .hero-img .mock p { font-size: 13px; opacity: .85; }
.mm-row { display: flex; gap: 10px; margin-top: 16px; }
.mm-row span { flex: 1; background: rgba(255,255,255,.16); border-radius: 10px; padding: 10px 6px; font-size: 12px; }

/* ---------- 区块 ---------- */
section { padding: 68px 0; }
.sec-title { text-align: center; font-size: 30px; letter-spacing: .5px; margin-bottom: 8px; }
.sec-sub { text-align: center; color: var(--ink-3); margin-bottom: 40px; font-size: 15px; }
.alt { background: var(--bg-soft); }

/* 特性卡片 */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: all .22s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(14,165,233,.12); color: var(--brand-2); display: grid; place-items: center; font-size: 22px; margin-bottom: 16px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--ink-2); }

/* 分步 */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 18px; right: 20px; font-size: 30px; font-weight: 800; color: rgba(14,165,233,.14); }
.step h3 { font-size: 16px; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--ink-2); }

/* 标杆功能 B1-B5 */
.b-feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.b-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; gap: 16px; align-items: flex-start; }
.b-card .tag { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.b-card h3 { font-size: 16px; margin-bottom: 6px; }
.b-card p { font-size: 13px; color: var(--ink-2); }

/* 角色矩阵 */
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.role { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; }
.role .r-ico { font-size: 30px; margin-bottom: 10px; }
.role h3 { font-size: 17px; margin-bottom: 6px; }
.role p { font-size: 13px; color: var(--ink-2); }

/* ---------- 定价 ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; display: flex; flex-direction: column; position: relative; }
.plan.hot { border: 2px solid var(--brand-2); box-shadow: 0 14px 40px rgba(37,99,235,.16); }
.plan .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: 12px; padding: 4px 14px; border-radius: 999px; font-weight: 600; }
.plan h3 { font-size: 19px; }
.plan .desc { color: var(--ink-3); font-size: 13px; margin: 6px 0 18px; }
.plan .price { font-size: 40px; font-weight: 800; letter-spacing: -.5px; }
.plan .price small { font-size: 14px; font-weight: 500; color: var(--ink-3); }
.plan ul { list-style: none; margin: 20px 0; flex: 1; }
.plan li { padding: 7px 0; font-size: 14px; color: var(--ink-2); display: flex; gap: 8px; }
.plan li::before { content: "✓"; color: #10b981; font-weight: 800; }
.plan li.no::before { content: "—"; color: var(--ink-3); }
.plan .btn { justify-content: center; }
.price-note { text-align: center; color: var(--ink-3); font-size: 13px; margin-top: 26px; }

/* ---------- CTA ---------- */
.cta-band { background: var(--grad); border-radius: 20px; padding: 56px 30px; text-align: center; color: #fff; }
.cta-band h2 { font-size: 30px; margin-bottom: 10px; }
.cta-band p { opacity: .9; margin-bottom: 24px; }
.cta-band .btn { background: #fff; color: var(--brand-2); }
.cta-band .btn:hover { transform: translateY(-1px); }

/* ---------- 页脚 ---------- */
.footer { background: #0b1220; color: #cbd5e1; padding: 48px 0 32px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer a { display: block; color: #94a3b8; font-size: 13px; padding: 4px 0; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer .copy { border-top: 1px solid rgba(148,163,184,.15); margin-top: 36px; padding-top: 20px; font-size: 12px; color: #64748b; text-align: center; }

/* ---------- 文档页 ---------- */
.docs-layout { display: grid; grid-template-columns: 220px 1fr; gap: 36px; padding: 40px 0 72px; }
.docs-toc { position: sticky; top: 90px; align-self: start; border-right: 1px solid var(--line); padding-right: 20px; }
.docs-toc h4 { font-size: 13px; color: var(--ink-3); margin-bottom: 10px; }
.docs-toc a { display: block; font-size: 14px; color: var(--ink-2); padding: 6px 0; }
.docs-toc a:hover, .docs-toc a.active { color: var(--brand-2); }
.docs-toc .t-sub { margin-left: 12px; font-size: 13px; }
.docs-content { max-width: 780px; }
.docs-content h1 { font-size: 30px; margin-bottom: 6px; }
.docs-content .meta { color: var(--ink-3); font-size: 13px; margin-bottom: 26px; }
.docs-content h2 { font-size: 21px; margin: 34px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.docs-content h3 { font-size: 16px; margin: 24px 0 8px; }
.docs-content p, .docs-content li { font-size: 14px; color: var(--ink-2); }
.docs-content ul, .docs-content ol { padding-left: 22px; margin: 10px 0; }
.docs-content li { margin: 4px 0; }
.docs-content table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13px; }
.docs-content th, .docs-content td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.docs-content th { background: var(--bg-soft); font-weight: 600; }
.docs-content code { background: #eef2ff; color: #4338ca; padding: 2px 6px; border-radius: 5px; font-size: 12.5px; font-family: "JetBrains Mono", Consolas, monospace; }
.docs-content pre { background: #0b1220; color: #e2e8f0; border-radius: 10px; padding: 16px; overflow-x: auto; margin: 12px 0; font-size: 12.5px; line-height: 1.6; }
.docs-content pre code { background: none; color: inherit; padding: 0; }
.docs-content .note { background: #fffbeb; border-left: 3px solid var(--accent); padding: 12px 16px; border-radius: 0 8px 8px 0; font-size: 13px; color: #92400e; margin: 14px 0; }
.docs-content .tip { background: #ecfeff; border-left: 3px solid var(--brand-1); padding: 12px 16px; border-radius: 0 8px 8px 0; font-size: 13px; color: #155e75; margin: 14px 0; }
.docs-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 20px; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .nav-links { display: none; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-toc { position: static; border-right: none; padding-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 20px; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
