/* 香香腐宅 · 共享样式（清新治愈：浅蓝底 + 薄荷与奶白点缀）
   断点：<=980px / <=620px   —— 与 index.html 同级的 css/ 目录 */

:root {
  --blue: #3f8fe0;
  --blue-d: #2e6fbf;
  --blue-l: #e4f0fd;
  --mint: #57cfb0;
  --mint-d: #2e9c82;
  --mint-l: #e4f8f2;
  --pink: #ffb7c9;
  --pink-l: #ffedf2;
  --cream: #fffbf3;
  --ink: #1f3a54;
  --ink2: #48617c;
  --muted: #7e97af;
  --line: #e2ecf5;
  --bg: #f3f8fd;
  --r: 20px;
  --shadow: 0 10px 30px rgba(40, 90, 140, .08);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.75 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", sans-serif;
}

img { max-width: 100%; height: auto; display: block; border: 0; }

a { color: var(--blue-d); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0; line-height: 1.35; letter-spacing: .2px; }
h1 { font-size: 40px; font-weight: 800; }
h2 { font-size: 27px; font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 14px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

.sec { padding: 58px 0; }
.sec-alt { background: #fff; }
.sec-mint { background: linear-gradient(180deg, #f2fbf8, #f3f8fd); }

.sec-head { margin-bottom: 28px; }
.sec-head h2 { margin-bottom: 10px; }
.sec-head p { color: var(--ink2); font-size: 16.5px; margin: 0; max-width: 800px; }

/* ── 顶栏 ───────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(150%) blur(8px);
}
.topbar-in { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand img { width: 44px; height: 44px; border-radius: 12px; }
.brand-txt { font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: .5px; }
.brand:hover { text-decoration: none; }

.nav { display: flex; flex-wrap: wrap; gap: 0; margin-left: auto; }
.nav a {
  display: block; padding: 9px 14px; font-size: 15px; color: var(--ink2);
  border-radius: 999px; white-space: nowrap;
}
.nav a:hover { background: var(--blue-l); color: var(--blue-d); text-decoration: none; }
.nav a.on { background: var(--blue); color: #fff; font-weight: 700; }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--mint));
  color: #fff; font-weight: 700; font-size: 16px; border: 0;
  box-shadow: 0 8px 20px rgba(63, 143, 224, .26);
}
.btn:hover { text-decoration: none; filter: brightness(1.04); }
.btn-sm { padding: 9px 18px; font-size: 15px; flex: 0 0 auto; }
.btn-ghost {
  background: #fff; color: var(--blue-d); border: 1px solid var(--line);
  box-shadow: none;
}

/* ── Hero ───────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #e9f4fe 0%, #f6fcfa 46%, #fff4f7 100%);
  padding: 54px 0 60px;
}
.hero::before {
  content: ""; position: absolute; width: 540px; height: 540px; right: -140px; top: -180px;
  border-radius: 50%; background: radial-gradient(circle, rgba(87, 207, 176, .36), rgba(87, 207, 176, 0) 70%);
}
.hero::after {
  content: ""; position: absolute; width: 480px; height: 480px; left: -150px; bottom: -200px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 183, 201, .38), rgba(255, 183, 201, 0) 70%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { display: flex; align-items: center; gap: 44px; flex-wrap: wrap; }
.hero-copy { flex: 1 1 460px; min-width: 0; }
.hero-brand { display: flex; align-items: center; gap: 10px; color: var(--blue-d); font-size: 14px; font-weight: 700; }
.hero-brand img { width: 40px; height: 40px; border-radius: 9px; }
.hero h1 { margin-bottom: 14px; }
.hero-lead { font-size: 17px; color: var(--ink2); max-width: 620px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 24px; }
.pill {
  display: inline-block; padding: 7px 15px; border-radius: 999px;
  background: #fff; color: var(--blue-d); font-size: 14.5px; font-weight: 600;
  border: 1px solid rgba(63, 143, 224, .18);
}
.pill-mint { color: var(--mint-d); border-color: rgba(87, 207, 176, .3); }
.hero-act { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.hero-shot { flex: 0 1 320px; max-width: 320px; margin: 0 auto; }
.hero-shot img {
  width: 100%; height: auto; border-radius: 26px;
  box-shadow: 0 0 0 6px #fff, 0 22px 48px rgba(40, 90, 140, .18);
}

/* 内页页头 */
.pagehero {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, #eaf5fe 0%, #f7fdfb 52%, #fff5f8 100%);
  padding: 44px 0 46px; border-bottom: 1px solid var(--line);
}
.pagehero::before {
  content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px;
  border-radius: 50%; background: radial-gradient(circle, rgba(87, 207, 176, .32), rgba(87, 207, 176, 0) 70%);
}
.pagehero::after {
  content: ""; position: absolute; width: 360px; height: 360px; left: -130px; bottom: -170px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 183, 201, .34), rgba(255, 183, 201, 0) 70%);
}
.pagehero .wrap { position: relative; z-index: 2; }
.crumb { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.crumb a { color: var(--muted); }
.pagehero h1 { margin-bottom: 12px; font-size: 34px; }
.pagehero .lead { font-size: 17px; color: var(--ink2); max-width: 780px; margin: 0; }

/* ── 数字条 ─────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px 18px; text-align: center;
}
.stat b { display: block; font-size: 27px; color: var(--blue-d); font-weight: 800; }
.stat span { font-size: 14.5px; color: var(--muted); }

/* ── 分类导航 ───────────────────────────── */
.catgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px 18px 18px; color: var(--ink); transition: transform .18s ease, box-shadow .18s ease;
}
.cat:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); }
.tile {
  display: block; width: 46px; height: 46px; line-height: 46px; text-align: center;
  border-radius: 14px; color: #fff; font-size: 21px; font-weight: 800; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--blue), #7fb9ec);
}
.t2 .tile { background: linear-gradient(135deg, var(--mint), #86dfc7); }
.t3 .tile { background: linear-gradient(135deg, #f0a05a, #f7c48d); }
.t4 .tile { background: linear-gradient(135deg, #ec7fa4, var(--pink)); }
.cat h3 { font-size: 17.5px; margin-bottom: 6px; }
.cat p { margin: 0; font-size: 14.5px; color: var(--muted); }
.cat .cnt { display: block; margin-top: 10px; font-size: 13.5px; color: var(--blue); font-weight: 700; }

/* ── 更新排期 ───────────────────────────── */
.sched { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.day {
  display: flex; gap: 16px; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: 16px 18px;
}
.day .dname {
  flex: 0 0 62px; font-weight: 800; color: var(--blue-d); font-size: 16px;
}
.day .dbody { flex: 1 1 auto; min-width: 0; }
.day .dmeta { font-size: 13.5px; color: var(--muted); margin-bottom: 6px; }
.day ul { margin: 0; padding-left: 18px; }
.day li { font-size: 15px; color: var(--ink2); }

/* ── 三卡 / 通用卡片 ─────────────────────── */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px 22px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink2); font-size: 15.5px; margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card .more { font-size: 15px; font-weight: 700; }
.card-mint { background: linear-gradient(180deg, #f6fdfb, #fff); border-color: #d5f0e7; }
.card-pink { background: linear-gradient(180deg, #fff7fa, #fff); border-color: #fbe1e9; }

/* ── 图文两栏 ───────────────────────────── */
.split { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.split > .txt { flex: 1 1 460px; min-width: 0; }
.split > .shot { flex: 0 1 300px; max-width: 300px; margin: 0 auto; }
.shot img {
  width: 100%; height: auto; border-radius: 22px;
  box-shadow: 0 0 0 5px #fff, 0 16px 36px rgba(40, 90, 140, .16);
}

/* ── 截图廊 ─────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.gallery figure { margin: 0; }
.gallery img {
  width: 100%; height: auto; border-radius: 16px;
  box-shadow: 0 0 0 4px #fff, 0 10px 24px rgba(40, 90, 140, .14);
}
.gallery figcaption { font-size: 13.5px; color: var(--muted); text-align: center; margin-top: 8px; }

/* ── 深度入口 ───────────────────────────── */
.deep { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.deep a {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px 22px; color: var(--ink);
}
.deep a:hover { text-decoration: none; box-shadow: var(--shadow); }
.deep .tag {
  display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px;
  background: var(--blue-l); color: var(--blue-d); font-weight: 700; margin-bottom: 12px;
}
.deep .tag-mint { background: var(--mint-l); color: var(--mint-d); }
.deep .tag-pink { background: var(--pink-l); color: #c25c7e; }
.deep h3 { margin-bottom: 8px; }
.deep p { color: var(--ink2); font-size: 15px; margin: 0; }

/* ── 评价 ───────────────────────────────── */
.reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.review {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px;
}
.review .who { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.review .av {
  width: 38px; height: 38px; border-radius: 50%; flex: 0 0 38px;
  background: linear-gradient(135deg, var(--blue-l), var(--mint-l));
}
.review .who b { font-size: 15.5px; }
.review .who span { font-size: 13.5px; color: var(--muted); }
.review-stars { margin: 0 0 10px; color: #d87924; font-size: 17px; letter-spacing: 0; }
.review p { color: var(--ink2); font-size: 15.5px; margin: 0; }

/* ── FAQ ────────────────────────────────── */
.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 16px 20px; font-weight: 700; font-size: 16.5px;
  list-style: none; display: flex; gap: 10px; align-items: flex-start;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "?"; flex: 0 0 24px; height: 24px; line-height: 24px; text-align: center;
  border-radius: 8px; background: var(--blue-l); color: var(--blue-d); font-size: 14px;
}
.faq details[open] summary::before { background: var(--mint-l); color: var(--mint-d); }
.faq .ans { padding: 0 20px 18px 54px; color: var(--ink2); font-size: 15.5px; }
.faq .ans p { margin: 0 0 10px; }
.faq .ans p:last-child { margin-bottom: 0; }

/* ── 步骤 ───────────────────────────────── */
.steps { display: grid; gap: 14px; }
.step {
  display: flex; gap: 16px; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: 18px 20px;
}
.step .no {
  flex: 0 0 34px; height: 34px; line-height: 34px; text-align: center; border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--mint)); color: #fff; font-weight: 800;
}
.step .sb { flex: 1 1 auto; min-width: 0; }
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink2); font-size: 15.5px; }

/* ── 正文长文 ───────────────────────────── */
.prose { max-width: 900px; }
.prose h2 { margin: 34px 0 12px; font-size: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 22px 0 8px; }
.prose p { color: var(--ink2); }
.prose ul, .prose ol { color: var(--ink2); padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }

/* ── 对照表 ─────────────────────────────── */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
table { border-collapse: collapse; width: 100%; min-width: 560px; }
th, td { padding: 13px 16px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--line); }
th { background: #f6fbfe; font-size: 14.5px; color: var(--blue-d); }
td { color: var(--ink2); }
tr:last-child td { border-bottom: 0; }

/* ── 提示条 ─────────────────────────────── */
.tip {
  background: var(--mint-l); border-left: 4px solid var(--mint);
  border-radius: 12px; padding: 14px 18px; color: #256f5c; font-size: 15px;
}
.tip-blue { background: var(--blue-l); border-left-color: var(--blue); color: var(--blue-d); }
.tip-pink { background: var(--pink-l); border-left-color: var(--pink); color: #b8556f; }

/* ── 下载条 ─────────────────────────────── */
.cta {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #e8f4fe, #ecfbf6 52%, #fff2f6);
  border: 1px solid var(--line); border-radius: 26px; padding: 40px 34px; text-align: center;
}
.cta h2 { margin-bottom: 10px; }
.cta p { color: var(--ink2); margin: 0 auto 22px; max-width: 640px; }
.cta .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── 页脚 ───────────────────────────────── */
.footer { background: #fff; border-top: 1px solid var(--line); margin-top: 20px; padding: 40px 0 30px; }
.footer-in { display: flex; gap: 34px; flex-wrap: wrap; }
.footer .fbrand { flex: 1 1 300px; min-width: 0; }
.footer .fbrand .row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer .fbrand img { width: 40px; height: 40px; border-radius: 12px; }
.footer .fbrand b { font-size: 17px; }
.footer .fbrand p { color: var(--muted); font-size: 14.5px; margin: 0; }
.footer-package { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; color: var(--ink2); font-size: 13px; }
.footer nav { flex: 0 1 auto; }
.footer nav h4 { font-size: 15px; margin-bottom: 10px; }
.footer nav a { display: block; color: var(--ink2); font-size: 15px; padding: 3px 0; }
.footer .copy {
  margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px;
}
.footer .copy p { margin: 0 0 6px; }

/* ── 渐显（三层兜底见 main.js）────────────── */
.reveal { transition: opacity .55s ease, transform .55s ease; }
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── <=980px ───────────────────────────── */
@media (max-width: 980px) {
  h1 { font-size: 32px; }
  h2 { font-size: 23px; }
  .sec { padding: 44px 0; }
  .pagehero h1 { font-size: 28px; }
  .hero { padding: 40px 0 46px; }
  .hero-grid { gap: 30px; }
  .hero-shot { flex: 0 1 260px; max-width: 260px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .catgrid { grid-template-columns: repeat(3, 1fr); }
  .cards3, .deep { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .topbar-in { gap: 10px; }
  .nav { order: 3; flex: 0 0 100%; margin-left: 0; border-top: 1px solid var(--line); padding-top: 6px; }
  .nav a { flex: 0 0 20%; text-align: center; padding: 9px 4px; font-size: 14px; }
  .topbar .btn-sm { margin-left: auto; }
  .footer nav { flex: 1 1 100%; }
}

/* ── <=620px ───────────────────────────── */
@media (max-width: 620px) {
  h1 { font-size: 26px; }
  h2 { font-size: 21px; }
  .wrap { padding: 0 16px; }
  .sec { padding: 36px 0; }
  .hero h1 { font-size: 25px; }
  .hero-lead { font-size: 16px; }
  .hero-shot { flex: 0 1 100%; max-width: 240px; }
  .pagehero { padding: 32px 0 34px; }
  .pagehero h1 { font-size: 23px; }
  .pagehero .lead { font-size: 16px; }
  .nav a { flex: 0 0 33.3333%; font-size: 13.5px; }
  .brand-txt { font-size: 17px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .catgrid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cards3, .deep { grid-template-columns: 1fr; }
  .sched { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split { gap: 26px; }
  .split > .shot { max-width: 230px; }
  .cta { padding: 30px 20px; border-radius: 20px; }
  .faq .ans { padding-left: 20px; }
  .footer { padding: 30px 0 22px; }
}
