/* 天空树地理 · 基础样式 */
:root {
  --ink: #060d1a;
  --ink-2: #0a1526;
  --ink-3: #111f36;
  --glass: rgba(10, 20, 37, 0.72);
  --glass-strong: rgba(9, 18, 33, 0.9);
  --line: rgba(160, 195, 230, 0.12);
  --line-2: rgba(160, 195, 230, 0.22);
  --text: #e7edf4;
  --text-2: #b9c5d4;
  --muted: #8c9bb0;
  --faint: #5d6c81;
  --sun: #f2c46d;
  --sun-soft: rgba(242, 196, 109, 0.14);
  --sky: #8fc3e3;
  --sky-soft: rgba(143, 195, 227, 0.12);
  --dawn: #ffd27a;
  --dusk: #9da8ff;
  --warm: #e8956b;              /* 暖流、暖气团、低压 */
  --cold: #6fb4e8;              /* 寒流、冷气团、高压 */
  --rise: #f6e3cf;              /* 上升气流 */
  --sink: #d8e7f5;              /* 下沉气流 */
  --water: #7fd0e0;             /* 水体与水汽 */
  --rock-1: #a88f6a; --rock-2: #7d7a73; --rock-3: #7a6450; /* 岩层：赭、灰、褐 */
  --night-arc: #3f6fae;
  --serif: 'STSerif', 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'SimSun', serif;
  --sans: 'STSans', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif;
  --num: 'STNum', 'STSans', system-ui, sans-serif;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'tnum' 1;
  font-synthesis: none;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(242, 196, 109, 0.35); }
[hidden] { display: none !important; }

.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--text); }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 17px; letter-spacing: 0.08em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03);
  color: var(--text); font-size: 13px; letter-spacing: 0.02em;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(160, 195, 230, 0.35); }
.btn.on { background: var(--sun-soft); border-color: rgba(242, 196, 109, 0.55); color: var(--sun); }
.btn.primary { background: var(--sun); border-color: var(--sun); color: #1a1205; font-weight: 600; }
.btn.primary:hover { background: #f7d48d; }
.btn.icon { width: 34px; padding: 0; }
.btn.small { height: 30px; font-size: 12px; padding: 0 12px; }
.btn.icon.small { width: 30px; padding: 0; }
.link { background: none; border: 0; padding: 0; color: var(--sky); text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* 全站搜索（common/search.js）：首页内嵌的搜索框、专题页与考点页的搜索弹出层 */
.search-box { position: relative; display: flex; align-items: center; height: 34px; padding: 0 14px 0 34px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); transition: border-color 0.2s, background 0.2s; }
.search-box:focus-within { border-color: rgba(143, 195, 227, 0.55); background: rgba(255, 255, 255, 0.06); }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); display: flex; color: var(--muted); }
.search-input { width: 100%; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 14px; }
.search-input::placeholder { color: var(--faint); }
.search-results { overflow-y: auto; padding: 6px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--glass-strong); box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45); backdrop-filter: blur(14px); }
.search-results[hidden] { display: none; }
.sr-group + .sr-group { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.sr-head { padding: 6px 10px 3px; font-size: 12px; color: var(--faint); }
.sr-item { display: flex; flex-direction: column; gap: 1px; padding: 6px 10px; border-radius: var(--r-sm); color: var(--text); text-decoration: none; }
.sr-item.on { background: var(--sky-soft); }
.sr-name { font-size: 14px; line-height: 1.45; }
.sr-name mark { background: none; color: var(--sky); font-weight: 600; }
.sr-path { font-size: 12px; line-height: 1.45; color: var(--muted); }
.sr-more, .sr-empty { padding: 4px 10px 6px; font-size: 12px; color: var(--faint); }
.sr-empty { padding: 12px 10px; font-size: 13px; }
.search-modal { position: fixed; inset: 0; z-index: 300; display: flex; justify-content: center; align-items: flex-start; padding-top: 9vh; background: rgba(3, 7, 15, 0.55); }
.search-modal[hidden] { display: none; }
.search-panel { width: min(600px, calc(100vw - 48px)); padding: 14px; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--glass-strong); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5); backdrop-filter: blur(16px); }
.search-panel .search-box { height: 40px; }
.search-panel .search-input { font-size: 15px; }
.search-panel .search-results { max-height: min(62vh, 560px); margin-top: 8px; padding: 0; border: 0; background: none; box-shadow: none; backdrop-filter: none; }
.search-tip { margin: 8px 4px 0; font-size: 12px; color: var(--faint); }

/* 备案号（common/beian.js）：小号、低对比度，演示模式下隐藏 */
.beian { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; line-height: 1.6; color: var(--faint); }
.beian a { color: inherit; text-decoration: none; transition: color 0.2s; }
.beian a:hover { color: var(--muted); }
body.teacher .beian { display: none; }
.panel-beian { padding: 18px 22px 0; opacity: 0.8; }
.lp-beian { justify-content: center; margin-top: 10px; }
