/* ============================================================
   企业官网管理系统 · 前台门户
   设计基调：浅色、理性、专业；深靛蓝主色 + 琥珀强调色
   ============================================================ */

:root {
  --p: #2b4acb;
  --p-dark: #1e37a0;
  --p-soft: #eef1fe;
  --a: #f59e0b;
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #64748b;
  --ink-4: #94a3b8;
  --line: #e6eaf3;
  --line-2: #d8dfec;
  --bg: #ffffff;
  --bg-soft: #f7f9fd;
  --bg-deep: #101a3a;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --wrap: 1320px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, .05);
  --shadow: 0 12px 32px -12px rgba(15, 23, 42, .16);
  --shadow-lg: 0 32px 64px -24px rgba(15, 23, 42, .28);
  --ease: cubic-bezier(.22, .68, .35, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* text-wrap: balance —— 标题换行时自动找平衡点，不让最后一行只剩一两个字。
   实测未加时：/pricing 的 H1 在 1080 宽折成 [654px, 36px]（第二行就一个「板」），
   / 的 sec-title 在 390 宽折成 [335px, 26px]，/docs 的 H2 折成 [226px, 19px]。
   加 balance 后两行长度接近，观感立刻不一样。只对标题用 —— 正文段落用它会
   让行宽参差，反而更难读。 */
h1, h2, h3, h4, h5 { margin: 0; color: var(--ink); line-height: 1.28; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- 通用排版 ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--p); background: var(--p-soft);
  padding: 5px 13px; border-radius: 100px;
}
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--a); }

.sec-title { font-size: clamp(26px, 3.4vw, 40px); }
.sec-sub { color: var(--ink-3); font-size: clamp(14.5px, 1.5vw, 16.5px); margin-top: 14px; }
.sec-head { max-width: 660px; }
.sec-head.is-center { margin: 0 auto; text-align: center; }
.sec-head .kicker { margin-bottom: 16px; }

.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }

.grad-text {
  background: linear-gradient(100deg, var(--p), #6d8bff 45%, var(--a));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 24px; border: 1px solid transparent; border-radius: 100px;
  font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--p); color: #fff; box-shadow: 0 10px 24px -10px rgba(43, 74, 203, .7); }
.btn--primary:hover { background: var(--p-dark); box-shadow: 0 16px 32px -12px rgba(43, 74, 203, .8); transform: translateY(-2px); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--p); color: var(--p); transform: translateY(-2px); }
.btn--accent { background: var(--a); color: #1a1205; box-shadow: 0 10px 24px -12px rgba(245, 158, 11, .9); }
.btn--accent:hover { transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #1e293b; transform: translateY(-2px); }
.btn--sm { height: 38px; padding: 0 18px; font-size: 14px; }
.btn--lg { height: 52px; padding: 0 30px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- 顶栏 ---------- */
.ph {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.ph.is-stuck { border-bottom-color: var(--line); box-shadow: 0 4px 24px -12px rgba(15, 23, 42, .18); }
.ph-in { display: flex; align-items: center; gap: 18px; height: 68px; }

.plogo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.plogo-mark {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(140deg, var(--p), #4a6ae8 60%, var(--a));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 17px;
  box-shadow: 0 8px 18px -8px rgba(43, 74, 203, .8);
}
.plogo-txt b { display: block; font-size: 16.5px; color: var(--ink); line-height: 1.25; letter-spacing: -.02em; }
.plogo-txt i { display: block; font-size: 11.5px; color: var(--ink-4); font-style: normal; letter-spacing: .04em; }

.pnav { margin-left: auto; }
.pnav ul { display: flex; align-items: center; gap: 4px; }
.pnav a {
  display: block; padding: 8px 15px; border-radius: 8px;
  font-size: 14.8px; font-weight: 500; color: var(--ink-2);
  transition: color .2s, background .2s;
}
.pnav a:hover { color: var(--p); background: var(--p-soft); }
.pnav li.on > a { color: var(--p); font-weight: 600; background: var(--p-soft); }

.ph-act { display: flex; align-items: center; gap: 10px; margin-left: 12px; }
.ph-tel { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-3); }
.ph-tel svg { width: 17px; height: 17px; color: var(--p); }

.pburger {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line-2);
  background: #fff; border-radius: 11px; cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.pburger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.pburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.pburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.pburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.pdrawer {
  position: fixed; inset: 0 0 0 auto; width: min(340px, 88vw); z-index: 120;
  background: #fff; box-shadow: var(--shadow-lg); padding: 20px;
  transform: translateX(100%); transition: transform .36s var(--ease);
  display: flex; flex-direction: column; overflow-y: auto;
}
.pdrawer.is-open { transform: none; }
.pdrawer-mask {
  position: fixed; inset: 0; z-index: 110; background: rgba(15, 23, 42, .45);
  opacity: 0; pointer-events: none; transition: opacity .3s;
  backdrop-filter: blur(3px);
}
.pdrawer-mask.is-open { opacity: 1; pointer-events: auto; }
.pdrawer-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.pdrawer nav { padding: 12px 0; }
.pdrawer nav a { display: block; padding: 13px 4px; font-size: 16px; font-weight: 500; border-bottom: 1px solid var(--line); color: var(--ink); }
.pdrawer nav a:hover { color: var(--p); }
.pdrawer-foot { margin-top: auto; display: grid; gap: 10px; padding-top: 18px; }
.pdrawer-close { width: 38px; height: 38px; border: 1px solid var(--line-2); background: #fff; border-radius: 10px; cursor: pointer; font-size: 20px; line-height: 1; color: var(--ink-3); }

/* ---------- Hero ---------- */
.phero { position: relative; padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.phero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1000px 620px at 82% -8%, rgba(43, 74, 203, .13), transparent 62%),
    radial-gradient(760px 520px at 4% 8%, rgba(245, 158, 11, .1), transparent 62%),
    linear-gradient(180deg, #fbfcff, #fff);
}
.phero-grid {
  position: absolute; inset: 0; z-index: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(43, 74, 203, .06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(43, 74, 203, .06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(760px 460px at 62% 22%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(760px 460px at 62% 22%, #000, transparent 72%);
}
.phero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.28fr .72fr; gap: clamp(32px, 5vw, 68px); align-items: center; }
.phero h1 { font-size: clamp(30px, 4.7vw, 64px); letter-spacing: -.03em; }
/* 词尾不拆行。标题里「模板」「上线」这类收尾词一旦被拆开，就会掉成
   「…官网模」/「板」这种独字行 —— 比整块换行难看得多。 */
.phero h1 .nb { white-space: nowrap; }
.phero-lead { font-size: clamp(15px, 1.7vw, 18px); color: var(--ink-3); margin-top: 22px; max-width: 560px; }
.phero-act { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.phero-meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--line); }
.phero-meta b { display: block; font-size: 26px; color: var(--ink); letter-spacing: -.02em; }
.phero-meta span { font-size: 13.5px; color: var(--ink-4); }

/* Hero 右侧模板预览堆叠 */
.pstack { position: relative; aspect-ratio: 1 / .92; }
.pstack-item {
  position: absolute; border-radius: 14px; overflow: hidden;
  background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  transition: transform .5s var(--ease);
}
.pstack-item img { width: 100%; height: 100%; object-fit: cover; }
.pstack-item:nth-child(1) { width: 47%; top: 6%; left: 0; aspect-ratio: 3/4.2; transform: rotate(-4deg); z-index: 3; }
.pstack-item:nth-child(2) { width: 52%; bottom: 0; right: 2%; aspect-ratio: 3/4; transform: rotate(3.5deg); z-index: 4; }
.pstack-item:nth-child(3) { width: 40%; top: 0; right: 8%; aspect-ratio: 3/4; transform: rotate(7deg); z-index: 2; opacity: .96; }
.pstack:hover .pstack-item:nth-child(1) { transform: rotate(-6deg) translateY(-8px); }
.pstack:hover .pstack-item:nth-child(2) { transform: rotate(5deg) translateY(8px); }
.pstack:hover .pstack-item:nth-child(3) { transform: rotate(10deg) translateY(-10px); }

.ph-badge {
  position: absolute; left: -14px; bottom: 16%; z-index: 6;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 11px 16px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px;
}
.ph-badge-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--p-soft); display: grid; place-items: center; color: var(--p); }
.ph-badge b { display: block; font-size: 15px; color: var(--ink); line-height: 1.3; }
.ph-badge span { font-size: 12.5px; color: var(--ink-4); }

/* ---------- 信任条 ---------- */
.trust { padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust-in { display: flex; align-items: center; gap: clamp(20px, 4vw, 48px); flex-wrap: wrap; justify-content: center; }
.trust-in span { font-size: 13.5px; color: var(--ink-4); letter-spacing: .04em; }
.trust-in b { font-size: 16px; color: var(--ink-3); font-weight: 600; letter-spacing: .02em; opacity: .78; }

/* ---------- 模板卡片 ---------- */
/* 同样用 minmax(0, 1fr)：卡片里塞了缩略图、标签行和两个按钮，
   回到 1fr 时最小尺寸会被内容顶住，窄屏就会横向跑出去。 */
.tpl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; margin-top: 46px; }
.tpl-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.tpl-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .34s var(--ease), box-shadow .34s var(--ease), border-color .34s;
}
.tpl-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-2); }

.tpl-shot { position: relative; aspect-ratio: 3 / 3.9; background: var(--bg-soft); overflow: hidden; }
.tpl-shot img, .tpl-shot > svg, .tpl-shot .tpl-thumb > svg { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tpl-card:hover .tpl-shot img, .tpl-card:hover .tpl-shot > svg, .tpl-card:hover .tpl-shot .tpl-thumb > svg { transform: scale(1.035); }

/* 缩略图懒加载占位块（Registry::thumbTag 输出，static/shared/thumb.js 取回 SVG 注入）。
   模板从 76 套扩到 300 套后，一次性内联 SVG 意味着单页几 MB 的 HTML；
   占位块必须显式撑住容器尺寸，否则注入前卡片高度为 0，滚动时整列会跳动。 */
.tpl-thumb { display: block; width: 100%; height: 100%; overflow: hidden; }
.tpl-thumb > svg { display: block; }
.tpl-thumb-sk { display: block; width: 100%; height: 100%;
  background: linear-gradient(100deg, #eef1f6 30%, #e2e8f1 50%, #eef1f6 70%);
  background-size: 220% 100%; animation: tplThumbSk 1.15s linear infinite; }
@keyframes tplThumbSk { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) { .tpl-thumb-sk { animation: none; } }
.tpl-shot-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 26px; padding: 0 10px;
  display: flex; align-items: center; gap: 5px; background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(8px); border-bottom: 1px solid rgba(15, 23, 42, .06);
}
.tpl-shot-bar i { width: 7px; height: 7px; border-radius: 50%; background: #dfe4ee; }
.tpl-shot-bar i:nth-child(1) { background: #ff6058; }
.tpl-shot-bar i:nth-child(2) { background: #ffbd2e; }
.tpl-shot-bar i:nth-child(3) { background: #28c840; }
.tpl-shot-bar em { margin-left: 6px; font-style: normal; font-size: 9.5px; color: var(--ink-4); }

.tpl-hover {
  position: absolute; inset: auto 0 0; padding: 16px;
  display: flex; gap: 9px;
  background: linear-gradient(0deg, rgba(15, 23, 42, .78), transparent);
  opacity: 0; transform: translateY(12px); transition: .34s var(--ease);
}
.tpl-card:hover .tpl-hover { opacity: 1; transform: none; }
/* min-width:0 让按钮能在窄列里真正收缩；否则「查看演示」按钮的固有宽度
   会把 .ind-grid 的列顶出去，手机上两个按钮被裁掉一截。 */
.tpl-hover .btn { flex: 1; min-width: 0; height: 40px; font-size: 13.5px; }

.tpl-meta { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.tpl-meta h3 { font-size: 15.5px; line-height: 1.45; }
.tpl-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 11.5px; padding: 3px 9px; border-radius: 6px;
  background: var(--bg-soft); color: var(--ink-3); border: 1px solid var(--line);
  white-space: nowrap;
}
.tag--p { background: var(--p-soft); color: var(--p); border-color: #dbe2fd; }
.tag--dark { background: #1b2438; color: #dfe6ff; border-color: #1b2438; }
.tpl-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 11px; border-top: 1px dashed var(--line);
  font-size: 12.5px; color: var(--ink-4);
}

/* ---------- 筛选器 ---------- */
.filter {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 15px;
}
.filter-row { display: flex; align-items: flex-start; gap: 12px; }
.filter-label { flex-shrink: 0; width: 66px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); line-height: 30px; }
.filter-opts { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.fopt {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 13px; border-radius: 8px; font-size: 13.5px;
  background: var(--bg-soft); color: var(--ink-2); border: 1px solid transparent;
  transition: .2s;
}
.fopt:hover { background: var(--p-soft); color: var(--p); }
.fopt.on { background: var(--p); color: #fff; box-shadow: 0 6px 16px -8px rgba(43, 74, 203, .8); }
.fopt em { font-style: normal; font-size: 11.5px; opacity: .62; }
.fsearch { display: flex; gap: 10px; }
.fsearch input {
  flex: 1; height: 44px; padding: 0 16px; border: 1px solid var(--line-2);
  border-radius: 10px; font-size: 14.5px; font-family: inherit; color: var(--ink);
  background: #fff; outline: none; transition: border-color .2s, box-shadow .2s;
}
.fsearch input:focus { border-color: var(--p); box-shadow: 0 0 0 3px rgba(43, 74, 203, .12); }

/* ---------- 分页 ---------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 46px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 40px; height: 40px; padding: 0 13px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14.5px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2);
}
.pager a:hover { border-color: var(--p); color: var(--p); }
.pager .on { background: var(--p); border-color: var(--p); color: #fff; font-weight: 600; }
.pager .off { opacity: .45; pointer-events: none; }

/* ---------- 特性卡 ---------- */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 46px; }
.feat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: .34s var(--ease); position: relative; overflow: hidden;
}
.feat::after {
  content: ""; position: absolute; inset: auto -30% -60% auto; width: 170px; height: 170px;
  border-radius: 50%; background: radial-gradient(circle, rgba(43, 74, 203, .09), transparent 68%);
  opacity: 0; transition: opacity .4s;
}
.feat:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-2); }
.feat:hover::after { opacity: 1; }
.feat-ico {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: var(--p-soft); color: var(--p); margin-bottom: 18px;
}
.feat-ico svg { width: 24px; height: 24px; }
.feat h3 { font-size: 17.5px; }
.feat p { color: var(--ink-3); font-size: 14.5px; margin-top: 10px; }

/* ---------- 行业矩阵 ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 40px; }
.ind-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 16px; transition: .3s var(--ease); display: block;
}
.ind-item:hover { border-color: var(--p); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.ind-item b { display: block; font-size: 15px; color: var(--ink); }
.ind-item span { font-size: 12.5px; color: var(--ink-4); }
.ind-item em { font-style: normal; float: right; font-size: 12px; color: var(--p); font-weight: 600; }

/* ---------- 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 46px; counter-reset: s; }
.step { position: relative; padding-top: 46px; }
.step::before {
  counter-increment: s; content: "0" counter(s);
  position: absolute; top: 0; left: 0;
  font-size: 30px; font-weight: 800; color: transparent;
  -webkit-text-stroke: 1.4px rgba(43, 74, 203, .3); letter-spacing: -.02em;
}
.step h3 { font-size: 16.5px; }
.step p { color: var(--ink-3); font-size: 14px; margin-top: 8px; }

/* ---------- 定价 ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 46px; align-items: start; }
.price {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 30px; transition: .34s var(--ease); position: relative;
}
.price:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.price--hot { border-color: var(--p); box-shadow: 0 24px 56px -28px rgba(43, 74, 203, .5); }
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--a); color: #1a1205; font-size: 12.5px; font-weight: 700;
  padding: 4px 15px; border-radius: 100px; white-space: nowrap;
}
.price h3 { font-size: 19px; }
.price-fig { margin: 18px 0 6px; display: flex; align-items: baseline; gap: 5px; }
.price-fig b { font-size: 42px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.price-fig i { font-style: normal; font-size: 15px; color: var(--ink-3); }
.price-note { font-size: 13px; color: var(--ink-4); }
.price ul { margin: 24px 0 28px; display: grid; gap: 12px; }
.price li { display: flex; gap: 10px; font-size: 14.3px; color: var(--ink-2); }
.price li svg { width: 18px; height: 18px; color: var(--p); flex-shrink: 0; margin-top: 3px; }
.price li.off { color: var(--ink-4); text-decoration: line-through; text-decoration-color: var(--line-2); }
.price li.off svg { color: var(--ink-4); }

/* ---------- 详情页 ---------- */
.detail-hero { padding: clamp(36px, 4.6vw, 60px) 0 34px; background: linear-gradient(180deg, var(--bg-soft), #fff); }
.crumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-4); margin-bottom: 20px; }
.crumb a:hover { color: var(--p); }
.crumb svg { width: 14px; height: 14px; }
.detail-hd { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.detail-hd h1 { font-size: clamp(26px, 3.4vw, 40px); }
.detail-hd p { color: var(--ink-3); margin-top: 14px; max-width: 660px; font-size: 15.5px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.browser {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; box-shadow: var(--shadow);
}
.browser-bar {
  height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 16px;
  background: var(--bg-soft); border-bottom: 1px solid var(--line);
}
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #dfe4ee; }
.browser-bar i:nth-child(1) { background: #ff6058; }
.browser-bar i:nth-child(2) { background: #ffbd2e; }
.browser-bar i:nth-child(3) { background: #28c840; }
.browser-url {
  margin-left: 12px; flex: 1; height: 26px; border-radius: 6px; background: #fff;
  border: 1px solid var(--line); font-size: 12px; color: var(--ink-4);
  display: flex; align-items: center; padding: 0 11px; gap: 7px; overflow: hidden; white-space: nowrap;
}
.browser-url svg { width: 12px; height: 12px; flex-shrink: 0; }
.browser-tabs { display: flex; gap: 4px; padding: 0 14px; background: #fff; border-bottom: 1px solid var(--line); }
.browser-tabs a {
  padding: 11px 15px; font-size: 13.5px; color: var(--ink-3); border-bottom: 2px solid transparent;
}
.browser-tabs a:hover { color: var(--p); }
.browser-tabs a.on { color: var(--p); border-bottom-color: var(--p); font-weight: 600; }
.browser-frame { position: relative; background: #fff; }
.browser-frame iframe { width: 100%; height: 74vh; min-height: 480px; border: 0; display: block; }

.device-switch { display: flex; gap: 6px; background: var(--bg-soft); padding: 5px; border-radius: 11px; border: 1px solid var(--line); }
.device-switch button {
  border: 0; background: transparent; padding: 7px 13px; border-radius: 8px; cursor: pointer;
  font-size: 13.5px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; transition: .2s;
}
.device-switch button svg { width: 16px; height: 16px; }
.device-switch button.on { background: #fff; color: var(--p); font-weight: 600; box-shadow: var(--shadow-sm); }
.browser-frame.is-mobile iframe { width: 390px; max-width: 100%; margin: 0 auto; height: 74vh; }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(125deg, #16224d, #22317a 52%, #2b4acb);
  border-radius: var(--radius-lg); padding: clamp(38px, 5vw, 64px); color: #fff;
  position: relative; overflow: hidden; text-align: center;
}
.cta::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 480px; height: 480px;
  border-radius: 50%; background: radial-gradient(circle, rgba(245, 158, 11, .3), transparent 66%);
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; font-size: clamp(24px, 3.2vw, 38px); }
.cta p { color: rgba(255, 255, 255, .74); margin-top: 16px; font-size: 16px; }
.cta-act { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.cta .btn--ghost { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); color: #fff; }
.cta .btn--ghost:hover { background: rgba(255, 255, 255, .2); border-color: #fff; color: #fff; }

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field span { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field span i { color: #e5484d; font-style: normal; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 15px; border: 1px solid var(--line-2); border-radius: 10px;
  font-size: 14.5px; font-family: inherit; color: var(--ink); background: #fff;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--p); box-shadow: 0 0 0 3px rgba(43, 74, 203, .12);
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.7; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .span2 { grid-column: 1 / -1; }
.alert {
  padding: 13px 17px; border-radius: 11px; font-size: 14.5px; display: flex; gap: 10px; align-items: flex-start;
}
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.alert--ok { background: #e9f9f2; color: #0f7a55; }
.alert--err { background: #fdeeee; color: #b3262c; }
.alert--info { background: var(--p-soft); color: var(--p-dark); }

/* ---------- 页脚 ---------- */
.pf { background: var(--bg-deep); color: rgba(255, 255, 255, .62); padding: clamp(48px, 6vw, 72px) 0 0; }
.pf-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; }
.pf-brand .plogo-txt b { color: #fff; }
.pf-brand .plogo-txt i { color: rgba(255, 255, 255, .42); }
.pf-desc { font-size: 14px; margin-top: 18px; line-height: 1.85; max-width: 330px; }
.pf h4 { color: #fff; font-size: 15px; margin-bottom: 18px; font-weight: 600; }
.pf ul { display: grid; gap: 11px; }
.pf ul a { font-size: 14px; transition: color .2s; }
.pf ul a:hover { color: #fff; }
.pf-contact { display: grid; gap: 14px; }
.pf-contact div { display: flex; gap: 10px; font-size: 14px; align-items: flex-start; }
.pf-contact svg { width: 17px; height: 17px; color: var(--a); flex-shrink: 0; margin-top: 3px; }
.pf-bot {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px;
  color: rgba(255, 255, 255, .42);
}
.pf-bot a:hover { color: #fff; }

/* ---------- 版式一览（首页） ---------- */
/* minmax(0, 1fr) 而不是 1fr：栅格的 1fr 实为 minmax(auto, 1fr)，
   最小值会被内容的 min-content 顶住。缩略图 SVG 自带 480px 固有宽度，
   一旦注入就把轨道撑到 480px，手机端两列直接 1026px 横向溢出。
   显式写 0 才能让轨道真正收缩，配合下面给 svg 加 width:100% 双保险。 */
.lay-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin-top: 46px; }
.lay-card {
  display: flex; flex-direction: column; gap: 10px; padding: 10px 10px 14px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.lay-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-2); }
.lay-shot { position: relative; aspect-ratio: 3 / 3.2; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-soft); }
/* .lay-shot .tpl-thumb > svg 这条不能漏：缩略图是 thumb.js 注入到 .tpl-thumb 里的，
   漏掉它就等于让 SVG 按自己的 480×620 显示 —— 上一版的横向溢出就是这么来的。 */
.lay-shot .tpl-thumb, .lay-shot .tpl-thumb-sk, .lay-shot img, .lay-shot > svg, .lay-shot .tpl-thumb > svg { width: 100%; height: 100%; }
.lay-shot img, .lay-shot > svg, .lay-shot .tpl-thumb > svg { object-fit: cover; display: block; transition: transform .6s var(--ease); }
.lay-card:hover .lay-shot .tpl-thumb > svg { transform: scale(1.04); }
.lay-mode {
  position: absolute; left: 8px; top: 8px; z-index: 2;
  padding: 2px 9px; border-radius: 100px; font-size: 11px; font-weight: 600;
  background: rgba(255, 255, 255, .9); color: var(--ink-2); border: 1px solid var(--line);
}
.lay-mode.is-dark { background: rgba(15, 23, 42, .82); color: #fff; border-color: transparent; }
.lay-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.lay-meta b { font-size: 14.5px; color: var(--ink); }
.lay-meta span { font-size: 12px; color: var(--ink-4); flex-shrink: 0; }
.lay-desc {
  margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--ink-3);
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- 价格速览（首页） ---------- */
.mini-price { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; align-items: stretch; }
.mp-item {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 32px 26px 26px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff; box-shadow: var(--shadow-sm);
}
.mp-item.is-hot { border-color: var(--p); box-shadow: 0 24px 56px -30px rgba(43, 74, 203, .55); }
.mp-badge {
  position: absolute; right: 22px; top: -12px;
  padding: 4px 13px; border-radius: 100px; font-size: 12px; font-weight: 700;
  background: var(--p); color: #fff; box-shadow: 0 8px 18px -10px rgba(43, 74, 203, .9);
}
.mp-name { font-size: 18px; color: var(--ink); }
.mp-fig { display: flex; align-items: baseline; gap: 6px; }
.mp-fig em { font-style: normal; font-size: 36px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.mp-fig i { font-style: normal; font-size: 13.5px; color: var(--ink-4); }
.mp-note { font-size: 13.5px; color: var(--ink-3); }
.mp-perks { display: grid; gap: 9px; margin: 2px 0 auto; }
.mp-perks li { display: flex; gap: 9px; font-size: 13.8px; color: var(--ink-2); }
.mp-perks svg { width: 16px; height: 16px; color: var(--p); flex-shrink: 0; margin-top: 3px; }
.mp-item .btn { margin-top: 12px; }

/* ---------- 定价页：套餐说明与逐项对照表 ---------- */
.price-tagline { font-size: 13.5px; color: var(--ink-3); margin-top: 8px; }
.price-foot { text-align: center; margin-top: 34px; font-size: 14px; }
.mtx-wrap {
  margin-top: 46px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.pmtx { width: 100%; min-width: 680px; border-collapse: collapse; }
.pmtx th, .pmtx td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14.2px; vertical-align: middle; }
.pmtx thead th { background: var(--bg-soft); font-size: 14.5px; color: var(--ink); font-weight: 700; white-space: nowrap; }
.pmtx thead th em { display: block; font-style: normal; font-size: 12px; font-weight: 500; color: var(--ink-4); margin-top: 3px; }
.pmtx thead th.is-hot { color: var(--p); }
.pmtx thead th.is-hot em { color: var(--p); opacity: .78; }
.pmtx tbody th { font-weight: 600; color: var(--ink); }
.pmtx tbody th em { display: block; font-style: normal; font-size: 12px; font-weight: 400; color: var(--ink-4); margin-top: 2px; }
.pmtx tbody tr:last-child th, .pmtx tbody tr:last-child td { border-bottom: 0; }
.pmtx td { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pmtx td.is-hot { background: rgba(43, 74, 203, .035); }
.pmtx td.is-yes svg { color: #0f7a55; width: 18px; height: 18px; display: block; }
.pmtx td.is-no svg { color: var(--ink-4); width: 18px; height: 18px; display: block; }

/* ---------- 滚动入场 ---------- */
/* 渐进增强：仅当 JS 可用（html.js）时才隐藏，避免 JS 失效 / 爬虫抓取时内容不可见 */
html.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 80px 20px; }
.empty-ico { font-size: 52px; opacity: .3; }
.empty h3 { margin-top: 16px; font-size: 18px; }
.empty p { color: var(--ink-4); margin-top: 8px; font-size: 14.5px; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1080px) {
  .tpl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .ind-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pf-main { grid-template-columns: 1.5fr 1fr 1fr; }
  .pf-contact-col { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  .pnav { display: none; }
  .pburger { display: flex; }
  .ph-act .btn { display: none; }
  .ph-tel { display: none; }
  .phero-in { grid-template-columns: 1fr; }
  .pstack { max-width: 520px; margin: 0 auto; aspect-ratio: 1 / .82; }
  .ph-badge { left: 6px; }
  .feats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 30px 22px; }
  .detail-hd { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 820px) {
  .tpl-grid, .tpl-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .ind-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .price-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .pf-main { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .container { padding: 0 18px; }
  .filter-row { flex-direction: column; gap: 9px; }
  .filter-label { width: auto; line-height: 1.4; }
  .browser-frame iframe { height: 66vh; min-height: 400px; }
  .browser-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .browser-tabs::-webkit-scrollbar { display: none; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .tpl-grid, .tpl-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .tpl-hover { opacity: 1; transform: none; }
  .ind-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feats { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .pf-main { grid-template-columns: 1fr; gap: 28px; }
  .cta { padding: 34px 22px; border-radius: var(--radius); }
  .phero-act .btn { flex: 1; min-width: 150px; }
  .hero-meta-gap { display: none; }
  .pstack { aspect-ratio: 1 / 1; }
  .phero-meta { gap: 18px 26px; }
  .phero-meta b { font-size: 22px; }
  .browser-frame iframe { height: 60vh; }
}

@media (max-width: 380px) {
  .tpl-meta { padding: 13px 13px 15px; }
  .price { padding: 26px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  html.js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

@media print {
  .ph, .pdrawer, .pdrawer-mask, .pf, .tpl-hover { display: none !important; }
  body { color: #000; }
  html [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   版式一览 / 价格速览 / 对照表的响应式
   （放在文件末尾：同权重下后写的规则生效，不会盖掉上面的基础样式）
   ============================================================ */
@media (max-width: 1080px) {
  .lay-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}

@media (max-width: 820px) {
  .lay-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .mini-price { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 560px) {
  .lay-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .lay-card { padding: 8px 8px 12px; gap: 8px; }
  .lay-desc { display: none; }
  .pmtx th, .pmtx td { padding: 12px 14px; font-size: 13.5px; }
  .mp-item { padding: 28px 20px 22px; }
  /* 手机上两列只留缩略图，24 张卡片一屏能扫完，不必再压到一列 */
  .lay-meta b { font-size: 13px; }
}
