/* 官网前台（首页、产品页、使用说明、下载中心、登录注册）。对应画布设计「ZeroTier 管理平台 · 网站改版设计」。
   黑夜 / 白天两套皮肤：颜色全部是变量，<html data-theme> 切换；没选过时跟随系统。 */

/* —— 黑夜（默认） —— */
:root {
    color-scheme: dark;
    --bg: #070B14;
    --bg-2: #0B1222;
    --card: #0F1729;
    --card-2: #152038;
    --line: #1D2A45;
    --line-2: #172238;
    --field: #2B3C5F;
    --ink: #E8EEF7;
    --ink-2: #DCE4F0;
    --ink-3: #C3CEDF;
    --text: #A9B6CB;
    --muted: #93A1B8;
    --blue: #5B8CFF;
    --blue-dark: #7FA4FF;
    --blue-ink: #9DBAFF;
    --blue-soft: #122142;
    --blue-line: #2F4C86;
    --on-blue: #06102A;
    --ok: #34D399;
    --ok-bg: #0D2A22;
    --teal-bg: #0D2A2A;
    --teal-ink: #2DD4BF;
    --amber-bg: #2A2110;
    --amber-ink: #FBBF24;
    --violet-bg: #1E1838;
    --violet-ink: #B79CFF;
    --err-bg: #2A1316;
    --err-ink: #FF9B9B;
    --grid: rgba(120, 150, 210, .07);
    --glow: rgba(91, 140, 255, .30);
    --shadow: 0 24px 60px rgba(0, 0, 0, .45);
    --header-bg: rgba(7, 11, 20, .82);
    --tip-bg: #1A2540;
    --tip-ink: #E8EEF7;
    --footer: #05080F;
    --footer-ink: #C3CEDF;
    --footer-muted: #8A97AD;
    --footer-line: #1A2438;
    --on-teal: #04201D;
    --on-amber: #2A1A00;
    --on-violet: #160B33;
}

/* —— 白天：系统是浅色且没手动选黑夜，或手动选了白天 —— */
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        color-scheme: light;
        --bg: #F5F7FB;
        --bg-2: #FFFFFF;
        --card: #FFFFFF;
        --card-2: #F0F4FA;
        --line: #E1E7F0;
        --line-2: #EEF1F5;
        --field: #C9D3E2;
        --ink: #0B1324;
        --ink-2: #1F2937;
        --ink-3: #374151;
        --text: #4A5568;
        --muted: #5B6472;
        --blue: #2457D6;
        --blue-dark: #1A43B0;
        --blue-ink: #1D45B8;
        --blue-soft: #E6EDFD;
        --blue-line: #9FB4E6;
        --on-blue: #FFFFFF;
        --ok: #15803D;
        --ok-bg: #E7F6EC;
        --teal-bg: #DDF4F1;
        --teal-ink: #0F766E;
        --amber-bg: #FDF0D5;
        --amber-ink: #8A4F06;
        --violet-bg: #EFEAFD;
        --violet-ink: #5B32B4;
        --err-bg: #FDECEC;
        --err-ink: #A3262C;
        --grid: rgba(36, 87, 214, .06);
        --glow: rgba(36, 87, 214, .16);
        --shadow: 0 20px 50px rgba(17, 24, 39, .10);
        --header-bg: rgba(255, 255, 255, .86);
        --tip-bg: #1F2937;
        --tip-ink: #F3F4F6;
        --footer: #FFFFFF;
        --footer-ink: #374151;
        --footer-muted: #5B6472;
        --footer-line: #E1E7F0;
        --on-teal: #FFFFFF;
        --on-amber: #FFFFFF;
        --on-violet: #FFFFFF;
    }
}
:root[data-theme="light"] {
    color-scheme: light;
    --bg: #F5F7FB;
    --bg-2: #FFFFFF;
    --card: #FFFFFF;
    --card-2: #F0F4FA;
    --line: #E1E7F0;
    --line-2: #EEF1F5;
    --field: #C9D3E2;
    --ink: #0B1324;
    --ink-2: #1F2937;
    --ink-3: #374151;
    --text: #4A5568;
    --muted: #5B6472;
    --blue: #2457D6;
    --blue-dark: #1A43B0;
    --blue-ink: #1D45B8;
    --blue-soft: #E6EDFD;
    --blue-line: #9FB4E6;
    --on-blue: #FFFFFF;
    --ok: #15803D;
    --ok-bg: #E7F6EC;
    --teal-bg: #DDF4F1;
    --teal-ink: #0F766E;
    --amber-bg: #FDF0D5;
    --amber-ink: #8A4F06;
    --violet-bg: #EFEAFD;
    --violet-ink: #5B32B4;
    --err-bg: #FDECEC;
    --err-ink: #A3262C;
    --grid: rgba(36, 87, 214, .06);
    --glow: rgba(36, 87, 214, .16);
    --shadow: 0 20px 50px rgba(17, 24, 39, .10);
    --header-bg: rgba(255, 255, 255, .86);
    --tip-bg: #1F2937;
    --tip-ink: #F3F4F6;
    --footer: #FFFFFF;
    --footer-ink: #374151;
    --footer-muted: #5B6472;
    --footer-line: #E1E7F0;
    --on-teal: #FFFFFF;
    --on-amber: #FFFFFF;
    --on-violet: #FFFFFF;
}

/* —— 每个工具的识别色：页面主色跟着走 —— */
body { --accent: var(--blue); --accent-soft: var(--blue-soft); --on-accent: var(--on-blue); --accent-glow: var(--glow); }
body.tone-teal { --accent: var(--teal-ink); --accent-soft: var(--teal-bg); --on-accent: var(--on-teal); --accent-glow: rgba(45, 212, 191, .26); }
body.tone-amber { --accent: var(--amber-ink); --accent-soft: var(--amber-bg); --on-accent: var(--on-amber); --accent-glow: rgba(251, 191, 36, .22); }
body.tone-violet { --accent: var(--violet-ink); --accent-soft: var(--violet-bg); --on-accent: var(--on-violet); --accent-glow: rgba(183, 156, 255, .26); }

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.page-main { flex: 1; display: flex; flex-direction: column; }

a { color: var(--accent); }
a:hover { color: var(--ink); }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mono { font-family: ui-monospace, "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.svg-ico { flex: none; }
.hl { color: var(--accent); text-shadow: 0 0 32px var(--accent-glow); }
.gridbg, .sec:has(> .wrap.hero) {
    background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 48px 48px;
}

/* —— 按钮 —— */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: filter .15s, border-color .15s, box-shadow .15s;
}
.btn-p { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 1px var(--accent), 0 8px 28px var(--accent-glow); }
.btn-p:hover { color: var(--on-accent); filter: brightness(1.08); }
.btn-o { background: transparent; color: var(--ink); border-color: var(--field); }
.btn-o:hover { border-color: var(--accent); color: var(--ink); }
.btn-w { background: var(--accent); color: var(--on-accent); }
.btn-w:hover { color: var(--on-accent); filter: brightness(1.08); }
.btn-ghost { color: var(--ink); border-color: var(--field); }
.btn-ghost:hover { border-color: var(--accent); color: var(--ink); }
.btn-block { width: 100%; }

/* —— 顶栏 —— */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--header-bg);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 0 24px;
}
.site-header .bar {
    max-width: 1320px;
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: .3px;
    white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--blue);
    color: var(--on-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    box-shadow: 0 0 20px var(--glow);
}
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
    height: 38px;
    padding: 0 10px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    font-size: 15px;
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a.on { color: var(--ink); font-weight: 700; background: var(--card-2); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-actions .link {
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    font-size: 15px;
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
}
.header-actions .link:hover { color: var(--ink); }
.header-actions .cta {
    height: 40px;
    padding: 0 18px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--on-blue);
    background: var(--blue);
    box-shadow: 0 6px 20px var(--glow);
    text-decoration: none;
    white-space: nowrap;
    flex: none;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.header-actions .cta:hover { color: var(--on-blue); filter: brightness(1.08); }
.theme-seg { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--field); background: var(--card); flex: none; }
.theme-seg button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 11px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}
.theme-seg button:hover { color: var(--ink); }
.theme-seg button[aria-pressed="true"] { background: var(--card-2); color: var(--ink); box-shadow: 0 0 0 1px var(--field); }
.menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--field);
    border-radius: 10px;
    background: var(--card);
    color: var(--ink);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.mobile-nav {
    display: none;
    flex-direction: column;
    padding: 8px 0 16px;
    border-top: 1px solid var(--line);
}
.mobile-nav a {
    padding: 12px 4px;
    font-size: 16px;
    color: var(--ink-3);
    text-decoration: none;
}
.mobile-nav a.on { color: var(--accent); font-weight: 700; }
.mobile-nav.open { display: flex; }

/* 导航 8 项：窄于 1440px 先收起皮肤按钮的文字，窄于 1320px 放不下，改用菜单按钮 */
@media (max-width: 1440px) {
    .theme-seg button span { display: none; }
    .theme-seg button { padding: 0 9px; }
}
@media (max-width: 1320px) {
    .site-header { padding: 0 16px; }
    .site-header .bar { min-height: 60px; gap: 10px; }
    .brand { font-size: 16px; }
    .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
    .main-nav, .header-actions .cta { display: none; }
    .header-actions .link { padding: 0 8px; }
    .menu-btn { display: flex; }
}
@media (max-width: 520px) {
    .theme-seg button span { display: none; }
    .theme-seg button { padding: 0 9px; }
    .header-actions .link { display: none; }
}

/* —— 子导航 —— */
.subnav-bar {
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: center;
    padding: 8px 24px;
}
.subnav { width: 100%; max-width: 1240px; display: flex; gap: 4px; overflow-x: auto; }
.subnav a {
    height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
}
.subnav a:hover { color: var(--ink); }
.subnav a.on { background: var(--accent-soft); color: var(--accent); font-weight: 700; }

/* —— 区块 —— */
.sec { width: 100%; display: flex; justify-content: center; padding: 88px 24px; }
.sec-white { background: var(--bg-2); }
.sec-bt { border-top: 1px solid var(--line); }
.sec-bb { border-bottom: 1px solid var(--line); }
.wrap { width: 100%; max-width: 1240px; display: flex; flex-direction: column; gap: 40px; }
.wrap-row { flex-direction: row; flex-wrap: wrap; gap: 48px; }
.head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.eyebrow {
    font-family: ui-monospace, "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent);
}
.h2 { margin: 0; font-size: 38px; line-height: 1.28; font-weight: 900; color: var(--ink); letter-spacing: -.3px; }
.lead { margin: 0; font-size: 16px; line-height: 1.8; color: var(--text); }
.note { font-size: 14px; line-height: 22px; color: var(--muted); }
.small-note { font-size: 13px; line-height: 21px; color: var(--muted); }

.hero { align-items: center; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { margin: 0; font-size: 58px; line-height: 1.16; font-weight: 900; letter-spacing: -1px; }
.hero-sub h1 { font-size: 50px; line-height: 1.2; letter-spacing: -.5px; }
.hero .lead { font-size: 18px; line-height: 1.75; }
.hero-sub .lead { font-size: 17px; line-height: 1.8; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.checks { display: flex; gap: 10px 22px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.checks span { display: flex; align-items: center; gap: 8px; }
.hero-shot { flex: 1 1 480px; min-width: 0; }
.hero-shot img { display: block; width: 100%; border-radius: 16px; border: 1px solid var(--field); box-shadow: var(--shadow); }
.shot-inline img { display: block; width: 100%; border-radius: 14px; border: 1px solid var(--line); }
.pulse {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--field);
    background: var(--card);
    font-size: 13px;
    color: var(--muted);
}
.pulse::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--ok); box-shadow: 0 0 10px var(--ok); }

/* —— 卡片 —— */
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.card h3 { margin: 0; font-size: 19px; font-weight: 800; }
.card p { margin: 0; font-size: 14.5px; line-height: 1.75; color: var(--text); }
.card-link { text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.card-link:hover { color: inherit; border-color: var(--accent); }
.card-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 60px var(--accent-glow); }
/* 价格区：推荐卡常亮，其他卡鼠标指向时浮起、描边变亮 */
#pricing .card { transition: border-color .2s, box-shadow .2s, transform .2s; }
#pricing .card:not(.card-featured):hover { border-color: var(--accent); box-shadow: 0 12px 40px var(--accent-glow); transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) { #pricing .card:not(.card-featured):hover { transform: none; } }
.card ul { margin: 0; padding-left: 18px; font-size: 14.5px; line-height: 26px; color: var(--text); }
.card .more { margin-top: auto; font-size: 15px; font-weight: 700; text-decoration: none; }
.card .btn { margin-top: auto; }

.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 20px; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }

.ico {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-soft);
    color: var(--blue);
}
.ico-amber { background: var(--amber-bg); color: var(--amber-ink); }
.ico-violet { background: var(--violet-bg); color: var(--violet-ink); }
.ico-teal { background: var(--teal-bg); color: var(--teal-ink); }
.product-title { margin: 0; font-size: 22px; font-weight: 900; }
.product-fit { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.li-list { display: flex; flex-direction: column; gap: 8px; }
.li { display: flex; gap: 10px; font-size: 15px; line-height: 24px; color: var(--text); }
.li svg { flex: none; margin-top: 4px; }

.tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    line-height: 22px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--blue-soft);
    color: var(--blue-ink);
    vertical-align: middle;
    white-space: nowrap;
}
.tag-amber { background: var(--amber-bg); color: var(--amber-ink); }
.tag-violet { background: var(--violet-bg); color: var(--violet-ink); }
.tag-teal { background: var(--teal-bg); color: var(--teal-ink); }

.step {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--accent);
    color: var(--on-accent);
    font-family: ui-monospace, "JetBrains Mono", Consolas, monospace;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    box-shadow: 0 0 18px var(--accent-glow);
}
.step-soft { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
.step-card b { font-size: 17px; }
.step-card span.desc { font-size: 14px; line-height: 22px; color: var(--text); }

/* —— 价格 —— */
.price { display: flex; align-items: baseline; gap: 6px; }
.price strong { font-family: ui-monospace, "JetBrains Mono", Consolas, monospace; font-size: 42px; font-weight: 800; line-height: 1.2; }
.price span { color: var(--muted); }
.price-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tiers {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}
.tiers div { display: flex; justify-content: space-between; }
.tiers span { color: var(--muted); }
.price-perks { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.price-perks .li { font-size: 14px; }

/* —— 常见问题 —— */
.faq-side { flex: 1 1 280px; display: flex; flex-direction: column; gap: 12px; }
.faq-list { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; }
.faq { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq:last-child { border-bottom: 0; }
.faq summary { font-size: 17px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 22px; line-height: 1; transition: transform .15s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 12px 0 0; font-size: 15px; line-height: 1.8; color: var(--text); }

/* —— 底部号召 —— */
.cta-band {
    background-color: var(--bg-2);
    background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 48px 48px;
    border-top: 1px solid var(--line);
    padding-top: 80px;
    padding-bottom: 80px;
}
.cta-band .wrap { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { margin: 0; font-size: 36px; font-weight: 900; color: var(--ink); }
.cta-band p { font-size: 16px; color: var(--text); margin-top: 8px; }

/* —— 下载 —— */
.dl-group { display: flex; flex-direction: column; gap: 14px; }
.dl-group h2 { margin: 0; font-size: 20px; font-weight: 900; }
.dl-card { padding: 0; gap: 0; overflow: hidden; }
.dl { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-top: 1px solid var(--line); }
.dl:first-child { border-top: 0; }
.dl .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dl .meta b { font-size: 16px; }
.dl .meta span { font-size: 13px; color: var(--muted); }
.dl.is-off { opacity: .7; }
.get, .lock, .wait {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}
.get { background: var(--accent); color: var(--on-accent); font-weight: 700; box-shadow: 0 6px 20px var(--accent-glow); }
.get:hover { color: var(--on-accent); filter: brightness(1.08); }
.lock { border: 1px solid var(--field); background: transparent; color: var(--ink-3); }
.lock:hover { border-color: var(--accent); color: var(--accent); }
.wait { background: var(--card-2); color: var(--muted); cursor: not-allowed; }
/* —— 下载中心图标格子：点击下载，悬停弹出说明 —— */
.tiles {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}
.tiles-anchor { position: absolute; top: 0; left: 0; }
.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 22px 12px 18px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    color: var(--ink);
    text-align: center;
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
a.tile:hover, a.tile:focus-visible {
    color: var(--ink);
    border-color: var(--accent);
    box-shadow: 0 12px 30px var(--accent-glow);
    transform: translateY(-2px);
    outline: none;
}
.tile.is-off { opacity: .55; cursor: default; }
.tile-ico {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-soft);
    color: var(--blue);
    margin-bottom: 4px;
}
.tile-ico.t-violet { background: var(--violet-bg); color: var(--violet-ink); }
.tile-ico.t-amber { background: var(--amber-bg); color: var(--amber-ink); }
.tile-ico.t-teal { background: var(--teal-bg); color: var(--teal-ink); }
.tile-ico.tile-art { background: none; }
.tile-ico.tile-art svg { display: block; }
.tile-lock {
    position: absolute;
    right: -5px;
    bottom: -5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ink-2);
    color: var(--bg);
    border: 2px solid var(--card);
    display: flex;
    align-items: center;
    justify-content: center;
}
.tile-name { font-size: 15px; font-weight: 700; line-height: 21px; }
.tile-kind { font-size: 12px; line-height: 18px; color: var(--muted); }
.tile-desc { display: none; font-size: 12px; line-height: 18px; color: var(--muted); }
.tile .tip {
    display: none;
    position: absolute;
    z-index: 30;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(calc(-50% + var(--shift, 0px)));
    width: 260px;
    max-width: calc(100vw - 24px);
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--tip-bg);
    color: var(--tip-ink);
    border: 1px solid var(--field);
    font-size: 13px;
    line-height: 20px;
    text-align: left;
    flex-direction: column;
    gap: 4px;
    box-shadow: var(--shadow);
    pointer-events: none;
}
.tile .tip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: calc(50% - var(--shift, 0px));
    margin-left: -6px;
    border: 6px solid transparent;
    border-top-color: var(--tip-bg);
}
.tile .tip b { color: var(--tip-ink); font-size: 14px; }
.tile .tip-meta { color: #9CA9BE; font-size: 12px; }
.tile .tip-act { color: #93B4FF; font-weight: 700; }
.tile:hover, .tile:focus-visible { z-index: 5; }
.tile:hover .tip, .tile:focus-visible .tip { display: flex; }
/* 手机没有悬停：不弹窗，直接在图标下显示说明 */
@media (hover: none) {
    .tile .tip, .tile:hover .tip, .tile:focus-visible .tip { display: none; }
    .tile-desc { display: block; }
}
@media (max-width: 640px) {
    .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

.beta-box { background: var(--card); border: 1px dashed var(--field); gap: 8px; }
.beta-box summary { font-size: 16px; font-weight: 700; cursor: pointer; }
.beta-box p { color: var(--text); }
.beta-box .dl-card { margin-top: 8px; }
.tips { margin: 0; padding-left: 18px; font-size: 14px; line-height: 24px; color: var(--text); }
.tips li + li { margin-top: 4px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--accent); }

@media (max-width: 640px) {
    .dl { flex-direction: column; align-items: stretch; padding: 16px; gap: 12px; }
    .dl .get, .dl .lock, .dl .wait { justify-content: center; }
}

/* —— 更新说明 —— */
.log-entry { display: flex; flex-direction: column; gap: 10px; }
.log-entry + .log-entry { padding-top: 24px; border-top: 1px solid var(--line); }
.log-title { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.log-title b { font-size: 17px; }
.log-title span, .log-title a { font-size: 13px; color: var(--muted); }
.log-title a { color: var(--accent); }
.log-entry ul { margin: 0; padding-left: 18px; font-size: 15px; line-height: 28px; color: var(--text); }
.log-entry li + li { margin-top: 4px; }

/* —— 账户表单 —— */
.auth-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 80px 24px;
    background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 48px 48px;
}
.auth-wrap { width: 100%; max-width: 1000px; display: flex; flex-wrap: wrap; gap: 48px; align-items: stretch; }
.auth-intro { flex: 1 1 340px; display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.auth-intro h1 { margin: 0; font-size: 40px; line-height: 1.2; font-weight: 900; }
.auth-points { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text); }
.auth-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.auth-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 34px; color: var(--text); }
.auth-steps li:first-child { color: var(--ink); }
.auth-form { flex: 1 1 400px; padding: 34px; gap: 18px; box-shadow: var(--shadow); }
.auth-form h2 { margin: 0; font-size: 24px; font-weight: 900; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field > .label { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.field input[type=text], .field input[type=email], .field input[type=password] {
    height: 48px;
    border: 1px solid var(--field);
    border-radius: 12px;
    padding: 0 14px;
    font-size: 15px;
    font-family: inherit;
    width: 100%;
    background: var(--bg);
    color: var(--ink);
}
.field input::placeholder { color: var(--muted); opacity: .8; }
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--glow); }
.field small { font-size: 12px; color: var(--muted); }
.field-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--field);
    border-radius: 12px;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
}
.choice:has(input:checked) { border: 2px solid var(--blue); background: var(--blue-soft); font-weight: 700; }
.alert { padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 20px; }
.alert-err { background: var(--err-bg); color: var(--err-ink); }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.form-foot { font-size: 14px; color: var(--text); text-align: center; }

/* —— 页脚 —— */
.site-footer { background: var(--footer); color: var(--footer-ink); border-top: 1px solid var(--footer-line); padding: 56px 24px 30px; display: flex; justify-content: center; }
.site-footer .inner { width: 100%; max-width: 1240px; display: flex; flex-direction: column; gap: 36px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
.footer-cols > div, .footer-cols nav { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-cols .title { font-weight: 700; color: var(--ink); }
.footer-cols .name { font-size: 17px; font-weight: 900; color: var(--ink); }
.footer-cols .about { font-size: 13px; line-height: 22px; color: var(--footer-muted); }
.site-footer a { color: var(--footer-muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--footer-line); padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--footer-muted); }

/* —— 手机 —— */
@media (max-width: 720px) {
    .sec { padding: 48px 16px; }
    .wrap { gap: 26px; }
    .wrap-row { gap: 26px; }
    .hero h1, .hero-sub h1 { font-size: 34px; line-height: 1.25; letter-spacing: -.3px; }
    .hero .lead, .hero-sub .lead { font-size: 15.5px; line-height: 1.75; }
    .hero .actions .btn { width: 100%; }
    .h2 { font-size: 26px; }
    .grid2, .grid3 { grid-template-columns: 1fr; }
    .card { padding: 22px; }
    .price strong { font-size: 34px; }
    .faq summary { font-size: 16px; }
    .cta-band { padding-top: 48px; padding-bottom: 48px; }
    .cta-band h2 { font-size: 26px; }
    .cta-band .btn { width: 100%; }
    .cta-band .actions { width: 100%; }
    .auth-main { padding: 36px 16px; }
    .auth-form { padding: 22px; }
    .auth-intro h1 { font-size: 30px; }
    .subnav-bar { padding: 8px 16px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
code { font-family: ui-monospace, Consolas, monospace; font-size: .92em; background: var(--card-2); padding: 1px 5px; border-radius: 4px; }
[hidden] { display: none !important; }

/* —— 首页：万物互联网络图 —— */
.mesh { position: relative; width: 580px; max-width: 100%; height: var(--mesh-h, 470px); margin: 0 auto; }
.mesh-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.mesh-lines .ln { fill: none; stroke: var(--field); stroke-width: 2; }
.mesh-lines .ln.dash { stroke-dasharray: 5 6; }
.mesh-lines .fl { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 2 22; animation: meshFlow 2.6s linear infinite; }
.mesh-lines .fl.r { animation-delay: -1.3s; }
@keyframes meshFlow { to { stroke-dashoffset: -48; } }
.mesh-hub {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 176px;
    height: 176px;
    margin: -88px 0 0 -88px;
    border-radius: 999px;
    background: var(--blue-soft);
    border: 1px solid var(--blue);
    box-shadow: 0 0 0 10px var(--glow), 0 0 80px var(--glow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
    color: var(--blue);
}
.mesh-hub b { font-size: 21px; font-weight: 900; color: var(--ink); }
.mesh-hub span { font-size: 14px; font-weight: 700; }
.mesh-node {
    position: absolute;
    width: 172px;
    height: 58px;
    padding: 0 12px;
    border-radius: 14px;
    background: var(--card);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    line-height: 1.3;
}
a.mesh-node:hover { color: var(--ink); box-shadow: 0 10px 30px var(--glow); }
.mesh-node .mk { width: 32px; height: 32px; flex: none; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--blue-soft); color: var(--blue); }
.mesh-node b { display: block; font-size: 14px; white-space: nowrap; }
.mesh-node > span:last-child { min-width: 0; }
.mesh-node small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mesh-node.l { left: 0; }
.mesh-node.r { right: 0; }
.mesh-node.teal { border-color: var(--teal-ink); } .mesh-node.teal .mk { background: var(--teal-bg); color: var(--teal-ink); }
.mesh-node.violet { border-color: var(--violet-ink); } .mesh-node.violet .mk { background: var(--violet-bg); color: var(--violet-ink); }
.mesh-node.amber { border-color: var(--amber-ink); } .mesh-node.amber .mk { background: var(--amber-bg); color: var(--amber-ink); }
.mesh-node.more { border-style: dashed; border-color: var(--field); } .mesh-node.more .mk { background: var(--card-2); color: var(--muted); }
@media (max-width: 640px) {
    .mesh { width: 100%; height: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .mesh-lines { display: none; }
    .mesh-node { position: static; width: auto; }
    .mesh-hub { position: static; grid-column: 1 / -1; order: 0; justify-self: center; margin: 14px 0; width: 140px; height: 140px; }
    .mesh-node.l { order: -1; }
    .mesh-node.r { order: 1; }
}

/* —— 首页：工具拼排 —— */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bento .card { padding: 32px; gap: 16px; }
.bento .wide { grid-column: span 2; flex-direction: row; flex-wrap: wrap; gap: 28px; }
.bento .wide > .body { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.bento .links { display: flex; gap: 18px; font-size: 15px; font-weight: 700; margin-top: auto; }
.bento .links a { text-decoration: none; }
.bento .c-teal { border-color: var(--teal-ink); } .bento .c-teal .links a { color: var(--teal-ink); }
.bento .c-violet { border-color: var(--violet-ink); } .bento .c-violet .links a { color: var(--violet-ink); }
.bento .c-amber { border-color: var(--amber-ink); } .bento .c-amber .links a { color: var(--amber-ink); }
.bento .c-blue .links a { color: var(--blue); }
/* XT网络锁助手：蓝紫，与程序图标一致 */
.bento .c-lock { border-color: var(--violet-ink); } .bento .c-lock .links a { color: var(--violet-ink); }
.ico.ico-lock { background: linear-gradient(135deg, #4f7cf7, #6d3df2); color: #fff; }
.mesh-node.lock { border-color: var(--violet-ink); } .mesh-node.lock .mk { background: linear-gradient(135deg, #4f7cf7, #6d3df2); color: #fff; }
.mini { flex: 1 1 320px; min-width: 0; align-self: stretch; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); overflow: hidden; display: flex; flex-direction: column; font-size: 13px; }
.mini-bar { height: 34px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.mini-bar i { width: 8px; height: 8px; border-radius: 9px; background: var(--field); }
.mini-bar span { margin-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.mini-row:last-child { border-bottom: 0; }
.mini-row b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.mini-row .dot { width: 8px; height: 8px; border-radius: 9px; background: var(--ok); flex: none; box-shadow: 0 0 8px var(--ok); }
.mini-row .dot.is-wait { background: var(--amber-ink); box-shadow: none; }
.mini-row .ip { font-size: 12px; color: var(--muted); }
.mini-pill { font-size: 12px; padding: 2px 8px; border-radius: 99px; background: var(--ok-bg); color: var(--ok); white-space: nowrap; }
.mini-pill.is-wait { background: var(--amber-bg); color: var(--amber-ink); }
.mini-files { display: flex; flex: 1; min-height: 0; }
.mini-files .side { width: 112px; flex: none; border-right: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.mini-files .side span { padding: 6px 8px; border-radius: 8px; }
.mini-files .side .on { background: var(--violet-bg); color: var(--violet-ink); font-weight: 700; }
.mini-files .list { flex: 1; min-width: 0; }
@media (max-width: 960px) {
    .bento { grid-template-columns: minmax(0, 1fr); }
    .bento .wide { grid-column: auto; }
}

/* —— 首页：步骤 —— */
.steps-grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.steps-grid .card { gap: 14px; }
.steps-grid .num { font-family: ui-monospace, "JetBrains Mono", Consolas, monospace; font-size: 44px; font-weight: 700; line-height: 1; color: var(--blue); text-shadow: 0 0 24px var(--glow); }
.steps-grid h3 { font-size: 19px; }

/* —— 产品页首屏的软件界面示意图 —— */
.hero-mock { flex: 1 1 480px; min-width: 0; }
.hero-mock .mk { box-shadow: var(--shadow), 0 0 0 1px var(--line); font-size: 12.5px; }

/* —— 产品页 / 使用说明顶部的节点图（与首页同款），按工具换色 —— */
.hero-mesh { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.mesh-cap { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }
.hero-mesh.teal .mesh-hub { background: var(--teal-bg); border-color: var(--teal-ink); color: var(--teal-ink); box-shadow: 0 0 0 10px rgba(45, 212, 191, .14), 0 0 80px rgba(45, 212, 191, .22); }
.hero-mesh.violet .mesh-hub { background: var(--violet-bg); border-color: var(--violet-ink); color: var(--violet-ink); box-shadow: 0 0 0 10px rgba(183, 156, 255, .14), 0 0 80px rgba(183, 156, 255, .22); }
.hero-mesh.amber .mesh-hub { background: var(--amber-bg); border-color: var(--amber-ink); color: var(--amber-ink); box-shadow: 0 0 0 10px rgba(251, 191, 36, .12), 0 0 80px rgba(251, 191, 36, .20); }
.hero-mesh.teal .fl { stroke: var(--teal-ink); }
.hero-mesh.violet .fl { stroke: var(--violet-ink); }
.hero-mesh.amber .fl { stroke: var(--amber-ink); }
