/* ==========================================================================
   乐心社 Portal — 自适应样式表（mobile-first，逐级向 PC 增强）
   品牌 Token 与 src/uni.scss 保持一致：温暖橙色系
   ========================================================================== */

:root {
  /* 品牌 */
  --brand: #FF6B35;
  --brand-light: #FF8C42;
  --brand-bg: #FFF5EE;
  --gold: #FFB347;

  /* 文字 */
  --text: #2B2B2B;
  --text-2: #5F5F5F;
  --text-3: #8C8C8C;

  /* 背景 / 边框 */
  --bg: #FFFDFB;
  --bg-alt: #FFF8F3;
  --card: #FFFFFF;
  --line: #F0E7E0;

  /* 圆角 / 阴影 */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow: 0 2px 8px rgba(200, 120, 80, .06);
  --shadow-lg: 0 12px 32px rgba(200, 120, 80, .12);

  /* 布局 */
  --wrap: 1160px;
  --header-h: 64px;

  /* 流体字号：手机→PC 平滑放大，不用断点硬跳 */
  --fs-h1: clamp(2rem, 1.3rem + 3.4vw, 3.75rem);
  --fs-h2: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
  --fs-lede: clamp(1rem, .95rem + .4vw, 1.175rem);
}

/* ── 基础 ─────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

/* [hidden] 的 display:none 来自浏览器默认样式，优先级低于任何作者样式 ——
   本表里 .pill / .btn / .card 都显式设了 display，会把它盖掉，
   导致 JS 设了 hidden 元素却照样显示（AI 入口在 workmateUrl 为空时就这么漏出来过）。
   所以这里必须强制。 */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.25; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
img { max-width: 100%; height: auto; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-light); }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  background: var(--brand);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-sm);
}
.skip-link:focus { left: 16px; color: #fff; }

.only-mobile { display: initial; }

/* ── 按钮 ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 107, 53, .28);
}
.btn-primary:hover { color: #fff; box-shadow: 0 10px 26px rgba(255, 107, 53, .36); }

.btn-ghost {
  background: #fff;
  color: var(--brand);
  border-color: rgba(255, 107, 53, .35);
}
.btn-ghost:hover { background: var(--brand-bg); color: var(--brand); }

.btn-sm { padding: 10px 20px; font-size: .9375rem; }

/* ==========================================================================
   导航 —— 同一套导航的两种响应式形态
   移动端：底部 Tab Bar（常驻）
   PC 端：左侧边栏（默认折叠成图标栏，可展开；架构上支持将来整体隐藏）
   ========================================================================== */

/* ── 移动端顶部品牌条（导航已沉到底部，这里只留品牌 + 主 CTA）──── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
  padding: 8px 16px;
  background: rgba(255, 253, 251, .9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); margin-right: auto; }
.brand:hover { color: var(--text); }

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--gold) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.0625rem; letter-spacing: .02em; }
.brand-text small { color: var(--text-3); font-size: .75rem; }

/* ── 移动端底部 Tab Bar ─────────────────────────────────── */

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 130;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line);
  /* 让开 iPhone 底部的 Home Indicator */
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -2px 16px rgba(200, 120, 80, .07);
}

.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 9px 4px 8px;
  color: var(--text-3);
  min-height: 56px;                 /* 触控目标 ≥ 44px */
}
.tabbar a:hover,
.tabbar a.is-active { color: var(--brand); }

.tab-icon { font-size: 1.25rem; line-height: 1; }
.tab-label { font-size: .6875rem; font-weight: 600; letter-spacing: .02em; }

/* 底部被 Tab Bar 占住，正文要留出等高的空间，否则页脚内容会被压住 */
body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0)); }

/* ── PC 侧边栏（移动端不渲染）───────────────────────────── */

.sidebar { display: none; }

/* ── Hero ─────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 500px at 88% -12%, rgba(255, 179, 71, .22), transparent 60%),
    radial-gradient(760px 420px at 4% 8%, rgba(255, 107, 53, .10), transparent 62%),
    var(--bg);
  padding-block: clamp(48px, 7vw, 104px);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: var(--brand);
  background: var(--brand-bg);
  border: 1px solid rgba(255, 107, 53, .18);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}

.lede {
  font-size: var(--fs-lede);
  color: var(--text-2);
  max-width: 34em;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.hero-actions .btn { flex: 1 1 auto; min-width: 156px; }

.hero-note { color: var(--text-3); font-size: .875rem; }

/* Hero 视觉：对话卡片 */
.hero-visual { position: relative; display: grid; place-items: center; }

.orb { position: absolute; border-radius: 50%; filter: blur(48px); opacity: .5; }
.orb-1 { width: 260px; height: 260px; background: var(--gold); top: -30px; right: 0; }
.orb-2 { width: 220px; height: 220px; background: var(--brand); bottom: -20px; left: 10px; }

.hero-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  display: grid;
  gap: 12px;
}
.hc-row { display: flex; align-items: center; gap: 8px; }
.hc-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); flex: 0 0 auto; }
.hc-line { height: 8px; border-radius: 4px; background: var(--line); }
.hc-line.w70 { width: 70%; }

.hc-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: .9375rem;
  line-height: 1.6;
  max-width: 90%;
}
.hc-them { background: #F4F4F5; color: var(--text-2); border-bottom-left-radius: 5px; }
.hc-me {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  color: #fff;
  justify-self: end;
  border-bottom-right-radius: 5px;
}
.hc-meta { color: var(--text-3); font-size: .75rem; text-align: right; }

/* ── 通用 section ─────────────────────────────────────── */

.section { padding-block: clamp(52px, 6.5vw, 96px); }
.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: var(--fs-h2); font-weight: 700; margin-bottom: 10px; }
.section-head p { color: var(--text-2); }

.section-foot { text-align: center; margin-top: 32px; }

/* ── 专业支持：咨询师卡片 ─────────────────────────────── */

.consultants {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.consultant {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  color: var(--text);
  text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease;
}

.consultant:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.cs-head { display: flex; align-items: center; gap: 14px; }

.cs-avatar {
  width: 73px;
  height: 73px;
  flex: 0 0 73px;
  border-radius: 50%;
  background: var(--brand-bg);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  overflow: hidden;
}

.cs-avatar img { width: 100%; height: 100%; object-fit: cover; }

.cs-who { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cs-who strong { font-size: 17px; font-weight: 650; }
.cs-who small { font-size: 13px; color: var(--text-2); }

.cs-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.cs-tags em {
  font-style: normal;
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  background: var(--brand-bg);
  color: var(--brand);
}

.cs-foot { font-size: 13px; color: var(--text-3); }

/* 咨询师尚未入驻时的兜底：不留白，给出仍然可用的一条路 */
.consultant-empty {
  grid-column: 1 / -1;
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  padding: 40px 28px;
  text-align: center;
}

.ce-title { font-size: 17px; font-weight: 650; margin: 0 0 8px; }
.ce-desc { font-size: 14.5px; color: var(--text-2); margin: 0 auto 20px; max-width: 46ch; line-height: 1.75; }

/* 危机通道：常驻可达，但不视觉主导 —— 一条细链接，不是大卡片块 */
.support-crisis {
  display: inline-block;
  margin-left: 20px;
  font-size: 14px;
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.support-crisis:hover { color: var(--brand); border-bottom-color: var(--brand); }

/* ── 三大入口卡片 ─────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  color: var(--text);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 107, 53, .3);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: var(--brand-bg);
  font-size: 1.625rem;
  margin-bottom: 4px;
}
.card h3 { font-size: 1.25rem; font-weight: 700; }
.card p { color: var(--text-2); font-size: .9375rem; flex: 1; }
.card-link { color: var(--brand); font-weight: 600; font-size: .9375rem; margin-top: 4px; }

/* ── 学习中心 / 文章 ───────────────────────────────────── */

.learning-types {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 26px;
}

.learning-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
  color: var(--text);
  box-shadow: 0 10px 26px rgba(43, 35, 32, .04);
}

.learning-card:hover {
  color: var(--text);
  border-color: rgba(255, 107, 53, .3);
  box-shadow: var(--shadow);
}

.learning-icon {
  grid-row: 1 / span 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-bg);
  font-size: 1.25rem;
}

.learning-title {
  font-weight: 700;
  font-size: 1.0625rem;
}

.learning-desc {
  color: var(--text-2);
  font-size: .9rem;
  line-height: 1.55;
}

.learning-link {
  color: var(--brand);
  font-size: .875rem;
  font-weight: 650;
}

.learning-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 14px;
}

.learning-subhead h3 {
  font-size: 1.125rem;
  font-weight: 700;
}

.learning-subhead a {
  color: var(--brand);
  font-size: .875rem;
  font-weight: 650;
  white-space: nowrap;
}

.articles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.article {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--r-md);
  padding: 20px 22px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.article:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.article h3 { font-size: 1.0625rem; font-weight: 650; margin-bottom: 6px; }
.article p { color: var(--text-2); font-size: .9375rem; }
.article a { color: inherit; }

/* ── 隐私与安全 ───────────────────────────────────────── */

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: start;
}
.trust-copy h2 { font-size: var(--fs-h2); font-weight: 700; margin-bottom: 14px; }
.trust-copy p { color: var(--text-2); }
.trust-copy strong { color: var(--text); }

.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.trust-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
}
.trust-list li > span { font-size: 1.25rem; line-height: 1.4; flex: 0 0 auto; }
.trust-list div { font-size: .9375rem; color: var(--text-2); line-height: 1.6; }
.trust-list strong { color: var(--text); }

/* ── 紧急求助 ─────────────────────────────────────────── */

.help {
  background: linear-gradient(135deg, #FFF3EC 0%, #FFE9DC 100%);
  border-top: 1px solid rgba(255, 107, 53, .18);
  border-bottom: 1px solid rgba(255, 107, 53, .18);
  padding-block: clamp(48px, 6vw, 88px);
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.help-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.help-copy h2 { font-size: var(--fs-h2); font-weight: 700; margin-bottom: 14px; }
.help-copy p { color: var(--text-2); }
.help-copy strong { color: var(--brand); }
.help-110 { margin-top: 12px; font-weight: 600; color: var(--text) !important; }

.hotlines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hotlines a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 12px;
  background: #fff;
  border: 1px solid rgba(255, 107, 53, .22);
  border-radius: var(--r-md);
  padding: 16px 20px;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.hotlines a:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--text); }
.hotlines strong { font-size: .9375rem; }
.hotlines .num {
  grid-column: 1;
  color: var(--brand);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: .01em;
}
.hotlines .hrs {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: .75rem;
  color: var(--text-3);
  background: var(--brand-bg);
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}

/* ── 页脚 ─────────────────────────────────────────────── */

.site-footer {
  background: #2B2320;
  color: #C9BDB6;
  padding-block: 48px 40px;
}
.footer-inner { display: grid; gap: 24px; }

.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { color: #fff; font-size: 1.0625rem; }
.footer-brand p { font-size: .875rem; color: #9C8E86; margin-top: 2px; }

.disclaimer {
  font-size: .875rem;
  line-height: 1.8;
  background: rgba(255, 255, 255, .05);
  border-left: 3px solid var(--brand);
  border-radius: var(--r-sm);
  padding: 16px 18px;
}
.disclaimer strong { color: #fff; }

.copyright { font-size: .875rem; color: #9C8E86; }
.site-footer a { color: var(--gold); }

/* ── AI 药丸（右侧竖胶囊）─────────────────────────────────
   门户唯一的 AI 出口，跳 LX Workmate。生态各门户统一这个姿势。 */

.pill {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 10px 20px;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-light) 100%);
  color: #fff;
  border-radius: 14px 0 0 14px;
  box-shadow: -4px 6px 22px rgba(255, 107, 53, .36);
  transition: transform .2s ease, box-shadow .2s ease;
}
.pill:hover {
  color: #fff;
  transform: translateY(-50%) translateX(-3px);
  box-shadow: -8px 8px 28px rgba(255, 107, 53, .46);
}

.pill-icon { font-size: 1.25rem; line-height: 1; }

/* 竖排文字 */
.pill-text {
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: .18em;
  font-size: .875rem;
  font-weight: 700;
}

/* 手机：右侧竖胶囊会压住正文（屏幕太窄，正文一直延伸到右边缘）。
   改为收进右下角、叠在求助按钮正上方 —— 拇指可达，且不遮挡任何正文。 */
@media (max-width: 719px) {
  .pill {
    top: auto;
    /* 抬到底部 Tab Bar 之上（Tab Bar 高 ~64px + iPhone Home Indicator） */
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    transform: none;
    flex-direction: row;
    gap: 0;
    padding: 14px;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(255, 107, 53, .38);
  }
  .pill:hover { transform: translateY(-2px); }
  .pill-text { display: none; }
}

/* ==========================================================================
   门户登录控件（右上角浮层）
   —— web 登录（第三种登录法）：登录后 Pill 带 token SSO 进 LX Workmate。
   门户是最外层壳（workmate 被嵌在门户里），登录按钮永远在顶层、不会被嵌入，
   所以这里不做「嵌入态短路」。
   ========================================================================== */

.site-login {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: 16px;
  z-index: 130;
}

.login-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-light) 100%);
  box-shadow: 0 6px 18px rgba(255, 107, 53, .34);
  transition: transform .15s ease, box-shadow .15s ease;
}
.login-btn:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(255, 107, 53, .44);
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px 5px 6px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}
.u-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: .9rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
}
.u-name {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-primary, #333);
  max-width: 8em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.logout-btn {
  border: none;
  background: transparent;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: .8rem;
  color: var(--text-hint, #999);
  cursor: pointer;
}
.logout-btn:hover { color: var(--brand); background: var(--brand-bg, #FFF5EE); }

/* 手机：右上角浮层抬到 Pill / 底部之外，避免与 hero 顶部拥挤 */
@media (max-width: 719px) {
  .site-login { top: calc(10px + env(safe-area-inset-top, 0px)); right: 12px; }
  .login-btn { padding: 7px 15px; }
  .u-name { max-width: 5em; }
}

/* ==========================================================================
   匿名态引导弹层
   —— Pill 恒带 embed 后 workmate 会藏掉自己的匿名 banner（含登录入口），
   affordance 补在门户侧：告知「可问公开信息」+ 给去登录/匿名继续两条路。
   不阻断匿名。
   ========================================================================== */

.anon-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, .38);
}

.ag-card {
  width: 100%;
  max-width: 340px;
  background: #fff;
  border-radius: 18px;
  padding: 26px 24px 20px;
  box-shadow: 0 20px 54px rgba(0, 0, 0, .22);
  text-align: center;
}

.ag-title { font-size: 1.08rem; margin: 0 0 8px; color: var(--text-primary, #333); }

.ag-desc {
  font-size: .88rem;
  line-height: 1.6;
  color: var(--text-secondary, #666);
  margin: 0 0 20px;
}
.ag-desc strong { color: var(--brand); }

.ag-actions { display: flex; flex-direction: column; gap: 10px; }

.ag-btn {
  width: 100%;
  padding: 11px 16px;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
}
.ag-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-light) 100%);
  box-shadow: 0 8px 20px rgba(255, 107, 53, .3);
}
.ag-ghost {
  color: var(--text-secondary, #666);
  background: #fff;
  border-color: var(--border-color, #eee);
}
.ag-ghost:hover { color: var(--brand); border-color: var(--brand); }

/* ==========================================================================
   响应式增强
   ========================================================================== */

/* ── 平板 ≥ 720px ─────────────────────────────────────── */
@media (min-width: 720px) {
  .wrap { padding-inline: 32px; }
  .only-mobile { display: none; }

  .cards { grid-template-columns: repeat(3, 1fr); }
  .consultants { grid-template-columns: repeat(3, 1fr); }
  .learning-types { grid-template-columns: repeat(3, 1fr); }
  .articles { grid-template-columns: repeat(2, 1fr); }
  .hotlines { grid-template-columns: repeat(3, 1fr); }
  .hotlines a { grid-template-columns: 1fr; text-align: center; }
  .hotlines .hrs { grid-column: 1; grid-row: auto; justify-self: center; }

  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 0 0 auto; }
}

/* ── 桌面 ≥ 1040px ────────────────────────────────────── */
@media (min-width: 1040px) {
  :root {
    --header-h: 72px;
    --sb-w: 76px;        /* 折叠态：图标栏 */
    --sb-w-open: 232px;  /* 展开态 */
  }

  /* PC 上导航换成侧边栏：收起顶部品牌条与底部 Tab Bar */
  .topbar, .tabbar { display: none; }
  body { padding-bottom: 0; }

  /* 正文整体给侧边栏让位（折叠/展开时平滑推移） */
  body { padding-left: var(--sb-w); transition: padding-left .22s ease; }
  body.sb-open { padding-left: var(--sb-w-open); }

  /* 将来若要整体隐藏侧边栏：给 body 加 .sb-hidden 即可，无需改结构 */
  body.sb-hidden { padding-left: 0; }
  body.sb-hidden .sidebar { display: none; }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 110;
    display: flex;
    flex-direction: column;
    width: var(--sb-w);
    padding: 18px 12px;
    background: #fff;
    border-right: 1px solid var(--line);
    transition: width .22s ease;
    overflow: hidden;
  }
  body.sb-open .sidebar { width: var(--sb-w-open); }

  /* 品牌 */
  .sb-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px;
    margin-bottom: 24px;
    color: var(--text);
    white-space: nowrap;
  }
  .sb-brand:hover { color: var(--text); }

  .sb-brand-text { display: none; flex-direction: column; line-height: 1.2; }
  .sb-brand-text strong { font-size: 1.0625rem; }
  .sb-brand-text small { color: var(--text-3); font-size: .6875rem; }
  body.sb-open .sb-brand-text { display: flex; }

  /* 导航项 */
  .sb-nav { display: flex; flex-direction: column; gap: 6px; }

  .sb-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    color: var(--text-2);
    font-weight: 600;
    font-size: .9375rem;
    white-space: nowrap;
  }
  .sb-nav a:hover { background: var(--brand-bg); color: var(--brand); }
  .sb-nav a.is-active { background: var(--brand-bg); color: var(--brand); }

  .sb-icon { font-size: 1.25rem; line-height: 1; flex: 0 0 24px; text-align: center; }

  /* 折叠态只留图标；展开后文字淡入 */
  .sb-label { display: none; }
  body.sb-open .sb-label { display: inline; }

  /* 展开/折叠开关 */
  .sb-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--text-3);
    font-weight: 600;
    font-size: .875rem;
    cursor: pointer;
    white-space: nowrap;
  }
  .sb-toggle:hover { border-color: var(--brand); color: var(--brand); }

  .sb-chevron {
    flex: 0 0 24px;
    text-align: center;
    font-size: 1.375rem;
    line-height: 1;
    transition: transform .22s ease;
  }
  body.sb-open .sb-chevron { transform: rotate(180deg); }

  /* 侧边栏已占位，内容区不必再居中于整个视口 */
  .wrap { margin-inline: auto; }


  /* Hero 左右分栏 */
  .hero-inner { grid-template-columns: 1.05fr .95fr; gap: 64px; }
  .hero-card { max-width: 420px; }

  /* 文章四列 */
  .articles { grid-template-columns: repeat(4, 1fr); }

  /* 隐私区左右分栏 */
  .trust-grid { grid-template-columns: 1fr 1.15fr; gap: 64px; }
  .trust-list { grid-template-columns: repeat(2, 1fr); }

  /* 求助区左右分栏 */
  .help-inner { grid-template-columns: 1fr 1.1fr; gap: 56px; }

  .footer-inner {
    grid-template-columns: auto 1fr;
    gap: 20px 48px;
    align-items: center;
  }
  .disclaimer { grid-column: 2; }
  .copyright { grid-column: 1 / -1; }
}

/* ── 大屏 ≥ 1400px ────────────────────────────────────── */
@media (min-width: 1400px) {
  :root { --wrap: 1240px; }
}

/* ── 无障碍：尊重"减少动效"偏好 ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .card:hover, .article:hover, .hotlines a:hover, .pill:hover { transform: none; }
}

/* ── 打印 ─────────────────────────────────────────────── */
@media print {
  .sidebar, .tabbar, .pill, .topbar, .hero-visual { display: none !important; }
  body { background: #fff; }
}
