/* =========================================================
   天津西青职工之家 - 响应式样式
   主色: #c42922 (工会红)  辅助色: #fae24c (工会黄)
   断点: PC >=1200 | 小屏PC 992-1199 | 平板 768-991 | 手机 <768
   ========================================================= */

/* ---------- 变量与基础 ---------- */
:root {
  --red: #c42922;
  --red-deep: #9e1f19;
  --red-dark: #7a1712;
  --red-soft: #fdeeec;
  --gold: #fae24c;
  --gold-deep: #e8c500;
  --ink: #2c2a29;
  --ink-2: #6b6664;
  --bg: #ffffff;
  --bg-soft: #faf7f5;
  --line: #f0e4e2;
  --shadow: 0 12px 36px rgba(122, 23, 18, 0.10);
  --shadow-lg: 0 24px 60px rgba(122, 23, 18, 0.16);
  --radius: 16px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.3s var(--ease); }
ul { list-style: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }
i { line-height: 1; }

.container { width: min(1200px, 92%); margin: 0 auto; }

::selection { background: var(--red); color: #fff; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--red), var(--red-deep)); border-radius: 6px; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn-solid { background: var(--red); color: #fff; box-shadow: 0 10px 26px rgba(196, 41, 34, 0.35); }
.btn-solid:hover { background: var(--red-deep); transform: translateY(-3px); box-shadow: 0 16px 34px rgba(196, 41, 34, 0.42); }
.btn-outline-red { border: 2px solid var(--red); color: var(--red); background: #fff; }
.btn-outline-red:hover { background: var(--red); color: #fff; transform: translateY(-3px); box-shadow: 0 12px 28px rgba(196, 41, 34, 0.3); }
.btn-outline-white { border: 2px solid rgba(255, 255, 255, 0.85); color: #fff; }
.btn-outline-white:hover { background: #fff; color: var(--red); transform: translateY(-3px); }

/* 按钮波纹 */
.btn-ripple { position: relative; overflow: hidden; }
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transform: scale(0);
  animation: ripple 0.65s ease-out forwards;
  pointer-events: none;
}
.btn-outline-red .ripple, .btn-header .ripple { background: rgba(196, 41, 34, 0.25); }
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }

/* ---------- 顶部公告条 ---------- */
.topbar {
  background: linear-gradient(90deg, var(--red-dark), var(--red-deep));
  color: #ffd9d6;
  font-size: 13px;
  position: relative;
  z-index: 102;
}
.topbar-inner { display: flex; align-items: center; gap: 16px; height: 36px; }
.topbar-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 3px 12px;
  border: 1px solid rgba(250, 226, 76, 0.5);
  border-radius: 999px;
  color: var(--gold);
  font-weight: 600;
}
.ticker { flex: 1; overflow: hidden; height: 36px; }
.ticker-list { animation: ticker 14s linear infinite; }
.ticker:hover .ticker-list { animation-play-state: paused; }
.ticker-list li { height: 36px; line-height: 36px; }
.ticker-list a { color: #ffe9e7; white-space: nowrap; }
.ticker-list a:hover { color: var(--gold); }
.ticker-list i { color: var(--gold); font-size: 11px; margin-right: 6px; }
@keyframes ticker {
  0%, 8% { transform: translateY(0); }
  33%, 41% { transform: translateY(-36px); }
  66%, 74% { transform: translateY(-72px); }
  95%, 100% { transform: translateY(-108px); }
}
.topbar-date { flex-shrink: 0; letter-spacing: 0.5px; }

/* ---------- 头部导航 ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 101;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.header.scrolled { box-shadow: 0 6px 24px rgba(122, 23, 18, 0.10); border-color: var(--line); }

.header-inner { display: flex; align-items: center; gap: 28px; height: 84px; transition: height 0.35s var(--ease); }
.header.scrolled .header-inner { height: 68px; }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(196, 41, 34, 0.25));
  transition: transform 0.4s var(--ease);
}
.brand:hover .brand-logo { transform: rotate(8deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { font-size: 21px; color: var(--red); letter-spacing: 2px; }
.brand-text em { font-style: normal; font-size: 12px; color: var(--ink-2); letter-spacing: 3px; }

.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  border-radius: 10px;
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transform: translateX(-50%);
  transition: width 0.35s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--red); }
.nav-link:hover::after, .nav-link.active::after { width: 55%; }
.sub-arrow { font-size: 11px; transition: transform 0.3s var(--ease); }

/* 下拉菜单 */
.has-sub { position: relative; }
.submenu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  min-width: 200px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--red);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.submenu::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  width: 100%;
  height: 16px;
}
.submenu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--ink);
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), padding-left 0.25s var(--ease);
}
.submenu li a i { color: var(--red); width: 18px; text-align: center; transition: transform 0.25s var(--ease); }
.submenu li a:hover { background: var(--red-soft); color: var(--red); padding-left: 20px; }
.submenu li a:hover i { transform: scale(1.15); }
.submenu-wide { min-width: 340px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.has-sub:hover .submenu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.has-sub:hover .sub-arrow { transform: rotate(180deg); }

/* 头部下载按钮 */
.btn-header {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff;
  padding: 10px 22px;
  font-size: 15px;
  box-shadow: 0 8px 20px rgba(196, 41, 34, 0.32);
  animation: btnPulse 2.6s ease-in-out infinite;
}
.btn-header:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(196, 41, 34, 0.42); }
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 8px 20px rgba(196, 41, 34, 0.32); }
  50% { box-shadow: 0 8px 28px rgba(196, 41, 34, 0.55); }
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--red-soft);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--red);
  transition: transform 0.35s var(--ease), opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-mask {
  position: fixed;
  inset: 0;
  background: rgba(30, 10, 8, 0.5);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
body.menu-open .nav-mask { opacity: 1; visibility: visible; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(250, 226, 76, 0.22), transparent 60%),
    radial-gradient(700px 420px at -5% 110%, rgba(250, 226, 76, 0.16), transparent 55%),
    linear-gradient(135deg, #d43a32 0%, var(--red) 45%, var(--red-deep) 100%);
  color: #fff;
  padding: 90px 0 130px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: blobFloat 12s ease-in-out infinite alternate;
}
.blob-1 { width: 420px; height: 420px; left: -120px; top: -140px; background: rgba(250, 226, 76, 0.28); }
.blob-2 { width: 360px; height: 360px; right: -100px; bottom: -120px; background: rgba(255, 120, 110, 0.35); animation-delay: -4s; }
.blob-3 { width: 220px; height: 220px; left: 44%; top: 12%; background: rgba(250, 226, 76, 0.2); animation-delay: -8s; }
@keyframes blobFloat {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(40px, -30px) scale(1.12); }
}

.hero-particles { position: absolute; inset: 0; }
.particle {
  position: absolute;
  bottom: -20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  animation: particleUp linear infinite;
}
@keyframes particleUp {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.7; }
  100% { transform: translateY(-108vh) translateX(var(--drift, 30px)); opacity: 0; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  font-size: 14px;
  letter-spacing: 2px;
  color: #ffe9a8;
  margin-bottom: 26px;
}
.hero-badge i { color: var(--gold); }

.hero-title { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.22; letter-spacing: 3px; margin-bottom: 18px; text-shadow: 0 4px 18px rgba(0, 0, 0, 0.18); }
.grad-yellow {
  background: linear-gradient(92deg, var(--gold) 20%, #fff3a0 60%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-typing { font-size: clamp(16px, 1.8vw, 21px); color: #ffe9e7; letter-spacing: 2px; min-height: 34px; margin-bottom: 14px; font-weight: 600; }
.type-caret {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 4px;
  vertical-align: -0.18em;
  background: var(--gold);
  animation: caret 0.85s step-end infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.hero-desc { max-width: 520px; color: rgba(255, 255, 255, 0.88); font-size: 15.5px; margin-bottom: 34px; }

.hero-downloads { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px;
  border-radius: 14px;
  min-width: 172px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.dl-btn i { font-size: 28px; }
.dl-btn span { display: flex; flex-direction: column; line-height: 1.25; }
.dl-btn em { font-style: normal; font-size: 12px; opacity: 0.8; letter-spacing: 1px; }
.dl-btn b { font-size: 16.5px; letter-spacing: 1px; }
.dl-btn:hover { transform: translateY(-4px); }

.dl-ios { background: #fff; color: var(--red); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18); }
.dl-ios:hover { box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24); }
.dl-android { background: var(--gold); color: var(--red-deep); box-shadow: 0 12px 28px rgba(250, 226, 76, 0.32); }
.dl-android:hover { box-shadow: 0 18px 36px rgba(250, 226, 76, 0.45); }
.dl-harmony { background: rgba(255, 255, 255, 0.12); color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.55); backdrop-filter: blur(6px); }
.dl-harmony:hover { background: rgba(255, 255, 255, 0.2); }

.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 13.5px; color: rgba(255, 255, 255, 0.85); }
.hero-meta i { color: var(--gold); margin-right: 6px; }

/* Hero 右侧视觉 */
.hero-visual { position: relative; display: flex; justify-content: center; padding: 30px 0 10px; }

/* 手机样机 */
.phone {
  position: relative;
  width: 292px;
  height: 596px;
  background: linear-gradient(160deg, #3a3a3c, #17171a);
  border-radius: 46px;
  padding: 12px;
  box-shadow: 0 40px 80px rgba(60, 6, 4, 0.45), 0 0 0 2px rgba(255, 255, 255, 0.08) inset;
  z-index: 2;
}
.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 24px;
  background: #17171a;
  border-radius: 0 0 16px 16px;
  z-index: 3;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  background: #f7f4f2;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--ink);
}

.app-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 22px 6px;
  font-size: 12px;
  font-weight: 700;
  color: #3c3a38;
  background: #fff;
}
.app-status-icons { display: flex; gap: 6px; font-size: 11px; }

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff;
  padding: 10px 16px 12px;
}
.app-brand { display: flex; align-items: center; gap: 8px; }
.app-brand img { width: 26px; height: 26px; border-radius: 7px; }
.app-brand b { font-size: 13.5px; letter-spacing: 1px; }
.app-header > i { font-size: 15px; color: var(--gold); }

.app-banner {
  position: relative;
  margin: 10px 12px 0;
  padding: 14px 14px;
  border-radius: 14px;
  background: linear-gradient(120deg, var(--red), #d8562f 90%);
  color: #fff;
  overflow: hidden;
}
.app-banner b { display: block; font-size: 15px; letter-spacing: 1.5px; }
.app-banner span { font-size: 11px; opacity: 0.85; }
.app-banner i {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 34px;
  color: rgba(250, 226, 76, 0.85);
  animation: heartBeat 1.8s ease-in-out infinite;
}
@keyframes heartBeat {
  0%, 100% { transform: translateY(-50%) scale(1); }
  25% { transform: translateY(-50%) scale(1.15); }
  40% { transform: translateY(-50%) scale(0.98); }
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: #fff;
  margin: 10px 12px 0;
  border-radius: 14px;
  padding: 12px 6px;
}
.app-cell { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 10.5px; color: #5c5754; }
.app-cell i { font-size: 18px; color: var(--red); width: 34px; height: 34px; display: grid; place-items: center; background: var(--red-soft); border-radius: 11px; }
.app-cell:nth-child(2) i { background: #fdf6d8; color: var(--gold-deep); }
.app-cell:nth-child(3) i { background: #e8f4ec; color: #3d9960; }
.app-cell:nth-child(4) i { background: #eef0fb; color: #5468d4; }

.app-list { flex: 1; background: #fff; margin: 10px 12px; border-radius: 14px; padding: 12px 14px; }
.app-list-title { font-size: 12.5px; font-weight: 700; color: #444; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.app-list-title::before { content: ""; width: 4px; height: 13px; border-radius: 2px; background: linear-gradient(var(--red), var(--gold)); }
.app-row { display: flex; align-items: center; gap: 9px; padding: 7px 0; }
.app-row i { color: #d9d5d2; font-size: 13px; }
.line { height: 9px; border-radius: 5px; background: linear-gradient(90deg, #efe9e6, #f8f4f2); }
.w70 { width: 70%; }
.w55 { width: 55%; }
.w62 { width: 62%; }

.app-tabbar {
  display: flex;
  justify-content: space-around;
  background: #fff;
  border-top: 1px solid #f1ecea;
  padding: 9px 0 14px;
  font-size: 10px;
  color: #9a938f;
}
.app-tabbar span { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.app-tabbar i { font-size: 16px; }
.app-tabbar .on { color: var(--red); font-weight: 600; }

/* 漂浮信息卡 */
.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: 0 16px 36px rgba(60, 6, 4, 0.28);
  z-index: 3;
  animation: chipFloat 5s ease-in-out infinite;
}
.float-chip i { font-size: 20px; color: var(--red); width: 40px; height: 40px; display: grid; place-items: center; background: var(--red-soft); border-radius: 12px; }
.float-chip span { display: flex; flex-direction: column; line-height: 1.35; }
.float-chip b { font-size: 14px; color: var(--ink); }
.float-chip em { font-style: normal; font-size: 11px; color: var(--ink-2); }
.chip-1 { top: 6%; right: -4%; animation-delay: 0s; }
.chip-2 { bottom: 20%; left: -6%; animation-delay: 1.2s; }
.chip-2 i { background: #fdf6d8; color: var(--gold-deep); }
.chip-3 { bottom: -2%; right: 2%; animation-delay: 2.2s; }
.chip-3 i { background: #e8f4ec; color: #3d9960; }
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%);
  width: 26px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  z-index: 3;
}
.hero-scroll span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 9px;
  margin-left: -2px;
  border-radius: 3px;
  background: var(--gold);
  animation: scrollHint 1.6s ease-in-out infinite;
}
@keyframes scrollHint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}
.hero-wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 90px; z-index: 3; }

/* ---------- 数据概览 ---------- */
.stats { position: relative; z-index: 5; margin-top: -62px; padding-bottom: 20px; }
.stats-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 34px 10px;
  position: relative;
  overflow: hidden;
}
.stats-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--red));
}
.stat-item { text-align: center; position: relative; }
.stat-item + .stat-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 46px;
  width: 1px;
  background: var(--line);
}
.stat-num { font-size: clamp(28px, 3vw, 40px); font-weight: 800; color: var(--red); letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.stat-num em { font-style: normal; font-size: 0.55em; margin-left: 2px; color: var(--gold-deep); }
.stat-label { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); letter-spacing: 2px; }

/* ---------- 通用 Section ---------- */
.section { padding: 96px 0; position: relative; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 16px;
  background: var(--red-soft);
  color: var(--red);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 3px;
  margin-bottom: 16px;
}
.section-tag i { font-size: 13px; }
.section-title { font-size: clamp(28px, 3.2vw, 38px); letter-spacing: 5px; color: var(--ink); }
.section-sub { margin-top: 12px; color: var(--ink-2); font-size: 15.5px; letter-spacing: 1px; }
.section-line {
  display: inline-block;
  margin-top: 20px;
  width: 130px;
  height: 5px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--red) 30%, var(--gold));
  position: relative;
}
.section-line::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- 心理咨询 ---------- */
.section-xinli { background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }

.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 26px 30px;
  box-shadow: 0 8px 24px rgba(122, 23, 18, 0.07);
  border: 1px solid #f7ece9;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.service-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 226, 76, 0.35), transparent 70%);
  transition: transform 0.4s var(--ease);
}
.service-card:hover { box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scale(1.8); }
.service-icon {
  width: 74px;
  height: 74px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 30px;
  color: #fff;
  background: linear-gradient(140deg, var(--red), var(--red-deep));
  box-shadow: 0 12px 24px rgba(196, 41, 34, 0.3);
  margin-bottom: 22px;
  transition: transform 0.4s var(--ease), border-radius 0.4s var(--ease);
}
.service-card:hover .service-icon { transform: rotate(-8deg) scale(1.1); border-radius: 50%; background: linear-gradient(140deg, var(--gold-deep), var(--gold)); color: var(--red-deep); }
.service-card h3 { font-size: 20px; letter-spacing: 1.5px; margin-bottom: 12px; }
.service-card p { font-size: 14px; color: var(--ink-2); min-height: 96px; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  color: var(--red);
  font-weight: 600;
  font-size: 14.5px;
}
.service-link i { transition: transform 0.3s var(--ease); }
.service-link:hover i { transform: translateX(6px); }

/* ---------- 法律咨询 ---------- */
.section-falv { background: var(--bg-soft); }
.legal-grid { display: grid; grid-template-columns: 1.06fr 0.94fr; gap: 30px; align-items: stretch; }

.legal-card {
  border-radius: 20px;
  padding: 38px 34px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.legal-online { background: linear-gradient(150deg, var(--red) 0%, var(--red-deep) 100%); color: #fff; box-shadow: 0 20px 50px rgba(196, 41, 34, 0.35); }
.legal-online::after {
  content: "\f515";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: -18px;
  bottom: -26px;
  font-size: 150px;
  color: rgba(255, 255, 255, 0.07);
  transform: rotate(-12deg);
}
.legal-test { background: #fff; border: 1px solid #f3e8e5; box-shadow: var(--shadow); }
.legal-test::after {
  content: "\f473";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: -16px;
  bottom: -24px;
  font-size: 140px;
  color: rgba(196, 41, 34, 0.05);
}

.legal-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; position: relative; z-index: 1; }
.legal-icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 26px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--gold);
}
.legal-test .legal-icon { background: var(--red-soft); border: none; color: var(--red); }
.legal-head h3 { font-size: 24px; letter-spacing: 2px; }
.legal-head p { font-size: 13.5px; opacity: 0.85; margin-top: 2px; }
.legal-test .legal-head p { color: var(--ink-2); opacity: 1; }

.legal-points { margin-bottom: 24px; position: relative; z-index: 1; }
.legal-points li { display: flex; gap: 10px; align-items: baseline; font-size: 14.5px; padding: 6px 0; color: rgba(255, 255, 255, 0.92); }
.legal-points i { color: var(--gold); font-size: 14px; transform: translateY(1px); }

.chat-box { position: relative; z-index: 1; margin-bottom: 26px; display: flex; flex-direction: column; gap: 12px; }
.bubble {
  max-width: 88%;
  padding: 12px 16px;
  font-size: 13.5px;
  line-height: 1.65;
  border-radius: 16px;
  opacity: 0;
}
.legal-card.in-view .bubble { animation: bubbleIn 0.55s var(--ease) forwards; }
.legal-card.in-view .bubble-user { animation-delay: 0.15s; }
.legal-card.in-view .bubble-law { animation-delay: 0.55s; }
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(16px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.bubble-user { align-self: flex-end; background: var(--gold); color: var(--red-deep); border-bottom-right-radius: 4px; font-weight: 500; }
.bubble-law { align-self: flex-start; background: rgba(255, 255, 255, 0.95); color: var(--ink); border-bottom-left-radius: 4px; }

.legal-online .btn { align-self: flex-start; position: relative; z-index: 1; background: var(--gold); color: var(--red-deep); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2); }
.legal-online .btn:hover { background: #ffef85; transform: translateY(-3px); }

/* 测试进度条 */
.test-bars { display: flex; flex-direction: column; gap: 18px; margin-bottom: 18px; position: relative; z-index: 1; }
.test-bar-head { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink); margin-bottom: 8px; }
.test-bar-head b { color: var(--red); font-variant-numeric: tabular-nums; }
.test-bar-track { height: 10px; border-radius: 6px; background: #f3e9e6; overflow: hidden; }
.test-bar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transition: width 1.3s var(--ease);
  position: relative;
}
.test-bar-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: barShine 2.2s linear infinite;
}
@keyframes barShine { to { transform: translateX(220px); } }
.test-note { font-size: 12.5px; color: var(--ink-2); margin-bottom: 22px; display: flex; gap: 7px; align-items: baseline; position: relative; z-index: 1; }
.test-note i { color: var(--gold-deep); font-size: 13px; }
.legal-test .btn { align-self: flex-start; position: relative; z-index: 1; }

/* 法律援助：深色文字要点（用于白底卡片） */
.legal-points-dark li { color: var(--ink); }
.legal-points-dark i { color: var(--red); }

/* 法律援助步骤条 */
.aid-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 4px 0 20px;
  position: relative;
  z-index: 1;
}
.aid-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 10px 12px;
  border-radius: 12px;
  background: linear-gradient(170deg, #fdf6f4, #fdeeec);
  border: 1px solid #f7e6e3;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.aid-step:hover { transform: translateY(-5px); box-shadow: 0 12px 24px rgba(196, 41, 34, 0.16); background: #fff; }
.aid-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(140deg, var(--red), var(--red-deep));
  margin-bottom: 6px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.aid-step:hover .aid-num { background: linear-gradient(140deg, var(--gold-deep), var(--gold)); color: var(--red-deep); }
.aid-step b { font-size: 13.5px; letter-spacing: 0.5px; color: var(--ink); }
.aid-step em { font-style: normal; font-size: 11.5px; color: var(--ink-2); line-height: 1.5; }

/* 心理评测 · 自助量表（心理咨询区块内） */
.self-test {
  margin-top: 34px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid #f7ece9;
  box-shadow: 0 10px 30px rgba(122, 23, 18, 0.07);
  padding: 36px 40px 30px;
  position: relative;
  overflow: hidden;
}
.self-test::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--red));
}
.self-test-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.self-test-head h3 { font-size: 21px; letter-spacing: 2px; display: flex; align-items: center; gap: 10px; }
.self-test-head h3 i { color: var(--red); }
.self-test-head p { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
.self-test .test-bars { margin-bottom: 16px; }
.self-test .test-note { margin-bottom: 0; }

/* ---------- 心灵课堂 ---------- */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.course-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 28px 30px;
  border: 1px solid #f7ece9;
  box-shadow: 0 8px 24px rgba(122, 23, 18, 0.06);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.course-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.course-card:hover { box-shadow: var(--shadow-lg); }
.course-card:hover::before { transform: scaleX(1); }

.course-tag {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 1px;
  font-weight: 600;
}
.tag-red { background: var(--red-soft); color: var(--red); }
.tag-gold { background: #fdf6d8; color: #a07700; }

.course-icon {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 27px;
  margin-bottom: 20px;
  color: var(--red);
  background: linear-gradient(140deg, #fdeeec, #fbe0dd);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease);
}
.course-card:hover .course-icon { transform: translateY(-6px) rotate(-6deg); background: linear-gradient(140deg, var(--red), var(--red-deep)); color: var(--gold); }
.course-card h3 { font-size: 20px; letter-spacing: 2px; margin-bottom: 10px; }
.course-card p { font-size: 14px; color: var(--ink-2); min-height: 66px; }
.course-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--red); font-weight: 600; font-size: 14.5px; }
.course-link i { transition: transform 0.3s var(--ease); }
.course-link:hover i { transform: translateX(6px); }

/* ---------- 政策法规 ---------- */
.section-zhengce { background: linear-gradient(180deg, var(--bg-soft), #fff); }
.policy-wrap {
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
  position: relative;
  overflow: hidden;
}
.policy-tabs { display: flex; flex-direction: column; gap: 14px; align-self: start; }
.policy-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  border-radius: 14px;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--ink-2);
  background: var(--bg-soft);
  border: 1px solid transparent;
  transition: all 0.3s var(--ease);
  text-align: left;
}
.policy-tab i { font-size: 17px; }
.policy-tab:hover { color: var(--red); background: var(--red-soft); transform: translateX(6px); }
.policy-tab.active {
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff;
  box-shadow: 0 12px 26px rgba(196, 41, 34, 0.32);
}

.policy-panels { position: relative; min-height: 300px; }
.policy-panel { display: none; flex-direction: column; gap: 8px; }
.policy-panel.active { display: flex; animation: panelIn 0.45s var(--ease); }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.policy-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 18px;
  border-radius: 12px;
  border-bottom: 1px dashed var(--line);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.policy-item:last-child { border-bottom: none; }
.policy-item i { color: var(--red); font-size: 17px; width: 38px; height: 38px; display: grid; place-items: center; background: var(--red-soft); border-radius: 10px; flex-shrink: 0; transition: all 0.25s var(--ease); }
.policy-name { flex: 1; font-size: 15.5px; color: var(--ink); font-weight: 500; }
.policy-item time { font-size: 13px; color: #b3aaa6; font-variant-numeric: tabular-nums; }
.policy-item::after { content: "\f105"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: #d8cfcb; transition: all 0.25s var(--ease); }
.policy-item:hover { background: var(--red-soft); transform: translateX(8px); box-shadow: 0 6px 18px rgba(196, 41, 34, 0.1); }
.policy-item:hover i { background: var(--red); color: #fff; }
.policy-item:hover::after { color: var(--red); transform: translateX(4px); }
.policy-note { grid-column: 1 / -1; margin-top: 6px; font-size: 12.5px; color: #b3aaa6; display: flex; align-items: center; gap: 6px; }
.policy-note i { color: var(--gold-deep); }

/* ---------- 隐私协议 ---------- */
.section-yinsi { background: #fff; }
.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 46px; }
.privacy-item {
  background: linear-gradient(170deg, #fff, var(--bg-soft));
  border: 1px solid #f3e8e5;
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  position: relative;
}
.privacy-item:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.privacy-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: var(--red);
  background: var(--red-soft);
  border: 1px dashed rgba(196, 41, 34, 0.45);
  transition: all 0.4s var(--ease);
}
.privacy-item:hover .privacy-icon { background: var(--red); color: var(--gold); border-style: solid; transform: rotateY(360deg); }
.privacy-item h3 { font-size: 17px; letter-spacing: 2px; margin-bottom: 8px; }
.privacy-item p { font-size: 13px; color: var(--ink-2); text-align: justify; }

.privacy-cta {
  background:
    radial-gradient(500px 200px at 10% 20%, rgba(250, 226, 76, 0.14), transparent 60%),
    linear-gradient(135deg, var(--red), var(--red-deep));
  border-radius: 20px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
  box-shadow: 0 18px 44px rgba(196, 41, 34, 0.3);
  flex-wrap: wrap;
}
.privacy-cta p { font-size: 16.5px; letter-spacing: 1.5px; }
.privacy-cta .btn { flex-shrink: 0; }

/* ---------- 底部下载区 ---------- */
.section-download { padding-top: 40px; background: #fff; }
.download-band {
  position: relative;
  background:
    radial-gradient(600px 300px at 90% 10%, rgba(250, 226, 76, 0.2), transparent 55%),
    linear-gradient(130deg, #d43a32 0%, var(--red) 40%, var(--red-dark) 100%);
  border-radius: 28px;
  padding: 64px 60px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 44px;
  align-items: center;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(196, 41, 34, 0.4);
}
.band-blob { position: absolute; border-radius: 50%; filter: blur(50px); pointer-events: none; }
.band-blob-1 { width: 300px; height: 300px; left: -80px; bottom: -120px; background: rgba(250, 226, 76, 0.25); animation: blobFloat 10s ease-in-out infinite alternate; }
.band-blob-2 { width: 220px; height: 220px; right: 30%; top: -100px; background: rgba(255, 255, 255, 0.14); animation: blobFloat 12s ease-in-out infinite alternate-reverse; }

.download-copy { position: relative; z-index: 1; }
.download-copy h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: 3px; margin-bottom: 16px; }
.download-copy h2 i { color: var(--gold); margin-right: 10px; }
.download-copy p { font-size: 15px; color: rgba(255, 255, 255, 0.88); max-width: 560px; margin-bottom: 30px; }
.download-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.download-btns .dl-btn { min-width: 168px; }

.download-qr { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.qr-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
  animation: chipFloat 5.5s ease-in-out infinite;
}
.qr-card svg { width: 176px; height: 176px; display: block; }
.qr-logo {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 46px;
  height: 46px;
  border-radius: 11px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.qr-tip { font-size: 13px; letter-spacing: 2px; color: rgba(255, 255, 255, 0.9); }
.qr-tip i { color: var(--gold); margin-right: 6px; }

/* ---------- 页脚 ---------- */
.footer { background: linear-gradient(180deg, #241413, #171010); color: #b8a9a6; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 1.2fr;
  gap: 40px;
  padding: 70px 0 46px;
}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-logo img { width: 52px; height: 52px; object-fit: contain; }
.footer-logo strong { display: block; color: #fff; font-size: 19px; letter-spacing: 2px; }
.footer-logo em { font-style: normal; font-size: 12.5px; color: #9c8b88; letter-spacing: 3px; }
.footer-desc { font-size: 13.5px; line-height: 1.9; text-align: justify; }

.footer-col h4 {
  color: #fff;
  font-size: 16.5px;
  letter-spacing: 3px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul a { font-size: 14px; color: #b8a9a6; transition: all 0.25s var(--ease); display: inline-block; }
.footer-col ul a:hover { color: var(--gold); transform: translateX(6px); }
.footer-contact li { display: flex; gap: 10px; align-items: baseline; font-size: 13.5px; line-height: 1.8; }
.footer-contact i { color: var(--red); width: 16px; text-align: center; flex-shrink: 0; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 20px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: #8d7d7a; }
.footer-bottom a:hover { color: var(--gold); }
.footer-bottom span { margin: 0 10px; color: #4a3a37; }

/* ---------- 返回顶部 / 提示 ---------- */
.back-top {
  position: fixed;
  right: 26px;
  bottom: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--red), var(--red-deep));
  color: #fff;
  font-size: 18px;
  box-shadow: 0 12px 28px rgba(196, 41, 34, 0.4);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.35s var(--ease);
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { transform: translateY(-5px); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 44px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(30, 12, 10, 0.92);
  color: #ffe9e7;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease);
  max-width: 86vw;
}
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.toast i { color: var(--gold); }

/* ---------- 进场动画 ---------- */
[data-reveal] { opacity: 0; transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
[data-reveal="up"] { transform: translateY(46px); }
[data-reveal="down"] { transform: translateY(-36px); }
[data-reveal="left"] { transform: translateX(-56px); }
[data-reveal="right"] { transform: translateX(56px); }
[data-reveal="zoom"] { transform: scale(0.88); }
.revealed { opacity: 1 !important; transform: none !important; }

.stagger.revealed > * { animation: staggerUp 0.7s var(--ease) both; }
.stagger.revealed > *:nth-child(1) { animation-delay: 0.05s; }
.stagger.revealed > *:nth-child(2) { animation-delay: 0.15s; }
.stagger.revealed > *:nth-child(3) { animation-delay: 0.25s; }
.stagger.revealed > *:nth-child(4) { animation-delay: 0.35s; }
.stagger.revealed > *:nth-child(5) { animation-delay: 0.45s; }
.stagger.revealed > *:nth-child(6) { animation-delay: 0.55s; }
@keyframes staggerUp {
  from { opacity: 0; transform: translateY(34px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 无障碍 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   响应式
   ========================================================= */

/* 小屏 PC / 横屏平板 */
@media (max-width: 1199px) {
  .nav-link { padding: 10px 12px; font-size: 15px; }
  .brand-text strong { font-size: 18px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card p { min-height: 0; }
  .privacy-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col:last-child { grid-column: 1 / -1; }
}

/* 平板 */
@media (max-width: 991px) {
  .topbar-date { display: none; }
  .header-inner { height: 70px; }
  .btn-header { display: none; }

  /* 移动端抽屉导航 */
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(340px, 88vw);
    background: #fff;
    z-index: 100;
    padding: 96px 22px 40px;
    transform: translateX(105%);
    transition: transform 0.42s var(--ease);
    overflow-y: auto;
    box-shadow: -20px 0 50px rgba(60, 6, 4, 0.2);
  }
  body.menu-open .nav { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 6px; }
  .nav-link { width: 100%; justify-content: space-between; font-size: 16.5px; padding: 14px 16px; border-radius: 12px; background: var(--bg-soft); }
  .nav-link::after { display: none; }
  .nav-link.active { background: linear-gradient(135deg, var(--red), var(--red-deep)); color: #fff; }
  .submenu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border-top: none;
    background: transparent;
    padding: 0 0 0 14px;
    min-width: 0;
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
  }
  .submenu-wide { grid-template-columns: 1fr; }
  .has-sub.open .submenu { max-height: 420px; }
  .submenu li a { background: none; }
  .has-sub.open > .nav-link .sub-arrow { transform: rotate(180deg); }

  .hero { padding: 64px 0 120px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-downloads { justify-content: center; }
  .hero-meta { justify-content: center; }
  .hero-visual { margin-top: 34px; }
  .chip-1 { right: 4%; }
  .chip-2 { left: 2%; }
  .chip-3 { right: 8%; }

  .stats-card { grid-template-columns: repeat(2, 1fr); gap: 26px 0; padding: 30px 10px; }
  .stat-item:nth-child(3)::before { display: none; }

  .legal-grid { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .course-card p { min-height: 0; }

  .self-test { padding: 30px 26px 26px; }
  .aid-steps { gap: 8px; }
  .aid-step { padding: 12px 8px 10px; }

  .policy-wrap { grid-template-columns: 1fr; padding: 28px 24px; }
  .policy-tabs { flex-direction: row; flex-wrap: wrap; }
  .policy-tab { flex: 1 1 auto; justify-content: center; padding: 12px 16px; }
  .policy-tab:hover { transform: translateY(-3px); }

  .download-band { grid-template-columns: 1fr; text-align: center; padding: 52px 30px; }
  .download-copy p { margin-left: auto; margin-right: auto; }
  .download-btns { justify-content: center; }
  .privacy-cta { justify-content: center; text-align: center; }
}

/* 手机 */
@media (max-width: 767px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 38px; }

  .topbar-label span { display: none; }
  .topbar-label { padding: 3px 10px; }

  .brand-text em { display: none; }
  .brand-logo { width: 44px; height: 44px; }
  .brand-text strong { font-size: 17px; letter-spacing: 1px; }

  .hero { padding: 48px 0 110px; }
  .hero-badge { font-size: 12.5px; padding: 7px 14px; letter-spacing: 1px; }
  .hero-desc { font-size: 14.5px; }
  .hero-downloads { gap: 10px; }
  .dl-btn { min-width: 0; flex: 1 1 44%; padding: 10px 14px; }
  .dl-btn i { font-size: 22px; }
  .dl-btn b { font-size: 14.5px; }
  .dl-btn em { font-size: 11px; }
  .hero-meta { gap: 8px 16px; font-size: 12.5px; }

  .hero-visual { padding-bottom: 0; }
  .phone { width: 258px; height: 530px; border-radius: 40px; }
  .float-chip { padding: 8px 12px; gap: 8px; }
  .float-chip i { width: 32px; height: 32px; font-size: 15px; border-radius: 10px; }
  .float-chip b { font-size: 12.5px; }
  .float-chip em { display: none; }
  .chip-1 { top: 2%; right: 0; }
  .chip-2 { bottom: 24%; left: 0; }
  .chip-3 { bottom: -3%; right: 4%; }
  .hero-scroll { display: none; }

  .stats { margin-top: -50px; }
  .stats-card { grid-template-columns: repeat(2, 1fr); padding: 24px 6px; border-radius: 16px; }
  .stat-num { font-size: 26px; }
  .stat-label { font-size: 12.5px; letter-spacing: 1px; }
  .stat-item + .stat-item::before { display: none; }

  .service-grid { grid-template-columns: 1fr; gap: 18px; }
  .service-card { padding: 30px 24px 26px; }
  .service-card p { min-height: 0; }

  .self-test { padding: 26px 20px 22px; margin-top: 24px; }
  .self-test-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
  .self-test-head h3 { font-size: 18px; }
  .self-test-head .btn { width: 100%; justify-content: center; }
  .aid-steps { grid-template-columns: repeat(2, 1fr); }

  .legal-card { padding: 30px 24px; }
  .legal-grid { gap: 20px; }
  .bubble { max-width: 96%; }

  .course-grid { grid-template-columns: 1fr; gap: 18px; }
  .course-card { padding: 34px 24px 26px; }

  .policy-wrap { padding: 22px 16px; }
  .policy-tab { font-size: 14.5px; letter-spacing: 1px; }
  .policy-item { padding: 14px 10px; gap: 10px; }
  .policy-item i { width: 32px; height: 32px; font-size: 14px; }
  .policy-name { font-size: 14px; }

  .privacy-grid { grid-template-columns: 1fr; gap: 16px; margin-bottom: 30px; }
  .privacy-item { padding: 26px 22px; }
  .privacy-item p { text-align: justify; }
  .privacy-cta { padding: 28px 24px; text-align: center; }

  .download-band { padding: 44px 22px; border-radius: 22px; }
  .download-copy h2 { font-size: 24px; }
  .download-btns { flex-direction: column; align-items: stretch; }
  .download-btns .dl-btn { flex: 1 1 auto; }

  .footer-grid { grid-template-columns: 1fr; gap: 34px; padding: 54px 0 36px; }
  .footer-col:last-child { grid-column: auto; }
  /* 快速导航 / 服务支持链接横排（联系我们列表除外） */
  .footer-col ul:not(.footer-contact) { display: flex; flex-wrap: wrap; gap: 6px 22px; }
  .footer-col ul:not(.footer-contact) li { margin-bottom: 0; }
  .footer-bottom-inner { justify-content: center; text-align: center; }

  .back-top { right: 16px; bottom: 20px; width: 44px; height: 44px; }
}

/* 超小屏 */
@media (max-width: 380px) {
  .dl-btn { flex: 1 1 100%; }
  .hero-title { letter-spacing: 1.5px; }
  .phone { width: 236px; height: 488px; }
}
