/* ============================================================
 * 灵宝市实验小学智慧教育平台 — 样式表
 * 视觉语言：双层顶栏 / 大轮播 / 斜线板块标题 / 渐变专题横幅 / 白色卡片
 * ============================================================ */

:root {
  --brand: #2b5fe3;
  --brand-2: #1b45c4;
  --brand-3: #6b95f5;
  --brand-soft: #eaf1ff;
  --top-from: #e8f1ff;
  --top-to: #f4f8ff;
  --bg: #f4f7fd;
  --card: #ffffff;
  --ink: #2b3346;
  --ink-2: #5d6780;
  --ink-3: #8e98ad;
  --line: #e7edf8;
  --orange: #bd441e;
  --orange-2: #ec9049;
  --gold: #e3b25d;
  --green: #2fa87a;
  --shadow-s: 0 3px 12px rgba(34, 64, 128, .06);
  --shadow-m: 0 10px 30px rgba(34, 64, 128, .09);
  --shadow-l: 0 20px 55px rgba(30, 58, 122, .16);
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 22px;
  --ease: cubic-bezier(.22, .8, .28, 1);
  --header-h: 130px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* 注意：body 不得设置 overflow-x —— 否则 body 自身成为裁剪/滚动容器，
     其内所有 position:sticky（吸顶导航）都会失效。横向溢出由 html 层裁剪。 */
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid #7da6ff; outline-offset: 2px; border-radius: 6px; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 20px; height: 20px; display: inline-block; flex: none; vertical-align: middle; }
.ico-14 { width: 14px; height: 14px; }
.ico-16 { width: 16px; height: 16px; }
.ico-18 { width: 18px; height: 18px; }
.ico-20 { width: 20px; height: 20px; }
.ico-24 { width: 24px; height: 24px; }
.ico-28 { width: 28px; height: 28px; }
.wrap { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }
.wrap-wide { width: min(1360px, calc(100% - 48px)); margin: 0 auto; }
.app-view { min-height: 62vh; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------------- 顶部双层导航 ----------------
 * 分层吸顶：masthead 为普通文档流（自然滚走），仅 navbar sticky 吸顶。
 * 不再对 header 做高度动画——sticky 容器高度变化会引发布局反馈循环（抖动根源）。 */
.site-header { position: relative; z-index: 60; }
.masthead {
  background: linear-gradient(100deg, var(--top-from) 0%, #f0f5ff 46%, var(--top-to) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .9);
  overflow: hidden;
  height: 70px;
}
.mast-inner { width: min(1240px, calc(100% - 48px)); margin: 0 auto; height: 70px; display: flex; align-items: center; gap: 18px; }
.mast-org { display: flex; align-items: center; gap: 9px; padding: 4px 6px; border-radius: 8px; transition: background .2s; }
.mast-org:hover { background: rgba(43, 95, 227, .07); }
.mast-org-emblem { width: 40px; height: 40px; object-fit: contain; }
.mast-org-txt { text-align: left; display: flex; flex-direction: column; line-height: 1.25; }
.mast-org-txt b { font-size: 12.5px; font-weight: 600; color: #3c4964; letter-spacing: .3px; }
.mast-org-txt i { font-style: normal; font-size: 8.5px; letter-spacing: .55px; color: #8a96ad; }
.mast-caret { color: #8e9ab3; margin-left: 2px; }
.mast-divider { width: 1px; height: 30px; background: #cfdcf3; }
.mast-brand { display: flex; align-items: center; gap: 11px; }
.mast-brand img { width: 42px; height: 42px; object-fit: contain; transition: transform .5s var(--ease); }
.mast-brand:hover img { transform: rotate(-8deg) scale(1.08); }
.mast-brand span { font-size: 21px; font-weight: 800; letter-spacing: .6px; color: #1f2b45; white-space: nowrap; }
.client-btn {
  margin-left: auto; display: flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, #3b70ec, #2b5fe3);
  color: #fff; font-size: 13.5px; font-weight: 600;
  padding: 9px 18px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(43, 95, 227, .28);
  transition: transform .22s var(--ease), box-shadow .22s;
}
.client-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(43, 95, 227, .36); }

.navbar { position: sticky; top: 0; z-index: 60; background: #fff; box-shadow: 0 3px 14px rgba(35, 66, 130, .06); }
.nav-inner { width: min(1240px, calc(100% - 48px)); margin: 0 auto; height: 58px; display: flex; align-items: center; gap: 4px; }
.nav-arrow {
  width: 26px; height: 30px; flex: none; border-radius: 7px; color: #a9b5c9;
  background: #f4f7fc; display: grid; place-items: center; transition: .2s;
}
.nav-arrow:hover { background: var(--brand-soft); color: var(--brand); }
.nav-scroll { flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; height: 100%; }
.nav-scroll::-webkit-scrollbar { display: none; }
.nav-link {
  position: relative; flex: none; padding: 0 13px; height: 100%;
  display: flex; align-items: center; font-size: 15px; color: #4c566c;
  white-space: nowrap; transition: color .2s;
}
.nav-link:hover { color: var(--brand); }
.nav-link.active { color: var(--brand); font-weight: 700; }
.nav-link.active::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 22px; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand);
  animation: navIn .3s var(--ease);
}
@keyframes navIn { from { width: 0; opacity: 0; } to { width: 22px; opacity: 1; } }
.nav-actions { display: flex; align-items: center; gap: 8px; flex: none; padding-left: 10px; border-left: 1px solid var(--line); margin-left: 6px; }
.icon-btn { width: 34px; height: 34px; border-radius: 9px; color: #6b7690; display: grid; place-items: center; transition: .2s; }
.icon-btn:hover { background: var(--brand-soft); color: var(--brand); }
.a11y-btn { display: flex; align-items: center; gap: 5px; font-size: 13.5px; color: #6b7690; padding: 6px 8px; border-radius: 8px; white-space: nowrap; transition: .2s; }
.a11y-btn:hover, .a11y-btn.on { background: var(--brand-soft); color: var(--brand); }
.btn-pill { padding: 7px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; transition: .22s var(--ease); }
.btn-login { background: #f1f4fa; color: #5b657c; }
.btn-login:hover { background: #e5ebf7; color: var(--brand); }
.btn-register, .btn-primary { background: linear-gradient(135deg, #3b70ec, #2b5fe3); color: #fff; box-shadow: 0 4px 12px rgba(43, 95, 227, .24); }
.btn-register:hover, .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(43, 95, 227, .34); }
.btn-ghost { border: 1px solid #d9e2f4; color: var(--brand); background: #fff; }
.btn-ghost:hover { background: var(--brand-soft); border-color: #b9cdf8; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 3px 12px 3px 3px; border-radius: 999px; background: #f3f6fd; transition: .2s; }
.user-chip:hover { background: var(--brand-soft); }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 700; flex: none; }
.user-chip .u-name { font-size: 13.5px; font-weight: 600; color: #3b475f; max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu { position: relative; }
.user-dropdown {
  position: absolute; right: 0; top: calc(100% + 10px); width: 208px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-l);
  padding: 8px; z-index: 70; animation: popIn .22s var(--ease);
}
.user-dropdown .dd-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.user-dropdown .dd-head b { display: block; font-size: 14.5px; }
.user-dropdown .dd-head small { color: var(--ink-3); font-size: 12px; }
.dd-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 8px; font-size: 13.5px; color: #4a556c; transition: .18s; text-align: left; }
.dd-item:hover { background: var(--brand-soft); color: var(--brand); }
.dd-item.danger:hover { background: #fff0ee; color: #d33b2e; }
@keyframes popIn { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------------- 首页 Hero 轮播 ---------------- */
.hero { position: relative; background: #eaf1fd; }
.hero-stage {
  position: relative; width: min(1240px, calc(100% - 48px)); margin: 0 auto;
  height: clamp(268px, 29vw, 398px); margin-top: 18px; border-radius: var(--r-m);
  overflow: hidden; box-shadow: var(--shadow-m); isolation: isolate;
}
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 44%; transform: scale(1.04); }
.hero-slide.active img { animation: kenburns 7.5s linear forwards; will-change: transform; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.13); } }
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(9, 30, 78, .80) 0%, rgba(11, 38, 92, .55) 34%, rgba(12, 42, 96, .08) 68%, rgba(12, 42, 96, 0) 100%);
}
.hero-slide.tone-gold::after { background: linear-gradient(90deg, rgba(66, 36, 12, .78) 0%, rgba(86, 52, 18, .50) 36%, rgba(90, 56, 20, .05) 72%, transparent 100%); }
.hero-slide.tone-green::after { background: linear-gradient(90deg, rgba(18, 58, 52, .76) 0%, rgba(24, 72, 64, .48) 36%, rgba(30, 80, 70, .05) 72%, transparent 100%); }
.hero-slide.tone-indigo::after { background: linear-gradient(90deg, rgba(20, 22, 78, .82) 0%, rgba(28, 32, 96, .55) 36%, rgba(32, 36, 100, .06) 72%, transparent 100%); }
.hero-copy {
  position: absolute; z-index: 2; left: clamp(28px, 5%, 68px); top: 50%; transform: translateY(-50%);
  max-width: 55%; color: #fff;
}
/* backwards：动画未执行时元素保持自身可见状态，避免无头 / 低性能环境出现空白 */
.hero-slide.active .hero-copy > * { animation: heroText .8s var(--ease) backwards; }
.hero-slide.active .hero-copy > *:nth-child(1) { animation-delay: .12s; }
.hero-slide.active .hero-copy > *:nth-child(2) { animation-delay: .24s; }
.hero-slide.active .hero-copy > *:nth-child(3) { animation-delay: .36s; }
.hero-slide.active .hero-copy > *:nth-child(4) { animation-delay: .48s; }
@keyframes heroText { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; letter-spacing: 2px; font-weight: 600; padding: 5px 14px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; background: rgba(255, 255, 255, .12); backdrop-filter: blur(6px); }
.hero-kicker::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #ffd782; box-shadow: 0 0 10px #ffd782; }
.hero-title { font-size: clamp(25px, 3.1vw, 43px); font-weight: 800; letter-spacing: 1.5px; margin: 16px 0 10px; line-height: 1.28; text-shadow: 0 3px 18px rgba(0, 0, 0, .28); }
.hero-sub { font-size: clamp(12px, 1.15vw, 15px); color: rgba(255, 255, 255, .88); max-width: 520px; margin-bottom: 22px; }
.hero-cta { display: inline-flex; align-items: center; gap: 9px; background: #fff; color: var(--brand-2); font-weight: 700; font-size: 14px; padding: 11px 22px; border-radius: 999px; box-shadow: 0 8px 22px rgba(0, 0, 0, .18); transition: .25s var(--ease); }
.hero-cta:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 0, 0, .26); gap: 14px; }
.hero-nav { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .22); color: #fff; display: grid; place-items: center; opacity: 0; transition: .25s; backdrop-filter: blur(6px); }
.hero-stage:hover .hero-nav { opacity: 1; }
.hero-nav:hover { background: rgba(255, 255, 255, .42); }
.hero-nav.prev { left: 14px; }
.hero-nav.next { right: 14px; }
.hero-foot { width: min(1240px, calc(100% - 48px)); margin: 0 auto; height: 46px; display: flex; align-items: center; gap: 5px; }
.hero-dot { width: 9px; height: 9px; border-radius: 999px; background: #cdd8ea; transition: width .4s var(--ease), background .3s; position: relative; overflow: hidden; }
.hero-dot.active { width: 30px; background: #2c3346; }
.hero-dot.active::after { content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, .5); transform-origin: left; animation: dotProgress 5.5s linear; }
@keyframes dotProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-list-btn { margin-left: 14px; color: #8e99ad; display: grid; place-items: center; }
.hero-links { margin-left: auto; display: flex; align-items: center; gap: 24px; font-size: 13px; color: #7c879c; }
.hero-links a { display: flex; align-items: center; gap: 5px; transition: color .2s; }
.hero-links a:hover { color: var(--brand); }

/* ---------------- 页面通用板块 ---------------- */
.section { padding: 30px 0 8px; }
.section-head { text-align: center; margin: 6px 0 26px; position: relative; }
.section-title { display: inline-flex; align-items: center; gap: 18px; font-size: clamp(22px, 2.2vw, 29px); font-weight: 800; letter-spacing: 3px; color: #303a50; }
.section-title .slashes { color: #7da2f5; font-size: 20px; letter-spacing: -3px; font-weight: 700; transform: skewX(-18deg); }
.section-title .slashes.r { transform: skewX(-18deg); }
.section-sub { color: var(--ink-3); font-size: 13px; margin-top: 6px; letter-spacing: .5px; }
.panel { background: #fff; border-radius: var(--r-m); box-shadow: var(--shadow-s); }

/* 渐变专题横幅 */
.topic-banner {
  position: relative; border-radius: var(--r-m); min-height: 96px; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 34px; color: #fff; margin-bottom: 20px;
  background: linear-gradient(105deg, #bd441e 0%, #d3622c 48%, #ec9049 100%);
  box-shadow: 0 8px 22px rgba(190, 78, 34, .18);
}
.topic-banner::before { content: ''; position: absolute; right: -80px; top: -180px; width: 420px; height: 420px; border-radius: 50%; border: 44px solid rgba(255, 255, 255, .10); }
.topic-banner::after { content: ''; position: absolute; right: 90px; top: -120px; width: 300px; height: 300px; border-radius: 50%; border: 32px solid rgba(255, 255, 255, .08); }
.topic-banner.blue { background: linear-gradient(105deg, #1f5fae 0%, #2f83c9 52%, #62b3d8 100%); box-shadow: 0 8px 22px rgba(31, 95, 174, .18); }
.topic-banner.green { background: linear-gradient(105deg, #277a5c 0%, #3ba179 52%, #85c99a 100%); box-shadow: 0 8px 22px rgba(39, 122, 92, .18); }
.topic-banner.violet { background: linear-gradient(105deg, #6c4cae 0%, #9168cc 52%, #c39ae2 100%); box-shadow: 0 8px 22px rgba(108, 76, 174, .18); }
.topic-banner.gold { background: linear-gradient(105deg, #a9712b 0%, #cf9a45 52%, #e9c584 100%); box-shadow: 0 8px 22px rgba(169, 113, 43, .18); }
.tb-left { position: relative; z-index: 1; display: flex; align-items: center; gap: 20px; }
.tb-title { font-size: clamp(24px, 2.4vw, 34px); font-weight: 800; letter-spacing: 4px; }
.tb-desc { font-size: 13.5px; color: rgba(255, 255, 255, .88); border-left: 1px solid rgba(255, 255, 255, .4); padding-left: 20px; letter-spacing: .5px; }
.tb-more { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .94); color: #b9502a; font-size: 13.5px; font-weight: 700; padding: 10px 20px; border-radius: 999px; transition: .25s var(--ease); }
.tb-more:hover { transform: translateX(4px); background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .16); }
.topic-banner.blue .tb-more { color: #1f5fae; }
.topic-banner.green .tb-more { color: #277a5c; }
.topic-banner.violet .tb-more { color: #6c4cae; }
.topic-banner.gold .tb-more { color: #a9712b; }

/* 分类图标卡 */
.tile-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.tile {
  background: #fff; border-radius: var(--r-m); padding: 22px 10px 18px;
  display: flex; flex-direction: column; align-items: center; gap: 13px;
  box-shadow: var(--shadow-s); transition: transform .3s var(--ease), box-shadow .3s var(--ease); position: relative; overflow: hidden;
}
.tile::before { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(43, 95, 227, .05), transparent 60%); opacity: 0; transition: opacity .3s; }
.tile:hover { transform: translateY(-7px); box-shadow: var(--shadow-m); }
.tile:hover::before { opacity: 1; }
.tile-ico {
  width: 62px; height: 62px; border-radius: 50%; color: #fff;
  display: grid; place-items: center; position: relative;
  background: linear-gradient(145deg, var(--c1, #f0675a), var(--c2, #f7a183));
  box-shadow: inset 0 -5px 12px rgba(0, 0, 0, .10), inset 0 4px 9px rgba(255, 255, 255, .45), 0 8px 16px rgba(210, 100, 70, .22);
  transition: transform .4s var(--ease);
}
.tile-ico::after { content: ''; position: absolute; top: 7px; left: 12px; width: 24px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .38); filter: blur(4px); }
.tile:hover .tile-ico { transform: scale(1.1) rotate(-6deg); }
.tile-ico .ico { width: 30px; height: 30px; position: relative; z-index: 1; }
.tile-name { font-size: 15px; font-weight: 600; color: #3b465c; }
.tile-grid.col10 { grid-template-columns: repeat(10, 1fr); gap: 10px; }
.tile-grid.col10 .tile { padding: 15px 4px 13px; gap: 9px; }
.tile-grid.col10 .tile-ico { width: 48px; height: 48px; }
.tile-grid.col10 .tile-ico .ico { width: 24px; height: 24px; }
.tile-grid.col10 .tile-name { font-size: 12.5px; }

/* 快捷入口 + 数据条 */
.quick-strip { margin-top: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.quick-card {
  background: #fff; border-radius: var(--r-m); padding: 18px 18px;
  display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-s);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); position: relative; overflow: hidden;
}
.quick-card::after { content: ''; position: absolute; right: -28px; bottom: -34px; width: 100px; height: 100px; border-radius: 50%; background: var(--q2, #dbe7ff); opacity: .18; transition: transform .4s var(--ease); }
.quick-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); }
.quick-card:hover::after { transform: scale(1.5); }
.quick-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex: none; background: linear-gradient(140deg, var(--q1), var(--q2)); box-shadow: 0 7px 15px rgba(43, 95, 227, .18); }
.quick-ico .ico { width: 25px; height: 25px; }
.quick-txt b { display: block; font-size: 15.5px; color: #2f3a51; }
.quick-txt small { color: var(--ink-3); font-size: 12px; }
.quick-card .ico.i-arrow-right, .quick-card .arr { margin-left: auto; color: #b6c1d5; transition: transform .25s; }
.quick-card:hover .arr { transform: translateX(4px); color: var(--brand); }

.stats-strip { margin-top: 22px; background: linear-gradient(100deg, #eaf1ff, #f6f9ff 60%, #eaf5ff); border: 1px solid #dfe9fb; border-radius: var(--r-m); padding: 18px 10px; display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { text-align: center; position: relative; }
.stat-item + .stat-item::before { content: ''; position: absolute; left: 0; top: 12%; height: 76%; width: 1px; background: #d9e4f7; }
.stat-num { font-size: 30px; font-weight: 800; color: var(--brand); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-num small { font-size: 14px; font-weight: 600; margin-left: 3px; }
.stat-label { font-size: 12.5px; color: #7b879e; margin-top: 4px; }

/* ---------------- 资源卡片 ---------------- */
.res-scroller { position: relative; }
.res-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 14px; scrollbar-width: thin; scrollbar-color: #cbd7ee transparent; }
.res-track::-webkit-scrollbar { height: 6px; }
.res-track::-webkit-scrollbar-thumb { background: #cbd7ee; border-radius: 9px; }
.res-card {
  background: #fff; border-radius: 14px; overflow: hidden; scroll-snap-align: start;
  box-shadow: var(--shadow-s); transition: transform .32s var(--ease), box-shadow .32s var(--ease), border-color .32s var(--ease); display: flex; flex-direction: column;
  border: 1px solid rgba(230, 237, 248, .9);
}
.res-card:hover { --lift: -8px; transform: translateY(var(--lift, 0px)); box-shadow: var(--shadow-l); border-color: #d7e3fa; }
.res-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #e9eef8; }
.res-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.res-card:hover .res-cover img { transform: scale(1.09); }
.res-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10, 26, 62, .30)); }
.cover-badge { position: absolute; z-index: 2; left: 10px; top: 10px; display: flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 7px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(24, 42, 82, .72); }
.cover-badge.video { background: rgba(225, 76, 55, .88); }
.cover-badge.ppt { background: rgba(224, 132, 45, .9); }
.cover-badge.doc { background: rgba(43, 107, 210, .88); }
.cover-badge.image { background: rgba(112, 81, 190, .88); }
.cover-badge.audio { background: rgba(126, 84, 182, .88); }
.cover-play { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.85); width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--brand); display: grid; place-items: center; opacity: 0; transition: .3s var(--ease); box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
.cover-play .ico { width: 22px; height: 22px; margin-left: 2px; }
.res-card:hover .cover-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cover-dur { position: absolute; z-index: 2; right: 10px; bottom: 9px; font-size: 11px; color: #fff; background: rgba(10, 22, 48, .68); padding: 2px 7px; border-radius: 5px; }
.res-body { padding: 13px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.res-title { font-size: 14.5px; font-weight: 700; color: #2d374b; line-height: 1.5; height: 43px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; transition: color .2s; }
.res-card:hover .res-title { color: var(--brand); }
.res-meta { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-3); margin-top: 9px; flex-wrap: wrap; }
.res-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #c3ccdd; }
.res-foot { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 11px; border-top: 1px solid #f0f3fa; font-size: 11.5px; color: #98a2b6; }
.res-foot span { display: inline-flex; align-items: center; gap: 4px; }
.res-foot .ico { width: 14px; height: 14px; }
.res-foot .author { margin-left: auto; color: #71809a; max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scroller-nav { display: flex; justify-content: center; gap: 10px; margin-top: 2px; }
.side-top { opacity: 0; pointer-events: none; transition: opacity .3s var(--ease) }
.side-top.show { opacity: 1; pointer-events: auto }
.round-btn { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #7d8aa2; box-shadow: var(--shadow-s); display: grid; place-items: center; transition: .22s; }
.round-btn:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }

/* 双栏：资源 + 通知 */
.two-col { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; align-items: start; }
.notice-card { background: #fff; border-radius: var(--r-m); padding: 20px 22px; box-shadow: var(--shadow-s); }
.card-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.card-head h3 { font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.card-head h3::before { content: ''; width: 4px; height: 17px; border-radius: 3px; background: var(--brand); }
.card-head .more { font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 3px; }
.card-head .more:hover { color: var(--brand); }
.notice-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed #eef2f9; transition: .2s; }
.notice-item:last-child { border-bottom: 0; }
.notice-item:hover .n-title { color: var(--brand); transform: translateX(3px); }
.n-date { font-size: 12px; color: #a0aabd; font-variant-numeric: tabular-nums; flex: none; }
.n-title { font-size: 13.5px; color: #4a556b; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: .2s; }
.n-tag { font-size: 10.5px; color: var(--brand); background: var(--brand-soft); padding: 2px 7px; border-radius: 5px; flex: none; }
.n-hot { color: #e2503a; background: #fff0ec; }

/* 校园风采 */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-card { background: #fff; border-radius: var(--r-m); overflow: hidden; box-shadow: var(--shadow-s); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); }
.news-img { aspect-ratio: 16 / 9; overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.news-card:hover .news-img img { transform: scale(1.07); }
.news-body { padding: 15px 17px 18px; }
.news-meta { font-size: 11.5px; color: #a0a9bc; display: flex; gap: 10px; }
.news-body h4 { font-size: 15.5px; font-weight: 700; margin: 8px 0 7px; line-height: 1.45; }
.news-body p { font-size: 12.5px; color: var(--ink-3); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------------- 内页通用 ---------------- */
.page-hero {
  position: relative; height: 186px; overflow: hidden; display: flex; align-items: center;
  background: linear-gradient(110deg, #1b3f8f, #2b5fe3 58%, #6d9bf0);
}
.page-hero::before { content: ''; position: absolute; right: -60px; top: -140px; width: 460px; height: 460px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .07); }
.page-hero::after { content: ''; position: absolute; right: 180px; bottom: -220px; width: 360px; height: 360px; border-radius: 50%; border: 46px solid rgba(255, 255, 255, .055); }
.page-hero .wrap { position: relative; z-index: 1; }
.crumb { font-size: 12.5px; color: rgba(255, 255, 255, .75); margin-bottom: 8px; }
.crumb a:hover { color: #fff; text-decoration: underline; }
.page-hero h1 { font-size: 30px; font-weight: 800; color: #fff; letter-spacing: 2px; }
.page-hero p { color: rgba(255, 255, 255, .85); font-size: 13.5px; margin-top: 7px; }
.page-hero .ph-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12px; color: #fff; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); padding: 4px 12px; border-radius: 999px; }
.page-body { padding: 26px 0 60px; }

/* 筛选工具条 */
.toolbar { background: #fff; border-radius: var(--r-m); padding: 16px 20px; box-shadow: var(--shadow-s); margin-bottom: 20px; }
.filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-row + .filter-row { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.filter-label { font-size: 13px; color: var(--ink-3); flex: none; width: 62px; }
.chip { padding: 6px 14px; border-radius: 999px; font-size: 13px; color: #5d6880; background: #f4f7fc; transition: background .2s, color .2s, box-shadow .2s; white-space: nowrap; }
.chip:hover { background: #e7efff; color: var(--brand); }
.chip.active { background: var(--brand); color: #fff; box-shadow: 0 4px 10px rgba(43, 95, 227, .24); }
.toolbar-top { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-bottom: 14px; }
.toolbar-top h2 { font-size: 19px; font-weight: 800; display: flex; align-items: center; gap: 9px; }
.toolbar-top h2::before { content: ''; width: 4px; height: 18px; border-radius: 3px; background: var(--brand); }
.result-count { color: var(--ink-3); font-size: 13px; }
.result-count b { color: var(--brand); font-size: 16px; }
.select, .input, .textarea {
  background: #f7f9fd; border: 1px solid #e4eaf6; border-radius: 9px; padding: 9px 12px;
  font-size: 13.5px; outline: none; transition: .2s; width: 100%;
}
.select:focus, .input:focus, .textarea:focus { border-color: var(--brand-3); background: #fff; box-shadow: 0 0 0 3px rgba(43, 95, 227, .1); }
.inline-search { display: flex; align-items: center; gap: 8px; background: #f7f9fd; border: 1px solid #e4eaf6; border-radius: 9px; padding: 0 10px; width: 240px; }
.inline-search .ico { color: #9aa6bb; width: 17px; height: 17px; }
.inline-search input { border: 0; background: transparent; outline: none; padding: 9px 0; font-size: 13.5px; width: 100%; }
.res-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.empty-state { text-align: center; padding: 70px 20px; color: var(--ink-3); grid-column: 1 / -1; }
.empty-state .ico { width: 54px; height: 54px; color: #cbd6ea; margin-bottom: 12px; }
.empty-state h3 { font-size: 17px; color: #6c7890; margin-bottom: 6px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: 28px; }
.pager button { min-width: 34px; height: 34px; padding: 0 9px; border-radius: 9px; background: #fff; color: #63708a; font-size: 13px; box-shadow: var(--shadow-s); transition: .2s; }
.pager button:hover { color: var(--brand); }
.pager button.active { background: var(--brand); color: #fff; }
.pager button:disabled { opacity: .45; cursor: not-allowed; }

/* ---------------- 上传页 ---------------- */
.upload-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.form-card { background: #fff; border-radius: var(--r-m); padding: 26px 28px; box-shadow: var(--shadow-s); }
.form-title { font-size: 18px; font-weight: 800; margin-bottom: 4px; display: flex; align-items: center; gap: 9px; }
.form-title::before { content: ''; width: 4px; height: 19px; border-radius: 3px; background: var(--brand); }
.form-hint { font-size: 12.5px; color: var(--ink-3); margin-bottom: 22px; }
.dropzone {
  border: 2px dashed #c7d7f5; border-radius: var(--r-m); background: linear-gradient(160deg, #f7faff, #f2f7ff);
  padding: 34px 20px; text-align: center; transition: .28s var(--ease); cursor: pointer; position: relative; overflow: hidden;
}
.dropzone::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(43, 95, 227, .09), transparent 65%); opacity: 0; transition: .3s; }
.dropzone:hover, .dropzone.drag { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(43, 95, 227, .12); }
.dropzone:hover::before, .dropzone.drag::before { opacity: 1; }
.dropzone.drag { background: #eaf2ff; }
.dz-icon { width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 22px; display: grid; place-items: center; color: var(--brand); background: #fff; box-shadow: 0 8px 22px rgba(43, 95, 227, .14); animation: floaty 3.4s ease-in-out infinite; }
.dz-icon .ico { width: 32px; height: 32px; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.dz-main { font-size: 16px; font-weight: 700; color: #3b4760; }
.dz-main em { color: var(--brand); font-style: normal; }
.dz-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.dz-formats { display: flex; justify-content: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.dz-formats span { font-size: 11px; color: #7b8aa6; background: #fff; border: 1px solid #e3ebf9; border-radius: 6px; padding: 3px 9px; }
.file-picked { display: flex; align-items: center; gap: 13px; background: #f5f9ff; border: 1px solid #dfe9fb; border-radius: 12px; padding: 13px 15px; margin-top: 14px; animation: popIn .3s var(--ease); }
.fp-icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, #5b8bf0, #2b5fe3); flex: none; }
.fp-info { flex: 1; min-width: 0; }
.fp-info b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-info small { color: var(--ink-3); font-size: 11.5px; }
.fp-del { color: #9aa6bb; padding: 5px; border-radius: 7px; }
.fp-del:hover { background: #ffecea; color: #d94b3c; }
.progress { height: 6px; border-radius: 9px; background: #e7edf9; overflow: hidden; margin-top: 10px; }
.progress i { display: block; height: 100%; width: 100%; border-radius: 9px; background: linear-gradient(90deg, #4d86f5, #2b5fe3); transform: scaleX(0); transform-origin: 0 50%; transition: transform .25s ease; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: #4b5670; }
.field label .req { color: #e2503a; }
.field .tip { font-size: 11.5px; color: var(--ink-3); }
.textarea { min-height: 92px; resize: vertical; line-height: 1.7; }
.cover-picker { display: flex; gap: 9px; flex-wrap: wrap; }
.cover-opt { width: 74px; aspect-ratio: 16 / 10; border-radius: 9px; overflow: hidden; border: 2px solid transparent; transition: .2s; position: relative; }
.cover-opt img { width: 100%; height: 100%; object-fit: cover; }
.cover-opt:hover { transform: translateY(-3px); }
.cover-opt.active { border-color: var(--brand); box-shadow: 0 5px 14px rgba(43, 95, 227, .28); }
.cover-opt.active::after { content: '✓'; position: absolute; right: 3px; top: 1px; color: #fff; font-size: 12px; font-weight: 800; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.btn-lg { padding: 11px 30px; font-size: 14.5px; border-radius: 999px; font-weight: 700; }
.side-card { background: #fff; border-radius: var(--r-m); padding: 20px; box-shadow: var(--shadow-s); margin-bottom: 16px; }
.side-card h3 { font-size: 15.5px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.side-card h3 .ico { color: var(--brand); }
.guide-step { display: flex; gap: 11px; padding: 9px 0; }
.guide-num { width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 11.5px; font-weight: 800; display: grid; place-items: center; flex: none; }
.guide-txt b { display: block; font-size: 13px; }
.guide-txt small { font-size: 11.5px; color: var(--ink-3); }
.rule-list li { font-size: 12.5px; color: #6a7590; padding: 6px 0 6px 16px; position: relative; line-height: 1.65; }
.rule-list li::before { content: ''; position: absolute; left: 2px; top: 13px; width: 5px; height: 5px; border-radius: 50%; background: #a9bdea; }
.upload-mini-stat { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.upload-mini-stat:last-child { border: 0; }
.upload-mini-stat b { color: var(--brand); font-variant-numeric: tabular-nums; }

/* ---------------- 详情页 ---------------- */
.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.player { background: #101a30; border-radius: var(--r-m); overflow: hidden; aspect-ratio: 16 / 9; position: relative; display: grid; place-items: center; }
.player img { width: 100%; height: 100%; object-fit: cover; opacity: .78; }
.player .big-play { position: absolute; width: 74px; height: 74px; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--brand); display: grid; place-items: center; box-shadow: 0 12px 34px rgba(0, 0, 0, .3); transition: .25s var(--ease); }
.player .big-play:hover { transform: scale(1.1); }
.player .big-play .ico { width: 32px; height: 32px; margin-left: 4px; }
.player video, .player .doc-preview { width: 100%; height: 100%; object-fit: contain; background: #101a30; }
.doc-preview { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #fff; text-align: center; padding: 24px; }
.doc-preview .ico { width: 56px; height: 56px; color: #8fb0ff; }
.detail-info { background: #fff; border-radius: var(--r-m); padding: 24px 26px; box-shadow: var(--shadow-s); margin-top: 16px; }
.detail-info h1 { font-size: 23px; font-weight: 800; line-height: 1.4; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--ink-3); font-size: 12.5px; margin: 12px 0 18px; }
.detail-meta span { display: inline-flex; align-items: center; gap: 5px; }
.detail-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tag { font-size: 12px; color: var(--brand); background: var(--brand-soft); border-radius: 6px; padding: 4px 10px; }
.detail-desc { font-size: 14px; line-height: 1.9; color: #52607a; background: #f7f9fd; border-radius: 10px; padding: 16px 18px; }
.detail-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.act-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600; background: #f2f5fb; color: #5b6780; transition: .22s; }
.act-btn:hover { background: var(--brand-soft); color: var(--brand); transform: translateY(-2px); }
.act-btn.on { background: #fff0ee; color: #e04e3c; }
.act-btn.primary { background: var(--brand); color: #fff; }
.act-btn.primary:hover { background: var(--brand-2); }
.comment-box { margin-top: 24px; background: #fff; border-radius: var(--r-m); padding: 22px 26px; box-shadow: var(--shadow-s); }
.comment-input { display: flex; gap: 10px; margin-bottom: 18px; }
.comment-input textarea { flex: 1; min-height: 62px; }
.comment-item { display: flex; gap: 11px; padding: 13px 0; border-top: 1px dashed var(--line); }
.comment-item .avatar { width: 34px; height: 34px; font-size: 13px; }
.comment-item .c-body { flex: 1; }
.comment-item .c-head { display: flex; justify-content: space-between; font-size: 12.5px; }
.comment-item .c-head b { color: #3d4960; }
.comment-item .c-head time { color: #a8b1c2; }
.comment-item p { font-size: 13.5px; color: #5a667e; margin-top: 4px; }
.teacher-card { background: #fff; border-radius: var(--r-m); padding: 22px; box-shadow: var(--shadow-s); text-align: center; }
.teacher-card .avatar { width: 66px; height: 66px; font-size: 25px; margin: 0 auto 12px; }
.teacher-card h3 { font-size: 17px; font-weight: 800; }
.teacher-card p { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.teacher-stats { display: flex; justify-content: center; gap: 26px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.teacher-stats b { display: block; font-size: 18px; color: var(--brand); }
.teacher-stats small { font-size: 11.5px; color: var(--ink-3); }
.relate-item { display: flex; gap: 11px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.relate-item:last-child { border: 0; }
.relate-item img { width: 84px; height: 56px; border-radius: 8px; object-fit: cover; flex: none; }
.relate-item b { font-size: 12.8px; font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.relate-item small { color: var(--ink-3); font-size: 11px; }
.relate-item:hover b { color: var(--brand); }

/* ---------------- 我的空间 ---------------- */
.space-head { background: linear-gradient(110deg, #23468f, #3b6ee6 60%, #78a3f2); border-radius: var(--r-m); padding: 26px 30px; color: #fff; display: flex; align-items: center; gap: 20px; position: relative; overflow: hidden; }
.space-head::after { content: ''; position: absolute; right: -40px; top: -120px; width: 320px; height: 320px; border-radius: 50%; border: 44px solid rgba(255, 255, 255, .08); }
.space-head .avatar { width: 66px; height: 66px; font-size: 25px; border: 3px solid rgba(255, 255, 255, .55); flex: none; }
.space-head h1 { font-size: 22px; font-weight: 800; }
.space-head p { font-size: 13px; color: rgba(255, 255, 255, .85); margin-top: 4px; }
.space-head .space-badge { margin-left: auto; position: relative; z-index: 1; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35); padding: 7px 16px; border-radius: 999px; font-size: 12.5px; }
.space-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0 22px; }
.space-stat { background: #fff; border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow-s); display: flex; align-items: center; gap: 14px; }
.space-stat .ico { width: 26px; height: 26px; color: var(--brand); background: var(--brand-soft); padding: 6px; border-radius: 10px; box-sizing: content-box; }
.space-stat b { display: block; font-size: 22px; line-height: 1.2; }
.space-stat small { font-size: 12px; color: var(--ink-3); }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tab { padding: 10px 20px; font-size: 14.5px; font-weight: 600; color: #6d7890; position: relative; transition: .2s; }
.tab:hover { color: var(--brand); }
.tab.active { color: var(--brand); }
.tab.active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); }
.my-row { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow-s); margin-bottom: 10px; transition: .2s; }
.my-row:hover { box-shadow: var(--shadow-m); transform: translateX(3px); }
.my-row img { width: 92px; height: 60px; border-radius: 8px; object-fit: cover; flex: none; }
.my-row .mr-body { flex: 1; min-width: 0; }
.my-row .mr-body b { font-size: 14px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-row .mr-body small { color: var(--ink-3); font-size: 11.5px; }
.status-pill { font-size: 11.5px; padding: 4px 11px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.status-pill.published { background: #e7f7ef; color: #1e9b6b; }
.status-pill.pending { background: #fff5e5; color: #c8871d; }
.status-pill.offline { background: #f1f3f7; color: #8a93a5; }
.row-btn { width: 32px; height: 32px; border-radius: 8px; color: #8d99ad; display: grid; place-items: center; transition: .2s; }
.row-btn:hover { background: #fff0ee; color: #d94b3c; }
.row-btn.normal:hover { background: var(--brand-soft); color: var(--brand); }

/* ---------------- 管理后台 ---------------- */
.admin-layout { display: grid; grid-template-columns: 210px 1fr; gap: 20px; align-items: start; }
.admin-side { background: #fff; border-radius: var(--r-m); padding: 14px 10px; box-shadow: var(--shadow-s); position: sticky; top: 76px; }
.admin-side .as-title { font-size: 12px; color: var(--ink-3); padding: 6px 12px 10px; letter-spacing: 1px; }
.as-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 13px; border-radius: 10px; font-size: 13.5px; color: #5b6780; margin-bottom: 3px; transition: .2s; text-align: left; }
.as-item:hover { background: #f4f7fc; color: var(--brand); }
.as-item.active { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.admin-stat { background: #fff; border-radius: 14px; padding: 18px; box-shadow: var(--shadow-s); position: relative; overflow: hidden; }
.admin-stat::after { content: ''; position: absolute; right: -18px; bottom: -24px; width: 78px; height: 78px; border-radius: 50%; background: var(--brand-soft); opacity: .55; }
.admin-stat small { font-size: 12.5px; color: var(--ink-3); }
.admin-stat b { display: block; font-size: 27px; color: #2b3852; margin-top: 4px; font-variant-numeric: tabular-nums; }
.admin-stat .delta { font-size: 11.5px; color: #2fa87a; margin-top: 3px; }
.chart-card { background: #fff; border-radius: var(--r-m); padding: 20px 22px; box-shadow: var(--shadow-s); margin-top: 18px; }
.chart-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 16px; }
.bar-chart { display: flex; align-items: flex-end; gap: 14px; height: 176px; padding: 0 8px; border-bottom: 1px solid var(--line); }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 7px; }
.bar-col i { display: block; width: min(38px, 70%); border-radius: 7px 7px 0 0; background: linear-gradient(180deg, #6d9bf5, #2b5fe3); transition: height .8s var(--ease); position: relative; }
.bar-col i::after { content: attr(data-v); position: absolute; top: -19px; left: 50%; transform: translateX(-50%); font-size: 11px; color: #6d7890; font-style: normal; }
.bar-col span { font-size: 11.5px; color: #8e99ad; margin-bottom: -22px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { text-align: left; font-weight: 700; color: #7b869c; background: #f7f9fd; padding: 11px 12px; white-space: nowrap; }
.admin-table th:first-child { border-radius: 9px 0 0 9px; }
.admin-table th:last-child { border-radius: 0 9px 9px 0; }
.admin-table td { padding: 11px 12px; border-bottom: 1px solid #f0f3f9; color: #4d5971; }
.admin-table tr:hover td { background: #fafcff; }
.admin-table .t-title { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-actions { display: flex; gap: 6px; }
.t-btn { font-size: 11.5px; padding: 4px 10px; border-radius: 6px; background: #eef3fd; color: var(--brand); transition: .2s; }
.t-btn:hover { background: var(--brand); color: #fff; }
.t-btn.warn { background: #fff2ec; color: #d2692f; }
.t-btn.warn:hover { background: #d2692f; color: #fff; }
.t-btn.gray { background: #f1f3f7; color: #8a93a5; }
.t-btn.gray:hover { background: #8a93a5; color: #fff; }
.role-badge { font-size: 11px; padding: 3px 9px; border-radius: 6px; font-weight: 600; }
.role-badge.admin { background: #efe9ff; color: #7b52c9; }
.role-badge.teacher { background: #e8f2ff; color: #2b6fd0; }
.role-badge.guest { background: #f0f2f6; color: #8892a5; }
.chart-two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.donut-wrap { display: flex; align-items: center; gap: 22px; justify-content: center; padding: 6px 0; }
.donut { width: 148px; height: 148px; border-radius: 50%; display: grid; place-items: center; position: relative; flex: none; }
.donut::after { content: ''; position: absolute; inset: 26px; border-radius: 50%; background: #fff; }
.donut b { position: relative; z-index: 1; font-size: 23px; color: #2b3852; }
.donut small { position: relative; z-index: 1; font-size: 11px; color: var(--ink-3); display: block; text-align: center; }
.legend li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #66718a; padding: 4px 0; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.legend b { margin-left: auto; color: #39445c; }

/* ---------------- 关于页 ---------------- */
.about-card { background: #fff; border-radius: var(--r-m); padding: 30px 34px; box-shadow: var(--shadow-s); }
.about-card h2 { font-size: 21px; font-weight: 800; margin-bottom: 14px; }
.about-card p { font-size: 14px; line-height: 2; color: #56627a; margin-bottom: 12px; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.about-tile { background: #f7faff; border: 1px solid #e5edfc; border-radius: 14px; padding: 20px; }
.about-tile .ico { width: 28px; height: 28px; color: var(--brand); margin-bottom: 10px; }
.about-tile b { display: block; font-size: 15px; margin-bottom: 5px; }
.about-tile p { font-size: 12.5px; color: var(--ink-3); line-height: 1.7; margin: 0; }

/* ---------------- 右侧悬浮工具 / 吉祥物 ---------------- */
.side-tools {
  position: fixed; right: 14px; top: 46%; transform: translateY(-50%); z-index: 45;
  background: #fff; border-radius: 14px; padding: 6px; box-shadow: var(--shadow-m);
  display: flex; flex-direction: column; gap: 2px; border: 1px solid #edf1f9;
}
.side-tools button { width: 36px; height: 36px; border-radius: 9px; color: #7b88a0; display: grid; place-items: center; transition: .2s; }
.side-tools button:hover { background: var(--brand-soft); color: var(--brand); transform: scale(1.08); }
.side-tools .side-top { border-top: 1px solid var(--line); margin-top: 3px; padding-top: 5px; border-radius: 0 0 9px 9px; }
.mascot { position: fixed; right: 18px; bottom: 26px; z-index: 44; width: 76px; height: 76px; border-radius: 50%; overflow: visible; animation: floaty 4s ease-in-out infinite; will-change: transform; }
.mascot img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 8px 24px rgba(43, 95, 227, .28); background: #eaf1ff; }
.mascot-bubble { position: absolute; right: 84px; top: 12px; width: max-content; max-width: 190px; background: #fff; color: #44516a; font-size: 12px; padding: 8px 13px; border-radius: 12px 12px 2px 12px; box-shadow: var(--shadow-m); opacity: 0; transform: translateX(8px); transition: .3s var(--ease); pointer-events: none; }
.mascot:hover .mascot-bubble { opacity: 1; transform: none; }
.mascot-bubble.show { opacity: 1; transform: none; }

/* ---------------- 页脚 ---------------- */
.site-footer { background: linear-gradient(180deg, #eef3fc, #e6eefb); margin-top: 44px; border-top: 1px solid #dde7f8; }
.footer-inner { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 36px 0 28px; display: flex; gap: 60px; justify-content: space-between; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; max-width: 400px; }
.footer-brand img { width: 52px; height: 52px; object-fit: contain; }
.footer-brand strong { font-size: 17px; font-weight: 800; color: #2d3a54; }
.footer-brand p { font-size: 12.5px; color: #7e8aa1; margin-top: 6px; }
.footer-links { display: flex; gap: 74px; }
.footer-links h4 { font-size: 14px; font-weight: 700; color: #3a475f; margin-bottom: 10px; }
.footer-links a { display: block; font-size: 12.5px; color: #7e8aa1; padding: 3px 0; transition: .2s; }
.footer-links a:hover { color: var(--brand); transform: translateX(3px); }
.footer-bottom { border-top: 1px solid #d8e3f5; width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 15px 0 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 11.5px; color: #8d99ae; }
.footer-bottom span { display: inline-flex; align-items: center; gap: 5px; }

/* ---------------- 弹窗 / Toast / 搜索面板 ---------------- */
.modal-mask { position: fixed; inset: 0; z-index: 100; background: rgba(20, 32, 58, .5); backdrop-filter: blur(5px); display: grid; place-items: center; padding: 20px; animation: fadeIn .22s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { background: #fff; border-radius: 20px; width: min(440px, 100%); box-shadow: var(--shadow-l); overflow: hidden; animation: modalIn .32s var(--ease); }
.modal.wide { width: min(660px, 100%); }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
.modal-head { padding: 24px 26px 6px; position: relative; }
.modal-head h2 { font-size: 21px; font-weight: 800; }
.modal-head p { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; }
.modal-close { position: absolute; right: 18px; top: 20px; width: 32px; height: 32px; border-radius: 9px; color: #9aa5b8; display: grid; place-items: center; }
.modal-close:hover { background: #f2f5fa; color: #4b5670; }
.modal-body { padding: 18px 26px 26px; }
.modal-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 18px; }
.modal-logo img { width: 46px; height: 46px; }
.modal-logo b { font-size: 16px; }
.form-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.form-field label { font-size: 13px; font-weight: 600; color: #4d5870; }
.input-with-icon { display: flex; align-items: center; gap: 9px; background: #f7f9fd; border: 1px solid #e4eaf6; border-radius: 10px; padding: 0 12px; }
.input-with-icon:focus-within { border-color: var(--brand-3); box-shadow: 0 0 0 3px rgba(43, 95, 227, .1); background: #fff; }
.input-with-icon .ico { color: #9aa6bb; width: 18px; height: 18px; }
.input-with-icon input { border: 0; background: transparent; outline: none; padding: 11px 0; width: 100%; font-size: 14px; }
.modal .btn-primary { width: 100%; padding: 12px; border-radius: 10px; font-size: 15px; margin-top: 6px; }
.modal-switch { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 16px; }
.modal-switch a { color: var(--brand); font-weight: 600; cursor: pointer; }
.quick-login { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.quick-login > span { font-size: 12px; color: var(--ink-3); display: block; margin-bottom: 9px; }
.quick-login-btns { display: flex; gap: 9px; }
.quick-login-btns button { flex: 1; border: 1px solid #dde6f7; border-radius: 9px; padding: 9px; font-size: 12.5px; color: #55627c; transition: .2s; }
.quick-login-btns button:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.modal-note { font-size: 11.5px; color: #a1aabd; text-align: center; margin-top: 12px; }
.toast-root { position: fixed; top: 86px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 9px; align-items: center; pointer-events: none; }
.toast { background: rgba(30, 43, 70, .94); color: #fff; font-size: 13.5px; padding: 11px 22px; border-radius: 999px; box-shadow: var(--shadow-l); animation: toastIn .3s var(--ease); display: flex; align-items: center; gap: 8px; max-width: 90vw; }
.toast.success { background: #1e9b6b; }
.toast.error { background: #d94b3c; }
.toast .ico { width: 16px; height: 16px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.toast.out { animation: toastOut .3s ease forwards; }
@keyframes toastOut { to { opacity: 0; transform: translateY(-12px); } }
.search-panel { position: fixed; inset: 0; z-index: 95; background: rgba(18, 30, 56, .42); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.search-panel.open { opacity: 1; pointer-events: auto; }
.search-panel-inner { width: min(680px, calc(100% - 40px)); margin: 110px auto 0; background: #fff; border-radius: 18px; padding: 18px; box-shadow: var(--shadow-l); transform: translateY(-14px); transition: transform .3s var(--ease); }
.search-panel.open .search-panel-inner { transform: none; }
.search-big { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid var(--brand-soft); padding: 8px 6px 14px; }
.search-big .ico { color: var(--brand); }
.search-big input { flex: 1; border: 0; outline: none; font-size: 17px; background: transparent; }
.search-big button { color: #9aa5b8; }
.search-hints { padding: 14px 6px 4px; }
.search-hints h5 { font-size: 12px; color: var(--ink-3); font-weight: 600; margin-bottom: 10px; }
.hint-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hint-chip { font-size: 12.5px; color: #5d6880; background: #f3f6fc; padding: 6px 13px; border-radius: 999px; transition: .2s; }
.hint-chip:hover { background: var(--brand); color: #fff; }
.search-results { max-height: 300px; overflow-y: auto; margin-top: 10px; }
.search-result { display: flex; align-items: center; gap: 11px; padding: 9px; border-radius: 9px; transition: .2s; }
.search-result:hover { background: var(--brand-soft); }
.search-result img { width: 58px; height: 40px; border-radius: 6px; object-fit: cover; }
.search-result b { font-size: 13px; font-weight: 600; display: block; }
.search-result small { font-size: 11.5px; color: var(--ink-3); }

/* ---------------- 滚动入场动画 ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.view-enter { animation: viewIn .45s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------------- 无障碍大字模式 ---------------- */
body.a11y-large { font-size: 17px; }
body.a11y-large .nav-link { font-size: 17px; }
body.a11y-large .res-title { font-size: 16px; }
body.a11y-large .n-title, body.a11y-large .chip, body.a11y-large .tile-name { font-size: 15px; }

/* ---------------- 栏目页（对齐参考站 /sedu 结构） ---------------- */
.topic-hero { height: 200px; background-size: cover; background-position: center 46%; display: flex; align-items: center; position: relative; }
.topic-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16, 26, 52, .34), transparent 70%); pointer-events: none; }
.topic-hero .wrap { position: relative; z-index: 1; }
.topic-hero .crumb, .topic-hero .crumb a { color: rgba(255, 255, 255, .84); }
.topic-hero h1 { font-size: 38px; font-weight: 800; letter-spacing: 8px; color: #fff; text-shadow: 0 3px 18px rgba(0, 0, 0, .3); }
.topic-hero p { color: rgba(255, 255, 255, .9); font-size: 14px; margin-top: 6px; letter-spacing: 1px; }
.topic-tabs {
  position: relative; z-index: 3; margin-top: -30px; background: #fff; border-radius: var(--r-m);
  box-shadow: var(--shadow-m); display: flex; align-items: center; justify-content: space-around;
  gap: 6px; padding: 16px 12px; overflow-x: auto; scrollbar-width: none;
  animation: tabsIn .6s var(--ease) backwards;
}
.topic-tabs::-webkit-scrollbar { display: none; }
@keyframes tabsIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.topic-tab { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 84px; font-size: 13px; color: #4b5670; white-space: nowrap; transition: .25s var(--ease); }
.topic-tab:hover { transform: translateY(-5px); color: var(--brand); }
.topic-tab .tile-ico {
  width: 44px; height: 44px; border-radius: 50%; color: #fff; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--c1, #4a8ff0), var(--c2, #7db8f8));
  box-shadow: inset 0 -4px 9px rgba(0, 0, 0, .09), inset 0 3px 7px rgba(255, 255, 255, .4), 0 6px 13px rgba(70, 100, 170, .18);
  transition: transform .35s var(--ease);
}
.topic-tab:hover .tile-ico { transform: scale(1.12) rotate(-7deg); }
.topic-tab .tile-ico .ico { width: 23px; height: 23px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { position: relative; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-s); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.feature-card:hover { --lift: -7px; transform: translateY(var(--lift, 0px)); box-shadow: var(--shadow-l); }
.feature-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s var(--ease); }
.feature-card:hover img { transform: scale(1.06); }
.feature-card > div { padding: 13px 16px 17px; }
.feature-card b { font-size: 14.5px; font-weight: 700; line-height: 1.5; display: block; }
.feature-card small { font-size: 12px; color: var(--ink-3); display: block; margin-top: 5px; }
.fc-arrow { position: absolute; right: 13px; bottom: 13px; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; transition: .25s; }
.feature-card:hover .fc-arrow { background: var(--brand); color: #fff; transform: translateX(3px); }

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .topic-hero { height: 160px; }
  .topic-hero h1 { font-size: 30px; }
}
@media (max-width: 620px) {
  .topic-hero { height: 132px; }
  .topic-hero h1 { font-size: 24px; letter-spacing: 4px; }
  .topic-hero p { font-size: 12px; }
  .topic-tabs { justify-content: flex-start; padding: 12px; margin-top: -20px; }
  .topic-tab { min-width: 66px; font-size: 11.5px; }
  .topic-tab .tile-ico { width: 38px; height: 38px; }
  .topic-tab .tile-ico .ico { width: 20px; height: 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .fc-arrow { display: none; }
}

/* ---------------- 教研成果专区 ---------------- */
.hub-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.hub-card { position: relative; display: block; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-s); background: #fff; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.hub-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.hub-card:hover { --lift: -7px; transform: translateY(var(--lift, 0px)); box-shadow: var(--shadow-l); }
.hub-card:hover img { transform: scale(1.07); }
.hub-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 46px 14px 13px; background: linear-gradient(180deg, rgba(12, 24, 52, 0), rgba(12, 24, 52, .85)); color: #fff; }
.hub-cap b { font-size: 17px; font-weight: 800; letter-spacing: 2px; display: block; }
.hub-cap small { font-size: 11px; color: rgba(255, 255, 255, .85); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 5px; }
.hub-cap .hub-more { font-size: 11px; color: #ffd782; display: block; margin-top: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-grid.col9 { grid-template-columns: repeat(9, 1fr); gap: 10px; }
.tile-grid.col9 .tile { padding: 15px 4px 13px; gap: 9px; }
.tile-grid.col9 .tile-ico { width: 48px; height: 48px; }
.tile-grid.col9 .tile-ico .ico { width: 24px; height: 24px; }
.tile-grid.col9 .tile-name { font-size: 12.5px; }
@media (max-width: 1100px) {
  .hub-grid { grid-template-columns: repeat(3, 1fr); }
  .tile-grid.col9 { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 620px) {
  .hub-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hub-cap { padding: 34px 12px 11px; }
  .hub-cap b { font-size: 14px; letter-spacing: 1px; }
  .hub-cap small { display: none; }
  .tile-grid.col9 { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1100px) {
  .res-track { grid-auto-columns: calc((100% - 2 * 14px) / 3); }
  .res-grid { grid-template-columns: repeat(3, 1fr); }
  .tile-grid.col10 { grid-template-columns: repeat(5, 1fr); }
  .a11y-btn span { display: none; }
  .footer-links { gap: 40px; }
}
@media (max-width: 900px) {
  .wrap, .wrap-wide, .mast-inner, .nav-inner, .hero-stage, .hero-foot, .footer-inner, .footer-bottom { width: calc(100% - 32px); }
  .mast-org-txt { display: none; }
  .mast-brand span { font-size: 17px; }
  .nav-link { padding: 0 10px; font-size: 14px; }
  .two-col, .detail-layout, .upload-layout, .chart-two { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { position: static; display: flex; overflow-x: auto; gap: 4px; }
  .admin-side .as-title { display: none; }
  .as-item { white-space: nowrap; }
  .quick-strip, .space-cards, .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .res-track { grid-auto-columns: calc((100% - 14px) / 2); }
  .res-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid, .about-grid { grid-template-columns: 1fr 1fr; }
  .tile-grid { grid-template-columns: repeat(3, 1fr); }
  .side-tools { display: none; }
  .mascot { width: 58px; height: 58px; right: 10px; bottom: 12px; }
  .footer-inner { flex-direction: column; gap: 26px; }
  .hero-copy { max-width: 72%; }
}
@media (max-width: 620px) {
  body { font-size: 14px; }
  .masthead, .mast-inner { height: 58px; }
  .mast-org, .mast-divider, .client-btn, .hero-links { display: none; }
  .mast-brand span { font-size: 15px; }
  .mast-brand img, .mast-org-emblem { width: 34px; height: 34px; }
  .nav-inner { height: 50px; }
  .nav-arrow { display: none; }
  .a11y-btn { display: none; }
  .btn-login, .btn-register { padding: 6px 12px; font-size: 12.5px; }
  .hero-stage { height: 226px; margin-top: 12px; }
  .hero-copy { left: 20px; max-width: 86%; }
  .hero-title { font-size: 21px; letter-spacing: .5px; margin: 10px 0 6px; }
  .hero-sub { font-size: 11.5px; margin-bottom: 14px; }
  .hero-kicker { font-size: 10.5px; letter-spacing: 1px; padding: 3px 10px; }
  .hero-cta { font-size: 12.5px; padding: 8px 16px; }
  .hero-nav { display: none; }
  .hero-foot { height: 38px; }
  .section { padding: 20px 0 6px; }
  .section-head { margin-bottom: 18px; }
  .topic-banner { padding: 0 18px; min-height: 78px; }
  .tb-desc { display: none; }
  .tb-title { font-size: 22px; }
  .tb-more { font-size: 12px; padding: 7px 13px; }
  .tile-grid { grid-template-columns: repeat(3, 1fr); gap: 9px; }
  .tile { padding: 14px 4px 12px; gap: 8px; }
  .tile-ico { width: 46px; height: 46px; }
  .tile-ico .ico { width: 22px; height: 22px; }
  .tile-name { font-size: 12px; }
  .tile-grid.col10 { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .quick-strip, .res-grid, .news-grid, .about-grid, .space-cards, .admin-stats, .form-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .quick-card { padding: 13px; gap: 9px; }
  .quick-ico { width: 38px; height: 38px; }
  .quick-txt b { font-size: 13px; }
  .quick-txt small { font-size: 10.5px; }
  .quick-card .arr { display: none; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
  .stat-item:nth-child(3)::before { display: none; }
  .stat-num { font-size: 23px; }
  .res-track { grid-auto-columns: 74%; gap: 12px; }
  .res-grid { gap: 10px; }
  .res-title { font-size: 12.5px; height: 38px; }
  .res-body { padding: 10px; }
  .page-hero { height: 140px; }
  .page-hero h1 { font-size: 22px; }
  .toolbar { padding: 13px; }
  .filter-label { width: 100%; }
  .inline-search { width: 100%; }
  .form-card { padding: 18px; }
  .upload-layout .side-card { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .two-col { gap: 14px; }
  .space-head { padding: 18px; }
  .space-head .space-badge { display: none; }
  .detail-info { padding: 18px; }
  .detail-info h1 { font-size: 18px; }
  .admin-table { font-size: 11.5px; }
  .admin-table th, .admin-table td { padding: 8px 6px; }
  .footer-links { gap: 22px; flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; gap: 5px; }
  .mascot { display: none; }
}
/* ---------------- 世界级动效层 ---------------- */
/* 顶部滚动进度条 */
#scrollProgress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120;
  background: linear-gradient(90deg, #4d86f5, #8a6fe0, #e3b25d);
  transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
/* Hero 主标题：clip-path 从左到右揭示（世界级入场，纯 CSS 零 DOM 依赖） */
.hero-slide.active .hero-title { animation: heroTitleIn 1.1s var(--ease) .3s both; }
@keyframes heroTitleIn { from { clip-path: inset(-20% 102% -20% -2%); opacity: .15 } to { clip-path: inset(-20% -6% -20% -2%); opacity: 1 } }
.hero-slide.active .hero-kicker { animation: kickerIn .7s var(--ease) .15s both }
@keyframes kickerIn { from { opacity: 0; transform: translateX(-14px) } to { opacity: 1; transform: none } }
.hero-slide.active .hero-sub { animation: heroText .7s var(--ease) .55s backwards }
.hero-slide.active .hero-cta { animation: heroText .7s var(--ease) .7s backwards }
/* 3D 倾斜 + 高光跟随（hover 激活，非 hover 保留 reveal 原始状态） */
.tilt:hover { transform: perspective(750px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px)); }
.tilt { transition: transform .4s var(--ease), box-shadow .32s var(--ease), border-color .32s var(--ease); }
.tilt:hover { transition: transform .12s ease-out, box-shadow .32s var(--ease); }
.tilt::after { content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .16), transparent 52%);
  opacity: 0; transition: opacity .35s; pointer-events: none; }
.tilt:hover::after { opacity: 1 }
/* 图片加载淡入 */
.img-fade { opacity: 0; transform: scale(1.035); transition: opacity .6s var(--ease), transform .6s var(--ease) }
.img-fade.loaded { opacity: 1; transform: none }
/* 磁吸按钮（hero-cta） */
.hero-cta { --mx: 0px; --my: 0px; transform: translate(var(--mx), var(--my)); transition: transform .18s ease-out, gap .25s var(--ease), box-shadow .25s var(--ease); }
.hero-cta:hover { transform: translate(var(--mx), calc(var(--my) - 3px)); }
/* 弹簧曲线（弹窗/提示） */
@keyframes modalSpring { from { opacity: 0; transform: translateY(26px) scale(.94) } 60% { opacity: 1; transform: translateY(-6px) scale(1.015) } to { opacity: 1; transform: none } }
.modal { animation: modalSpring .52s cubic-bezier(.22, .8, .28, 1) both; }
@keyframes toastSpring { from { opacity: 0; transform: translateY(-14px) scale(.92) } 65% { transform: translateY(2px) scale(1.02) } to { opacity: 1; transform: none } }
.toast { animation: toastSpring .46s cubic-bezier(.22, .8, .28, 1); }
/* 板块标题斜线入场 */
.section-title .slashes { opacity: .35; transition: opacity .65s var(--ease), transform .65s var(--ease); }
.section-title .slashes:first-child { transform: skewX(-18deg) translateX(-12px) }
.section-title .slashes.r { transform: skewX(-18deg) translateX(12px) }
.section-head.reveal.in .slashes { opacity: 1; transform: skewX(-18deg) }
/* 页面切换 blur 过渡（覆盖旧 viewIn） */
.view-enter { animation: viewInB .5s var(--ease) }
@keyframes viewInB { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }
/* AI 真人头像（渐变首字做兜底底层，加载后淡入覆盖） */
.avatar { position: relative; overflow: hidden }
.avatar .av-bg { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; line-height: 1 }
.avatar .av-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease, transform .35s var(--ease) }
.avatar .av-img.loaded { opacity: 1 }
.avatar:hover .av-img.loaded { transform: scale(1.08) }
/* 九类成果图卡（3x3 大气网格） */
.sub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px }
.sub-card { position: relative; display: block; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-s); background: #fff; transition: transform .3s var(--ease), box-shadow .3s var(--ease) }
.sub-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; transition: transform .55s var(--ease) }
.sub-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-l) }
.sub-card:hover img { transform: scale(1.06) }
.sub-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 13px; background: linear-gradient(180deg, rgba(12, 24, 52, 0), rgba(12, 24, 52, .86)); color: #fff }
.sub-cap b { font-size: 16.5px; font-weight: 800; letter-spacing: 1.5px }
.sub-cap small { font-size: 11.5px; color: #ffd782; margin-left: 9px; letter-spacing: .5px }
@media (max-width: 900px) { .sub-grid { grid-template-columns: repeat(2, 1fr); gap: 12px } }
@media (max-width: 620px) { .sub-grid { gap: 9px } .sub-cap { padding: 30px 12px 10px } .sub-cap b { font-size: 14px } .sub-cap small { display: block; margin: 3px 0 0; } }

/* 学科/德育图卡网格（首页图卡化） */
.subj-grid, .deyu-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px }
@media (max-width: 900px) { .subj-grid, .deyu-grid { grid-template-columns: repeat(3, 1fr); gap: 12px } }
@media (max-width: 620px) { .subj-grid, .deyu-grid { grid-template-columns: repeat(2, 1fr); gap: 10px } }
/* 管理员金环头像 */
.avatar.admin { box-shadow: inset 0 0 0 2px rgba(227, 178, 93, .95), 0 4px 12px rgba(227, 178, 93, .3) }



/* ---------------- 世界级动效层二 ---------------- */
/* 导航滚动阴影 */
.navbar.scrolled { box-shadow: 0 8px 28px rgba(35, 66, 130, .16) }
/* 跑马灯带 */
.marquee { overflow: hidden; background: linear-gradient(90deg, #14306e, #2b5fe3 55%, #45ad8c); color: #fff; padding: 11px 0; white-space: nowrap }
.marquee-track { display: inline-flex; animation: marqueeMove 38s linear infinite; will-change: transform }
.marquee-track span { padding: 0 30px; font-size: 13px; letter-spacing: 2.5px; opacity: .92; flex: none }
@keyframes marqueeMove { to { transform: translateX(-50%) } }
/* 点击涟漪 */
.ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .5); transform: scale(0); animation: rip .55s ease-out forwards; pointer-events: none }
@keyframes rip { to { transform: scale(2.8); opacity: 0 } }
.btn-primary, .btn-pill, .icon-btn, .client-btn, .round-btn { position: relative; overflow: hidden }

/* 存储配额条 */
.quota-bar { background: #fff; border-radius: 12px; padding: 14px 18px; box-shadow: var(--shadow-s); margin-bottom: 16px }
.quota-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #5d6880; margin-bottom: 8px }
.quota-head b { color: var(--ink); font-size: 14px }
.quota-track { height: 8px; border-radius: 6px; background: #e7edf9; overflow: hidden }
.quota-track i { display: block; height: 100%; background: linear-gradient(90deg, #4d86f5, #45ad8c); border-radius: 6px; transition: width .6s var(--ease) }
/* 详情图集 */
.detail-gallery { margin-top: 18px }
.detail-gallery img { width: 100%; border-radius: 14px; box-shadow: var(--shadow-m); display: block }
/* 关于页校园实景 */
.about-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px }
.about-gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow-s) }
@media (max-width: 900px) { .about-gallery { grid-template-columns: repeat(2, 1fr) } }
@media (max-width: 620px) { .about-gallery { gap: 9px } }


/* ---------------- 精致度细节 ---------------- */
::selection { background: rgba(77, 134, 245, .22) }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 2.5px solid #4d86f5; outline-offset: 2px; border-radius: 4px }
::-webkit-scrollbar { width: 10px; height: 10px }
::-webkit-scrollbar-thumb { background: #c6d4ec; border-radius: 8px; border: 2px solid #fff }
::-webkit-scrollbar-thumb:hover { background: #a8bde0 }
::-webkit-scrollbar-track { background: transparent }
::-webkit-scrollbar-corner { background: transparent }
@media (pointer: coarse) { .chip, .act-btn, .row-btn, .t-btn { min-height: 44px } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .tilt:hover { transform: translateY(var(--lift, 0px)) !important; }
  .hero-cta { transform: translate(0, calc(var(--my, 0px) - 3px)) !important; }
  .hero-slide.active .hero-copy > * { opacity: 1 !important; }
  .hero-slide.active .hero-title { animation: none !important; opacity: 1 !important; clip-path: none !important; }
  .img-fade { opacity: 1 !important; transform: none !important; }
  .avatar .av-img { opacity: 1 !important; }
}
