/* ============================================================
   合缘堂 · 前台门户样式
   设计基准：合缘堂网站重设计规范 V1.0（东方雅致 · 暖米金）
   宣纸米底 / 朱红印章 / 描金点缀 / 楷体标题 / 宋体正文
   ============================================================ */
:root {
  /* ---------- 新设计令牌（规范 V1.0） ---------- */
  --paper: #f6efe2;   /* 宣纸米底 */
  --paper2: #fbf6ec;  /* 卡片纸面 */
  --paper3: #efe6d2;  /* 更深纸面 */
  --ink: #2c241c;     /* 主墨色 */
  --ink2: #5a4c3c;    /* 次要墨色 */
  --ink3: #8a7357;    /* 弱化墨色 */
  --red: #9d3323;     /* 朱红 */
  --red2: #b8432d;    /* 亮朱红 */
  --red-dark: #7a2418;/* 深朱红 */
  --gold: #a8862f;    /* 描金 */
  --gold2: #c9a961;   /* 亮描金 */
  --gold-lt: #e2cf9e; /* 浅描金 */
  --green: #3f7a4e;
  --line: #e3d7bd;    /* 分隔线 */
  --line2: #d9c9ad;   /* 更实分隔线 */
  --shadow-s: 0 1px 3px rgba(70,48,26,.10);
  --shadow-m: 0 6px 18px rgba(70,48,26,.12);
  --shadow-l: 0 -8px 34px rgba(70,48,26,.18), 0 12px 40px rgba(70,48,26,.16);
  --r-s: 6px;
  --r-m: 12px;
  --r-l: 18px;
  --r-xl: 24px;
  --kai: "楷体","KaiTi","STKaiti","华文楷体",serif;
  --serif: "宋体","SimSun","Songti SC","STSong",serif;
  --sans: "微软雅黑","Microsoft YaHei","PingFang SC","Helvetica Neue",Arial,sans-serif;

  /* ---------- 旧变量名别名（master/member/order/question/form/message.css 引用，值已换为新色系） ---------- */
  --gold-dark: #8c6a1f;
  --brown: var(--ink);
  --brown-light: var(--ink2);
  --bg: var(--paper);
  --bg-card: var(--paper2);
  --muted: var(--ink3);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background:
    radial-gradient(1000px 420px at 85% -80px, rgba(200,169,97,.14), transparent 62%),
    radial-gradient(900px 380px at 8% -40px, rgba(157,51,35,.09), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* ============================================================
   顶部导航（规范 P01 头部）· 象牙底横条 + 朱红方印 + 激活下划线
   ============================================================ */
.site-header {
  background: linear-gradient(180deg, #fffdf6, #f8f1e1);
  border-bottom: 1px solid var(--line2);
  box-shadow: 0 2px 14px rgba(70,48,26,.06);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--kai); font-size: 20px; letter-spacing: 3px; color: var(--ink); font-weight: 700; flex-shrink: 0; }
.brand-seal {
  width: 42px; height: 42px; line-height: 42px; text-align: center; border-radius: 10px;
  background: linear-gradient(145deg, var(--red2), var(--red-dark));
  color: #f7ecd7; font-size: 21px; font-weight: 700;
  box-shadow: inset 0 0 0 2px rgba(231,207,158,.55), 0 3px 8px rgba(122,36,24,.32);
}
.brand-name { font-weight: 700; }
.main-nav { display: flex; flex-wrap: wrap; gap: 2px; }
.main-nav a {
  display: block; padding: 8px 13px; color: var(--ink2);
  font-size: 15px; letter-spacing: 2px; border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.main-nav a:hover { color: var(--red); }
.main-nav a.active { color: var(--red); border-bottom-color: var(--red); font-weight: 600; }
.auth-bar { display: flex; align-items: center; gap: 8px; margin-left: 16px; white-space: nowrap; }
.auth-hello { color: var(--ink); font-size: 13px; letter-spacing: 1px; font-weight: 600; }
.auth-link {
  color: var(--ink2); font-size: 13px; padding: 4px 13px; border: 1px solid var(--line2);
  border-radius: 999px; background: #fff; transition: all .2s;
}
.auth-link:hover { border-color: var(--gold2); color: var(--red); background: #fdf9ef; }
.auth-link-primary {
  background: linear-gradient(145deg, var(--red2), var(--red-dark));
  border-color: transparent; color: #fff; box-shadow: 0 3px 8px rgba(122,36,24,.28);
}
.auth-link-primary:hover { color: #fff; border-color: transparent; opacity: .92; }
.logout-form { display: inline; margin: 0; padding: 0; }
.logout-btn { appearance: none; -webkit-appearance: none; background: none; margin: 0; font: inherit; color: inherit; cursor: pointer; }

/* ============================================================
   移动端底栏（≤768px 显示）· 四入口
   ============================================================ */
.m-tabbar { display: none; }
@media (max-width: 768px) {
  body { padding-bottom: 58px; }
  .m-tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    height: 56px; background: rgba(255,253,246,.97); border-top: 1px solid var(--line2);
    box-shadow: 0 -4px 16px rgba(70,48,26,.10); backdrop-filter: blur(6px);
  }
  .m-tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; font-size: 11px; letter-spacing: 1px; color: var(--ink3);
  }
  .m-tabbar a .t-ic { font-size: 18px; line-height: 1; }
  .m-tabbar a.active, .m-tabbar a:active { color: var(--red); }
}

/* ============================================================
   通用卡片 / 栏目标题（规范 P01 区块）
   ============================================================ */
.card { background: var(--paper2); border: 1px solid var(--line); border-radius: var(--r-l); padding: 22px; box-shadow: var(--shadow-s); }
.section-title {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.section-title h2 {
  font-family: var(--kai); font-size: 20px; letter-spacing: 3px; color: var(--ink);
  padding-left: 12px; position: relative;
}
.section-title h2::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px;
  border-radius: 2px; background: linear-gradient(180deg, var(--gold2), var(--gold));
}
.section-title .more { margin-left: auto; font-size: 13px; color: var(--ink3); }
.section-title .more:hover { color: var(--red); }

/* ============================================================
   首页满屏栏目大图轮播（规范 P01 升级）
   ============================================================ */
.hero-banners {
  position: relative;
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  scrollbar-width: none; -ms-overflow-style: none;
  border-bottom: 1px solid var(--line2);
}
.hero-banners::-webkit-scrollbar { display: none; }
.hero-slide {
  flex: 0 0 100%; width: 100%; height: min(70vh, 520px); min-height: 320px;
  scroll-snap-align: start; scroll-snap-stop: always;
  background-size: cover; background-position: center; position: relative;
  display: flex; align-items: center; justify-content: center;
}
/* 未配置栏目图时的内置色板兜底（东方雅致渐变） */
.hero-slide.theme-a {
  background:
    radial-gradient(720px 260px at 18% 0%, rgba(200,169,97,.30), transparent 62%),
    radial-gradient(760px 300px at 82% 12%, rgba(157,51,35,.16), transparent 60%),
    linear-gradient(160deg, #8f2f21, #9d3323 58%, #7a2418);
}
.hero-slide.theme-1 {
  background: linear-gradient(160deg, #2e5d47, #3f7a4e 62%, #28503a);
}
.hero-slide.theme-2 {
  background: linear-gradient(160deg, #6b5420, #a8862f 62%, #5c4718);
}
.hero-slide.theme-0 {
  background: linear-gradient(160deg, #3a2c64, #5a4894 62%, #322654);
}
.hero-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fdf3e0; padding: 30px 18px;
  background: linear-gradient(180deg, rgba(30,20,12,.12), rgba(30,20,12,.42));
  text-shadow: 0 1px 3px rgba(0,0,0,.35);
}
.hero-brand { max-width: 720px; }
.hero-overlay .seal {
  width: 88px; height: 88px; line-height: 88px; margin: 0 auto 20px; font-size: 42px;
  color: #f7ecd7; background: linear-gradient(145deg, rgba(230,190,130,.25), rgba(255,244,228,.12));
  border: 1.5px solid rgba(231,207,158,.65); border-radius: 18px; font-family: var(--kai); font-weight: 700;
  box-shadow: inset 0 0 0 2px rgba(231,207,158,.35), 0 10px 26px rgba(0,0,0,.28);
  backdrop-filter: blur(1px);
}
.hero-overlay h1 { font-family: var(--kai); font-size: 38px; font-weight: 700; letter-spacing: 14px; margin-bottom: 12px; background: linear-gradient(180deg,#fff6e2,#f0d9ae); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-overlay h2 { font-family: var(--kai); font-size: 34px; font-weight: 700; letter-spacing: 12px; margin-bottom: 12px; }
.hero-overlay p { font-size: 15px; color: #f0ddc0; letter-spacing: 3px; max-width: 640px; line-height: 1.9; }
.hero-cta { display: flex; justify-content: center; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-cta a {
  display: inline-block; font-size: 15px; letter-spacing: 4px; padding: 11px 34px; border-radius: 999px;
  transition: all .2s; text-shadow: none;
}
.hero-cta .cta-primary { background: linear-gradient(145deg, var(--red2), var(--red-dark)); color: #fff; box-shadow: 0 6px 16px rgba(122,36,24,.3); }
.hero-cta .cta-primary:hover { opacity: .92; transform: translateY(-2px); }
.hero-cta .cta-ghost { border: 1px solid #e2cf9e; color: #fdf3e0; background: rgba(255,253,246,.14); backdrop-filter: blur(2px); }
.hero-cta .cta-ghost:hover { background: rgba(255,253,246,.28); transform: translateY(-2px); }
.hero-more-btn {
  display: inline-block; margin-top: 22px;
  font-size: 14px; letter-spacing: 4px; padding: 10px 30px; border-radius: 999px;
  border: 1px solid #e2cf9e; color: #fdf3e0; background: rgba(0,0,0,.18); backdrop-filter: blur(2px);
  transition: all .2s;
}
.hero-more-btn:hover { background: linear-gradient(145deg, var(--red2), var(--red-dark)); border-color: transparent; transform: translateY(-2px); }
.hero-dots { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.hero-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; transition: all .25s; }
.hero-dots i.on { background: #fdf3e0; width: 22px; border-radius: 5px; }

/* ============================================================
   服务工具入口（规范 P01 服务入口宫格）
   ============================================================ */
.entry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.entry-card {
  display: block; text-align: center; padding: 22px 12px 20px;
  background: linear-gradient(180deg, #fffdf8, #fbf4e6);
  border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow-s);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.entry-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: var(--gold2); }
.entry-card .icon {
  width: 46px; height: 46px; line-height: 46px; margin: 0 auto 10px; border-radius: 12px;
  background: linear-gradient(180deg, #f6ead2, #efdfbc); border: 1px solid var(--line2);
  color: var(--ink2); font-size: 22px; box-shadow: inset 0 1px 2px rgba(255,255,255,.8);
}
.entry-card .name { margin-top: 4px; font-size: 14.5px; letter-spacing: 3px; color: var(--ink); font-weight: 600; }
.entry-card .desc { margin-top: 4px; font-size: 11.5px; color: var(--ink3); }

/* ============================================================
   文章列表
   ============================================================ */
.article-list .item {
  display: flex; align-items: baseline; gap: 12px; padding: 11px 4px;
  border-bottom: 1px dashed var(--line2);
}
.article-list .item:last-child { border-bottom: none; }
.article-list .item .t {
  flex: 1; font-size: 15px; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: color .2s;
}
.article-list .item .t:hover { color: var(--red); }
.article-list .item .time { font-size: 12px; color: var(--ink3); flex-shrink: 0; }
.article-list .item .sum { flex-basis: 100%; margin-left: 0; color: var(--ink3); font-size: 12.5px; }

/* ============================================================
   面包屑
   ============================================================ */
.crumbs { padding: 16px 0 6px; font-size: 13px; color: var(--ink3); }
.crumbs a:hover { color: var(--red); }
.crumbs .sep { margin: 0 6px; color: var(--gold2); }

/* ============================================================
   栏目页满屏大图（规范 P05 升级）· 通栏 banner + 渐变兜底
   ============================================================ */
/* ============================================================
   栏目页满屏大图（规范 P05 升级）· 通栏 banner + 渐变兜底 + 传统纹样装饰
   ============================================================ */
.cat-banner {
  position: relative; overflow: hidden;
  margin: 12px calc(50% - 50vw) 20px; width: 100vw;
  height: min(38vh, 320px); min-height: 220px;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse 80% 50% at 50% 120%, rgba(231,207,158,.12), transparent 70%),
    radial-gradient(620px 220px at 80% 0%, rgba(200,169,97,.26), transparent 62%),
    linear-gradient(160deg, #8f2f21, #9d3323 58%, #7a2418);
  background-size: cover; background-position: center;
  border-bottom: 1px solid var(--line2);
  box-shadow: inset 0 -20px 40px rgba(44,24,16,.15);
}
/* 背景光斑 + 渐变遮罩 */
.cat-banner::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(231,207,158,.08) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(200,169,97,.1) 0%, transparent 45%),
    linear-gradient(180deg, rgba(30,20,12,.04), rgba(30,20,12,.35));
  pointer-events: none;
}
/* 四角装饰框 */
.cat-banner::after {
  content: "";
  position: absolute;
  left: 5%; right: 5%;
  top: 12%; bottom: 12%;
  border: 1px solid rgba(231,207,158,.18);
  border-radius: 4px;
  pointer-events: none;
}
/* 角落小纹样装饰（左下、右上） */
.cat-banner .corner-deco {
  position: absolute;
  width: 48px; height: 48px;
  pointer-events: none; z-index: 1;
  opacity: .35;
}
.cat-banner .corner-deco.lt { left: 16px; bottom: 16px; border-left: 2px solid rgba(231,207,158,.5); border-bottom: 2px solid rgba(231,207,158,.5); border-radius: 0 0 0 6px; }
.cat-banner .corner-deco.rt { right: 16px; top: 16px; border-right: 2px solid rgba(231,207,158,.5); border-top: 2px solid rgba(231,207,158,.5); border-radius: 0 6px 0 0; }

.cat-banner-inner { position: relative; text-align: center; color: #fdf3e0; padding: 24px 18px; max-width: 820px; z-index: 2; }
.cat-banner h1 {
  font-family: var(--kai); font-size: 32px; font-weight: 700; letter-spacing: 10px;
  text-shadow: 0 1px 3px rgba(0,0,0,.35);
  position: relative; display: inline-block;
  padding-bottom: 14px;
}
/* 标题下方金色描金装饰线 */
.cat-banner h1::after {
  content: "";
  position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 60px; height: 2px;
  background: linear-gradient(90deg, transparent, #e2cf9e, transparent);
  opacity: .85;
}
/* 小印章装饰 */
.cat-banner .banner-seal {
  display: inline-block;
  width: 36px; height: 36px; line-height: 36px;
  border: 1.5px solid rgba(231,207,158,.55);
  border-radius: 4px;
  font-family: var(--kai); font-size: 18px; color: rgba(247,236,215,.8);
  margin-bottom: 10px;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
  box-shadow: inset 0 0 0 1px rgba(231,207,158,.25);
}
.cat-banner p { margin-top: 12px; font-size: 14px; color: #f0ddc0; letter-spacing: 2px; line-height: 1.9; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
@media (max-width: 768px) {
  .cat-banner { height: 32vh; min-height: 200px; }
  .cat-banner h1 { font-size: 24px; letter-spacing: 6px; }
  .cat-banner p { font-size: 13px; }
}

/* ============================================================
   栏目页（规范 P05）· 侧栏 + 内容
   ============================================================ */
.cat-grid { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.side-nav .card { padding: 16px 18px; box-shadow: var(--shadow-s); }
.side-nav h3 {
  font-family: var(--kai); font-size: 16px; letter-spacing: 3px; margin-bottom: 10px;
  border-bottom: 1px solid var(--line); padding-bottom: 8px; color: var(--ink);
}
.side-nav a { display: block; padding: 7px 4px 7px 10px; color: var(--ink2); font-size: 14px; border-left: 3px solid transparent; transition: all .2s; }
.side-nav a:hover { color: var(--red); border-left-color: var(--gold2); }
.side-nav a.active { color: var(--red); font-weight: 600; border-left-color: var(--red); }
.cat-intro { color: var(--ink2); font-size: 14px; line-height: 1.9; }

/* ============================================================
   内容详情页（规范 P06）· 楷体标题 + 宋体正文
   ============================================================ */
.content-head { text-align: center; padding: 6px 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.content-head h1 { font-family: var(--kai); font-size: 26px; letter-spacing: 3px; color: var(--ink); }
.content-meta { margin-top: 10px; font-size: 12.5px; color: var(--ink3); }
.content-meta span { margin: 0 8px; }
.content-body { font-family: var(--serif); font-size: 15.5px; line-height: 2.1; color: var(--ink); }
.content-body p { margin: 12px 0; text-align: justify; }
.content-body h2, .content-body h3 { font-family: var(--kai); margin: 24px 0 10px; color: var(--ink); letter-spacing: 2px; }
.content-body blockquote { border-left: 3px solid var(--gold2); background: var(--paper2); padding: 8px 14px; color: var(--ink2); border-radius: 0 8px 8px 0; }
.content-body img { border-radius: var(--r-m); border: 1px solid var(--line); }
.pager { display: flex; justify-content: space-between; margin-top: 22px; font-size: 14px; }
.pager a:hover { color: var(--red); }
.related { margin-top: 24px; }
.related .item { padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.related .item:hover { color: var(--red); }

/* ============================================================
   分页（ThinkPHP 分页 HTML，规范 P05 朱红小方章 · 横向数字）
   适配 ThinkPHP 6 Bootstrap 分页 ul.pagination > li 结构，
   确保页码横向排列为数字按钮，不被 li 默认块级影响纵排。
   ============================================================ */
.pagination { margin: 22px 0 8px; text-align: center; padding: 0; list-style: none; }
.pagination li { display: inline-block; margin: 0 3px; }
.pagination a, .pagination span, .pagination li > span, .pagination li > a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 30px; padding: 0 9px;
  border: 1px solid var(--line2); border-radius: 8px; background: #fff; font-size: 13px; color: var(--ink2);
}
.pagination .current, .pagination .active span, .pagination li.active > span {
  background: var(--red); color: #fff; border-color: var(--red); box-shadow: 0 3px 8px rgba(122,36,24,.24); font-weight: 600;
}
.pagination .disabled span, .pagination li.disabled > span { opacity: .5; pointer-events: none; }
.pagination a:hover, .pagination li > a:hover { border-color: var(--red); color: var(--red); }

/* ============================================================
   返回上一页按钮（全站公共：footer 前居左，移动端铺满）
   ============================================================ */
.back-bar { padding: 22px 0 0; }
.btn-back {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 22px; cursor: pointer;
  border: 1px solid var(--line2); border-radius: 999px;
  background: linear-gradient(180deg, #fffdf8, #f6ecd9); color: var(--red-dark);
  font-family: var(--kai); font-size: 14px; letter-spacing: 2px;
  box-shadow: 0 2px 8px rgba(70,48,26,.08);
  transition: all .2s;
}
.btn-back:hover { border-color: var(--red); color: #fff; background: linear-gradient(145deg, var(--red2), var(--red-dark)); transform: translateX(-2px); }

/* ============================================================
   搜索
   ============================================================ */
.search-box { display: flex; gap: 8px; max-width: 560px; margin: 0 auto 8px; }
.search-box input {
  flex: 1; padding: 10px 16px; border: 1px solid var(--line2); border-radius: 999px; font-size: 14px; outline: none;
  background: #fff; color: var(--ink);
}
.search-box input:focus { border-color: var(--gold2); box-shadow: 0 0 0 3px rgba(200,169,97,.18); }
.search-box button {
  padding: 10px 26px; border: none; border-radius: 999px;
  background: linear-gradient(145deg, var(--red2), var(--red-dark)); color: #fff;
  font-size: 14px; cursor: pointer; box-shadow: 0 3px 8px rgba(122,36,24,.28);
}
.search-box button:hover { opacity: .92; }
.search-tip { text-align: center; color: var(--ink3); font-size: 13px; padding: 30px 0; }

/* ============================================================
   页脚（规范 P01/全站）· 象牙底 + 描金分隔
   ============================================================ */
.site-footer {
  margin-top: 48px; background: linear-gradient(180deg, #f7efdf, #efe5d0);
  border-top: 1px solid var(--line2); color: var(--ink2);
  padding: 28px 0; text-align: center; font-size: 13px;
}
.site-footer a { color: var(--red); }
.site-footer a:hover { text-decoration: underline; }
.site-footer .row { margin: 4px 0; letter-spacing: 1px; }

/* ============================================================
   登录 / 注册 / 忘记密码（规范 P12）· 纸面小卡 + 朱红主按钮
   ============================================================ */
.auth-wrap { display: flex; justify-content: center; padding: 56px 16px 76px; }
.auth-card {
  width: 100%; max-width: 460px;
  background: linear-gradient(180deg, #fffdf8, #fbf4e6);
  border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 34px 36px 30px; box-shadow: var(--shadow-m);
}
.auth-title { text-align: center; font-family: var(--kai); font-size: 24px; letter-spacing: 6px; color: var(--ink); margin-bottom: 6px; }
.auth-sub { text-align: center; color: var(--ink3); font-size: 13px; margin-bottom: 22px; }
.form-item { margin-bottom: 16px; }
.form-item label { display: block; font-size: 13px; color: var(--ink2); margin-bottom: 6px; }
.form-item label em { color: var(--red); font-style: normal; }
.form-input {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line2);
  border-radius: 8px; background: #fff; font-size: 14px; color: var(--ink); outline: none;
}
.form-input:focus { border-color: var(--gold2); box-shadow: 0 0 0 3px rgba(200,169,97,.18); }
.captcha-row { display: flex; gap: 10px; }
.captcha-row .form-input { flex: 1; }
.captcha-img { height: 42px; width: 120px; border-radius: 8px; border: 1px solid var(--line2); cursor: pointer; background: var(--paper3); }
.form-item-opt { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-top: 4px; }
.opt-check { display: flex; align-items: center; gap: 6px; color: var(--ink2); cursor: pointer; }
.opt-link { color: var(--red); }
.opt-link:hover { text-decoration: underline; }
/* 注册协议勾选 */
.agree-item { margin-bottom: 18px; }
.agree-label { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--ink2);
  line-height: 1.7; cursor: pointer; }
.agree-label input[type=checkbox] { margin-top: 3px; accent-color: var(--red); width: 15px; height: 15px; }
.agree-label a { color: var(--red); text-decoration: underline; }
.btn-auth {
  width: 100%; height: 44px; border: none; border-radius: 10px;
  background: linear-gradient(145deg, var(--red2), var(--red-dark)); color: #fff;
  font-size: 16px; letter-spacing: 8px; cursor: pointer; box-shadow: 0 4px 12px rgba(122,36,24,.28);
}
.btn-auth:hover { opacity: .92; }
.auth-foot { text-align: center; margin-top: 16px; font-size: 13px; color: var(--ink3); }
.auth-foot a { color: var(--red); }
.auth-msg { margin-top: 12px; text-align: center; font-size: 13px; color: var(--ink3); min-height: 20px; }
.auth-msg-error { color: var(--red); }
.auth-msg-ok { color: var(--green); }
.role-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.role-tab {
  flex: 1; min-width: 82px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--paper2); color: var(--ink2); cursor: pointer; font-size: 13px; text-align: center; transition: all .2s;
}
.role-tab.active { border-color: var(--gold2); background: rgba(200,169,97,.14); color: var(--red-dark); font-weight: 600; }
.forgot-tip { font-size: 14px; color: var(--ink); line-height: 2; }
.forgot-tip ul { padding-left: 20px; }
.forgot-tip a { color: var(--red); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1100px) {
  .entry-grid { grid-template-columns: repeat(auto-fit, minmax(136px, 1fr)); }
}
@media (max-width: 900px) {
  .main-nav a { padding: 8px 9px; font-size: 14px; }
  .cat-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; letter-spacing: 10px; }
  .content-head h1 { font-size: 21px; }
}
@media (max-width: 768px) {
  .header-inner { height: 56px; }
  .main-nav { display: none; }
  .auth-hello { display: none; }
  .auth-bar { gap: 6px; }
  .auth-link { padding: 4px 10px; font-size: 12.5px; }
  .hero-slide { height: 52vh; min-height: 300px; }
  .hero-overlay .seal { width: 62px; height: 62px; line-height: 62px; font-size: 30px; border-radius: 14px; }
  .hero-overlay h1 { font-size: 24px; letter-spacing: 8px; }
  .hero-overlay h2 { font-size: 24px; letter-spacing: 6px; }
  .hero-overlay p { font-size: 13px; letter-spacing: 1.5px; }
  .hero-cta a { padding: 10px 24px; font-size: 14px; }
  .section-title h2 { font-size: 18px; }
  .auth-card { padding: 26px 22px 24px; }
  .back-bar { text-align: center; }
  .cat-banner { height: 32vh; min-height: 200px; }
}
@media (max-width: 480px) {
  .hero-slide { height: 44vh; min-height: 252px; }
  .hero-overlay .seal { width: 50px; height: 50px; line-height: 50px; font-size: 26px; border-radius: 12px; }
  .hero-overlay h1 { font-size: 21px; letter-spacing: 5px; }
  .hero-overlay h2 { font-size: 19px; letter-spacing: 4px; }
  .hero-overlay p { font-size: 12px; letter-spacing: 1px; }
  .hero-cta { gap: 10px; }
  .hero-cta a { padding: 9px 18px; font-size: 13px; letter-spacing: 1px; }
  .cat-banner { height: 28vh; min-height: 168px; }
  .cat-banner h1 { font-size: 21px; letter-spacing: 5px; }
  .cat-banner p { font-size: 12px; letter-spacing: 1px; }
  .lot-btn { width: 100%; max-width: none; }
  .section-title h2 { font-size: 17px; letter-spacing: 4px; }
  .content-body { padding-top: 4px; }
  .btn-back { padding: 9px 18px; font-size: 13px; }
}

/* ============================================================
   页面补充类（与 question.css / calc.css / master.css 联动）
   ============================================================ */
.qs-hero {
  background: linear-gradient(135deg, #f6ead2, #efe0ba 60%, #e2cfa0);
  border-radius: 16px; padding: 30px 28px; margin: 16px 0 20px; color: var(--brown);
}
.qs-hero h1 { font-size: 28px; letter-spacing: 8px; }
.qs-hero p { margin-top: 8px; font-size: 14px; color: var(--ink3); letter-spacing: 1px; }
.qs-hero .qs-hero-btn {
  display: inline-block; margin-top: 14px;
  background: linear-gradient(145deg, var(--red2), var(--red-dark)); color: #fff;
  font-size: 14px; letter-spacing: 3px; border-radius: 999px; padding: 9px 26px;
  transition: opacity .2s; box-shadow: 0 3px 8px rgba(122,36,24,.26);
}
.qs-hero .qs-hero-btn:hover { opacity: .9; }
.qs-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.qs-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 20px;
  background: var(--bg-card); color: var(--brown-light); font-size: 13.5px; letter-spacing: 1px;
  transition: all .2s;
}
.qs-tab em { font-style: normal; font-size: 12px; color: var(--gold-dark); background: var(--paper3); border-radius: 10px; padding: 1px 8px; }
.qs-tab:hover { border-color: var(--gold2); color: var(--gold-dark); }
.qs-tab.active { background: var(--red); border-color: var(--red); color: #fff; }
.qs-tab.active em { background: rgba(255,255,255,.25); color: #fff; }
.qs-empty {
  background: var(--bg-card); border: 1px dashed var(--line); border-radius: 12px;
  padding: 50px 20px; text-align: center; color: var(--muted); font-size: 15px; letter-spacing: 2px;
}
.qs-note { margin: 18px 0 8px; font-size: 12.5px; color: var(--muted); }
.qs-note p { text-align: center; }
.chip-ink { color: var(--ink); background: rgba(44,36,28,.05); border-color: var(--line2); }
.ms-photo-icon {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  font-size: 54px; color: #f7ecd7; font-family: var(--kai);
  background: linear-gradient(145deg, var(--red2), var(--red-dark));
}
.checkup-grid { row-gap: 30px; }