/* 方块云智控官网 — 统一样式 */

:root {
    --bg: #FFFFFF;
    --bg-soft: #F5F7FB;
    --bg-tint: #EEF2FB;
    --ink: #0A1424;
    --body: #46536B;
    --muted: #6E7A91;
    --line: #E2E8F2;
    --line-soft: #EDF1F7;
    --brand: #2B5CE6;
    --brand-dark: #1B3EAE;
    --brand-tint: #E8EEFE;
    --teal: #0E9C86;
    --amber: #C77A0B;
    --panel: #0B1424;
    --panel-2: #131F35;
    --panel-line: rgba(255, 255, 255, .09);
    --panel-text: #E8EDF6;
    --panel-muted: #93A0B7;
    --r-sm: 10px;
    --r: 14px;
    --r-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(10, 20, 36, .06), 0 4px 12px rgba(10, 20, 36, .04);
    --shadow: 0 8px 24px rgba(10, 20, 36, .08);
    --shadow-lg: 0 28px 70px rgba(10, 20, 36, .16);
    --max: 1180px;
    --nav-h: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

.skip {
    position: absolute; left: 16px; top: -80px; z-index: 200;
    background: var(--ink); color: #fff; padding: 10px 16px;
    border-radius: var(--r-sm); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 14px; }

[id] { scroll-margin-top: calc(var(--nav-h) + 20px); }

.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 40px)); margin-inline: auto; }

/* ---------- 顶栏 ---------- */

.topbar {
    position: sticky; top: 0; z-index: 100;
    height: var(--nav-h);
    display: flex; align-items: center;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--line-soft);
}
.topbar .wrap { display: flex; align-items: center; gap: 24px; }

.logo {
    display: inline-flex; align-items: center; gap: 10px;
    text-decoration: none; font-weight: 700; font-size: 17px;
    letter-spacing: -.01em; white-space: nowrap;
}
.logo-mark {
    width: 30px; height: 30px; border-radius: 8px;
    background: linear-gradient(140deg, var(--brand), #4E7DFF);
    color: #fff; display: grid; place-items: center;
    font-size: 16px; font-weight: 800;
}

.nav { display: flex; gap: 4px; list-style: none; margin-left: auto; }
.nav a {
    display: block; padding: 8px 12px; border-radius: var(--r-sm);
    text-decoration: none; font-size: 14.5px; color: var(--body); font-weight: 500;
}
.nav a:hover { background: var(--bg-soft); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--brand); font-weight: 650; }

.nav-dl {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--brand); color: #fff; text-decoration: none;
    padding: 9px 16px; border-radius: var(--r-sm);
    font-size: 14px; font-weight: 650; white-space: nowrap;
    box-shadow: 0 6px 16px rgba(43, 92, 230, .24);
}
.nav-dl:hover { background: var(--brand-dark); }

.burger {
    display: none; width: 40px; height: 40px; margin-left: auto;
    border: 1px solid var(--line); border-radius: var(--r-sm);
    background: #fff; cursor: pointer;
}
.burger i { display: block; height: 1.6px; width: 16px; margin: 4px auto; background: var(--ink); border-radius: 2px; }

/* ---------- 通用排版 ---------- */

section { padding: 88px 0; }
section.tight { padding: 56px 0; }
section.soft { background: var(--bg-soft); }

.eyebrow {
    display: block; font-size: 12.5px; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--brand); margin-bottom: 12px;
}
h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.1; letter-spacing: -.035em; font-weight: 720; }
h2 { font-size: clamp(27px, 3.2vw, 38px); line-height: 1.2; letter-spacing: -.03em; font-weight: 700; }
h3 { font-size: 19px; letter-spacing: -.015em; font-weight: 680; }
.sub { color: var(--body); font-size: 17px; max-width: 620px; }
.sec-head { margin-bottom: 40px; }
.sec-head h2 { margin-bottom: 12px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 20px; border-radius: var(--r-sm);
    text-decoration: none; font-weight: 650; font-size: 15px;
    border: 1px solid transparent; cursor: pointer;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(43, 92, 230, .22); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-line { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-line:hover { border-color: #C9D4E6; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn-light { background: #fff; color: var(--brand); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    font-size: 12.5px; color: var(--body); background: var(--bg-soft);
    border: 1px solid var(--line-soft); padding: 5px 11px; border-radius: 999px;
}

/* ---------- 首页 Hero ---------- */

.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: 52px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .sub { margin-bottom: 28px; max-width: 480px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }

.badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--brand-tint); color: var(--brand-dark);
    border-radius: 999px; padding: 6px 14px 6px 10px;
    font-size: 13px; font-weight: 620; margin-bottom: 22px;
}
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }

/* ---------- 客户端界面模拟 ---------- */

.shot {
    background: var(--panel); color: var(--panel-text);
    border-radius: var(--r-lg); overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, .07);
}
.shot-bar {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 14px; border-bottom: 1px solid var(--panel-line);
    font-size: 12.5px; color: var(--panel-muted);
}
.shot-bar .dots { display: flex; gap: 6px; }
.shot-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: #2C3752; }
.shot-bar .dots i:nth-child(1) { background: #FF6B6B; }
.shot-bar .dots i:nth-child(2) { background: #F2C14E; }
.shot-bar .dots i:nth-child(3) { background: #3DD68C; }
.shot-bar b { color: var(--panel-text); font-weight: 600; }
.shot-bar .right { margin-left: auto; }

.shot-tools {
    display: flex; flex-wrap: wrap; gap: 6px;
    padding: 10px 14px; border-bottom: 1px solid var(--panel-line);
    background: rgba(255, 255, 255, .02);
}
.tool {
    font-size: 12px; color: var(--panel-muted);
    border: 1px solid var(--panel-line); border-radius: 7px;
    padding: 5px 10px; white-space: nowrap;
}
.tool.on { color: #0B1424; background: #5EE0C0; border-color: transparent; font-weight: 650; }

.shot-body { display: grid; grid-template-columns: 132px minmax(0, 1fr); }
.shot-side { border-right: 1px solid var(--panel-line); padding: 14px 12px; }
.shot-side h5 {
    font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
    color: #6C7994; font-weight: 700; margin-bottom: 10px;
}
.shot-side a {
    display: flex; justify-content: space-between; gap: 8px;
    font-size: 12.5px; color: var(--panel-muted);
    padding: 6px 8px; border-radius: 7px; text-decoration: none;
}
.shot-side a.on { background: rgba(94, 224, 192, .12); color: #7FEBCE; font-weight: 600; }

.shot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 12px; }
.dev {
    border: 1px solid var(--panel-line); border-radius: 10px;
    padding: 5px; background: #080D18;
}
.dev.sel { border-color: rgba(94, 224, 192, .55); box-shadow: 0 0 0 1px rgba(94, 224, 192, .3); }
.dev-scr {
    border-radius: 7px; aspect-ratio: 9 / 15; padding: 7px;
    display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.dev-scr::after {
    content: ""; position: absolute; left: 50%; transform: translateX(-50%);
    bottom: 5px; width: 34%; height: 2.5px; border-radius: 99px; background: rgba(255, 255, 255, .3);
}
.dev-top { display: flex; justify-content: space-between; font-size: 7.5px; color: rgba(255, 255, 255, .75); }
.dev-rows { margin-top: auto; margin-bottom: 10px; display: grid; gap: 3px; }
.dev-rows i { display: block; height: 3.5px; border-radius: 99px; background: rgba(255, 255, 255, .22); }
.dev-rows i:nth-child(2) { width: 70%; }
.dev-rows i:nth-child(3) { width: 44%; }
.dev-meta { display: flex; align-items: center; gap: 5px; padding: 6px 3px 2px; }
.dev-meta span { font-size: 10.5px; color: var(--panel-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dev-meta em { margin-left: auto; width: 5px; height: 5px; border-radius: 50%; background: #3DD68C; flex: none; }
.dev-meta em.busy { background: #F2C14E; }
.dev-meta em.off { background: #56617A; }

.g1 { background: linear-gradient(165deg, #1E3A8A, #0C1526); }
.g2 { background: linear-gradient(165deg, #0F766E, #0B1524); }
.g3 { background: linear-gradient(165deg, #9A3412, #1A1008); }
.g4 { background: linear-gradient(165deg, #1D4ED8, #101A2C); }
.g5 { background: linear-gradient(165deg, #6D28D9, #150E28); }
.g6 { background: linear-gradient(165deg, #155E75, #0A1420); }
.g7 { background: linear-gradient(165deg, #B45309, #1C1206); }
.g8 { background: linear-gradient(165deg, #334155, #0C1220); }

.shot-foot {
    display: flex; flex-wrap: wrap; gap: 16px;
    padding: 10px 14px; border-top: 1px solid var(--panel-line);
    font-size: 11.5px; color: var(--panel-muted);
}
.shot-foot .right { margin-left: auto; }

/* ---------- 指标条 ---------- */

.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.strip > div { padding: 24px 24px 24px 0; }
.strip > div + div { border-left: 1px solid var(--line); padding-left: 24px; }
.strip strong { display: block; font-size: 21px; letter-spacing: -.025em; }
.strip span { color: var(--muted); font-size: 13.5px; }

/* ---------- 卡片网格 ---------- */

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

.card {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--r); padding: 26px;
    box-shadow: var(--shadow-sm);
}
.card h3 { margin: 16px 0 8px; }
.card p { color: var(--body); font-size: 14.5px; }
.card ul { margin: 12px 0 0; padding-left: 18px; color: var(--body); font-size: 14px; }
.card ul li { margin-bottom: 4px; }

.ico {
    width: 40px; height: 40px; border-radius: var(--r-sm);
    background: var(--brand-tint); color: var(--brand-dark);
    display: grid; place-items: center;
}
.ico.teal { background: #DFF5F0; color: var(--teal); }
.ico.amber { background: #FBEFDC; color: var(--amber); }

/* ---------- 步骤 ---------- */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.step .n {
    display: inline-grid; place-items: center; width: 30px; height: 30px;
    border-radius: 50%; background: var(--ink); color: #fff;
    font-size: 13px; font-weight: 700; margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--body); font-size: 14.5px; }

/* ---------- 场景 ---------- */

.scene {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r);
    padding: 24px; border-top: 3px solid var(--brand);
}
.scene:nth-child(2) { border-top-color: var(--teal); }
.scene:nth-child(3) { border-top-color: var(--amber); }
.scene:nth-child(4) { border-top-color: #6D28D9; }
.scene:nth-child(5) { border-top-color: #B45309; }
.scene:nth-child(6) { border-top-color: #155E75; }
.scene h3 { margin-bottom: 8px; }
.scene p { color: var(--body); font-size: 14.5px; }

/* ---------- 问答 ---------- */

.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    cursor: pointer; list-style: none; padding: 20px 40px 20px 0;
    font-weight: 640; font-size: 16.5px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ""; position: absolute; right: 8px; top: 50%;
    width: 9px; height: 9px; margin-top: -6px;
    border-right: 1.8px solid var(--muted); border-bottom: 1.8px solid var(--muted);
    transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .ans { color: var(--body); font-size: 15px; padding: 0 0 22px; max-width: 780px; }

/* ---------- 规格表 ---------- */

.table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.table th, .table td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.table th { width: 210px; background: var(--bg-soft); color: var(--ink); font-weight: 640; }
.table td { color: var(--body); }
.table tr:last-child th, .table tr:last-child td { border-bottom: 0; }

/* ---------- 下载卡 ---------- */

.dl-card {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center;
    background: var(--panel); color: var(--panel-text);
    border-radius: var(--r-lg); padding: 40px;
    box-shadow: var(--shadow-lg);
}
.dl-card h2 { color: #fff; margin-bottom: 10px; }
.dl-card p { color: var(--panel-muted); }
.dl-card .eyebrow { color: #5EE0C0; }
.dl-card .tag { background: rgba(255, 255, 255, .06); border-color: var(--panel-line); color: var(--panel-muted); }
.dl-card .btn-primary { background: #5EE0C0; color: #08121F; box-shadow: none; }
.dl-card .btn-primary:hover { background: #46D3B0; }

/* ---------- CTA 带 ---------- */

.cta { background: var(--bg-tint); padding: 64px 0; }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; justify-content: space-between; }
.cta h2 { margin-bottom: 6px; }
.cta p { color: var(--body); }

/* ---------- 内页页头 ---------- */

.page-head { padding: 56px 0 40px; border-bottom: 1px solid var(--line-soft); background: var(--bg-soft); }
.page-head h1 { font-size: clamp(30px, 3.8vw, 44px); margin-bottom: 14px; }
.page-head .sub { font-size: 16.5px; }
.crumb { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--brand); }

/* ---------- 正文（协议 / 文档） ---------- */

.prose { padding: 56px 0 80px; }
.prose h2 { font-size: 22px; margin: 36px 0 12px; letter-spacing: -.02em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 24px 0 8px; }
.prose p, .prose li { color: var(--body); font-size: 15.5px; }
.prose p { margin-bottom: 12px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose .meta { color: var(--muted); font-size: 14px; margin-bottom: 28px; }

/* 待补充的真实信息，上线前需替换 */
.todo {
    background: #FEF3C7; color: #7A4A05;
    border-bottom: 1px dashed #C77A0B;
    padding: 0 5px; border-radius: 3px;
    font-weight: 600; font-size: .95em;
}

.callout {
    background: var(--bg-soft); border: 1px solid var(--line);
    border-left: 3px solid var(--brand); border-radius: var(--r-sm);
    padding: 16px 18px; margin: 20px 0; font-size: 14.5px; color: var(--body);
}

/* ---------- 页脚 ---------- */

.footer { border-top: 1px solid var(--line); padding: 52px 0 36px; background: var(--bg-soft); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; margin-bottom: 40px; }
.footer-top p { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 300px; }
.footer h4 { font-size: 13.5px; font-weight: 680; margin-bottom: 14px; }
.footer nav { display: grid; gap: 9px; }
.footer nav a { text-decoration: none; color: var(--body); font-size: 14px; }
.footer nav a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 22px; color: var(--muted); font-size: 13px; line-height: 2; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--brand); }

/* ---------- 响应式 ---------- */

@media (max-width: 1000px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .shot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .nav, .nav-dl { display: none; }
    .burger { display: block; }
    .topbar { height: auto; min-height: var(--nav-h); }
    .topbar .wrap { flex-wrap: wrap; row-gap: 0; min-height: var(--nav-h); align-items: center; }
    .topbar.open { padding-bottom: 14px; }
    .topbar .wrap > .logo { order: 0; }
    .burger { order: 1; }
    .topbar.open .nav {
        order: 2; display: grid; flex-basis: 100%; gap: 2px; margin: 0;
        padding: 6px 0 10px; border-top: 1px solid var(--line-soft);
    }
    .topbar.open .nav a { padding: 11px 12px; font-size: 16px; }
    .topbar.open .nav-dl { order: 3; display: inline-flex; flex-basis: 100%; justify-content: center; }
    .g-2, .g-3, .steps, .strip, .footer-top { grid-template-columns: minmax(0, 1fr); }
    .strip > div { padding: 20px 0; }
    .strip > div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
    .dl-card { grid-template-columns: minmax(0, 1fr); padding: 30px; }
    .shot-body { grid-template-columns: minmax(0, 1fr); }
    .shot-side { display: none; }
    .shot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    section { padding: 60px 0; }
    .table th { width: auto; }
}

@media (max-width: 520px) {
    .shot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .btn { width: 100%; }
    .hero-actions { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn:hover { transform: none; }
    * { transition: none !important; }
}
