/* ==========================================================================
   梧下成双 · PC 站点样式 v4「素纸朱印」
   布局哲学：紧凑栅格 · 发丝描边 · 朱砂点睛 · 少渐变多留白
   交互：吸顶导航 / 移动抽屉 / 手风琴 FAQ / 滚动浮现 / 悬浮工具坞
   ========================================================================== */

/* ============ 0. 设计变量 ============ */
:root {
  /* 品牌朱砂 */
  --brand: #C2453A;
  --brand-600: #A63227;
  --brand-700: #87271E;
  --brand-500: #D96C5F;
  --brand-050: #FBEEE9;
  --brand-100: #F5DBD5;
  /* 淡金（仅作细节点缀） */
  --gold: #B98A3E;
  --gold-050: #F8F0E1;
  --gold-100: #EFE0C4;
  /* 墨阶 */
  --ink-900: #1B1614;
  --ink-800: #302A26;
  --ink-700: #4D443D;
  --ink-600: #6F645B;
  --ink-500: #92867A;
  --ink-400: #B5A99D;
  /* 兼容旧模板内联样式 */
  --text-light: #6F645B;
  --primary: #C2453A;
  /* 纸面 */
  --paper: #FBFAF8;
  --paper-2: #F5F1EB;
  --paper-3: #EFEAE2;
  --card: #FFFFFF;
  --deep: #1B1614;
  /* 描边 */
  --line: #EAE3DA;
  --line-2: #F2EDE6;
  --line-3: #D8CEC2;
  /* 语义色 */
  --male: #3E7CB1;
  --male-bg: #EDF4FB;
  --female: #C2566B;
  --female-bg: #FBEEF1;
  --ok: #3F8A5B;
  --ok-bg: #E9F4EC;
  --warn: #C08A2E;
  --warn-bg: #FBF3E0;
  /* 圆角 */
  --r-xs: 5px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-full: 999px;
  /* 阴影 */
  --sh-1: 0 1px 2px rgba(27, 22, 20, .05);
  --sh-2: 0 2px 10px rgba(27, 22, 20, .06);
  --sh-3: 0 12px 28px -12px rgba(27, 22, 20, .18);
  --sh-4: 0 24px 56px -20px rgba(27, 22, 20, .28);
  --sh-brand: 0 6px 16px -6px rgba(194, 69, 58, .45);
  /* 尺寸 */
  --maxw: 1180px;
  --head-h: 52px;
  --gutter: 20px;
  /* 字体 */
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif SC", serif;
}

/* ============ 1. Reset & Base ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-800);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--brand-600); }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3, h4, h5, h6 { line-height: 1.35; font-weight: 650; color: var(--ink-900); letter-spacing: -.01em; }
p { line-height: 1.7; }

html, body { height: 100%; }
main { display: block; min-height: 40vh; }

::selection { background: rgba(194, 69, 58, .16); color: var(--brand-700); }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-3); border-radius: 4px; border: 2px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-400); }

/* ============ 2. 布局容器 ============ */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.stack { display: flex; flex-direction: column; }

/* ============ 3. 图片懒加载 ============ */
.lazy-img {
  opacity: 0;
  background: linear-gradient(90deg, #F4F0EA 25%, #EDE8E0 37%, #F4F0EA 63%);
  background-size: 400% 100%;
  animation: imgShimmer 1.4s ease infinite;
  transition: opacity .35s ease;
}
.lazy-img.loaded { opacity: 1; animation: none; background: none; }
.lazy-img.error { opacity: 1; animation: none; background: var(--paper-3); }
@keyframes imgShimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* ============ 4. 滚动浮现（JS 增强，无 JS 不影响内容可见） ============ */
html.js .reveal { opacity: 0; transform: translateY(14px); }
html.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s cubic-bezier(.22, .61, .36, 1); }

/* ============ 5. 顶部导航 ============ */
.site-head {
  position: sticky; top: 0; z-index: 200;
  background: rgba(251, 250, 248, .82);
  backdrop-filter: saturate(170%) blur(14px);
  -webkit-backdrop-filter: saturate(170%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-head.is-stuck {
  background: rgba(255, 255, 255, .95);
  border-bottom-color: var(--line);
  box-shadow: var(--sh-1);
}
.head-inner { height: var(--head-h); display: flex; align-items: center; gap: 14px; }

.brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 9px;
  background: linear-gradient(140deg, #CE5145, var(--brand-700));
  color: #FBEEE9; font-family: var(--serif); font-size: 16px; font-weight: 700;
  display: grid; place-items: center; box-shadow: var(--sh-brand);
}
.brand-text { font-family: var(--serif); font-size: 17px; font-weight: 700; letter-spacing: .08em; color: var(--ink-900); }

.nav { display: flex; align-items: center; gap: 1px; flex: 1; min-width: 0; }
.nav a {
  padding: 5px 10px; border-radius: var(--r-sm);
  font-size: 13px; color: var(--ink-700); white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}
.nav a:hover { background: var(--paper-2); color: var(--brand-600); }
.nav a.active { color: var(--brand-600); font-weight: 650; background: var(--brand-050); }

.head-cta {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
  padding: 7px 14px; border-radius: var(--r-sm);
  background: linear-gradient(140deg, #CE5145, var(--brand-700));
  color: #FBEEE9; font-size: 13px; font-weight: 600;
  box-shadow: var(--sh-brand); transition: transform .18s ease, box-shadow .18s ease;
}
.head-cta svg { width: 14px; height: 14px; }
.head-cta:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(194, 69, 58, .6); }
.head-cta:active { transform: translateY(0) scale(.97); }

.nav-toggle {
  display: none; width: 34px; height: 34px; border-radius: var(--r-sm);
  align-items: center; justify-content: center; color: var(--ink-800);
  border: 1px solid var(--line); background: #fff;
}
.nav-toggle svg { width: 18px; height: 18px; }

.drawer {
  position: fixed; inset: var(--head-h) 0 0 0; z-index: 190;
  background: rgba(27, 22, 20, .38);
  backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s ease;
}
.drawer.open { opacity: 1; visibility: visible; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(300px, 82vw);
  background: #fff; padding: 16px 16px 24px; overflow-y: auto;
  transform: translateX(100%); transition: transform .26s cubic-bezier(.22, .61, .36, 1);
  box-shadow: var(--sh-4);
}
.drawer.open .drawer-panel { transform: none; }
.drawer-panel a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 12px; border-radius: var(--r-sm); font-size: 14px; color: var(--ink-800);
}
.drawer-panel a + a { margin-top: 2px; }
.drawer-panel a:hover, .drawer-panel a.active { background: var(--brand-050); color: var(--brand-600); }
.drawer-note { margin-top: 14px; padding: 12px; border-radius: var(--r-md); background: var(--paper-2); font-size: 12px; color: var(--ink-500); }

/* ============ 6. 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent; transition: all .18s ease;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: linear-gradient(140deg, #CE5145, var(--brand-700)); color: #FBEEE9; box-shadow: var(--sh-brand); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(194, 69, 58, .55); }
.btn-ghost { background: #fff; color: var(--ink-800); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand-100); background: var(--brand-050); color: var(--brand-600); transform: translateY(-1px); }
.btn-lg { padding: 10px 20px; font-size: 14px; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-outline { background: #fff; color: var(--ink-800); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand-100); background: var(--brand-050); color: var(--brand-600); transform: translateY(-1px); }

/* ============ 7. 面包屑 ============ */
.crumb {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 12px; color: var(--ink-500); padding: 14px 0 0;
}
.crumb a { color: var(--ink-600); }
.crumb a:hover { color: var(--brand-600); }
.crumb .sep { color: var(--ink-400); font-size: 11px; }
.crumb .now { color: var(--ink-500); }

/* ============ 8. 页头（紧凑，替代原大 Hero） ============ */
.page-head {
  position: relative; margin-top: 12px;
  padding: 22px 0 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #FFF8F2 0%, rgba(255, 248, 242, 0) 100%);
}
.ph-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.ph-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 650; letter-spacing: .1em; color: var(--brand-600);
}
.ph-eyebrow::before { content: ""; width: 14px; height: 2px; border-radius: 2px; background: var(--brand); }
.ph-title { font-size: 26px; line-height: 1.3; margin: 6px 0 6px; }
.ph-title em { font-style: normal; color: var(--brand); }
.ph-sub { font-size: 13.5px; color: var(--ink-600); max-width: 620px; }
.ph-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.ph-stats { display: flex; gap: 22px; margin-top: 16px; flex-wrap: wrap; }
.ph-stat { display: flex; flex-direction: column; }
.ph-stat b { font-size: 19px; font-weight: 700; color: var(--ink-900); letter-spacing: -.02em; line-height: 1.2; }
.ph-stat b.accent { color: var(--brand); }
.ph-stat span { font-size: 11.5px; color: var(--ink-500); }

/* 页头右侧扫码卡 */
.ph-qr {
  display: block; width: 250px; flex-shrink: 0;
  padding: 9px 10px 10px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: #fff; box-shadow: var(--sh-1); cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ph-qr:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--brand-100); }
.ph-qr img { width: 100%; aspect-ratio: 1200 / 442; object-fit: contain; border-radius: var(--r-xs); background: #fff; }
.ph-qr-txt { display: block; text-align: center; margin-top: 7px; }
.ph-qr-txt strong { display: block; font-size: 12.5px; color: var(--ink-900); line-height: 1.3; }
.ph-qr-txt span { display: block; font-size: 11.5px; color: var(--ink-500); line-height: 1.3; }

/* 首页大 Hero（仅首页） */
.hero { position: relative; margin-top: 12px; padding: 34px 0 30px; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -120px; right: -60px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(194, 69, 58, .10) 0%, rgba(194, 69, 58, 0) 68%);
}
.hero::after {
  content: ""; position: absolute; left: -80px; bottom: -160px; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(185, 138, 62, .10) 0%, rgba(185, 138, 62, 0) 70%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: center; }
.hero h1 { font-size: 36px; line-height: 1.28; letter-spacing: -.02em; margin: 8px 0 10px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-sub { font-size: 14.5px; color: var(--ink-600); max-width: 560px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.hero-qr { position: relative; }
.hero-qr-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 14px; box-shadow: var(--sh-2); cursor: pointer;
  transition: transform .25s cubic-bezier(.22, .61, .36, 1), box-shadow .25s ease;
}
.hero-qr:hover .hero-qr-card { transform: translateY(-4px); box-shadow: var(--sh-3); }
.hero-qr-img { border-radius: var(--r-sm); overflow: hidden; background: #fff; aspect-ratio: 1200 / 442; }
.hero-qr-img img { width: 100%; height: 100%; object-fit: contain; }
.hero-qr-text { display: block; text-align: center; font-size: 12.5px; font-weight: 600; margin-top: 10px; }
.hero-qr-text em { display: block; font-style: normal; font-size: 11.5px; font-weight: 400; color: var(--ink-500); margin-top: 1px; }

/* ============ 9. 区块 ============ */
.section { padding: 30px 0; }
.section + .section { border-top: 1px solid var(--line-2); }
.section.tint { background: var(--paper-2); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.sec-head .sh-main { min-width: 0; }
.sec-head h2 { font-size: 19px; }
.sec-head p { font-size: 13px; color: var(--ink-500); margin-top: 2px; }
.sec-head .sh-link { font-size: 12.5px; color: var(--brand-600); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.sec-head .sh-link svg { width: 13px; height: 13px; }
.sec-head.center { flex-direction: column; align-items: center; text-align: center; }

/* 圈子分类筛选条 */
.cat-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.cat-item {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 15px; font-size: 13.5px; font-weight: 600; line-height: 1;
  color: var(--ink-600); background: #fff; border: 1px solid var(--line);
  border-radius: 999px; text-decoration: none; transition: all .15s ease;
}
.cat-item:hover { color: var(--brand-700); border-color: var(--brand-500); }
.cat-item.active {
  color: #fff; background: linear-gradient(140deg, #CE5145, var(--brand-700));
  border-color: transparent; box-shadow: 0 4px 12px rgba(206, 81, 69, .25);
}

/* ============ 10. 功能矩阵（首页） ============ */
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.feature {
  display: flex; gap: 11px; padding: 13px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--brand-100); }
.feature .fi {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: var(--brand-050); color: var(--brand-600);
  display: grid; place-items: center; transition: background .2s ease, color .2s ease;
}
.feature:hover .fi { background: linear-gradient(140deg, #CE5145, var(--brand-700)); color: #FBEEE9; }
.feature .fi svg { width: 17px; height: 17px; }
.feature h3 { font-size: 14px; margin-bottom: 2px; }
.feature p { font-size: 12px; color: var(--ink-500); line-height: 1.5; }

/* ============ 11. 数据卡片栅格 ============ */
.data-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.data-grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.data-grid.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.data-card {
  display: flex; flex-direction: column; min-height: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.data-card:hover { transform: translateY(-3px); box-shadow: var(--sh-3); border-color: var(--brand-100); }

/* 内容列表配图：小缩略图，置于卡片底部左侧（不大图、不放顶部），有图才出现 */
.card-cover {
  order: 5; align-self: flex-start; flex: 0 0 auto;
  width: 76px; height: 76px; margin: 0 13px 12px;
  border-radius: var(--r-sm); overflow: hidden; background: var(--paper-3);
}
.card-cover img { width: 100%; height: 100%; object-fit: cover; }

.card-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 13px; }
.card-title {
  font-size: 14px; font-weight: 650; line-height: 1.45; color: var(--ink-900);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.data-card:hover .card-title { color: var(--brand-600); }
.card-summary {
  font-size: 12.5px; color: var(--ink-600); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-target { font-size: 12.5px; font-weight: 650; color: var(--female); }
.card-question {
  font-size: 12.5px; color: var(--brand-600); background: var(--brand-050);
  padding: 8px 10px; border-radius: var(--r-sm); border: 1px solid var(--brand-100); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-picked {
  align-self: flex-start; font-size: 11.5px; font-weight: 600; color: var(--ok);
  background: var(--ok-bg); padding: 2px 9px; border-radius: var(--r-full);
}
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; }
.card-meta {
  display: flex; flex-wrap: wrap; gap: 4px 10px; padding-top: 8px;
  border-top: 1px solid var(--line-2); font-size: 11.5px; color: var(--ink-500); font-weight: 500;
}
.card-meta-item { display: inline-flex; align-items: center; gap: 3px; }
.card-cost { color: var(--female); font-weight: 700; }

/* 标签 */
.card-tag {
  align-self: flex-start; display: inline-block;
  padding: 2px 8px; border-radius: var(--r-xs);
  background: var(--brand-050); color: var(--brand-600);
  font-size: 11px; font-weight: 650; border: 1px solid var(--brand-100);
}
.card-tag.tag-pink { background: var(--female-bg); color: var(--female); border-color: #F3D7DD; }
.card-tag.tag-blue { background: var(--male-bg); color: var(--male); border-color: #D5E4F2; }
.card-tag.tag-green { background: var(--ok-bg); color: var(--ok); border-color: #CFE7D7; }
.card-tag.tag-amber { background: var(--warn-bg); color: var(--warn); border-color: #EFE0BD; }
.card-tag.tag-solid { background: var(--brand); color: #fff; border-color: var(--brand); }
.card-tag.tag-status { background: var(--paper-2); color: var(--ink-600); border-color: var(--line-2); }

/* 作者 */
.card-author { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; color: var(--ink-500); }
.card-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid var(--line-2); }
.author-name { font-size: 12.5px; font-weight: 600; color: var(--ink-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 96px; }
.author-meta { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--ink-500); }
.author-age, .author-occ { font-size: 11.5px; color: var(--ink-500); }
.meta-sep { color: var(--line-3); }
.gender-icon { font-size: 12px; font-weight: 700; }
.text-male { color: var(--male); }
.text-female { color: var(--female); }

/* 头像角标 */
.avatar-wrap { position: relative; display: inline-block; flex-shrink: 0; }
.avatar-dot {
  position: absolute; bottom: -2px; right: -2px; width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid #fff; font-size: 8px; font-weight: 700; color: #fff;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.dot-vip { background: linear-gradient(140deg, #D9A038, #B57F22); }
.dot-verified { background: var(--ok); }
.avatar-wrap-lg .avatar-dot { width: 17px; height: 17px; font-size: 10px; }

/* 统计图标 */
.card-stats { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--ink-500); flex-shrink: 0; }
.card-stats span { display: inline-flex; align-items: center; gap: 3px; }
.card-stats span[class^="stat-"]::before {
  content: ''; width: 12px; height: 12px; opacity: .55;
  background-size: contain; background-repeat: no-repeat; background-position: center;
}
.stat-like::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2392867A'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E"); }
.stat-comment::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2392867A'%3E%3Cpath d='M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z'/%3E%3C/svg%3E"); }
.stat-view::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2392867A'%3E%3Cpath d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zm0 12.5a5 5 0 110-10 5 5 0 010 10z'/%3E%3C/svg%3E"); }
.stat-collect::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2392867A'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E"); }

/* 搭子报名者 */
.applicant-list { display: flex; align-items: center; margin-top: 2px; }
.applicant-avatar { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; margin-left: -7px; }
.applicant-avatar:first-child { margin-left: 0; }
.applicant-more { font-size: 11px; color: var(--ink-500); margin-left: 6px; font-weight: 650; }

/* 领证登记卡 */
.love-card .card-body { padding: 13px; }
.love-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.love-couple {
  display: flex; align-items: center; gap: 8px; padding: 12px 10px;
  background: linear-gradient(140deg, #FDF4F5, #FBF6EE);
  border: 1px solid var(--line); border-radius: var(--r-sm);
}
.love-person { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: 1; min-width: 0; }
.love-person-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: var(--sh-1); }
.love-person-text { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.love-person-name { font-size: 13px; font-weight: 650; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.love-person-sub { font-size: 10.5px; color: var(--ink-500); }
.love-heart-wrap { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--female); flex-shrink: 0; }
.love-heart-wrap svg { width: 20px; height: 20px; }
.love-duration { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.love-duration-num { font-size: 14px; font-weight: 700; color: var(--female); }
.love-duration-label { font-size: 9.5px; color: var(--ink-500); }

/* 用户卡（附近人） */
.user-card-body { flex-direction: row; align-items: flex-start; gap: 11px; padding: 13px; }
.user-card .avatar-wrap-lg { width: 52px; height: 52px; }
.user-card-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; box-shadow: var(--sh-1); transition: transform .25s ease; }
.user-card:hover .user-card-avatar { transform: scale(1.05); }
.user-card-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.user-card-name { font-size: 14px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.data-card:hover .user-card-name { color: var(--brand-600); }
.user-card-info { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-500); flex-wrap: wrap; }
.user-card-age, .user-card-occ { font-size: 12px; color: var(--ink-600); }
.user-card-sig { font-size: 12px; color: var(--ink-600); -webkit-line-clamp: 1; margin: 0; }
.user-card-loc { font-size: 11.5px; color: var(--ink-500); display: flex; align-items: center; gap: 4px; }
.user-card-loc::before { content: ''; width: 11px; height: 11px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2392867A'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 010-5 2.5 2.5 0 010 5z'/%3E%3C/svg%3E"); background-size: contain; background-repeat: no-repeat; }
.user-card-online { font-size: 11px; font-weight: 650; color: var(--ok); }

/* 圈子卡 */
.circle-card-top { display: flex; align-items: flex-start; gap: 9px; }
.circle-avatar { width: 40px; height: 40px; border-radius: var(--r-sm); object-fit: cover; flex-shrink: 0; border: 1px solid var(--line-2); }
.circle-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 3px; }

/* ============ 12. 空态 / 加载 ============ */
.data-empty { grid-column: 1 / -1; padding: 40px 16px; text-align: center; color: var(--ink-500); font-size: 13px; }
.data-empty a { display: inline-block; margin-top: 8px; color: var(--brand-600); font-weight: 650; }
.loading-spinner {
  width: 28px; height: 28px; margin: 0 auto 10px;
  border: 2px solid var(--line); border-top-color: var(--brand);
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 骨架屏 */
.skeleton-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sk-card { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; overflow: hidden; }
.sk-cover { aspect-ratio: 8 / 5; }
.sk-line { height: 10px; border-radius: 4px; margin: 10px 13px; }
.sk-cover, .sk-line { background: linear-gradient(90deg, #F4F0EA 25%, #EDE8E0 37%, #F4F0EA 63%); background-size: 400% 100%; animation: imgShimmer 1.4s ease infinite; }
.sk-line.w60 { width: 60%; }
.sk-line.w40 { width: 40%; }

/* ============ 13. 分页 ============ */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 22px 0 0; }
.page-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 14px; border-radius: var(--r-sm); font-size: 13px; font-weight: 600;
  color: var(--ink-700); background: #fff; border: 1px solid var(--line);
  transition: all .18s ease;
}
.page-btn:hover:not(:disabled) { border-color: var(--brand-100); background: var(--brand-050); color: var(--brand-600); transform: translateY(-1px); }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }
.page-btn svg { width: 13px; height: 13px; }
.page-info { font-size: 12.5px; color: var(--ink-500); min-width: 64px; text-align: center; font-weight: 600; }

/* ============ 14. Tab ============ */
.tab-nav { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tab-nav-item {
  padding: 8px 14px; font-size: 13.5px; font-weight: 600; color: var(--ink-500);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
  transition: color .18s ease, border-color .18s ease;
}
.tab-nav-item:hover { color: var(--brand-600); }
.tab-nav-item.active { color: var(--brand-600); border-bottom-color: var(--brand); }

/* ============ 15. FAQ 手风琴 ============ */
.faq { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; overflow: hidden; max-width: 820px; }
.faq-item + .faq-item { border-top: 1px solid var(--line-2); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; font-size: 14px; font-weight: 650; cursor: pointer;
  list-style: none; color: var(--ink-900); transition: background .18s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--paper-2); }
.faq-item summary .chev { flex-shrink: 0; width: 16px; height: 16px; color: var(--ink-400); transition: transform .25s ease, color .18s ease; }
.faq-item[open] summary { color: var(--brand-600); }
.faq-item[open] summary .chev { transform: rotate(180deg); color: var(--brand); }
.faq-answer { padding: 0 16px 14px; font-size: 13.5px; color: var(--ink-600); animation: faqIn .25s ease; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ============ 16. 相关功能 ============ */
.related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.related-card {
  display: flex; align-items: center; gap: 10px; padding: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.related-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--brand-100); }
.related-card .r-icon {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  background: var(--brand-050); color: var(--brand-600); display: grid; place-items: center;
  transition: background .2s ease, color .2s ease;
}
.related-card:hover .r-icon { background: linear-gradient(140deg, #CE5145, var(--brand-700)); color: #FBEEE9; }
.related-card .r-icon svg { width: 16px; height: 16px; }
.related-card .r-name { font-size: 13.5px; font-weight: 650; }
.related-card .r-desc { font-size: 11.5px; color: var(--ink-500); margin-top: 1px; }

/* ============ 17. CTA 横幅 ============ */
.cta {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 24px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, #B8493B 0%, var(--brand-700) 100%);
  color: #FBEEE9;
}
.cta::after {
  content: ""; position: absolute; right: -50px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 235, 200, .16) 0%, transparent 70%);
}
.cta h2 { position: relative; color: #FBEEE9; font-size: 19px; margin-bottom: 3px; }
.cta p { position: relative; font-size: 13px; color: rgba(251, 238, 233, .82); }
.cta .btn { position: relative; flex-shrink: 0; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 235, 210, .38); color: #FBEEE9; }
.cta .btn:hover { background: rgba(255, 255, 255, .24); color: #fff; }

/* ============ 18. 详情页 ============ */
.detail-page { padding-bottom: 34px; }
.detail-wrap { max-width: 860px; margin: 0 auto; padding: 0 var(--gutter); }
/* 详情页主标题：SSR 直出，保证无 JS/爬虫首屏也有 h1；JS 加载后替换为真实标题 */
.detail-page-title {
  font-family: var(--font-serif); font-size: 22px; font-weight: 700;
  letter-spacing: -.3px; line-height: 1.3; color: var(--ink-900); margin: 0 0 14px;
}
.detail-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 20px 22px; box-shadow: var(--sh-1);
}
.detail-title { font-size: 21px; margin-bottom: 10px; }
.detail-author { display: flex; align-items: center; gap: 11px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 14px; }
.detail-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-2); }
.detail-author-info { min-width: 0; }
.detail-author-name { font-size: 14px; font-weight: 650; }
.detail-author-meta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: 12px; color: var(--ink-500); margin-top: 1px; }
.detail-content { font-size: 14.5px; line-height: 1.85; color: var(--ink-800); white-space: pre-wrap; word-break: break-word; }
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.detail-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: var(--ink-500); }
.applicant-block { margin: 14px 0; }
.applicant-title { font-size: 12.5px; color: var(--ink-500); margin-bottom: 6px; }
.detail-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.detail-images img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); cursor: zoom-in; transition: transform .25s ease, box-shadow .25s ease; box-shadow: var(--sh-1); background: var(--paper-2); }
.detail-images img:only-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.detail-images img.expanded { aspect-ratio: auto; object-fit: contain; }
.detail-images img:hover { transform: scale(1.02); box-shadow: var(--sh-2); }
.detail-images img.expanded { grid-column: 1 / -1; cursor: zoom-out; }
.detail-info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.detail-info-item { padding: 9px 11px; background: var(--paper-2); border-radius: var(--r-sm); border: 1px solid var(--line-2); }
.detail-info-item .label { font-size: 11px; color: var(--ink-500); margin-bottom: 2px; font-weight: 600; }
.detail-info-item .value { font-size: 13px; font-weight: 650; color: var(--ink-900); }
.detail-actions { display: flex; gap: 7px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line-2); margin-top: 16px; }
.detail-action-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--r-sm);
  background: var(--paper-2); color: var(--ink-700); font-size: 13px; font-weight: 600;
  border: 1px solid var(--line-2); transition: all .18s ease;
}
.detail-action-btn:hover { background: var(--brand-050); color: var(--brand-600); border-color: var(--brand-100); transform: translateY(-1px); }
.detail-action-primary { margin-left: auto; background: linear-gradient(140deg, #CE5145, var(--brand-700)); color: #FBEEE9; border-color: transparent; box-shadow: var(--sh-brand); }
.detail-action-primary:hover { color: #fff; background: linear-gradient(140deg, var(--brand-600), var(--brand-700)); }
.action-icon { display: inline-block; width: 14px; height: 14px; background-size: contain; background-repeat: no-repeat; background-position: center; }
.icon-like { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23C2453A'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E"); }
.icon-comment { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23C2453A'%3E%3Cpath d='M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z'/%3E%3C/svg%3E"); }
.icon-collect { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23C2453A'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E"); }
.detail-loading, .detail-error { text-align: center; padding: 56px 16px; color: var(--ink-500); }
.detail-error h3 { font-size: 17px; margin-bottom: 4px; }
.detail-error p { margin-bottom: 14px; font-size: 13px; }

/* 引导条 */
.guide-banner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 13px 15px; margin-top: 16px; border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--brand-050), var(--gold-050));
  border: 1px solid var(--brand-100);
}
.guide-banner-icon {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(140deg, #CE5145, var(--brand-700)); color: #fff;
  display: grid; place-items: center;
}
.guide-banner-icon svg { width: 17px; height: 17px; }
.guide-banner-text { flex: 1; min-width: 180px; }
.guide-banner-text h4 { font-size: 13.5px; color: var(--brand-600); margin-bottom: 1px; }
.guide-banner-text p { font-size: 12px; color: var(--ink-600); }
.guide-banner .btn { flex-shrink: 0; }

/* 圈子详情头 */
.circle-header-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); }
.circle-cover { height: 116px; overflow: hidden; background: linear-gradient(135deg, var(--gold-050), var(--brand-050)); position: relative; }
.circle-cover img { width: 100%; height: 100%; object-fit: cover; }
.circle-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,22,20,0) 45%, rgba(27,22,20,.14) 100%); }
.circle-header-body { padding: 14px 18px 16px; }
.circle-header-top { display: flex; align-items: center; gap: 13px; }
.circle-header-top .circle-avatar { width: 58px; height: 58px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: #fff; flex-shrink: 0; }
.circle-header-info { flex: 1; min-width: 0; }
.circle-name { font-size: 20px; margin-bottom: 6px; }
.circle-stats { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 6px; }
.circle-stats span { font-size: 12px; color: var(--ink-600); background: var(--paper-2); padding: 2px 10px; border-radius: var(--r-full); border: 1px solid var(--line-2); }
.circle-desc { margin-top: 12px; font-size: 13.5px; color: var(--ink-600); }

/* 用户主页 */
.user-profile-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); }
.user-profile-header { display: flex; align-items: center; gap: 14px; padding: 18px; border-bottom: 1px solid var(--line-2); }
.user-profile-avatar { width: 66px; height: 66px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: var(--sh-2); flex-shrink: 0; }
.user-profile-info { flex: 1; min-width: 0; }
.user-profile-name { font-size: 18px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.user-profile-name .author-age { font-size: 11.5px; color: var(--ink-600); font-weight: 600; background: var(--paper-2); padding: 1px 8px; border-radius: var(--r-full); }
.profile-badges { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.profile-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: var(--r-full); font-size: 11px; font-weight: 650; }
.profile-badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-real { background: var(--male-bg); color: var(--male); }
.badge-edu { background: var(--gold-050); color: var(--gold); }
.badge-vip { background: var(--warn-bg); color: var(--warn); }
.user-profile-stats { display: flex; gap: 14px; margin-top: 8px; font-size: 12px; color: var(--ink-500); }
.user-profile-stats strong { font-size: 14px; color: var(--ink-900); margin-right: 2px; }
.user-profile-actions { display: flex; gap: 6px; flex-shrink: 0; }
.user-intro { padding: 16px 18px 0; }
.user-intro h3 { font-size: 14px; margin-bottom: 5px; }
.user-intro p { font-size: 13.5px; color: var(--ink-600); white-space: pre-wrap; }
.user-profile-card .detail-info-grid { padding: 0 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.user-photos { padding: 16px 18px 18px; }
.user-photos h3 { font-size: 14px; margin-bottom: 10px; }
.photos-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.photos-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); box-shadow: var(--sh-1); transition: transform .25s ease; }
.photos-grid img:hover { transform: scale(1.03); }

/* ============ 19. 八字测算页 ============ */
.fortune-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fortune-type-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; position: relative;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.fortune-type-card:hover { box-shadow: var(--sh-2); border-color: var(--brand-100); transform: translateY(-2px); }
.fortune-type-card.featured { border-color: var(--brand-100); background: linear-gradient(180deg, #FEF7F5, #fff 60%); }
.ftc-badge {
  position: absolute; top: 14px; right: 14px; font-size: 10.5px; font-weight: 700;
  color: #FBEEE9; background: linear-gradient(140deg, #CE5145, var(--brand-600));
  padding: 2px 9px; border-radius: var(--r-full); letter-spacing: .05em;
}
.ftc-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--brand-050); color: var(--brand-600); display: grid; place-items: center; margin-bottom: 10px; }
.ftc-icon svg { width: 17px; height: 17px; }
.fortune-type-card h3 { font-size: 17px; }
.ftc-tagline { font-size: 12.5px; font-weight: 650; color: var(--brand-600); margin: 2px 0 8px; }
.ftc-desc { font-size: 12.5px; color: var(--ink-600); line-height: 1.65; }
.ftc-section-title { font-size: 10.5px; font-weight: 700; color: var(--ink-500); letter-spacing: .08em; margin: 12px 0 6px; }
.ftc-list { display: flex; flex-wrap: wrap; gap: 5px; }
.ftc-list li { font-size: 11px; color: var(--ink-700); background: var(--paper-2); padding: 2px 9px; border-radius: var(--r-full); border: 1px solid var(--line-2); font-weight: 500; }
.ftc-cta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; margin-top: auto; border-top: 1px solid var(--line-2); }
.ftc-price { font-size: 11.5px; color: var(--ink-500); }
.ftc-price strong { font-size: 15px; color: var(--brand); }

.fortune-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fortune-step { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; }
.fortune-step-num {
  width: 28px; height: 28px; border-radius: 50%; margin-bottom: 8px;
  background: linear-gradient(140deg, #CE5145, var(--brand-700)); color: #FBEEE9;
  display: grid; place-items: center; font-size: 14px; font-weight: 700; box-shadow: var(--sh-brand);
}
.fortune-step h4 { font-size: 14px; margin-bottom: 3px; }
.fortune-step p { font-size: 12.5px; color: var(--ink-600); line-height: 1.6; }

.demo-tab-bar { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; }
.demo-tab-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 20px; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 600; color: var(--ink-700); background: #fff;
  border: 1px solid var(--line); transition: all .18s ease;
}
.demo-tab-btn svg { width: 15px; height: 15px; }
.demo-tab-btn:hover { border-color: var(--brand-100); color: var(--brand-600); }
.demo-tab-btn.active { background: linear-gradient(140deg, #CE5145, var(--brand-700)); color: #FBEEE9; border-color: transparent; box-shadow: var(--sh-brand); }
.demo-result-panel { animation: panelIn .35s cubic-bezier(.22, .61, .36, 1); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.fortune-result-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); max-width: 860px; margin: 0 auto; }
.fr-header { position: relative; padding: 22px 24px; background: linear-gradient(135deg, #B8493B, var(--brand-700)); color: #FBEEE9; overflow: hidden; }
.fr-header-bg { position: absolute; top: -70px; right: -50px; width: 200px; height: 200px; background: rgba(255, 255, 255, .07); border-radius: 50%; }
.fr-header-content { position: relative; }
.fr-badge { display: inline-block; padding: 3px 11px; background: rgba(255, 255, 255, .16); border-radius: var(--r-full); font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.fr-title { font-size: 20px; color: #FBEEE9; margin-bottom: 3px; }
.fr-header-couple .fr-title { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.couple-name { padding: 4px 14px; background: rgba(255, 255, 255, .16); border-radius: var(--r-sm); font-size: 16px; }
.couple-heart { color: #F7B7BF; font-size: 16px; }
.fr-subtitle { font-size: 12.5px; opacity: .88; }
.fr-body { padding: 20px 24px 24px; }
.fr-section { margin-bottom: 22px; }
.fr-section:last-child { margin-bottom: 0; }
.fr-section-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.fr-section-icon { width: 26px; height: 26px; border-radius: 8px; background: var(--brand-050); color: var(--brand-600); display: grid; place-items: center; flex-shrink: 0; }
.fr-section-icon svg { width: 14px; height: 14px; }
.fr-section-head h4 { font-size: 15px; }

.fr-score-main { display: flex; align-items: center; gap: 22px; padding: 16px 18px; background: linear-gradient(135deg, var(--brand-050), var(--gold-050)); border-radius: var(--r-md); border: 1px solid var(--brand-100); margin-bottom: 22px; }
.fr-score-circle { position: relative; width: 96px; height: 96px; flex-shrink: 0; }
.score-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.fr-score-value { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.score-num { font-size: 32px; font-weight: 700; color: var(--brand-600); }
.fr-score-high .score-num { color: var(--female); }
.score-unit { font-size: 11px; color: var(--brand); font-weight: 600; margin-top: 2px; }
.fr-score-label { font-size: 12px; color: var(--ink-500); }
.fr-score-desc { font-size: 19px; font-weight: 700; color: var(--brand-600); margin: 2px 0 8px; letter-spacing: -.01em; }
.fr-score-high + .fr-score-info .fr-score-desc, .fr-score-info .fr-score-desc.high { color: var(--female); }
.fr-score-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.rs-tag { padding: 3px 10px; border-radius: var(--r-full); font-size: 11.5px; font-weight: 600; }
.rs-good { background: var(--ok-bg); color: var(--ok); }
.rs-great { background: var(--female-bg); color: var(--female); }
.rs-warm { background: var(--warn-bg); color: var(--warn); }

.wuxing-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.wuxing-item { text-align: center; padding: 11px 6px; border-radius: var(--r-sm); background: var(--paper-2); transition: transform .2s ease; }
.wuxing-item:hover { transform: translateY(-2px); }
.wx-jin { background: #FAF3DE; }
.wx-mu { background: #EAF3EA; }
.wx-shui { background: #E9F1F8; }
.wx-huo { background: #FAECE8; }
.wx-tu { background: #F2ECF4; }
.wx-element { display: block; font-family: var(--serif); font-size: 20px; font-weight: 700; margin-bottom: 1px; }
.wx-jin .wx-element { color: #B57F22; }
.wx-mu .wx-element { color: #4E8A5F; }
.wx-shui .wx-element { color: #3E7CB1; }
.wx-huo .wx-element { color: #C2453A; }
.wx-tu .wx-element { color: #8A5FA0; }
.wx-status { display: block; font-size: 11px; color: var(--ink-500); margin-bottom: 6px; }
.wx-bar-wrap { height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; margin-bottom: 4px; }
.wx-bar { height: 100%; border-radius: 3px; transition: width 1s ease; }
.wx-jin .wx-bar { background: linear-gradient(90deg, #D9A038, #E8BE6A); }
.wx-mu .wx-bar { background: linear-gradient(90deg, #5A9E6F, #86BC95); }
.wx-shui .wx-bar { background: linear-gradient(90deg, #3E7CB1, #7DA3C4); }
.wx-huo .wx-bar { background: linear-gradient(90deg, #C2453A, #DA7268); }
.wx-tu .wx-bar { background: linear-gradient(90deg, #8A5FA0, #AC85BF); }
.wx-percent { font-size: 11px; font-weight: 700; color: var(--ink-600); }
.wuxing-summary { font-size: 13px; color: var(--ink-700); line-height: 1.75; background: var(--paper-2); padding: 11px 14px; border-radius: var(--r-sm); }

.traits-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.trait-tag { padding: 6px 14px; border-radius: var(--r-sm); font-size: 13px; font-weight: 600; transition: transform .18s ease; }
.trait-tag:hover { transform: translateY(-2px); }
.trait-positive { background: var(--ok-bg); color: var(--ok); }
.trait-neutral { background: var(--warn-bg); color: var(--warn); }

.fr-section-love { background: linear-gradient(135deg, var(--female-bg), #FBF3F4); border-radius: var(--r-md); padding: 16px 18px; }
.love-content { display: flex; flex-direction: column; gap: 12px; }
.love-level-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.love-label { font-size: 13.5px; font-weight: 600; color: var(--ink-700); }
.love-stars { display: flex; gap: 3px; }
.star { width: 16px; height: 16px; color: var(--line-3); }
.star.filled { color: #D9A038; }
.star svg { width: 100%; height: 100%; }
.love-desc { font-size: 13px; color: var(--ink-700); }
.love-timeline { padding-left: 16px; border-left: 2px solid var(--brand-100); }
.timeline-title { font-size: 13.5px; font-weight: 650; margin-bottom: 10px; }
.tl-item { position: relative; padding-left: 18px; margin-bottom: 10px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-dot { position: absolute; left: -21px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); border: 2px solid #fff; }
.tl-time { display: block; font-size: 12.5px; font-weight: 700; color: var(--brand-600); }
.tl-desc { font-size: 12.5px; color: var(--ink-700); }

.compat-bars { display: flex; flex-direction: column; gap: 11px; }
.cb-item { display: flex; align-items: center; gap: 12px; }
.cb-label { width: 78px; font-size: 13px; color: var(--ink-700); flex-shrink: 0; }
.cb-track { flex: 1; height: 8px; background: var(--paper-3); border-radius: 4px; overflow: hidden; }
.cb-fill { height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-500)); border-radius: 4px; transition: width 1s ease; }
.cb-fill-high { background: linear-gradient(90deg, #B8493C, #D96C5F); }
.cb-fill-great { background: linear-gradient(90deg, var(--female), #E08D9B); }
.cb-value { width: 42px; text-align: right; font-size: 13px; font-weight: 700; color: var(--brand-600); flex-shrink: 0; }

.couple-wuxing { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin-bottom: 12px; }
.cw-side { min-width: 0; }
.cw-title { font-size: 13.5px; font-weight: 650; text-align: center; margin-bottom: 8px; }
.cw-tags { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; }
.cwt { padding: 3px 10px; border-radius: var(--r-xs); font-size: 11.5px; font-weight: 600; }
.cwt-strong { background: var(--ok-bg); color: var(--ok); }
.cwt-normal { background: var(--brand-050); color: var(--brand-600); }
.cwt-weak { background: #FAECE8; color: var(--brand-600); }
.cw-arrow { color: var(--brand-500); display: grid; place-items: center; }

.match-detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.md-item { padding: 12px 14px; background: var(--paper-2); border-radius: var(--r-sm); display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.md-category { font-size: 13px; font-weight: 700; min-width: 64px; }
.md-result { font-size: 13.5px; font-weight: 700; }
.md-high { color: var(--female); }
.md-medium-h { color: #C07A28; }
.md-medium { color: #B58F35; }
.md-desc { width: 100%; font-size: 12.5px; color: var(--ink-600); line-height: 1.6; }

.fr-section-advice { background: linear-gradient(135deg, var(--gold-050), #F3E5C6); border-radius: var(--r-md); padding: 16px 18px; border: 1px solid var(--gold-100); }
.advice-list { display: flex; flex-direction: column; gap: 9px; }
.advice-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--ink-800); line-height: 1.65; }
.advice-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-top: 8px; flex-shrink: 0; }
.advice-list li strong { color: var(--brand-600); }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ============ 20. 私聊演示 ============ */
.chat-demo-wrapper { max-width: 620px; margin: 0 auto; }
.chat-demo-window { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); }
.chat-demo-header { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; background: linear-gradient(135deg, #B8493B, var(--brand-700)); color: #FBEEE9; }
.chat-demo-user-info { display: flex; align-items: center; gap: 10px; }
.chat-demo-avatar { position: relative; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(255, 255, 255, .35); }
.chat-demo-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-demo-online { position: absolute; bottom: 1px; right: 1px; width: 10px; height: 10px; background: #35C07A; border: 2px solid #fff; border-radius: 50%; }
.chat-demo-meta { display: flex; flex-direction: column; }
.chat-demo-name { font-size: 14px; font-weight: 650; }
.chat-demo-status { font-size: 11.5px; opacity: .85; }
.chat-demo-actions { display: flex; gap: 4px; }
.chat-action-btn { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: grid; place-items: center; transition: background .18s ease; }
.chat-action-btn:hover { background: rgba(255, 255, 255, .3); }
.chat-demo-messages {
  padding: 14px; min-height: 420px; max-height: 520px; overflow-y: auto;
  background: linear-gradient(180deg, #FCFAF8, #F5F1EB);
  display: flex; flex-direction: column; gap: 12px;
}
.chat-time-divider { text-align: center; }
.chat-time-divider span { display: inline-block; padding: 2px 11px; font-size: 11px; color: var(--ink-500); background: rgba(27, 22, 20, .05); border-radius: var(--r-full); }
.chat-message { display: flex; gap: 8px; max-width: 82%; animation: msgIn .3s ease-out; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.chat-message-self { align-self: flex-end; flex-direction: row-reverse; }
.chat-avatar-sm { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 1px solid var(--line-2); }
.chat-avatar-sm img { width: 100%; height: 100%; object-fit: cover; }
.chat-message-content { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.chat-bubble { padding: 9px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.6; word-break: break-word; }
.chat-message-other .chat-bubble { background: #fff; border: 1px solid var(--line-2); border-bottom-left-radius: 4px; box-shadow: var(--sh-1); }
.chat-message-self .chat-bubble { background: linear-gradient(140deg, #CE5145, var(--brand-700)); color: #FBEEE9; border-bottom-right-radius: 4px; }
.chat-message-time { font-size: 10.5px; color: var(--ink-400); padding: 0 3px; }
.chat-message-self .chat-message-time { text-align: right; }
.chat-image-preview { border-radius: var(--r-sm); overflow: hidden; box-shadow: var(--sh-1); max-width: 220px; }
.chat-image-preview img { width: 100%; display: block; }
.chat-fortune-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; min-width: 260px; box-shadow: var(--sh-1); }
.fortune-card-header { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: linear-gradient(135deg, var(--brand-050), var(--gold-050)); border-bottom: 1px solid var(--line-2); }
.fortune-icon-wrap { width: 28px; height: 28px; background: #fff; border-radius: 8px; display: grid; place-items: center; }
.fortune-card-title { font-size: 12.5px; font-weight: 650; color: var(--brand-600); }
.fortune-score-row { display: flex; align-items: center; gap: 12px; padding: 12px; }
.fortune-score-circle {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(140deg, #CE5145, var(--brand-700)); color: #FBEEE9;
  display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: var(--sh-brand);
}
.fortune-score-num { font-size: 21px; font-weight: 700; line-height: 1; }
.fortune-score-unit { font-size: 10px; opacity: .9; }
.fortune-score-info { flex: 1; min-width: 0; }
.fortune-score-label { font-size: 11px; color: var(--ink-500); }
.fortune-score-desc { font-size: 13px; font-weight: 700; color: var(--brand-600); margin: 1px 0 6px; }
.fortune-tags-mini { display: flex; gap: 5px; flex-wrap: wrap; }
.ft-tag { padding: 2px 8px; border-radius: var(--r-full); font-size: 10.5px; font-weight: 600; }
.ft-tag-good { background: var(--ok-bg); color: var(--ok); }
.ft-tag-warm { background: var(--warn-bg); color: var(--warn); }
.fortune-card-footer { padding: 8px 12px; border-top: 1px dashed var(--line); text-align: center; }
.fortune-card-footer span { font-size: 11.5px; color: var(--brand); font-weight: 600; }
.chat-order-card { background: linear-gradient(135deg, var(--gold-050), #F3E5C6); border: 1px solid var(--gold-100); border-radius: var(--r-md); overflow: hidden; min-width: 240px; }
.order-header { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px dashed var(--gold-100); }
.order-icon { width: 26px; height: 26px; background: #fff; border-radius: 7px; display: grid; place-items: center; }
.order-title { font-size: 12.5px; font-weight: 650; color: var(--gold); }
.order-body { padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.order-desc { font-size: 11.5px; color: #A07428; }
.order-amount { font-size: 19px; font-weight: 700; color: var(--gold); }
.order-footer { padding: 6px 12px; background: rgba(255, 255, 255, .5); }
.order-no { font-size: 10px; color: #A07428; opacity: .75; }
.chat-demo-input { padding: 10px 14px; background: #fff; border-top: 1px solid var(--line-2); }
.chat-input-inner { display: flex; align-items: center; gap: 6px; background: var(--paper-2); border-radius: var(--r-full); padding: 5px 8px; }
.chat-input-btn { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-500); flex-shrink: 0; transition: color .18s ease, background .18s ease; }
.chat-input-btn:hover { color: var(--brand); background: var(--brand-050); }
.chat-input-inner input { flex: 1; border: none; outline: none; background: none; font-size: 13.5px; color: var(--ink-800); padding: 3px 0; min-width: 0; }
.chat-input-inner input::placeholder { color: var(--ink-400); }
.chat-send-btn { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(140deg, #CE5145, var(--brand-700)); display: grid; place-items: center; flex-shrink: 0; box-shadow: var(--sh-brand); }
.chat-send-btn:hover { transform: scale(1.05); }

/* ============ 21. 二维码弹窗 ============ */
.qr-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(27, 22, 20, .62);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; transition: opacity .25s ease;
}
.qr-overlay.show { display: flex; opacity: 1; }
.qr-modal {
  position: relative; width: 100%; max-width: 400px; text-align: center;
  background: #fff; border-radius: var(--r-lg); padding: 22px 20px 18px;
  box-shadow: var(--sh-4);
  transform: translateY(14px) scale(.97);
  transition: transform .3s cubic-bezier(.22, .61, .36, 1);
}
.qr-overlay.show .qr-modal { transform: none; }
.qr-close {
  position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--paper-2); color: var(--ink-600); display: grid; place-items: center;
  font-size: 17px; line-height: 1; transition: all .2s ease;
}
.qr-close:hover { background: var(--ink-900); color: #fff; transform: rotate(90deg); }
.qr-logo {
  width: 38px; height: 38px; border-radius: 11px; margin: 0 auto 10px;
  background: linear-gradient(140deg, #CE5145, var(--brand-700)); color: #FBEEE9;
  font-family: var(--serif); font-size: 18px; font-weight: 700;
  display: grid; place-items: center; box-shadow: var(--sh-brand);
}
.qr-modal h3 { font-size: 17px; margin-bottom: 3px; }
.qr-modal .qr-sub { font-size: 12.5px; color: var(--ink-600); margin-bottom: 14px; }
.qr-img-box { width: 100%; background: #fff; border: 1px solid var(--gold-100); border-radius: var(--r-sm); padding: 8px; margin-bottom: 12px; }
.qr-img-box img { width: 100%; aspect-ratio: 1200 / 442; object-fit: contain; }
.qr-fallback { font-size: 13px; color: var(--ink-600); padding: 18px 8px; line-height: 1.6; }
.qr-tip { font-size: 12px; color: var(--ink-500); display: flex; align-items: center; justify-content: center; gap: 8px; }
.qr-tip::before, .qr-tip::after { content: ""; width: 20px; height: 1px; background: var(--line-3); }

/* ============ 22. 悬浮工具坞 ============ */
.dock {
  position: fixed; right: 18px; bottom: 18px; z-index: 150;
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.dock.show { opacity: 1; transform: none; pointer-events: auto; }
.dock-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-2);
  display: grid; place-items: center; color: var(--ink-700);
  transition: transform .18s ease, color .18s ease, border-color .18s ease;
}
.dock-btn:hover { transform: translateY(-2px); color: var(--brand-600); border-color: var(--brand-100); }
.dock-btn svg { width: 17px; height: 17px; }
.dock-btn.dock-qr { background: linear-gradient(140deg, #CE5145, var(--brand-700)); color: #FBEEE9; border-color: transparent; box-shadow: var(--sh-brand); }
.dock-btn.dock-qr:hover { color: #fff; }

/* ============ 23. 页脚 ============ */
.site-foot { background: var(--deep); color: #9B9188; padding: 28px 0 16px; margin-top: 8px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 22px; padding-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.foot-brand .brand { color: #F3ECE1; margin-bottom: 8px; align-items: center; }
.foot-brand .brand-text { color: #F3ECE1; }
.foot-brand p { font-size: 12.5px; line-height: 1.7; max-width: 300px; }
.foot-col h5 { color: #F3ECE1; font-size: 13px; margin-bottom: 9px; font-weight: 650; letter-spacing: .04em; }
.foot-col a { display: block; font-size: 12.5px; padding: 2.5px 0; transition: color .18s ease; }
.foot-col a:hover { color: #E4B96A; }
.foot-bottom { padding-top: 14px; font-size: 11.5px; color: #7A6F60; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.foot-bottom-left, .foot-bottom-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.foot-bottom a { display: inline-flex; align-items: center; gap: 5px; transition: color .18s ease; }
.foot-bottom a:hover { color: #E4B96A; }
.beian-police-icon { width: 15px; height: 15px; flex-shrink: 0; }

/* ============ 24. 工具类 ============ */
.muted { color: var(--ink-500); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.text-red { color: var(--brand); }
.divider { height: 1px; background: var(--line-2); margin: 14px 0; }

/* ============ 25. 响应式 ============ */
@media (max-width: 1100px) {
  .data-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .skeleton-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { grid-template-columns: 1fr; gap: 22px; }
  .hero-qr { max-width: 320px; }
  .user-profile-card .detail-info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .ph-inner { grid-template-columns: 1fr; }
  .ph-qr { width: 100%; max-width: 320px; }
  .hero h1 { font-size: 28px; }
  .ph-title { font-size: 22px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .detail-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .user-profile-card .detail-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fortune-types { grid-template-columns: 1fr; }
  .fortune-steps { grid-template-columns: 1fr; }
  .match-detail-list { grid-template-columns: 1fr; }
  .couple-wuxing { grid-template-columns: 1fr; }
  .cw-arrow { transform: rotate(90deg); }
}

@media (max-width: 700px) {
  :root { --gutter: 16px; }
  .head-cta span { display: none; }
  .head-cta { padding: 7px 10px; }
  .data-grid, .data-grid.g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skeleton-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .section { padding: 24px 0; }
  .hero { padding: 24px 0 22px; }
  .hero h1 { font-size: 24px; }
  .ph-title { font-size: 20px; }
  .cta { flex-direction: column; align-items: flex-start; padding: 18px; }
  .detail-card { padding: 16px; }
  .detail-title { font-size: 18px; }
  .detail-images { grid-template-columns: 1fr; }
  .detail-info-grid { grid-template-columns: 1fr; }
  .user-profile-card .detail-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .user-profile-header { flex-wrap: wrap; }
  .user-profile-actions { width: 100%; }
  .photos-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wuxing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr; gap: 16px; }
  .foot-bottom { flex-direction: column; }
  .fr-body { padding: 16px; }
  .fr-score-main { flex-direction: column; text-align: center; }
  .chat-demo-messages { min-height: 380px; }
  .pagination { gap: 6px; }
  .page-btn { padding: 6px 11px; }
  .dock { right: 12px; bottom: 12px; }
  .dock-btn { width: 36px; height: 36px; }
}

@media (max-width: 480px) {
  .data-grid, .data-grid.g3 { grid-template-columns: 1fr; }
  .skeleton-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .ph-actions .btn { flex: 1 1 auto; }
  .qr-modal { padding: 18px 14px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
