/* ============================================================
   长期护理师网 · 基础样式（布局 / 组件）
   手机优先，PC 自适应；配色由 theme-a.css / theme-b.css 提供变量
   ============================================================ */
:root {
  --txt: #1B2430;
  --muted: #6B7686;
  --line: #E6EAF2;
  --card: #FFFFFF;
  --bg: #F5F7FB;
  --brand: #0B1F3A;
  --brand-2: #12294D;
  --accent: #C9A227;
  --accent-2: #E7C558;
  --ok: #2E9E6B;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 8px 28px rgba(15, 32, 58, .08);
  --shadow-lg: 0 18px 48px rgba(15, 32, 58, .14);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1180px;
  /* 统一表单控件密度（前台：大气一些） */
  --field-h: 46px;
  --field-radius: 14px;
  --field-fs: 15px;
  --field-focus: rgba(201, 162, 39, .13);
  /* 注意：--field-bg 不在这里声明 —— :root 上的 var(--bg) 会被锁定为默认色，
     导致主题 A/B 切换时输入框底色不跟随。
     fields.css 里用 var(--field-bg, var(--bg))，前台自动落到 body 上的主题色。 */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--txt);
  background: var(--bg);
  line-height: 1.65;
  font-size: 15px;
  padding-bottom: 64px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); font-size: 13px; }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 24px rgba(6, 18, 38, .18);
}
.header-inner {
  display: flex; align-items: center; gap: 18px;
  height: 60px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--brand); font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.logo img { height: 34px; }
.logo-text { font-size: 17px; font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
.main-nav { display: none; gap: 4px; margin-left: 8px; flex: 1; }
.main-nav a {
  padding: 8px 14px; border-radius: 999px; font-size: 14px;
  color: rgba(255, 255, 255, .82); transition: .2s;
}
.main-nav a:hover, .main-nav a.on { background: rgba(255, 255, 255, .14); color: #fff; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hd-phone {
  display: none; align-items: center; gap: 6px;
  font-size: 14px; color: var(--accent-2); font-weight: 600;
}
.hd-btn {
  display: none; padding: 8px 18px; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--brand); font-weight: 700; font-size: 13px;
}
.nav-toggle {
  width: 40px; height: 40px; border: none; background: rgba(255, 255, 255, .12);
  border-radius: 10px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px; cursor: pointer;
}
.nav-toggle span { width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: .25s; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 移动端抽屉导航 */
/* 注意：必须显式写 display:flex —— 上面第 59 行的 .main-nav 是 display:none，
   若这里不覆盖，折叠抽屉永远打不开（点汉堡按钮无反应）。 */
.main-nav {
  display: flex;
  position: fixed; inset: 60px 0 auto 0; z-index: 55;
  background: var(--brand-2); flex-direction: column;
  padding: 12px 16px 20px; gap: 4px;
  max-height: calc(100vh - 60px); overflow-y: auto;
  transform: translateY(-120%); transition: transform .3s ease;
  box-shadow: 0 20px 40px rgba(6, 18, 38, .3);
  -webkit-overflow-scrolling: touch;
}
body.nav-open .main-nav { transform: translateY(0); }
.main-nav a { padding: 13px 16px; font-size: 15px; border-radius: 12px; }

/* 抽屉打开时的遮罩（点击空白关闭） */
body.nav-open::after {
  content: ''; position: fixed; inset: 0; z-index: 50;
  background: rgba(8, 18, 32, .45);
}

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-2) 55%, var(--brand) 100%);
  color: #fff; padding: 46px 0 40px;
}
.hero-bg {
  position: absolute; inset: 0; opacity: .5;
  background:
    radial-gradient(700px 320px at 85% -10%, rgba(201, 162, 39, .28), transparent 60%),
    radial-gradient(520px 260px at 8% 110%, rgba(201, 162, 39, .16), transparent 60%);
}
.hero-inner { position: relative; display: grid; gap: 28px; }
.hero-kicker {
  font-size: 11px; letter-spacing: 4px; color: var(--accent-2);
  text-transform: uppercase; margin-bottom: 12px;
}
.hero-title {
  font-size: 34px; line-height: 1.25; font-weight: 800; letter-spacing: 2px;
}
.hero-sub {
  margin-top: 12px; font-size: 15px; color: rgba(255, 255, 255, .78);
  max-width: 520px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14);
}
.hs-item b { display: block; font-size: 22px; color: var(--accent-2); letter-spacing: 1px; }
.hs-item span { font-size: 12px; color: rgba(255, 255, 255, .62); }
.hero-visual { display: none; }
.hero-card {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-lg); padding: 22px;
  backdrop-filter: blur(8px);
}
.hc-head {
  font-size: 13px; letter-spacing: 3px; color: var(--accent-2); margin-bottom: 14px;
}
.hc-item {
  display: block; padding: 13px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .07); margin-bottom: 10px; transition: .2s;
}
.hc-item:hover { background: rgba(255, 255, 255, .14); transform: translateX(3px); }
.hc-badge {
  display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 6px;
  background: rgba(201, 162, 39, .22); color: var(--accent-2); margin-bottom: 6px;
}
.hc-title { display: block; font-size: 14px; color: rgba(255, 255, 255, .9); line-height: 1.5; }
.hc-foot { display: block; text-align: center; margin-top: 12px; font-size: 13px; color: var(--accent-2); }

/* ---------- 轮播条 / 快捷入口 ---------- */
.banner-strip { margin-top: -18px; position: relative; z-index: 5; }
.bs-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%;
  gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 6px; scrollbar-width: none;
}
.bs-track::-webkit-scrollbar { display: none; }
.bs-item {
  scroll-snap-align: start; height: 92px; border-radius: var(--radius);
  background: linear-gradient(120deg, var(--brand-2), var(--brand));
  background-size: cover; background-position: center;
  display: flex; align-items: center; padding: 0 22px;
  color: #fff; font-size: 16px; font-weight: 700; letter-spacing: 1px;
  box-shadow: var(--shadow);
}
.quick {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-top: 22px;
}
.qk-item {
  background: var(--card); border-radius: var(--radius);
  padding: 16px 6px; text-align: center; font-size: 12px;
  box-shadow: var(--shadow); transition: .2s;
}
.qk-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.qk-ic { display: block; font-size: 24px; margin-bottom: 6px; }

/* ---------- 通用 section ---------- */
.section { padding: 34px 0 8px; }
.section-tint { background: var(--tint, rgba(11, 31, 58, .03)); margin-top: 26px; padding-bottom: 34px; }
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; margin-bottom: 18px;
}
.sec-kicker { font-size: 10px; letter-spacing: 3px; color: var(--accent); font-weight: 700; }
.sec-title { font-size: 22px; font-weight: 800; letter-spacing: 1px; margin-top: 4px; }
.sec-more { font-size: 13px; color: var(--muted); white-space: nowrap; padding-bottom: 4px; }
.sec-more:hover { color: var(--accent); }

/* ---------- 网格与卡片 ---------- */
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: .22s; border: 1px solid var(--line);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: .35s; }
.card:hover .card-cover img { transform: scale(1.06); }
.card-body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card-title {
  font-size: 15px; font-weight: 700; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-sum {
  font-size: 12px; color: var(--muted); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { color: var(--price, var(--accent)); font-size: 17px; font-weight: 800; letter-spacing: .5px; }
.badge {
  position: absolute; left: 10px; top: 10px;
  background: var(--accent); color: var(--brand);
  font-size: 11px; padding: 3px 9px; border-radius: 6px; font-weight: 700;
}
.rating { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.star { color: #D8DEE9; font-size: 13px; }
.star.on { color: var(--accent); }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 11px; padding: 3px 9px; border-radius: 999px;
  background: var(--tint); color: var(--muted); border: 1px solid var(--line);
}

/* 列表行卡片 */
.news-list { display: flex; flex-direction: column; gap: 12px; }
.row-card {
  display: flex; gap: 13px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; box-shadow: var(--shadow); transition: .2s;
}
.row-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.row-cover {
  width: 108px; height: 82px; border-radius: 10px; overflow: hidden;
  flex-shrink: 0; background: var(--tint);
}
.row-cover img { width: 100%; height: 100%; object-fit: cover; }
.row-body { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.row-title {
  font-size: 15px; font-weight: 700; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.row-sum {
  font-size: 12px; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.row-meta { margin-top: auto; display: flex; gap: 12px; align-items: center; }

/* ---------- 信任条 / 内联 CTA / 标签面板 ---------- */
.trust {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px 18px; box-shadow: var(--shadow);
}
.trust-item b { display: block; font-size: 15px; margin-bottom: 3px; }
.trust-item span { font-size: 12px; color: var(--muted); }
.cta-inline {
  margin-top: 20px; padding: 22px; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  color: #fff; display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
}
.cta-inline h3 { font-size: 18px; letter-spacing: 1px; }
.cta-inline p { font-size: 13px; color: rgba(255, 255, 255, .74); margin-top: 4px; }
.link-panel {
  margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.lp-label { font-size: 12px; color: var(--muted); margin-right: 4px; }
.lp-tag {
  font-size: 12px; padding: 5px 13px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: var(--muted);
  transition: .2s;
}
.lp-tag:hover { color: var(--accent); border-color: var(--accent); }
.hot-words { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; align-items: center; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 26px; border-radius: 999px; border: none;
  font-size: 14px; font-weight: 700; letter-spacing: 1px; cursor: pointer;
  transition: .22s; white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--brand); box-shadow: 0 10px 24px rgba(201, 162, 39, .3);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(201, 162, 39, .42); }
.btn-ghost {
  background: rgba(255, 255, 255, .12); color: #fff;
  border: 1px solid rgba(255, 255, 255, .28);
}
.btn-line {
  background: transparent; color: var(--brand); border: 1px solid var(--line);
}
.btn-line:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }

/* ---------- 页面 Hero / 筛选 ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; padding: 34px 0 30px;
}
.ph-kicker { font-size: 10px; letter-spacing: 4px; color: var(--accent-2); }
.ph-title { font-size: 28px; font-weight: 800; margin-top: 6px; letter-spacing: 2px; }
.ph-sub { margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, .72); max-width: 640px; }
.filter-bar {
  margin-top: 16px; display: flex; flex-direction: column; gap: 10px;
}
.filter-scroll {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none;
}
.filter-scroll::-webkit-scrollbar { display: none; }
.f-chip {
  flex-shrink: 0; padding: 7px 15px; border-radius: 999px; font-size: 13px;
  background: var(--card); border: 1px solid var(--line); color: var(--muted);
}
.f-chip.on {
  background: var(--brand); color: var(--accent-2); border-color: var(--brand);
  font-weight: 700;
}
.filter-search { display: flex; gap: 8px; }
.filter-search input {
  flex: 1; height: 44px; padding: 0 18px; font-size: 14.5px;
}
.filter-search button {
  height: 44px; padding: 0 22px; border: none; border-radius: 999px;
  background: var(--brand); color: var(--accent-2); font-weight: 700; cursor: pointer;
}

/* ---------- 详情页 ---------- */
.crumb {
  padding: 14px 16px 0; font-size: 12px; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
}
.crumb-sep { opacity: .5; }
.crumb-cur { color: var(--txt); }
.detail { padding-top: 12px; padding-bottom: 24px; }
.dt-head { padding: 8px 0 12px; }
.dt-title { font-size: 24px; line-height: 1.45; font-weight: 800; letter-spacing: .5px; }
.dt-meta {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-top: 10px; font-size: 12px; color: var(--muted);
}
.dt-cover {
  border-radius: var(--radius-lg); overflow: hidden; margin: 8px 0 18px;
  box-shadow: var(--shadow); background: var(--tint);
}
.dt-cover img { width: 100%; max-height: 460px; object-fit: cover; }
.dt-content {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 18px; font-size: 15px; line-height: 1.95; box-shadow: var(--shadow);
}
.dt-content h3 { font-size: 17px; margin: 18px 0 8px; }
.dt-content p { margin: 10px 0; }
.dt-content img { margin: 12px 0; border-radius: 10px; }
.info-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0;
}
.info-cell {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px;
}
.info-cell span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.info-cell b { font-size: 14px; word-break: break-all; }
.price-panel {
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  color: #fff; border-radius: var(--radius-lg); padding: 20px; margin: 12px 0 16px;
}
.pp-price { font-size: 30px; font-weight: 800; color: var(--accent-2); letter-spacing: 1px; }
.pp-market { font-size: 12px; color: rgba(255, 255, 255, .55); text-decoration: line-through; margin-top: 2px; }
.pp-meta {
  display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px;
  font-size: 12px; color: rgba(255, 255, 255, .78);
}
.pp-suit { margin-top: 10px; font-size: 12px; color: var(--accent-2); }
.file-card {
  display: flex; align-items: center; gap: 14px; margin-top: 16px;
  background: var(--card); border: 1px dashed var(--accent);
  border-radius: var(--radius); padding: 16px;
}
.file-ic { font-size: 26px; }
.file-info { flex: 1; }
.file-info b { display: block; font-size: 14px; }
.file-info span { font-size: 12px; color: var(--muted); }
.detail-cols { display: grid; gap: 16px; margin-top: 18px; }
.cross-box {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; margin-top: 16px; box-shadow: var(--shadow);
}
.cross-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 13px;
}
.cross-head h3 { font-size: 16px; letter-spacing: 1px; position: relative; padding-left: 12px; }
.cross-head h3::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 4px; border-radius: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
.cross-head a { font-size: 12px; color: var(--muted); }
.count {
  display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 600;
  background: var(--tint); color: var(--muted); border-radius: 999px; padding: 1px 8px;
}
.gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gal img { border-radius: 10px; }

/* ---------- 表单 ---------- */
/* 注：input / select / textarea 的统一视觉已抽到 assets/css/fields.css（前后台共用），
   此处只保留布局与结构样式，避免两处规则打架。 */
.form-panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
  position: sticky; top: 76px; align-self: start;
}
.form-panel h3 { font-size: 17px; letter-spacing: 1px; }
.mini-form { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.qty-row { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.qty-row input { width: 110px; }
.form-page { padding: 18px 16px 28px; }
.form-layout { display: grid; gap: 16px; }
.form-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px 18px; box-shadow: var(--shadow);
}
.form-card h2 { font-size: 18px; letter-spacing: 1px; margin-bottom: 14px; }
.big-form { display: flex; flex-direction: column; gap: 14px; }
.f-row label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; }
.f-row > .region-cascade { margin-top: 2px; }
.order-item {
  display: flex; gap: 13px; padding: 13px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--line); margin-bottom: 14px;
}
.order-item img { width: 92px; height: 70px; border-radius: 10px; object-fit: cover; }
.order-item h3 { font-size: 15px; line-height: 1.5; }
.tips {
  background: var(--tint); border-radius: 12px; padding: 13px 15px;
  font-size: 12px; color: var(--muted); line-height: 1.9;
}
.info-list { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.info-list > div {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 13px; padding-bottom: 9px; border-bottom: 1px dashed var(--line);
}
.info-list > div:last-child { border-bottom: none; padding-bottom: 0; }
.info-list span { color: var(--muted); }
.type-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.type-tab {
  padding: 7px 16px; border-radius: 999px; font-size: 13px;
  border: 1px solid var(--line); color: var(--muted);
}
.type-tab.on {
  background: var(--brand); color: var(--accent-2); border-color: var(--brand); font-weight: 700;
}
.feature-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.ft {
  padding: 13px 15px; border-radius: 12px; background: var(--tint);
}
.ft b { display: block; font-size: 14px; margin-bottom: 2px; }
.ft span { font-size: 12px; color: var(--muted); }

/* 成功 / 空 / 提示 */
.success-box {
  background: var(--card); border-radius: var(--radius-lg); padding: 40px 22px;
  text-align: center; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.sc-ic {
  width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 50%;
  background: rgba(46, 158, 107, .12); color: var(--ok);
  font-size: 34px; display: flex; align-items: center; justify-content: center;
}
.success-box h1 { font-size: 24px; letter-spacing: 2px; }
.success-box p { margin: 12px 0 22px; }
.sc-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.empty {
  text-align: center; padding: 50px 20px; background: var(--card);
  border-radius: var(--radius); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.empty-ic { font-size: 44px; opacity: .8; }
.alert-ok {
  background: rgba(46, 158, 107, .1); color: var(--ok);
  border-radius: 12px; padding: 12px 16px; font-size: 14px; margin-bottom: 14px;
}
.notice {
  margin-top: 16px; display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px; font-size: 13px;
}
.static-title { font-size: 24px; letter-spacing: 2px; margin-bottom: 12px; }

/* 搜索 */
.search-hero {
  display: flex; gap: 10px; margin: 18px 0 8px;
}
.search-hero input {
  flex: 1; height: 50px; padding: 0 22px; font-size: 15px;
}

/* ---------- 分页 ---------- */
.pager {
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
  margin: 26px 0 10px;
}
.pg-btn {
  min-width: 38px; height: 38px; padding: 0 13px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--line); font-size: 13px;
}
.pg-btn.pg-cur { background: var(--brand); color: var(--accent-2); border-color: var(--brand); font-weight: 700; }

/* ---------- CTA 行动条 / 底部菜单 ---------- */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 62px; z-index: 50;
  display: flex; gap: 10px; padding: 10px 14px;
  background: var(--card); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(15, 32, 58, .08);
}
.cta-btn {
  flex: 1; height: 42px; border-radius: 999px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
  border: 1px solid var(--line); color: var(--txt); background: var(--bg);
}
.cta-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--brand); border: none; box-shadow: 0 8px 18px rgba(201, 162, 39, .3);
}
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -8px 28px rgba(15, 32, 58, .10);
}
.tb-item {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 7px 0 8px; font-size: 10.5px; letter-spacing: .3px;
  color: var(--muted); transition: color .22s ease;
}
.tb-ic {
  position: relative;
  width: 38px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  transition: background .26s ease, transform .26s ease;
}
.tb-svg { width: 22px; height: 22px; transition: transform .26s cubic-bezier(.34, 1.56, .64, 1); }
.tb-tx { font-weight: 500; }
.tb-item.on { color: var(--brand); font-weight: 700; }
.tb-item.on .tb-ic {
  background: linear-gradient(140deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 6px 16px rgba(201, 162, 39, .38);
}
.tb-item.on .tb-svg { color: var(--brand); transform: translateY(-1px) scale(1.06); }
.tb-item:active .tb-svg { transform: scale(.9); }
.hd-user { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); }

/* ---------- 页尾 ---------- */
.site-footer {
  margin-top: 36px; background: var(--brand); color: rgba(255, 255, 255, .72);
  padding: 38px 0 90px; font-size: 13px;
}
.foot-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.foot-title {
  color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 1px;
  margin-bottom: 12px;
}
.foot-desc { margin-bottom: 6px; line-height: 1.8; }
.foot-desc a { color: var(--accent-2); }
.foot-col a {
  display: block; padding: 4px 0; color: rgba(255, 255, 255, .62); font-size: 12px;
}
.foot-col a:hover { color: var(--accent-2); }
.foot-bottom {
  margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 12px; color: rgba(255, 255, 255, .45);
}

/* ============================================================
   平板 / PC 适配
   ============================================================ */
@media (min-width: 720px) {
  body { font-size: 16px; padding-bottom: 0; }
  .tabbar { display: none; }
  .cta-bar {
    position: static; bottom: auto; border: none; box-shadow: none;
    background: transparent; max-width: var(--maxw); margin: 0 auto 30px;
    padding: 0 16px;
  }
  .cta-btn { height: 48px; font-size: 14px; }
  .main-nav {
    position: static; transform: none; flex-direction: row;
    background: transparent; box-shadow: none; padding: 0;
    display: flex; margin-left: 14px;
  }
  .nav-toggle { display: none; }
  .hd-btn { display: inline-flex; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .hero-inner { grid-template-columns: 1.25fr .9fr; align-items: center; }
  .hero-visual { display: block; }
  .hero-title { font-size: 46px; }
  .hero { padding: 68px 0 58px; }
  .quick { grid-template-columns: repeat(8, 1fr); }
  .bs-track { grid-auto-columns: 31.5%; }
  .banner-strip { margin-top: -26px; }
  .trust { grid-template-columns: repeat(4, 1fr); padding: 28px; }
  .detail-cols { grid-template-columns: 1.5fr 1fr; }
  .form-layout { grid-template-columns: 1fr 1.1fr; }
  .info-grid { grid-template-columns: repeat(4, 1fr); }
  .gal { grid-template-columns: repeat(3, 1fr); }
  .site-footer { padding-bottom: 40px; }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .filter-bar { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .filter-search { width: 280px; }
}
@media (min-width: 1024px) {
  .hd-phone { display: inline-flex; }
  .dt-title { font-size: 30px; }
  .sec-title { font-size: 26px; }
}

/* ---------- 表单校验抖动 ---------- */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.shake { animation: shake .38s ease; }

/* ============================================================
   v2 新增：右侧栏 / 会员中心 / 考证资料付费 / 验证码 / 省市区
   ============================================================ */

/* ---------- PC 端右侧栏 ---------- */
.detail-layout, .list-layout { display: block; }
.dl-main, .ll-main { min-width: 0; }
.side-bar { display: none; }
@media (min-width: 1000px) {
  .detail-layout.with-side,
  .list-layout.with-side {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 26px;
    align-items: start;
  }
  .dl-side, .ll-side { position: sticky; top: 78px; }
  .side-bar { display: block; }
  .detail-layout.with-side .dl-side > .form-panel { margin-bottom: 18px; }
}
.sb-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 16px 18px;
  margin-bottom: 16px; box-shadow: 0 4px 16px rgba(15, 32, 58, .04);
}
.sb-title {
  font-size: 14.5px; font-weight: 700; color: var(--brand);
  padding-left: 10px; border-left: 3px solid var(--accent);
  margin-bottom: 12px; line-height: 1.2;
}
.sb-phone { display: block; font-size: 19px; font-weight: 800; color: var(--brand); margin-bottom: 6px; }
.sb-muted { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.sb-wechat { font-size: 13px; margin-bottom: 10px; }
.sb-list { list-style: none; }
.sb-list li {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 7px 0; border-bottom: 1px dashed var(--line);
  font-size: 13.5px; line-height: 1.5;
}
.sb-list li:last-child { border-bottom: 0; }
.sb-list a { flex: 1; color: var(--txt); transition: color .18s; }
.sb-list a:hover { color: var(--accent); }
.sb-rank {
  flex: none; width: 18px; height: 18px; border-radius: 5px;
  background: var(--bg); color: var(--muted);
  font-size: 11px; font-weight: 700; text-align: center; line-height: 18px;
}
.sb-rank.r1 { background: linear-gradient(135deg, #E24C4C, #FF7A45); color: #fff; }
.sb-rank.r2 { background: linear-gradient(135deg, #F0932B, #F6C445); color: #fff; }
.sb-rank.r3 { background: linear-gradient(135deg, #7F8C9B, #B2BEC3); color: #fff; }
.sb-time li em { flex: none; font-style: normal; font-size: 11.5px; color: var(--muted); }
.sb-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.sb-tags a {
  font-size: 12.5px; padding: 4px 11px; border-radius: 999px;
  background: var(--bg); color: var(--muted); border: 1px solid var(--line);
}
.sb-tags a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- 考证资料卡片 ---------- */
.card-doc .doc-badge {
  position: absolute; left: 10px; top: 10px;
  width: 28px; height: 28px; border-radius: 9px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.card-doc .card-cover { position: relative; }
.price.free { color: var(--ok); }

/* ---------- 在线阅读 + 付费下载 ---------- */
.doc-reader {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; margin: 18px 0;
}
.reader-hd {
  font-weight: 700; color: var(--brand); font-size: 15px;
  padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid var(--line);
}
.pay-box {
  background: linear-gradient(180deg, var(--card), var(--bg));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px; box-shadow: var(--shadow);
}
.pay-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.pay-hd h3 { font-size: 16px; color: var(--brand); }
.pay-price { font-size: 26px; font-weight: 800; color: var(--accent); }
.pay-tip { font-size: 13px; color: var(--muted); margin-bottom: 12px; line-height: 1.8; }
.pay-method { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; margin-right: 16px; }
.pay-qr-row { margin: 4px 0 10px; }
.pay-qr-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.pay-qr-box {
  background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 12px; text-align: center;
}
.pay-qr-box img { width: 100%; max-width: 190px; margin: 0 auto 8px; border-radius: 8px; }
.pay-qr-box span { font-size: 12px; color: var(--muted); }
.qr-empty { padding: 26px 8px; font-size: 12px; color: var(--muted); background: var(--bg); border-radius: 8px; }
.pay-form .a-field { margin-bottom: 10px; }
.pay-done {
  background: rgba(46, 158, 107, .10); border: 1px solid rgba(46, 158, 107, .3);
  color: #1F7A50; padding: 12px 14px; border-radius: 10px; font-size: 13.5px; margin-bottom: 12px;
}
.pay-done.wait { background: rgba(201, 162, 39, .12); border-color: rgba(201, 162, 39, .35); color: #8A6D13; }
.pay-box .btn-block { margin-bottom: 8px; }

/* ---------- 验证码 ---------- */
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-row input { flex: 1; min-width: 0; }

/* ---------- 省市区三级联动 ---------- */
.region-cascade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.region-cascade select { padding-left: 12px; padding-right: 30px; background-position: right 11px center; }
.region-cascade select:disabled { background: var(--tint); color: var(--muted); cursor: not-allowed; }
.region-cascade optgroup { font-style: normal; }
.region-cascade optgroup[hidden] { display: none; }
@media (max-width: 480px) {
  .region-cascade { grid-template-columns: 1fr; }
}

/* ---------- 会员中心 ---------- */
.member-wrap { padding: 26px 16px 60px; }
.page-title { font-size: 24px; color: var(--brand); margin-bottom: 18px; }
.auth-card {
  max-width: 460px; margin: 0 auto; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow);
}
.auth-hint { font-size: 13px; color: var(--muted); margin-bottom: 16px; line-height: 1.7; }
.auth-card .a-field, .member-card .a-field { margin-bottom: 13px; }
.auth-card .a-btn { margin-right: 8px; margin-top: 4px; }
.member-top {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; border-radius: var(--radius-lg); padding: 18px 20px; margin-bottom: 16px;
}
.mt-avatar {
  width: 48px; height: 48px; border-radius: 14px; flex: none;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: var(--brand); font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.mt-account { font-size: 16px; }
.mt-meta { font-size: 12.5px; opacity: .78; margin-top: 2px; }
.mt-logout { margin-left: auto; font-size: 13px; opacity: .85; }
.member-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.member-tabs a {
  padding: 7px 16px; border-radius: 999px; font-size: 13.5px;
  background: var(--card); border: 1px solid var(--line); color: var(--muted);
}
.member-tabs a.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.member-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; line-height: 2;
}
.block-title { font-size: 16px; color: var(--brand); margin-bottom: 12px; }
.dl-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.dl-name { font-weight: 600; flex: 1; min-width: 200px; }
.dl-link {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--brand); font-weight: 700; font-size: 13px;
  padding: 7px 16px; border-radius: 999px;
}
.a-empty { padding: 28px 10px; text-align: center; color: var(--muted); font-size: 13.5px; }
.alert-err {
  background: rgba(214, 69, 69, .1); border: 1px solid rgba(214, 69, 69, .3);
  color: #A53232; padding: 10px 14px; border-radius: 10px; margin-bottom: 12px; font-size: 13.5px;
}

/* ---------- 强制复制账号弹层 ---------- */
.acc-modal {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(11, 22, 40, .62);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.acc-box {
  background: #fff; border-radius: 18px; padding: 26px 24px;
  width: 100%; max-width: 400px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
  animation: accIn .32s cubic-bezier(.34, 1.4, .64, 1);
}
@keyframes accIn { from { transform: translateY(18px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.acc-hd { font-size: 18px; font-weight: 800; color: var(--brand); margin-bottom: 8px; }
.acc-tip { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.acc-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.acc-label { flex: none; width: 38px; font-size: 13px; color: var(--muted); }
.acc-input {
  flex: 1; min-width: 0;
  padding: 10px 14px; font-weight: 700; font-size: 15px; letter-spacing: 1px;
  color: var(--brand);
  background: var(--field-bg, var(--bg));
  border: 1px solid var(--line);
  border-radius: var(--field-radius, 14px);
  outline: none;
}
.acc-copy {
  flex: none; border: 1px solid var(--accent); background: #fff; color: var(--accent);
  border-radius: 10px; padding: 8px 14px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.acc-copy:hover { background: var(--accent); color: #fff; }
.acc-go {
  display: block; text-align: center; margin-top: 16px; padding: 12px;
  border-radius: 12px; font-weight: 700; color: var(--brand);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

/* ============================================================
   前台通用表单组件（.a-field / .a-btn / .a-alert / .a-table）
   —— 会员登录、资料购买等页面直接复用后台组件类名，
   前台样式表里原先没有定义，导致这些控件是浏览器默认外观。
   ============================================================ */
.a-field { margin-bottom: 14px; }
.a-field label {
  display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px;
}
.a-form { max-width: 100%; }
.a-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 46px; padding: 0 24px; border: none; border-radius: 999px;
  font-size: 14.5px; font-weight: 700; letter-spacing: .5px; cursor: pointer;
  background: var(--brand); color: #fff; transition: .2s; white-space: nowrap;
}
.a-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(11, 31, 58, .18); }
.a-btn.gold {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--brand); box-shadow: 0 8px 20px rgba(201, 162, 39, .28);
}
.a-btn.gold:hover { box-shadow: 0 12px 28px rgba(201, 162, 39, .38); }
.a-btn.line {
  background: transparent; border: 1px solid var(--line); color: var(--txt);
}
.a-btn.line:hover { border-color: var(--accent); color: var(--accent); }
.a-btn-block { width: 100%; }
.a-alert {
  padding: 12px 16px; border-radius: 12px; margin-bottom: 16px;
  font-size: 13.5px; line-height: 1.7;
}
.a-alert.ok { background: rgba(46, 158, 107, .1); color: #1F7A50; border: 1px solid rgba(46, 158, 107, .28); }
.a-alert.err { background: rgba(214, 69, 69, .1); color: #A53232; border: 1px solid rgba(214, 69, 69, .28); }
.a-alert.warn { background: rgba(201, 162, 39, .12); color: #8A6D13; border: 1px solid rgba(201, 162, 39, .32); }
.a-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.a-table th, .a-table td {
  padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line);
}
.a-table th {
  color: var(--muted); font-weight: 600; background: var(--tint);
  white-space: nowrap;
}
.a-table tbody tr:hover td { background: var(--tint); }
.a-table tbody tr:last-child td { border-bottom: none; }

/* ---------- 详情页 / 列表页在窄屏保持单列 ---------- */
@media (min-width: 1000px) {
  .list-layout.with-side .ll-side { display: block; }
}
