/* ==========================================================================
   初姐说媒 · 门户主题 theme.css
   依据 07-UI视觉设计规范：品牌玫红 #BC3988 体系，纯 CSS + SSR，无重型 JS 依赖。
   旧 5 个 CSS 保留于 static/css 作参考，页面统一只加载本文件 + Bootstrap5 栅格。
   ========================================================================== */

/* ---------------- 1. 设计 Token ---------------- */
:root {
  --brand-primary: #BC3988;
  --brand-hover:   #D13693;
  --brand-active:  #a03070;
  --brand-light:   #FF88CF;
  --brand-gradient: linear-gradient(159deg, #FF88CF 0%, #EF269F 100%);
  --brand-gradient-text: linear-gradient(120deg, #EF269F 0%, #a03070 100%); /* 文字渐变：深端保证对比度 */

  --brand-50:  #FFF0F7;
  --brand-100: #FFE3F1;
  --brand-shadow: rgba(188, 57, 136, 0.15);
  --brand-glow:   rgba(188, 57, 136, 0.40);

  --ink:        #353535;
  --ink-muted:  #6c757d;
  --border:     #e9ecef;
  --border-strong: #d8d8d8;
  --bg-page:    #ffffff;
  --bg-soft:    #f8f9fa;
  --bg-cream:   #FFF8EF;
  --cream-text: #462E12;

  --success: #52c41a;
  --warning: #faad14;
  --danger:  #f5222d;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

  --space-section: 6rem;
  --space-section-sm: 4rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 10px 30px rgba(188, 57, 136, 0.15);
  --shadow-nav: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(188, 57, 136, 0.4);

  --header-h: 84px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------------- 2. 基础 ---------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* 兜底：装饰元素溢出不产生横向滚动 */
}

h1, h2, h3, h4, h5 { line-height: 1.3; color: var(--ink); font-weight: 700; }

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color .25s var(--ease);
}
a:hover { color: var(--brand-active); }

img { max-width: 100%; }

.img-cover { width: 100%; height: 100%; object-fit: cover; display: block; }

.icon-svg { width: 1.15em; height: 1.15em; vertical-align: -.18em; flex: none; }

::selection { background: var(--brand-100); color: var(--brand-active); }

/* 玫红滚动条（旧版原样） */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--brand-light); border-radius: var(--radius-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--brand-primary); }

/* 无障碍跳链 */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--brand-primary); color: #fff; padding: .5rem 1rem; border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; }

.container.site-container { max-width: 1320px; }

/* 滚动淡入（IntersectionObserver 驱动，爬虫与 reduced-motion 不受影响） */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------------- 3. 按钮 ---------------- */
.btn { border-radius: var(--radius-pill); font-weight: 600; transition: all .25s var(--ease); }
.btn-brand {
  background: var(--brand-primary);
  border: 1px solid var(--brand-primary);
  color: #fff;
  padding: .65rem 1.8rem;
}
.btn-brand:hover, .btn-brand:focus {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.btn-outline-brand {
  background: #fff;
  border: 1px solid var(--brand-primary);
  color: var(--brand-primary);
  padding: .65rem 1.8rem;
}
.btn-outline-brand:hover, .btn-outline-brand:focus {
  background: var(--brand-primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn-text-more {
  display: inline-flex; align-items: center; gap: .35rem;
  color: var(--brand-primary); font-weight: 600;
}
.btn-text-more .icon-svg { transition: transform .25s var(--ease); }
.btn-text-more:hover { color: var(--brand-active); }
.btn-text-more:hover .icon-svg { transform: translateX(3px); }

/* ---------------- 4. 区块标题（中英水印母题） ---------------- */
.section-block { padding: var(--space-section) 0; }
.section-block.bg-soft { background: var(--bg-soft); }
.section-block.bg-cream { background: var(--bg-cream); }

.section-title { position: relative; text-align: center; margin-bottom: 3.5rem; overflow: hidden; }
.section-title .title-zh {
  font-size: 1.75rem; font-weight: 700; margin: 0; display: inline-block; position: relative; z-index: 1;
}
.section-title .title-zh::after {
  content: ""; display: block; width: 80px; height: 3px; margin: .75rem auto 0;
  background: var(--brand-gradient); border-radius: var(--radius-pill);
}
.section-title .title-en {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -55%);
  font-size: 4.5rem; font-weight: 800; letter-spacing: .06em;
  color: var(--brand-primary); opacity: .1; white-space: nowrap;
  text-transform: uppercase; pointer-events: none; z-index: 0;
}
.section-title .title-desc { color: var(--ink-muted); margin: 1rem 0 0; font-size: 1rem; }

.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2.5rem; gap: 1rem; }
.section-head-row .section-title { text-align: left; margin-bottom: 0; }
.section-head-row .section-title .title-zh::after { margin-left: 0; }
.section-head-row .section-title .title-en { left: 0; transform: translateY(-55%); }

/* ---------------- 5. 导航 ---------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow .25s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-nav); }

.navbar { min-height: var(--header-h); padding: .5rem 0; }
/* 按 SVG 固有尺寸（224×64）显示，不再压缩到 44px；max-width 兜底极窄屏 */
.site-logo { max-width: 100%; border-radius: var(--radius-sm); }
.brand-name {
  margin-left: .6rem; font-size: 1.25rem; font-weight: 800; color: var(--brand-primary);
  letter-spacing: .04em;
}
.navbar-nav .nav-link {
  position: relative; padding: .5rem .9rem !important;
  font-size: 1.05rem; font-weight: 600; color: var(--ink);
}
.navbar-nav .nav-link::after {
  content: ""; position: absolute; left: 15%; right: 15%; bottom: .15rem; height: 3px;
  border-radius: var(--radius-pill); background: var(--brand-primary);
  transform: scaleX(0); transition: transform .25s var(--ease);
}
.navbar-nav .nav-link:hover { color: var(--brand-primary); }
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active { color: var(--brand-primary); }
.navbar-nav .nav-link.active::after { transform: scaleX(1); }

.nav-cta { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1.3rem !important; }
.nav-toggle { border: none; color: var(--brand-primary); padding: .35rem .5rem; font-size: 1.4rem; }
.nav-toggle:focus { box-shadow: 0 0 0 .2rem rgba(188, 57, 136, .25); }
#mainNav { font-size: 1rem; }

/* ---------------- 6. 首页 Hero ---------------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--bg-cream);
  padding: 5.5rem 0 0;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero::before {
  width: 520px; height: 520px; right: -160px; top: -180px;
  background: radial-gradient(circle, rgba(255, 136, 207, .35) 0%, rgba(255, 136, 207, 0) 70%);
}
.hero::after {
  width: 460px; height: 460px; left: -180px; bottom: 60px;
  background: radial-gradient(circle, rgba(239, 38, 159, .18) 0%, rgba(239, 38, 159, 0) 70%);
}
.hero .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--brand-100); color: var(--brand-active);
  padding: .35rem 1rem; border-radius: var(--radius-pill);
  font-size: .9rem; font-weight: 600; margin-bottom: 1.25rem;
}
.hero-title {
  font-size: 3rem; font-weight: 800; line-height: 1.3; margin-bottom: 1.25rem;
  color: var(--ink);
}
.hero-title .grad-text {
  background: var(--brand-gradient-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub { font-size: 1.15rem; color: var(--ink-muted); max-width: 560px; margin-bottom: 2rem; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

/* 玻璃拟态统计卡（旧 m1-left） */
.hero-stats {
  background: rgba(255, 248, 239, .55);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 24px rgba(70, 46, 18, .12), var(--shadow-card);
  backdrop-filter: blur(8px);
  color: var(--cream-text);
  padding: 2rem;
}
.hero-stat + .hero-stat { margin-top: 1.5rem; }
.hero-stat-num {
  font-size: 2.6rem; font-weight: 800; line-height: 1;
  background: var(--brand-gradient-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.hero-stat-num .unit { font-size: 1.4rem; -webkit-text-fill-color: var(--brand-primary); color: var(--brand-primary); }
.hero-stat-label { margin-top: .35rem; font-weight: 600; }

/* 三卖点 */
.hero-points { list-style: none; padding: 0; margin: 2.5rem 0 0; }
.hero-points li {
  display: flex; align-items: center; gap: .9rem; margin-bottom: 1.1rem;
  font-size: 1.08rem; font-weight: 600; color: var(--cream-text);
}
/* 统计卡与三卖点共用同款渐变圆底图标容器 */
.hero-stats .point-icon,
.hero-points .point-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--brand-gradient);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card); flex: none;
}
/* 旧素材为白色浮雕图标，渐变深底上才能显现 */
.hero-points .point-icon img { width: 28px; height: 28px; object-fit: contain; }
/* 统计卡内联 SVG 统一为白色，与浮雕 PNG 视觉对齐（线框图标略收小一号） */
.hero-stats .point-icon .icon-svg { width: 26px; height: 26px; color: #fff; }

/* Hero 底部通栏（旧 m1-title） */
.hero-cta-bar {
  position: relative; margin-top: 4rem;
  background: linear-gradient(120deg, rgba(160, 48, 112, .92), rgba(188, 57, 136, .88));
  color: #fff; padding: 2.2rem 0; overflow: hidden;
}
.hero-cta-bar::before {
  content: "CHUJIE"; position: absolute; right: 4%; top: 50%; transform: translateY(-50%);
  font-size: 120px; font-weight: 900; color: rgba(255, 255, 255, .10); white-space: nowrap;
}
.hero-cta-bar h2 { color: #fff; font-size: 1.6rem; margin: 0 0 .35rem; position: relative; z-index: 1; }
.hero-cta-bar p { margin: 0; opacity: .9; position: relative; z-index: 1; }
.hero-cta-bar .btn { background: #fff; color: var(--brand-primary); border-color: #fff; }
.hero-cta-bar .btn:hover { background: var(--bg-cream); }
.hero-cta-bar .btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.hero-cta-bar .btn-outline-white:hover { background: rgba(255,255,255,.15); }

/* 波浪分隔 */
.wave-divider { line-height: 0; margin-top: -1px; }
.wave-divider svg { width: 100%; height: 48px; display: block; }
.wave-divider.flip { transform: rotate(180deg); }

/* ---------------- 7. 通用卡片 ---------------- */
.card-base {
  background: #fff; border: 1px solid rgba(0, 0, 0, .1);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  height: 100%;
}
.card-base:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }

.icon-circle {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--brand-50); color: var(--brand-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; transition: all .3s var(--ease);
}
.card-base:hover .icon-circle { background: var(--brand-active); color: #fff; transform: scale(1.1); }

.badge-pill {
  display: inline-flex; align-items: center;
  background: var(--brand-100); color: var(--brand-primary);
  border-radius: var(--radius-pill); padding: .2rem .8rem;
  font-size: .85rem; font-weight: 600;
}

.empty-state {
  text-align: center; color: var(--ink-muted); padding: 4rem 1rem;
  border: 1px dashed var(--border-strong); border-radius: var(--radius-lg);
  background: #fff;
}
.empty-state .icon-svg { width: 48px; height: 48px; color: var(--brand-light); margin-bottom: 1rem; }

/* ---------------- 8. 服务介绍 ---------------- */
.service-card { padding: 2.5rem 2rem; text-align: center; display: flex; flex-direction: column; }
.service-card .icon-circle { margin: 0 auto 1.25rem; }
.service-card h3 { color: var(--brand-primary); font-size: 1.35rem; margin-bottom: .35rem; }
.service-card .service-sub { color: var(--ink-muted); font-size: .92rem; margin-bottom: 1.5rem; }
.service-items { list-style: none; padding: 0; margin: 0 0 1.75rem; text-align: left; flex: 1; }
.service-items li {
  position: relative; padding: .55rem 0 .55rem 1.9rem;
  border-bottom: 1px dashed var(--border); color: var(--ink);
}
.service-items li:last-child { border-bottom: none; }
.service-items li .icon-svg {
  position: absolute; left: 0; top: .75rem; color: var(--success); width: 1.2rem; height: 1.2rem;
}
.service-card .btn { align-self: center; }

/* ---------------- 9. 服务标杆 / 荣誉 ---------------- */
.subsection-title {
  display: flex; align-items: center; gap: .75rem;
  font-size: 1.4rem; font-weight: 700; margin-bottom: 2rem;
}
.subsection-title::before {
  content: ""; width: 4px; height: 1.4em; border-radius: var(--radius-pill);
  background: var(--brand-gradient);
}
.honor-card { padding: 1rem; }
.honor-card .honor-img {
  border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-soft);
}
.honor-card .honor-img img { transition: transform .4s var(--ease); }
.honor-card:hover .honor-img img { transform: scale(1.03); }
.honor-card h3 { font-size: 1.1rem; margin: 1rem 0 .35rem; }
.honor-card p { color: var(--ink-muted); font-size: .9rem; margin: 0; }

.benchmark-row { display: flex; align-items: center; gap: 2.5rem; margin-bottom: 3rem; }
.benchmark-row:last-child { margin-bottom: 0; }
.benchmark-row .benchmark-img {
  flex: none; width: 42%; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-card); background: #fff; padding: .75rem;
}
.benchmark-row.reverse { flex-direction: row-reverse; }
.benchmark-row h3 { font-size: 1.35rem; margin-bottom: .75rem; }
.benchmark-row p { color: var(--ink-muted); margin: 0; }

/* ---------------- 10. 红娘团队 ---------------- */
.matchmaker-card { position: relative; overflow: hidden; text-align: center; padding: 2rem 1.25rem 1.75rem; }
.matchmaker-avatar {
  width: 128px; height: 128px; margin: 0 auto 1.1rem; padding: 3px;
  border-radius: 50%; background: var(--brand-gradient);
}
.matchmaker-avatar img, .matchmaker-avatar .avatar-placeholder {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  background: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; font-weight: 800; color: var(--brand-primary);
}
.matchmaker-card h3 { font-size: 1.25rem; margin-bottom: .2rem; }
.matchmaker-title { color: var(--brand-primary); font-size: .92rem; font-weight: 600; margin-bottom: .8rem; }
.matchmaker-tags { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-bottom: 1rem; }
.matchmaker-meta {
  display: flex; justify-content: center; gap: 2rem;
  padding-top: 1rem; border-top: 1px solid var(--border);
}
.matchmaker-meta .num { font-size: 1.3rem; font-weight: 800; color: var(--brand-primary); font-variant-numeric: tabular-nums; }
.matchmaker-meta .lbl { font-size: .82rem; color: var(--ink-muted); }
.matchmaker-intro {
  position: absolute; inset: 0; padding: 2rem 1.5rem;
  background: linear-gradient(160deg, rgba(188, 57, 136, .95), rgba(160, 48, 112, .96));
  color: #fff; display: flex; flex-direction: column; justify-content: center;
  opacity: 0; transform: translateY(12px); transition: all .35s var(--ease);
  overflow: auto;
}
.matchmaker-card:hover .matchmaker-intro,
.matchmaker-card:focus-within .matchmaker-intro { opacity: 1; transform: none; }
.matchmaker-intro h3 { color: #fff; }
.matchmaker-intro p { font-size: .92rem; line-height: 1.7; margin: 0; }
/* 介绍正文左对齐（姓名标题仍随卡片居中），富文本多段落更易读 */
.matchmaker-intro .rich-text { text-align: left; }

/* ---------------- 11. 成功案例 ---------------- */
.case-card { position: relative; overflow: hidden; }
.case-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.case-media > img.img-cover { transition: transform .5s var(--ease); }
.case-card:hover .case-media > img.img-cover { transform: scale(1.06); }
/* 底部渐变蒙层（旧 img_6_content_img_1 用法的 CSS 化） */
.case-media::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 55%;
  background: linear-gradient(to top, rgba(53, 53, 53, .82) 0%, rgba(53, 53, 53, 0) 100%);
}
.case-corner {
  position: absolute; left: .75rem; top: .75rem; z-index: 2;
  width: 96px; pointer-events: none;
}
.case-wish {
  position: absolute; left: 1.1rem; right: 1.1rem; bottom: .9rem; z-index: 1;
  color: #fff; font-size: .95rem; font-weight: 600; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* 富文本寄语：清除编辑器段落默认外边距，适配两行截断浮层 */
.case-wish p { margin: 0; }
/* 富文本容器通用兜底：首尾段落不留额外间距，节奏交给外层布局 */
.rich-text :first-child { margin-top: 0; }
.rich-text :last-child { margin-bottom: 0; }
.case-top-badge {
  position: absolute; right: .75rem; top: .75rem; z-index: 2;
  background: var(--brand-gradient); color: #fff;
  font-size: .78rem; font-weight: 700; padding: .2rem .8rem; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card);
}
.case-body { padding: 1.1rem 1.25rem 1.35rem; }
.case-body h3 { font-size: 1.08rem; margin-bottom: .45rem; }
.case-body p {
  color: var(--ink-muted); font-size: .9rem; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 首页案例自动轮播（JS 驱动：每 3 秒右→左移一格、复制节点无缝循环；不显示滚动条） */
.case-marquee {
  overflow: hidden;
  padding: .5rem 0 1.25rem;
  scrollbar-width: none; -ms-overflow-style: none;
}
.case-marquee::-webkit-scrollbar { display: none; }
.case-marquee-track {
  display: flex; gap: 1.25rem;
  will-change: transform;
}
.case-marquee-track.is-animating { transition: transform .6s var(--ease); }
.case-scroll-item {
  flex: 0 0 280px; max-width: 280px;
}
.case-scroll-item .case-card { display: block; height: 100%; }
@media (min-width: 1400px) {
  .case-scroll-item { flex-basis: calc((100% - 3.75rem) / 4); max-width: none; }
}
/* 用户偏好减少动态：关闭自动轮播，降级为手动横滑（滚动条仍隐藏，JS 侧同步不启动） */
@media (prefers-reduced-motion: reduce) {
  .case-marquee { overflow-x: auto; scroll-snap-type: x mandatory; }
  .case-scroll-item { scroll-snap-align: start; }
}

/* 首页案例轮播（备用 Bootstrap carousel） */
.case-carousel .carousel-control-prev,
.case-carousel .carousel-control-next { width: 44px; height: 44px; top: 50%; transform: translateY(-50%); bottom: auto; opacity: 1; }
.case-carousel .carousel-control-prev { left: -8px; }
.case-carousel .carousel-control-next { right: -8px; }
.case-carousel .carousel-control-prev img,
.case-carousel .carousel-control-next img { width: 44px; height: 44px; }
.case-carousel .carousel-indicators { margin-bottom: -.4rem; }
.case-carousel .carousel-indicators [data-bs-target] {
  background-color: var(--border-strong); width: 10px; height: 10px; border-radius: 50%;
  border: none; opacity: 1;
}
.case-carousel .carousel-indicators .active { background-color: var(--brand-primary); }

/* ---------------- 12. 优势对比 ---------------- */
.comparison-group { margin-bottom: 3rem; }
/* 首页聚合区块：末组下方紧接「查看更多」，收敛重复间距 */
.comparison-section .comparison-group:last-child { margin-bottom: 0; }
.comparison-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; box-shadow: var(--shadow-card);
}
.comparison-table thead th {
  padding: 1.1rem 1.25rem; text-align: center; font-size: 1.05rem;
  border-bottom: 1px solid var(--border);
}
.comparison-table thead th.our-col {
  background: var(--brand-primary); color: #fff;
}
.comparison-table thead th.other-col { background: var(--bg-soft); color: var(--ink-muted); }
.comparison-table thead th.dim-col { background: #fff; color: var(--ink); width: 26%; }
.comparison-table tbody td {
  padding: 1rem 1.25rem; text-align: center; vertical-align: middle;
  border-bottom: 1px solid var(--border);
}
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr { transition: background .2s var(--ease); }
.comparison-table tbody tr:hover { background: var(--brand-50); }
.comparison-table td.dim-cell { font-weight: 600; text-align: left; color: var(--ink); }
.comparison-table td.our-cell { background: var(--brand-50); font-weight: 600; }
.comparison-table td.our-cell .icon-svg { color: var(--success); }
.comparison-table td.other-cell { color: var(--ink-muted); }
.comparison-table td.other-cell .icon-svg { color: var(--border-strong); }

/* 移动端对比卡片 */
.compare-card {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 1.25rem; margin-bottom: 1rem; background: #fff; box-shadow: var(--shadow-card);
}
.compare-card.ours { border: 2px solid var(--brand-primary); }
.compare-card .compare-card-head {
  font-weight: 700; margin-bottom: .8rem; display: flex; align-items: center; gap: .4rem;
}
.compare-card.ours .compare-card-head { color: var(--brand-primary); }
.compare-card dl { margin: 0; display: grid; grid-template-columns: 38% 1fr; row-gap: .55rem; }
.compare-card dt { color: var(--ink-muted); font-weight: 600; }
.compare-card dd { margin: 0; }

/* ---------------- 13. 服务流程 ---------------- */
.process-section { background: var(--bg-soft); }
.process-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 1rem;
  position: relative; margin-top: 1rem;
}
.process-grid::before {
  content: ""; position: absolute; top: 40px; left: 9%; right: 9%; height: 2px;
  background: linear-gradient(90deg, var(--brand-light), var(--brand-primary), var(--brand-light));
  opacity: .45;
}
.process-step { position: relative; text-align: center; z-index: 1; }
.step-num {
  width: 80px; height: 80px; margin: 0 auto 1.1rem; border-radius: 50%;
  background: var(--brand-gradient); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem; font-weight: 800; font-variant-numeric: tabular-nums;
  box-shadow: var(--shadow-card); transition: all .3s var(--ease);
}
.process-step:hover .step-num { transform: scale(1.08); box-shadow: var(--shadow-glow); }
.process-step h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.process-step p { font-size: .85rem; color: var(--ink-muted); margin: 0; line-height: 1.6; }
.process-step .step-icon { display: none; }

/* ---------------- 14. 栏目页 Hero / 面包屑 ---------------- */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--bg-cream);
  padding: 4.5rem 0 3.5rem; text-align: center;
}
.page-hero::before {
  content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%;
  left: -160px; top: -220px;
  background: radial-gradient(circle, rgba(255, 136, 207, .28) 0%, rgba(255, 136, 207, 0) 70%);
}
.page-hero::after {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  right: -140px; bottom: -240px;
  background: radial-gradient(circle, rgba(239, 38, 159, .16) 0%, rgba(239, 38, 159, 0) 70%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-title { font-size: 2.25rem; margin: 0; }
.page-hero-en {
  display: block; margin-top: .4rem; font-size: 1rem; font-weight: 700;
  letter-spacing: .25em; text-transform: uppercase; color: var(--brand-primary); opacity: .55;
}
.breadcrumb {
  justify-content: center; margin: 1.1rem 0 0; font-size: .9rem;
  background: transparent; padding: 0;
}
.breadcrumb a { color: var(--ink-muted); display: inline-flex; align-items: center; gap: .3rem; }
.breadcrumb a:hover { color: var(--brand-primary); }
.breadcrumb-sep { color: var(--border-strong); margin: 0 .55rem; }
.breadcrumb-current { color: var(--brand-primary); font-weight: 600; }

/* ---------------- 15. 恋爱宝典 ---------------- */
.baodian-tabs { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-bottom: 3rem; }
.baodian-tab {
  padding: .5rem 1.5rem; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); background: #fff; color: var(--ink);
  font-weight: 600; transition: all .25s var(--ease);
}
.baodian-tab:hover { color: var(--brand-primary); border-color: var(--brand-primary); }
.baodian-tab.active { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }

.article-item {
  display: flex; gap: 1.5rem; padding: 1.5rem; margin-bottom: 1.25rem;
  background: #fff; border: 1px solid rgba(0, 0, 0, .1); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); transition: all .3s var(--ease);
}
.article-item:hover { transform: translateX(5px); box-shadow: var(--shadow-hover); }
.article-cover {
  flex: none; width: 200px; aspect-ratio: 3 / 2; border-radius: var(--radius-md);
  overflow: hidden; background: var(--bg-soft);
}
.article-cover img { transition: transform .4s var(--ease); }
.article-item:hover .article-cover img { transform: scale(1.05); }
.article-info { min-width: 0; display: flex; flex-direction: column; }
.article-info h2 { font-size: 1.25rem; margin: 0 0 .5rem; }
.article-info h2 a { color: var(--brand-primary); display: inline; }
.article-info h2 a:hover { color: var(--brand-active); }
.article-summary {
  color: var(--ink-muted); font-size: .92rem; margin: 0 0 .85rem; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-meta { display: flex; gap: 1.25rem; color: var(--ink-muted); font-size: .85rem; align-items: center; }
.article-meta .icon-svg { color: var(--brand-light); margin-right: .25rem; }
.article-top-flag {
  background: var(--brand-gradient); color: #fff; font-size: .75rem; font-weight: 700;
  padding: .1rem .6rem; border-radius: var(--radius-pill); margin-right: .5rem;
}

/* 详情页 */
.article-detail-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  padding: 3rem 2.5rem; max-width: 860px; margin: 0 auto;
}
.article-detail-card h1 { font-size: 1.9rem; margin-bottom: 1rem; }
.article-detail-meta {
  display: flex; flex-wrap: wrap; gap: 1.25rem; color: var(--ink-muted); font-size: .9rem;
  padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.75rem;
}
.article-detail-cover { border-radius: var(--radius-md); overflow: hidden; margin-bottom: 2rem; }
.article-content { font-size: 1.02rem; line-height: 1.9; overflow-x: auto; }
.article-content p { margin-bottom: 1.1rem; }
.article-content table {
  width: 100%; min-width: 480px; border-collapse: collapse;
  margin: 1.5rem 0; font-size: .95rem;
}
.article-content th, .article-content td {
  border: 1px solid var(--border); padding: .6rem .8rem; text-align: left;
}
.article-content thead th, .article-content tbody tr:first-child strong { white-space: nowrap; }
.article-content h2 {
  font-size: 1.4rem; margin: 2rem 0 1rem; padding-left: .8rem;
  border-left: 4px solid var(--brand-primary);
}
.article-content h3 { font-size: 1.2rem; margin: 1.6rem 0 .8rem; }
.article-content img { border-radius: var(--radius-md); height: auto !important; }
.article-content a { text-decoration: underline; }
.article-content blockquote {
  border-left: 4px solid var(--brand-light); background: var(--brand-50);
  padding: 1rem 1.25rem; border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--cream-text); margin: 1.5rem 0;
}
.article-like { text-align: center; margin: 2.5rem 0; }
.btn-like {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid var(--brand-primary); background: #fff; color: var(--brand-primary);
  padding: .6rem 2rem; border-radius: var(--radius-pill); font-weight: 600;
  transition: all .25s var(--ease);
}
.btn-like:hover, .btn-like.liked { background: var(--brand-primary); color: #fff; }
.article-nav { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.article-nav a { max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-nav .next { text-align: right; margin-left: auto; }

.hot-articles, .baodian-side-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  padding: 1.5rem; margin-bottom: 1.5rem;
}
.side-title {
  font-size: 1.1rem; font-weight: 700; margin: 0 0 1rem; padding-bottom: .75rem;
  border-bottom: 2px solid var(--brand-100); display: flex; align-items: center; gap: .45rem;
}
.side-title .icon-svg { color: var(--brand-primary); }
.hot-list { list-style: none; padding: 0; margin: 0; counter-reset: hot; }
.hot-list li { counter-increment: hot; padding: .65rem 0; border-bottom: 1px dashed var(--border); }
.hot-list li:last-child { border-bottom: none; }
.hot-list a {
  color: var(--ink); display: flex; gap: .7rem; font-size: .94rem; line-height: 1.5;
  align-items: flex-start;
}
.hot-list a::before {
  content: counter(hot); flex: none; width: 22px; height: 22px; border-radius: var(--radius-sm);
  background: var(--brand-100); color: var(--brand-primary);
  font-size: .8rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}
.hot-list li:nth-child(-n+3) a::before { background: var(--brand-primary); color: #fff; }
.hot-list a:hover { color: var(--brand-primary); }
.hot-list .hot-views { font-size: .78rem; color: var(--ink-muted); flex: none; }

/* ---------------- 16. 联系我们 ---------------- */
.contact-info-card {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #fff; border-radius: var(--radius-md); padding: 1.5rem;
  box-shadow: var(--shadow-card); height: 100%;
}
.contact-info-card .icon-circle { width: 52px; height: 52px; font-size: 1.35rem; flex: none; }
.contact-info-card h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.contact-info-card p { margin: 0; color: var(--ink-muted); word-break: break-all; }

.contact-map {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card);
  border: 1px solid var(--border); margin: 3rem 0;
}
.qr-card {
  text-align: center; background: #fff; border-radius: var(--radius-md);
  padding: 1.75rem 1rem; box-shadow: var(--shadow-card);
}
.qr-card img { width: 168px; height: 168px; object-fit: contain; margin-bottom: .85rem; }
.qr-card h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.qr-card p { color: var(--ink-muted); font-size: .88rem; margin: 0; }

.contact-form-card {
  background: #fff; border-radius: var(--radius-lg); padding: 2.25rem;
  box-shadow: var(--shadow-card);
}
.form-control, .form-select {
  border-radius: var(--radius-md); border-color: var(--border);
  padding: .65rem .9rem; font-size: .98rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 .2rem rgba(188, 57, 136, .25);
}
.form-label { font-weight: 600; color: var(--ink); }
.form-label .req { color: var(--danger); margin-left: .2rem; }
.invalid-feedback { font-size: .85rem; }

/* toast（轻量提示，不依赖 Element） */
.toast-tip {
  position: fixed; left: 50%; top: 96px; transform: translate(-50%, -16px);
  background: rgba(53, 53, 53, .92); color: #fff;
  padding: .8rem 1.6rem; border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); z-index: 2000; opacity: 0;
  transition: all .3s var(--ease); pointer-events: none; max-width: 90vw;
}
.toast-tip.show { opacity: 1; transform: translate(-50%, 0); }
.toast-tip.success { background: rgba(34, 139, 87, .95); }
.toast-tip.error { background: rgba(245, 34, 45, .95); }

/* ---------------- 17. 页脚 + 悬浮工具 ---------------- */
.site-footer { background: var(--bg-cream); border-top: 3px solid var(--brand-primary); color: var(--cream-text); }
.footer-grid { padding: 4rem 0 2.5rem; }
.footer-brand { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.footer-brand img { max-width: 100%; border-radius: var(--radius-sm); }
.footer-brand .h3 { color: var(--brand-primary); font-weight: 800; }
.footer-desc { color: var(--cream-text); opacity: .8; font-size: .92rem; margin-bottom: 1.25rem; }
.footer-qr { display: flex; align-items: center; gap: .75rem; font-size: .88rem; font-weight: 600; }
.footer-qr img { border-radius: var(--radius-md); border: 1px solid var(--border); background: #fff; padding: .25rem; }
.footer-title { font-size: 1.05rem; margin-bottom: 1.1rem; color: var(--ink); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a { color: var(--cream-text); opacity: .82; font-size: .94rem; }
.footer-links a:hover { color: var(--brand-primary); opacity: 1; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .75rem; font-size: .94rem; }
.footer-contact .icon-svg { color: var(--brand-primary); margin-top: .35rem; }
.footer-contact a { color: inherit; }
.footer-bottom { border-top: 1px solid rgba(70, 46, 18, .12); padding: 1.1rem 0; font-size: .88rem; opacity: .85; }
.footer-bottom a { color: inherit; }
.footer-record span { margin-left: 1rem; }
/* 友情链接条：位于四栏网格与版权条之间，标签加粗、链接常规字重形成区分 */
.footer-friendlinks { border-top: 1px solid rgba(70, 46, 18, .12); padding: 1.2rem 0; }
.footer-friendlinks .container { display: flex; align-items: flex-start; gap: .75rem 1.25rem; flex-wrap: wrap; }
.fl-title { flex: none; margin: 0; padding-top: .15rem; font-size: .95rem; font-weight: 700; color: var(--ink); }
.fl-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.fl-list a { color: var(--cream-text); opacity: .82; font-size: .9rem; }
.fl-list a:hover { color: var(--brand-primary); opacity: 1; }

.float-tools { position: fixed; right: 1rem; bottom: 4rem; z-index: 1020; display: flex; flex-direction: column; gap: .6rem; }
.float-btn {
  position: relative; width: 52px; height: 52px; border-radius: var(--radius-lg);
  border: none; background: rgba(188, 57, 136, .88); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
  box-shadow: var(--shadow-card); transition: all .25s var(--ease); cursor: pointer;
}
.float-btn:hover { background: var(--brand-hover); color: #fff; transform: translateY(-2px); }
.float-label {
  position: absolute; right: 60px; top: 50%; transform: translateY(-50%) translateX(6px);
  background: rgba(53, 53, 53, .9); color: #fff; font-size: .82rem; white-space: nowrap;
  padding: .3rem .7rem; border-radius: var(--radius-sm); opacity: 0; pointer-events: none;
  transition: all .25s var(--ease);
}
.float-btn:hover .float-label { opacity: 1; transform: translateY(-50%) translateX(0); }
.float-pop {
  position: absolute; right: 60px; bottom: 0; width: 172px;
  background: rgba(255, 240, 247, .98); border-radius: var(--radius-lg);
  padding: .9rem; text-align: center; box-shadow: var(--shadow-hover);
  opacity: 0; pointer-events: none; transform: translateX(8px);
  transition: all .25s var(--ease);
}
.float-wechat:hover .float-pop { opacity: 1; transform: translateX(0); pointer-events: auto; }
.float-pop img { border-radius: var(--radius-md); background: #fff; width: 140px; height: 140px; object-fit: contain; }
.float-pop span { display: block; margin-top: .4rem; font-size: .8rem; color: var(--brand-active); font-weight: 600; }
.back-to-top { opacity: 0; visibility: hidden; }
.back-to-top.show { opacity: 1; visibility: visible; }

/* ---------------- 18. 分页 ---------------- */
.pagination-wrap { margin-top: 3rem; }
.pagination { gap: .4rem; }
.page-link {
  border: none; border-radius: var(--radius-md) !important;
  color: var(--ink); min-width: 42px; text-align: center; font-weight: 600;
  padding: .5rem .85rem; box-shadow: none;
}
.page-link:hover { color: var(--brand-primary); background: var(--brand-50); }
.page-item.active .page-link { background: var(--brand-primary); color: #fff; }
.page-item.disabled .page-link { color: var(--ink-muted); background: transparent; }
.page-item.dots .page-link { background: transparent; }
.pagination-total { text-align: center; color: var(--ink-muted); font-size: .88rem; margin-top: .85rem; }

/* ---------------- 19. 错误页 ---------------- */
.error-page {
  min-height: calc(100vh - var(--header-h) - 260px);
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: var(--space-section) 1rem;
}
.error-code {
  font-size: 7rem; font-weight: 900; line-height: 1;
  background: var(--brand-gradient-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; font-variant-numeric: tabular-nums;
}
.error-page h1 { font-size: 1.6rem; margin: 1rem 0 .75rem; }
.error-page p { color: var(--ink-muted); margin-bottom: 2rem; }

/* ---------------- 20. 常见问题（FAQ 静态 Q/A 卡片） ---------------- */
.faq-list { max-width: 920px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); overflow: hidden;
}
.faq-question {
  display: flex; align-items: center; gap: .85rem;
  padding: 1.15rem 1.4rem;
  font-weight: 700; font-size: 1.12rem; color: var(--ink);
}
.faq-q-text { flex: 1; text-align: left; }
.faq-answer {
  display: flex; gap: .85rem; padding: 0 1.4rem 1.35rem;
  color: var(--ink-muted); line-height: 1.8; font-size: .97rem;
}
.faq-answer .rich-text { flex: 1; min-width: 0; }
.faq-answer .rich-text p { margin: 0 0 .6rem; }
.faq-answer .rich-text p:last-child { margin-bottom: 0; }
.faq-answer .text-muted { flex: 1; margin: 0; }

/* ---------------- 21. 响应式 ---------------- */
@media (max-width: 1199.98px) {
  .process-grid { grid-template-columns: repeat(4, 1fr); row-gap: 2.5rem; }
  .process-grid::before { display: none; }
}

@media (max-width: 991.98px) {
  :root { --header-h: 76px; }
  .section-block { padding: var(--space-section-sm) 0; }
  .section-title { margin-bottom: 2.5rem; }
  .section-title .title-en { font-size: 3rem; }

  #mainNav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-nav); padding: .75rem 1.25rem 1.25rem;
  }
  .navbar-nav .nav-link { padding: .7rem .5rem !important; }
  .navbar-nav .nav-link::after { left: 0; right: auto; width: 40%; }
  .nav-cta { margin-top: .75rem; width: 100%; justify-content: center; }

  .hero { padding-top: 3.5rem; }
  .hero-title { font-size: 2.25rem; }
  .hero-stats { margin-top: 2.5rem; }
  .hero-cta-bar::before { font-size: 72px; }
  .benchmark-row, .benchmark-row.reverse { flex-direction: column; gap: 1.5rem; }
  .benchmark-row .benchmark-img { width: 100%; }
  .article-detail-card { padding: 2rem 1.25rem; }
}

@media (max-width: 767.98px) {
  body { font-size: .95rem; }
  .section-title .title-en { font-size: 2.5rem; }
  .hero-title { font-size: 1.7rem; overflow-wrap: break-word; }
  .hero-sub { font-size: 1rem; }
  .hero-cta-bar { padding: 1.6rem 0; }
  .hero-cta-bar h2 { font-size: 1.25rem; }
  .page-hero { padding: 3rem 0 2.5rem; }
  .page-hero-title { font-size: 1.75rem; }

  .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .step-num { width: 64px; height: 64px; font-size: 1.5rem; }

  .article-item { flex-direction: column; gap: 1rem; padding: 1.1rem; }
  .article-cover { width: 100%; }
  .article-nav { flex-direction: column; }
  .article-nav a, .article-nav .next { max-width: 100%; text-align: left; }

  .contact-form-card { padding: 1.5rem 1.1rem; }
  .float-tools { display: none; }   /* 悬浮组件移动端隐藏，避免遮挡 */
  .case-corner { width: 72px; }
  .error-code { font-size: 5rem; }
  .faq-question { padding: 1rem 1.1rem; font-size: 1rem; }
  .faq-answer { padding: 0 1.1rem 1.1rem; }
}

/* ---------------- 22. 减弱动效 ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
