/* 效率翻焙 · 官方产品介绍页
   零外部依赖：不加载 CDN / 外部字体 / 统计脚本 / 外链图片 */

:root {
  --brown: #8b5a2b;
  --brown-deep: #6b4420;
  --brown-soft: #a9764a;
  --cream: #fff8ef;
  --cream-2: #fbf2e6;
  --orange: #ff782c;
  --orange-deep: #e8641b;
  --orange-soft: #fff0e6;
  --ink: #2c241c;
  --ink-2: #5a4b3c;
  --ink-3: #85745f;
  --line: #eaddcb;
  --white: #fff;
  --green: #2f7d5d;
  --green-soft: #eaf6f0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 36px rgba(107, 68, 32, .09);
  --shadow-lg: 0 24px 64px rgba(107, 68, 32, .16);
  --max: 1180px;
  --header-h: 72px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img, svg { max-width: 100%; display: block; }

.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.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;
}

/* ---------- 通用区块 ---------- */
.section { padding: 96px 0; }
.section--cream { background: var(--cream); }
.section--soft { background: var(--cream-2); }
.section--brown { background: linear-gradient(135deg, #6b4420, #8b5a2b 60%, #a9764a); color: #fff8ef; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em;
  color: var(--orange-deep); background: var(--orange-soft);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.section--brown .eyebrow { background: rgba(255, 255, 255, .14); color: #ffe3cc; }

.sec-title {
  font-size: clamp(28px, 4vw, 42px); line-height: 1.35;
  font-weight: 800; letter-spacing: -.02em;
}
.sec-desc {
  margin-top: 16px; max-width: 720px;
  color: var(--ink-2); font-size: 17px;
}
.section--brown .sec-desc { color: rgba(255, 248, 239, .82); }
.sec-head { margin-bottom: 48px; }
.sec-head--center { text-align: center; }
.sec-head--center .sec-desc { margin-inline: auto; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 248, 239, .88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(234, 221, 203, .8);
  transition: box-shadow .25s ease;
}
.header.is-scrolled { box-shadow: 0 4px 20px rgba(107, 68, 32, .08); }
.header__inner {
  height: 100%; display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark {
  /* 与软件同源：assets/img/brand-logo.png = 软件 frontend/build/icon.png */
  width: 38px; height: 38px; border-radius: 11px;
  background: url("img/brand-logo.png") center / 100% 100% no-repeat;
  display: grid; place-items: center; color: #fff; font-size: 20px;
  box-shadow: 0 5px 14px rgba(232, 100, 27, .18);
  flex-shrink: 0;
}
.brand__name { font-size: 19px; font-weight: 800; line-height: 1.2; letter-spacing: .01em; }
.brand__sub { font-size: 11px; color: var(--ink-3); line-height: 1.4; letter-spacing: .04em; }

.nav { display: flex; align-items: center; gap: 3px; margin-left: auto; }
.nav a {
  padding: 7px 10px; border-radius: 8px; font-size: 13.5px; font-weight: 600;
  white-space: nowrap; flex-shrink: 0;
  color: var(--ink-2); transition: color .2s, background .2s;
}
.nav a:hover, .nav a.is-active { color: var(--orange-deep); background: var(--orange-soft); }

.header__cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.menu-toggle {
  display: none; width: 40px; height: 40px; border: 1px solid var(--line);
  background: #fff; border-radius: 10px; color: var(--ink);
  align-items: center; justify-content: center;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px; border: 1px solid transparent;
  font-size: 15px; font-weight: 700; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--orange); color: #fff;
  box-shadow: 0 8px 20px rgba(255, 120, 44, .28);
}
.btn--primary:hover { background: var(--orange-deep); box-shadow: 0 12px 26px rgba(232, 100, 27, .34); }
.btn--ghost { background: #fff; color: var(--brown-deep); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brown-soft); background: var(--cream); }
.btn--light { background: #fff; color: var(--orange-deep); }
.btn--light:hover { background: var(--cream); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 120, 44, .13), transparent 42%),
    linear-gradient(140deg, #fffaf3 0%, var(--cream) 48%, #ffeede 100%);
  padding: 88px 0 92px;
}
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  color: var(--brown-deep); background: rgba(255, 255, 255, .78);
  border: 1px solid var(--line); padding: 7px 15px; border-radius: 999px; margin-bottom: 24px;
}
.hero__badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.hero h1 {
  font-size: clamp(36px, 5.4vw, 60px); line-height: 1.22; font-weight: 900;
  letter-spacing: -.035em; color: var(--brown-deep);
}
.hero h1 em { font-style: normal; color: var(--orange-deep); }
.hero__sub {
  margin-top: 22px; font-size: 17.5px; color: var(--ink-2); max-width: 560px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__tags {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px;
  padding-top: 28px; border-top: 1px dashed var(--line);
}
.hero__tags span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--brown-deep);
  background: rgba(255, 255, 255, .8); border: 1px solid var(--line);
  padding: 7px 13px; border-radius: 8px;
}
.hero__tags b { color: var(--green); font-size: 14px; }

/* 设备 Mockup */
.hero__media { position: relative; }
.mockup {
  position: relative; border-radius: 18px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  overflow: hidden; transform: rotate(-1.2deg);
  transition: transform .35s ease;
}
.mockup:hover { transform: rotate(0); }
.mockup__bar {
  height: 38px; background: #f6efe5; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 6px; padding: 0 14px;
}
.mockup__bar i { width: 9px; height: 9px; border-radius: 50%; background: #e3cdb5; }
.mockup__bar i:first-child { background: #f3b6a0; }
.mockup__bar i:nth-child(2) { background: #f4d59a; }
.mockup__bar i:nth-child(3) { background: #b9d9bd; }
.mockup__bar span { margin-left: auto; font-size: 11px; color: var(--ink-3); }
.mockup img { width: 100%; height: auto; }
.mockup__note {
  position: absolute; left: 12px; bottom: 12px;
  font-size: 11px; color: var(--ink-3); background: rgba(255, 255, 255, .9);
  border: 1px solid var(--line); padding: 4px 10px; border-radius: 6px;
}
.hero__float {
  position: absolute; right: 0; bottom: -20px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px; box-shadow: var(--shadow); font-size: 13px; font-weight: 700;
  color: var(--brown-deep); display: flex; align-items: center; gap: 9px;
}
.hero__float b { color: var(--green); font-size: 18px; }

/* ---------- 卡片通用 ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #dfc7a9; }
.card__icon {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: var(--orange-soft); color: var(--orange-deep); margin-bottom: 20px;
}
.card__icon svg { width: 25px; height: 25px; }
.card h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 15px; }

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

/* ---------- 初衷 Story ---------- */
.story { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.story__quote {
  font-size: clamp(22px, 2.8vw, 30px); font-weight: 800; line-height: 1.55;
  color: var(--brown-deep); padding-left: 22px; border-left: 4px solid var(--orange);
}
.story__body p { color: var(--ink-2); margin-bottom: 18px; font-size: 16px; }
.story__body p:last-child { margin-bottom: 0; }
.story__body strong { color: var(--brown-deep); }
.story__sign {
  margin-top: 26px; display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; color: var(--orange-deep); font-size: 17px;
}

/* ---------- 价值 Value ---------- */
.value-card__who {
  font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--orange-deep);
  background: var(--orange-soft); padding: 5px 11px; border-radius: 6px; display: inline-block; margin-bottom: 16px;
}
.value-list { list-style: none; margin-top: 18px; display: grid; gap: 9px; }
.value-list li { display: flex; gap: 9px; font-size: 14px; color: var(--ink-2); }
.value-list li::before { content: "✓"; color: var(--green); font-weight: 800; flex-shrink: 0; }

/* ---------- 功能 Features（图文交错） ---------- */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 44px 0; border-bottom: 1px solid var(--line);
}
.feature-row:last-child { border-bottom: 0; }
.feature-row--rev .feature-row__media { order: 2; }
.feature-row__no {
  font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--orange-deep);
}
.feature-row h3 { font-size: 25px; font-weight: 800; margin: 10px 0 14px; }
.feature-row p { color: var(--ink-2); }
.feature-row ul { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.feature-row li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.feature-row li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange);
  flex-shrink: 0; margin-top: 10px;
}
.feature-row__media img {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow); background: #fff;
}

/* 板块全景 */
.blocks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 42px; }
.block {
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 11px; padding: 15px 16px; transition: background .2s, transform .2s;
}
.block:hover { background: rgba(255, 255, 255, .18); transform: translateY(-3px); }
.block b { display: block; font-size: 15px; font-weight: 800; margin-bottom: 3px; }
.block span { font-size: 12.5px; color: rgba(255, 248, 239, .76); line-height: 1.6; }

/* ---------- 架构/合规 Trust ---------- */
.arch-card--dark { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .2); color: #fff8ef; }
.arch-card--dark .card__icon { background: rgba(255, 255, 255, .16); color: #ffd9bb; }
.arch-card--dark p { color: rgba(255, 248, 239, .82); }

.channel-note {
  margin-top: 38px; background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--radius); padding: 28px;
}
.channel-note h3 { font-size: 19px; margin-bottom: 10px; }
.channel-note p { font-size: 14.5px; color: rgba(255, 248, 239, .82); }
.channel-grid { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px; margin-top: 20px; }
.channel-grid li { font-size: 14px; color: rgba(255, 248, 239, .9); display: flex; gap: 9px; }
.channel-grid li i {
  font-style: normal; flex-shrink: 0; font-size: 11px; font-weight: 800;
  padding: 1px 8px; border-radius: 5px; height: fit-content; margin-top: 3px;
  background: rgba(255, 255, 255, .16); color: #ffe3cc;
}
.channel-grid li i.off { background: rgba(120, 200, 155, .22); color: #bff0d3; }

/* ---------- 增值服务 ---------- */
.vas-flow {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 12px; margin: 34px 0 8px; font-size: 14px; font-weight: 700; color: var(--brown-deep);
}
.vas-flow span { background: #fff; border: 1px solid var(--line); padding: 9px 18px; border-radius: 9px; }
.vas-flow i { color: var(--orange); font-style: normal; }
.vas-note {
  margin-top: 26px; padding: 16px 20px; border-radius: 10px;
  background: var(--green-soft); border: 1px solid #cfe8da;
  font-size: 14px; color: #235c45; display: flex; gap: 10px; align-items: flex-start;
}
.vas-note b { flex-shrink: 0; }

/* ---------- 版本对比 ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { padding: 17px 22px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
thead th { background: var(--cream-2); font-weight: 800; color: var(--brown-deep); font-size: 15px; }
thead th:not(:first-child) { text-align: center; width: 24%; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fffcf7; }
td:not(:first-child) { text-align: center; font-weight: 700; }
.yes { color: var(--green); }
.no { color: #b9aa98; }
th.hl { position: relative; }
th.hl::after {
  content: "推荐门店"; position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: #fff; font-size: 10.5px; font-weight: 800;
  padding: 2px 10px; border-radius: 999px; white-space: nowrap;
}
.price-note {
  margin-top: 24px; padding: 22px 26px; border-radius: 12px;
  background: var(--orange-soft); border: 1px dashed #f6bd97;
  font-size: 15.5px; font-weight: 700; color: var(--brown-deep);
  display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap;
}
.price-note b { color: var(--orange-deep); }

/* 待填占位高亮 */
.needs-fill {
  background: #fff3cd; border-bottom: 2px dotted #d99a20;
  padding: 0 4px; border-radius: 3px; color: #7a5310; font-weight: 800;
}

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about p { color: var(--ink-2); margin-bottom: 16px; }
.contact-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.contact-box h3 { font-size: 20px; margin-bottom: 22px; }
.contact-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.contact-item:last-of-type { border-bottom: 0; }
.contact-item__k { width: 88px; flex-shrink: 0; font-size: 13.5px; color: var(--ink-3); font-weight: 700; }
.contact-item__v { font-size: 15px; font-weight: 700; color: var(--brown-deep); word-break: break-all; }
.contact-box .btn { margin-top: 24px; }
.about__notice {
  margin-top: 18px; font-size: 13px; color: var(--ink-3); line-height: 1.7;
  padding: 14px 16px; background: var(--cream); border-radius: 10px; border: 1px solid var(--line);
}

/* ---------- Footer ---------- */
.footer { background: #2c241c; color: #e8ddd0; padding: 56px 0 28px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; padding-bottom: 38px; }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__sub { color: #a89a8a; }
.footer p { font-size: 13.5px; color: #a89a8a; margin-top: 14px; max-width: 340px; }
.footer h4 { font-size: 14px; color: #fff; margin-bottom: 16px; }
.footer__links { list-style: none; display: grid; gap: 10px; }
.footer__links button, .footer__links a {
  background: none; border: 0; padding: 0; text-align: left; font-size: 13.5px;
  color: #c4b7a7; transition: color .2s;
}
.footer__links button:hover, .footer__links a:hover { color: var(--orange); }
.disclaimer {
  border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 24px;
  font-size: 12.5px; color: #968878; line-height: 1.85;
}
/* 主办单位与主体信息（中国香港节点部署，免 ICP 备案） */
.footer__filing {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  margin-top: 16px; padding-top: 12px; border-top: 1px dashed rgba(150, 136, 120, .28);
  font-size: 12.5px; color: #968878;
}
.footer__filing a { color: #968878; text-decoration: none; border-bottom: 1px solid rgba(150, 136, 120, .45); }
.footer__filing a:hover { color: var(--orange-deep); border-bottom-color: var(--orange-deep); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 14px; font-size: 12.5px; color: #968878;
}
.modal__body table.legal-table { width: 100%; min-width: 0; table-layout: fixed; }
.modal__body table.legal-table th, .modal__body table.legal-table td { word-break: break-word; }
/* 小屏：法规类表格改竖排卡片，避免被挤成窄条 */
@media (max-width: 560px) {
  .modal__body table.legal-table { display: block; }
  .modal__body table.legal-table colgroup,
  .modal__body table.legal-table thead { display: none; }
  .modal__body table.legal-table tbody { display: block; }
  .modal__body table.legal-table tr {
    display: block; margin-bottom: 10px; border: 1px solid var(--line);
    border-radius: 10px; overflow: hidden; background: #fff;
  }
  .modal__body table.legal-table td {
    display: block; width: auto !important; border: 0; padding: 8px 12px;
    font-size: 13px; line-height: 1.75;
  }
  .modal__body table.legal-table td + td { border-top: 1px dashed var(--line); }
  .modal__body table.legal-table td::before {
    content: attr(data-label); display: block;
    font-size: 11.5px; font-weight: 700; color: var(--ink-3);
    letter-spacing: .02em; margin-bottom: 2px;
  }
}
.legal-p { margin: 12px 0 0; font-size: 13.5px; line-height: 1.9; color: var(--ink-2); }
.modal__body h3 { margin: 18px 0 6px; font-size: 15px; color: var(--brown-deep); }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 20px;
}
.modal.is-open { display: flex; }
.modal__mask { position: absolute; inset: 0; background: rgba(30, 22, 14, .62); backdrop-filter: blur(3px); }
.modal__panel {
  position: relative; width: min(100%, 720px); max-height: min(84vh, 900px);
  background: #fff; border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
  display: flex; flex-direction: column; overflow: hidden;
  animation: modalIn .22s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__head {
  padding: 22px 26px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-shrink: 0;
}
.modal__head h3 { font-size: 20px; font-weight: 800; }
.modal__close {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); font-size: 20px; line-height: 1;
  display: grid; place-items: center; flex-shrink: 0;
}
.modal__close:hover { background: var(--cream); color: var(--orange-deep); }
.modal__body { padding: 26px; overflow-y: auto; font-size: 14.5px; color: var(--ink-2); }
.modal__body h4 { font-size: 16px; color: var(--ink); margin: 22px 0 8px; font-weight: 800; }
.modal__body h4:first-child { margin-top: 0; }
.modal__body p { margin-bottom: 12px; }
.modal__body ul, .modal__body ol { padding-left: 20px; margin: 8px 0 14px; display: grid; gap: 6px; }
.modal__body li { padding-left: 2px; }
.modal__body strong { color: var(--brown-deep); }
.modal__body table { min-width: 480px; margin: 12px 0; font-size: 13px; }
.modal__body th, .modal__body td { padding: 9px 12px; }
.callout {
  background: var(--cream); border-left: 3px solid var(--orange);
  padding: 14px 16px; border-radius: 0 8px 8px 0; margin: 16px 0; font-size: 13.5px;
}
.callout--green { background: var(--green-soft); border-left-color: var(--green); }
.modal__cta {
  margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; gap: 10px; flex-wrap: wrap;
}
.contact-grid { display: grid; gap: 12px; margin: 18px 0; }
.contact-grid div {
  display: flex; gap: 12px; align-items: baseline; padding: 14px 16px;
  background: var(--cream); border-radius: 10px; border: 1px solid var(--line);
}
.contact-grid dt { width: 86px; flex-shrink: 0; font-size: 13px; color: var(--ink-3); font-weight: 700; }
.contact-grid dd { margin: 0; font-size: 15px; font-weight: 800; color: var(--brown-deep); word-break: break-all; }
body.modal-open { overflow: hidden; }

/* ---------- 响应式 ---------- */
/* 导航折叠断点：10 项内联导航在 <1180px 会把「获取软件」挤出视口，提前收进汉堡菜单 */
@media (max-width: 1180px) {
  .nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fffaf3; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    flex-direction: column; align-items: stretch; padding: 12px 20px 18px; gap: 2px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 11px 14px; }
  .menu-toggle { display: flex; }
  .header__cta { margin-left: auto; }
}

@media (max-width: 1024px) {
  .hero__grid, .story, .about { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 60px 0 72px; }
  .hero__float { right: 4px; }
  .feature-row { grid-template-columns: 1fr; gap: 26px; padding: 34px 0; }
  .feature-row--rev .feature-row__media { order: 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .blocks { grid-template-columns: repeat(3, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .wrap { width: min(100% - 28px, var(--max)); }
  .section { padding: 64px 0; }
  .sec-head { margin-bottom: 34px; }
  .header__cta .btn { display: none; }
  .hero h1 { font-size: 34px; }
  .hero__sub { font-size: 16px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .grid-3, .grid-2, .channel-grid { grid-template-columns: 1fr; }
  .blocks { grid-template-columns: repeat(2, 1fr); }
  .card { padding: 24px; }
  .feature-row h3 { font-size: 22px; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
  .modal__head { padding: 18px 20px; }
  .modal__body { padding: 20px; }
  .hero__float { display: none; }
  .mockup { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
  .header, .footer, .btn, .modal { display: none !important; }
  .section { padding: 24px 0; }
}


/* ===== R2: 真实界面与板块明细 ===== */

/* 痛点 → 做法 */
.pains { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.pain {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 24px; box-shadow: var(--shadow);
  transition: transform .3s ease, border-color .3s ease;
}
.pain:hover { transform: translateY(-3px); border-color: #e0c9a9; }
.pain__q {
  font-size: 14.5px; color: var(--ink-2); line-height: 1.75;
  padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px dashed var(--line);
}
.pain__q b { display: block; font-size: 17px; color: var(--brown-deep); font-weight: 800; margin-bottom: 8px; }
.pain__a { font-size: 14.5px; color: var(--ink-2); line-height: 1.8; }
.pain__a span {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--orange-deep);
  background: var(--orange-soft); border-radius: 999px; padding: 3px 10px; margin-right: 8px;
  vertical-align: 1px;
}

/* 核心功能大图 */
.feature-row__media { margin: 0; }
.feature-row__media figcaption {
  margin-top: 12px; font-size: 12.5px; color: var(--ink-3); line-height: 1.7;
  padding-left: 2px;
}
/* height 属性 + width:100% 会让图片按属性高度拉伸，必须显式 auto */
.feature-row__media img { display: block; width: 100%; height: auto; }

/* 板块实拍图集 */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.shot {
  margin: 0; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}
.shot:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.shot img { width: 100%; height: auto; display: block; border-bottom: 1px solid var(--line); background: #f7f4ef; }
.shot figcaption { padding: 16px 20px 18px; }
.shot figcaption b { display: block; font-size: 16.5px; font-weight: 800; color: var(--brown-deep); margin-bottom: 7px; }
.shot figcaption span { font-size: 14px; color: var(--ink-2); line-height: 1.75; }

/* 十二板块（深色区） */
.mods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.mod {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-sm); padding: 20px 20px 18px;
  transition: background .3s ease, border-color .3s ease;
}
.mod:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }
.mod b { display: block; font-size: 16px; font-weight: 800; color: #fff8ef; margin-bottom: 9px; }
.mod span { font-size: 13.5px; line-height: 1.72; color: rgba(255, 248, 239, .8); }
.mods-note {
  margin-top: 26px; font-size: 13px; line-height: 1.8; color: rgba(255, 248, 239, .68);
  border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 18px;
}

@media (max-width: 1024px) {
  .pains { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .mods { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .mods { grid-template-columns: 1fr; }
  .pain { padding: 20px 18px; }
}

/* 首屏：真实截图给更多空间、取消旋转（旋转会让界面文字发虚） */
.hero__grid { grid-template-columns: .92fr 1.08fr; gap: 52px; }
.mockup { transform: none; }
.mockup:hover { transform: translateY(-4px); }
.mockup img, .shot img, .feature-row__media img { cursor: zoom-in; }

/* 界面大图查看 */
.lightbox { display: none; position: fixed; inset: 0; z-index: 200; }
.lightbox.is-open { display: flex; align-items: center; justify-content: center; }
.lightbox__mask { position: absolute; inset: 0; background: rgba(26, 18, 11, .9); }
.lightbox__fig {
  position: relative; margin: 0; display: flex; flex-direction: column;
  align-items: center; gap: 14px; max-width: 94vw;
}
.lightbox__fig img {
  display: block; max-width: 94vw; max-height: 80vh; width: auto; height: auto;
  border-radius: 12px; background: #fff; box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
}
.lightbox__fig figcaption {
  max-width: 880px; padding: 0 14px; color: #efe2d3; font-size: 13px;
  line-height: 1.7; text-align: center;
}
.lightbox__close {
  position: absolute; top: -44px; right: -4px; width: 36px; height: 36px;
  border-radius: 50%; cursor: pointer; font-size: 20px; line-height: 1;
  color: #fff; border: 1px solid rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .14); transition: background .2s ease;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .3); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .lightbox__fig img { max-height: 72vh; }
  .lightbox__close { top: -46px; right: 2px; }
}

/* 图文栏：给界面截图更多宽度（读细节），并让 --rev 真正左右交替 */
@media (min-width: 901px) {
  .feature-row { grid-template-columns: .78fr 1.22fr; gap: 44px; }
  .feature-row--rev { grid-template-columns: 1.22fr .78fr; }
  .feature-row--rev .feature-row__media { order: 0; }
  .feature-row--rev .feature-row__text { order: 2; }
}

/* ---------- 浅底说明卡（原 .channel-note 为深底设计，浅底需整套覆盖） ---------- */
.channel-note--light {
  background: var(--cream); border-color: var(--line); margin-top: 32px;
}
.channel-note--light .channel-note__foot { margin-top: 16px; font-size: 13.5px; }
.channel-note--light h3 { color: var(--brown-deep); }
.channel-note--light p { color: var(--ink-2); }
.channel-note--light .channel-grid li { color: var(--ink-2); }
.channel-note--light .channel-grid li i {
  background: #fde9d2; color: #8a4a12; border: 1px solid #f5cfa5;
}
.channel-note--light .channel-grid li i.off {
  background: #e6f4ea; color: #1f6b3f; border: 1px solid #c3e4d0;
}

/* ---------- 多端支持 ---------- */
.device-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.device-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px;
}
.device-card__icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: #fff0e0; color: var(--orange, #e07b39); flex-shrink: 0;
}
.device-card__icon svg { width: 22px; height: 22px; }
.device-card h3 { font-size: 17px; color: var(--brown-deep); }
.device-card p { font-size: 14px; color: var(--ink-2); line-height: 1.75; }
.device-card__meta {
  margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line);
  font-size: 12.5px; color: var(--ink-3, #97796a);
}
.device-card__meta b { color: var(--brown-deep); font-weight: 700; }

.device-flow {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 12px; margin: 32px 0 0; font-size: 14px; font-weight: 700; color: var(--brown-deep);
}
.device-flow i {
  font-style: normal; color: var(--orange, #e07b39); font-weight: 800;
}

.device-table-note {
  margin-top: 26px; font-size: 13.5px; color: var(--ink-2); line-height: 1.8;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px;
}
.device-table-note b { color: var(--brown-deep); }

@media (max-width: 1024px) {
  .device-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .device-grid { grid-template-columns: 1fr; }
  .device-flow { font-size: 13px; gap: 8px; }
}

/* ---------- 版权与协议 ---------- */
.legal-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px;
}
/* 页脚为深色底（#2c241c），此处一律用浅色字，避免深底深字 */
.legal-item {
  border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 15px;
}
.legal-item h4 {
  font-size: 14px; color: #f2e7da; margin-bottom: 8px;
  display: flex; align-items: center; gap: 7px;
}
.legal-item h4::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--orange); flex-shrink: 0;
}
.legal-item p {
  font-size: 13px; color: #b3a496; line-height: 1.9; max-width: none; margin-top: 0;
}
.legal-item button {
  font: inherit; font-size: 13px; color: var(--orange); font-weight: 700; margin: 0 .5px;
  background: none; border: 0; padding: 0; cursor: pointer;
  border-bottom: 1px solid rgba(255, 120, 44, .55);
  transition: color .2s;
}
.legal-item button:hover { color: #ffa976; }
@media (max-width: 768px) { .legal-grid { grid-template-columns: 1fr; gap: 14px; } }

/* 通道标签：11px 偏小，浅底上略放大并加字距 */
.channel-note--light .channel-grid li i {
  font-size: 12px; padding: 2px 9px; letter-spacing: .02em;
}

/* 手机端表格横向滚动提示（仅窄屏显示） */
.table-hint { display: none; }
@media (max-width: 768px) {
  .table-hint {
    display: block; font-size: 12.5px; color: #85745f; margin: 26px 0 8px;
    font-weight: 700;
  }
}

/* ---------- 多端支持 V2：服务端 / 使用端两层结构 ---------- */
.device-grid.device-grid--2 { grid-template-columns: repeat(2, 1fr); }
.device-grid.device-grid--3 { grid-template-columns: repeat(3, 1fr); }

.device-group__title {
  display: flex; align-items: center; gap: 11px;
  font-size: 17px; font-weight: 800; color: var(--brown-deep); margin: 4px 0 18px;
}
.device-group__title span {
  display: inline-grid; place-items: center; width: 30px; height: 30px;
  border-radius: 9px; background: var(--orange); color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: .02em; flex-shrink: 0;
}
.device-grid + .device-group__title { margin-top: 42px; }

.device-paths { margin-top: 34px; display: grid; gap: 10px; }
.device-path {
  display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px; font-size: 13.5px; color: var(--ink-2); line-height: 1.85;
}
.device-path b { color: var(--brown-deep); min-width: 88px; flex-shrink: 0; }
.device-path i { font-style: normal; color: var(--orange); font-weight: 800; }

.device-table-label {
  margin-top: 42px; font-size: 19px; font-weight: 800; color: var(--brown-deep);
}
.device-table-sub {
  margin-top: 8px; font-size: 13.5px; color: var(--ink-2); line-height: 1.8; max-width: 900px;
}
#devices .table-wrap { margin-top: 14px; }

@media (max-width: 1024px) {
  .device-grid.device-grid--2,
  .device-grid.device-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .device-grid.device-grid--2,
  .device-grid.device-grid--3 { grid-template-columns: 1fr; }
  .device-grid + .device-group__title { margin-top: 32px; }
  .device-group__title { font-size: 16px; }
  .device-path { flex-direction: column; gap: 4px; }
  .device-path b { min-width: 0; }
}

/* 深色板块区里的锚点链接要能看出可点 */
.mods-note a {
  color: #ffe3cc; text-decoration: underline; text-underline-offset: 3px;
  font-weight: 700; transition: color .2s;
}
.mods-note a:hover { color: #fff; }

/* 标题后半句整体换行，避免窄屏出现孤字 */
.sec-title .nowrap { white-space: nowrap; }

/* ============ 申请试用 / 留资表单 ============ */
.lead { max-width: 760px; margin: 0 auto; }
.lead-form {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
}
.lead-fields { display: grid; gap: 18px; }
.form-row { display: grid; gap: 8px; }
.form-row label { font-weight: 700; font-size: 15px; color: var(--ink); }
.form-row .req { color: var(--orange-deep); margin-left: 2px; }
/* 联系方式：先选类型（微信/手机号/QQ/邮箱/其他），再填内容 */
.contact-pair { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 10px; }
.contact-pair .contact-pair__type {
  cursor: pointer; font-weight: 700; color: var(--ink-2);
  background: var(--cream); padding-right: 8px;
}
.contact-pair .contact-pair__type:focus { background: #fff; }
@media (max-width: 520px) {
  .contact-pair { grid-template-columns: 104px minmax(0, 1fr); gap: 8px; }
}
.lead-result__hint { margin-top: 12px; font-size: 14px; line-height: 1.8; color: var(--green); }
.lead-send-state { margin-top: 12px; padding: 10px 14px; border-radius: 10px; font-size: 15px; font-weight: 700; line-height: 1.7; }
.lead-send-state[data-kind="sending"] { color: var(--ink-2); background: var(--cream-2); }
.lead-send-state[data-kind="ok"] { color: var(--green); background: #e9f7ef; border: 1px solid #cfe9dc; }
.lead-send-state[data-kind="err"] { color: #b23a2e; background: #fdf1ef; border: 1px solid #f0d2cc; }
.lead-result__hint code { background: #fff; border: 1px solid #cfe9dc; border-radius: 5px; padding: 1px 6px; font-size: 13px; }
.form-control {
  width: 100%; font: inherit; color: var(--ink);
  padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .2s, box-shadow .2s;
}
.form-control:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
textarea.form-control { resize: vertical; min-height: 84px; line-height: 1.7; }
.form-control.is-invalid { border-color: #d6453a; box-shadow: 0 0 0 3px rgba(214, 69, 58, .12); }
.lead-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.lead-consent input { margin-top: 5px; width: 16px; height: 16px; flex: none; accent-color: var(--orange); }
.lead-consent.is-invalid { color: #d6453a; }
.lead-actions { margin-top: 22px; }
.lead-note { margin-top: 16px; font-size: 13px; color: var(--ink-3); line-height: 1.8; }
.lead-note strong { color: var(--ink-2); }

.lead-result {
  margin-top: 24px; background: var(--green-soft); border: 1px solid #cfe9dc;
  border-radius: var(--radius); padding: 24px;
}
.lead-result__title { font-size: 20px; color: var(--green); }
.lead-result p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.lead-result__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.lead-preview {
  margin-top: 12px; background: #0f2a20; color: #d7f5e6; border-radius: var(--radius-sm);
  padding: 16px; font-size: 12.5px; line-height: 1.6; max-height: 240px; overflow: auto;
  white-space: pre-wrap; word-break: break-all;
}

/* ============ 关注我们 / 社交卡 ============ */
.social-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px;
  max-width: 760px; margin: 0 auto;
}
.social-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.social-card__icon {
  flex: none; width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; font-size: 26px;
  background: var(--orange-soft); color: var(--orange-deep);
}
.social-card__body { flex: 1; min-width: 0; }
.social-card__platform { font-weight: 800; font-size: 16px; color: var(--brown-deep); }
.social-card__account { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: 15px; }
.social-card__label { color: var(--ink-3); font-size: 13px; }
.social-card__account code {
  background: var(--cream-2); border: 1px solid var(--line); border-radius: 6px;
  padding: 2px 8px; font-size: 15px; color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.social-card__hint { font-size: 13.5px; color: var(--ink-3); line-height: 1.7; margin: 4px 0 14px; }
.follow-note { margin-top: 22px; text-align: center; font-size: 14px; color: var(--ink-3); }
.follow-note strong { color: var(--ink-2); }

/* ============ 后台入口（页脚） ============ */
.footer__admin { margin-top: 6px; }
.footer__admin a { color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.footer__admin a:hover { color: var(--orange-deep); }

/* ============ 章节滑条（右侧浮动目录，默认折叠，可展开 / 带阅读进度） ============ */
.rail {
  position: fixed; top: 50%; right: 14px; transform: translateY(-50%);
  z-index: 45;
  width: 48px; padding: 8px 7px 10px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(107, 68, 32, .14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: width .2s ease, padding .2s ease, box-shadow .2s ease;
}
.rail:hover, .rail.is-open { width: 176px; padding: 8px 10px 10px; box-shadow: var(--shadow-lg); }

.rail__toggle {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 6px 0; border: 0; border-radius: 8px;
  background: transparent; color: var(--ink-3);
  font-size: 12px; font-weight: 800; letter-spacing: .06em; white-space: nowrap;
  justify-content: center;
  transition: color .18s, background .18s;
}
.rail:hover .rail__toggle, .rail.is-open .rail__toggle { justify-content: flex-start; padding-left: 4px; }
.rail__toggle:hover { color: var(--brown-deep); background: var(--cream); }
.rail__toggle svg { width: 16px; height: 16px; flex-shrink: 0; }
.rail__toggle-text { display: none; }
.rail:hover .rail__toggle-text, .rail.is-open .rail__toggle-text { display: inline; }

.rail__list {
  position: relative; margin: 0; padding: 6px 0 2px; list-style: none;
  max-height: min(64vh, 520px); overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin;
}
.rail__list::-webkit-scrollbar { width: 4px; }
.rail__list::-webkit-scrollbar-thumb { background: #e2d2bb; border-radius: 4px; }
/* 竖向滑条：底轨 + 已读进度（进度随滚动增长） */
.rail__list::before {
  content: ''; position: absolute; left: 50%; margin-left: -1px; top: 8px; bottom: 10px;
  width: 2px; border-radius: 2px; background: #e2cbb0;
}
.rail__spine {
  position: absolute; left: 50%; margin-left: -1px; top: 8px; bottom: 10px;
  width: 2px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(var(--orange), var(--orange-deep));
  transform: scaleY(0); transform-origin: top;
  transition: transform .12s linear;
}
.rail:hover .rail__list::before, .rail.is-open .rail__list::before,
.rail:hover .rail__spine, .rail.is-open .rail__spine { left: 7px; margin-left: 0; }

.rail__item a {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 24px; padding: 2px 0; border-radius: 7px;
  font-size: 12.5px; font-weight: 600; line-height: 1.5; color: var(--ink-3);
  white-space: nowrap; overflow: hidden;
  transition: color .16s, background .16s;
}
.rail:hover .rail__item a, .rail.is-open .rail__item a { justify-content: flex-start; padding: 2px 6px 2px 4px; }
.rail__dot {
  width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%;
  background: #d3b997; box-shadow: 0 0 0 2px rgba(255, 255, 255, .95);
  transition: background .16s, box-shadow .16s, transform .16s;
}
.rail__label { display: none; }
.rail:hover .rail__label, .rail.is-open .rail__label { display: inline; }

.rail__item a:hover { color: var(--brown-deep); background: var(--cream-2); }
.rail__item a:hover .rail__dot { background: var(--brown-soft); }
.rail__item.is-active a { color: var(--orange-deep); background: var(--orange-soft); font-weight: 800; }
.rail__item.is-active .rail__dot {
  background: var(--orange); transform: scale(1.2);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(255, 120, 44, .22);
}
.rail__item a:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }

/* 中等宽度：收得更窄、更贴边，避免遮挡正文末行 */
@media (max-width: 1280px) {
  .rail { width: 40px; right: 8px; padding: 7px 5px 9px; }
}
@media (max-width: 1023px) { .rail { display: none; } }
@media (prefers-reduced-motion: reduce) { .rail, .rail__spine, .rail__dot { transition: none; } }

/* ============ 管理后台 admin.html（软件式左菜单 + 分板块面板） ============ */
/* 登录 */
.admin-login { max-width: 400px; margin: 12vh auto 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.admin-login h1 { font-size: 22px; color: var(--brown-deep); margin-bottom: 6px; }
.admin-login p { font-size: 13px; color: var(--ink-3); margin-bottom: 18px; }
.admin-login .admin-field { margin-bottom: 16px; }

/* 整体：左菜单 + 右内容 */
.admin-app { display: none; }
.admin-app.is-open { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; background: var(--cream-2); }

/* 左侧菜单 */
.admin-side {
  position: sticky; top: 0; align-self: start; height: 100vh;
  display: flex; flex-direction: column; padding: 18px 12px;
  background: #fff; border-right: 1px solid var(--line);
}
.admin-side__brand { display: flex; align-items: center; gap: 8px; padding: 6px 10px 16px; font-size: 15px; font-weight: 800; color: var(--brown-deep); }
.admin-menu { display: flex; flex-direction: column; gap: 4px; }
.admin-menu button {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 10px 12px; border: 0; background: transparent; border-radius: 10px;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-2);
  text-align: left; cursor: pointer; transition: background .15s, color .15s;
}
.admin-menu button .ico { width: 20px; text-align: center; font-size: 15px; }
.admin-menu button:hover { background: var(--cream); color: var(--brown-deep); }
.admin-menu button.is-active { background: var(--orange-soft); color: var(--orange-deep); }
.admin-side__foot { margin-top: auto; padding: 10px; font-size: 13px; }
.admin-side__foot a { color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.admin-side__foot a:hover { color: var(--orange-deep); }

/* 右侧主区 */
.admin-main { min-width: 0; padding-bottom: 64px; }
.admin-top {
  position: sticky; top: 0; z-index: 6;
  display: flex; align-items: center; gap: 16px;
  padding: 14px 26px; background: rgba(255,255,255,.95);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(8px);
}
.admin-top h1 { font-size: 18px; font-weight: 800; color: var(--brown-deep); }
.admin-top__actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.admin-save-state { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.admin-save-state[data-state="saved"] { color: var(--green); font-weight: 700; }
.admin-save-state[data-state="dirty"] { color: var(--orange-deep); font-weight: 700; }

/* 面板：同一时刻只显示一个 */
.admin-panel { display: none; padding: 22px 26px; }
.admin-panel.is-active { display: block; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); max-width: 1000px; }
.admin-card + .admin-card { margin-top: 16px; }
.admin-card h2 { font-size: 16px; font-weight: 800; color: var(--brown-deep); margin-bottom: 12px; }

/* 字段 */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 16px; }
.admin-field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.admin-field > label, .admin-field > span { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.admin-field input, .admin-field textarea, .admin-field select {
  width: 100%; min-width: 0; font: inherit; font-size: 14px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
.admin-field input:focus, .admin-field textarea:focus { outline: 2px solid var(--orange-soft); border-color: var(--orange); }
.admin-field textarea { resize: vertical; min-height: 64px; line-height: 1.6; }

/* 动态行（社交 / 留资字段）：网格列布局，删除按钮独立一列，不再挤压重叠 */
.admin-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1.9fr auto; gap: 12px; align-items: end;
  padding: 14px; margin-bottom: 12px; background: var(--cream);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.admin-row .admin-field { gap: 5px; }
.admin-row.admin-row--field { grid-template-columns: 1fr 1.1fr 1.6fr 82px auto; }
.admin-row .admin-check { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.admin-row .admin-check input { width: auto; }
.admin-del { height: 40px; padding: 0 14px; font: inherit; font-size: 13px; white-space: nowrap; color: #d6453a; border: 1px solid #eccac6; background: #fff; border-radius: var(--radius-sm); cursor: pointer; }
.admin-del:hover { background: #fff5f4; }
.admin-del.admin-mini { height: 34px; }
.admin-add { margin-top: 2px; }

/* 板块显隐 */
.admin-section-toggles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 14px; }
.admin-toggle { display: flex; align-items: center; gap: 9px; padding: 10px 12px; font-size: 14px; font-weight: 600; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.admin-toggle input { width: auto; }
.admin-toggle.is-on { border-color: #cfe6da; background: var(--green-soft); color: var(--green); }

/* 图片替换 */
.admin-image { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.admin-image:last-child { border-bottom: 0; }
.admin-image__preview img { width: 100%; max-width: 200px; height: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--cream); }
.admin-image__body { min-width: 0; }
.admin-image__body .admin-field + .admin-field { margin-top: 8px; }
.admin-image__body input[type="text"] { font-size: 12.5px; }

/* 文案分组 */
.admin-text-group { font-size: 14px; font-weight: 800; color: var(--brown-deep); margin: 20px 0 10px; padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.admin-text-group:first-child { margin-top: 0; }
.admin-texts .admin-field { margin-bottom: 10px; }
.admin-texts .admin-field label { font-weight: 600; color: var(--ink-3); font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* 表格 / 说明 / 导出 / 操作 */
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.admin-table th { background: var(--cream-2); color: var(--brown-deep); }

/* ===== 留资记录（查看 / 搜索 / 详情） ===== */
.lead-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 4px; }
.lead-stat {
  flex: 1 1 118px; min-width: 0;
  display: flex; flex-direction: column; gap: 4px;
  padding: 11px 14px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.lead-stat span { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.lead-stat strong { font-size: 21px; line-height: 1.15; color: var(--orange-deep); font-variant-numeric: tabular-nums; }

.lead-search {
  flex: 1 1 220px; min-width: 0; height: 36px; padding: 0 12px;
  font: inherit; font-size: 13px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.lead-search:focus { outline: 2px solid var(--orange-soft); border-color: var(--orange); }

.lead-table-wrap { overflow: auto; margin-top: 12px; max-height: 520px; border-radius: var(--radius-sm); }
.lead-table th { position: sticky; top: 0; z-index: 1; white-space: nowrap; }
.lead-table td { max-width: 260px; word-break: break-word; }
.lead-table .col-time { white-space: nowrap; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lead-table .col-id {
  white-space: nowrap; font-family: ui-monospace, Consolas, monospace;
  font-size: 12px; color: var(--ink-3);
}
.lead-table .col-store { white-space: nowrap; }
.lead-table td.col-need { max-width: 320px; }
.lead-table .col-op { white-space: nowrap; width: 1%; }
.lead-table tbody tr { cursor: pointer; }
.lead-table tbody tr:hover { background: #fffaf3; }
.lead-table tbody tr.is-open { background: var(--orange-soft); }
.lead-empty { padding: 30px 14px; text-align: center; font-size: 13px; line-height: 1.9; color: var(--ink-3); }

.lead-mini {
  height: 26px; margin-right: 6px; padding: 0 10px;
  font: inherit; font-size: 12px; font-weight: 600;
  color: var(--orange-deep); background: #fff;
  border: 1px solid #f0d7b4; border-radius: 7px; cursor: pointer;
  white-space: nowrap;
}
.lead-mini:hover { background: var(--orange-soft); }
.lead-mini--del { color: #d6453a; border-color: #eccac6; }
.lead-mini--del:hover { background: #fdf0ee; }

.lead-detail { margin-top: 14px; padding: 16px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.lead-detail__head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.lead-detail__head strong { font-size: 14px; color: var(--brown-deep); }
.lead-detail__head .admin-note { margin-right: auto; }
.lead-detail__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 20px; margin: 0; }
.lead-detail__row { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.lead-detail__row--wide { grid-column: 1 / -1; }
.lead-detail__row dt { font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.lead-detail__row dd { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--ink); word-break: break-word; }
.lead-detail__raw {
  margin: 14px 0 0; padding: 12px 14px; max-height: 220px; overflow: auto;
  font-family: ui-monospace, Consolas, monospace; font-size: 12px; line-height: 1.65;
  color: #d7e4dc; background: #223c31; border-radius: 8px;
}
@media (max-width: 860px) {
  .lead-stats { gap: 8px; }
  .lead-stat { flex: 1 1 44%; }
  .lead-table-wrap { max-height: none; }
  .lead-table td { max-width: 160px; }
  .lead-detail__list { grid-template-columns: 1fr; }
  .lead-detail__row { grid-template-columns: 76px minmax(0, 1fr); }
}

.admin-note { font-size: 13px; color: var(--ink-3); line-height: 1.8; }
.admin-note code { background: var(--cream-2); padding: 1px 6px; border-radius: 5px; }

/* 留资「当前模式」状态条：一眼区分自动发信 / 访客手动发信 */
.admin-mode {
  margin: 0 0 14px; padding: 11px 14px;
  font-size: 13px; line-height: 1.8;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.admin-mode strong { font-weight: 700; }
.admin-mode[data-mode="auto"] { color: var(--green); background: var(--green-soft); border-color: #c6e3d4; }
.admin-mode[data-mode="manual"] { color: #8a4b12; background: #fff5e9; border-color: #f0d7b4; }
.admin-mode code { padding: 1px 6px; border-radius: 5px; background: rgba(255, 255, 255, .78); }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.admin-export textarea, #exportArea { width: 100%; min-height: 200px; margin-top: 12px; padding: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.5; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.admin-banner { background: var(--orange-soft); border: 1px solid #ffd2b3; color: var(--orange-deep); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px; margin-bottom: 16px; }

/* 响应式：窄屏菜单转为顶部横向标签 */
@media (max-width: 860px) {
  .admin-app.is-open { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; flex-direction: row; align-items: center; gap: 8px; overflow-x: auto; padding: 8px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-side__brand { display: none; }
  .admin-menu { flex-direction: row; gap: 6px; }
  .admin-menu button { white-space: nowrap; padding: 8px 10px; }
  .admin-side__foot { margin: 0 0 0 auto; padding: 0 6px; white-space: nowrap; }
  .admin-panel { padding: 16px; }
  .admin-top { padding: 12px 16px; }
  .admin-row, .admin-row.admin-row--field { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .admin-row, .admin-row.admin-row--field { grid-template-columns: 1fr; }
  .admin-image { grid-template-columns: 1fr; }
  .admin-image__preview img { max-width: 100%; }
  .admin-top__actions .admin-save-state { display: none; }
}

@media (max-width: 640px) {
  .lead-form { padding: 22px; }
  .lead-result__actions .btn { flex: 1 1 auto; }
}

/* ---------- 留资表单：可见的校验错误提示 ---------- */
.form-error {
  margin: 0 0 14px; padding: 10px 14px; border-radius: 8px;
  background: rgba(214, 69, 58, .08); border: 1px solid rgba(214, 69, 58, .28);
  color: #b5372e; font-size: 14px; font-weight: 600; line-height: 1.6;
}
.form-error[hidden] { display: none; }

/* 360~374px 窄屏：品牌名让位给汉堡按钮，避免 .menu-toggle 被压到 14px 并溢出视口 */
@media (max-width: 374px) {
  .header__inner { gap: 10px; }
  .brand { gap: 8px; flex-shrink: 1; min-width: 0; }
  .brand__mark { width: 34px; height: 34px; flex: 0 0 34px; }
  .brand > span:last-child { min-width: 0; overflow: hidden; }
  .brand__name { font-size: 16px; white-space: nowrap; }
  .brand__sub { display: none; }
  .menu-toggle { flex: 0 0 38px; width: 38px; height: 38px; }
}


/* ============ 回到顶部（滚动后浮现） ============ */
.to-top {
  position: fixed; right: 14px; bottom: 22px; z-index: 46;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; width: 48px; height: 48px; padding: 0;
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(255, 255, 255, .94); color: var(--orange-deep);
  box-shadow: 0 10px 28px rgba(107, 68, 32, .16);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  cursor: pointer; font: inherit;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease, background .2s ease, color .2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.to-top:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.to-top svg { width: 18px; height: 18px; }
.to-top__text { font-size: 10px; font-weight: 700; line-height: 1; letter-spacing: .04em; }
@media (max-width: 1023px) { .to-top { right: 10px; bottom: 16px; } }
@media (max-width: 374px) { .to-top { width: 42px; height: 42px; right: 8px; bottom: 12px; } }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }
