/* ==========================================================================
   浙江高职提前招查询系统 · Design System
   色板与尺度对齐原站：品牌 #2563eb / 墨色 #0b1b33 / 胶囊圆角 / 柔和阴影
   ========================================================================== */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* Brand */
  --brand:          #2563eb;
  --brand-hover:    #1d4ed8;
  --brand-deep:     #1e3a8a;
  --brand-ink:      #1a3f62;
  --brand-50:       #eff6ff;
  --brand-100:      #dbeafe;
  --brand-150:      #e8f1ff;
  --brand-200:      #bfdbfe;
  --brand-tint:     #f5f9ff;
  --brand-glow:     rgba(37, 99, 235, .08);
  --brand-ring:     rgba(37, 99, 235, .08);
  --brand-shadow:   rgba(37, 99, 235, .20);

  /* Ink */
  --ink:            #0b1b33;
  --ink-2:          #0f172a;
  --ink-3:          #1e293b;
  --ink-4:          #334155;
  --ink-5:          #475569;
  --muted:          #64748b;
  --muted-2:        #94a3b8;
  --muted-3:        #6b82a0;

  /* Lines & surfaces */
  --line:           #f0f4fa;
  --line-2:         #e2e8f0;
  --line-3:         #e8edf4;
  --line-4:         #e9edf3;
  --line-strong:    #a7b3c4;        /* 结果表边框（加深后的中灰，更清晰） */
  --surface:        #ffffff;
  --surface-1:      #fafcff;
  --surface-2:      #f8fafc;
  --surface-3:      #f1f5f9;

  /* Semantic */
  --green:          #16a34a;
  --green-hover:    #15803d;
  --green-bg:       #dcfce7;
  --green-ink:      #166534;
  --red:            #dc2626;
  --red-hover:      #b91c1c;
  --red-bg:         #fee2e2;
  --red-ink:        #991b1b;
  --amber:          #f59e0b;
  --amber-hover:    #d97706;
  --amber-bg:       #fef3c7;
  --amber-soft:     #fef9e7;
  --amber-line:     #f0e5c6;
  --amber-ink:      #92400e;
  --amber-ink-2:    #854d0e;
  --pink:           #db2777;
  --pink-bg:        #fce7f3;
  --pink-ink:       #831843;
  --sky:            #0284c7;
  --sky-bg:         #e0f2fe;
  --sky-ink:        #0369a1;
  --cyan:           #0891b2;
  --cyan-hover:     #0e7490;
  --violet:         #7c3aed;
  --violet-bg:      #ede9fe;
  --violet-ink:     #5b21b6;

  /* Radii */
  --r-pill:         999px;
  --r-sm:           6px;
  --r-md:           10px;
  --r-lg:           12px;
  --r-xl:           16px;
  --r-2xl:          20px;
  --r-3xl:          24px;
  --r-4xl:          28px;
  --r-5xl:          32px;

  /* Shadows */
  --sh-xs:          0 1px 2px rgba(15, 54, 110, .05);
  --sh-sm:          0 2px 8px var(--brand-shadow);
  --sh-md:          0 4px 12px rgba(37, 99, 235, .20);
  --sh-card:        0 16px 40px rgba(15, 54, 110, .08);
  --sh-card-lg:     0 40px 80px rgba(0, 0, 0, .15);
  --sh-pop:         0 30px 60px rgba(0, 0, 0, .12);
  --sh-hover:       0 8px 24px var(--brand-glow);

  /* Motion */
  --ease:           cubic-bezier(.22, 1, .36, 1);
  --t-fast:         .15s ease;
  --t:              .22s var(--ease);

  /* Type */
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --header-h:       64px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body, #app { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-3);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
svg.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2;
        stroke-linecap: round; stroke-linejoin: round; display: block; flex: none; }
::selection { background: var(--brand-100); color: var(--brand-deep); }

/* Scrollbars */
* { scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #dbe3ee; border-radius: 99px; border: 2px solid transparent;
                            background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #c3cede; background-clip: content-box; }

/* ---------- 3. Animation ---------- */
@keyframes fadeUp   { from { opacity: 0; transform: translateY(16px) scale(.97); }
                      to   { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown{ from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes popIn    { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
@keyframes marquee  { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes floaty   { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-14px) } }
@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes shimmer  { from { background-position: -400px 0 } to { background-position: 400px 0 } }

/* ==========================================================================
   4. AUTH — 登录 / 注册
   ========================================================================== */
.auth-page {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  overflow-y: auto;
  background:
    radial-gradient(ellipse 60% 50% at 18% 0%,  var(--brand-100) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 84% 100%, var(--sky-bg)    0%, transparent 58%),
    linear-gradient(180deg, var(--surface-2), #fff);
}
/* 背景光斑 */
.auth-page::before, .auth-page::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px);
  pointer-events: none; opacity: .5;
}
.auth-page::before { width: 320px; height: 320px; top: 8%; left: 6%;
                     background: radial-gradient(circle, #bfdbfe, transparent 70%);
                     animation: floaty 9s ease-in-out infinite; }
.auth-page::after  { width: 280px; height: 280px; bottom: 6%; right: 8%;
                     background: radial-gradient(circle, #cffafe, transparent 70%);
                     animation: floaty 11s ease-in-out infinite reverse; }

.auth-shell { position: relative; z-index: 1; width: 100%; max-width: 448px;
              margin: 0 auto; animation: fadeUp .4s var(--ease); }
.auth-main { width: 100%; }

.auth-card {
  width: 100%;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-3);
  border-radius: var(--r-3xl);
  padding: 2.4rem 2.1rem 2rem;
  box-shadow: var(--sh-card), 0 1px 0 rgba(255,255,255,.9) inset;
}

.auth-brand { text-align: center; margin-bottom: 1.5rem; }
.auth-brand .mark {
  width: 62px; height: 62px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  border-radius: 18px;
  background: linear-gradient(140deg, var(--brand) 0%, #3b82f6 55%, #60a5fa 100%);
  color: #fff; font-size: 1.75rem;
  box-shadow: 0 10px 24px var(--brand-shadow), 0 0 0 6px var(--brand-50);
}
.auth-brand h1 { margin-top: .95rem; font-size: 1.3rem; line-height: 1.35; letter-spacing: -.02em; }
.auth-brand p  { margin-top: .3rem; font-size: .84rem; color: var(--muted); }

.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: 1.5rem; }
.auth-tab {
  border: 1.5px solid var(--line-2); background: #fff; color: var(--muted);
  border-radius: var(--r-lg); padding: .8rem .75rem;
  font-size: .94rem; font-weight: 600; transition: var(--t-fast);
}
.auth-tab:hover  { border-color: #cbd5e1; color: var(--ink-4); }
.auth-tab.active { background: var(--brand-150); border-color: transparent; color: var(--brand);
                   box-shadow: 0 2px 10px var(--brand-ring); }

.auth-form { display: flex; flex-direction: column; gap: .95rem; }
.auth-field > label { display: block; font-size: .84rem; font-weight: 600;
                      color: var(--ink-2); margin-bottom: .42rem; }
.auth-input-wrap {
  display: flex; align-items: center; gap: .6rem;
  padding: 0 1rem;
  border: 1.5px solid var(--line-2); border-radius: var(--r-lg);
  background: #fff; transition: var(--t-fast);
}
.auth-input-wrap > svg.i { color: var(--muted-2); font-size: 1rem; }
.auth-input-wrap input {
  flex: 1; min-width: 0; border: none; background: transparent; outline: none;
  padding: .8rem 0; font-size: .92rem;
}
.auth-input-wrap input::placeholder { color: #b6c2d2; }
.auth-input-wrap:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
.auth-input-wrap:focus-within > svg.i { color: var(--brand); }
.auth-input-wrap .suffix {
  border: none; background: none; color: var(--muted-2); padding: .3rem; border-radius: var(--r-sm);
  display: flex; transition: var(--t-fast);
}
.auth-input-wrap .suffix:hover { color: var(--brand); background: var(--brand-50); }

.auth-links { display: flex; justify-content: space-between; align-items: center;
              margin-top: -.15rem; font-size: .82rem; }
.auth-links-end { justify-content: flex-end; }
.auth-links a { font-weight: 500; }

.auth-submit {
  margin-top: .55rem; width: 100%;
  border-radius: var(--r-lg); padding: .92rem;
  background: linear-gradient(135deg, var(--brand) 0%, #3b82f6 100%);
  color: #fff; font-weight: 600; font-size: 1rem;
  box-shadow: 0 6px 18px var(--brand-shadow);
  transition: var(--t-fast);
  display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.auth-submit:hover:not(:disabled) { transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(37,99,235,.34); filter: brightness(1.04); }
.auth-submit:active:not(:disabled) { transform: translateY(0); }
.auth-submit:disabled { opacity: .62; cursor: not-allowed; }

.auth-hint {
  margin-top: 1.35rem; padding-top: 1.1rem;
  border-top: 1px dashed var(--line-2);
  font-size: .74rem; color: var(--muted-2); line-height: 1.75; text-align: center;
}
.auth-hint b { color: var(--muted); font-weight: 600; }
.auth-hint code {
  font-family: var(--mono); font-size: .72rem;
  background: var(--surface-3); color: var(--brand-ink);
  padding: .1rem .38rem; border-radius: 5px;
}
.auth-hint .quick { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.auth-hint .quick button {
  font-size: .72rem; font-weight: 600; color: var(--brand);
  background: var(--brand-50); border: 1px solid var(--brand-100);
  padding: .28rem .7rem; border-radius: var(--r-pill); transition: var(--t-fast);
}
.auth-hint .quick button:hover { background: var(--brand-100); }

/* 登录页底部备案号 / 技术支持 */
.auth-foot {
  margin-top: 1.15rem; padding-top: .9rem;
  border-top: 1px dashed var(--line-2);
  text-align: center; font-size: .74rem; color: var(--muted-2); line-height: 1.8;
}
.auth-foot .beian { color: var(--muted); font-weight: 500; }
.auth-foot .tech { color: var(--muted-2); }

/* 登录页「一起合作」合作专区 */
.auth-coop {
  margin-top: 1rem; padding: 1.05rem 1rem .95rem;
  background: #fff; border: 1px solid var(--line, #e2e8f0); border-radius: 16px;
  box-shadow: 0 12px 30px -20px rgba(15, 23, 42, .28);
}
.coop-head { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.02rem; color: var(--brand, #2563eb); }
.coop-head svg { width: 20px; height: 20px; }
.coop-sub { margin-top: .2rem; font-size: .76rem; color: var(--muted, #64748b); }
.coop-grid { display: grid; grid-template-columns: 1fr; gap: .8rem; margin: .9rem 0 .5rem; }
.coop-card {
  display: flex; gap: .7rem; align-items: center; padding: .7rem;
  border: 1px solid #eef2f7; border-radius: 12px; background: #fafcff;
}
.coop-qr {
  position: relative; flex: 0 0 84px; width: 84px; height: 84px;
  border: 1px dashed #cbd5e1; border-radius: 10px; background: #fff;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.coop-qr .qr-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.coop-qr .qr-ico { display: flex; color: #cbd5e1; }
.coop-qr .qr-ico svg { width: 34px; height: 34px; }
.coop-meta { min-width: 0; }
.coop-region { font-size: .74rem; color: var(--muted, #64748b); }
.coop-name { font-weight: 700; font-size: .98rem; margin: .12rem 0 .3rem; color: var(--ink-4, #1e293b); }
.coop-phone {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .86rem; color: var(--brand, #2563eb); text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.coop-phone svg { width: 14px; height: 14px; }
.coop-foot { margin-top: .55rem; text-align: center; font-size: .82rem; color: var(--ink-3, #475569); font-weight: 600; }
/* 宽屏（≥1280px）：登录卡片在视口正中，合作专区钉在页面右侧（垂直居中） */
@media (min-width: 1280px) {
  .auth-coop {
    position: fixed; top: 50%; right: 2.5rem; transform: translateY(-50%);
    width: 360px; margin-top: 0;
  }
}

/* ==========================================================================
   5. APP SHELL
   ========================================================================== */
.app { height: 100%; display: flex; flex-direction: column; min-height: 0; background: #fff; }

/* ---- Header ---- */
.app-header {
  flex: none; position: relative; z-index: 60;
  /* 原先这里的 backdrop-filter 会在每次滚动时重算全屏背景模糊，
     在 4 万像素高的结果表上直接造成掉帧；改为不透明底 + 阴影，观感几乎一致 */
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  padding: .7rem 1.6rem .65rem;
  box-shadow: 0 1px 0 rgba(15, 54, 110, .02);
}
.header-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.brandline { display: flex; align-items: center; gap: .65rem; flex: none; }
.brandline .logo {
  width: 38px; height: 38px; border-radius: var(--r-md); flex: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, var(--brand) 0%, #3b82f6 60%, #60a5fa 100%);
  color: #fff; font-size: 1.15rem;
  box-shadow: 0 4px 12px var(--brand-shadow);
}
/* 志愿师上传的机构 Logo（data URL），替换默认图标，保持 38px 方块的视觉重量 */
.brandline .logo .logo-img {
  width: 38px; height: 38px; border-radius: var(--r-md); object-fit: cover; display: block;
  background: #fff;
}
.brandline h1 { font-size: 1.12rem; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.brandline .sub { font-size: .68rem; color: var(--muted-2); letter-spacing: .04em; white-space: nowrap; }

/* 资讯滚动 */
.news-ticker {
  flex: 1 1 200px; min-width: 0; display: flex; align-items: center; gap: .55rem;
  background: var(--surface-1); border: 1px solid var(--line-3);
  border-radius: var(--r-pill); padding: .3rem .3rem .3rem .85rem;
  overflow: hidden;
}
.news-ticker .tag {
  flex: none; display: inline-flex; align-items: center; gap: .28rem;
  font-size: .68rem; font-weight: 700; color: var(--amber-ink);
  background: var(--amber-bg); padding: .16rem .58rem; border-radius: var(--r-pill);
  white-space: nowrap;
}
.news-ticker .view { flex: 1; min-width: 0; overflow: hidden; }
.news-ticker .track { display: inline-flex; gap: 3rem; white-space: nowrap;
                      animation: marquee 34s linear infinite; }
.news-ticker:hover .track { animation-play-state: paused; }
.news-ticker .track span { font-size: .78rem; color: var(--ink-5); }

/* 胶囊导航 */
.nav-actions { display: flex; align-items: center; gap: .38rem; flex-wrap: wrap; margin-left: auto; }
.nav-btn {
  display: inline-flex; align-items: center; gap: .34rem;
  padding: .34rem .85rem; border-radius: var(--r-pill);
  font-size: .78rem; font-weight: 600; color: var(--ink-3);
  background: var(--surface-3); white-space: nowrap;
  transition: var(--t-fast);
}
.nav-btn svg.i { font-size: .82rem; }
.nav-btn:hover { background: var(--line-2); transform: translateY(-1px); text-decoration: none; }
.nav-btn.org       { background: var(--amber-bg); color: var(--amber-ink); }
.nav-btn.org       svg.i { color: var(--amber); }
.nav-btn.org:hover { background: #fde68a; }
.nav-btn.plan      { background: var(--pink-bg);  color: var(--pink-ink); }
.nav-btn.plan      svg.i { color: var(--pink); }
.nav-btn.plan:hover{ background: #fbcfe8; }
.nav-btn.three     { background: var(--sky-bg);   color: var(--sky-ink); }
.nav-btn.three     svg.i { color: var(--sky); }
.nav-btn.three:hover { background: #bae6fd; }
.nav-btn.volunteer { background: var(--violet-bg);color: var(--violet-ink); }
.nav-btn.volunteer svg.i { color: var(--violet); }
.nav-btn.volunteer:hover { background: #ddd6fe; }
.nav-btn.logout    { background: var(--surface-3); color: var(--ink-5); }
.nav-btn.logout:hover { background: var(--red-bg); color: var(--red-ink); }

.vip-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .24rem .75rem; border-radius: var(--r-pill);
  font-size: .72rem; font-weight: 700;
  background: var(--surface-3); color: var(--ink-5); border: 1px solid var(--line-2);
}
.vip-badge svg.i { font-size: .68rem; }
.vip-badge.active { background: var(--green-bg); color: var(--green-ink); border-color: #86efac; }
.vip-badge.trial  { background: var(--amber-bg); color: var(--amber-ink); border-color: #fde68a; }

/* ---- Body / scroll area ---- */
.app-body { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; }
.page { padding: 1.1rem 1.6rem 1.4rem; display: flex; flex-direction: column; gap: .9rem; flex: 1; min-height: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between;
             gap: .8rem; flex-wrap: wrap; }
.page-head h2 { font-size: 1.15rem; display: flex; align-items: center; gap: .45rem; }
.page-head h2 svg.i { color: var(--brand); font-size: 1.05rem; }
.page-head .desc { font-size: .78rem; color: var(--muted-2); margin-top: .15rem; }

/* ==========================================================================
   6. CARDS / PANELS
   ========================================================================== */
.card {
  background: #fff; border: 1px solid var(--line-3);
  border-radius: var(--r-2xl); box-shadow: var(--sh-xs);
}
.card-pad { padding: 1.15rem 1.3rem; }

.panel {
  background: #fff; border: 1px solid var(--line-3); border-radius: var(--r-3xl);
  box-shadow: 0 4px 16px rgba(15, 54, 110, .05);
  display: flex; flex-direction: column; min-height: 0; overflow: hidden;
}
.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: .6rem; flex-wrap: wrap;
  padding: 1rem 1.4rem; border-bottom: 1px solid var(--line);
}
.panel-header .title { display: flex; align-items: center; gap: .45rem; font-weight: 700;
                       font-size: .95rem; color: var(--ink); }
.panel-header .title svg.i { color: var(--brand); font-size: .95rem; }
.panel-header .title .count {
  font-size: .7rem; font-weight: 700; color: var(--brand);
  background: var(--brand-50); padding: .1rem .5rem; border-radius: var(--r-pill);
}
.panel-body { padding: 1.1rem 1.4rem; }
.panel-body.flush { padding: 0; }

/* ==========================================================================
   7. FORM CONTROLS
   ========================================================================== */
.field { display: flex; flex-direction: column; gap: .34rem; }
.field > label { font-size: .74rem; font-weight: 600; color: var(--ink-5); }

.input, .select, .textarea {
  width: 100%; padding: .55rem .8rem;
  border: 1.5px solid var(--line-2); border-radius: var(--r-md);
  background: #fff; font-size: .84rem; outline: none;
  transition: var(--t-fast);
}
.input::placeholder, .textarea::placeholder { color: #b6c2d2; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring);
}
.select {
  appearance: none; cursor: pointer; font-weight: 600; text-align: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .5rem center;
  padding-right: 1.5rem;
}
.textarea { resize: vertical; min-height: 74px; line-height: 1.6; }

.input-icon { position: relative; display: flex; align-items: center; }
.input-icon > svg.i { position: absolute; left: .7rem; color: var(--muted-2);
                      font-size: .9rem; pointer-events: none; }
.input-icon > .input { padding-left: 2.05rem; }

/* 学考等第 —— 十科 A–E */
.grade-panel {
  border: 1px solid var(--line-3); border-radius: var(--r-xl);
  background: var(--surface-1); overflow: hidden;
}
.grade-panel > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: .5rem;
  padding: .65rem 1rem; font-size: .82rem; font-weight: 700; color: var(--ink-3);
}
.grade-panel > summary::-webkit-details-marker { display: none; }
.grade-panel > summary svg.i.lead { color: var(--brand); font-size: .9rem; }
.grade-panel > summary .chev { margin-left: auto; color: var(--muted-2); transition: var(--t); }
.grade-panel[open] > summary .chev { transform: rotate(180deg); }
.grade-panel > summary .filled {
  font-size: .68rem; font-weight: 700; color: var(--brand);
  background: var(--brand-50); padding: .08rem .5rem; border-radius: var(--r-pill);
}
.grade-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: .55rem; padding: 0 1rem 1rem;
}
.grade-item { display: flex; flex-direction: column; gap: .28rem; }
.grade-item label { font-size: .72rem; font-weight: 600; color: var(--ink-5); text-align: center; }
.grade-item .select { font-size: .78rem; padding: .38rem 1.3rem .38rem .4rem; }
.grade-item .select[data-g="A"] { color: var(--green); border-color: #bbf7d0; background-color: #f6fef9; }
.grade-item .select[data-g="B"] { color: var(--brand); border-color: var(--brand-200); background-color: var(--brand-tint); }
.grade-item .select[data-g="C"] { color: var(--amber); border-color: #fde68a; background-color: #fffdf5; }
.grade-item .select[data-g="D"] { color: #ea580c; border-color: #fed7aa; background-color: #fffaf5; }
.grade-item .select[data-g="E"] { color: var(--red);  border-color: #fecaca; background-color: #fff8f8; }

/* ==========================================================================
   8. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .36rem;
  padding: .48rem 1.05rem; border-radius: var(--r-pill);
  font-size: .8rem; font-weight: 600; white-space: nowrap;
  transition: var(--t-fast);
}
.btn svg.i { font-size: .82rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 2px 8px var(--brand-shadow); }
.btn-primary:hover:not(:disabled) { background: var(--brand-hover);
  box-shadow: 0 6px 18px rgba(37,99,235,.30); transform: translateY(-1px); }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover:not(:disabled) { background: var(--green-hover); transform: translateY(-1px); }
.btn-danger  { background: var(--red-bg); color: var(--red-ink); }
.btn-danger:hover:not(:disabled)  { background: #fecaca; }
.btn-warn    { background: var(--amber); color: #fff; }
.btn-warn:hover:not(:disabled) { background: var(--amber-hover); transform: translateY(-1px); }
.btn-cyan    { background: var(--cyan); color: #fff; }
.btn-cyan:hover:not(:disabled) { background: var(--cyan-hover); }
.btn-ghost   { background: var(--surface-3); color: var(--ink-3); }
.btn-ghost:hover:not(:disabled) { background: var(--line-2); transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--ink-5); border: 1.5px solid var(--line-2); }
.btn-outline:hover:not(:disabled) { background: var(--surface-3); border-color: #cbd5e1; }
.btn-sm { padding: .22rem .6rem; font-size: .7rem; }
.btn-sm svg.i { font-size: .7rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   9. TOOLBAR / QUERY BAR
   ========================================================================== */
.query-bar {
  background: #fff; border: 1px solid var(--line-3); border-radius: var(--r-2xl);
  box-shadow: var(--sh-xs); padding: .9rem 1.1rem;
  display: flex; flex-direction: column; gap: .8rem;
}
.query-row { display: flex; align-items: flex-end; gap: .55rem; flex-wrap: wrap; }
.query-row .field { flex: 0 1 auto; }
.query-row .field.w-name  { width: 148px; }
.query-row .field.w-phone { width: 170px; }
.query-row .field.w-mid   { width: 150px; }
.query-row .grow { flex: 1 1 120px; }
.query-divider { width: 1px; align-self: stretch; background: var(--line-2); margin: 0 .25rem; }
.query-actions { display: flex; align-items: center; gap: .45rem; margin-left: auto; }

.toolbar { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.toolbar .spacer { flex: 1 1 auto; }

/* ==========================================================================
   10. TABLE
   ========================================================================== */
.table-scroll { overflow: auto; flex: 1; min-height: 0; }
table.grid {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: .76rem; background: #fff; min-width: 1280px;
}
table.grid th, table.grid td {
  padding: .5rem .38rem; text-align: center; vertical-align: middle;
  border-bottom: 1px solid var(--line); color: var(--ink-3);
}
table.grid thead th {
  position: sticky; top: 0; z-index: 20;
  background: var(--surface-1); color: var(--ink-5);
  font-size: .64rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  border-bottom: 1.5px solid var(--line-4); white-space: nowrap; line-height: 1.3;
}
table.grid thead th.group {
  background: var(--surface-2); color: var(--muted);
  font-size: .6rem; letter-spacing: .08em;
}
table.grid thead tr:nth-child(2) th { top: 28px; }
/* 结果表有 459 行，逐行挂 background 过渡会让批量重绘变慢；
   hover 反馈改用不带过渡的即时换色（详见 result-grid 规则） */
table.grid:not(.result-grid) tbody tr { transition: background var(--t-fast); }
table.grid tbody tr:hover td { background: var(--surface-1); }
table.grid tbody tr.is-picked td { background: #f4fbf6; }
table.grid tbody tr.is-picked:hover td { background: #eafaf0; }
table.grid tbody tr:last-child td { border-bottom: none; }
table.grid td.left, table.grid th.left { text-align: left; }
table.grid td.tight { padding-left: .2rem; padding-right: .2rem; }

.cell-school { display: flex; flex-direction: column; gap: .18rem; text-align: left; min-width: 132px; }
.cell-school .name { font-weight: 700; color: #0b2b4a; font-size: .78rem; line-height: 1.3; }
.cell-school .name.link { color: var(--brand-hover); cursor: pointer; }
.cell-school .name.link:hover { text-decoration: underline; }
.cell-major { text-align: left; min-width: 150px; }
.cell-major .m { font-size: .74rem; color: var(--brand-ink); font-weight: 600; line-height: 1.35; }
.cell-major .s { font-size: .64rem; color: var(--muted-2); margin-top: .1rem; }
.cell-major .fee { font-size: .66rem; color: var(--muted-2); margin-top: .22rem; line-height: 1.3; }
.cell-major .fee .num { color: var(--ink-3); font-weight: 600; }
/* 专业名可点开「专升本详情」弹窗（与中职查询页同款）；下方绿字为专升本类别 */
.cell-major .m.zz-major-cell { cursor: pointer; }
.cell-major .m.zz-major-cell:hover { color: var(--brand); text-decoration: underline; }
.cell-major .zsb-line { font-size: .64rem; font-weight: 600; color: #166534; margin-top: .1rem; line-height: 1.35; }

.tag-group { display: flex; flex-wrap: wrap; gap: .18rem; }
.tag {
  font-size: .6rem; font-weight: 600; padding: .08rem .4rem;
  border-radius: var(--r-pill); white-space: nowrap; line-height: 1.5;
}
.tag-city  { background: #e6f0fa; color: #1a4b78; border: 1px solid #c9ddec; }
.tag-type  { background: #eaf3ec; color: #1f5a3a; border: 1px solid #c7e0d0; }
.tag-label { background: #fdeceb; color: #b42318; border: 1px solid #f4c4bd; } /* 临界：警示红 */
.tag-plain { background: var(--surface-3); color: var(--ink-5); border: 1px solid var(--line-2); }
.tag-link { background: #e8f1fd; color: #1157b8; border: 1px solid #c4dbf5; text-decoration: none; }
.tag-link:active { opacity: .75; }
.tag-school { background: #f3f6fb; color: #2b4a6f; border: 1px solid #d6e0ee; }
/* 院校扩展标签配色（按类别区分） */
.tag-code   { background: #eef1f4; color: #44515f; border: 1px solid #d4dae1; } /* 院校代码：石墨灰 */
.tag-rank   { background: #fff1e3; color: #b45309; border: 1px solid #f6d8b0; } /* 软科排名：琥珀 */
.tag-dept   { background: #edeafd; color: #4a2d7a; border: 1px solid #d8cdec; } /* 主管部门：靛紫 */
.tag-feature{ background: #e3f6f5; color: #0b6b66; border: 1px solid #b7e3e0; } /* 特色/高水平：青绿 */
.tag-honor  { background: #fcf3df; color: #92670a; border: 1px solid #efdca0; } /* 荣誉(骨干高职)：金 */
.tag-tel    { background: #fdeef3; color: #b4235f; border: 1px solid #f6c9d8; } /* 招办电话：玫红 */
.school-tags { margin-top: .04rem; }
.school-score { display: flex; align-items: baseline; gap: .3rem; font-size: .64rem; line-height: 1.3; }
.school-score .k { color: var(--muted-2); }
.school-score .v { color: var(--ink-3); font-weight: 700; font-variant-numeric: tabular-nums; }

.num { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-3); }
.num.brand  { color: var(--brand); font-weight: 700; }
.num.mine   { color: var(--brand); font-weight: 800; font-size: .84rem; }
.num.up     { color: var(--green); }
.num.down   { color: var(--red); }
.num.muted  { color: var(--muted-2); font-weight: 500; }
.delta { font-weight: 700; font-size: .7rem; }
.delta.pos { color: var(--green); }
.delta.neg { color: var(--red); }

.badge {
  display: inline-block; padding: .1rem .52rem; border-radius: var(--r-pill);
  font-size: .64rem; font-weight: 700; white-space: nowrap;
}
.badge.in      { background: var(--green-bg); color: var(--green-ink); }
.badge.out     { background: var(--red-bg);   color: var(--red-ink); }
.badge.maybe   { background: var(--amber-bg); color: var(--amber-ink); }
.badge.unknown { background: var(--surface-3);color: var(--muted); }
.badge.brand   { background: var(--brand-50); color: var(--brand); }

.check {
  width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer;
  vertical-align: middle;
}

.empty { padding: 3.4rem 1rem; text-align: center; color: var(--muted-2); }
.empty svg.i { font-size: 2.4rem; margin: 0 auto .7rem; color: #cbd5e1; }
.empty .t { font-size: .9rem; font-weight: 600; color: var(--ink-5); }
.empty .d { font-size: .76rem; margin-top: .25rem; }

.table-footer {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  gap: .8rem; flex-wrap: wrap;
  padding: .7rem 1.4rem; border-top: 1px solid var(--line); background: #fff;
}
.table-footer .info { font-size: .76rem; color: var(--muted-2); }
.table-footer .info b { color: var(--ink-3); font-weight: 700; }
.pager { display: flex; align-items: center; gap: .3rem; }
.pager button {
  min-width: 30px; height: 30px; padding: 0 .5rem; border-radius: var(--r-md);
  font-size: .76rem; font-weight: 600; color: var(--ink-5); background: var(--surface-3);
  transition: var(--t-fast);
}
.pager button:hover:not(:disabled) { background: var(--line-2); }
.pager button.on { background: var(--brand); color: #fff; box-shadow: 0 2px 8px var(--brand-shadow); }
.pager button:disabled { opacity: .4; cursor: not-allowed; }

/* ==========================================================================
   11. VIP BANNER
   ========================================================================== */
.vip-banner {
  display: flex; align-items: center; justify-content: center; gap: 1.1rem;
  flex-wrap: wrap;
  background: linear-gradient(120deg, #fffdf5 0%, var(--amber-soft) 100%);
  border: 1px solid var(--amber-line); border-radius: var(--r-xl);
  padding: 1rem 1.5rem; min-height: 68px;
}
.vip-banner .lead { display: flex; align-items: center; gap: .6rem;
                    font-size: .86rem; color: var(--amber-ink-2); }
.vip-banner .lead svg.i { font-size: 1.2rem; color: var(--amber); flex: none; }
.vip-banner .lead strong { color: var(--amber-ink); }
.vip-banner .lead em { font-style: normal; font-weight: 800; color: var(--red); }

/* ==========================================================================
   12. STAT CARDS
   ========================================================================== */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: .8rem; }
.stat {
  background: #fff; border: 1px solid var(--line-3); border-radius: var(--r-2xl);
  padding: .95rem 1.1rem; display: flex; align-items: center; gap: .85rem;
  box-shadow: var(--sh-xs); transition: var(--t);
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--sh-hover); border-color: var(--brand-100); }
.stat .ico {
  width: 42px; height: 42px; border-radius: var(--r-lg); flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  background: var(--brand-50); color: var(--brand);
}
.stat .ico.green { background: var(--green-bg); color: var(--green); }
.stat .ico.amber { background: var(--amber-bg); color: var(--amber); }
.stat .ico.pink  { background: var(--pink-bg);  color: var(--pink); }
.stat .ico.violet{ background: var(--violet-bg);color: var(--violet); }
.stat .v { font-size: 1.35rem; font-weight: 800; color: var(--ink); line-height: 1.1;
           font-variant-numeric: tabular-nums; }
.stat .k { font-size: .72rem; color: var(--muted-2); margin-top: .1rem; }

/* ==========================================================================
   13. PLAN CARDS (我的方案)
   ========================================================================== */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: .85rem; }
.plan-card {
  background: var(--surface-1); border: 1.5px solid #e8edf6; border-radius: var(--r-3xl);
  padding: 1.1rem 1.2rem .95rem; transition: var(--t); position: relative;
  display: flex; flex-direction: column; gap: .5rem;
}
.plan-card:hover { border-color: var(--brand); background: var(--brand-tint);
                   box-shadow: var(--sh-hover); transform: translateY(-2px); }
.plan-card .idx {
  position: absolute; top: -9px; left: 16px;
  background: var(--brand); color: #fff; font-size: .6rem; font-weight: 800;
  padding: .12rem .6rem; border-radius: var(--r-pill); letter-spacing: .04em;
}
.plan-card h4 { font-size: .92rem; line-height: 1.35; }
.plan-card .major { font-size: .78rem; color: var(--brand-ink); font-weight: 600; }
.plan-card .meta { display: flex; flex-wrap: wrap; gap: .28rem; }
.plan-card .rows { display: flex; flex-direction: column; gap: .22rem;
                   border-top: 1px dashed var(--line-2); padding-top: .5rem; }
.plan-card .row { display: flex; align-items: baseline; justify-content: space-between;
                  font-size: .74rem; color: var(--muted); gap: .5rem; }
.plan-card .row b { color: var(--ink-3); font-weight: 700; font-variant-numeric: tabular-nums; }
.plan-card .foot { display: flex; gap: .4rem; margin-top: .3rem; }
.plan-card .foot .btn { flex: 1; }

/* ==========================================================================
   14. MODAL & SLIDE PANEL
   ========================================================================== */
.overlay {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(15, 23, 42, .45);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; animation: fadeIn .18s ease; overflow-y: auto;
}
.modal {
  background: #fff; border-radius: var(--r-4xl);
  padding: 1.9rem 2.1rem 1.6rem; width: 100%; max-width: 540px;
  box-shadow: var(--sh-pop); animation: fadeUp .25s var(--ease);
  max-height: 90vh; overflow-y: auto; margin: auto;
}
.modal.narrow { max-width: 400px; }
.modal.wide   { max-width: 720px; }
.modal-head { display: flex; align-items: flex-start; gap: .7rem; margin-bottom: 1.1rem; }
.modal-head .ico {
  width: 42px; height: 42px; border-radius: var(--r-lg); flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
  background: var(--brand-50); color: var(--brand);
}
.modal-head .ico.gold  { background: var(--amber-bg); color: var(--amber); }
.modal-head .ico.green { background: var(--green-bg); color: var(--green); }
.modal-head h3 { font-size: 1.12rem; display: flex; align-items: center; gap: .4rem; }
.modal-head .sub { font-size: .78rem; color: var(--muted-2); margin-top: .15rem; }
.modal-close { margin-left: auto; color: var(--muted-2); font-size: 1.05rem;
               padding: .3rem; border-radius: var(--r-md); transition: var(--t-fast); }
.modal-close:hover { background: var(--surface-3); color: var(--ink-2); }
.modal-actions { display: flex; justify-content: flex-end; gap: .6rem;
                 margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); }

/* info grid */
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem .7rem; }
/* 折算方式：6 项固定排成「2 行 × 3 列」 */
.info-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info-item {
  display: flex; flex-direction: column; gap: .2rem; min-width: 0;
  background: var(--surface-1); border: 1px solid var(--line-3);
  border-radius: var(--r-lg); padding: .5rem .68rem;
}
.info-item.full { grid-column: 1 / -1; }
.info-item .k { font-size: .62rem; font-weight: 700; color: var(--muted);
                letter-spacing: .06em; }
.info-item .v { font-size: .86rem; font-weight: 600; color: var(--ink);
                word-break: break-word; }
.info-item .v.plain { font-weight: 500; color: var(--ink-4); }
.info-item .input, .info-item .select, .info-item .textarea { margin-top: .3rem; font-weight: 500; }

/* 招生信息：固定「3 行」布局（每行内部再按列排布） */
.info-rows { display: flex; flex-direction: column; gap: .6rem; }
.info-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem .7rem; }
.info-row.row-half { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* 右滑详情 */
.slide-panel {
  position: fixed; top: 0; right: -100%; width: 100%; height: 100%;
  background: var(--surface-2); z-index: 1050; overflow-y: auto;
  box-shadow: -8px 0 40px rgba(0, 0, 0, .12);
  transition: right .42s var(--ease);
  padding: 0;                       /* 内边距交由各区块自己控制 */
  display: flex; flex-direction: column;
}
.slide-panel.open { right: 0; }

/* ── 顶部固定栏 ── */
.dp-head {
  position: sticky; top: 0; z-index: 12; flex: none;
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.15rem 2.2rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line-2);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .03);
}
.dp-head-text { flex: 1; min-width: 0; }
.dp-eyebrow {
  display: inline-flex; align-items: center; gap: .34rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  color: var(--brand);
}
.dp-eyebrow svg.i { font-size: .82rem; }
.dp-title {
  font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em;
  line-height: 1.22; color: var(--ink); margin: .3rem 0 0;
}
.dp-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
.dp-tags .tag { font-size: .72rem; padding: .18rem .68rem; }
.dp-close {
  flex: none; width: 38px; height: 38px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-3); color: var(--ink-4);
  border: 1px solid var(--line-2); cursor: pointer;
  transition: var(--t-fast);
}
.dp-close:hover { background: var(--brand-50); color: var(--brand); border-color: var(--brand-200); }
.dp-close:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.dp-close svg.i { font-size: 1rem; }

/* ── 内容区 ── */
.dp-body {
  flex: 1 1 auto;
  padding: 1.2rem 2.2rem 1.6rem;
  display: flex; flex-direction: column; gap: .95rem;
}
/* 详情右滑面板的遮罩：承接「点框外关闭」。
   注意：不要用 backdrop-filter / transform / filter / contain，
   否则会变为 fixed 子孙（slide-panel）的包含块，使 right:0 相对遮罩而非视口。 */
.slide-bg {
  position: fixed; inset: 0; z-index: 1048;
  background: rgba(15, 23, 42, .35);
  animation: fadeIn .18s ease;
}
/* ── 关键指标卡 ── */
.dp-hero { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
.dp-stat {
  display: flex; flex-direction: column; gap: .32rem; min-width: 0;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-xl); padding: .72rem .9rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}
.dp-stat-k {
  font-size: .66rem; font-weight: 700; letter-spacing: .06em;
  color: var(--muted); text-transform: uppercase;
}
.dp-stat-v {
  font-size: 1rem; font-weight: 700; color: var(--brand-ink);
  line-height: 1.4; word-break: break-word;
}
.dp-stat-v.big { font-size: 1.5rem; color: var(--brand); font-variant-numeric: tabular-nums; }
.dp-stat.accent {
  background: linear-gradient(135deg, var(--brand-50) 0%, #fff 80%);
  border-color: var(--brand-100);
}
.dp-stat.ok    { background: var(--green-bg); border-color: #bbf7d0; }
.dp-stat.ok    .dp-stat-k { color: var(--green-ink); }
.dp-stat.ok    .dp-stat-v { color: var(--green-ink); }
.dp-stat.bad   { background: var(--red-bg);   border-color: #fecaca; }
.dp-stat.bad   .dp-stat-k { color: var(--red-ink); }
.dp-stat.bad   .dp-stat-v { color: var(--red-ink); }
.dp-stat.muted { background: var(--surface-3); }
.dp-stat.muted .dp-stat-v { color: var(--muted); }

/* ── 内容卡片 ── */
.detail-section {
  margin: 0;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-2xl); padding: 1.05rem 1.15rem 1.15rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}
.detail-section > h4 {
  display: flex; align-items: center; gap: .45rem;
  font-size: .95rem; font-weight: 700; color: var(--ink);
  padding: 0 0 .6rem; margin: 0 0 .8rem;
  border-bottom: 1px solid var(--line);
}
.detail-section > h4 svg.i { color: var(--brand); font-size: 1rem; flex: none; }
.dp-hint {
  margin-left: .5rem; font-size: .68rem; font-weight: 600;
  color: var(--muted); background: var(--surface-3);
  border-radius: var(--r-pill); padding: .1rem .5rem;
}

/* ── 底部固定操作栏 ── */
.dp-foot {
  position: sticky; bottom: 0; z-index: 12; flex: none;
  display: flex; justify-content: flex-end; gap: .6rem;
  padding: .9rem 2.2rem calc(.9rem + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-top: 1px solid var(--line-2);
  box-shadow: 0 -1px 3px rgba(15, 23, 42, .03);
}

/* 时间轴 */
.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before { content: ""; position: absolute; left: 5px; top: .4rem; bottom: .4rem;
                    width: 2px; background: var(--line-2); border-radius: 2px; }
.timeline .tl { position: relative; padding: .35rem 0; display: flex;
                align-items: baseline; gap: .7rem; flex-wrap: wrap; }
.timeline .tl::before { content: ""; position: absolute; left: -1.35rem; top: .72rem;
                        width: 9px; height: 9px; border-radius: 50%;
                        background: #fff; border: 2px solid var(--brand-100); }
.timeline .tl.done::before { background: var(--brand); border-color: var(--brand-100); }
.timeline .tl .k { font-size: .76rem; font-weight: 600; color: var(--ink-5); min-width: 96px; }
.timeline .tl .v { font-size: .82rem; font-weight: 700; color: var(--ink); }

/* ==========================================================================
   15. ORG / SETTINGS
   ========================================================================== */
.form-grid { display: flex; flex-direction: column; gap: .95rem; max-width: 620px; }
.form-row { display: flex; align-items: center; gap: .8rem; }
.form-row > label { font-size: .8rem; font-weight: 700; color: var(--ink-3);
                    min-width: 104px; text-align: right; flex: none; }
.form-row > .input, .form-row > .select, .form-row > .textarea { flex: 1; min-width: 0; }
.section-title {
  display: flex; align-items: center; gap: .5rem;
  font-size: .85rem; font-weight: 700; color: var(--brand);
  padding: .5rem 0 .4rem; border-bottom: 1px solid var(--line); margin-bottom: .2rem;
}
.section-title svg.i { font-size: 1rem; }
.section-title .hint { margin-left: auto; font-size: .7rem; font-weight: 500; color: var(--muted-2); }

.action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem; }
.action-btn {
  display: flex; align-items: center; gap: .8rem; text-align: left;
  padding: .8rem 1.1rem; border-radius: var(--r-lg);
  border: 1px solid var(--line-3); background: var(--surface-1);
  transition: var(--t);
}
.action-btn:hover { border-color: var(--brand); background: #f0f5fe;
                    transform: translateY(-2px); box-shadow: var(--sh-hover); }
.action-btn .ico { width: 38px; height: 38px; border-radius: 50%; flex: none;
                   display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.action-btn .ico.gold  { background: var(--amber-bg); color: var(--amber); }
.action-btn .ico.green { background: var(--green-bg); color: var(--green); }
.action-btn .ico.blue  { background: var(--brand-100); color: var(--brand); }
.action-btn .txt { flex: 1; min-width: 0; }
.action-btn .txt .t { font-size: .87rem; font-weight: 700; color: var(--ink); }
.action-btn .txt .d { font-size: .73rem; color: var(--muted-2); }
.action-btn .arr { color: var(--muted-2); transition: var(--t); }
.action-btn:hover .arr { color: var(--brand); transform: translateX(4px); }

.news-list { display: flex; flex-direction: column; }
.news-item { display: flex; align-items: center; gap: .7rem; padding: .6rem .2rem;
             border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: none; }
.news-item .idx { font-size: .68rem; font-weight: 700; color: var(--muted-2);
                  min-width: 20px; text-align: center; }
.news-item .txt { flex: 1; font-size: .82rem; color: var(--ink-3); min-width: 0; }
.news-item .txt.off { color: var(--muted-2); text-decoration: line-through; }
.news-item .ops { display: flex; gap: .3rem; }

.teacher-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .8rem; }
.teacher-card { border: 1px solid var(--line-3); border-radius: var(--r-xl);
                padding: .9rem 1rem; background: var(--surface-1);
                display: flex; gap: .75rem; transition: var(--t); }
.teacher-card:hover { border-color: var(--brand-100); box-shadow: var(--sh-xs); }
.teacher-card .avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, var(--brand-100), var(--brand-50));
  color: var(--brand); font-weight: 800; font-size: 1rem;
}
.teacher-card .info { min-width: 0; flex: 1; }
.teacher-card .info .n { font-weight: 700; font-size: .87rem; color: var(--ink); }
.teacher-card .info .l { font-size: .72rem; color: var(--muted); margin-top: .1rem; }
.teacher-card .info .b { font-size: .72rem; color: var(--ink-5); margin-top: .35rem;
                         display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
                         overflow: hidden; }

.avatar-upload { display: flex; align-items: center; gap: .7rem; }
.avatar-upload .prev {
  width: 56px; height: 56px; border-radius: var(--r-lg); flex: none;
  border: 1.5px dashed var(--line-2); background: var(--surface-1);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted-2); font-size: 1.2rem; overflow: hidden;
}
.avatar-upload .prev img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   16. TOAST
   ========================================================================== */
.toast-host { position: fixed; top: 1.1rem; left: 50%; transform: translateX(-50%);
              z-index: 4000; display: flex; flex-direction: column; gap: .5rem;
              align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: .5rem;
  background: #fff; border: 1px solid var(--line-3);
  border-radius: var(--r-pill); padding: .55rem 1.1rem;
  font-size: .82rem; font-weight: 600; color: var(--ink-3);
  box-shadow: var(--sh-card); animation: slideDown .22s var(--ease);
  max-width: min(90vw, 460px);
}
.toast.out { animation: fadeIn .2s ease reverse forwards; }
.toast .ico { width: 20px; height: 20px; border-radius: 50%; flex: none;
              display: flex; align-items: center; justify-content: center; font-size: .7rem; color: #fff; }
.toast.ok   .ico { background: var(--green); }
.toast.err  .ico { background: var(--red); }
.toast.info .ico { background: var(--brand); }
.toast.warn .ico { background: var(--amber); }

/* ==========================================================================
   17. FOOTER
   ========================================================================== */
.site-footer {
  flex: none; border-top: 1px solid var(--line-2); background: #fff;
  padding: .7rem 1.6rem .85rem;
  display: flex; align-items: center; justify-content: center;
  gap: .6rem 1.6rem; flex-wrap: wrap;
  font-size: .78rem; color: var(--ink-5);
}
.site-footer .fi { display: flex; align-items: center; gap: .4rem; }
.site-footer .fi svg.i { color: var(--brand); font-size: .82rem; }
.site-footer .fi b { color: var(--ink-3); font-weight: 600; }
.site-footer .fi.phone b { color: var(--brand); }

/* ==========================================================================
   18. RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .header-row { row-gap: .55rem; }
  .news-ticker { order: 3; flex-basis: 100%; }
  .nav-actions { margin-left: 0; }
  /* 详情弹窗：中屏收窄留白、指标卡两列 */
  .dp-head { padding: 1.05rem 1.4rem .9rem; }
  .dp-body { padding: 1.1rem 1.4rem 1.4rem; }
  .dp-foot { padding: .85rem 1.4rem calc(.85rem + env(safe-area-inset-bottom, 0px)); }
  .dp-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 14px; }
  .app-header { padding: .6rem .8rem; }
  .brandline h1 { font-size: 1rem; white-space: normal; }
  .page { padding: .8rem .8rem 1rem; }
  .panel-header, .panel-body { padding: .85rem .9rem; }
  .table-footer { padding: .6rem .9rem; }
  .dp-head { padding: 1rem .95rem .85rem; }
  .dp-title { font-size: 1.25rem; }
  .dp-body { padding: 1rem .95rem 1.3rem; gap: .8rem; }
  .dp-foot { padding: .8rem .95rem calc(.8rem + env(safe-area-inset-bottom, 0px)); }
  .dp-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dp-stat-v.big { font-size: 1.35rem; }
  .detail-section { border-radius: var(--r-xl); padding: .9rem .95rem 1rem; }
  .modal { padding: 1.5rem 1.2rem 1.2rem; border-radius: var(--r-3xl); }
  .info-grid { grid-template-columns: 1fr; }
  .info-row, .info-row.row-half { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; align-items: stretch; gap: .3rem; }
  .form-row > label { text-align: left; min-width: 0; }
  .query-row .field.w-name, .query-row .field.w-phone, .query-row .field.w-mid { width: 100%; }
  .query-actions { margin-left: 0; width: 100%; }
  .query-actions .btn { flex: 1; }
  .query-divider { display: none; }
  .site-footer { flex-direction: column; gap: .3rem; font-size: .74rem; }
  .auth-page { padding: 1rem .9rem; align-items: flex-start; padding-top: 2.2rem; }
  .auth-card { padding: 1.7rem 1.25rem 1.5rem; }
  .stat-row { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}
@media print {
  .app-header, .site-footer, .query-bar, .vip-banner, .toolbar { display: none !important; }
}
