/* ==========================================================
   智学云平台 · 视觉体系 v2
   主色：青蓝（学术、可信）  点缀：黄铜（国学气质）
   字体：标题衬线 / 正文无衬线
   ========================================================== */
:root {
  --primary: #1A5C8A;
  --primary-light: #E8F2F8;
  --primary-dark: #0D3B5C;
  --primary-mid: #2C79A8;
  --teal: #0E6E56;
  --teal-light: #E4F3EC;
  --amber: #8A5A10;
  --amber-light: #FBF0DC;
  --coral: #A0452A;
  --coral-light: #FBEDE7;
  --purple: #4F4699;
  --purple-light: #EFEDFB;
  --accent: #B8863B;
  --accent-light: #FBF2E3;
  --text: #23303D;
  --muted: #6B7885;
  --border: #E6E1D6;
  --border-strong: #D8D2C4;
  --bg: #F7F5F0;
  --card: #FFFFFF;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(24, 40, 58, .04), 0 6px 18px -14px rgba(24, 40, 58, .18);
  --shadow-md: 0 2px 4px rgba(24, 40, 58, .05), 0 18px 40px -22px rgba(24, 40, 58, .28);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
}

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

body {
  font-family: var(--sans);
  background:
    radial-gradient(1100px 520px at 50% -8%, #EEF4F8 0%, rgba(238, 244, 248, 0) 62%),
    var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { text-decoration: none; color: var(--primary-mid); }

::selection { background: #CFE4F2; color: var(--primary-dark); }

/* ---------- header ---------- */
.site-header {
  background: rgba(255, 255, 255, .84);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid rgba(214, 208, 194, .7);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.logo {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--primary-dark);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo::before {
  content: "";
  width: 22px; height: 22px;
  border-radius: 7px;
  background: linear-gradient(140deg, var(--primary) 0%, var(--primary-mid) 55%, var(--accent) 130%);
  box-shadow: 0 3px 10px -4px rgba(26, 92, 138, .7);
  flex: none;
}
.logo span { color: var(--primary); font-weight: 400; }

.main-nav { display: flex; gap: 2px; flex: 1; flex-wrap: wrap; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
  padding: 7px 11px;
  border-radius: 999px;
  color: #4C5A68;
  font-size: 13.5px;
  white-space: nowrap;
  transition: background .16s, color .16s;
}
.main-nav a:hover { background: #F1F4F6; color: var(--primary-dark); text-decoration: none; }
.main-nav a.active {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(26, 92, 138, .12);
}
.nav-user { display: flex; align-items: center; gap: 8px; white-space: nowrap; margin-left: auto; }
.nav-user .uname {
  font-size: 13px; color: var(--muted);
  max-width: 110px; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  background: linear-gradient(180deg, #23709F 0%, var(--primary) 100%);
  color: #fff;
  box-shadow: 0 1px 2px rgba(13, 59, 92, .18), 0 8px 18px -12px rgba(13, 59, 92, .55);
  transition: transform .16s, box-shadow .16s, opacity .16s, background .16s;
}
.btn:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(13, 59, 92, .2), 0 14px 26px -14px rgba(13, 59, 92, .6);
  color: #fff;
}
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-outline {
  background: #fff;
  color: var(--primary-dark);
  border-color: #CBD8E2;
  box-shadow: none;
}
.btn-outline:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary-dark); }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
  box-shadow: none;
}
.btn-ghost:hover { background: #fff; border-color: var(--border-strong); color: var(--text); }
.btn-danger { background: #A5382F; }
.btn-accent { background: linear-gradient(180deg, #C8933F 0%, var(--accent) 100%); color: #fff; }
.btn-sm { padding: 6px 13px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 13px 32px; font-size: 15.5px; border-radius: 12px; }

/* 白底大按钮（深色 hero 上用） */
.btn-light { background: #fff; color: var(--primary-dark); box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .55); }
.btn-light:hover { background: #fff; color: var(--primary-dark); transform: translateY(-2px); }
.btn-glass {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .34);
  color: #fff;
  box-shadow: none;
  backdrop-filter: blur(6px);
}
.btn-glass:hover { background: rgba(255, 255, 255, .18); color: #fff; }

/* ---------- layout ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 34px 24px 72px; }
.page-title {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: 8px;
  color: var(--primary-dark);
}
.page-sub { color: var(--muted); font-size: 14px; margin-bottom: 26px; max-width: 760px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.section-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .02em;
  margin: 40px 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-dark);
}
.section-title::before {
  content: "";
  width: 4px; height: 17px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--primary-mid), var(--accent));
  flex: none;
}
.section-title[style*="margin-top:0"] { margin-top: 0; }

.eyebrow {
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}

/* ---------- forms ---------- */
label.field { display: block; margin-bottom: 15px; }
label.field span.lbl { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; letter-spacing: .02em; }
input[type="text"], input[type="number"], input[type="tel"], input[type="password"],
input[type="date"], input[type="url"], select, textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color .16s, box-shadow .16s;
}
input::placeholder, textarea::placeholder { color: #A9B2BC; }
input:hover, select:hover, textarea:hover { border-color: #C4BDAC; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 92, 138, .12);
}
textarea { resize: vertical; min-height: 88px; }
.form-row { display: flex; gap: 12px; }
.form-row > * { flex: 1; min-width: 0; }
.form-msg { font-size: 13px; margin-top: 8px; min-height: 18px; }
.form-msg.err { color: #A5382F; }
.form-msg.ok { color: var(--teal); }

/* ---------- hero ---------- */
/* 官方公告滚屏条 */
.ticker {
  display: flex;
  align-items: stretch;
  background: #FBF7EC;
  border-bottom: 1px solid #EAE2D0;
  height: 38px;
  visibility: hidden;
}
.ticker-label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: #fff;
  background: linear-gradient(135deg, #B8843B, #A32D2D);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.ticker-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #F0D9AE; animation: tk-pulse 1.6s ease-in-out infinite; }
@keyframes tk-pulse { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }
.ticker-viewport { flex: 1; overflow: hidden; position: relative; }
.ticker-list {
  list-style: none;
  margin: 0;
  padding: 0;
  animation: tk-scroll 24s linear infinite;
}
.ticker:hover .ticker-list { animation-play-state: paused; }
.ticker-list li {
  height: 38px;
  line-height: 38px;
  padding: 0 18px;
  font-size: 13px;
  color: #4A4639;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ticker-list .tk-cat {
  display: inline-block;
  margin-right: 10px;
  font-size: 11.5px;
  color: #15506B;
  background: rgba(21, 80, 107, .08);
  border: 1px solid rgba(21, 80, 107, .18);
  padding: 1px 8px;
  border-radius: 999px;
  line-height: 1.7;
  vertical-align: 1px;
}
@keyframes tk-scroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: clamp(56px, 7vw, 92px) 24px clamp(52px, 6vw, 78px);
  text-align: center;
  background:
    radial-gradient(820px 400px at 12% -6%, rgba(96, 190, 205, .30) 0%, rgba(96, 190, 205, 0) 62%),
    radial-gradient(700px 380px at 88% 4%, rgba(184, 134, 59, .34) 0%, rgba(184, 134, 59, 0) 60%),
    linear-gradient(168deg, #0A2E46 0%, #11486B 48%, #15506B 72%, #0E3D55 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(900px 460px at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(900px 460px at 50% 0%, #000 0%, transparent 78%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
  text-align: left;
}
.hero-copy .hero-eyebrow { margin-bottom: 22px; }
.hero-copy .hero-actions { justify-content: flex-start; }
.hero-media { position: relative; }
.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: #F7F1E3;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .12);
}
.hero-media-caption {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, .55);
  letter-spacing: .04em;
  text-align: center;
}
.hero .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: .12em;
  color: #E9D5AE;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(233, 213, 174, .3);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(29px, 4.3vw, 45px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .02em;
  margin-bottom: 18px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .18);
}
.hero h1 em { font-style: normal; color: #F0D9AE; }
.hero p {
  color: rgba(255, 255, 255, .78);
  max-width: 680px;
  margin: 0 auto 30px;
  font-size: clamp(13.5px, 1.5vw, 15.5px);
  line-height: 1.95;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 5vw, 56px);
  flex-wrap: wrap;
  margin-top: clamp(34px, 5vw, 52px);
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.hero-stats .hs-item { min-width: 76px; }
.hero-stats .hs-num {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.hero-stats .hs-lbl { font-size: 12px; color: rgba(255, 255, 255, .6); letter-spacing: .06em; margin-top: 2px; }

/* ---------- channel cards ---------- */
.channel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  color: inherit;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  --cc: var(--primary);
  --cc-bg: var(--primary-light);
  --cc-ink: var(--primary-dark);
}
.channel-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cc) 0%, color-mix(in srgb, var(--cc) 35%, #fff) 100%);
  opacity: .9;
}
.channel-card:hover {
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--cc);
}
.cc-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--cc-bg);
  color: var(--cc-ink);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.cc-icon svg { width: 21px; height: 21px; stroke-width: 1.6; }
.channel-card .cc-head {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--cc-ink);
  margin-bottom: 8px;
}
.channel-card .cc-desc { font-size: 13px; color: var(--muted); line-height: 1.75; }
.cc-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11.5px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #F6F3EC;
  color: #7A8492;
  margin: 0 0 10px;
  letter-spacing: .02em;
}
.cc-arrow {
  position: absolute;
  right: 20px; bottom: 18px;
  font-size: 15px;
  color: var(--cc);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .2s, transform .2s;
}
.channel-card:hover .cc-arrow { opacity: .85; transform: translateX(0); }

.cc-blue   { --cc: #2C79A8; --cc-bg: #E9F3FA; --cc-ink: #12496E; }
.cc-teal   { --cc: #12866B; --cc-bg: #E4F3EC; --cc-ink: #0B5744; }
.cc-purple { --cc: #6A5DC7; --cc-bg: #EFEDFB; --cc-ink: #3F3680; }
.cc-coral  { --cc: #C0653F; --cc-bg: #FBEDE7; --cc-ink: #8A3A20; }
.cc-amber  { --cc: #C08A22; --cc-bg: #FBF1DC; --cc-ink: #7A4E0B; }
.cc-olive  { --cc: #6E8C3A; --cc-bg: #F0F4E5; --cc-ink: #4C6524; }
.cc-sky    { --cc: #2C8CA0; --cc-bg: #E7F3F6; --cc-ink: #1B6172; }
.cc-clay   { --cc: #A9764A; --cc-bg: #F6EEE4; --cc-ink: #6E4726; }
.cc-indigo { --cc: #4B5AA8; --cc-bg: #EBEEFA; --cc-ink: #2E3A78; }

/* ---------- news ---------- */
.news-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid #F0ECE2; }
.news-item:last-child { border-bottom: 0; padding-bottom: 4px; }
.news-date {
  flex: none;
  width: 52px;
  text-align: center;
  border-right: 1px solid #F0ECE2;
  padding-right: 4px;
}
.news-date .d {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.news-date .m { font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.news-body h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.news-body p { font-size: 13px; color: var(--muted); line-height: 1.75; }

/* ---------- list / rows ---------- */
.list-item { padding: 15px 0; border-bottom: 1px solid #F0ECE2; }
.list-item:last-child { border-bottom: none; }
.list-item h4 { font-size: 15px; font-weight: 600; }
.list-item p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.tag {
  display: inline-block;
  font-size: 11.5px;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary-dark);
  margin-right: 8px;
  font-weight: 500;
  vertical-align: 1px;
}

/* ---------- chat ---------- */
.chat-box { display: flex; flex-direction: column; height: 520px; }
.chat-log { flex: 1; overflow-y: auto; padding: 8px 4px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 84%; padding: 11px 15px; border-radius: 14px; font-size: 14px; white-space: pre-wrap; word-break: break-word; line-height: 1.75; }
.msg.user { align-self: flex-end; background: linear-gradient(180deg, #23709F, var(--primary)); color: #fff; border-bottom-right-radius: 4px; }
.msg.ai { align-self: flex-start; background: #F5F3EC; color: var(--text); border-bottom-left-radius: 4px; }
.chat-input { display: flex; gap: 10px; margin-top: 12px; }
.chat-input textarea { flex: 1; min-height: 52px; }
.quick-asks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.quick-asks button {
  font-size: 12px; padding: 5px 13px; border-radius: 999px;
  border: 1px solid var(--border); background: #fff; color: var(--muted);
  cursor: pointer; font-family: inherit; transition: all .16s;
}
.quick-asks button:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* 语音输入与朗读 */
.btn-mic { flex-shrink: 0; white-space: nowrap; }
.btn-mic.listening {
  background: #FDECEC; border-color: #E5484D; color: #E5484D;
  animation: micPulse 1.1s ease-in-out infinite;
}
@keyframes micPulse { 50% { opacity: .55; } }
.voice-unsupported { font-size: 12px; color: var(--muted); align-self: center; }
.tts-btn {
  align-self: flex-start; border: none; background: transparent;
  color: var(--primary); font-size: 12px; cursor: pointer;
  padding: 0 4px; margin-top: -6px; font-family: inherit;
}
.tts-btn:hover { text-decoration: underline; }
.tts-btn.speaking { color: #B25E09; }

/* ---------- quiz ---------- */
.quiz-option {
  display: block; width: 100%; text-align: left;
  margin-bottom: 8px; padding: 11px 15px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: #fff; cursor: pointer; font-size: 14px; font-family: inherit; color: var(--text);
  transition: all .16s;
}
.quiz-option:hover { border-color: var(--primary); background: #FAFCFD; }
.quiz-option.correct { border-color: #3B6D11; background: #EFF6E5; }
.quiz-option.wrong { border-color: #A5382F; background: #FCEDEB; }
.quiz-option:disabled { cursor: default; }
.explain {
  margin-top: 10px; padding: 13px 15px; border-radius: var(--radius-sm);
  background: var(--amber-light); border-left: 3px solid var(--accent);
  font-size: 13px; color: #6E4A0E; display: none; line-height: 1.8;
}

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 22px; flex-wrap: wrap; }
.tabs button {
  border: none; background: none; padding: 10px 15px; font-size: 13.5px; font-family: inherit;
  cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent;
  border-radius: 8px 8px 0 0; transition: color .16s, background .16s;
}
.tabs button:hover { color: var(--primary-dark); background: #FAF8F3; }
.tabs button.active { color: var(--primary-dark); border-bottom-color: var(--primary); font-weight: 600; background: #F7FAFC; }

/* ---------- misc ---------- */
.note {
  font-size: 13px; color: #6E5A32; background: var(--accent-light);
  border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px; margin-bottom: 18px; line-height: 1.8;
}
.empty { text-align: center; color: #93A0AC; padding: 34px 0; font-size: 13.5px; }

.footer {
  background: #0E2C40;
  color: rgba(255, 255, 255, .62);
  padding: 44px 24px 30px;
  font-size: 13px;
  margin-top: 60px;
  line-height: 1.9;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; padding-bottom: 26px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-brand { font-family: var(--serif); font-size: 18px; color: #fff; letter-spacing: .06em; }
.footer-brand span { display: block; font-family: var(--sans); font-size: 12.5px; color: rgba(255, 255, 255, .5); letter-spacing: 0; margin-top: 6px; }
.footer-links { display: flex; gap: 44px; flex-wrap: wrap; }
.footer-col h5 { color: rgba(255, 255, 255, .9); font-size: 13px; font-weight: 600; margin-bottom: 10px; letter-spacing: .04em; }
.footer-col a { display: block; color: rgba(255, 255, 255, .58); font-size: 12.5px; padding: 2px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding-top: 18px; font-size: 12px; color: rgba(255, 255, 255, .4); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

#toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%);
  background: #16303F; color: #fff; padding: 11px 22px; border-radius: 999px;
  font-size: 13.5px; display: none; z-index: 99; max-width: 82%;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6);
}
.stat-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.stat-box {
  flex: 1; min-width: 140px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.stat-box .num {
  font-family: var(--serif);
  font-size: 26px; font-weight: 600; color: var(--primary-dark);
  line-height: 1.2; font-variant-numeric: tabular-nums;
}
.stat-box .lbl { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ---------- login / 认证页 ---------- */
.auth-wrap { max-width: 940px; margin: 0 auto; padding: 48px 24px 72px; }
.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.auth-side {
  position: relative;
  padding: 44px 38px;
  color: #fff;
  background:
    radial-gradient(500px 280px at 80% 0%, rgba(184, 134, 59, .34), transparent 62%),
    linear-gradient(165deg, #0C3350 0%, #14526F 60%, #0F4359 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-side h2 { font-family: var(--serif); font-size: 26px; line-height: 1.45; font-weight: 600; margin-bottom: 14px; }
.auth-side p { font-size: 13.5px; color: rgba(255, 255, 255, .72); line-height: 1.9; }
.auth-side ul { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.auth-side li { font-size: 13.5px; color: rgba(255, 255, 255, .85); display: flex; gap: 9px; align-items: flex-start; line-height: 1.7; }
.auth-side li::before {
  content: "✓";
  flex: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(240, 217, 174, .18);
  color: #F0D9AE;
  font-size: 11px;
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.auth-main { padding: 44px 38px; }
.auth-main h1 { font-family: var(--serif); font-size: 23px; font-weight: 600; color: var(--primary-dark); margin-bottom: 6px; }
.auth-main .sub { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: #A9B2BC; font-size: 12px; margin: 22px 0 14px; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; background: #EDE9DF; flex: 1; }
.auth-illus {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto 18px;
  border-radius: 12px;
  opacity: .92;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .auth-grid { grid-template-columns: 1fr; }
  .auth-side { padding: 32px 26px; }
  .auth-side ul { display: none; }
  .auth-main { padding: 32px 26px; }
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-media { max-width: 560px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .header-inner { height: auto; padding: 10px 16px; gap: 12px; flex-wrap: wrap; }
  .main-nav { order: 3; width: 100%; flex-wrap: nowrap; padding-bottom: 2px; }
  .nav-user { gap: 6px; }
  .container { padding: 24px 16px 56px; }
  .card { padding: 18px; }
  .page-title { font-size: 23px; }
  .section-title { margin: 30px 0 14px; font-size: 18px; }
  .hero { padding: 44px 18px 40px; }
  .hero-stats { gap: 18px 28px; }
  .hero-stats .hs-num { font-size: 22px; }
  .form-row { flex-direction: column; gap: 0; }
  .footer { padding: 32px 18px 24px; margin-top: 40px; }
  .footer-links { gap: 28px; }
  .channel-card { padding: 18px; }
  .cc-arrow { display: none; }
}
