/* ============================================================
   AI 赋能研学平台 · 界面设计系统 v2
   设计语言：清新雅致 · 充满活力（青瓷绿 × 纸感暖白 × 珊瑚橙）
   规范依据：《AI研学平台_需求规格说明书_V2.8.2正式版》UI-1~UI-9
   ============================================================ */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 主色：青瓷绿（清新） */
  --b50:  #EEF9F5;
  --b100: #D8F1E8;
  --b200: #B0E3D3;
  --b300: #7BCFB8;
  --b400: #43B697;
  --b500: #219E80;   /* 主色 */
  --b600: #17866D;
  --b700: #126D59;
  --b800: #0F5949;
  --b900: #0C463A;

  /* 墨青文字 */
  --n900: #1C3230;
  --n700: #334E4B;
  --n500: #5E7A76;
  --n400: #82A09B;
  --n300: #AEC6C1;
  --n200: #D3E2DE;
  --n100: #E9F2EF;

  /* 点缀色 */
  --c500: #F76B4E;   /* 珊瑚橙：活力/6-9 启蒙 */
  --c400: #FF8A68;
  --c700: #D94F32;
  --c100: #FFE7DE;
  --y500: #F2A93B;   /* 日光黄 */
  --y100: #FCEED6;
  --s500: #3E9BE6;   /* 晴空蓝 */
  --s100: #DFF0FC;
  --v500: #7A6FF0;   /* 淡紫：13-15 思辨 */
  --v100: #E9E7FD;

  /* 语义 */
  --ok:   #1E9E6B;
  --ok-bg:#E3F5EC;
  --err:  #D64545;
  --err-bg:#FCEBEA;
  --warn: #D98A15;
  --warn-bg:#FDF4E0;

  /* 纸面 */
  --paper:#F5FAF8;
  --card:#FFFFFF;
  --cream:#FEF9EE;   /* 手账暖纸 */
  --line:  #E4EFEA;
  --line-2:#D2E4DD;

  /* 圆角 */
  --r-sm:10px; --r-md:14px; --r-lg:18px; --r-xl:24px; --r-pill:999px;

  /* 阴影 */
  --sh-sm: 0 1px 2px rgba(12,70,58,.05), 0 4px 12px -6px rgba(12,70,58,.08);
  --sh-md: 0 4px 14px -6px rgba(12,70,58,.14), 0 10px 30px -16px rgba(12,70,58,.12);
  --sh-lg: 0 14px 38px -16px rgba(12,70,58,.26), 0 6px 18px -12px rgba(12,70,58,.14);

  --grad-brand: linear-gradient(135deg, #2FB593 0%, #17866D 60%, #126D59 100%);
  --grad-sky:   linear-gradient(135deg, #4FA8EA 0%, #3E7FE0 100%);
  --grad-coral: linear-gradient(135deg, #FF9776 0%, #F76B4E 100%);
  --grad-sun:   linear-gradient(135deg, #FFC66B 0%, #F2A93B 100%);
  --grad-violet:linear-gradient(135deg, #9A8FF5 0%, #7A6FF0 100%);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei",
          "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --font-journal: "Kaiti SC", "STKaiti", "KaiTi", "楷体", var(--font);
  --topbar-h: 68px;
}

/* ---------- 2. 基础 ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--n900);
  background:
    radial-gradient(1100px 420px at 88% -120px, rgba(67,182,151,.10), transparent 60%),
    radial-gradient(900px 380px at -10% 30%, rgba(62,155,230,.06), transparent 55%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5 { color: var(--n900); line-height: 1.35; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: 30px; } h2 { font-size: 22px; } h3 { font-size: 17px; } h4 { font-size: 15px; }
p { margin: .35em 0; }
a { color: var(--b600); text-decoration: none; }
a:hover { color: var(--b700); }
img, svg, video { max-width: 100%; vertical-align: middle; }
button { font-family: inherit; }
::selection { background: rgba(33,158,128,.18); }
:focus-visible { outline: 2px solid var(--b400); outline-offset: 2px; border-radius: 6px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--n200); border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.main { min-height: 66vh; padding: 26px 0 72px; }

.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.meta { color: var(--n500); font-size: 13px; }
.muted { color: var(--n400); }
.hint { color: var(--n400); font-size: 12.5px; margin-top: 12px; line-height: 1.7; }
.empty { color: var(--n400); text-align: center; padding: 34px 12px; }
.msg { margin-top: 12px; font-size: 13.5px; color: var(--n500); min-height: 0; line-height: 1.7; }
.msg.err { color: var(--err); }
.msg.ok { color: var(--ok); }
.divider { border: 0; border-top: 1px dashed var(--n200); margin: 18px 0; }

/* ---------- 3. 徽标 / 标签 / 状态点 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600; line-height: 1.6;
  background: var(--n100); color: var(--n700); white-space: nowrap;
}
.badge .ico { font-size: 13px; }
.badge-b6  { background: var(--c100); color: var(--c700); }
.badge-b10 { background: var(--b100); color: var(--b700); }
.badge-b13 { background: var(--v100); color: #5B4FD8; }
.badge-sky { background: var(--s100); color: #2568B8; }
.badge-sun { background: var(--y100); color: #A5670F; }
.badge-ok  { background: var(--ok-bg);  color: var(--ok); }
.badge-err { background: var(--err-bg); color: var(--err); }
.badge-warn{ background: var(--warn-bg);color: var(--warn); }
.badge-ghost { background: transparent; border: 1px solid var(--n200); color: var(--n500); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* 年龄档色卡辅助 */
.b6 { --band: var(--c500); --band-deep: var(--c700); --band-soft: var(--c100); }
.b10 { --band: var(--b500); --band-deep: var(--b700); --band-soft: var(--b100); }
.b13 { --band: var(--v500); --band-deep: #5B4FD8; --band-soft: var(--v100); }

/* ---------- 4. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--r-pill);
  border: 1px solid transparent; font-size: 14.5px; font-weight: 600;
  cursor: pointer; background: none; color: var(--b600);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
  line-height: 1.5; white-space: nowrap; user-select: none; text-align: center;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary {
  background: var(--grad-brand); color: #fff; box-shadow: 0 6px 16px -8px rgba(18,109,89,.55);
}
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(18,109,89,.65); }
.btn-primary:disabled { box-shadow: none; }
.btn-ghost { background: #fff; border-color: var(--line-2); color: var(--n700); }
.btn-ghost:hover { border-color: var(--b400); color: var(--b600); background: var(--b50); }
.btn-soft { background: var(--b50); color: var(--b700); border-color: transparent; }
.btn-soft:hover { background: var(--b100); color: var(--b800); }
.btn-danger { background: #fff; border-color: #F3CFCA; color: var(--err); }
.btn-danger:hover { background: var(--err-bg); border-color: var(--err); }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-lg { padding: 12px 26px; font-size: 15.5px; }
.btn-block { width: 100%; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 0; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  font-size: 17px; color: var(--n700); transition: all .16s ease;
}
.icon-btn:hover { border-color: var(--b400); color: var(--b600); background: var(--b50); transform: translateY(-1px); }
.icon-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* 链接式按钮组 */
.link-btn { font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }

/* ---------- 5. 表单 ---------- */
.form label { display: block; margin: 14px 0 0; font-size: 13.5px; font-weight: 600; color: var(--n700); }
.form label .req { color: var(--err); margin-left: 2px; }
.form input[type="text"], .form input[type="tel"], .form input[type="password"],
.form input[type="number"], .form input[type="search"], .form input[type="email"],
.form select, .form textarea {
  width: 100%; margin-top: 6px; padding: 10px 13px;
  border: 1.5px solid var(--line-2); border-radius: 12px;
  background: #fff; color: var(--n900); font-size: 14.5px; font-family: inherit;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--b400); box-shadow: 0 0 0 4px rgba(33,158,128,.12); background: #fff;
}
.form input::placeholder, .form textarea::placeholder { color: var(--n300); }
.form textarea { resize: vertical; line-height: 1.7; }
.form select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235E7A76' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px;
}
.form input[type="radio"], .form input[type="checkbox"] { accent-color: var(--b500); width: auto; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.field-hint { font-size: 12px; color: var(--n400); margin-top: 5px; font-weight: 400; }

/* 卡片式单选项（角色/年龄段选择） */
.pick-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 6px; }
.pick-group.pick-2 { grid-template-columns: repeat(2, 1fr); }
.pick {
  position: relative; cursor: pointer; border-radius: var(--r-md);
  border: 1.5px solid var(--line-2); background: #fff; padding: 12px 12px 10px;
  text-align: center; transition: all .18s ease; overflow: hidden;
}
.pick:hover { border-color: var(--b300); transform: translateY(-2px); box-shadow: var(--sh-sm); }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick .pick-emoji { display: block; font-size: 26px; line-height: 1.2; margin-bottom: 4px; }
.pick .pick-name { display: block; font-size: 14px; font-weight: 700; color: var(--n900); }
.pick .pick-desc { display: block; font-size: 11.5px; color: var(--n400); margin-top: 3px; line-height: 1.5; }
.pick input:checked + .pick-body { }
.pick input:checked ~ .pick-check { opacity: 1; }
.pick:has(input:checked) { border-color: var(--b500); background: var(--b50); box-shadow: 0 0 0 4px rgba(33,158,128,.10); }
.pick:has(input:checked) .pick-name { color: var(--b700); }
.pick-check {
  position: absolute; top: -2px; right: -2px; width: 22px; height: 22px; border-radius: 0 0 0 12px;
  background: var(--grad-brand); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 12px; opacity: 0; transition: opacity .15s;
}
.pick input:checked + .pick-body + .pick-check, .pick input:checked ~ .pick-check { opacity: 1; }
/* :has() 兼容回退（JS 同步维护 .on） */
.pick.on { border-color: var(--b500); background: var(--b50); box-shadow: 0 0 0 4px rgba(33,158,128,.10); }
.pick.on .pick-name { color: var(--b700); }
.pick.on .pick-check { opacity: 1; }

/* 同意条款行 */
.terms { display: flex; gap: 8px; align-items: flex-start; margin: 16px 0 4px; font-size: 12.5px; color: var(--n500); line-height: 1.7; }
.terms input { margin-top: 3px; }

/* 搜索框 */
.search-bar {
  display: flex; align-items: center; gap: 8px; background: #fff;
  border: 1.5px solid var(--line-2); border-radius: var(--r-pill); padding: 6px 6px 6px 18px;
  box-shadow: var(--sh-sm); transition: border-color .2s, box-shadow .2s;
}
.search-bar:focus-within { border-color: var(--b400); box-shadow: 0 0 0 4px rgba(33,158,128,.12); }
.search-bar .search-ico { color: var(--n300); font-size: 17px; }
.search-bar input {
  flex: 1; border: 0; outline: 0; background: transparent; font-size: 15px; color: var(--n900); min-width: 0;
}
.search-bar .btn { border-radius: var(--r-pill); }

/* 验证码行 */
.captcha-row { display: flex; gap: 8px; margin-top: 6px; }
.captcha-row input { flex: 1; margin-top: 0; }
.send-code-btn { flex: 0 0 auto; margin-top: 0 !important; }

/* ---------- 6. 顶部导航 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(210,228,221,.7);
}
.topbar-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 20px; height: var(--topbar-h);
  display: flex; align-items: center; gap: 22px;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--n900); flex: 0 0 auto; }
.brand:hover { color: var(--n900); }
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px; background: var(--grad-brand);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px -8px rgba(18,109,89,.7); flex: 0 0 auto;
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text b { font-size: 17px; letter-spacing: 1px; color: var(--n900); }
.brand-text b em { font-style: normal; color: var(--b600); }
.brand-text small { font-size: 10.5px; color: var(--n400); letter-spacing: 1.5px; }

.nav { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.nav a {
  padding: 8px 13px; border-radius: var(--r-pill); color: var(--n500);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px; transition: all .15s ease;
}
.nav a:hover { color: var(--b700); background: var(--b50); }
.nav a.active { color: var(--b700); background: var(--b100); }
.topbar-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.menu-toggle { display: none; }

/* 用户芯片 */
.user-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 4px 6px 4px 5px; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--line); cursor: pointer;
  box-shadow: var(--sh-sm); margin-left: 6px; max-width: 210px;
  color: inherit; text-decoration: none;
}
a.user-chip:hover { border-color: var(--b500); box-shadow: var(--sh-md); }
.user-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #35C3A0, #17866D); color: #fff;
  font-size: 13px; font-weight: 700; overflow: hidden; letter-spacing: 0;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-chip .u-name { font-size: 13px; font-weight: 700; color: var(--n900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 96px; }
.user-chip .role-tag { font-size: 10.5px; color: var(--b700); background: var(--b50); padding: 1px 7px; border-radius: 8px; font-weight: 600; white-space: nowrap; }

/* ---------- 7. 页脚 ---------- */
.footer { margin-top: 40px; background: var(--n900); color: #AEC6C1; font-size: 13px; }
.footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 40px 20px 18px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px;
}
.footer h4 { color: #fff; font-size: 14px; margin: 0 0 12px; letter-spacing: 1px; }
.footer a { color: #AEC6C1; display: inline-flex; align-items: center; gap: 6px; padding: 3px 0; }
.footer a:hover { color: #7BCFB8; }
.footer .f-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer .f-brand .brand-mark { width: 46px; height: 46px; border-radius: 15px; }
.footer .f-brand b { font-size: 19px; color: #fff; letter-spacing: 1px; }
.footer .f-brand b em { color: #5CC9A9; font-style: normal; }
.footer p { line-height: 1.9; }
.footer .f-col { display: flex; flex-direction: column; align-items: flex-start; }
.footer .disclaimers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.footer .disclaimers span {
  font-size: 11px; padding: 3px 10px; border-radius: var(--r-pill);
  border: 1px solid rgba(174,198,193,.25); color: #8FB0AA;
}
.footer-bar {
  border-top: 1px solid rgba(174,198,193,.16); padding: 14px 20px; text-align: center;
  font-size: 12px; color: #7E9E98;
}
.footer-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- 8. Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 16px);
  background: var(--n900); color: #fff; padding: 11px 20px; border-radius: var(--r-pill);
  font-size: 14px; z-index: 120; display: flex; align-items: center; gap: 9px;
  box-shadow: var(--sh-lg); opacity: 0; transition: all .28s ease;
  max-width: min(92vw, 520px); animation: toastIn .28s forwards;
}
.toast .t-ico { font-size: 16px; }
.toast.ok { background: linear-gradient(135deg, #1E9E6B, #17866D); }
.toast.err { background: linear-gradient(135deg, #E05656, #C94040); }
@keyframes toastIn { to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes toastOut { to { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- 9. 页面头部 / Hero ---------- */
.page-head { margin: 6px 0 22px; }
.page-head .crumbs { font-size: 12.5px; color: var(--n400); margin-bottom: 6px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.page-head .crumbs a { color: var(--n400); }
.page-head h1 { font-size: 27px; margin: 0; letter-spacing: .5px; display: flex; align-items: center; gap: 10px; }
.page-head .sub { color: var(--n500); margin-top: 6px; max-width: 720px; }

.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 34px 0 16px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 20px; display: inline-flex; align-items: center; gap: 9px; letter-spacing: .4px; }
.section-head h2::before { content: ""; width: 5px; height: 20px; border-radius: 4px; background: var(--grad-brand); display: inline-block; }
.section-head .sub { color: var(--n400); font-size: 13px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700;
  letter-spacing: 2px; color: var(--b700); background: rgba(255,255,255,.92);
  border: 1px solid rgba(33,158,128,.22); padding: 5px 14px; border-radius: var(--r-pill); margin-bottom: 14px;
}

/* 首页主视觉 */
.hero-panel {
  position: relative; overflow: hidden; border-radius: 30px;
  background: var(--grad-brand); color: #fff; padding: 58px 46px 46px;
  box-shadow: var(--sh-lg); margin-top: 6px;
}
.hero-panel::before, .hero-panel::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero-panel::before { width: 340px; height: 340px; right: -90px; top: -120px; background: rgba(255,255,255,.12); }
.hero-panel::after { width: 220px; height: 220px; right: 220px; bottom: -130px; background: rgba(255,255,255,.08); }
.hero-float {
  position: absolute; font-size: 40px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.18));
  animation: floaty 6s ease-in-out infinite; pointer-events: none;
}
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(5deg); } }
.hero-panel .hero-content { position: relative; z-index: 2; max-width: 760px; }
.hero-panel .eyebrow { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); color: #EAFBF5; }
.hero-panel h1 { color: #fff; font-size: 38px; letter-spacing: 1px; margin: 0 0 14px; }
.hero-panel h1 .hl {
  background: linear-gradient(120deg, #FFE9A8, #FFC66B); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-panel p { font-size: 16px; color: rgba(255,255,255,.88); max-width: 620px; line-height: 1.9; }
.hero-stats { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-stat {
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(6px); border-radius: var(--r-md); padding: 10px 16px;
}
.hero-stat b { display: block; font-size: 21px; color: #fff; line-height: 1.3; }
.hero-stat span { font-size: 12px; color: rgba(255,255,255,.78); letter-spacing: 1px; }
@media (max-width: 860px) {
  .hero-panel { padding: 40px 24px 34px; border-radius: 22px; }
  .hero-panel h1 { font-size: 28px; }
}

/* ---------- 10. 卡片体系 ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px; box-shadow: var(--sh-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.card-grid.cards-md { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.card:hover { border-color: var(--line-2); }
.lift:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }

.card-pad-lg { padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 5px 0; font-size: 14px; }

/* 景点卡片 */
.spot-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.spot-thumb {
  height: 128px; position: relative; display: flex; align-items: center; justify-content: center;
  overflow: hidden; color: #fff; flex: 0 0 auto;
}
.spot-thumb .s-emoji { font-size: 46px; filter: drop-shadow(0 8px 14px rgba(0,0,0,.22)); }
.spot-thumb::after {
  content: ""; position: absolute; right: -40px; top: -46px; width: 150px; height: 150px;
  border-radius: 50%; background: rgba(255,255,255,.14);
}
.spot-thumb .city-pill {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  background: rgba(0,0,0,.24); backdrop-filter: blur(4px); color: #fff;
  font-size: 12px; padding: 3px 11px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 5px;
}
.spot-thumb .age-pill {
  position: absolute; right: 12px; bottom: 10px; z-index: 2;
  background: rgba(255,255,255,.92); color: var(--n700); font-size: 11.5px;
  padding: 2px 10px; border-radius: var(--r-pill); font-weight: 700;
}
/* 景点类型主题渐变 */
.t-museum      { background: linear-gradient(135deg, #147D69, #2FB593); }
.t-science     { background: var(--grad-sky); }
.t-ancient_town{ background: linear-gradient(135deg, #8A6B4F, #C59A6B); }
.t-nature      { background: linear-gradient(135deg, #2E9E6F, #6CCB8A); }
.t-theme_park  { background: var(--grad-coral); }
.t-memorial    { background: linear-gradient(135deg, #5A6472, #8A94A6); }
.t-university  { background: var(--grad-violet); }
.t-intangible  { background: var(--grad-sun); }

.spot-body { padding: 15px 18px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.spot-body h3 { margin: 0; font-size: 17.5px; display: flex; align-items: center; gap: 8px; }
.spot-features {
  color: var(--n500); font-size: 13px; line-height: 1.75; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 45px;
}
.spot-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.spot-tags span {
  font-size: 11.5px; color: var(--b700); background: var(--b50);
  border: 1px solid var(--b100); padding: 2px 9px; border-radius: var(--r-pill);
}
.spot-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.spot-meta-line { display: flex; gap: 6px; align-items: center; color: var(--n400); font-size: 12px; flex-wrap: wrap; }

/* 信息条目（详情页 kv） */
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.info-item { background: var(--b50); border: 1px solid var(--b100); border-radius: var(--r-md); padding: 13px 15px; }
.info-item .k { font-size: 12px; color: var(--n400); font-weight: 600; letter-spacing: 1px; display: flex; align-items: center; gap: 6px; }
.info-item .v { font-size: 14px; color: var(--n900); margin-top: 4px; line-height: 1.7; word-break: break-word; }
.info-item .v a { word-break: break-all; }

/* 提示条 */
.note {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 15px;
  border-radius: var(--r-md); font-size: 13px; line-height: 1.75;
}
.note .note-ico { font-size: 17px; flex: 0 0 auto; line-height: 1.4; }
.note-info { background: var(--s100); color: #245E9E; }
.note-info a { color: #1B4E8C; text-decoration: underline; }
.note-warn { background: var(--warn-bg); color: #8A5B10; }
.note-ok   { background: var(--ok-bg); color: var(--ok); }
.note-ai   { background: linear-gradient(120deg, var(--v100), var(--s100)); color: #4C44B8; }
.note-ai b { color: #4C44B8; }

/* ---------- 11. 认证页 ---------- */
.auth-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: stretch; max-width: 1040px; margin: 20px auto 0; }
.auth-showcase {
  position: relative; overflow: hidden; border-radius: 28px; padding: 44px 40px; color: #fff;
  background: var(--grad-brand); box-shadow: var(--sh-lg); display: flex; flex-direction: column;
}
.auth-showcase::before {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  right: -110px; bottom: -120px; background: rgba(255,255,255,.1);
}
.auth-showcase .eyebrow { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); color: #EAFBF5; }
.auth-showcase h1 { color: #fff; font-size: 30px; margin: 6px 0 12px; line-height: 1.4; }
.auth-showcase p { color: rgba(255,255,255,.85); font-size: 15px; line-height: 1.9; }
.auth-feats { margin-top: 30px; display: grid; gap: 14px; position: relative; z-index: 2; }
.auth-feat { display: flex; gap: 12px; align-items: flex-start; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: var(--r-md); padding: 11px 14px; backdrop-filter: blur(4px); }
.auth-feat .f-emoji { font-size: 22px; }
.auth-feat b { display: block; color: #fff; font-size: 14px; }
.auth-feat span { font-size: 12.5px; color: rgba(255,255,255,.8); }
.auth-quote { margin-top: auto; position: relative; z-index: 2; font-family: var(--font-journal); font-size: 15px; color: #EAFBF5; padding-top: 26px; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 30px 34px; box-shadow: var(--sh-md); align-self: center; }
.auth-card h2 { margin: 0 0 4px; font-size: 24px; }
.auth-card .auth-sub { color: var(--n400); font-size: 13.5px; margin-bottom: 8px; }
.auth-card .card-foot { text-align: center; color: var(--n400); font-size: 13px; margin-top: 20px; }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } .auth-showcase { display: none; } }

/* 登录方式切换 */
.auth-tabs { display: flex; background: var(--n100); border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.auth-tabs button {
  flex: 1; border: 0; background: transparent; padding: 8px 0; border-radius: 9px;
  font-size: 14px; font-weight: 600; color: var(--n500); cursor: pointer; transition: all .16s;
}
.auth-tabs button.active { background: #fff; color: var(--b700); box-shadow: var(--sh-sm); }

/* 快速体验（dev） */
.quick-login { margin-top: 22px; border-top: 1px dashed var(--n200); padding-top: 16px; }
.quick-login .ql-label { font-size: 12.5px; color: var(--n400); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.quick-login .row { gap: 8px; }

/* ---------- 12. 空状态 / 加载 ---------- */
.empty-state { text-align: center; padding: 46px 20px; }
.empty-state .empty-emoji {
  width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 24px;
  background: var(--b50); display: flex; align-items: center; justify-content: center;
  font-size: 36px; box-shadow: var(--sh-sm);
}
.empty-state h3 { margin: 0 0 6px; font-size: 17px; }
.empty-state p { color: var(--n400); font-size: 13.5px; max-width: 380px; margin: 0 auto 16px; }
.loading-line { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--n400); padding: 30px 0; font-size: 14px; }
.spinner {
  width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--b100);
  border-top-color: var(--b500); animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 13. 分段控件 / Tab ---------- */
.seg { display: inline-flex; background: var(--n100); border-radius: 14px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg .tab, .tabs .tab {
  border: 0; background: transparent; padding: 8px 18px; border-radius: 11px;
  cursor: pointer; font-size: 14px; font-weight: 600; color: var(--n500);
  display: inline-flex; align-items: center; gap: 6px; transition: all .16s ease;
}
.seg .tab:hover, .tabs .tab:hover { color: var(--b700); }
.seg .tab.active, .tabs .tab.active { background: #fff; color: var(--b700); box-shadow: var(--sh-sm); }
.tabs { display: flex; gap: 8px; margin: 14px 0; flex-wrap: wrap; }
.tabs .tab { background: #fff; border: 1px solid var(--line); box-shadow: none; }
.tabs .tab.active { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: 0 6px 14px -6px rgba(18,109,89,.5); }

/* 三阶段切换（彩色） */
.stage-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.stage-tab {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  border-radius: var(--r-md); background: #fff; border: 1.5px solid var(--line);
  cursor: pointer; font-weight: 700; font-size: 14.5px; color: var(--n500); transition: all .18s ease;
  position: relative; text-align: left;
}
.stage-tab .st-emoji { font-size: 22px; flex: 0 0 auto; }
.stage-tab .st-name { flex: 1; }
.stage-tab .st-count { font-size: 12px; font-weight: 600; background: var(--n100); color: var(--n500); border-radius: 10px; padding: 1px 9px; }
.stage-tab:hover { transform: translateY(-2px); }
.stage-tab.active { transform: translateY(-2px); box-shadow: var(--sh-md); }
.stage-tab[data-stage="pre"].active    { background: linear-gradient(135deg,#E8F6FE,#D7EEFC); border-color: #A9D4F2; color: #1F6FAE; }
.stage-tab[data-stage="during"].active { background: linear-gradient(135deg,#E7F7F0,#D5F0E5); border-color: #9BDCC5; color: var(--b700); }
.stage-tab[data-stage="post"].active   { background: linear-gradient(135deg,#FFF4E0,#FBE9C8); border-color: #F0CF92; color: #9A6300; }
.stage-tab[data-stage="pre"] .st-count    { background: rgba(31,111,174,.12); color: #1F6FAE; }
.stage-tab[data-stage="during"] .st-count { background: rgba(23,134,109,.12); color: var(--b700); }
.stage-tab[data-stage="post"] .st-count   { background: rgba(154,99,0,.12); color: #9A6300; }

/* ---------- 14. 进度 ---------- */
.progress-track { background: var(--n100); border-radius: var(--r-pill); height: 10px; overflow: hidden; }
.progress-track > i {
  display: block; height: 100%; border-radius: var(--r-pill);
  background: var(--grad-brand); transition: width .45s cubic-bezier(.25,.8,.3,1);
  position: relative;
}
.progress-track > i::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  animation: shimmer 1.8s ease-in-out infinite;
}
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.progress-label { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--n500); margin-top: 7px; }
.progress-label b { color: var(--b700); }

/* 环形进度 */
.ring-wrap { position: relative; width: 74px; height: 74px; flex: 0 0 auto; }
.ring-wrap svg { transform: rotate(-90deg); width: 74px; height: 74px; }
.ring-wrap .ring-bg { fill: none; stroke: var(--n100); stroke-width: 8; }
.ring-wrap .ring-fg { fill: none; stroke: var(--b500); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.ring-wrap .ring-num {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: var(--n900);
}
.ring-wrap.ring-ok .ring-fg { stroke: var(--ok); }
.ring-wrap.ring-warn .ring-fg { stroke: var(--y500); }

/* ---------- 15. 手册互动页 ---------- */
.handbook-layout { display: grid; grid-template-columns: 1fr 372px; gap: 20px; align-items: start; }
@media (max-width: 1000px) { .handbook-layout { grid-template-columns: 1fr; } .chat-panel { position: static !important; } }

.summary-card {
  background: linear-gradient(135deg, #fff 0%, #F3FBF7 100%);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 20px;
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
}
.summary-card .sum-main { flex: 1; min-width: 240px; }
.summary-card h2 { margin: 0 0 2px; font-size: 19px; }
.summary-card .sum-sub { color: var(--n500); font-size: 13px; }
.summary-card .sum-progress { flex: 1 1 240px; min-width: 200px; }
.summary-card .sum-right { display: flex; gap: 8px; align-items: center; }

/* 手账纸页面 */
.paper-page {
  background:
    linear-gradient(rgba(255,255,255,.6), rgba(255,255,255,.6)),
    repeating-linear-gradient(transparent 0 34px, rgba(61,142,120,.10) 34px 35px);
  background-color: var(--cream);
  border: 1px solid #F0E2BE; border-radius: var(--r-lg);
  padding: 22px 24px; box-shadow: var(--sh-sm);
}
.paper-page .page-title { font-family: var(--font-journal); font-size: 21px; color: var(--n900); margin: 0 0 2px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.paper-page .page-title .no {
  display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px;
  padding: 0 8px; border-radius: 12px; background: var(--grad-brand); color: #fff; font-size: 15px; font-family: var(--font);
}
.paper-page .page-sub { color: var(--n500); font-size: 13.5px; margin: 6px 0 14px; }
.page-intro {
  background: #fff; border-left: 4px solid var(--b400); border-radius: 0 12px 12px 0;
  padding: 10px 14px; color: var(--n700); font-size: 13.5px; margin: 12px 0; box-shadow: var(--sh-sm);
  display: flex; gap: 8px; align-items: flex-start;
}
.page-intro .pi-ico { font-size: 16px; }

.block-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 14px 16px; margin: 14px 0; box-shadow: var(--sh-sm); transition: box-shadow .16s ease, border-color .16s;
}
.block-card:hover { border-color: var(--line-2); }
.block-card .q { font-weight: 700; margin: 0 0 9px; font-size: 15px; color: var(--n900); display: flex; gap: 8px; align-items: flex-start; }
.block-card .q .q-ico { flex: 0 0 auto; }
.required-tag {
  display: inline-flex; align-items: center; font-size: 11px; color: #fff; background: var(--c500);
  border-radius: 8px; padding: 1px 8px; font-weight: 600; flex: 0 0 auto; margin-top: 2px;
}
.block-card .blk-desc { color: var(--n500); font-size: 13px; margin-bottom: 8px; }
.answer-area textarea, .answer-area input[type="text"], .answer-area input:not([type]) {
  width: 100%; border: 1.5px dashed var(--line-2); border-radius: 10px; background: #FFFEfA;
  padding: 9px 12px; font-size: 14.5px; line-height: 1.75; resize: vertical; font-family: inherit; color: var(--n900);
}
.answer-area textarea:focus, .answer-area input:focus { outline: none; border-color: var(--b400); border-style: solid; background: #fff; box-shadow: 0 0 0 4px rgba(33,158,128,.1); }
.answer-area input[type="text"], .answer-area input:not([type]) { border-style: solid; border-color: var(--line-2); }
.pick-opts { display: flex; flex-wrap: wrap; gap: 9px; margin: 4px 0; }
.pick-opts .opt {
  display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line-2);
  background: #fff; border-radius: var(--r-pill); padding: 7px 15px; font-size: 14px;
  cursor: pointer; color: var(--n700); transition: all .15s ease;
}
.pick-opts .opt:hover { border-color: var(--b300); }
.pick-opts .opt.on { background: var(--b50); border-color: var(--b500); color: var(--b700); font-weight: 600; }
.pick-opts .opt input { display: none; }
.pick-opts .opt .o-dot { width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--n300); }
.pick-opts .opt.on .o-dot { border-color: var(--b500); background: var(--b500); box-shadow: 0 0 0 3px rgba(33,158,128,.15); }

/* 星级 / 表情评价 */
.scale { display: inline-flex; gap: 8px; padding: 4px 0; }
.scale .s-item {
  font-size: 30px; line-height: 1; filter: grayscale(1) opacity(.55); cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.scale .s-item:hover { transform: scale(1.18); }
.scale .s-item.on { filter: none; transform: scale(1.08); }
.scale-stars .s-item.on { animation: pop .3s ease; }
@keyframes pop { 50% { transform: scale(1.35); } }

.pages-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 14px; }
.pg {
  min-width: 40px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; font-size: 13px; cursor: pointer; color: var(--n500); font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; transition: all .15s ease;
}
.pg:hover { border-color: var(--b300); color: var(--b700); transform: translateY(-1px); }
.pg.active { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: 0 6px 14px -6px rgba(18,109,89,.5); }
.pg .tick { font-size: 11px; }
.pg.done:not(.active) { border-color: #BCE4D5; color: var(--b700); background: #F0FAF5; }
.page-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; align-items: center; }

/* AI 研学伙伴 */
.chat-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-md); overflow: hidden; position: sticky; top: calc(var(--topbar-h) + 16px);
  display: flex; flex-direction: column; max-height: calc(100vh - var(--topbar-h) - 40px);
}
.chat-head {
  display: flex; align-items: center; gap: 11px; padding: 13px 15px;
  background: linear-gradient(120deg, #F0FBF6, #E9F5FB); border-bottom: 1px solid var(--line);
}
.ai-avatar {
  width: 42px; height: 42px; border-radius: 15px; flex: 0 0 auto;
  background: var(--grad-brand); display: flex; align-items: center; justify-content: center;
  font-size: 22px; box-shadow: 0 6px 12px -6px rgba(18,109,89,.6); position: relative;
}
.ai-avatar .live-dot {
  position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--ok); border: 2.5px solid #fff;
}
.chat-head .ch-name { font-size: 15px; font-weight: 800; color: var(--n900); display: flex; align-items: center; gap: 8px; }
.chat-head .ch-name .tag { font-size: 10px; background: rgba(33,158,128,.14); color: var(--b700); padding: 1px 8px; border-radius: 8px; letter-spacing: 1px; }
.chat-head .ch-sub { font-size: 11.5px; color: var(--n400); margin-top: 1px; }
.mute-chip {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto;
  border: 1px solid var(--line); background: #fff; border-radius: var(--r-pill);
  padding: 4px 10px; font-size: 12px; color: var(--n500); cursor: pointer; transition: all .15s;
}
.mute-chip:hover { border-color: var(--b300); }
.mute-chip.on { background: var(--n100); color: var(--n700); }
.chat-logs { overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 220px; max-height: 46vh; }
.bubble {
  max-width: 88%; padding: 9px 13px; border-radius: 15px; font-size: 13.8px;
  line-height: 1.75; white-space: pre-wrap; word-break: break-word; position: relative;
  animation: fadeUp .25s ease;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.bubble .who { display: block; font-size: 10.5px; color: var(--n300); margin-bottom: 3px; font-weight: 600; letter-spacing: 1px; }
.bubble.ai { background: var(--b50); border: 1px solid var(--b100); color: var(--n900); align-self: flex-start; border-bottom-left-radius: 5px; }
.bubble.me { background: var(--grad-brand); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; box-shadow: 0 4px 12px -6px rgba(18,109,89,.5); }
.chat-input { display: flex; gap: 7px; padding: 11px; border-top: 1px solid var(--line); background: #FBFDFC; align-items: flex-end; }
.chat-input input {
  flex: 1; min-width: 0; border: 1.5px solid var(--line-2); border-radius: 13px;
  padding: 9px 13px; font-size: 14px; outline: none; background: #fff;
}
.chat-input input:focus { border-color: var(--b400); box-shadow: 0 0 0 3px rgba(33,158,128,.12); }
.mic-btn {
  width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto; border: 0; cursor: pointer;
  background: var(--b100); color: var(--b700); font-size: 18px; transition: all .2s ease;
  display: inline-flex; align-items: center; justify-content: center;
}
.mic-btn:hover { background: var(--b200); transform: scale(1.06); }
.mic-btn.recording { background: var(--err); color: #fff; animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(214,69,69,.45); } 50% { box-shadow: 0 0 0 9px rgba(214,69,69,0); } }
.send-btn {
  border: 0; height: 42px; border-radius: 13px; padding: 0 17px; flex: 0 0 auto;
  background: var(--grad-brand); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer;
  box-shadow: 0 6px 14px -6px rgba(18,109,89,.55); transition: transform .15s;
}
.send-btn:hover { transform: translateY(-1px); }
.chat-hint { padding: 0 12px 10px; font-size: 11px; color: var(--n300); line-height: 1.6; }
.typing-dots { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--b400); animation: blink 1.2s infinite; }
.typing-dots i:nth-child(2) { animation-delay: .2s; } .typing-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,80%,100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* 待确认卡片（AI 归纳回填） */
.confirm-card { border: 1.5px solid var(--y500); background: #FFFDF6; border-radius: var(--r-md); padding: 12px 14px; margin-top: 10px; }
.confirm-card .cc-head { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: #A5670F; margin-bottom: 6px; }
.confirm-card .cc-cmp { font-size: 12px; color: var(--n500); line-height: 1.8; }
.confirm-card .cc-cmp .old { color: var(--n400); text-decoration: line-through; }

/* 照片 / 媒体预览 */
.media-preview { margin-top: 10px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #FDFEFE; }
.media-preview img, .media-preview video { display: block; width: 100%; max-height: 320px; object-fit: cover; }
.media-preview .mp-meta { padding: 7px 11px; font-size: 12px; color: var(--n400); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.upload-line { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

/* ---------- 16. 弹窗 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100; background: rgba(16,40,36,.5);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center; padding: 18px;
  animation: fadeIn .2s ease;
}
.modal[hidden] { display: none !important; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  width: 100%; max-width: 480px; background: #fff; border-radius: 24px; padding: 26px 28px;
  box-shadow: var(--sh-lg); animation: slideUp .25s ease; max-height: 90vh; overflow-y: auto;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-card h3 { margin: 0 0 4px; font-size: 19px; }
.modal-card .m-sub { color: var(--n400); font-size: 13px; margin-bottom: 8px; }
.modal-close { float: right; }

/* ---------- 17. 孩子档案 ---------- */
.child-card { display: flex; gap: 15px; align-items: flex-start; }
.child-avatar {
  width: 62px; height: 62px; border-radius: 20px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; font-size: 30px;
  box-shadow: var(--sh-sm); position: relative;
}
.child-avatar .band-dot { position: absolute; right: -3px; bottom: -3px; width: 17px; height: 17px; border-radius: 50%; border: 2.5px solid #fff; }
.child-card .cc-main { flex: 1; min-width: 0; }
.child-card h3 { margin: 0 0 4px; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.child-card .cc-meta { color: var(--n400); font-size: 12.5px; }
.child-card .cc-notes { color: var(--n500); font-size: 13px; margin-top: 7px; background: var(--b50); border-radius: 10px; padding: 7px 11px; line-height: 1.7; }
.child-actions { display: flex; gap: 7px; margin-top: 11px; flex-wrap: wrap; }

/* 成果足迹 */
.footprint { display: inline-flex; align-items: center; gap: 5px; background: var(--b50); border-radius: var(--r-pill); padding: 3px 10px; font-size: 12px; color: var(--b700); font-weight: 600; }

/* ---------- 18. 成果报告（A4 预览） ---------- */
.report-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 8px 0 22px; flex-wrap: wrap; }
.report-toolbar h2 { margin: 0; font-size: 22px; }
.report-page { max-width: 860px; margin: 0 auto; }
.report-page .sheet {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 34px 40px; margin-bottom: 18px; box-shadow: var(--sh-sm); page-break-after: always;
  position: relative;
}
.report-page .sheet:last-child { page-break-after: auto; }
.report-page .sheet h1, .report-page .sheet h2 { font-family: var(--font-journal); }
.report-page h2 { margin-top: 0; color: var(--b800); }
.report-answer { border-bottom: 1px dashed var(--n200); min-height: 24px; padding: 5px 0 10px; white-space: pre-wrap; font-size: 14px; line-height: 2; }
.report-empty { color: var(--n300); }
.report-cover { text-align: center; padding-top: 40px; }
.report-cover .rc-badge { font-size: 13px; letter-spacing: 4px; color: var(--b600); margin-bottom: 26px; }
.report-cover h1 { font-size: 40px; letter-spacing: 2px; margin: 0 0 8px; }
.report-cover .rc-sub { font-family: var(--font-journal); color: var(--n500); font-size: 18px; margin-bottom: 34px; }
.report-cover .rc-meta { display: inline-flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.report-cover .rc-meta span { background: var(--b50); border: 1px solid var(--b100); border-radius: var(--r-pill); padding: 5px 16px; font-size: 13px; color: var(--n700); }
.report-note { margin: 34px auto 0; max-width: 420px; font-size: 12px; color: var(--n400); line-height: 2; border-top: 1px dashed var(--n200); padding-top: 14px; }
.sheet-footer { margin-top: 26px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 10.5px; color: var(--n400); display: flex; justify-content: space-between; }
.stamp-ai {
  display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; color: #6C5CE7;
  background: #F0EEFE; border: 1px solid #DCD6FA; padding: 2px 9px; border-radius: var(--r-pill);
}
.cert-box {
  margin: 20px auto; max-width: 560px; text-align: center; border: 2px solid #E9D9A8;
  background: linear-gradient(160deg, #FFFDF4, #FDF3D8); border-radius: 18px; padding: 34px 26px;
  position: relative;
}
.cert-box::before, .cert-box::after { content: "✦"; position: absolute; color: #D9B55A; font-size: 18px; }
.cert-box::before { left: 16px; top: 12px; } .cert-box::after { right: 16px; bottom: 10px; }
.cert-box h2 { font-family: var(--font-journal); letter-spacing: 6px; color: #8A6B2F; }

/* ---------- 19. 创作台 / 后台 ---------- */
.workbench-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--sh-sm); margin-bottom: 16px; }
.workbench-card .wb-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.workbench-card .wb-head .wb-ico {
  width: 40px; height: 40px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; background: var(--b50); flex: 0 0 auto;
}
.workbench-card .wb-head h3 { margin: 0; font-size: 16px; }
.workbench-card .wb-head p { margin: 1px 0 0; color: var(--n400); font-size: 12.5px; }
.doc-type-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.doc-type {
  border: 1.5px solid var(--line-2); border-radius: var(--r-md); padding: 13px 15px; cursor: pointer;
  display: flex; gap: 10px; align-items: flex-start; transition: all .15s;
}
.doc-type:hover { border-color: var(--b300); }
.doc-type.on { border-color: var(--b500); background: var(--b50); box-shadow: 0 0 0 3px rgba(33,158,128,.08); }
.doc-type .dt-ico { font-size: 22px; }
.doc-type b { display: block; font-size: 14px; color: var(--n900); }
.doc-type span { font-size: 11.5px; color: var(--n400); line-height: 1.6; }
.doc-type input { display: none; }

/* 状态药丸 */
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: var(--r-pill); }
.st-formal, .st-official { background: var(--ok-bg); color: var(--ok); }
.st-submitted, .st-reviewing { background: var(--warn-bg); color: var(--warn); }
.st-rejected { background: var(--err-bg); color: var(--err); }
.st-offline { background: var(--n100); color: var(--n500); }

/* 后台设置行 */
.set-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 13px 4px; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.set-row:last-child { border-bottom: 0; }
.set-row .sr-main { flex: 1; min-width: 200px; }
.set-row b { font-size: 14px; color: var(--n900); }
.set-row p { margin: 2px 0 0; color: var(--n400); font-size: 12.5px; }
.switch { position: relative; width: 46px; height: 26px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i {
  position: absolute; inset: 0; border-radius: var(--r-pill); background: var(--n200); transition: background .2s; cursor: pointer;
}
.switch i::after {
  content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.switch input:checked + i { background: var(--b500); }
.switch input:checked + i::after { transform: translateX(20px); }

/* 后台头部统计 */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; box-shadow: var(--sh-sm); display: flex; gap: 12px; align-items: center; }
.stat-tile .st-ico { width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 21px; flex: 0 0 auto; }
.stat-tile b { display: block; font-size: 21px; line-height: 1.25; }
.stat-tile span { font-size: 12px; color: var(--n400); }

/* 富文本编辑块 */
.edit-block { background: #FBFDFC; border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; margin: 10px 0; }
.edit-block .eb-title { font-weight: 700; font-size: 14px; color: var(--b800); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }

/* ---------- 20. 页面局部动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- 21. 响应式 ---------- */
@media (max-width: 1000px) {
  .nav a { padding: 8px 10px; font-size: 13px; }
}
@media (max-width: 880px) {
  :root { --topbar-h: 60px; }
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: var(--topbar-h); left: 0; right: 0; z-index: 59;
    background: #fff; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 18px 18px; border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-md); display: none;
  }
  .nav.open { display: flex; animation: slideDown .2s ease; }
  @keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  .nav a { padding: 11px 12px; }
  .user-chip { max-width: 150px; }
  .container { padding: 0 14px; }
  .main { padding: 18px 0 52px; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
@media (max-width: 560px) {
  h1 { font-size: 24px; } h2 { font-size: 19px; }
  .auth-card { padding: 22px 18px; border-radius: 20px; }
  .stage-tabs { grid-template-columns: 1fr; }
  .pick-group { grid-template-columns: 1fr 1fr; }
  .page-actions .btn { flex: 1; }
  .chat-input .send-btn { padding: 0 13px; }
  .report-page .sheet { padding: 22px 18px; }
  .hero-stats { gap: 8px; }
  .hero-stat { padding: 8px 12px; }
  .brand-text small { display: none; }
}

/* ---------- 23. 顶栏登录态按钮（游客导航） ---------- */
.nav a.nav-ghost-btn {
  border: 1.5px solid var(--line-2); background: #fff; color: var(--n700);
  padding: 6px 16px; margin-left: 4px;
}
.nav a.nav-ghost-btn:hover { border-color: var(--b400); color: var(--b600); background: var(--b50); }
.nav a.nav-solid-btn {
  background: var(--grad-brand); color: #fff; padding: 7px 18px;
  box-shadow: 0 6px 14px -8px rgba(18,109,89,.6); margin-left: 2px;
}
.nav a.nav-solid-btn:hover { color: #fff; transform: translateY(-1px); }
@media (max-width: 880px) {
  .nav a.nav-ghost-btn, .nav a.nav-solid-btn { margin: 2px 0; text-align: center; }
}
/* 页码圆点页签（互动页导航）补充 */
.pg .tick { font-weight: 800; }

/* 报告封面与页脚细节 */
.report-page .sheet h1 { margin: 0 0 6px; letter-spacing: 3px; }
.report-page .sheet h2 { font-size: 19px; }
.sheet .block-card { box-shadow: none; background: #FDFEFE; page-break-inside: avoid; }
.report-cover { min-height: 82vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }

/* 工单/常见问题折叠 */
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary span:last-child { transform: rotate(180deg); }
.faq-item summary span:last-child { transition: transform .2s; display: inline-block; }
.faq-item summary:hover { color: var(--b700); }

/* 移动端细节 */
@media (max-width: 560px) {
  .summary-card { padding: 14px; }
  .sum-right { width: 100%; }
  .sum-right .btn { flex: 1; }
  .paper-page { padding: 16px 14px; }
  .pages-nav { gap: 6px; }
  .pg { min-width: 34px; padding: 5px 8px; }
  .doc-type-pick { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .spot-body h3 { font-size: 16px; }
  .report-toolbar h2 { font-size: 18px; }
}

/* ---------- 22. 打印 ---------- */
@media print {
  body { background: #fff !important; }
  .no-print { display: none !important; }
  .topbar, .footer, .toast { display: none !important; }
  .main { padding: 0 !important; min-height: auto !important; }
  .container { max-width: none !important; padding: 0 !important; }
  .report-page { max-width: none !important; }
  .report-page .sheet {
    border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
    margin: 0 !important; padding: 0 2mm !important; page-break-after: always !important;
  }
  .sheet-footer { margin-top: 10mm !important; }
  .report-cover { min-height: 0 !important; padding-top: 8mm; }
  @page { size: A4; margin: 12mm 10mm; }
  a[href]::after { content: none !important; }
}

/* ⑤⑥ 模块化富文本编辑 */
.b-tag { font-size: 11px; color: var(--b700); background: var(--b50); padding: 1px 7px; border-radius: 8px; align-self: center; white-space: nowrap; }
.b-in { padding: 7px 10px; border: 1.5px solid var(--line-2); border-radius: 8px; font-size: 13.5px; font-family: inherit; }
.rt-tb th, .rt-tb td { border: 1px solid #ccd4de; padding: 4px 6px; }
.rt-tb input, .rt-tb textarea { border: none; background: transparent; outline: none; width: 100%; font-family: inherit; font-size: 13px; }

/* ---------- 24. 管理后台增强（指标总览 / 队列分页 / 分栏设置） ---------- */
.stat-tile.clickable { cursor: pointer; }
.stat-tile.clickable:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--b300); }
.stat-tile:hover .st-ico { transform: scale(1.08); }
.stat-tile .st-ico { transition: transform .2s ease; }
.tone-warn   { background: var(--warn-bg); }
.tone-ok     { background: var(--ok-bg); }
.tone-err    { background: var(--err-bg); }
.tone-sky    { background: var(--s100); }
.tone-violet { background: var(--v100); }

.queue-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.queue-head h3 { margin: 0; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.queue-head .meta { margin: 2px 0 0; }
.queue-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.queue-tools select {
  padding: 7px 30px 7px 12px; border: 1.5px solid var(--line-2); border-radius: 11px;
  font-size: 13px; background: #fff; color: var(--n900); cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235E7A76' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 14px; }
.admin-grid .card { padding: 15px 17px; }
.admin-grid .card h3 { margin: 0; font-size: 16px; line-height: 1.5; }
@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; } }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.pager-info { font-size: 13px; color: var(--n500); }
.pager-info b { color: var(--b700); }
.pager-nav { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pager-btn {
  min-width: 34px; height: 34px; padding: 0 10px; border-radius: 10px;
  border: 1.5px solid var(--line-2); background: #fff; color: var(--n700);
  font-size: 13.5px; font-weight: 600; cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; transition: all .15s ease;
}
.pager-btn:hover:not(:disabled):not(.on) { border-color: var(--b400); color: var(--b600); background: var(--b50); }
.pager-btn.on { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: 0 5px 12px -6px rgba(18,109,89,.55); }
.pager-btn:disabled { opacity: .4; cursor: not-allowed; }
.pager-ellipsis { color: var(--n300); padding: 0 2px; }

.set-layout { display: grid; grid-template-columns: 208px 1fr; gap: 18px; align-items: start; }
.setnav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: calc(var(--topbar-h) + 18px); }
.setnav button {
  border: 0; background: transparent; text-align: left; padding: 10px 14px;
  border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--n500); cursor: pointer;
  display: flex; align-items: center; gap: 9px; transition: all .15s ease;
}
.setnav button:hover { background: var(--b50); color: var(--b700); }
.setnav button.active { background: var(--b100); color: var(--b700); }
.setnav button .set-count { margin-left: auto; font-size: 11px; background: rgba(255,255,255,.8); border-radius: 9px; padding: 1px 8px; color: var(--n500); }
.set-panel { min-width: 0; }
.set-panel > .workbench-card { animation: fadeUp .22s ease; }
@media (max-width: 900px) {
  .set-layout { grid-template-columns: 1fr; }
  .setnav { position: static; flex-direction: row; flex-wrap: wrap; }
  .setnav button { flex: 1 1 auto; min-width: 132px; justify-content: center; }
  .setnav button .set-count { margin-left: 8px; }
}
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.prompt-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 13px; margin-bottom: 8px; background: #FDFEFE; }
.prompt-card .pc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.prompt-card code { font-family: ui-monospace, Consolas, monospace; font-size: 12px; background: var(--n100); padding: 1px 7px; border-radius: 7px; color: var(--b800); }
.prompt-card .pc-preview {
  font-size: 12.5px; color: var(--n500); margin-top: 6px; line-height: 1.7; white-space: pre-wrap;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.words-cloud { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.review-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.reply-inline { background: var(--paper); border: 1px dashed var(--line-2); border-radius: 12px; padding: 10px 12px; margin-top: 10px; }
.dl-link { font-size: 12.5px; font-weight: 600; color: var(--s500); }

/* ---------- 25. 创作台：主区 + 右侧批量工具栏 ---------- */
.studio-layout { display: grid; grid-template-columns: minmax(0, 1fr) 348px; gap: 18px; align-items: start; }
.studio-main { min-width: 0; }
.studio-side {
  display: flex; flex-direction: column; gap: 14px;
  position: sticky; top: calc(var(--topbar-h) + 18px);
}
.studio-side .workbench-card { box-shadow: var(--sh-sm); }
.studio-side .workbench-card .wb-head { margin-bottom: 4px; }
.studio-side .workbench-card .wb-head p { line-height: 1.6; }
.studio-side .icon-btn { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px; font-size: 15px; }
#bpBody { animation: fadeUp .2s ease; }
#bpRes .msg-inner { word-break: break-all; }
@media (max-width: 1080px) {
  .studio-layout { grid-template-columns: 1fr; }
  .studio-side { position: static; }
}
@media (max-width: 560px) {
  .studio-side .btn-block { width: 100%; }
}

/* ---------- 26. 我的草稿：按景点成对展示（方案 ⊥ 手册同排、底色区分） ---------- */
.draft-group { margin-bottom: 24px; }
.dg-head {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  margin: 4px 2px 11px;
}
.dg-head .dg-emoji {
  width: 34px; height: 34px; border-radius: 11px; background: #fff;
  border: 1px solid var(--line); display: inline-flex; align-items: center;
  justify-content: center; font-size: 17px; box-shadow: var(--sh-sm);
}
.dg-head b { font-size: 15.5px; color: var(--n900); }
.dg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 900px) { .dg-row { grid-template-columns: 1fr; } }

/* 类型面板：研学方案=淡紫 / 研学手册=青瓷绿 */
.dg-panel {
  border-radius: var(--r-lg); border: 1.5px solid; padding: 13px;
  display: flex; flex-direction: column; gap: 9px; min-width: 0;
  box-shadow: var(--sh-sm);
}
.dg-panel.p-plan  { background: linear-gradient(155deg, #F5F1FF 0%, #FFFFFF 58%); border-color: #DDD3F7; }
.dg-panel.p-hand  { background: linear-gradient(155deg, #E8F8F1 0%, #FFFFFF 58%); border-color: #C2E5D6; }
.dg-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.dg-panel-head b { font-size: 14px; display: inline-flex; align-items: center; gap: 6px; letter-spacing: .3px; }
.dg-panel.p-plan .dg-panel-head b { color: #5B4FD8; }
.dg-panel.p-hand .dg-panel-head b { color: var(--b700); }

/* 面板内草稿条目 */
.dp-item {
  background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--n300); border-radius: 12px;
  padding: 9px 12px; box-shadow: var(--sh-sm);
  animation: fadeUp .2s ease;
}
.dp-item:hover { border-color: var(--line-2); }
.dg-panel.p-plan .dp-item { border-left-color: #9A8FF5; }
.dg-panel.p-hand .dp-item { border-left-color: #2FB593; }
.dp-item .dp-line2 { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 7px; }
.dp-item .dc-time { margin-left: auto; }

/* 类型徽章 */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: var(--r-pill);
}
.p-plan .chip { background: #E9E7FD; color: #5B4FD8; border: 1px solid #D8D2F8; }
.p-hand .chip { background: #D8F1E8; color: var(--b700); border: 1px solid #BCE4D5; }

/* 缺失配对占位 */
.draft-empty {
  border: 1.5px dashed var(--line-2); border-radius: var(--r-md);
  background: rgba(255,255,255,.65); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; padding: 18px 12px;
  text-align: center; min-height: 118px; color: var(--n400); margin-top: 4px;
}
.draft-empty .de-ico { font-size: 24px; opacity: .7; }
.draft-empty b { color: var(--n500); font-size: 13px; font-weight: 600; }
.flash-highlight { animation: flashRing 1.6s ease 2; border-radius: var(--r-lg); }
@keyframes flashRing {
  0%, 100% { box-shadow: 0 0 0 0 rgba(33,158,128,0); }
  40% { box-shadow: 0 0 0 6px rgba(33,158,128,.28); }
}

/* ---------- 27. 创作台 · 创建草稿两步向导 ---------- */
[hidden] { display: none !important; }
.cf-step { display: flex; align-items: center; gap: 10px; margin: 8px 0 10px; }
.cf-no {
  width: 26px; height: 26px; border-radius: 50%; background: var(--grad-brand);
  color: #fff; font-weight: 800; display: inline-flex; align-items: center;
  justify-content: center; font-size: 13px; flex: 0 0 auto;
  box-shadow: 0 4px 10px -5px rgba(18,109,89,.6);
}
.cf-step b { font-size: 14.5px; display: block; line-height: 1.3; color: var(--n900); }
.cf-step .meta { font-size: 11.5px; display: block; line-height: 1.5; margin-top: 1px; }
.cf-typehint { font-size: 12.5px; line-height: 1.8; }

.doc-type-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.doc-type {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--r-md); overflow: hidden;
  border: 1.5px solid var(--line-2); background: #fff; cursor: pointer;
  transition: all .16s ease;
}
.doc-type:hover { border-color: var(--b300); transform: translateY(-1px); box-shadow: var(--sh-sm); }
.doc-type .dt-ico { font-size: 26px; flex: 0 0 auto; }
.doc-type .dt-main { flex: 1; min-width: 0; }
.doc-type b { font-size: 15px; display: block; }
.doc-type .dt-sub { font-size: 12px; color: var(--n400); line-height: 1.6; display: block; margin-top: 3px; }
.doc-type input { display: none; }
.doc-type.on {
  border-color: var(--b500); background: var(--b50);
  box-shadow: 0 0 0 4px rgba(33,158,128,.10);
}
.doc-type.on::after {
  content: "✓ 已选择"; position: absolute; top: 0; right: 0;
  background: var(--grad-brand); color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 11px; border-bottom-left-radius: 12px; letter-spacing: 1px;
}
@media (max-width: 720px) { .doc-type-pick { grid-template-columns: 1fr; } }

.cf-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin-top: 2px; }
.cf-fields .f-full { grid-column: 1 / -1; }
.cf-fields label { margin: 8px 0 0 !important; }
.cf-fields input, .cf-fields select { width: 100%; }
@media (max-width: 720px) { .cf-fields { grid-template-columns: 1fr; } }

.cf-actions {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  margin-top: 16px; border-top: 1px dashed var(--line-2); padding-top: 14px; flex-wrap: wrap;
}
.cf-check {
  display: inline-flex !important; gap: 7px; align-items: flex-start; margin: 0 !important;
  font-size: 12.5px; font-weight: 400 !important; color: var(--n500); line-height: 1.7; max-width: 440px;
}
.cf-check input { margin-top: 3px; flex: 0 0 auto; }
@media (max-width: 720px) {
  .cf-actions { justify-content: center; }
  .cf-actions .btn { width: 100%; }
}

/* 面板内分页（我的草稿每类型一栏） */
.panel-pager { margin-top: 10px; justify-content: flex-end; }.panel-pager .pager-info { font-size: 12px; }
.panel-pager .pager-btn { min-width: 30px; height: 30px; padding: 0 9px; font-size: 13px; }
.panel-jump {
  width: auto; min-width: 60px; padding: 5px 28px 5px 10px; border: 1.5px solid var(--line-2);
  border-radius: 9px; font-size: 13px; background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235E7A76' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat right 9px center; color: var(--n900); cursor: pointer; font-family: inherit;
}
.panel-jump:focus { outline: none; border-color: var(--b400); }
@media (max-width: 560px) {
  .panel-pager { justify-content: flex-start; }
}

/* ---------- 28. 首页紧凑布局（搜索框首屏可达） ---------- */
.hero-compact { padding: 26px 38px 20px; border-radius: 24px; margin-top: 2px; }
.hero-compact::before { width: 250px; height: 250px; right: -70px; top: -100px; }
.hero-compact::after { width: 170px; height: 170px; right: 180px; bottom: -120px; }
.hero-compact .hero-content { max-width: 920px; }
.hero-compact h1 { font-size: 26px; letter-spacing: .5px; margin: 0 0 8px; line-height: 1.45; }
.hero-compact p { font-size: 14px; max-width: 660px; margin: 0 0 14px; line-height: 1.8; }
.hero-compact .eyebrow { font-size: 11.5px; padding: 3px 12px; margin-bottom: 10px; }
.hero-compact .hero-float { font-size: 26px; opacity: .85; }
.hero-compact #heroCta { gap: 10px; }
.hero-compact .btn-lg { padding: 9px 20px; font-size: 14px; }
.hero-compact .hero-stats { margin-top: 14px; gap: 9px; }
.hero-compact .hero-stat { padding: 6px 12px; border-radius: 12px; }
.hero-compact .hero-stat b { font-size: 16px; }
.hero-compact .hero-stat span { font-size: 10.5px; }

.spot-toolbar { padding: 12px 16px; margin-bottom: 2px; }
.spot-toolbar .toolbar-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.spot-toolbar h2 { font-size: 18px; margin: 0; display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.spot-toolbar h2::before { content: ""; width: 5px; height: 18px; border-radius: 4px; background: var(--grad-brand); }
.spot-toolbar .search-bar { flex: 1 1 300px; min-width: 260px; max-width: 620px; }
@media (max-width: 700px) {
  .spot-toolbar .search-bar { max-width: none; }
  .hero-compact { padding: 22px 18px 16px; border-radius: 18px; }
  .hero-compact h1 { font-size: 21px; }
  .hero-compact .hero-stat { padding: 5px 10px; }
  .hero-compact .hero-stat b { font-size: 14px; }
}

/* ---------- 29. 手册库：上新 / 热门 标签 + 收藏 / 点赞按钮 ---------- */
.badge-new { background: linear-gradient(135deg, #FF8A68, #F76B4E); color: #fff; }
.badge-hot { background: linear-gradient(135deg, #FFC66B, #F2A93B); color: #5C3D00; }
.mark-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.mark-btn {
  display: inline-flex; gap: 5px; align-items: center; padding: 5px 13px;
  border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff;
  cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--n500);
  transition: all .15s ease; line-height: 1.5;
}
.mark-btn:hover { transform: translateY(-1px); }
.mark-btn .cnt { font-weight: 800; }
.mark-btn.fav.on { border-color: #F7A48E; background: #FFF1EC; color: #D94F32; }
.mark-btn.fav:not(.on):hover { border-color: #F7A48E; color: #D94F32; }
.mark-btn.like.on { border-color: #B9DCF5; background: #EFF7FF; color: #2568B8; }
.mark-btn.like:not(.on):hover { border-color: #B9DCF5; color: #2568B8; }
.mark-btn:active { transform: scale(.97); }

/* 备案信息条（首页底部，名称/链接后台可配） */
.footer-beian {
  border-top: 1px solid rgba(174,198,193,.16);
  display: flex; align-items: center; justify-content: center; gap: 8px 22px;
  flex-wrap: wrap; padding: 12px 20px; font-size: 12px; color: #8FB0AA;
  max-width: 1180px; margin: 0 auto;
}
.footer-beian a { color: #8FB0AA; display: inline-flex; align-items: center; gap: 6px; padding: 2px 0; }
.footer-beian a:hover { color: #7BCFB8; }
.footer-beian .beian-settings {
  color: #C9E6DE; border: 1px solid rgba(174,198,193,.28);
  border-radius: 999px; padding: 3px 14px; margin-left: 6px;
}
.footer-beian .beian-settings:hover { color: #fff; border-color: #7BCFB8; }
@media (max-width: 860px) { .footer-beian { justify-content: flex-start; gap: 8px 16px; padding: 10px 18px; } }

/* ---------- 30. 首页 · 上新 / 热门 快捷入口 ---------- */
.discover-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.discover-card {
  position: relative; display: flex; align-items: center; gap: 12px;
  border-radius: var(--r-lg); padding: 12px 14px 12px 16px; overflow: hidden;
  box-shadow: var(--sh-sm); transition: transform .16s ease, box-shadow .16s ease;
  text-decoration: none;
}
.discover-card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.discover-card::after {
  content: ""; position: absolute; right: -26px; top: -44px;
  width: 130px; height: 130px; border-radius: 50%; background: rgba(255,255,255,.16);
}
.discover-card .dc-ico { font-size: 27px; flex: 0 0 auto; filter: drop-shadow(0 3px 6px rgba(0,0,0,.18)); }
.discover-card .dc-main { flex: 1; min-width: 0; position: relative; z-index: 1; }
.discover-card b { font-size: 15.5px; display: flex; align-items: center; gap: 8px; color: inherit; flex-wrap: wrap; }
.discover-card b em {
  font-style: normal; font-size: 11.5px; font-weight: 700;
  background: rgba(255,255,255,.26); border: 1px solid rgba(255,255,255,.35);
  padding: 1px 9px; border-radius: 999px; letter-spacing: .5px;
}
.discover-card .dc-samples {
  display: block; font-size: 12px; line-height: 1.5; margin-top: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .92;
}
.discover-card .dc-go {
  flex: 0 0 auto; font-size: 12px; font-weight: 700; position: relative; z-index: 1;
  background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px; padding: 5px 12px; white-space: nowrap;
}
.disc-new { background: linear-gradient(135deg, #FF8A68, #F76B4E); color: #fff; }
.disc-new:hover { color: #fff; }
.disc-hot { background: linear-gradient(135deg, #FFC66B, #F2A93B); color: #5C3D00; }
.disc-hot:hover { color: #5C3D00; }
.disc-hot b em { background: rgba(255,255,255,.5); border-color: rgba(255,255,255,.7); }
.disc-hot .dc-go { color: #5C3D00; border-color: rgba(92,61,0,.35); background: rgba(255,255,255,.55); }
@media (max-width: 720px) {
  .discover-grid { grid-template-columns: 1fr; }
  .discover-card .dc-samples { white-space: normal; }
}

/* ---------- 31. 首页主视觉 · 步骤路线图 ---------- */
.route { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 0 0; }
.route-step {
  display: inline-flex; align-items: center; gap: 8px; color: #fff;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  border-radius: 14px; padding: 7px 13px 7px 7px; text-decoration: none;
  transition: background .16s ease, transform .16s ease;
}
a.route-step:hover { background: rgba(255, 255, 255, .3); transform: translateY(-1px); color: #fff; }
.route-step .rs-no {
  width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--b700);
  font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; flex: 0 0 auto;
}
.route-step .rs-ico { font-size: 19px; flex: 0 0 auto; }
.route-step .rs-txt { display: flex; flex-direction: column; line-height: 1.2; }
.route-step b { font-size: 13px; color: #fff; letter-spacing: .3px; }
.route-step i { font-style: normal; font-size: 10px; color: rgba(255, 255, 255, .8); margin-top: 2px; }
.rs-arrow { color: rgba(255, 255, 255, .6); font-size: 15px; font-weight: 700; padding: 0 1px; }
@media (max-width: 860px) {
  .route { gap: 4px; }
  .route-step { padding: 6px 11px 6px 6px; border-radius: 12px; }
  .route-step .rs-txt i { display: none; }
  .route-step b { font-size: 12.5px; }
  .route-step .rs-no { width: 23px; height: 23px; font-size: 12px; }
  .hero-compact .route { margin-top: 2px; }
}


