/* 配图猫 · 展示站样式系统（原型） */
:root {
  --blue: #0b47e8;
  --blue-dark: #0633ae;
  --blue-soft: #eaf0ff;
  --ink: #101a35;
  --ink-2: #35415f;
  --muted: #6b7893;
  --line: #e5eaf4;
  --bg: #f7f9fd;
  --white: #ffffff;
  --gold: #c99a4b;
  --red: #d2212b;
  --radius: 16px;
  --shadow: 0 10px 34px rgba(18, 45, 105, .08);
  --shadow-hover: 0 18px 46px rgba(18, 45, 105, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: 88px 0; }
.section-sm { padding: 58px 0; }
.section-white { background: var(--white); }
.section-alt { background: #f1f5fc; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: 72px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 234, 244, .9);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(15, 35, 80, .08); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 38px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand img { width: 42px; height: 42px; border-radius: 11px; }
.brand-text strong { display: block; font-size: 19px; letter-spacing: .5px; line-height: 1.2; }
.brand-text small { display: block; font-size: 10px; color: var(--muted); letter-spacing: 2.2px; line-height: 1.3; }
.nav-links { display: flex; align-items: center; gap: 30px; margin-left: 12px; }
.nav-links a { font-size: 15px; color: var(--ink-2); position: relative; padding: 22px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 14px;
  height: 2px; background: var(--blue); border-radius: 2px;
  transform: scaleX(0); transition: transform .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; cursor: pointer; transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(11, 71, 232, .22); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--blue); border-color: #cfdaf4; }
.btn-ghost:hover { border-color: var(--blue); background: #f5f8ff; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { transform: translateY(-2px); }
.menu-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; }

/* ---------- 通用标题 ---------- */
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2px;
  color: var(--blue); background: var(--blue-soft); padding: 6px 14px; border-radius: 999px;
}
.heading { margin: 16px 0 12px; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.3; letter-spacing: -.5px; }
.subheading { margin: 0; color: var(--muted); font-size: 16px; max-width: 680px; }
.section-head { margin-bottom: 38px; }
.section-head.center { text-align: center; }
.section-head.center .subheading { margin-left: auto; margin-right: auto; }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(circle at 18% 20%, #dbe7ff 0, transparent 42%),
              radial-gradient(circle at 86% 78%, #fff0dd 0, transparent 38%),
              linear-gradient(125deg, #f2f6ff 0%, #fbfcff 60%, #fff8f0 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(11, 71, 232, .04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(11, 71, 232, .04) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: linear-gradient(90deg, #000, transparent 75%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 60px; align-items: center; padding: 86px 0 96px; }
.hero h1 { margin: 22px 0 20px; font-size: clamp(38px, 4.8vw, 62px); line-height: 1.18; letter-spacing: -1.4px; font-weight: 800; }
.hero h1 .grad { background: linear-gradient(100deg, var(--blue), #3b7bff 60%, #8a5cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 18px; color: var(--ink-2); max-width: 560px; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 26px; display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 13px; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); display: inline-block; }

/* 手机样机 */
.phone-stage { position: relative; display: flex; justify-content: center; align-items: center; min-height: 540px; }
.phone-stage::before {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(11, 71, 232, .14), transparent 66%);
}
.phone {
  position: relative; width: 274px; height: 552px; border-radius: 40px; padding: 9px;
  background: linear-gradient(160deg, #1b2340, #0a1024);
  box-shadow: 0 36px 70px rgba(20, 39, 92, .28), inset 0 0 0 1px rgba(255,255,255,.14);
  transform: rotate(2deg);
}
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #fff; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.phone-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 92px; height: 20px; background: #10152b; border-radius: 0 0 14px 14px; z-index: 2; }
.phone-bar { position: absolute; bottom: 9px; left: 50%; transform: translateX(-50%); width: 92px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.9); z-index: 2; }
.float-card {
  position: absolute; z-index: 3; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-hover); padding: 12px 16px;
  display: flex; align-items: center; gap: 10px; font-size: 13px;
}
.float-card b { display: block; font-size: 17px; color: var(--ink); }
.float-card small { color: var(--muted); font-size: 11px; }
.float-1 { left: -26px; top: 96px; }
.float-2 { right: -18px; bottom: 112px; }
.float-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-weight: 800; font-size: 15px; }
.float-icon.gold { background: #fff3dd; color: #b8802e; }

/* ---------- 数据条 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 24px 10px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 34px; color: var(--blue); line-height: 1.2; letter-spacing: -.5px; }
.stat span { color: var(--muted); font-size: 14px; }

/* ---------- 行业场景 ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.industry-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; transition: all .2s ease; display: flex; gap: 16px; align-items: flex-start;
}
.industry-card:hover { border-color: #b9cbf7; box-shadow: var(--shadow); }
.industry-icon {
  width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
  background: linear-gradient(145deg, #eaf0ff, #dbe6ff); color: var(--blue);
  display: grid; place-items: center; font-size: 17px; font-weight: 800;
}
.industry-card h3 { margin: 0 0 4px; font-size: 17px; }
.industry-card p { margin: 0; color: var(--muted); font-size: 13px; }
.industry-card .cnt { margin-left: auto; font-size: 12px; color: var(--blue); white-space: nowrap; padding-top: 3px; }

/* ---------- 模板卡片 ---------- */
/* 瀑布流：按列自然排布，卡片不再被裁成统一比例 */
.template-grid { column-count: 4; column-gap: 20px; }
.template-grid .tpl-card {
  display: inline-block; width: 100%; margin: 0 0 20px;
  break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid;
}
.tpl-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .2s ease, border-color .2s ease; display: block;
}
.tpl-card:hover { box-shadow: var(--shadow-hover); border-color: #93b4f7; }
.tpl-thumb { position: relative; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; background: #eef1f7; }
/* 容器比例由后端按封面真实宽高输出，这里 cover 兜底，任何比例都不留灰边 */
.tpl-thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}
/* hover 只改边框和阴影：图片不缩放、不位移，所有卡片动画一致 */
.tpl-badge {
  position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; color: #755111; background: rgba(255, 239, 205, .94);
}
.tpl-cat { position: absolute; top: 10px; right: 10px; padding: 4px 9px; border-radius: 999px; font-size: 11px; color: #fff; background: rgba(12, 27, 62, .58); backdrop-filter: blur(6px); }
.tpl-body { padding: 13px 15px 15px; }
.tpl-body h3 { font-size: 14px; margin: 0 0 8px; line-height: 1.5; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpl-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.tpl-meta .sep { width: 1px; height: 11px; background: var(--line); }
.tpl-use { margin-left: auto; color: var(--blue); font-weight: 600; }
.tpl-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.tpl-tags span { font-size: 11px; color: #5b6a88; background: #f1f4fa; padding: 2px 8px; border-radius: 999px; }
.more-wrap { text-align: center; margin-top: 36px; }

/* ---------- 流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px 28px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 24px; right: 26px; font-size: 44px; line-height: 1;
  font-weight: 800; color: #eaf0ff;
}
.step-num { width: 40px; height: 40px; border-radius: 12px; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 16px; }
.step h3 { margin: 0 0 8px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- 会员对比 ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 900px; margin: 0 auto; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.plan.pro { border: 2px solid var(--blue); box-shadow: var(--shadow); position: relative; }
.plan-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--blue); color: #fff; font-size: 12px; padding: 4px 16px; border-radius: 999px; white-space: nowrap; }
.plan h3 { margin: 0 0 6px; font-size: 22px; }
.plan .plan-desc { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; }
.plan li { padding: 9px 0 9px 26px; position: relative; font-size: 14px; border-bottom: 1px dashed var(--line); }
.plan li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 8px; height: 8px; border-radius: 50%; background: #cbd5e6; }
.plan.pro li::before { background: var(--blue); }
.plan .btn { width: 100%; }

/* ---------- 招商 CTA ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: 24px;
  background: linear-gradient(120deg, #082b85, #0b47e8 60%, #2a6bff);
  color: #fff; padding: 56px 60px; display: flex; align-items: center; gap: 40px;
}
.cta-band::after { content: ""; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: 0 0 0 60px rgba(255,255,255,.04), 0 0 0 120px rgba(255,255,255,.03); }
.cta-band h2 { margin: 0 0 10px; font-size: clamp(26px, 3vw, 36px); }
.cta-band p { margin: 0; color: rgba(255,255,255,.82); max-width: 620px; }
.cta-band .btn { position: relative; z-index: 1; margin-left: auto; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 20px; line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #0b1530; color: #b9c5de; padding: 54px 0 26px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.09); }
.footer-brand { display: flex; gap: 12px; align-items: flex-start; }
.footer-brand img { width: 44px; height: 44px; border-radius: 11px; }
.footer-brand b { color: #fff; font-size: 18px; display: block; }
.footer-brand p { margin: 8px 0 0; font-size: 13px; line-height: 1.8; }
.footer-col b { color: #fff; display: block; margin-bottom: 14px; font-size: 14px; }
.footer-col a { display: block; padding: 5px 0; font-size: 13px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: #8a99b9; flex-wrap: wrap; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; max-width: 100%; }
.footer-legal > a, .footer-legal > span { overflow-wrap: anywhere; }
.footer-legal a { color: #8a99b9; text-decoration: none; transition: color .2s; }
.footer-legal a:hover { color: #fff; }
.footer-legal .sep { opacity: .45; }
@media (max-width: 640px) {
  .footer-legal { width: 100%; flex-direction: column; align-items: flex-start; gap: 4px; }
  .footer-legal .sep { display: none; }
}

/* ---------- 内页 banner ---------- */
.page-banner { background: linear-gradient(120deg, #eef3ff, #fbfdff 65%, #fff5e9); border-bottom: 1px solid var(--line); padding: 54px 0 46px; }
.page-banner h1 { margin: 12px 0 8px; font-size: 34px; }
.page-banner p { margin: 0; color: var(--muted); }
.breadcrumb { font-size: 13px; color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { margin: 0 8px; color: #bcc6d8; }

/* ---------- 模板库工具条 ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter-chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  padding: 8px 18px; border-radius: 999px; font-size: 14px; cursor: pointer; transition: all .18s ease;
}
.filter-chip:hover { border-color: #a9c0f5; color: var(--blue); }
.filter-chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.tool-row { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.search-box { position: relative; flex: 1; min-width: 240px; max-width: 420px; }
.search-box input { width: 100%; padding: 11px 16px 11px 40px; border: 1px solid var(--line); border-radius: 999px; background: #fff; outline: none; }
.search-box input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11,71,232,.08); }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a1b8; }
.result-count { color: var(--muted); font-size: 13px; margin-left: auto; }
.empty { text-align: center; padding: 70px 0; color: var(--muted); }

/* ---------- 详情页 ---------- */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 44px; align-items: start; }
.detail-stage { background: #e9edf5; border-radius: 20px; padding: 30px; display: flex; justify-content: center; }
.detail-frame { position: relative; display: inline-flex; max-width: 100%; line-height: 0; }
.detail-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(100deg,#e3e8f2 20%,#f4f7fd 42%,#e3e8f2 64%); background-size: 220% 100%; animation: detail-shimmer 1.3s linear infinite; color: var(--muted); font-size: 13px; line-height: 1.4; border-radius: 8px; }
.detail-loading i { width: 24px; height: 24px; border: 3px solid #cbd5e8; border-top-color: var(--blue); border-radius: 50%; animation: detail-spin .8s linear infinite; }
.detail-frame img { position: relative; z-index: 1; height: auto; max-height: 660px; max-width: 100%; border-radius: 8px; box-shadow: 0 20px 50px rgba(20,35,75,.2); opacity: 0; transition: opacity .28s ease; }
.detail-frame.is-loaded img { opacity: 1; }
.detail-frame.is-loaded .detail-loading { opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility 0s linear .28s; }
.detail-frame.is-error .detail-loading { animation: none; background: #eef2fb; }
.detail-frame.is-error .detail-loading i { display: none; }
@keyframes detail-spin { to { transform: rotate(360deg); } }
@keyframes detail-shimmer { to { background-position: -220% 0; } }
.detail-info { position: sticky; top: 100px; }
.detail-info h1 { font-size: 27px; line-height: 1.4; margin: 12px 0 8px; }
.detail-info .lead { color: var(--muted); margin: 0 0 22px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.detail-tags span { background: #eef2fb; color: var(--ink-2); font-size: 12px; padding: 5px 11px; border-radius: 999px; }
.spec-list { border-top: 1px solid var(--line); margin-bottom: 24px; }
.spec-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-row span:first-child { color: var(--muted); }
.detail-copy { margin: 0 0 22px; font-size: 13px; color: var(--muted); line-height: 1.9; }
.detail-copy b { display: block; color: var(--ink); font-size: 14px; margin: 14px 0 4px; }
.detail-copy p { margin: 0; }
.detail-copy ul { margin: 4px 0 0; padding-left: 18px; }
.detail-copy li { padding: 1px 0; }
.qr-card { border: 1px dashed #b9c9f0; background: #f6f9ff; border-radius: 16px; padding: 20px; display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.qr-placeholder { width: 84px; height: 84px; flex-shrink: 0; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; text-align: center; font-size: 11px; color: var(--muted); line-height: 1.4; padding: 6px; }
.qr-card img { width: 84px; height: 84px; flex-shrink: 0; border-radius: 10px; background: #fff; border: 1px solid var(--line); object-fit: contain; padding: 4px; }
.qr-card img.qr-big { width: 160px; height: 160px; border-radius: 14px; padding: 8px; }
.qr-card b { display: block; font-size: 15px; }
.qr-card p { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.detail-actions { display: flex; gap: 10px; }
.detail-actions .btn { flex: 1; }

/* ---------- 关于页 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about-visual img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top center; border-radius: 14px; box-shadow: var(--shadow); }
.about-visual img:nth-child(2) { margin-top: 30px; }
.about-visual img:nth-child(3) { margin-top: -30px; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.value-card b { display: block; color: var(--blue); font-size: 15px; margin-bottom: 6px; }
.value-card p { margin: 0; color: var(--muted); font-size: 14px; }
.agent-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.agent-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.agent-step b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #fff3dd; color: #a87823; margin-bottom: 12px; font-size: 13px; }
.agent-step h3 { font-size: 16px; margin: 0 0 6px; }
.agent-step p { margin: 0; color: var(--muted); font-size: 13px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .template-grid { column-count: 3; }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { gap: 18px; }
  .hero-inner { gap: 24px; }
  .float-1 { left: -8px; }
  .float-2 { right: -8px; }
  .agent-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .container { width: min(100% - 32px, 1200px); }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; padding: 12px 20px 20px; flex-direction: column; align-items: stretch; gap: 0; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .menu-toggle { display: block; }
  .nav-actions .btn-ghost { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding: 60px 0 70px; }
  .hero-copy { text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-note { justify-content: center; }
  .phone-stage { min-height: 500px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat:nth-child(2) { border-right: 0; }
  .steps, .plan-grid, .faq, .about-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 480px; margin: 0 auto; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-info { position: static; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
  .cta-band .btn { margin-left: 0; }
  .value-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .template-grid { column-count: 2; column-gap: 12px; }
  .template-grid .tpl-card { margin-bottom: 12px; }
  .industry-grid { grid-template-columns: 1fr; }
  .tpl-body { padding: 10px 11px 12px; }
  .tpl-body h3 { font-size: 12px; }
  .tpl-meta { font-size: 11px; gap: 6px; }
  .hero h1 { font-size: 36px; }
  .phone { transform: none; width: 250px; height: 504px; }
  .float-card { display: none; }
  .agent-steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .btn-lg { padding: 13px 22px; }
}

/* ---------- 服务端分页与搜索按钮（动态站） ---------- */
.search-submit {
  border: 0; background: var(--blue); color: #fff; font-size: 13px; font-weight: 600;
  padding: 0 16px; height: 100%; cursor: pointer; flex: none;
}
.search-submit:hover { background: #0842c4; }
.pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 36px; color: var(--muted); font-size: 14px; }
.pager .btn { text-decoration: none; }

/* 搜索框改为 flex，避免按钮换行；按钮贴右侧，输入框留出空间 */
form.search-box { display: flex; align-items: center; }
form.search-box input { padding-right: 80px; }
.search-submit { position: absolute; right: 4px; top: 4px; bottom: 4px; height: auto; border-radius: 999px; padding: 0 16px; }

/* ==================== 文案馆（wenan） ==================== */
.wn-panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 20px 12px; margin-bottom: 18px; }
.wn-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wn-bar + .wn-bar { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.wn-label { font-size: 13px; color: var(--muted); flex-shrink: 0; width: 36px; }
.wn-note { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; padding: 10px 16px; border-radius: 12px; font-size: 12.5px; color: #5b6a88; background: #f4f7ff; box-shadow: 0 0 0 1px #e2eafc inset; }
.wn-note b { color: var(--blue); font-weight: 700; }
.wn-dot { width: 18px; height: 18px; border-radius: 6px; background: #07c160; color: #fff; font-size: 11px; line-height: 18px; text-align: center; flex-shrink: 0; }

.wn-grid { column-count: 4; column-gap: 20px; }
.wn-card { break-inside: avoid; -webkit-column-break-inside: avoid; display: inline-block; width: 100%; margin: 0 0 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .2s ease, border-color .2s ease; }
.wn-card:hover { box-shadow: var(--shadow-hover); border-color: #93b4f7; }
.wn-thumb { position: relative; display: block; width: 100%; overflow: hidden; background: #eef1f7; }
.wn-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* hover 只改边框和阴影：图片不缩放、不位移，所有卡片动画一致 */
.wn-thumb.is-empty { display: flex; align-items: center; justify-content: center; color: #9aa7bf; font-size: 15px; font-weight: 700; letter-spacing: 2px; background: #f0f3f9; }
.wn-ind { position: absolute; top: 10px; left: 10px; font-size: 11px; color: #fff; background: rgba(12, 27, 62, .55); backdrop-filter: blur(6px); padding: 3px 9px; border-radius: 999px; }
.wn-down { position: absolute; top: 10px; right: 10px; font-size: 11px; color: #fff; background: rgba(12, 27, 62, .45); padding: 3px 8px; border-radius: 999px; }
.wn-body { padding: 13px 15px 14px; }
.wn-title { margin: 0 0 8px; font-size: 14px; line-height: 1.55; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wn-text { margin: 0; font-size: 12.5px; line-height: 1.85; color: var(--ink-2); background: #f7f9fe; border-radius: 10px; padding: 10px 12px; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.wn-text.is-open { display: block; -webkit-line-clamp: initial; }
.wn-more { display: inline-block; margin-top: 7px; font-size: 11.5px; color: var(--blue); cursor: pointer; }
.wn-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.wn-use { font-size: 11.5px; color: var(--muted); }
.wn-cat { margin-left: auto; font-size: 11px; color: var(--blue); background: var(--blue-soft); padding: 3px 10px; border-radius: 999px; flex-shrink: 0; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 内页 */
.wd-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 44px; align-items: start; }
.wd-side { position: sticky; top: 96px; }
.wd-cover { margin: 0; border-radius: 18px; overflow: hidden; background: #eef1f7; box-shadow: 0 18px 40px rgba(18, 45, 105, .14); }
.wd-cover img { display: block; width: 100%; height: auto; }
.wd-cover-tip { margin: 12px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.wd-qr { margin-top: 16px; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: #f6f9ff; box-shadow: 0 0 0 1px var(--line) inset; }
.wd-qr img { width: 74px; height: 74px; border-radius: 8px; background: #fff; object-fit: contain; padding: 4px; flex-shrink: 0; }
.wd-qr b { display: block; font-size: 13.5px; }
.wd-qr span { display: block; margin-top: 5px; font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.wd-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wd-pill { font-size: 12px; padding: 4px 12px; border-radius: 999px; }
.wd-pill-cat { color: var(--blue); background: var(--blue-soft); }
.wd-pill-ind { color: #5b6a88; background: #eef2fb; }
.wd-pill-use { color: var(--muted); background: #fff; box-shadow: 0 0 0 1px var(--line) inset; }
.wd-title { margin: 14px 0 10px; font-size: 30px; line-height: 1.35; letter-spacing: -.3px; }
.wd-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.wd-text { position: relative; margin-top: 22px; padding: 30px 30px 32px; border-radius: 18px; background: radial-gradient(130% 150% at 100% 0%, #233458 0%, #16233d 48%, #0e1830 100%); box-shadow: 0 18px 40px rgba(14, 24, 48, .26); font-size: 16px; line-height: 2.1; color: #fff; letter-spacing: .2px; white-space: pre-line; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.wd-lock { margin-top: 10px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.wd-lock i { width: 5px; height: 5px; border-radius: 50%; background: #07c160; display: inline-block; }
.wd-cta { margin-top: 26px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.wd-cta-hint { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.wd-cta-hint b { color: var(--ink-2); }
.wd-perks { margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.wd-perk { padding: 14px 16px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line) inset; }
.wd-perk b { display: block; font-size: 13px; margin-bottom: 5px; }
.wd-perk span { font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.wd-rel { margin-top: 12px; }
.wd-rel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.wd-rel-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .2s ease; }
.wd-rel-card:hover { box-shadow: var(--shadow-hover); }
.wd-rel-thumb { position: relative; height: 170px; overflow: hidden; background: #eef1f7; }
.wd-rel-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wd-rel-body { padding: 12px 14px 13px; }
.wd-rel-body h3 { margin: 0 0 6px; font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wd-rel-body .txt { margin: 0; font-size: 12px; line-height: 1.75; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; -webkit-user-select: none; user-select: none; }
.wd-rel-foot { display: flex; align-items: center; margin-top: 10px; font-size: 11px; color: var(--muted); }
.wd-rel-foot .wn-cat { font-size: 10.5px; padding: 2px 9px; }

#wn-toast { position: fixed; left: 50%; bottom: 56px; transform: translateX(-50%) translateY(20px); background: #101a35; color: #fff; font-size: 14px; padding: 11px 22px; border-radius: 999px; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 99; max-width: 86vw; text-align: center; }
#wn-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 小程序码弹窗（详情页/列表页「打开小程序」电脑端用，mp-open.js 控制） */
.qm-mask { position: fixed; inset: 0; z-index: 1200; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(9, 16, 30, .58); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.qm-mask.show { display: flex; }
body.qm-open { overflow: hidden; }
.qm-box { position: relative; width: 100%; max-width: 330px; padding: 26px 24px 20px; border-radius: 20px; background: #fff; text-align: center; box-shadow: 0 26px 70px rgba(9, 16, 30, .34); animation: qmIn .22s ease-out; }
@keyframes qmIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.qm-close { position: absolute; top: 10px; right: 12px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #f1f4fa; color: #6b7893; font-size: 17px; line-height: 30px; padding: 0; cursor: pointer; }
.qm-close:hover { background: #e6ebf5; color: var(--ink); }
.qm-t { margin: 0; font-size: 15.5px; font-weight: 700; color: var(--ink); }
.qm-qr { display: block; width: 190px; height: 190px; margin: 16px auto 0; border-radius: 12px; background: #fff; object-fit: contain; }
.qm-ph { width: 190px; height: 190px; margin: 16px auto 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #f6f9ff; box-shadow: 0 0 0 1px var(--line) inset; color: var(--muted); font-size: 13px; }
.qm-d { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.qm-tip { margin: 6px 0 0; font-size: 11.5px; color: #9aa6bf; }
@media (max-width: 560px) {
  .qm-mask { padding: 18px; }
  .qm-box { padding: 24px 18px 16px; }
  .qm-qr, .qm-ph { width: 168px; height: 168px; }
}

@media (max-width: 1080px) {
  .wn-grid { column-count: 3; }
  .wd-rel-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .wn-grid { column-count: 2; column-gap: 12px; }
  .wn-card { margin-bottom: 12px; }
  .wn-body { padding: 11px 12px 12px; }
  .wn-title { font-size: 13px; }
  .wn-text { font-size: 12px; -webkit-line-clamp: 5; }
  .wd-grid { grid-template-columns: 1fr; gap: 26px; }
  .wd-side { position: static; }
  .wd-cover { max-width: 320px; margin: 0 auto; }
  .wd-title { font-size: 24px; }
  .wd-perks { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wn-panel { padding: 12px 14px; }
  .wn-label { width: 32px; font-size: 12px; }
  .wn-note { font-size: 12px; padding: 10px 12px; align-items: flex-start; }
  .wd-text { padding: 20px 18px; font-size: 15px; }
  .wd-rel-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* ===== 固定位置瀑布流：卡片位置由 masonry.js 算好并固定，hover 不触发列重排 ===== */
.template-grid.masonry-ready, .wn-grid.masonry-ready {
  position: relative; column-count: auto; column-gap: 0;
}
.template-grid.masonry-ready > .tpl-card,
.wn-grid.masonry-ready > .wn-card {
  position: absolute; display: block; margin: 0;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.template-grid.masonry-ready > .tpl-card:hover,
.wn-grid.masonry-ready > .wn-card:hover {
  transform: translateY(5px);
  box-shadow: var(--shadow-hover);
  border-color: #93b4f7;
}
.template-grid.masonry-ready .tpl-thumb img,
.wn-grid.masonry-ready .wn-thumb img { transition: transform .32s ease; }
.template-grid.masonry-ready > .tpl-card:hover .tpl-thumb img,
.wn-grid.masonry-ready > .wn-card:hover .wn-thumb img { transform: scale(1.02); }
