/* ============================================================
   雅籍文书 · 前台样式
   浅色粉红 · 学术氛围 · 高级精致
   纯手写 CSS，无框架
   ============================================================ */
:root {
  --wine: #6d3a45;
  --rose: #b56576;
  --rose-deep: #9a5060;
  --rose-soft: #d99aa7;
  --pink-50: #fdf4f6;
  --pink-100: #fae7eb;
  --pink-200: #f3d3db;
  --pink-300: #eab8c4;
  --cream: #fdfbf8;
  --gold: #b8935a;
  --gold-soft: #d9c39a;
  --ink: #463a3e;
  --muted: #8b777e;
  --line: #ecd9df;
  --bg: #fdf9fa;
  --white: #ffffff;
  --green: #25a864;
  --shadow-sm: 0 2px 10px rgba(150, 90, 105, .08);
  --shadow: 0 10px 30px rgba(150, 90, 105, .12);
  --shadow-lg: 0 20px 50px rgba(109, 58, 69, .18);
  --radius: 14px;
  --radius-sm: 9px;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--rose-deep); text-decoration: none; transition: color .2s; }
a:hover { color: var(--rose); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--wine); line-height: 1.35; font-weight: 600; }
ul { list-style: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 860px; }
.center { text-align: center; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
  font-family: var(--sans);
  text-align: center;
}
.btn-primary { background: linear-gradient(135deg, var(--rose), var(--rose-deep)); color: #fff; box-shadow: 0 8px 20px rgba(181, 101, 118, .3); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(181, 101, 118, .38); }
.btn-outline { border-color: var(--rose); color: var(--rose-deep); background: rgba(255, 255, 255, .55); }
.btn-outline:hover { background: var(--rose); color: #fff; }
.btn-light { background: #fff; color: var(--wine); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--rose-deep); }
.btn-text { color: var(--rose-deep); padding: 12px 6px; }
.btn-whatsapp { background: #25d366; color: #fff !important; box-shadow: 0 8px 20px rgba(37, 211, 102, .3); }
.btn-whatsapp:hover { background: #1fb858; transform: translateY(-2px); }
.btn-lg { padding: 15px 42px; font-size: 16px; }
.btn-block { display: block; width: 100%; margin-bottom: 10px; }

/* ---------- 顶栏 ---------- */
.topbar {
  background: var(--wine);
  color: #f3dde3;
  font-size: 13px;
  letter-spacing: .5px;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; flex-wrap: wrap; }
.topbar-contact a { color: #f3dde3; margin-left: 18px; }
.topbar-contact a:hover { color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 249, 250, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 26px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-logo { height: 62px; width: auto; }
.brand-text strong { display: block; font-family: var(--serif); font-size: 19px; color: var(--wine); letter-spacing: 2px; line-height: 1.2; }
.brand-text em { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); letter-spacing: 1px; white-space: nowrap; }

.main-nav { flex: 1; display: flex; align-items: center; justify-content: center; gap: 22px; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-item > a {
  display: block;
  padding: 10px 13px;
  font-size: 15px;
  color: var(--ink);
  position: relative;
  white-space: nowrap;
}
.nav-item > a:hover, .nav-item > a.active { color: var(--rose-deep); }
.nav-item > a.active::after {
  content: '';
  position: absolute;
  left: 13px; right: 13px; bottom: 2px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.nav-item.has-child > a::after {
  content: '▾';
  font-size: 10px;
  margin-left: 5px;
  color: var(--rose-soft);
}
.nav-child {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s;
}
.nav-item.has-child { position: relative; }
.nav-item.has-child:hover .nav-child { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-child a { display: block; padding: 9px 14px; border-radius: 6px; font-size: 14px; color: var(--ink); }
.nav-child a:hover { background: var(--pink-100); color: var(--rose-deep); }

.nav-search { display: flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 16px; flex-shrink: 0; }
.nav-search input { border: 0; outline: none; background: transparent; width: 130px; font-size: 13.5px; font-family: var(--sans); color: var(--ink); }
.nav-search button { border: 0; background: var(--pink-100); color: var(--rose-deep); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 42px; height: 42px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--wine); margin: 5px auto; transition: .3s; border-radius: 2px; }

/* ---------- Hero（左文右轮播） ---------- */
.hero-section {
  background: linear-gradient(180deg, #fdf4f6 0%, #faecef 100%);
  border-bottom: 3px solid var(--gold-soft);
}
.hero-split { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; padding: 84px 22px 92px; }
.hero-copy { max-width: 560px; }
.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--gold);
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  padding: 5px 18px;
  background: rgba(255, 255, 255, .7);
  margin-bottom: 24px;
}
.hero-title { font-size: clamp(32px, 4.2vw, 50px); letter-spacing: 2px; margin-bottom: 22px; }
.hero-subtitle { font-size: 17.5px; color: #6f5960; max-width: 540px; margin-bottom: 38px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* 轮播展示框 */
.hero-carousel {
  position: relative;
  border-radius: 22px;
  padding: 14px;
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 24px 60px rgba(139, 58, 74, .16);
}
.hero-track { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: #f3dfe5; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-slide img, .hero-slide video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .94); color: var(--wine);
  font-size: 24px; line-height: 1; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .16); transition: .25s;
}
.hero-arrow:hover { background: var(--wine); color: #fff; }
.hero-prev { left: -14px; }
.hero-next { right: -14px; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: -32px; display: flex; gap: 8px; justify-content: center; }
.hero-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(139, 58, 74, .28); cursor: pointer; transition: .25s; }
.hero-dot.active { background: var(--wine); transform: scale(1.3); }

/* ---------- 通用区块 ---------- */
.section { padding: 78px 0; }
.section-tinted { background: var(--pink-50); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title {
  text-align: center;
  font-size: 30px;
  letter-spacing: 2px;
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 20px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold));
  border-radius: 3px;
}
.section-subtitle { text-align: center; color: var(--muted); margin-bottom: 46px; }
.section-more { text-align: center; margin-top: 44px; }
.section-more p { color: var(--muted); margin-bottom: 14px; }

/* 数据条 */
.stats-section { padding: 46px 0; background: linear-gradient(135deg, var(--wine), #83485 0), var(--wine); background: var(--wine); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-item { text-align: center; color: #fff; padding: 14px 10px; position: relative; }
.stat-item + .stat-item::before { content: ''; position: absolute; left: 0; top: 20%; height: 60%; width: 1px; background: rgba(255, 255, 255, .22); }
.stat-item strong { display: block; font-family: var(--serif); font-size: 38px; color: #f4d9b8; letter-spacing: 1px; }
.stat-item span { font-size: 14px; color: rgba(255, 255, 255, .78); letter-spacing: 2px; }

/* 特色卡片 */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 26px;
  text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--pink-300); }
.feature-icon {
  width: 62px; height: 62px;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--pink-100);
  color: var(--rose);
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--muted); }

/* 流程步骤 */
.steps-section { background: var(--pink-50); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step-item { position: relative; padding: 26px 18px 22px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.step-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 30px;
  font-style: italic;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}
.step-item h3 { font-size: 16.5px; margin-bottom: 6px; }
.step-item p { font-size: 13.5px; color: var(--muted); }

/* ---------- 分类 / 样本卡片 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cat-card, .sample-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
  display: block;
}
.cat-card:hover, .sample-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cat-card-img, .sample-card-img { aspect-ratio: 3/2; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.cat-card-img img, .sample-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .5s; }
.cat-card:hover .cat-card-img img, .sample-card:hover .sample-card-img img { transform: scale(1.05); }
.cat-card-body, .sample-card-body { padding: 22px 22px 24px; }
.cat-card-body h3, .sample-card-body h3 { font-size: 18.5px; margin-bottom: 8px; color: var(--wine); }
.cat-card-body p, .sample-card-body p { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-card-meta { display: inline-block; margin-top: 12px; font-size: 13.5px; color: var(--rose-deep); }

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

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag-row-lg { margin: 26px 0; }
.tag {
  font-size: 12.5px;
  color: var(--rose-deep);
  background: var(--pink-100);
  border: 1px solid var(--pink-200);
  border-radius: 999px;
  padding: 3px 13px;
  transition: all .2s;
}
a.tag:hover { background: var(--rose); color: #fff; border-color: var(--rose); }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; position: relative; }
.chip-label { font-size: 13.5px; color: var(--muted); }
/* 标签超过一行时折叠，悬停展开 */
.chip-row.collapsible {
  max-height: 34px; overflow: hidden;
  padding-right: 42px;
  transition: max-height .25s ease;
}
.chip-row.collapsible::after {
  content: '▾';
  position: absolute; right: 0; top: 0;
  width: 42px; height: 32px;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 10px;
  font-size: 13px; line-height: 1; color: var(--wine);
  background: linear-gradient(90deg, rgba(253,249,250,0), var(--bg) 55%);
  pointer-events: none;
  transition: opacity .2s;
}
.chip-row.collapsible:hover {
  max-height: 1200px; overflow: visible;
  padding-right: 0; z-index: 30;
}
.chip-row.collapsible:hover::after { opacity: 0; }
.chip {
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13.5px;
  color: var(--ink);
}
.chip:hover, .chip.on { background: var(--wine); border-color: var(--wine); color: #fff; }

.filter-line { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.empty-tip { text-align: center; color: var(--muted); padding: 60px 20px; background: #fff; border: 1px dashed var(--pink-300); border-radius: var(--radius); }

/* ---------- 评价 ---------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-grid-wide { grid-template-columns: repeat(2, 1fr); }
.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  position: relative;
}
.review-card::before {
  content: '“';
  position: absolute;
  top: 6px; right: 22px;
  font-family: Georgia, serif;
  font-size: 64px;
  color: var(--pink-200);
  line-height: 1;
}
.stars { color: var(--pink-300); letter-spacing: 3px; font-size: 15px; margin-bottom: 12px; }
.stars .on { color: var(--gold); }
.review-card blockquote { color: #5e4c52; font-size: 14.5px; margin-bottom: 20px; }
.review-card figcaption { display: flex; align-items: center; gap: 12px; }
.review-card figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--pink-200); }
.review-card figcaption strong { display: block; font-size: 15px; color: var(--wine); }
.review-card figcaption em { font-style: normal; font-size: 12.5px; color: var(--muted); }

/* ---------- 手风琴 ---------- */
.accordion { display: flex; flex-direction: column; gap: 14px; }
.acc-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.acc-item[open] { border-color: var(--pink-300); box-shadow: var(--shadow-sm); }
.acc-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 50px 20px 24px;
  font-family: var(--serif);
  font-size: 16.5px;
  color: var(--wine);
  position: relative;
  font-weight: 600;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-icon { position: absolute; right: 22px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); }
.acc-icon::before, .acc-icon::after {
  content: '';
  position: absolute;
  background: var(--rose);
  transition: transform .25s;
}
.acc-icon::before { left: 0; top: 6px; width: 14px; height: 2px; }
.acc-icon::after { left: 6px; top: 0; width: 2px; height: 14px; }
.acc-item[open] .acc-icon::after { transform: scaleY(0); }
.acc-body { padding: 0 24px 22px; color: #5e4c52; font-size: 14.5px; }

/* ---------- 博客卡片 ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-grid-vertical { grid-template-columns: 1fr; }
.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  display: block;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-card-img { aspect-ratio: 16/9; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.post-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .5s; }
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card-body { padding: 22px; }
.post-card-date, .post-meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.post-cat { color: var(--gold); font-weight: 500; }
.post-card-body h3 { font-size: 18px; margin-bottom: 8px; }
.post-card-body p { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.link-arrow { display: inline-block; margin-top: 12px; font-size: 13.5px; color: var(--rose-deep); }

.post-card-row { display: grid; grid-template-columns: 300px 1fr; }
.post-card-row .post-card-img { aspect-ratio: auto; height: 100%; }
.post-card-row .post-card-body { padding: 28px 30px; }
.post-card-row .post-card-body h3 { font-size: 21px; }

/* ---------- 子页头 / 面包屑 ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--pink-100), var(--pink-50));
  border-bottom: 1px solid var(--line);
  padding: 58px 0 52px;
}
.page-hero h1 { font-size: clamp(27px, 3.4vw, 38px); letter-spacing: 2px; margin-bottom: 8px; }
.page-hero p { color: var(--muted); }
.page-hero-banner { background-size: cover; background-position: center; }
.page-hero-banner h1, .page-hero-banner p { color: #fff; }
.page-hero-banner .breadcrumb a, .page-hero-banner .breadcrumb .current, .page-hero-banner .breadcrumb .sep { color: rgba(255,255,255,.85); }
/* 分类详情页横幅：完整图片卡片 + 图下方文字 */
.page-hero-cat { background: linear-gradient(180deg, #fdf4f6, #faecef); border-bottom: 3px solid var(--gold-soft); padding: 34px 0 40px; }
.cat-banner {
  border-radius: 18px; overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(139, 58, 74, .12);
}
.cat-banner-img { width: 100%; max-height: 380px; object-fit: contain; background: #fff; display: block; padding: 14px; }
.cat-banner-text { padding: 26px 30px 30px; border-top: 1px solid var(--line); background: #fff; }
.cat-banner-text h1 { font-size: clamp(26px, 3vw, 36px); color: var(--wine); margin-bottom: 8px; }
.cat-banner-text p { font-size: 15px; color: var(--muted); }
.breadcrumb { font-size: 13px; margin-bottom: 14px; color: var(--muted); }
.breadcrumb a { color: var(--rose-deep); }
.breadcrumb .sep { margin: 0 8px; color: var(--pink-300); }

/* ---------- 左右布局 + 侧边栏 ---------- */
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 34px; align-items: start; }
.layout-main { min-width: 0; }
.sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
.side-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.side-title {
  font-size: 16px;
  letter-spacing: 1px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--pink-100);
  position: relative;
}
.side-title::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 42px; height: 2px; background: var(--gold); }
.side-links li { border-bottom: 1px dashed var(--line); }
.side-links li:last-child { border-bottom: 0; }
.side-links a { display: block; padding: 10px 0; font-size: 14.5px; color: #5e4c52; }
.side-links a::before { content: '—'; color: var(--gold); margin-right: 10px; }
.side-links a:hover { color: var(--rose-deep); padding-left: 4px; }
.side-shipping { padding: 0; overflow: hidden; }
.side-shipping img { width: 100%; aspect-ratio: 8/5; object-fit: cover; }
.side-shipping p { padding: 16px 24px 22px; font-size: 13.5px; color: var(--muted); }
.side-posts li { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.side-posts li:last-child { border: 0; }
.side-posts a { display: block; font-size: 14px; line-height: 1.55; }
.side-posts time { font-size: 12px; color: var(--muted); }
.side-contact li { font-size: 14px; padding: 5px 0; color: #5e4c52; }

/* ---------- 样本详情 ---------- */
.sample-article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 42px 44px; }
.detail-figure { margin-bottom: 34px; text-align: center; }
.detail-figure img { margin: 0 auto; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.detail-figure figcaption { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.article-h2 { font-size: 22px; margin: 34px 0 16px; padding-left: 14px; border-left: 4px solid var(--gold); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); transition: transform .3s; cursor: zoom-in; }
.gallery-grid a:hover img { transform: scale(1.04); }
.video-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius-sm); }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.detail-cta { margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* ---------- 博客详情 ---------- */
.blog-h1 { font-size: clamp(26px, 3.2vw, 36px); }
.post-byline { display: flex; gap: 14px; align-items: center; color: var(--muted); font-size: 13.5px; }
.article-body { font-size: 16px; }

/* 富文本正文排版 */
.rich-content { color: #4d4045; }
.rich-content h2 { font-size: 23px; margin: 30px 0 14px; }
.rich-content h3 { font-size: 19px; margin: 24px 0 10px; }
.rich-content p { margin-bottom: 16px; }
.rich-content ul, .rich-content ol { margin: 0 0 16px 22px; }
.rich-content ul { list-style: disc; }
.rich-content ol { list-style: decimal; }
.rich-content li { margin-bottom: 8px; }
.rich-content img { border-radius: var(--radius-sm); margin: 18px 0; }
.rich-content blockquote { border-left: 4px solid var(--gold-soft); background: var(--pink-50); padding: 16px 22px; margin: 18px 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: #6f5960; }
.rich-content a { text-decoration: underline; text-underline-offset: 3px; }
.rich-content table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.rich-content th, .rich-content td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.rich-content th { background: var(--pink-100); }
.help-body h2 { scroll-margin-top: 100px; }

/* ---------- 评论 ---------- */
.comments { margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--line); }
.comment { padding: 18px 0 18px 0; border-bottom: 1px dashed var(--line); }
.comment-reply { margin: 14px 0 0 26px; padding: 14px 18px; background: var(--pink-50); border-radius: var(--radius-sm); border-bottom: 0; }
.comment-head { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.comment-head strong { color: var(--wine); font-size: 14px; }
.badge-admin { background: var(--gold); color: #fff; font-size: 11px; padding: 1px 9px; border-radius: 999px; }
.comment p { font-size: 14.5px; }
.comment-form { margin-top: 34px; background: var(--pink-50); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.comment-form h3 { margin-bottom: 16px; }

/* ---------- 表单 ---------- */
.card-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 36px; }
.card-form label, .comment-form label { display: block; font-size: 14px; color: #5e4c52; margin-bottom: 18px; }
.card-form input[type=text], .card-form input[type=email], .card-form input[type=tel], .card-form textarea,
.comment-form input[type=text], .comment-form input[type=email], .comment-form textarea {
  width: 100%;
  margin-top: 7px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--sans);
  color: var(--ink);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.card-form input:focus, .card-form textarea:focus,
.comment-form input:focus, .comment-form textarea:focus {
  outline: none;
  border-color: var(--rose-soft);
  box-shadow: 0 0 0 3px rgba(217, 154, 167, .2);
}
.card-form textarea, .comment-form textarea { resize: vertical; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.file-input { margin-top: 8px; font-size: 13.5px; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.form-tip { padding: 13px 18px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 20px; }
.form-tip.success { background: #e8f6ee; color: #1f7a45; border: 1px solid #bfe5cf; }
.form-tip.error { background: #fdecee; color: #a6374c; border: 1px solid #f3ccd3; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.search-page-form { display: flex; gap: 12px; margin-top: 22px; }
.search-page-form input { flex: 1; padding: 14px 20px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; font-family: var(--sans); }
.search-page-form input:focus { outline: none; border-color: var(--rose-soft); }
.search-list li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px 26px; margin-bottom: 14px; }
.search-type { display: inline-block; font-size: 12px; background: var(--pink-100); color: var(--rose-deep); padding: 2px 12px; border-radius: 999px; margin-bottom: 6px; }
.search-list h3 { font-size: 18px; display: inline; }
.search-list p { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* ---------- CTA ---------- */
.cta-section { background: linear-gradient(135deg, var(--wine), var(--rose-deep)); background-size: cover; background-position: center; padding: 80px 0; }
.cta-inner { text-align: center; color: #fff; }
.cta-inner h2 { color: #fff; font-size: 32px; letter-spacing: 2px; margin-bottom: 14px; }
.cta-inner p { color: rgba(255, 255, 255, .85); margin-bottom: 30px; font-size: 16.5px; }

/* ---------- 分页 ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: #5e4c52;
  font-size: 14px;
}
.page-btn:hover { border-color: var(--rose); color: var(--rose-deep); }
.page-btn.current { background: var(--wine); color: #fff; border-color: var(--wine); }
.page-btn.disabled { opacity: .45; pointer-events: none; }

/* ---------- 404 / 500 ---------- */
.error-page { min-height: 54vh; }
.error-code { font-family: 'Playfair Display', Georgia, serif; font-size: 96px; color: var(--pink-300); line-height: 1; }
.error-page h1 { font-size: 28px; margin: 10px 0 12px; }
.error-detail { margin-top: 24px; text-align: left; background: #fff; border: 1px solid var(--line); padding: 16px; border-radius: var(--radius-sm); font-size: 12px; overflow: auto; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--wine); color: rgba(255, 255, 255, .8); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding: 64px 22px 48px; }
.footer-title { color: #fff; font-size: 16.5px; letter-spacing: 2px; margin-bottom: 18px; }
.footer-logo { height: 62px; width: auto; margin-bottom: 16px; }
.footer-col p, .footer-col li { font-size: 13.5px; line-height: 2; }
.footer-col a { color: rgba(255, 255, 255, .8); }
.footer-col a:hover { color: #f4d9b8; }
.footer-links li::before { content: '—'; color: var(--gold-soft); margin-right: 8px; }
.footer-social { display: flex; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.footer-social a { border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 4px 16px; font-size: 12.5px; }
.footer-social a:hover { border-color: var(--gold-soft); color: #f4d9b8; }
.footer-dl-title { margin: 16px 0 8px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: rgba(244, 217, 184, .75); }
.footer-downloads { display: flex; flex-direction: column; gap: 10px; }
.footer-download {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  transition: .25s;
}
.footer-download:hover { background: rgba(255, 255, 255, .15); border-color: rgba(244, 217, 184, .5); transform: translateY(-2px); }
.fd-icon {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f4d9b8, #d9a86c); color: var(--wine);
}
.fd-text { flex: 1; min-width: 0; }
.fd-text strong { display: block; font-size: 13.5px; color: #fff; letter-spacing: .5px; }
.fd-text em { display: block; font-style: normal; font-size: 11.5px; color: rgba(255, 255, 255, .6); margin-top: 2px; }
.fd-arrow { flex-shrink: 0; color: #f4d9b8; transition: transform .25s; }
.footer-download:hover .fd-arrow { transform: translateY(2px); }
.footer-qr-wrap { display: flex; gap: 18px; margin-top: 18px; }
.footer-qr { margin: 0; text-align: center; }
.footer-qr img { width: 92px; height: 92px; object-fit: contain; background: #fff; border-radius: 10px; padding: 6px; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.footer-qr figcaption { margin-top: 8px; font-size: 12px; color: rgba(255,255,255,.75); letter-spacing: 1px; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .14); padding: 22px 0; }
.footer-legal p { font-size: 12.5px; color: rgba(255, 255, 255, .62); line-height: 1.8; }
.copyright { margin-top: 6px; }

/* ---------- WhatsApp 浮窗 + 悬停弹窗 ---------- */
.wa-widget {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 200;
  width: 60px;
  height: 60px;
}
.wa-float {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .45);
  animation: waWiggle 3.4s ease-in-out infinite;
  transform-origin: 50% 85%;
}
.wa-widget:hover .wa-float,
.wa-widget.open .wa-float {
  animation: waWiggleFast .9s ease-in-out infinite;
}
.wa-widget.open .wa-float {
  background: #1faf55;
}
.wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  animation: waPulse 2s infinite;
  z-index: -1;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: .6; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
/* 平时：每几秒轻轻抖一下 */
@keyframes waWiggle {
  0%, 72%, 100% { transform: rotate(0); }
  76% { transform: rotate(-9deg); }
  80% { transform: rotate(8deg); }
  84% { transform: rotate(-6deg); }
  88% { transform: rotate(4deg); }
  92% { transform: rotate(0); }
}
/* 悬停：欢快连续摆动 */
@keyframes waWiggleFast {
  0%, 100% { transform: rotate(0) scale(1.08); }
  25% { transform: rotate(-12deg) scale(1.08); }
  50% { transform: rotate(10deg) scale(1.08); }
  75% { transform: rotate(-7deg) scale(1.08); }
}

/* 悬停弹窗 */
.wa-popup {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: 304px;
  background: #fff;
  border: 2px solid rgba(181, 101, 118, .28);
  border-radius: 22px;
  box-shadow: 0 22px 55px rgba(109, 58, 69, .22), 0 4px 14px rgba(181, 101, 118, .12);
  padding: 18px 18px 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.82);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity .2s ease, transform .28s cubic-bezier(.34, 1.56, .64, 1), visibility 0s linear .28s;
}
.wa-widget.open .wa-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition: opacity .18s ease, transform .34s cubic-bezier(.34, 1.56, .64, 1);
}
/* 透明桥接区：鼠标在图标与弹窗之间移动时保持弹窗展开 */
.wa-popup::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 18px;
}
/* 弹窗底部指向图标的小尾巴 */
.wa-popup::after {
  content: '';
  position: absolute;
  right: 24px;
  bottom: -9px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-right: 2px solid rgba(181, 101, 118, .28);
  border-bottom: 2px solid rgba(181, 101, 118, .28);
  transform: rotate(45deg);
  border-radius: 0 0 4px 0;
}
.wa-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #b79aa0;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
  z-index: 2;
}
.wa-popup-close:hover { background: #fbeef2; color: var(--wine); transform: rotate(90deg); }
.wa-popup-head { display: flex; align-items: center; gap: 12px; padding-right: 22px; }
.wa-popup-avatar {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(37, 211, 102, .4);
  animation: waAvatarBob 2.4s ease-in-out infinite;
}
@keyframes waAvatarBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.wa-popup-meta strong {
  display: block;
  font-family: var(--serif);
  font-size: 16.5px;
  color: var(--wine);
  line-height: 1.25;
}
.wa-popup-meta small {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #9c8389;
  margin-top: 3px;
}
.wa-online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, .18);
  animation: waDotPulse 1.8s ease-in-out infinite;
}
@keyframes waDotPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(37, 211, 102, .18); }
  50% { box-shadow: 0 0 0 5px rgba(37, 211, 102, .06); }
}
.wa-popup-body { margin: 14px 0 14px; }
.wa-bubble {
  position: relative;
  background: #fdf0f4;
  color: #6f4b54;
  font-size: 13.5px;
  line-height: 1.65;
  padding: 12px 14px;
  border-radius: 16px 16px 16px 5px;
}
.wa-widget.open .wa-bubble { animation: waBubbleIn .45s .12s cubic-bezier(.34, 1.56, .64, 1) backwards; }
@keyframes waBubbleIn {
  0% { opacity: 0; transform: translateY(10px) scale(.92); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.wa-popup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .3px;
  padding: 12px 0;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(37, 211, 102, .38);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.wa-popup-btn:hover {
  background: #1faf55;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(37, 211, 102, .45);
}
.wa-popup-btn:active { transform: translateY(0) scale(.98); }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; display: grid; grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid, .sample-grid, .post-grid, .review-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .header-inner { flex-wrap: wrap; }
  .main-nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 16px;
    gap: 10px;
  }
  .main-nav.open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; width: 100%; }
  .nav-item > a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-child { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding-left: 14px; display: none; min-width: 0; }
  .nav-item.has-child.open .nav-child { display: block; }
  .nav-search { width: 100%; justify-content: center; }
  .nav-search input { flex: 1; width: auto; }
  .post-card-row { grid-template-columns: 1fr; }
  .post-card-row .post-card-img { aspect-ratio: 16/9; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(3)::before { display: none; }
  .sample-article { padding: 26px 20px; }
  .card-form { padding: 24px 20px; }
}

@media (max-width: 560px) {
  .section { padding: 54px 0; }
  .features-grid, .steps-grid, .cat-grid, .sample-grid, .post-grid, .review-grid, .review-grid-wide { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-split { grid-template-columns: 1fr; gap: 48px; padding: 64px 22px 72px; }
  .hero-copy { max-width: none; }
  .hero-prev { left: 8px; }
  .hero-next { right: 8px; }
  .hero-actions .btn { width: 100%; }
  .wa-widget { right: 16px; bottom: 18px; width: 54px; height: 54px; }
  .wa-popup { width: 272px; bottom: 70px; }
  .topbar-hours { display: none; }
  .gallery-grid { grid-template-columns: 1fr; }
}
