:root {
    --bg: #f3f4f6;
    --card: #ffffff;
    --line: #e5e7eb;
    --text: #111827;
    --muted: #6b7280;
    --brand: #2563eb;
    --brand-dark: #1d4ed8;
    --brand-gradient: linear-gradient(90deg, #2563eb 0%, #06b6d4 100%);
    --ok: #16a34a;
    --warn: #d97706;
    --error: #dc2626;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    /* 字体抗锯齿：Windows/Chrome 下文字边缘更细腻，标题观感提升明显 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 品牌色条 */
.brand-band {
    height: 4px;
    background: var(--brand-gradient);
}

/* 顶部导航 */
.topbar {
    /* 吸顶：整行（logo + 导航）滚到视口顶端时钉在那里不动。
       用 sticky 而不是 fixed —— 不需要给 body 补 padding-top 占位，
       也不会因为 main 的 margin 把顶栏顶出视口。 */
    position: sticky;
    top: 0;
    /* 必须不透明：吸顶时页面内容要从它下面穿过，透出内容就等于没固定 */
    background: var(--card);
    /* 盖过卡片阴影与 checkout 侧栏（sticky 无 z-index 也会叠上来，但显式声明更稳） */
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 32px;
    height: 64px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

/* 滚动后加深阴影：静态样式看不出"已经钉住了"，滚起来给一点落地反馈 */
.topbar.scrolled {
    box-shadow: 0 12px 24px -14px rgb(15 23 42 / .22);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.logo-img {
    height: 32px;
    width: auto;
    display: block;
}

.topbar nav {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.topbar nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.topbar nav a:hover {
    color: var(--brand);
    background: #eff6ff;
}

/* 当前页高亮：品牌渐变色块 + 白字 */
.topbar nav a.active,
.topbar nav a.nav-cta.active,
.topbar nav a.nav-muted.active {
    color: #fff;
    background: var(--brand-gradient);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}

.topbar nav a.active:hover,
.topbar nav a.nav-cta.active:hover,
.topbar nav a.nav-muted.active:hover {
    color: #fff;
    background: var(--brand-gradient);
    filter: brightness(1.06);
}

/* 语言切换（右上角）：用原生 details 做下拉，不依赖 JS */
.lang-switch {
    position: relative;
    margin-left: 4px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

/* 去掉 details/summary 自带的三角标记 */
.lang-btn::-webkit-details-marker { display: none; }
.lang-btn { list-style: none; }

.lang-btn:hover {
    color: var(--brand);
    background: #eff6ff;
    border-color: #c7d2fe;
}

.lang-icon { font-size: 14px; }

.lang-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 136px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    z-index: 50;
}

.lang-menu a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.lang-menu a:hover {
    background: #eff6ff;
    color: var(--brand);
}

/* 当前语言：加粗 + 品牌色，一眼看出在哪种语言下 */
.lang-menu a.active {
    color: var(--brand);
    font-weight: 600;
    background: #f8fafc;
}

/* CTA 统一为实心按钮。
   以前分成两条规则：首页命中 .topbar-landing 那条是实心蓝按钮，其他页只命中
   基础规则退化成蓝色文字 —— 同一套 nav-cta 渲出两种样子，
   是"顶栏看起来像两个站"的主要来源。现在只保留这一条。 */
.topbar nav a.nav-cta {
    color: #fff;
    background: var(--brand-gradient);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}

.topbar nav a.nav-cta:hover:not(.active) {
    color: #fff;
    filter: brightness(1.05);
}

.topbar nav a.nav-muted {
    color: #9ca3af;
    font-size: 13px;
    padding: 8px 12px;
}

.topbar nav a.nav-muted:hover:not(.active) {
    color: var(--muted);
    background: #f3f4f6;
}

/* 后台二级导航 */
.subnav-wrap { margin-bottom: 24px; }

.subnav {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.subnav-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.subnav-link:hover {
    color: var(--brand);
    background: #eff6ff;
}

.subnav-link.active {
    color: #fff;
    background: var(--brand-gradient);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}

/* 码池导入：文件选择 */
.import-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.file-input-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.file-input-wrap input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-name {
    display: inline-block;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--muted);
    font-size: 14px;
    min-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.file-input-wrap:hover .file-name,
.file-input-wrap input[type="file"]:focus + .file-name {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.10);
}

/* 主容器 */
.container {
    width: 100%;
    max-width: 960px;
    margin: 40px auto;
    padding: 0 24px;
    flex: 1;
}

/* 卡片 */
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

h1 { font-size: 26px; font-weight: 700; margin: 0 0 12px; letter-spacing: -0.02em; }
h2 { font-size: 18px; font-weight: 600; margin: 0 0 14px; }
h3 { font-size: 15px; font-weight: 600; margin: 22px 0 10px; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); font-size: 14px; }

label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}

input[type=text], input[type=email], select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
    color: var(--text);
    margin-bottom: 16px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type=text]:focus, input[type=email]:focus, select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.15);
}

button, .btn {
    display: inline-block;
    background: var(--brand);
    background-image: var(--brand-gradient);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

button:hover, .btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

button:active, .btn:active {
    transform: translateY(0);
}

button.secondary, .btn.secondary {
    background: #52525b;
    background-image: none;
}

button.danger, .btn.danger {
    background: var(--error);
    background-image: none;
}

/* 购买档位 */
.plan {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 12px;
}

.plan label {
    flex: 1;
    border: 2px solid var(--line);
    border-radius: 14px;
    padding: 20px;
    cursor: pointer;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    background: #fff;
}

.plan label:hover {
    border-color: #bfdbfe;
    box-shadow: var(--shadow-sm);
}

.plan input:checked + label,
.plan label:has(input:checked) {
    border-color: var(--brand);
    background: #eff6ff;
}

.plan input { width: auto; margin: 0 8px 0 0; }

.plan label.soldout { opacity: .5; cursor: not-allowed; }

/* 激活码展示 */
.code {
    background: #f9fafb;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 13px;
    word-break: break-all;
    user-select: all;
    margin-bottom: 14px;
}

/* 提示 */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.alert.error { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.alert.ok { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.alert.warn { background: #fffbeb; color: #b45309; border-color: #fde68a; }

/* 表格 */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}

th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.02em; }
tr:last-child td { border-bottom: 0; }

/* 宽表格（订单 / 码池 / 邀请码 / 审计）的容器：
   容器限宽、内部横向滚动 —— 长订单号 / 机器码 / 时间串不会再撑破卡片、把页面顶出屏幕。
   只在窄屏出现滚动条；宽屏时表格仍占满卡片宽度，不需要滚动。 */
.table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 8px;
}
/* 默认：固定布局 + 最小宽度，窄屏时容器内部滚动（页面本身不溢出）。
   订单表另有更窄的列宽方案（见 AdminOrders.cshtml 的 .orders-table colgroup）。 */
.table-scroll > table { table-layout: fixed; min-width: 760px; }
/* 固定列宽下，无空格长串（导入文件名 / 订单号 / 哈希）默认不断行，会溢出压到相邻列，
   看起来像「串列」。让这类长串在任意字符处折行；.clip 元素因 white-space:nowrap
   仍走省略号规则，不受影响。 */
.table-scroll td { overflow-wrap: anywhere; }
/* 长串统一省略号；完整值放 title，导出 CSV 里也始终是完整值。
   内部 <code> 必须 display:block 才能触发 ellipsis（inline 元素不吃 overflow）。 */
.table-scroll td .clip {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* 操作列里的 <details> 展开时要能换行，不能被省略号规则裁掉 */
.table-scroll .clip-keep { white-space: normal; overflow: visible; }

.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}

.tag.ok { background: #dcfce7; color: #15803d; }
.tag.bad { background: #fee2e2; color: #b91c1c; }
.tag.warn { background: #fef3c7; color: #b45309; }

.stats { display: flex; gap: 16px; flex-wrap: wrap; }
.stat { flex: 1; min-width: 120px; background: #f9fafb; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.stat b { display: block; font-size: 22px; color: var(--text); margin-bottom: 2px; }
.stat span { color: var(--muted); font-size: 13px; }

.mail-body { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: #fff; }

/* 分页控件 */
.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 14px;
}

.pager a {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pager a:hover { background: #eff6ff; border-color: #bfdbfe; }

.pager a.disabled {
    color: #c4c4cc;
    background: #fafafa;
    border-color: var(--line);
    cursor: not-allowed;
    pointer-events: none;
}

.pager-info { color: var(--muted); font-size: 13px; }

/* 页脚 */
.footer {
    background: var(--card);
    border-top: 1px solid var(--line);
    padding: 28px 24px;
    margin-top: auto;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-brand {
    font-weight: 700;
    color: var(--text);
    font-size: 15px;
}

.footer-muted { color: var(--muted); font-size: 13px; }

/* 电脑屏幕适配 */
@media (max-width: 860px) {
    .topbar { padding: 0 20px; }
    .topbar nav a { padding: 8px 10px; font-size: 13px; }
    .container { padding: 0 20px; }
    .card { padding: 24px; }
    .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
    .topbar { flex-wrap: wrap; height: auto; padding: 12px 16px; gap: 12px; }
    .topbar nav { flex-wrap: wrap; justify-content: center; }
    .container { margin: 24px auto; }
}

/* ===== 首页（Landing）专用样式 ===== */

.container-landing { max-width: 1120px; }

/* 首页导航：立即购买做成实心按钮 */
/* Hero 区 */
.landing-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 48px;
    padding: 64px 0 80px;
}

.hero-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    margin-bottom: 18px;
    background: linear-gradient(90deg, #eff6ff 0%, #e0f2fe 100%);
    color: var(--brand);
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 1px 2px rgb(37 99 235 / 0.08);
}

.hero-text h1 {
    font-size: 46px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
}

.text-brand {
    color: var(--brand);
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--muted);
    /* 限宽：副标题一长就容易横跨整个左栏，限宽后换行集中、视线不用拉太远 */
    max-width: 620px;
    margin: 0 0 8px;
}

/* 门槛说明：小一档、弱一档，跟在副标题下面当补充，不抢主句 */
.hero-subtitle-note {
    font-size: 14px;
    color: var(--muted);
    max-width: 620px;
    margin: 0 0 28px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 12px;
}

.btn-outline {
    background: #fff;
    color: var(--brand);
    border: 1px solid #c7d2fe;
    background-image: none;
}

.btn-outline:hover {
    background: #eef2ff;
    filter: none;
}

/* Hero 右侧文档转图片示意 */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.doc-to-img {
    position: relative;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 40px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 28px;
    overflow: hidden;
    /* 双层阴影：一层大面积柔光做「浮起」，一层近距阴影压住边缘 */
    box-shadow: 0 24px 48px -16px rgb(15 23 42 / 0.18), 0 8px 16px -8px rgb(15 23 42 / 0.06);
}

/* 卡片内柔和光晕背景，让白色卡片更有层次 */
.doc-to-img::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 35%, rgb(37 99 235 / 0.07) 0%, transparent 38%),
        radial-gradient(circle at 78% 70%, rgb(6 182 212 / 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.doc-stack,
.img-stack {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.doc,
.img-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    padding: 11px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 6px 10px -2px rgb(0 0 0 / 0.12), 0 2px 4px -2px rgb(0 0 0 / 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: transform 0.2s ease;
}

.doc-docx { background: #2563eb; }
.doc-pptx { background: #ea580c; }
.doc-pdf  { background: #dc2626; }

/* 文档标签轻微错落，像一叠文件 */
.doc:nth-child(1) { transform: translateY(-2px) rotate(-1deg); }
.doc:nth-child(2) { transform: translateY(0) rotate(0); }
.doc:nth-child(3) { transform: translateY(2px) rotate(1deg); }

.img-page {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--text);
    border: 1px solid var(--line);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.06);
}

/* 页面标签反向错落，与文档形成「转换」动感 */
.img-page:nth-child(1) { transform: translateY(2px) rotate(1deg); }
.img-page:nth-child(2) { transform: translateY(0) rotate(0); }
.img-page:nth-child(3) { transform: translateY(-2px) rotate(-1deg); }

.arrow {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
    border-radius: 50%;
    font-size: 20px;
    color: var(--brand);
    box-shadow: 0 4px 10px -2px rgb(37 99 235 / 0.18);
    animation: arrow-bounce 1.8s ease-in-out infinite;
}

@keyframes arrow-bounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* 通用区块 */
.landing-section {
    padding: 72px 0;
}

.landing-alt {
    background: #fff;
    margin: 0 -24px;
    padding: 72px 24px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-title {
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 12px;
}

/* 标题下的渐变短装饰线：纯装饰（伪元素），不新增任何 DOM 节点 */
.section-title::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin: 14px auto 0;
    border-radius: 999px;
    background: var(--brand-gradient);
}

.section-subtitle {
    text-align: center;
    color: var(--muted);
    font-size: 15px;
    margin: 0 0 40px;
}

/* 功能卡片 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
    box-shadow: 0 12px 24px -8px rgb(15 23 42 / 0.12);
    transform: translateY(-4px);
    border-color: #c7d2fe;
}

.feature-card:nth-child(4),
.feature-card:nth-child(5) {
    grid-column: span 1;
}

.feature-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
    border-radius: 14px;
    font-size: 22px;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px -2px rgb(37 99 235 / 0.15);
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
}

/* 场景 */
.scenario-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.scenario-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 24px;
    background: #f8fafc;
    border: 1px solid transparent;
    border-radius: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease,
                border-color 0.2s ease, background-color 0.2s ease;
}

.scenario-item:hover {
    background: #fff;
    border-color: #c7d2fe;
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.scenario-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    font-size: 20px;
    box-shadow: 0 2px 6px -2px rgb(37 99 235 / 0.12);
}

.scenario-item h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}

.scenario-item p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
}

/* 价格 */
.pricing-form {
    max-width: 960px;
    margin: 0 auto;
}

.pricing-email {
    max-width: 420px;
    margin: 0 auto 32px;
    display: block;
    text-align: center;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
}

.pricing-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 28px 22px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px -6px rgb(37 99 235 / 0.15);
}

.pricing-card.soldout { opacity: 0.6; }

/* 售罄按钮位：span 冒充按钮的置灰态 —— 无链接、不可点、光标禁用 */
.btn-soldout {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

/* 永久档：蓝色外框 + 淡蓝底色（主推档，阴影比普通档重一档以突出） */
.pricing-recommended {
    border-color: var(--brand);
    background: linear-gradient(180deg, #f5f8ff 0%, #eef2ff 100%);
    box-shadow: 0 0 0 1px var(--brand), var(--shadow);
}

/* 免费档：绿色主题，醒目且与付费档形成区分 */
.pricing-card-free {
    border-color: #10b981;
    background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
    box-shadow: 0 0 0 1px #10b981, var(--shadow-sm);
}

.pricing-card-free:hover {
    box-shadow: 0 12px 24px -6px rgb(5 150 105 / 0.18), 0 0 0 1px #10b981;
}

.pricing-card-free .pricing-badge {
    background: linear-gradient(90deg, #059669 0%, #10b981 100%);
}

.pricing-card-free .price {
    color: #047857;
}

.pricing-card-free .btn {
    background: linear-gradient(90deg, #059669 0%, #10b981 100%);
    background-image: linear-gradient(90deg, #059669 0%, #10b981 100%);
    box-shadow: 0 4px 6px -1px rgb(5 150 105 / 0.2), 0 2px 4px -2px rgb(5 150 105 / 0.2);
}

.pricing-card-free .btn:hover {
    filter: brightness(1.06);
    box-shadow: 0 6px 8px -1px rgb(5 150 105 / 0.25), 0 4px 6px -2px rgb(5 150 105 / 0.2);
}

.pricing-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 0 0 10px 10px;
    box-shadow: var(--shadow-sm);
}

.pricing-badge-recommended {
    background: #f59e0b;
}

.pricing-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 20px 0 8px;
    text-align: center;
}

.price {
    text-align: center;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--brand);
    margin-bottom: 20px;
}

.price-unit {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
}

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

.pricing-actions {
    margin-top: auto;
}

.pricing-card li {
    font-size: 14px;
    color: var(--text);
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    padding-left: 22px;
}

.pricing-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--ok);
    font-weight: 700;
}

.pricing-card li:last-child { border-bottom: 0; }

/* 免费版：限制/缺失项用灰色减号，和收费版的绿色 ✓ 形成"缺失 vs 具备"的中性对比。
   原来是橙色圆底白字"!"，太像告警，改用纯灰色 en-dash。 */
.pricing-card-free li.limit {
    color: var(--muted);
}

.pricing-card-free li.limit::before {
    content: "–";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* 收银台「下一步」下方的次级按钮（颜色复用 .btn.secondary）。
   不能用默认 .btn（inline-block）：跟在整行 block 主按钮后面时，
   行盒行高不足会让它向上叠进主按钮，视觉上两个按钮部分重合。
   统一改成整行次级按钮，margin 留出垂直间距。 */
.btn-back {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

.pricing-card button:disabled {
    background: #9ca3af;
    background-image: none;
    cursor: not-allowed;
}

.pricing-note {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    margin: 12px 0 0;
    min-height: 3.2em;   /* 固定占位（约2行），保证各卡片按钮高度一致、顶部对齐 */
}

/* FAQ */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
}

.faq-list details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-list details:hover {
    border-color: #c7d2fe;
    box-shadow: var(--shadow-sm);
}

.faq-list summary {
    padding: 18px 22px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.faq-list summary:hover {
    background: #f8fafc;
    color: var(--brand);
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
    content: "⌄";
    font-size: 22px;
    color: var(--muted);
    line-height: 1;
    transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
    transform: rotate(180deg);
}

.faq-list details p {
    padding: 0 22px 18px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

/* 下载 CTA */
.landing-cta {
    text-align: center;
    padding: 80px 24px;
    /* 顶部一层柔和的品牌色光晕，让 CTA 区在视觉上「亮起来」 */
    background:
        radial-gradient(120% 80% at 50% 0%, rgb(37 99 235 / 0.07) 0%, transparent 62%),
        linear-gradient(180deg, #fff 0%, #eff6ff 100%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin: 0 -24px;
}

.landing-cta h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px;
}

.landing-cta p {
    color: var(--muted);
    margin: 0 0 24px;
}

/* 下载区双卡：主推安装版，绿色版次之（未配置时整卡隐藏） */
.download-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 760px;
    margin: 0 auto 24px;
    text-align: left;
}

.download-card {
    flex: 1 1 300px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 主卡：品牌色描边 + 轻微抬升，视觉权重高于绿色版 */
.download-card-main {
    border-color: var(--brand);
    box-shadow: 0 6px 24px rgb(37 99 235 / 0.10);
}

.download-card-title {
    font-size: 17px;
    font-weight: 700;
}

.download-file {
    font-size: 13px;
    color: var(--muted);
    font-family: ui-monospace, Consolas, monospace;
}

.download-card-desc {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    flex: 1;
}

/* 按钮在卡内占满一行，两张卡按钮底部对齐（desc 的 flex:1 把剩余高度撑开） */
.download-card .btn {
    display: block;
    width: 100%;
    text-align: center;
}

.download-version {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 10px;
}

.download-sha {
    max-width: 620px;
    margin: 0 auto;
    font-size: 13px;
    color: var(--muted);
    text-align: left;
}

.download-sha summary {
    cursor: pointer;
    color: var(--brand);
}

.download-sha p {
    margin: 10px 0 0;
    line-height: 1.7;
    word-break: break-all;
}

.download-sha code {
    background: #f1f5f9;
    border-radius: 4px;
    padding: 2px 6px;
}

/* 首页页脚 */
.footer-landing {
    background: #0f172a;
    color: #94a3b8;
    border-top: 0;
}

.footer-landing-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
}

.footer-landing-inner a {
    color: #94a3b8;
    text-decoration: none;
}

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

/* 辅助 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==================== 产品页 ==================== */
.product-hero {
    max-width: 1120px;
    margin: 0 auto;
    padding: 52px 24px 36px;
    text-align: center;
}

.product-hero h1 {
    margin: 12px 0 0;
    font-size: 34px;
    line-height: 1.35;
}

.product-hero-sub {
    max-width: 720px;
    margin: 16px auto 0;
    font-size: 16px;
    line-height: 1.8;
    color: var(--muted);
}

.product-hero-actions {
    margin-top: 26px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* 支持的文件格式 */
.format-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.format-card {
    padding: 26px 20px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.format-icon { font-size: 32px; }

.format-card h3 {
    margin: 10px 0 6px;
    font-size: 16px;
}

.format-ext {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    color: var(--brand);
}

/* 版本功能对比表 */
.compare-wrap {
    overflow-x: auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.compare-table {
    width: 100%;
    min-width: 660px;
    border-collapse: collapse;
    font-size: 14px;
}

.compare-table th,
.compare-table td {
    padding: 14px 16px;
    text-align: center;
    border-bottom: 1px solid var(--line);
}

.compare-table thead th {
    background: #f8fafc;
    font-weight: 600;
}

.compare-table tbody th {
    text-align: left;
    font-weight: 500;
    color: var(--muted);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: 0; }

/* 推荐那一列（永久版）用品牌色淡底标出 */
.compare-table .col-rec {
    background: #eff6ff;
    font-weight: 600;
}

.compare-table thead .col-rec { color: var(--brand); }

.cell-yes { color: #16a34a; font-weight: 700; }
.cell-no { color: #cbd5e1; }

/* 系统要求 */
.req-list {
    max-width: 720px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.req-list li {
    position: relative;
    padding: 12px 0 12px 28px;
    border-bottom: 1px dashed var(--line);
    font-size: 15px;
}

.req-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--brand);
    font-weight: 700;
}

.req-list li:last-child { border-bottom: 0; }

/* ==================== 页脚 ==================== */
.footer-inner {
    max-width: 1120px;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 20px;
    font-size: 14px;
}

/* 出品方标识：C4 页脚专用版（方印 + 字标，透明底），深浅两套由 _Layout 的 isHome 切换。
   画布 120×32 按原尺寸渲染 —— 压到 20px 字标会糊；flex:none 防止被页脚 flex 容器挤扁。 */
.footer-vendor-logo {
    display: block;
    width: 120px;
    height: 32px;
    flex: none;
}

.footer-brand { font-weight: 700; }

.footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-links a:hover { color: var(--brand); }

.footer-copy { color: var(--muted); }

/* 软著登记号：跟在版权行后面，小一档。nowrap 防止「软著登字第 17682669 号」被从中间折断 */
.footer-reg { color: var(--muted); font-size: 13px; white-space: nowrap; }

.footer-landing .footer-reg { color: #64748b; }

/* ICP / 公安备案号：与软著登记号同规格的小字，但它们是外链，要有 hover 反馈；
   首页是深色底，颜色单独反转一份 */
.footer-icp {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
    text-decoration: none;
}
.footer-icp:hover { color: var(--brand); text-decoration: underline; }
.footer-landing .footer-icp { color: #64748b; }
.footer-landing .footer-icp:hover { color: #fff; }

/* 公安备案：官方图标与号码同一链接，图标垂直居中、与文字留一点间距 */
.footer-gongan { display: inline-flex; align-items: center; gap: 5px; }
.footer-gongan img { display: block; }

.footer-muted { font-size: 13px; color: #94a3b8; }

/* 首页页脚是深色底，链接与文字要反过来 */
.footer-landing .footer-brand,
.footer-landing .footer-copy { color: #e2e8f0; }

.footer-landing .footer-links a { color: #94a3b8; }
.footer-landing .footer-links a:hover { color: #fff; }

/* ==================== 文档页左侧目录 ==================== */
/* 长文档页（EULA/条款/隐私/退款）由布局页脚本自动注入：main 内 h2 ≥ 6 且非首页才生效，
   标题文本运行时取 DOM —— 文档页是 isEn 条件双套标题，目录自动跟随语言，无需每页维护。
   main 变 grid 两列（目录 + 正文），窄屏退回单栏并隐藏目录。 */
.doc-grid {
    max-width: 1180px;
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

/* 目录跟随滚动吸顶：topbar 高 64px + 余量 */
.doc-toc {
    position: sticky;
    top: 80px;
    padding: 16px 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 13px;
}

.doc-toc-title {
    font-weight: 700;
    color: var(--text);
    font-size: 12.5px;
    letter-spacing: 1px;
    margin: 0 8px 10px;
}

.doc-toc a {
    display: block;
    color: var(--muted);
    text-decoration: none;
    padding: 4px 8px;
    border-left: 2px solid transparent;
    border-radius: 0 6px 6px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s ease, background 0.15s ease;
}

.doc-toc a:hover { color: var(--text); background: rgba(0, 0, 0, 0.04); }
.doc-toc a.active {
    color: var(--brand);
    border-left-color: var(--brand);
    background: rgba(37, 99, 235, 0.06);
}

/* 锚点跳转让出吸顶顶栏的高度 */
.doc-grid h2 { scroll-margin-top: 80px; }

@media (max-width: 1000px) {
    .doc-grid { max-width: 960px; display: block; }
    .doc-toc { display: none; }
}

/* ==================== 错误页（404 / 500） ==================== */
/* 由 Program.cs 的 StatusCodePages / ExceptionHandler re-execute 到 /error 渲染。
   居中窄卡片：大号淡色状态码 + 一句人话 + 出口按钮，避免 IIS 默认错误页的裸奔感 */
.error-card {
    max-width: 540px;
    margin: 72px auto;
    text-align: center;
    padding: 48px 40px;
}

.error-code {
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    color: var(--brand);
    opacity: 0.22;
}

.error-card h1 { margin: 14px 0 8px; }

.error-actions {
    margin-top: 26px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================== 收银台 ==================== */
.checkout-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 8px 0 40px;
}

.checkout-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.checkout-head h1 {
    margin: 0;
    font-size: 26px;
}

.secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.secure-note {
    margin: 8px 0 20px;
    font-size: 13px;
    color: var(--muted);
}

/* 收银台步骤条：页头标题随步骤切换，这里把「现在在第几步」摆在眼前，
   免得「确认订单」页却让用户填邮箱的错位感。 */
.checkout-steps {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: var(--muted);
}
.checkout-steps .is-current { color: #2563eb; font-weight: 700; }
.checkout-steps .is-done { color: var(--muted); }
.checkout-steps .step-arrow { color: var(--line); }

.checkout-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 20px;
    align-items: start;
}

.checkout-main h2 {
    margin: 0;
    font-size: 18px;
}

.order-table {
    width: 100%;
    margin-top: 14px;
    border-collapse: collapse;
}

.order-table th,
.order-table td {
    padding: 13px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 14px;
    text-align: left;
}

.order-table th {
    width: 38%;
    font-weight: 500;
    color: var(--muted);
}

.order-table td { font-weight: 500; }

/* 续费提示：付款前必须让用户看到「不会发新码，只延长到期日」。
   用 warn 色而非 ok 绿 —— 这不是「又要发码了」的好消息，是避免误解的关键提示。 */
.renew-alert { margin-top: 16px; }
.renew-alert p { margin: 6px 0 0; font-size: 13px; line-height: 1.6; }
.renew-alert p.muted { margin-top: 8px; }
.renew-alert b { color: inherit; }

.method-title {
    margin: 24px 0 10px;
    font-size: 15px;
}

/* 支付方式：只有支付宝一种，做成「已选中」的单选项，视觉上更像收银台 */
.method-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f8fbff;
    border: 1.5px solid var(--brand);
    border-radius: 12px;
}

.method-radio {
    flex: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 5px solid var(--brand);
}

.method-name { font-weight: 600; }

.method-tag {
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
}

.demo-alert { margin-top: 16px; }

.checkout-side { position: sticky; top: 16px; }

.amount-label {
    font-size: 13px;
    color: var(--muted);
}

.amount-value {
    margin: 4px 0 18px;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.1;
    color: #dc2626;
}

.btn-pay {
    padding: 14px 20px;
    font-size: 16px;
}

.pay-agree {
    margin: 12px 0 0;
    font-size: 12px;
    line-height: 1.7;
    color: var(--muted);
}

.pay-agree a { color: var(--brand); text-decoration: none; }
.pay-agree a:hover { text-decoration: underline; }

.pay-footer-notes {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.pay-footer-notes p {
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--muted);
}

.pay-footer-notes a { color: var(--brand); text-decoration: none; }

/* ==================== 条款 / 隐私政策 ==================== */
.legal-card {
    max-width: 820px;
    margin: 0 auto;
}

.legal-card h1 {
    margin: 0 0 4px;
    font-size: 26px;
}

.legal-card h2 {
    margin: 26px 0 10px;
    padding-left: 10px;
    border-left: 3px solid var(--brand);
    font-size: 17px;
}

.legal-card p,
.legal-card li {
    font-size: 14px;
    line-height: 1.85;
}

.legal-card ul { padding-left: 22px; }
.legal-card li { margin-bottom: 6px; }
.legal-card a { color: var(--brand); }

.legal-back {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

/* ==================== 兑换码兑换页 ==================== */
.redeem-card {
    max-width: 560px;
    margin: 0 auto;
}

/* 兑换码是手抄/复制的，用等宽字体 + 自动大写，少一半看错 */
.code-input {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.redeem-done {
    font-size: 15px;
    line-height: 1.8;
}

.redeem-notes {
    margin: 20px 0 0;
    padding: 14px 0 0 22px;
    border-top: 1px solid var(--line);
}

.redeem-notes li {
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--muted);
}

/* ==================== 后台：兑换码管理 ==================== */
.form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.form-row > div { flex: 1 1 160px; }

.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 14px;
}

.filters input,
.filters select {
    width: auto;
    min-width: 120px;
}

.new-codes-block {
    margin-top: 12px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.new-codes-block textarea {
    width: 100%;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
}

.new-codes-block p { margin: 0 0 8px; }

/* ==================== 兑换码兑换引导（首页） ==================== */
.hero-redeem-hint {
    margin: 18px 0 0;
    font-size: 14px;
    color: var(--muted);
}

.hero-actions-sub { margin-top: 10px; }

/* 琥珀色，和主 CTA 的蓝明确区分：远看也知道"这不是买东西那条线"，
   但因为是实心带色，在一堆文字链接里又足够扎眼 */
.btn-redeem {
    background: linear-gradient(135deg, #b45309, #d97706);
    border: 1px solid #b45309;
    color: #fff;
    box-shadow: 0 6px 18px rgba(180, 83, 9, .22);
    white-space: nowrap;
}

.btn-redeem:hover { filter: brightness(1.07); }

.redeem-banner {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
    padding: 20px 24px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 14px;
}

.redeem-banner-text { flex: 1; }

.redeem-banner-text h3 {
    margin: 0 0 6px;
    font-size: 17px;
}

.redeem-banner-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--muted);
}

.redeem-steps {
    margin: 12px 0 0;
    padding-left: 20px;
    font-size: 13px;
    color: var(--muted);
}

/* 第三方售卖渠道链接（Site:Channels）：并入 redeem-banner 卡片底部，
   0 条时 partial 零输出、兑换卡保持原样；N 条时作为虚线分隔的一行入口。 */
.channel-links {
    flex-basis: 100%;
    padding-top: 16px;
    border-top: 1px dashed #fcd34d;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.channel-links-label {
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
}

.channel-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.channel-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #92400e;
    text-decoration: none;
    background: #fff;
    transition: border-color .15s, color .15s, box-shadow .15s;
}

.channel-link:hover {
    border-color: #d97706;
    color: #b45309;
    box-shadow: 0 2px 8px rgba(180, 83, 9, .12);
}

.channel-link-arrow {
    font-size: 14px;
    color: #b45309;
    line-height: 1;
}

.redeem-steps li { margin-bottom: 4px; }

/* 购买方式说明区：只讲「怎么买」，交易跳站外店铺（站内不出现价格与收银台）。
   复用 redeem-steps 的三步排版，省一份样式。 */
.buy-guide {
    margin-top: 30px;
    padding: 24px;
    text-align: center;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.buy-guide h3 {
    margin: 0 0 6px;
    font-size: 17px;
}

.buy-guide-sub {
    margin: 0 auto 4px;
    max-width: 560px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--muted);
}

/* 三步列表：居中但文字左对齐（居中长列表很难读），inline-block 才能既居中又左对齐 */
.buy-guide .redeem-steps {
    display: inline-block;
    text-align: left;
    margin: 12px 0 20px;
}

.buy-guide-note {
    margin: 14px 0 0;
    font-size: 13px;
    color: var(--muted);
}

/* 法务页摘要框：放在标题下、正文前，把「最重要的一句话」顶到第一屏。
   退款政策里「数字化商品不适用七日无理由」是法定告知义务，
   埋在正文段落里等于没告知 —— 必须让人第一眼看到。 */
.legal-summary {
    padding: 14px 16px;
    margin: 0 0 4px;
    background: #f8fafc;
    border-left: 3px solid var(--brand);
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.75;
}

/* 注销区：管理页最底部，分隔线与上方日常操作隔开。
   不可逆操作不能和「解绑设备」这类日常动作混在一起，误点代价太大。 */
.erase-zone {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.erase-zone h3 {
    font-size: 15px;
    margin: 0 0 6px;
}

.erase-zone ul {
    margin: 0 0 14px;
    padding-left: 20px;
    font-size: 13px;
    color: var(--muted);
}

.erase-zone li { margin-bottom: 4px; }

/* 导航里的兑换入口：异色 + 加粗。用 !important 压过 .topbar nav a 的统一颜色 */
.nav-accent {
    color: #b45309 !important;
    font-weight: 600;
    white-space: nowrap;
}

/* 兑换页当前项：跟其他 active 项一致用实心底色，但换成琥珀色保持可分辨 */
.nav-accent.active {
    background: #b45309;
    color: #fff !important;
}

@media (max-width: 1024px) {
    .redeem-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* 响应式 */
@media (max-width: 1024px) {
    .landing-hero { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { order: -1; }
    .hero-actions { justify-content: center; }
    .feature-grid,
    .scenario-grid,
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
    .hero-text h1 { font-size: 30px; }
    .feature-grid,
    .scenario-grid,
    .pricing-grid { grid-template-columns: 1fr; }
    .footer-landing-inner { flex-direction: column; text-align: center; }
    .checkout-grid,
    .format-grid { grid-template-columns: 1fr; }
    .checkout-side { position: static; }
    .product-hero h1 { font-size: 26px; }
    .doc-to-img { flex-direction: column; gap: 16px; }
    .arrow { transform: rotate(90deg); }
}

