/* =========================================================
   班级门户 · 深海蓝科技风 v5
   设计语言：深海军蓝底（偏蓝不偏黑）/ 霓虹青紫渐变 / 网格纹理 / 柔和发光
   ========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* 品牌霓虹色 */
  --brand-1: #22d3ee;          /* 霓虹青 */
  --brand-2: #818cf8;          /* 靛蓝 */
  --brand-3: #a78bfa;          /* 紫 */
  --grad: linear-gradient(135deg, #06b6d4 0%, #6366f1 50%, #8b5cf6 100%);
  --grad-soft: linear-gradient(135deg, rgba(6,182,212,.14) 0%, rgba(139,92,246,.14) 100%);
  /* 语义色（深色发光系） */
  --ok: #34d399;
  --ok-bg: rgba(52,211,153,.14);
  --warn: #fbbf24;
  --warn-bg: rgba(251,191,36,.14);
  --bad: #f87171;
  --bad-bg: rgba(248,113,113,.13);
  --info: #38bdf8;
  --info-bg: rgba(56,189,248,.14);
  /* 中性色（深海蓝） */
  --bg: #0d1830;
  --bg-2: #101d38;
  --card: rgba(255,255,255,.055);
  --card-2: rgba(255,255,255,.09);
  --text: #e7eefb;
  --text-2: #9fb0cf;
  --text-3: #6d7c9c;
  --line: rgba(148,163,184,.16);
  --glow-cyan: 0 4px 16px -4px rgba(34,211,238,.5);
  --glow-violet: 0 6px 20px -6px rgba(139,92,246,.45);
  --glow-soft: 0 0 34px -10px rgba(34,211,238,.4);
  --shadow-sm: 0 2px 10px -4px rgba(2,6,23,.4), 0 0 0 1px rgba(148,163,184,.08);
  --shadow-md: 0 12px 34px -14px rgba(2,6,23,.55), 0 0 0 1px rgba(148,163,184,.10), 0 0 30px -14px rgba(99,102,241,.3);
  --radius: 16px;
  --radius-sm: 10px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html { -webkit-text-size-adjust: 100%; }

/* 深蓝底 + 网格纹理 + 顶部光晕 */
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Segoe UI", sans-serif;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(6,182,212,.12), transparent 60%),
    radial-gradient(900px 480px at -10% 20%, rgba(139,92,246,.11), transparent 60%),
    linear-gradient(rgba(99,102,241,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,.06) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 44px 44px, 44px 44px, auto;
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
::selection { background: rgba(34,211,238,.25); }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 18px; }

/* 粒子画布（背景层） */
#fxParticles {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}

/* ============ 顶栏（深色毛玻璃） ============ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13,24,48,.78);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(34,211,238,.12);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: .3px; color: var(--text); }
.brand-badge {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad);
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: var(--glow-violet); flex-shrink: 0;
}
.brand-badge svg { width: 18px; height: 18px; }

.mainnav { display: none; }
@media (min-width: 768px) {
  .mainnav { display: flex; gap: 6px; }
  .mainnav a {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-2);
    transition: all .18s ease;
  }
  .mainnav a svg { width: 16px; height: 16px; }
  .mainnav a:hover { background: rgba(34,211,238,.10); color: var(--brand-1); }
  .mainnav a.on { background: var(--grad); color: #fff; box-shadow: var(--glow-cyan); }
}

/* ============ 主内容 ============ */
.main { padding: 22px 0 100px; min-height: 70vh; position: relative; z-index: 1; }

/* ============ 首页 Hero（深海蓝渐变玻璃） ============ */
.hero {
  position: relative; overflow: hidden;
  border-radius: 22px; padding: 26px 24px; margin-bottom: 20px;
  background:
    linear-gradient(rgba(148,163,184,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.10) 1px, transparent 1px),
    linear-gradient(130deg, #132441 0%, #16264a 45%, #1b2750 100%);
  background-size: 34px 34px, 34px 34px, auto;
  color: var(--text);
  box-shadow: 0 14px 40px -18px rgba(34,211,238,.35), 0 0 0 1px rgba(139,92,246,.28);
  border: 1px solid rgba(139,92,246,.35);
}
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5; pointer-events: none;
}
.hero::before { width: 240px; height: 240px; background: radial-gradient(circle, rgba(34,211,238,.4), transparent 65%); top: -80px; right: -60px; }
.hero::after { width: 180px; height: 180px; background: radial-gradient(circle, rgba(139,92,246,.4), transparent 65%); bottom: -70px; left: -40px; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; z-index: 1; margin-bottom: 16px; }
.hero-date { font-size: 13px; font-weight: 700; letter-spacing: .5px; color: var(--brand-1); }
.hero h1 { font-size: 22px; font-weight: 800; letter-spacing: .3px; }
.hero-sub { font-size: 13px; color: var(--text-2); font-weight: 600; }

.today-panel {
  position: relative; z-index: 1;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(148,163,184,.18);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
  padding: 6px; margin-top: 4px;
  box-shadow: 0 6px 20px -12px rgba(2,6,23,.5);
}
.today-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px; border-radius: 12px;
  transition: background .15s ease;
}
.today-item + .today-item { border-top: 1px solid var(--line); }
.today-item:first-child { background: linear-gradient(135deg, rgba(34,211,238,.10), rgba(139,92,246,.10)); box-shadow: inset 0 0 0 1px rgba(34,211,238,.35); }
.period {
  min-width: 58px; text-align: center;
  background: var(--grad); color: #fff; border-radius: 8px;
  padding: 5px 8px; font-size: 13px; font-weight: 700; white-space: nowrap;
  box-shadow: var(--glow-cyan);
}
.course { font-weight: 700; font-size: 15px; }
.meta { font-size: 12.5px; color: var(--text-2); margin-left: auto; text-align: right; white-space: nowrap; }
.hero-empty { position: relative; z-index: 1; padding: 10px 2px; font-size: 14px; color: var(--text-2); }
.hero .link-more { display: inline-flex; align-items: center; gap: 4px; color: var(--brand-1); font-size: 13px; font-weight: 700; margin-top: 12px; position: relative; z-index: 1; }

/* ============ 统计条 ============ */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
@media (max-width: 560px) { .stats-grid { gap: 10px; } }
.stat-card {
  background: var(--card); border-radius: var(--radius);
  padding: 16px 14px; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; gap: 12px;
  position: relative; overflow: hidden;
}
.stat-card::after { content: ''; position: absolute; right: -24px; top: -24px; width: 72px; height: 72px; border-radius: 50%; opacity: .18; filter: blur(16px); }
.stat-card.s1::after { background: var(--brand-1); }
.stat-card.s2::after { background: var(--warn); }
.stat-card.s3::after { background: var(--ok); }
.stat-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.stat-icon svg { width: 20px; height: 20px; }
.stat-card.s1 .stat-icon { background: var(--grad); box-shadow: var(--glow-cyan); }
.stat-card.s2 .stat-icon { background: linear-gradient(135deg,#f59e0b,#f97316); box-shadow: 0 4px 14px -4px rgba(249,115,22,.45); }
.stat-card.s3 .stat-icon { background: linear-gradient(135deg,#10b981,#06b6d4); box-shadow: 0 4px 14px -4px rgba(16,185,129,.45); }
.stat-num { font-size: 22px; font-weight: 800; line-height: 1.15; }
.stat-label { font-size: 12px; color: var(--text-3); font-weight: 600; }

/* ============ 快捷入口（霓虹渐变卡） ============ */
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
@media (max-width: 560px) { .quick-grid { gap: 10px; } }
.quick-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative; overflow: hidden;
  border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.quick-card::after { content: ''; position: absolute; width: 90px; height: 90px; border-radius: 50%; right: -30px; top: -40px; opacity: .35; filter: blur(30px); }
.quick-card.c-sched::after { background: rgba(34,211,238,.4); }
.quick-card.c-hw::after { background: rgba(245,158,11,.35); }
.quick-card.c-news::after { background: rgba(16,185,129,.35); }
.quick-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(34,211,238,.5); }
.quick-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.quick-icon svg { width: 21px; height: 21px; }
.quick-card:nth-child(1) .quick-icon { background: var(--grad); box-shadow: var(--glow-cyan); }
.quick-card:nth-child(2) .quick-icon { background: linear-gradient(135deg,#f59e0b,#f97316); box-shadow: 0 4px 14px -4px rgba(249,115,22,.45); }
.quick-card:nth-child(3) .quick-icon { background: linear-gradient(135deg,#10b981,#06b6d4); box-shadow: 0 4px 14px -4px rgba(16,185,129,.45); }
.quick-label { font-size: 14.5px; font-weight: 700; }
.quick-desc { font-size: 12px; color: var(--text-3); }

/* ============ 双栏卡片 ============ */
.grid2 { display: grid; grid-template-columns: 1fr; gap: 18px; margin-bottom: 20px; }
@media (min-width: 820px) { .grid2 { grid-template-columns: 1fr 1fr; } }

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px 18px 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.card-head h2 { font-size: 15.5px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.card-head h2 .hd-ico { width: 24px; height: 24px; border-radius: 7px; display: flex; align-items: center; justify-content: center; }
.card-head h2 .hd-ico svg { width: 14px; height: 14px; }
.hd-ico.i-news { background: rgba(34,211,238,.14); color: var(--brand-1); }
.hd-ico.i-hw { background: rgba(245,158,11,.16); color: var(--warn); }
.link-more { display: inline-flex; align-items: center; gap: 3px; color: var(--brand-1); font-size: 13px; font-weight: 700; transition: gap .15s ease; }
.link-more:hover { gap: 6px; }

/* ============ 列表 ============ */
.list { list-style: none; }
.list li { border-radius: 10px; transition: background .14s ease; }
.list li:hover { background: rgba(34,211,238,.07); }
.list a { display: flex; align-items: center; gap: 10px; padding: 12px 6px; flex-wrap: wrap; }
.li-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; font-weight: 600; }
.list.big .li-title { white-space: normal; width: 100%; order: 2; font-size: 15px; }
.li-time { color: var(--text-3); font-size: 12.5px; white-space: nowrap; }
.list.big .li-time { order: 3; width: 100%; }
.li-arrow { color: var(--text-3); opacity: 0; transition: opacity .15s ease, transform .15s ease; }
.list li:hover .li-arrow { opacity: 1; transform: translateX(2px); }
.tag { font-size: 12px; border-radius: 999px; padding: 3px 10px; font-weight: 700; white-space: nowrap; }
.tag-top { background: var(--grad); color: #fff; box-shadow: var(--glow-cyan); }
.s-ok { background: var(--ok-bg); color: var(--ok); box-shadow: inset 0 0 0 1px rgba(52,211,153,.35); }
.s-today { background: var(--warn-bg); color: var(--warn); box-shadow: inset 0 0 0 1px rgba(251,191,36,.35); }
.s-over { background: var(--bad-bg); color: var(--bad); box-shadow: inset 0 0 0 1px rgba(248,113,113,.3); }
.s-lazy { background: rgba(99,102,241,.14); color: var(--text-2); }
/* 访问明细：访客类型标签 */
.v-tag { font-size: 11px; border-radius: 999px; padding: 2px 9px; font-weight: 700; white-space: nowrap; }
.v-real { background: rgba(52,211,153,.14); color: #34d399; box-shadow: inset 0 0 0 1px rgba(52,211,153,.3); }
.v-oversea { background: rgba(251,191,36,.12); color: #fbbf24; box-shadow: inset 0 0 0 1px rgba(251,191,36,.3); }
.v-crawl { background: rgba(248,113,113,.12); color: #f87171; box-shadow: inset 0 0 0 1px rgba(248,113,113,.3); }
/* 作业附件 */
.hw-att { margin-top: 10px; }
.hw-att img { max-width: 100%; border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,.35); display: block; }
.att-file { display: inline-flex; align-items: center; gap: 6px; background: rgba(99,102,241,.14); color: var(--brand-1); border: 1px solid rgba(99,102,241,.35); border-radius: 8px; padding: 7px 13px; font-size: 13px; font-weight: 600; }
.att-file:hover { background: var(--grad); color: #fff; border-color: transparent; }
.att-btns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.att-dl { display: inline-flex; align-items: center; gap: 6px; background: rgba(148,163,184,.12); color: #cbd5e1; border: 1px solid rgba(148,163,184,.3); border-radius: 8px; padding: 7px 13px; font-size: 13px; font-weight: 600; }
.att-dl:hover { background: rgba(148,163,184,.22); color: #fff; }
.att-name { font-size: 12px; color: var(--muted); }
/* 提交作业按钮 */
.hw-submit { display: inline-block; margin-top: 10px; background: linear-gradient(135deg, #34d399, #22d3ee); color: #06283d; font-weight: 800; font-size: 13px; border-radius: 8px; padding: 8px 18px; box-shadow: 0 4px 14px rgba(52,211,153,.35); transition: transform .15s ease, filter .15s ease; }
.hw-submit:hover { filter: brightness(1.08); transform: translateY(-1px); }
/* 作业卡片可点击提示 */
.hw-card { cursor: pointer; }
/* 作业详情弹窗 */
.hw-modal { position: fixed; inset: 0; background: rgba(4,10,28,.75); display: none; align-items: center; justify-content: center; z-index: 999; padding: 20px; backdrop-filter: blur(4px); }
.hw-modal.open { display: flex; }
.hw-modal-box { background: #0e1c3a; border: 1px solid rgba(99,102,241,.35); border-radius: 16px; max-width: 560px; width: 100%; max-height: 82vh; overflow-y: auto; padding: 20px; box-shadow: 0 16px 60px rgba(0,0,0,.5); }
.m-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.m-title { font-size: 18px; font-weight: 800; color: #fff; }
.m-close { background: rgba(255,255,255,.06); border: none; color: #94a3b8; width: 32px; height: 32px; border-radius: 50%; font-size: 15px; cursor: pointer; flex-shrink: 0; }
.m-close:hover { background: rgba(255,255,255,.14); color: #fff; }
.m-meta { font-size: 12px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.m-body { font-size: 14px; line-height: 1.7; color: #dbe4ff; white-space: pre-wrap; }
.m-submit { margin-top: 14px; }
/* 明细筛选标签 */
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-tabs a { font-size: 12px; padding: 5px 11px; border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); text-decoration: none; }
.filter-tabs a.on { color: #fff; background: var(--grad); border-color: transparent; font-weight: 700; }
.subj {
  background: var(--grad); color: #fff;
  font-size: 12px; border-radius: 8px; padding: 3px 10px; font-weight: 700; white-space: nowrap;
  box-shadow: var(--glow-cyan);
}

/* ============ 页头 ============ */
.page-head { margin-bottom: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; font-weight: 800; letter-spacing: .3px; }
.page-head p { color: var(--text-3); font-size: 13px; margin-top: 2px; }

/* ============ 课表 ============ */
.sched-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 14px; border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow: hidden; }
.sched-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.sched { border-collapse: separate; border-spacing: 4px; min-width: 700px; width: 100%; }
.sched th, .sched td { border: none; }
.sched thead th { font-size: 13px; font-weight: 800; color: var(--text-2); padding: 8px 6px; }
.sched thead th.today { color: var(--brand-1); }
.sched .corner, .sched .pnum {
  font-size: 12px; font-weight: 700; color: var(--text-3); background: transparent;
  padding: 8px 4px; width: 34px;
}
.sched td {
  border-radius: 12px; background: rgba(99,102,241,.10); padding: 8px; text-align: center; vertical-align: top;
  font-size: 13px; min-height: 64px; transition: transform .15s ease, box-shadow .15s ease;
}
.sched td.today {
  background: linear-gradient(150deg, rgba(34,211,238,.16), rgba(139,92,246,.18));
  box-shadow: inset 0 0 0 1.5px rgba(34,211,238,.5), var(--glow-soft);
}
.sched td:hover { transform: scale(1.02); }
.cell-empty { color: transparent; }
.cell-item + .cell-item { margin-top: 6px; padding-top: 6px; border-top: 1px dashed rgba(148,163,184,.22); }
.cell-course { font-weight: 800; color: var(--text); line-height: 1.35; }
.sched td.today .cell-course { color: var(--brand-1); }
.cell-room { color: var(--brand-2); font-size: 11.5px; font-weight: 600; margin-top: 2px; }
.cell-tea { color: var(--text-3); font-size: 11.5px; margin-top: 1px; }

/* 教务式周数切换 */
.ph-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; width: 100%; }
.week-picker { display: flex; align-items: center; gap: 6px; }
.wp-label { font-size: 13px; font-weight: 700; color: var(--text-3); }
.wp-select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background: rgba(99,102,241,.16) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7d2fe' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center / 14px;
  border: 1px solid rgba(129,140,248,.4); color: #e2e8f0; font-size: 15px; font-weight: 800;
  border-radius: 10px; padding: 7px 30px 7px 12px; cursor: pointer; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.wp-select:focus { border-color: var(--brand-1); box-shadow: 0 0 0 3px rgba(34,211,238,.18); }
.wp-select option { background: #0d1830; color: #e2e8f0; }
.tag-cur { background: linear-gradient(135deg, #22d3ee, #818cf8); color: #fff; box-shadow: var(--glow-cyan); font-size: 12px; border-radius: 999px; padding: 3px 10px; font-weight: 700; white-space: nowrap; }
.th-date { display: block; font-size: 11px; font-weight: 600; color: var(--text-3); margin-top: 2px; }
.sched thead th.today .th-date { color: var(--brand-1); }
.sched-note { color: var(--text-3); font-size: 12px; margin: 10px 2px 0; }

/* ============ 作业分组 ============ */
.hw-group-title { font-size: 13.5px; font-weight: 800; color: var(--text-2); margin: 4px 0 10px; display: flex; align-items: center; gap: 8px; }
.hw-group-title .dot { width: 7px; height: 7px; border-radius: 50%; }
.hw-group-title .dot.on { background: var(--ok); box-shadow: 0 0 8px rgba(52,211,153,.6); }
.hw-group-title .dot.off { background: var(--text-3); }
.hw-list { display: flex; flex-direction: column; gap: 14px; }
.hw-card {
  background: var(--card); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  position: relative; overflow: hidden;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.hw-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--grad); box-shadow: var(--glow-cyan);
}
.hw-card.is-over::before { background: linear-gradient(#64748b,#475569); box-shadow: none; }
.hw-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(34,211,238,.4); }
.hw-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.hw-content { white-space: pre-wrap; word-break: break-word; color: var(--text-2); font-size: 14px; margin-bottom: 12px; }
.hw-meta { display: flex; gap: 18px; color: var(--text-3); font-size: 12.5px; flex-wrap: wrap; }
.hw-meta .m-deadline { color: var(--warn); font-weight: 600; }
.hw-meta .m-deadline.over { color: var(--bad); }

/* ============ 本周课程分布 ============ */
.week-bars { display: flex; gap: 14px; align-items: flex-end; padding: 12px 2px 2px; }
@media (max-width: 560px) { .week-bars { gap: 8px; } }
.wb-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.wb-count { font-size: 12px; font-weight: 800; color: var(--text-2); }
.wb-bar { width: 100%; max-width: 44px; border-radius: 8px 8px 4px 4px; background: var(--grad); box-shadow: var(--glow-cyan); transition: height .3s ease; min-height: 4px; }
.wb-bar.empty { background: rgba(99,102,241,.12); box-shadow: none; }
.wb-bar.today { box-shadow: 0 0 0 2px rgba(255,255,255,.85), var(--glow-cyan); }
.wb-label { font-size: 12px; font-weight: 700; color: var(--text-3); }
.wb-label.today { color: var(--brand-1); }

/* ============ 通知详情 ============ */
.notice { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px 24px; border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.notice-head h1 { font-size: 21px; font-weight: 800; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.notice-time { color: var(--text-3); font-size: 13px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.notice-body { white-space: pre-wrap; word-break: break-word; color: var(--text); margin-bottom: 24px; font-size: 15px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--grad); color: #fff; text-decoration: none;
  border-radius: 12px; padding: 11px 22px; font-size: 14px; font-weight: 700;
  box-shadow: var(--glow-cyan);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 0 22px -4px rgba(34,211,238,.6); }
.btn svg { width: 16px; height: 16px; }

/* ============ 空态 & 提示 ============ */
.empty { color: var(--text-3); padding: 18px 4px; text-align: center; }
.empty::before { content: '◌'; display: block; font-size: 26px; margin-bottom: 6px; opacity: .4; }
.tip {
  background: linear-gradient(135deg, rgba(251,191,36,.12), rgba(251,191,36,.05));
  color: #fcd34d; border-radius: 12px; padding: 12px 16px; font-size: 13.5px;
  border: 1px solid rgba(251,191,36,.3);
}

/* ============ 移动端底部 Tab（深色毛玻璃 + 高亮渐变胶囊） ============ */
.bottab {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-around;
  background: rgba(13,24,48,.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -1px 0 rgba(34,211,238,.12), 0 -10px 30px -14px rgba(2,6,23,.5);
  padding: 8px 0 calc(8px + var(--safe-bottom));
}
.bottab a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 7px 20px; min-width: 64px;
  color: var(--text-2); font-size: 11px; font-weight: 600;
  border-radius: 16px;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.bottab a svg { width: 22px; height: 22px; transition: transform .2s ease, filter .2s ease; }
.bottab a:active { transform: scale(.96); }
.bottab a.on {
  color: #fff;
  background: linear-gradient(135deg, rgba(139,92,246,.95), rgba(34,211,238,.9));
  box-shadow: 0 8px 20px rgba(99,102,241,.45);
}
.bottab a.on svg { transform: translateY(-1px); filter: drop-shadow(0 2px 6px rgba(255,255,255,.4)); }
@media (min-width: 768px) { .bottab { display: none; } }

/* ============ 后台（深海蓝科技风） ============ */
.admin-body { background: var(--bg); background-image:
  radial-gradient(1000px 500px at 85% -10%, rgba(6,182,212,.10), transparent 60%),
  radial-gradient(900px 480px at -10% 20%, rgba(139,92,246,.09), transparent 60%); }
.admin-top { background: rgba(13,24,48,.85); backdrop-filter: blur(12px); color: var(--text); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(34,211,238,.12); }
.admin-top .wrap { display: flex; align-items: center; justify-content: space-between; height: 54px; }
.admin-top a { color: var(--text-2); font-size: 13.5px; transition: color .15s ease; }
.admin-top a:hover { color: var(--brand-1); }
.admin-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-nav a {
  background: var(--card); color: var(--text-2); text-decoration: none;
  padding: 9px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: all .15s ease;
}
.admin-nav a:hover { color: var(--brand-1); border-color: rgba(34,211,238,.5); }
.admin-nav a.on { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--glow-cyan); }
.form {
  background: var(--card); border-radius: var(--radius);
  padding: 22px; margin-bottom: 20px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.form h3 { margin-bottom: 14px; font-size: 16px; font-weight: 800; }
.form label { display: block; font-size: 13px; color: var(--text-2); margin: 12px 0 6px; font-weight: 600; }
.form input[type=text], .form input[type=password], .form input[type=date], .form textarea, .form select {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 11px 14px; font-size: 14px; font-family: inherit; background: #0e1a33; color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none; border-color: var(--brand-1); box-shadow: 0 0 0 4px rgba(34,211,238,.14), var(--glow-soft); background: #101d38;
}
.form input::placeholder, .form textarea::placeholder { color: var(--text-3); }
.form textarea { min-height: 110px; resize: vertical; }
.form .row { display: flex; gap: 14px; flex-wrap: wrap; }
.form .row > div { flex: 1; min-width: 150px; }
.btn-primary {
  background: var(--grad); color: #fff; border: none; border-radius: 12px;
  padding: 11px 24px; font-size: 14px; font-weight: 700; cursor: pointer; margin-top: 16px;
  box-shadow: var(--glow-cyan);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 0 22px -4px rgba(34,211,238,.6); }
.msg {
  background: linear-gradient(135deg, rgba(52,211,153,.12), rgba(52,211,153,.05));
  color: #34d399; border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-size: 14px; font-weight: 600;
  border: 1px solid rgba(52,211,153,.35);
}
.msg.err { background: linear-gradient(135deg, rgba(248,113,113,.10), rgba(248,113,113,.05)); color: #f87171; border-color: rgba(248,113,113,.3); }
table.admin {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  font-size: 13.5px; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
table.admin th, table.admin td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
table.admin th { background: rgba(99,102,241,.14); font-weight: 700; color: var(--text-2); font-size: 12.5px; }
table.admin tr:last-child td { border-bottom: none; }
table.admin tr:hover td { background: rgba(34,211,238,.06); }
.mini-btn { display: inline-block; padding: 5px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 600; text-decoration: none; margin-right: 4px; transition: all .14s ease; }
.b-edit { background: rgba(34,211,238,.14); color: var(--brand-1); }
.b-edit:hover { background: var(--brand-1); color: #fff; }
.b-del { background: var(--bad-bg); color: var(--bad); }
.b-del:hover { background: var(--bad); color: #fff; }
.b-top { background: var(--warn-bg); color: var(--warn); }
.b-top:hover { background: var(--warn); color: #fff; }
@media (max-width: 640px) {
  table.admin { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ============ 登录页（深海蓝 + 光晕） ============ */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(700px 400px at 20% 15%, rgba(34,211,238,.12), transparent 60%),
    radial-gradient(700px 420px at 85% 85%, rgba(139,92,246,.13), transparent 60%),
    linear-gradient(rgba(99,102,241,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,.06) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 44px 44px, 44px 44px, auto;
  position: relative; overflow: hidden;
}
.login-page::before, .login-page::after { content: ''; position: absolute; border-radius: 50%; filter: blur(60px); }
.login-page::before { width: 420px; height: 420px; background: rgba(34,211,238,.16); top: -120px; right: -80px; }
.login-page::after { width: 380px; height: 380px; background: rgba(139,92,246,.18); bottom: -120px; left: -80px; }
.login-box {
  position: relative; z-index: 1; width: 100%; max-width: 400px; margin: 20px;
  background: rgba(16,29,56,.82);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(148,163,184,.2);
  box-shadow: 0 0 0 1px rgba(34,211,238,.14), 0 24px 60px -22px rgba(2,6,23,.6), 0 0 60px -20px rgba(99,102,241,.45);
  border-radius: 24px; padding: 34px 32px;
}
.login-logo { display: flex; flex-direction: column; align-items: center; margin-bottom: 24px; }
.login-logo .badge {
  width: 56px; height: 56px; border-radius: 16px; background: var(--grad);
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: var(--glow-cyan); margin-bottom: 12px;
}
.login-logo .badge svg { width: 28px; height: 28px; }
.login-logo .t { font-size: 18px; font-weight: 800; }
.login-logo .s { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.login-back { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-3); }
.login-back a { color: var(--brand-1); font-weight: 600; }

/* ============ 页脚 ============ */
.foot { padding: 18px 0; color: var(--text-3); font-size: 12.5px; text-align: center; margin-bottom: 64px; position: relative; z-index: 1; }
@media (min-width: 768px) { .foot { margin-bottom: 0; } }

/* ============ 入场动画 ============ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero, .stat-card, .quick-card, .card, .hw-card, .notice, .sched-card, .page-head { animation: fadeUp .4s ease both; }
.stat-card:nth-child(2) { animation-delay: .04s; }
.stat-card:nth-child(3) { animation-delay: .08s; }
.quick-card:nth-child(2) { animation-delay: .05s; }
.quick-card:nth-child(3) { animation-delay: .1s; }
.card:nth-of-type(2) { animation-delay: .08s; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* 滚动条（深色） */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(99,102,241,.3); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(99,102,241,.5); }

/* ============ 精简 Hero（作业置顶版首页） ============ */
.hero-slim { padding: 20px 24px; margin-bottom: 18px; }
.hero-slim .hero-top { margin-bottom: 0; }
.hero-slim h1 { font-size: 20px; }

/* ============ 首页作业专区（两列网格） ============ */
.hw-sec { padding-bottom: 16px; margin-bottom: 26px; }
.hw-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 8px; }
@media (min-width: 720px) { .hw-grid { grid-template-columns: 1fr 1fr; } }
.hw-grid .hw-card { padding: 14px 16px; }
.hw-grid .hw-content { font-size: 13.5px; margin-bottom: 8px; }
.hw-grid .hw-meta { gap: 12px; font-size: 12px; }

/* ============ 后台访问看板 ============ */
.dash-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 20px; }
@media (min-width: 900px) { .dash-grid { grid-template-columns: repeat(4, 1fr); } }
.dash-card {
  background: var(--card); border-radius: var(--radius);
  padding: 18px 16px; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  position: relative; overflow: hidden;
}
.dash-card::after { content: ''; position: absolute; right: -26px; top: -26px; width: 84px; height: 84px; border-radius: 50%; opacity: .2; filter: blur(18px); }
.dash-card.dc-cyan::after { background: #22d3ee; }
.dash-card.dc-blue::after { background: #3b82f6; }
.dash-card.dc-violet::after { background: #a78bfa; }
.dash-card.dc-green::after { background: #34d399; }
.dash-label { font-size: 12.5px; color: var(--text-3); font-weight: 600; margin-bottom: 6px; }
.dash-num { font-size: 28px; font-weight: 800; line-height: 1.1; }
.dash-card.dc-cyan .dash-num { color: var(--brand-1); }
.dash-card.dc-blue .dash-num { color: #60a5fa; }
.dash-card.dc-violet .dash-num { color: var(--brand-3); }
.dash-card.dc-green .dash-num { color: var(--ok); }
