/* ==========================================================================
   清小禾科创集 — 设计系统 v2（清爽版）
   参照清华大学官网视觉规范：
     主色  #651C79  屏幕标准色（PANTONE 259C / CMYK C65 M100 Y0 K20）
     辅助  #9767A5  #B9A3C7  #C9B0D1  #E1D2E5  #F6F1F7  （紫的明度色阶）
     灰阶  #BFC2C5  #C1C3C5
     正文  #241A17
   原则：白底、大留白、细线分区、色彩克制，装饰服务于内容。
   ========================================================================== */

:root {
  /* —— 清华紫（主色，沿用官方屏幕标准色 #651C79） —— */
  --thu-900: #4A1257;
  --thu-800: #5A1670;
  --thu-700: #651C79;
  --thu-600: #7C3A9E;
  --thu-500: #9767A5;
  --thu-400: #B896C1;
  --thu-300: #C9B0D1;
  --thu-200: #E1D2E5;
  --thu-100: #F0E7F3;
  --thu-50:  #FAF6FC;

  /* —— 五彩清华：五个板块各一色，清透但有变化 —— */
  --c-drone:   #3E8CC4;   /* 无人机 · 天蓝 */
  --c-farming: #4C9E58;   /* 劳动种植 · 草绿 */
  --c-coding:  #C0539E;   /* 编程创作 · 品紫 */
  --c-ai:      #5B6BD6;   /* AI 项目化学习 · 靛蓝 */
  --c-print:   #D97A3C;   /* 3D 打印 · 暖橙 */
  --c-star:    #E0A93C;   /* 清嘉未来星 · 金橙 */

  /* —— 语义色 —— */
  --bg:        #FFFFFF;
  --bg-soft:   #FCFAFD;
  --bg-tint:   var(--thu-50);
  --line:      #F2ECF5;
  --line-mid:  #E5DAEB;
  --line-firm: #D3C2DB;

  --ink-1: #32283A;
  --ink-2: #5D5069;
  --ink-3: #857892;
  --ink-4: #A99DB4;

  --shadow-xs: 0 1px 2px rgba(50, 40, 58, 0.04);
  --shadow-sm: 0 2px 10px rgba(50, 40, 58, 0.06);
  --shadow-md: 0 10px 30px rgba(50, 40, 58, 0.09);
  --shadow-lg: 0 22px 60px rgba(50, 40, 58, 0.12);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font-display: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", system-ui, -apple-system, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", Consolas, monospace;

  --max-w: 1240px;
  --nav-h: 66px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------- 基础重置 */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink-1);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

::selection { background: var(--thu-100); color: var(--thu-900); }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--thu-300); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--thu-400); }

/* ------------------------------------------------------- 背景：通透白，仅两处极淡色晕 */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-canvas::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 460px;
  background:
    radial-gradient(680px 260px at 12% -12%, rgba(193, 120, 210, 0.13), transparent 72%),
    radial-gradient(560px 220px at 88% -10%, rgba(229, 145, 63, 0.09), transparent 70%);
}

.bg-canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(126, 42, 150, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 62% 38% at 50% 0%, #000, transparent 74%);
  -webkit-mask-image: radial-gradient(ellipse 62% 38% at 50% 0%, #000, transparent 74%);
}

.page { position: relative; z-index: 2; }

/* ------------------------------------------------------------------ 导航栏 */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 12px rgba(53, 40, 61, 0.04);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 26px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }

.brand-mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--thu-200);
  box-shadow: 0 2px 10px rgba(147, 56, 168, 0.12);
  position: relative;
  overflow: hidden;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: -40% -60% auto auto;
  width: 60%; height: 140%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: rotate(20deg);
}

.brand-mark svg {
  width: 21px; height: 21px;
  position: relative;
  z-index: 1;
  color: var(--thu-600);
}
.brand-mark svg [stroke] { stroke: currentColor; }

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }

.brand-title {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--thu-600);
}

.brand-sub {
  font-size: 9.5px;
  color: var(--ink-4);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.nav-links { display: flex; gap: 5px; margin-left: auto; align-items: center; }

.nav-link {
  padding: 10px 17px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  transition: all 0.24s var(--ease);
  position: relative;
  white-space: nowrap;
  border: 1px solid transparent;
}

/* 悬停：淡紫底 + 紫框（青花瓷色，非深紫） */
.nav-link:hover {
  color: var(--thu-600);
  background: var(--thu-50);
  border-color: var(--thu-200);
}

.nav-link.active {
  color: var(--thu-700);
  font-weight: 600;
  background: var(--thu-100);
  border-color: var(--thu-300);
}
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--thu-500);
}

.nav-actions { display: flex; align-items: center; gap: 9px; }

/* --------------------------------------------------------------- 按钮体系 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.24s var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn svg { width: 15px; height: 15px; }

.btn-primary {
  background: var(--thu-600);
  color: #fff;
  box-shadow: 0 3px 12px rgba(147, 56, 168, 0.22);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.26), transparent);
  transition: left 0.55s var(--ease-out);
}

.btn-primary:hover::after { left: 120%; }
.btn-primary:hover { background: var(--thu-700); box-shadow: 0 6px 20px rgba(147, 56, 168, 0.28); }

.btn-ghost {
  border-color: var(--line-firm);
  color: var(--thu-600);
  background: #fff;
}
.btn-ghost:hover { border-color: var(--thu-400); color: var(--thu-700); background: var(--thu-50); }

.btn-cyan {
  background: var(--thu-100);
  color: var(--thu-700);
  border-color: var(--thu-200);
  box-shadow: none;
}
.btn-cyan:hover { background: var(--thu-200); color: var(--thu-800); }

.btn-sm { padding: 6px 13px; font-size: 13px; border-radius: 7px; }
.btn-lg { padding: 13px 28px; font-size: 15.5px; border-radius: 9px; }
.btn-block { width: 100%; }

/* ------------------------------------------------------------------ 容器 */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 26px; }
.section { padding: 76px 0; }
.section-tight { padding: 50px 0; }

/* ------------------------------------------------------------- 区块标题 */
.sec-head { margin-bottom: 36px; }

.sec-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--thu-400);
  margin-bottom: 12px;
}

.sec-kicker::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--thu-300);
}

.sec-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.28;
  margin: 0 0 10px;
  color: var(--thu-900);
}

.sec-desc {
  color: var(--ink-2);
  font-size: 15px;
  max-width: 640px;
  margin: 0;
  line-height: 1.85;
}

/* ------------------------------------------------------------------ Hero */
.hero {
  position: relative;
  padding: 76px 0 68px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--thu-50);
  border: 1px solid var(--thu-100);
  color: var(--thu-600);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 1px;
  margin-bottom: 22px;
}

.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--thu-500);
  animation: pulse-dot 2.4s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -1px;
  margin: 0 0 20px;
  color: var(--thu-900);
}

.hero-title .grad {
  color: var(--thu-600);
}

.hero-lede {
  font-size: 16.5px;
  color: var(--ink-2);
  max-width: 560px;
  margin: 0 0 30px;
  line-height: 1.9;
}

.hero-lede strong { color: var(--thu-700); font-weight: 600; }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.hstat-num {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--thu-600);
  font-variant-numeric: tabular-nums;
}

.hstat-label { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

/* Hero 右侧：克制的几何装饰 */
.hero-visual { position: relative; height: 400px; }

.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--thu-100);
}
.hero-ring.r1 { inset: 10px; border-color: var(--thu-200); }
.hero-ring.r2 { inset: 52px; border-style: dashed; border-color: var(--thu-100); }
.hero-ring.r3 { inset: 94px; border-color: var(--thu-100); }

.hero-ring .sat {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--thu-400);
}
.hero-ring.r1 .sat { top: -4px; left: 50%; }
.hero-ring.r2 .sat { bottom: -4px; left: 50%; background: var(--thu-300); }
.hero-ring.r3 .sat { top: 50%; right: -4px; background: var(--thu-200); }

.hero-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 168px; height: 168px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--thu-300), var(--thu-500));
  box-shadow: 0 12px 40px rgba(147, 56, 168, 0.16);
  display: grid;
  place-items: center;
}

.hero-core svg { width: 56px; height: 56px; opacity: 0.95; }

/* 悬浮成果卡 */
.float-card {
  position: absolute;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 11px 15px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.float-card .fc-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.float-card .fc-icon svg { width: 17px; height: 17px; }
.float-card .fc-title { display: block; font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--ink-1); }
.float-card .fc-sub { display: block; font-size: 11px; color: var(--ink-3); font-family: var(--font-mono); }

.fc-1 { top: 20px; right: -8px; }
.fc-2 { bottom: 70px; left: -16px; }
.fc-3 { bottom: 0; right: 36px; }

/* --------------------------------------------------------------- 板块卡片 */
.tracks {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.track-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.3s;
  display: flex;
  flex-direction: column;
}

.track-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  box-shadow: var(--shadow-md);
}

.track-media {
  position: relative;
  height: 186px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--thu-50);
}

.track-media img {
  width: 100%; height: 100%;
  object-fit: contain;   /* 完整显示，不裁切 */
  background: var(--thu-50);
  padding: 6px;
  transition: transform 0.6s var(--ease-out);
}

.track-card:hover .track-media img { transform: scale(1.06); }

.track-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 68%, rgba(255,255,255,.92));
}

.track-badge {
  position: absolute;
  top: 11px; left: 11px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--accent);
  box-shadow: var(--shadow-xs);
}

.track-index {
  position: absolute;
  top: 11px; right: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #fff;
  letter-spacing: 1.2px;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

.track-body { padding: 16px 17px 18px; flex: 1; display: flex; flex-direction: column; }

.track-title {
  font-family: var(--font-display);
  font-size: 17.5px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.1px;
  color: var(--ink-1);
}

.track-desc {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.8;
  margin: 0 0 16px;
  flex: 1;
}

.track-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-4);
  font-family: var(--font-mono);
}

.track-go {
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  transition: gap 0.24s var(--ease);
}

.track-card:hover .track-go { gap: 9px; }
.track-go svg { width: 13px; height: 13px; }

/* ------------------------------------------------------------ 成果网格卡片 */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
  gap: 20px;
}

.pcard {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.32s var(--ease-out), box-shadow 0.32s var(--ease-out), border-color 0.3s;
  display: flex;
  flex-direction: column;
}

.pcard:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 32%, transparent);
  box-shadow: var(--shadow-md);
}

.pcard-media {
  position: relative;
  height: 178px;
  overflow: hidden;
  background: var(--thu-50);
}

.pcard-media img {
  width: 100%; height: 100%;
  object-fit: contain;   /* 完整显示，不裁切 */
  background: var(--thu-50);
  padding: 7px;
  transition: transform 0.55s var(--ease-out);
}
.pcard:hover .pcard-media img { transform: scale(1.05); }

.pcard-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(36, 26, 23, 0.28));
}

.pcard-tag {
  position: absolute;
  top: 11px; left: 11px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--accent);
  box-shadow: var(--shadow-xs);
}

.pcard-featured {
  position: absolute;
  top: 11px; right: 11px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--thu-200);
  color: var(--thu-600);
  letter-spacing: 0.4px;
  box-shadow: var(--shadow-xs);
}

.pcard-views {
  position: absolute;
  bottom: 9px; right: 12px;
  z-index: 2;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 4px;
}

.pcard-views svg { width: 13px; height: 13px; }

.pcard-body { padding: 17px 18px 18px; flex: 1; display: flex; flex-direction: column; }

.pcard-title {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 8px;
  letter-spacing: -0.1px;
  transition: color 0.22s;
}

.pcard:hover .pcard-title { color: var(--accent); }

.pcard-sum {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.75;
  margin: 0 0 13px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pcard-tech { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }

.chip {
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 11px;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  color: var(--ink-3);
  font-family: var(--font-mono);
}

.pcard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
}

.pcard-author { display: flex; align-items: center; gap: 6px; }

.avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
}

/* ------------------------------------------------------------- 筛选工具条 */
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  margin-bottom: 26px;
}

.filter-group { display: flex; gap: 6px; flex-wrap: wrap; }

.filter-btn {
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 13.5px;
  color: var(--ink-2);
  border: 1px solid transparent;
  transition: all 0.2s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-btn:hover { color: var(--thu-500); background: var(--thu-50); }

.filter-btn.active {
  color: var(--thu-800);
  background: var(--thu-100);
  border-color: var(--thu-300);
}

.filter-btn .fdot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.75;
}

.filter-btn.active .fdot { opacity: 1; background: var(--thu-600); }

.search-box {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  height: 36px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line-mid);
  transition: border-color 0.22s;
  min-width: 210px;
}

.search-box:focus-within { border-color: var(--thu-400); }
.search-box svg { width: 15px; height: 15px; color: var(--ink-4); flex-shrink: 0; }
.search-box input { background: none; border: none; outline: none; color: var(--ink-1); font-size: 13.5px; width: 100%; }
.search-box input::placeholder { color: var(--ink-4); }

.sort-select {
  height: 36px;
  padding: 0 11px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line-mid);
  color: var(--ink-2);
  font-size: 13.5px;
  outline: none;
  cursor: pointer;
}

/* ------------------------------------------------------------------ 页脚 */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 26px;
  background: var(--bg-soft);
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 34px;
}

.footer-brand-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--thu-700);
}

.footer p { font-size: 13px; color: var(--ink-3); line-height: 1.9; margin: 0 0 10px; max-width: 340px; }

.footer h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 14px;
  font-family: var(--font-mono);
}

.footer-links { display: flex; flex-direction: column; gap: 9px; }

.footer-links a {
  font-size: 13px;
  color: var(--ink-3);
  transition: color 0.2s, transform 0.2s;
  width: fit-content;
}

.footer-links a:hover { color: var(--thu-500); transform: translateX(3px); }

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-4);
  font-family: var(--font-mono);
}

/* ---------------------------------------------------------- 详情页布局 */
.detail-layout {
  display: grid;
  grid-template-columns: 224px 1fr;
  gap: 34px;
  align-items: start;
}

.side-nav {
  position: sticky;
  top: calc(var(--nav-h) + 22px);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  overflow: hidden;
}

.side-nav-head {
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--thu-700);
}

.side-nav-head svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--accent, var(--thu-500)); }

.side-nav-list { padding: 8px; display: flex; flex-direction: column; gap: 1px; }

.side-nav-link {
  padding: 8px 11px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--ink-3);
  transition: all 0.2s var(--ease);
  display: flex;
  align-items: center;
  gap: 8px;
}

.side-nav-link::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--line-firm);
  flex-shrink: 0;
  transition: all 0.2s;
}

.side-nav-link:hover { color: var(--thu-500); background: var(--thu-50); }
.side-nav-link:hover::before { background: var(--accent, var(--thu-500)); }

.detail-hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  background: var(--thu-50);
}

.detail-hero img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;   /* 完整显示，不裁切 */
  background: linear-gradient(160deg, var(--thu-50), #fff);
  padding: 20px;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(53,40,61,0) 26%, rgba(53,40,61,.62) 88%);
}

.detail-hero-body {
  position: relative;
  z-index: 2;
  padding: 28px 30px;
  width: 100%;
}

.detail-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  background: #fff;
  color: var(--accent);
  margin-bottom: 12px;
  box-shadow: var(--shadow-xs);
}

.detail-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.6px;
  margin: 0 0 13px;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0,0,0,.3);
}

.detail-lede {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
  max-width: 700px;
  margin: 0 0 16px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-mono);
}

.detail-meta span { display: inline-flex; align-items: center; gap: 5px; }
.detail-meta svg { width: 13px; height: 13px; opacity: 0.8; }

/* 正文 */
.prose { font-size: 15px; line-height: 1.95; color: var(--ink-2); }
.prose h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--thu-800);
  margin: 36px 0 13px;
  padding-left: 13px;
  border-left: 3px solid var(--accent, var(--thu-400));
  line-height: 1.4;
}
.prose h3:first-child { margin-top: 0; }
.prose p { margin: 0 0 15px; }
.prose ul, .prose ol { padding-left: 21px; margin: 0 0 15px; }
.prose li { margin-bottom: 7px; }
.prose strong { color: var(--thu-700); }
.prose blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--thu-300);
  background: var(--bg-tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-1);
}
/* 正文里的图片、链接、分隔线（编辑器插入后也能正常显示） */
.prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 18px 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.prose a { color: var(--thu-600); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--thu-700); }
.prose hr { border: none; border-top: 1px dashed var(--line-firm); margin: 28px 0; }
.prose code {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--bg-soft);
  color: var(--thu-700);
}

/* 图集 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 26px 0;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
  transition: transform 0.3s var(--ease-out), border-color 0.25s;
  position: relative;
  background: var(--thu-50);
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: contain;   /* 完整显示，不裁切 */
  background: var(--thu-50);
  padding: 5px;
  transition: transform 0.55s var(--ease-out);
}
.gallery-item:hover { transform: scale(1.015); border-color: var(--thu-300); }
.gallery-item:hover img { transform: scale(1.07); }

/* 上下篇 */
.pager-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }

.pager-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 16px 19px;
  transition: all 0.28s var(--ease);
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pager-card:hover { border-color: var(--thu-300); background: var(--bg-tint); transform: translateY(-2px); }
.pager-card.next { text-align: right; }

.pager-label {
  font-size: 11px;
  color: var(--ink-4);
  font-family: var(--font-mono);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.pager-title { font-size: 14.5px; font-weight: 600; line-height: 1.5; color: var(--ink-1); }

/* ------------------------------------------------------------- 上传工作台 */
.upload-wrap {
  display: grid;
  grid-template-columns: 1fr 312px;
  gap: 24px;
  align-items: start;
}

.form-row .toolbar {
  padding: 8px 11px;
  margin-bottom: 0;
  gap: 4px;
  border-radius: 9px 9px 0 0;
  border-bottom: none;
  background: var(--bg-soft);
}

.form-row .toolbar .filter-btn {
  padding: 4px 10px;
  font-size: 12px;
  background: #fff;
  border: 1px solid var(--line);
}

.form-row .toolbar .filter-btn:hover { background: var(--thu-50); border-color: var(--thu-300); }

.form-row .textarea.code-area { border-radius: 0 0 9px 9px; margin-top: -1px; }

.panel {
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.panel-head {
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-soft);
}

.panel-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--thu-700);
}

.panel-title svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--thu-400); }

.panel-body { padding: 20px; }

.form-row { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 7px;
}

.form-label .req { color: #C0392B; margin-left: 2px; }
.form-hint { font-size: 12px; color: var(--ink-4); margin-top: 5px; line-height: 1.65; }

.input, .textarea, .select {
  width: 100%;
  padding: 10px 13px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line-mid);
  color: var(--ink-1);
  font-size: 14px;
  outline: none;
  transition: border-color 0.22s, box-shadow 0.22s;
}

.input:focus, .textarea:focus, .select:focus {
  border-color: var(--thu-400);
  box-shadow: 0 0 0 3px rgba(184, 150, 193, 0.2);
}

.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.textarea { resize: vertical; min-height: 120px; line-height: 1.85; }
.textarea.code-area { font-family: var(--font-mono); font-size: 12.5px; min-height: 200px; }

.select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239C92A4' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.select option { background: #fff; color: var(--ink-1); }

.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* 板块选择卡 */
.cat-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

.cat-option {
  border-radius: var(--radius-md);
  border: 1px solid var(--line-mid);
  padding: 13px 14px;
  cursor: pointer;
  transition: all 0.24s var(--ease);
  background: #fff;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.cat-option:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: var(--bg-soft); }

.cat-option.active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, #fff);
  box-shadow: 0 0 0 1px var(--accent);
}

/* 复选框：input 绝对定位透明覆盖整个选项，点击即生效（display:none 会点不动） */
.cat-option { position: relative; }
.cat-option input[type="checkbox"],
.cat-option input[type="radio"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.cat-option input:focus-visible { outline: 2px solid var(--thu-500); outline-offset: 2px; }

/* 已勾选时右上角对勾更醒目 */
.cat-option input:checked ~ .cat-check {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.cat-check {
  width: 16px; height: 16px;
  border-radius: 4px;
  border: 1.5px solid var(--line-firm);
  flex-shrink: 0;
  margin-top: 3px;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}

.cat-option.active .cat-check { background: var(--accent); border-color: var(--accent); }
.cat-check svg { width: 10px; height: 10px; opacity: 0; transition: opacity 0.18s; color: #fff; }
.cat-option.active .cat-check svg { opacity: 1; }

.cat-name { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 2px; color: var(--ink-1); }
.cat-desc { display: block; font-size: 11.5px; color: var(--ink-3); line-height: 1.55; }

/* 拖拽上传 */
.dropzone {
  border: 1.5px dashed var(--line-firm);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.26s var(--ease);
  background: var(--bg-soft);
}

.dropzone:hover, .dropzone.drag {
  border-color: var(--thu-400);
  background: var(--thu-50);
}

.dz-icon {
  width: 42px; height: 42px;
  margin: 0 auto 12px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--thu-50);
  color: var(--thu-500);
}

.dz-icon svg { width: 20px; height: 20px; }
.dz-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; color: var(--ink-1); }
.dz-sub { font-size: 12px; color: var(--ink-4); }

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
  margin-top: 13px;
}

.thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--thu-50);
}

.thumb img { width: 100%; height: 100%; object-fit: contain; background: var(--thu-50); }

.thumb-del {
  position: absolute;
  top: 4px; right: 4px;
  width: 20px; height: 20px;
  border-radius: 5px;
  background: rgba(36, 26, 23, 0.75);
  display: grid;
  place-items: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
}

.thumb-del svg { width: 11px; height: 11px; }
.thumb:hover .thumb-del { opacity: 1; }
.thumb-del:hover { background: #C0392B; }

.thumb-cover {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 3px 6px;
  background: linear-gradient(transparent, rgba(36, 26, 23, 0.85));
  font-size: 10px;
  font-family: var(--font-mono);
  color: #fff;
  letter-spacing: 0.4px;
}

/* 标签输入 */
.tag-input {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line-mid);
  transition: border-color 0.22s;
}

.tag-input:focus-within { border-color: var(--thu-400); box-shadow: 0 0 0 3px rgba(184, 150, 193, 0.2); }

.tag-input input {
  flex: 1;
  min-width: 130px;
  background: none;
  border: none;
  outline: none;
  color: var(--ink-1);
  font-size: 13.5px;
}

.tag-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--thu-50);
  border: 1px solid var(--thu-100);
  color: var(--thu-600);
  font-size: 11.5px;
  font-family: var(--font-mono);
}

.tag-item button { color: inherit; opacity: 0.55; display: grid; place-items: center; }
.tag-item button:hover { opacity: 1; }
.tag-item svg { width: 10px; height: 10px; }

/* 登录门 */
.gate { display: grid; place-items: center; padding: 56px 24px; text-align: center; }

.gate-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  background: var(--thu-100);
  border: 1px solid var(--thu-200);
  color: var(--thu-600);
}

.gate-icon svg { width: 26px; height: 26px; }
.gate h3 { font-family: var(--font-display); font-size: 20px; margin: 0 0 8px; color: var(--thu-800); }
.gate p { color: var(--ink-3); font-size: 14px; max-width: 400px; margin: 0 auto 24px; line-height: 1.8; }
.gate-form { max-width: 340px; width: 100%; text-align: left; }

/* 提示条 */
.toast-wrap {
  position: fixed;
  top: 80px; right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 9px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  font-size: 14px;
  animation: toast-in 0.35s var(--ease-out);
  max-width: 380px;
}

.toast.err { border-color: #E8B4B0; }
.toast.ok { border-color: var(--thu-200); }
.toast svg { width: 16px; height: 16px; flex-shrink: 0; }
.toast.ok svg { color: var(--thu-500); }
.toast.err svg { color: #C0392B; }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

/* 空状态 */
.empty { text-align: center; padding: 64px 20px; color: var(--ink-3); }

.empty-icon {
  width: 54px; height: 54px;
  margin: 0 auto 14px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  color: var(--ink-4);
}

.empty-icon svg { width: 24px; height: 24px; }
.empty h3 { font-size: 16.5px; margin: 0 0 7px; color: var(--ink-2); font-family: var(--font-display); }
.empty p { font-size: 13px; margin: 0; }

/* 加载骨架 */
.skeleton {
  border-radius: var(--radius-lg);
  background: linear-gradient(100deg, var(--bg-soft) 30%, var(--bg-tint) 50%, var(--bg-soft) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.4s infinite;
  height: 340px;
}

@keyframes shimmer {
  from { background-position: 180% 0; }
  to { background-position: -60% 0; }
}

/* --------------------------------------------------------------- 分类页 */
.cat-hero {
  padding: 52px 0 40px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
}

.cat-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(560px 280px at 16% 0%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 66%);
  pointer-events: none;
}

.cat-hero-inner { position: relative; z-index: 2; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 18px;
  transition: color 0.2s, gap 0.2s;
}

.back-link:hover { color: var(--accent); gap: 10px; }

.cat-hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.4vw, 46px);
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--thu-900);
}

.cat-hero-desc {
  font-size: 15.5px;
  color: var(--ink-2);
  max-width: 640px;
  line-height: 1.85;
  margin: 0;
}

.cat-icon-lg {
  width: 56px; height: 56px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 13%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  flex-shrink: 0;
}

.cat-icon-lg svg { width: 27px; height: 27px; color: var(--accent); }

/* ------------------------------------------------------------- 特色区块 */
.feature-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.feature-item {
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.feature-item::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--accent);
  transition: height 0.4s var(--ease-out);
}

.feature-item:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 34%, transparent); box-shadow: var(--shadow-sm); }
.feature-item:hover::after { height: 100%; }

.feature-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
  letter-spacing: 1.4px;
  margin-bottom: 10px;
}

.feature-item h4 {
  font-family: var(--font-display);
  font-size: 16px;
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--ink-1);
}

.feature-item p { font-size: 13px; color: var(--ink-3); line-height: 1.8; margin: 0; }

/* --------------------------------------------------------------- 响应式 */
@media (max-width: 1180px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 340px; max-width: 420px; margin: 0 auto; width: 100%; }
  .tracks { grid-template-columns: repeat(3, 1fr); }
  .upload-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .detail-layout { grid-template-columns: 1fr; }
  .side-nav { position: static; }
}

@media (max-width: 860px) {
  .tracks { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  :root { --nav-h: 60px; }
  .container { padding: 0 18px; }
  .section { padding: 50px 0; }
  /* 窄屏下卡片改为横向图文，避免图片被压成横条 */
  .pcard { flex-direction: row; }
  .pcard-media { width: 118px; height: auto; flex-shrink: 0; }
  .pcard-media::after { background: linear-gradient(90deg, transparent 60%, rgba(255,255,255,.5)); }
  .pcard-body { padding: 14px 15px; }
  .pcard-title { font-size: 15px; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .pcard-sum { -webkit-line-clamp: 2; font-size: 12.5px; margin-bottom: 10px; }
  .pcard-tech { display: none; }
  .pcard-foot { padding-top: 9px; font-size: 11px; }
  .pcard-tag { top: 8px; left: 8px; font-size: 10px; padding: 3px 7px; }
  .pcard-featured { top: 8px; right: 8px; font-size: 10px; padding: 3px 7px; }
  .pcard-views { bottom: 6px; left: 10px; right: auto; font-size: 10.5px; }
  .track-media { height: 132px; }
  .float-card { transform: scale(.9); }
  .nav-inner { padding: 0 18px; gap: 12px; }
  .brand-sub { display: none; }
  .nav-links { display: none; }
  .nav-links.mobile-open {
    display: flex;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    padding: 10px 18px 16px;
    border-bottom: 1px solid var(--line);
    align-items: stretch;
    gap: 1px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.mobile-open .nav-link { padding: 11px 13px; }
  .nav-links.mobile-open .nav-link.active::after { display: none; }
  .menu-toggle { display: grid !important; }
  .tracks { grid-template-columns: 1fr; }
  .feature-band { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .form-2col { grid-template-columns: 1fr; }
  .cat-picker { grid-template-columns: 1fr; }
  .pager-nav { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .toast-wrap { top: 70px; right: 14px; left: 14px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search-box { margin-left: 0; }
  .detail-hero-body { padding: 22px 20px; }
  .panel-body { padding: 16px; }
  .fc-1 { right: -20px; }
  .fc-2 { left: -20px; }
}

.menu-toggle {
  display: none;
  width: 36px; height: 36px;
  border-radius: 8px;
  place-items: center;
  border: 1px solid var(--line-mid);
  background: #fff;
}

.menu-toggle svg { width: 17px; height: 17px; color: var(--ink-1); }

/* ---------------------------------------------------------------- 工具类 */
.mono { font-family: var(--font-mono); }
.muted { color: var(--ink-3); }
.center { text-align: center; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-24 { margin-bottom: 24px; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.flex-wrap { flex-wrap: wrap; }
.justify-between { justify-content: space-between; }
.hide { display: none !important; }

/* 滚动入场（清爽版：仅轻微位移） */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* 图片放大遮罩 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(36, 26, 23, 0.9);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}

.lightbox.on { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
}
.lightbox-close svg { width: 18px; height: 18px; }
.lightbox-close:hover { background: rgba(255, 255, 255, 0.28); }

/* ============================================================
   小程序风格移动端版（独立样式，容器内模拟小程序界面）
   ============================================================ */
.mp-frame {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  background: #F5F5F7;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 8px solid #1A1620;
  position: relative;
  min-height: 720px;
}

.mp-status {
  height: 40px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-1);
  font-family: var(--font-mono);
}

.mp-nav {
  height: 48px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--thu-800);
  position: relative;
}

.mp-nav::before {
  content: "";
  position: absolute;
  left: 14px;
  width: 9px; height: 9px;
  border-left: 1.5px solid var(--ink-2);
  border-bottom: 1.5px solid var(--ink-2);
  transform: rotate(45deg);
}

.mp-body { padding: 14px 14px 84px; }

.mp-hero {
  border-radius: 16px;
  padding: 20px 18px;
  background: linear-gradient(140deg, var(--thu-500), var(--thu-700));
  color: #fff;
  margin-bottom: 14px;
}

.mp-hero h2 {
  font-family: var(--font-display);
  font-size: 21px;
  margin: 0 0 7px;
  letter-spacing: -0.3px;
}

.mp-hero p { font-size: 12.5px; margin: 0; opacity: .88; line-height: 1.7; }

.mp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.mp-stat {
  background: #fff;
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
}

.mp-stat b { display: block; font-family: var(--font-display); font-size: 19px; color: var(--thu-600); line-height: 1.2; }
.mp-stat span { font-size: 10.5px; color: var(--ink-3); }

.mp-sec {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-1);
  margin: 18px 2px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mp-sec span { font-size: 11px; color: var(--ink-4); font-weight: 400; }

.mp-cats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mp-cat {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.mp-cat img { width: 100%; height: 76px; object-fit: contain; background: var(--thu-50); }
.mp-cat .mp-cat-name {
  font-size: 12px;
  font-weight: 600;
  padding: 8px 10px 10px;
  color: var(--ink-1);
  display: flex;
  align-items: center;
  gap: 5px;
}

.mp-cat .mp-cat-name i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.mp-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
  display: flex;
}

.mp-card img { width: 108px; height: 88px; object-fit: contain; background: var(--thu-50); flex-shrink: 0; }
.mp-card-body { padding: 10px 12px; flex: 1; min-width: 0; }
.mp-card-body h4 {
  font-size: 13px;
  margin: 0 0 4px;
  line-height: 1.4;
  color: var(--ink-1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mp-card-body p {
  font-size: 11px;
  color: var(--ink-3);
  margin: 0 0 5px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mp-card-body em {
  font-style: normal;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--ink-4);
}

.mp-tabbar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding-bottom: 6px;
}

.mp-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  color: var(--ink-4);
}

.mp-tab svg { width: 20px; height: 20px; }
.mp-tab.on { color: var(--thu-600); font-weight: 600; }

/* ============================================================
   清禾未来星
   ============================================================ */
.star-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}

.star-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 20px 20px;
  transition: transform 0.32s var(--ease-out), box-shadow 0.32s var(--ease-out), border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.star-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent 72%);
  opacity: 0.75;
}

.star-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 32%, transparent);
  box-shadow: var(--shadow-md);
}

.star-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  margin-bottom: 12px;
}

.star-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-1);
  line-height: 1.3;
}

.star-grade {
  font-size: 12px;
  color: var(--ink-4);
  margin-top: 2px;
  margin-bottom: 12px;
}

.star-awards { display: flex; flex-direction: column; gap: 7px; }

.star-award {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.star-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  padding: 1px 6px;
  border-radius: 4px;
  align-self: flex-start;
}

.star-quote {
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px dashed var(--line-mid);
  font-size: 12px;
  color: var(--ink-3);
  font-style: italic;
  line-height: 1.65;
}

/* 学校荣誉条 */
.honor-row { display: flex; flex-direction: column; gap: 11px; }

.honor-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  transition: border-color 0.28s var(--ease), background 0.28s var(--ease);
}

.honor-card:hover {
  background: #fff;
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}

.honor-medal {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 13%, #fff);
  color: var(--accent);
  font-size: 15px;
  flex-shrink: 0;
}

.honor-body { flex: 1; min-width: 0; }
.honor-title { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink-1); line-height: 1.45; }
.honor-desc { display: block; font-size: 12.5px; color: var(--ink-3); line-height: 1.65; margin-top: 3px; }

.honor-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-4);
  flex-shrink: 0;
}

/* ============================================================
   教育历程时间线
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 26px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 10px; bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, var(--thu-200), var(--line));
}

.tl-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  transition: background 0.28s var(--ease);
  position: relative;
  margin-bottom: 4px;
  cursor: default;
}

.tl-item:hover { background: var(--bg-soft); }

.tl-dot {
  position: absolute;
  left: -23px; top: 24px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  flex-shrink: 0;
}

.tl-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-4);
  flex-shrink: 0;
  width: 72px;
  padding-top: 2px;
}

.tl-body { flex: 1; min-width: 0; }

.tl-tag {
  display: inline-block;
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--accent) 11%, #fff);
  color: var(--accent);
  margin-bottom: 6px;
}

.tl-title {
  display: block;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink-1);
  line-height: 1.45;
  transition: color 0.2s;
}

.tl-desc {
  display: block;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.75;
  margin-top: 4px;
}

.tl-go { display: none; }

/* ============================================================
   劳动四阶段（成长时间轴）
   ============================================================ */
.stage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stage-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.34s var(--ease-out), box-shadow 0.34s var(--ease-out);
}

.stage-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.stage-media {
  position: relative;
  height: 158px;
  overflow: hidden;
  background: var(--thu-50);
}

.stage-media img {
  width: 100%; height: 100%;
  object-fit: contain;   /* 完整显示，不裁切 */
  background: var(--thu-50);
  padding: 6px;
  transition: transform 0.6s var(--ease-out);
}
.stage-card:hover .stage-media img { transform: scale(1.06); }

.stage-step {
  position: absolute;
  top: 11px; left: 11px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: #fff;
  color: var(--accent);
  box-shadow: var(--shadow-xs);
}

.stage-count {
  position: absolute;
  bottom: 10px; right: 11px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #fff;
  text-shadow: 0 1px 5px rgba(0,0,0,.45);
}

.stage-body { padding: 16px 17px 18px; }

.stage-title {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink-1);
  margin: 0 0 6px;
}

.stage-desc { font-size: 13px; color: var(--ink-3); line-height: 1.7; margin: 0; }

/* ============================================================
   课程体系（分年级）
   ============================================================ */
.curr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.curr-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  padding: 20px 20px 22px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.curr-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--accent);
  transition: height 0.4s var(--ease-out);
}

.curr-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.curr-card:hover::after { height: 100%; }

.curr-stage {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 11%, #fff);
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 9px;
}

.curr-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-1);
  margin: 0 0 12px;
}

.curr-items { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }

.curr-items li {
  font-size: 13.5px;
  color: var(--ink-2);
  padding-left: 15px;
  position: relative;
  line-height: 1.6;
}

.curr-items li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.55;
}

/* --------------------------------------------------------------- 响应式 */
@media (max-width: 1180px) {
  .star-grid { grid-template-columns: repeat(3, 1fr); }
  .stage-grid { grid-template-columns: repeat(2, 1fr); }
  .curr-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .star-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .star-grid { grid-template-columns: 1fr; }
  .stage-grid { grid-template-columns: 1fr; }
  .curr-grid { grid-template-columns: 1fr; }
  .tl-date { width: auto; }
  .tl-item { flex-direction: column; gap: 4px; }
  .tl-go { display: none; }
  .tl-dot { top: 12px; }
  .honor-card { flex-wrap: wrap; }
  .honor-date { width: 100%; padding-left: 49px; }
}

/* ============================================================
   Hero 真实照片拼贴（两张完整大图，错落排布）
   ============================================================ */
.hero-collage {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 8px 0 26px;
}

.hc {
  position: absolute;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 46px rgba(53, 40, 61, 0.14);
  border: 7px solid #fff;
  outline: 1px solid rgba(214, 169, 228, 0.5);
}

.hc img {
  width: 100%; height: 100%;
  object-fit: contain;   /* 完整显示，不裁切 */
  background: var(--thu-50);
  padding: 5px;
  display: block;
}

/* 主图：右上，整张完整显示 */
.hc-1 {
  top: 0; right: 0;
  width: 66%; height: 68%;
  z-index: 2;
  transform: rotate(2.4deg);
}

/* 副图：左下，同样完整 */
.hc-2 {
  bottom: 0; left: 0;
  width: 60%; height: 62%;
  z-index: 3;
  transform: rotate(-2.6deg);
}

.hc-tag {
  position: absolute;
  bottom: 8%;
  right: 2%;
  z-index: 4;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--thu-200);
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--thu-600);
  box-shadow: 0 4px 16px rgba(53, 40, 61, 0.1);
}

@media (max-width: 760px) {
  .hero-visual { height: 320px; }
  .hc { border-width: 5px; border-radius: 18px; }
  .hc-1 { width: 70%; height: 66%; top: 0; right: 0; }
  .hc-2 { width: 62%; height: 60%; bottom: 0; left: 0; }
  .hc-tag { font-size: 10.5px; padding: 5px 11px; bottom: 6%; right: 0; }
}

/* ============================================================
   指导老师
   ============================================================ */
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.teacher-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 22px 24px;
  text-align: center;
  transition: transform 0.32s var(--ease-out), box-shadow 0.32s var(--ease-out), border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.teacher-card::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 48px; height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--accent);
}

.teacher-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}

.teacher-avatar {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 13px;
  font-size: 21px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(140deg, var(--accent), color-mix(in srgb, var(--accent) 62%, #fff));
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 26%, transparent);
}

.teacher-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-1);
  margin-bottom: 4px;
}

.teacher-role {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 12px;
}

.teacher-honor {
  display: inline-block;
  font-size: 11.5px;
  padding: 4px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  color: var(--accent);
}

@media (max-width: 760px) {
  .teacher-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   教师后台
   ============================================================ */
.admin-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #fff;
  margin-bottom: 10px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.admin-row:hover {
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  box-shadow: var(--shadow-sm);
}

.admin-thumb {
  width: 74px; height: 58px;
  border-radius: 9px;
  object-fit: contain;
  background: var(--thu-50);
  flex-shrink: 0;
  cursor: zoom-in;
  border: 1px solid var(--line);
}

.admin-main { flex: 1; min-width: 0; }

.admin-title {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink-1);
  line-height: 1.45;
  margin-bottom: 6px;
}

.admin-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-3);
}

.admin-ops { display: flex; gap: 7px; flex-shrink: 0; flex-wrap: wrap; }

/* 抽屉 */
.drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(53, 40, 61, 0.34);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.drawer-mask.on { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 200;
  width: min(560px, 100vw);
  background: var(--bg-soft);
  border-left: 1px solid var(--line);
  box-shadow: -20px 0 60px rgba(53, 40, 61, 0.14);
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-out);
  display: flex;
  flex-direction: column;
}

.drawer.on { transform: none; }

.drawer-head {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  flex-shrink: 0;
}

.drawer-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  transition: background 0.22s, color 0.22s;
}

.drawer-close svg { width: 16px; height: 16px; }
.drawer-close:hover { background: var(--thu-50); color: var(--thu-600); }

.drawer-body {
  padding: 22px;
  overflow-y: auto;
  flex: 1;
}

.drawer-body .panel { background: #fff; }

@media (max-width: 760px) {
  .admin-row { flex-wrap: wrap; }
  .admin-ops { width: 100%; padding-top: 4px; }
  .drawer { width: 100vw; }
}

/* ============================================================
   封面（首页）
   ============================================================ */
.cover {
  position: relative;
  padding: 84px 0 76px;
  overflow: hidden;
}

.cover-inner {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 64px;
  align-items: center;
}

.cover-copy { max-width: 620px; }

.cover-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 54px);
  font-weight: 800;
  line-height: 1.26;
  letter-spacing: -0.8px;
  margin: 0 0 24px;
  color: var(--thu-800);
}

.cover-title span {
  color: var(--thu-600);
  margin-left: 4px;
}

.cover-lede {
  font-size: 19px;
  color: var(--ink-2);
  line-height: 1.95;
  margin: 0 0 34px;
  letter-spacing: 0.2px;
}

.cover-lede::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  border-radius: 3px;
  margin-top: 26px;
  background: linear-gradient(90deg, var(--thu-400), transparent);
}

.cover-cta { display: flex; gap: 13px; flex-wrap: wrap; margin-bottom: 46px; }

.cover-stats {
  display: flex;
  gap: 46px;
  flex-wrap: wrap;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.cover-stats > div { display: flex; flex-direction: column; gap: 2px; }

.cover-stats b {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--thu-600);
  font-variant-numeric: tabular-nums;
}

.cover-stats span {
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.4px;
}

.cover-visual { position: relative; height: 460px; }

/* logo 照片：品牌标识用真实校园场景 */
.brand-photo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: 0 3px 12px rgba(126, 42, 150, 0.18);
}

/* 板块卡：进入按钮更明确 */
.track-enter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  font-weight: 600;
  transition: gap 0.26s var(--ease);
}

.track-card:hover .track-enter { gap: 10px; }
.track-enter svg { width: 14px; height: 14px; }

@media (max-width: 1180px) {
  .cover-inner { grid-template-columns: 1fr; gap: 44px; }
  .cover-visual { height: 380px; max-width: 440px; margin: 0 auto; width: 100%; }
}

@media (max-width: 760px) {
  .cover { padding: 52px 0 46px; }
  .cover-title { letter-spacing: -1px; }
  .cover-lede { font-size: 16.5px; line-height: 1.85; }
  .cover-stats { gap: 26px; }
  .cover-stats b { font-size: 28px; }
  .cover-visual { height: 320px; }
}

/* ============================================================
   灯箱（支持左右翻页）
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(30, 22, 35, 0.94);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 76px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}

.lightbox.on { opacity: 1; pointer-events: auto; }

.lb-figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  pointer-events: none;
}

.lb-figure img {
  max-width: 100%;
  max-height: calc(100vh - 190px);
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  background: #fff;
  pointer-events: auto;
}

.lb-caption {
  text-align: center;
  color: #fff;
  pointer-events: auto;
  max-width: 620px;
}

.lb-title {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.lb-sub {
  display: block;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.lb-counter {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background 0.22s, transform 0.22s;
  z-index: 2;
}

.lb-nav svg { width: 22px; height: 22px; }
.lb-nav:hover { background: rgba(255, 255, 255, 0.25); }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-prev:hover { transform: translateY(-50%) translateX(-3px); }
.lb-next:hover { transform: translateY(-50%) translateX(3px); }

.lb-close {
  position: absolute;
  top: 22px; right: 22px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  color: #fff;
  z-index: 2;
  transition: background 0.22s;
}

.lb-close svg { width: 19px; height: 19px; }
.lb-close:hover { background: rgba(255, 255, 255, 0.25); }

/* 成果卡：图片区域更大，鼠标悬停显示放大提示 */
.pcard-media { height: 216px; }
.pcard-media img { cursor: zoom-in; }

.pcard-media::before {
  content: "点击放大";
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  padding: 20px 12px 9px;
  font-size: 11px;
  color: #fff;
  text-align: center;
  background: linear-gradient(transparent, rgba(30, 22, 35, 0.72));
  opacity: 0;
  transition: opacity 0.28s;
  pointer-events: none;
}

.pcard:hover .pcard-media::before { opacity: 1; }

@media (max-width: 760px) {
  .lightbox { padding: 24px 14px; }
  .lb-nav { width: 38px; height: 38px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-figure img { max-height: calc(100vh - 160px); }
  .pcard-media { height: 180px; }
}

/* ============================================================
   修改日志
   ============================================================ */
.log-list { display: flex; flex-direction: column; }

.log-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 2px;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
  flex-wrap: wrap;
}

.log-row:last-child { border-bottom: none; }

.log-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--ink-4);
}
.log-create { background: #63BE68; }
.log-update { background: #C178D2; }
.log-delete { background: #D9534F; }
.log-login  { background: #4AA3DC; }

.log-actor {
  font-weight: 600;
  color: var(--ink-1);
  min-width: 58px;
}

.log-action {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--bg-tint);
  color: var(--thu-600);
  flex-shrink: 0;
}

.log-detail {
  flex: 1;
  min-width: 160px;
  color: var(--ink-2);
  line-height: 1.6;
}

.log-time {
  font-size: 11.5px;
  color: var(--ink-4);
  flex-shrink: 0;
}

@media (max-width: 760px) {
  .log-row { gap: 7px; font-size: 12px; }
  .log-actor { min-width: 48px; }
  .log-detail { min-width: 100%; }
}

.teacher-focus {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.75;
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  text-align: left;
}

/* ============================================================
   封面视觉：徽标 + 板块清单
   ============================================================ */
.cover-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.cover-emblem {
  position: relative;
  width: 168px; height: 168px;
  border-radius: 38px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(126, 42, 150, 0.24);
  background: #fff;
  padding: 9px;
}

.cover-emblem img { width: 100%; height: 100%; border-radius: 30px; }

.cover-emblem::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.cover-points {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 330px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cover-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 11px;
  font-size: 14.5px;
  color: var(--ink-2);
  transition: background 0.24s, transform 0.24s;
}

.cover-points li:hover { background: var(--bg-soft); transform: translateX(3px); }

.cp-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 16%, transparent);
}

.cp-n {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-4);
}

/* ============================================================
   关于本站（首页）
   ============================================================ */
.about-band {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 44px;
  align-items: start;
  padding: 44px 46px;
  border-radius: var(--radius-xl);
  background: linear-gradient(140deg, var(--thu-50), #fff 62%);
  border: 1px solid var(--line);
}

.about-copy .sec-title { margin-bottom: 16px; }

.about-copy p {
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.95;
  margin: 0 0 14px;
}

.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.fact {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  text-align: center;
}

.fact b {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  color: var(--thu-600);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.fact span { font-size: 12.5px; color: var(--ink-3); }

@media (max-width: 1180px) {
  .about-band { grid-template-columns: 1fr; padding: 34px 30px; }
}

@media (max-width: 760px) {
  .cover-emblem { width: 132px; height: 132px; border-radius: 30px; }
  .cover-emblem img { border-radius: 24px; }
  .cover-emblem::after { inset: 9px; border-radius: 24px; }
  .about-band { padding: 26px 20px; }
  .about-facts { grid-template-columns: 1fr 1fr; }
}

/* logo 用设计稿：白底去掉 */
.brand-logo {
  height: 30px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

/* ============================================================
   农场介绍区
   ============================================================ */
.farm-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 26px;
  align-items: start;
}

.farm-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--thu-50);
}

@media (max-width: 760px) {
  .farm-grid { grid-template-columns: 1fr; gap: 18px; }
  .farm-photo { aspect-ratio: 16 / 10; }
}

/* ============================================================
   封面真实照片拼贴（参考样张：错落三图 + 标签）
   ============================================================ */
.cover-photos {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 6px 0 30px;
}

.cp {
  position: absolute;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 6px solid #fff;
  box-shadow: 0 16px 40px rgba(50, 40, 58, 0.16);
}

.cp img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 主图：右上，最大 */
.cp-1 {
  top: 0; right: 0;
  width: 64%; height: 66%;
  z-index: 3;
  transform: rotate(2deg);
}

/* 左图：左下 */
.cp-2 {
  bottom: 2%; left: 0;
  width: 50%; height: 56%;
  z-index: 2;
  transform: rotate(-2.4deg);
}

/* 右下图：最下 */
.cp-3 {
  bottom: 0; right: 8%;
  width: 42%; height: 44%;
  z-index: 1;
  transform: rotate(2.6deg);
}

.cp-tag {
  position: absolute;
  bottom: 8%;
  right: 2%;
  z-index: 4;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--thu-600);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 760px) {
  .cover-photos { padding: 0 0 24px; }
  .cp { border-width: 4px; border-radius: 15px; }
  .cp-1 { width: 68%; height: 64%; }
  .cp-2 { width: 54%; height: 54%; }
  .cp-3 { width: 44%; height: 40%; }
  .cp-tag { font-size: 10.5px; padding: 5px 11px; bottom: 5%; }
}

/* ============================================================
   清嘉未来星 · 大卡报道
   ============================================================ */
.star-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.star-hero-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #fff;
  transition: transform 0.34s var(--ease-out), box-shadow 0.34s var(--ease-out);
}

.star-hero-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.shc-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 116px 116px;
  gap: 3px;
  background: var(--thu-50);
}

.shc-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.shc-photo.main {
  grid-row: span 2;
  grid-column: span 2;
}

.shc-body { padding: 22px 24px 24px; }

.shc-track {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 11%, #fff);
  color: var(--accent);
  margin-bottom: 11px;
}

.shc-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--ink-1);
  margin: 0 0 16px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  letter-spacing: -0.4px;
}

.shc-grade {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
}

.shc-awards {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.shc-award {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.65;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.shc-year {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
  flex-shrink: 0;
  padding-top: 2px;
}

.shc-story {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.9;
  margin: 0 0 14px;
}

.shc-quote {
  margin: 0;
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, #fff);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
  color: var(--ink-1);
  font-style: italic;
  line-height: 1.75;
}

@media (max-width: 1000px) {
  .star-hero-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .shc-photos { grid-template-rows: 92px 92px; }
  .shc-body { padding: 18px 16px 20px; }
  .shc-name { font-size: 21px; }
  .star-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   浅色框框 · 科技感背景纹理
   ============================================================ */
.bg-canvas::after {
  background-image:
    linear-gradient(rgba(124, 61, 147, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 61, 147, 0.05) 1px, transparent 1px),
    radial-gradient(rgba(124, 61, 147, 0.07) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 30px 30px;
  mask-image: radial-gradient(ellipse 78% 52% at 50% 0%, #000, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 78% 52% at 50% 0%, #000, transparent 76%);
}

/* 首页板块区加浅色框框 */
.tracks-wrap {
  position: relative;
  padding: 34px 28px 30px;
  border-radius: var(--radius-xl);
  background: linear-gradient(150deg, var(--thu-50), rgba(255,255,255,0) 70%);
  border: 1px solid var(--thu-100);
}

.tracks-wrap::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed var(--thu-200);
  border-radius: calc(var(--radius-xl) - 12px);
  pointer-events: none;
}

/* 教师头像照片 */
.teacher-photo {
  width: 62px; height: 62px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 12px;
  background: var(--thu-50);
  position: relative;
}

.teacher-photo img { width: 100%; height: 100%; object-fit: cover; }

.teacher-initial {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 23px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(140deg, var(--accent), color-mix(in srgb, var(--accent) 62%, #fff));
}

/* ============================================================
   清嘉未来星 · 报道窗口（公众号采访报道风格）
   ============================================================ */
.report-grid {
  display: grid;
  /* 与成果展厅同一套栅格算法：卡片宽度、列数、间距都跟其他板块一致 */
  grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
  gap: 20px;
}

.report-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.32s var(--ease-out), box-shadow 0.32s var(--ease-out), border-color 0.26s;
  display: flex;
  flex-direction: column;
}

.report-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
}

.rc-photo {
  position: relative;
  /* 与成果卡保持一致：横构图、卡片高度和展厅卡片齐平（原来 4:5 竖图让整页比别的板块高出一大截） */
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--thu-50);
}

.rc-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 28%;   /* 学生照多为全身竖构图，取景偏上，避免裁掉脸 */
  transition: transform 0.6s var(--ease-out);
}

.report-card:hover .rc-photo img { transform: scale(1.05); }

.rc-scene {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 12px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.95);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.rc-body { padding: 17px 18px 18px; flex: 1; display: flex; flex-direction: column; }

.rc-name {
  font-family: var(--font-display);
  font-size: 17px;              /* 与展厅卡片标题同字号，视觉重量统一 */
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink-1);
  margin: 0 0 6px;
  letter-spacing: -0.1px;
}

.rc-meta { font-size: 12.5px; color: var(--ink-4); margin-bottom: 10px; }

.rc-award {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.75;
  margin-bottom: 13px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-3);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.rc-more { color: var(--accent); font-weight: 600; }

/* ---------------- 报道弹层 ---------------- */
.report-modal {
  position: fixed;
  inset: 0;
  z-index: 320;
  background: rgba(30, 22, 35, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 36px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}

.report-modal.on { opacity: 1; pointer-events: auto; }

.rm-close {
  position: fixed;
  top: 20px; right: 24px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  display: grid;
  place-items: center;
  color: #fff;
  z-index: 2;
  transition: background 0.22s;
}

.rm-close svg { width: 19px; height: 19px; }
.rm-close:hover { background: rgba(255, 255, 255, 0.3); }

.rm-body {
  width: 100%;
  max-width: 760px;
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  transform: translateY(16px);
  transition: transform 0.34s var(--ease-out);
}

.report-modal.on .rm-body { transform: translateY(0); }

.rm-head {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  padding: 26px 28px 24px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 9%, #fff), #fff 72%);
}

.rm-cover {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--thu-50);
}

.rm-cover img { width: 100%; height: 100%; object-fit: cover; }

.rm-scene {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 13%, #fff);
  color: var(--accent);
  margin-bottom: 12px;
}

.rm-title h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--ink-1);
  margin: 0 0 16px;
  display: flex;
  align-items: baseline;
  gap: 11px;
  letter-spacing: -0.5px;
}

.rm-grade { font-size: 14px; font-weight: 500; color: var(--ink-3); }

.rm-awards { display: flex; flex-direction: column; gap: 8px; }

.rm-award {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.6;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.rm-year {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
  flex-shrink: 0;
  padding-top: 2px;
}

.rm-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 28px;
  margin: 22px 0;
}

.rm-photo {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--thu-50);
  cursor: zoom-in;
}

.rm-photo.wide { grid-column: span 2; aspect-ratio: 16 / 9; }
.rm-photo img { width: 100%; height: 100%; object-fit: cover; }

.rm-story { padding: 0 28px 8px; }

.rm-story h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--thu-800);
  margin: 0 0 12px;
  padding-left: 11px;
  border-left: 3px solid var(--thu-400);
}

.rm-story p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.95;
  margin: 0;
}

.rm-quote {
  margin: 20px 28px 30px;
  padding: 15px 19px;
  border-left: 3px solid var(--thu-400);
  background: var(--thu-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15px;
  color: var(--ink-1);
  font-style: italic;
  line-height: 1.8;
}

@media (max-width: 1000px) {
  .report-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .report-grid { grid-template-columns: 1fr; }
  .rm-head { grid-template-columns: 1fr; padding: 20px; }
  .rm-cover { max-width: 200px; }
  .rm-gallery { padding: 0 20px; }
  .rm-story { padding: 0 20px 8px; }
  .rm-quote { margin: 18px 20px 24px; }
  .rm-title h1 { font-size: 24px; }
}

/* ============================================================
   登录 / 注册 切换
   ============================================================ */
.login-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.lt-link {
  font-size: 13px;
  color: var(--thu-600);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 5px;
  transition: background 0.2s;
  font-family: inherit;
}

.lt-link:hover { background: var(--thu-50); text-decoration: underline; }
.lt-sep { color: var(--ink-4); font-size: 12px; }

.auth-form { margin-top: 4px; }

/* 抽屉里的编辑器占位 */
#dDescEditor { min-height: 200px; }

.drawer-body textarea { min-height: 260px; }

/* ============================================================
   图片库选择器
   ============================================================ */
.media-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.mp-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(30, 22, 35, 0.68);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mp-box {
  width: 100%;
  max-width: 940px;
  max-height: calc(100vh - 48px);
  background: #fff;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  margin: auto 0;
}

.mp-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px 16px;
  border-bottom: 1px solid var(--line);
}

.mp-head h3 {
  font-family: var(--font-display);
  font-size: 19px;
  margin: 0 0 5px;
  color: var(--ink-1);
}

.mp-head p { font-size: 13px; color: var(--ink-3); margin: 0; }

.mp-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-mid);
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink-2);
  flex-shrink: 0;
}

.mp-close svg { width: 16px; height: 16px; }

.mp-tabs {
  display: flex;
  gap: 6px;
  padding: 12px 26px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  scrollbar-width: none;
}

.mp-tabs::-webkit-scrollbar { display: none; }

.mp-tab {
  flex-shrink: 0;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-mid);
  background: #fff;
  font-size: 12.5px;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.mp-tab.on {
  background: var(--thu-600);
  border-color: var(--thu-600);
  color: #fff;
  font-weight: 600;
}

.mp-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 26px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  gap: 10px;
  align-content: start;
}

.mp-item {
  margin: 0;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 2px solid transparent;
  background: var(--thu-50);
  transition: transform 0.2s, border-color 0.2s;
}

.mp-item:hover { transform: scale(1.03); }

.mp-item.on {
  border-color: var(--thu-600);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--thu-600) 22%, transparent);
}

.mp-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* 网格行高固定，避免图片被压成横条 */
.mp-body { grid-auto-rows: 132px; }

.mp-item { height: 132px; }

.mp-tick {
  position: absolute;
  top: 6px; right: 6px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--thu-600);
  color: #fff;
  font-size: 12px;
  display: none;
  place-items: center;
}

.mp-item.on .mp-tick { display: grid; }

.mp-empty { grid-column: 1 / -1; text-align: center; color: var(--ink-4); padding: 40px; font-size: 13px; }

.mp-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 26px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.mp-foot > span { font-size: 13px; color: var(--ink-3); }
.mp-foot > div { display: flex; gap: 9px; }

/* 缩略图：封面标记更明显 */
.thumb-cover {
  position: absolute;
  left: 7px; top: 7px;
  padding: 3px 9px;
  border-radius: 5px;
  background: var(--thu-600);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
}

.thumb {
  cursor: pointer;
}

.thumb:hover .thumb-cover { background: var(--thu-700); }

/* ============================================================
   首页图片管理面板
   ============================================================ */
.home-img-list { display: flex; flex-direction: column; gap: 12px; }

.home-img-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
}

.hir-thumb {
  width: 92px; height: 70px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--thu-50);
  border: 1px solid var(--line);
}

.hir-thumb img { width: 100%; height: 100%; object-fit: cover; }

.hir-empty {
  display: grid;
  place-items: center;
  width: 100%; height: 100%;
  font-size: 11.5px;
  color: var(--ink-4);
}

.hir-body { flex: 1; min-width: 0; }

.hir-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-1);
  margin-bottom: 6px;
}

.hir-src {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-4);
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hir-acts { flex-shrink: 0; }

.input-sm { padding: 7px 11px; font-size: 13px; }

/* 首页效果预览 */
.home-img-preview {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.hp-title {
  font-size: 12px;
  color: var(--ink-4);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.hp-frame {
  position: relative;
  height: 250px;
  background: var(--thu-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
}

.hp-img {
  position: absolute;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 10px 26px rgba(50, 40, 58, 0.16);
}

.hp-img img { width: 100%; height: 100%; object-fit: cover; }

.hp-1 { top: 8px; right: 12px; width: 52%; height: 62%; transform: rotate(2deg); z-index: 3; }
.hp-2 { bottom: 10px; left: 14px; width: 42%; height: 54%; transform: rotate(-2.4deg); z-index: 2; }
.hp-3 { bottom: 6px; right: 16%; width: 34%; height: 40%; transform: rotate(2.6deg); z-index: 1; }

.hp-tag {
  position: absolute;
  bottom: 6px; right: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  font-size: 10.5px;
  font-family: var(--font-mono);
  color: var(--thu-600);
}


/* ============================================================
   图片拖拽排序
   ============================================================ */
.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  gap: 10px;
}

.thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--thu-50);
  cursor: grab;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.thumb:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.thumb.dragging {
  opacity: 0.4;
  cursor: grabbing;
  border-color: var(--thu-400);
}

.thumb.drop-target {
  border-color: var(--thu-600);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--thu-600) 25%, transparent);
}

.thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.thumb-grip {
  position: absolute;
  left: 6px; top: 6px;
  width: 22px; height: 22px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  color: var(--ink-3);
  font-size: 11px;
  cursor: grab;
  box-shadow: var(--shadow-xs);
  z-index: 3;
}

.thumb-set {
  position: absolute;
  right: 6px; bottom: 6px;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--thu-600);
  cursor: pointer;
  z-index: 3;
}

.thumb-set:hover { background: var(--thu-600); color: #fff; border-color: var(--thu-600); }

.thumb-del {
  position: absolute;
  right: 5px; top: 5px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(30, 22, 35, 0.62);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
}

.thumb:hover .thumb-del { opacity: 1; }
.thumb-del:hover { background: #C0392B; }

.thumb-cover {
  position: absolute;
  left: 6px; bottom: 6px;
  padding: 3px 9px;
  border-radius: 5px;
  background: var(--thu-600);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  z-index: 3;
}

/* 老师头像用图片 */
.teacher-photo {
  width: 74px; height: 74px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 13px;
  background: var(--thu-50);
  position: relative;
}

.teacher-photo img { width: 100%; height: 100%; object-fit: cover; }

.teacher-initial {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(140deg, var(--accent), color-mix(in srgb, var(--accent) 62%, #fff));
}

/* ============================================================
   账号弹层 / 裁剪编辑器 / 图片库筛选
   ============================================================ */
.acct-modal {
  position: fixed;
  inset: 0;
  z-index: 420;
  background: rgba(30, 22, 35, 0.68);
  backdrop-filter: blur(6px);
  display: none;               /* 默认隐藏：只有加了 .on 才显示，否则整页会被弹层盖住 */
  align-items: flex-start;      /* 顶部对齐，内容高时不裁掉头部 */
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;            /* 弹层自身可滚动 */
  overscroll-behavior: contain;
}
.acct-modal.on {
  display: flex;
  animation: acctFade 0.18s ease-out;
}
@keyframes acctFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.am-box {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 26px 28px 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  position: relative;
  margin: auto 0;              /* 短内容时垂直居中，长内容时顶部对齐 */
  max-height: none;
}

.am-head { margin-bottom: 20px; overflow: hidden; padding-right: 36px; }
.am-head h3 {
  font-family: var(--font-display);
  font-size: 21px;
  margin: 0 0 6px;
  color: var(--ink-1);
}
.am-head p { font-size: 13px; color: var(--ink-3); margin: 0; }

.am-close {
  position: absolute;          /* 固定在卡片右上角，不再跟着弹层乱跑 */
  top: 14px;
  right: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-mid);
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink-2);
  z-index: 5;
  flex-shrink: 0;
  padding: 0;
  transition: all 0.18s;
}
.am-close:hover { background: var(--bg-soft); border-color: var(--line-firm); }
.am-close svg { width: 16px; height: 16px; }

/* 头像路径一行：输入框 + 选图按钮 */
.am-photo-line { display: flex; gap: 8px; align-items: center; }
.am-photo-line .input { flex: 1; min-width: 0; }
.am-photo-line .btn { flex-shrink: 0; white-space: nowrap; }

/* 多行文本框（未来星编辑用） */
.input-area {
  min-height: 74px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.75;
  font-family: inherit;
}

.am-avatar-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  margin-bottom: 20px;
}

.am-avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: var(--thu-50);
  flex-shrink: 0;
  border: 3px solid #fff;
  box-shadow: var(--shadow-sm);
}

.am-avatar img { width: 100%; height: 100%; object-fit: cover; }

.am-initial {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(140deg, var(--thu-600), var(--thu-400));
}

.am-avatar-acts { flex: 1; }

/* 图片库板块筛选 */
.mp-filter-row {
  display: flex;
  gap: 6px;
  padding: 12px 26px 0;
  flex-wrap: wrap;
}

.mp-fbtn {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-mid);
  background: #fff;
  font-size: 12.5px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.2s;
}

.mp-fbtn:hover { border-color: var(--thu-400); color: var(--thu-600); }

.mp-fbtn.on {
  background: var(--thu-600);
  border-color: var(--thu-600);
  color: #fff;
  font-weight: 600;
}

/* 首页图片面板筛选条 */
.home-img-filter {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hif-btn {
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-mid);
  background: #fff;
  font-size: 12.5px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.2s;
}

.hif-btn:hover { border-color: var(--thu-400); color: var(--thu-600); }

.hif-btn.on {
  background: var(--thu-600);
  border-color: var(--thu-600);
  color: #fff;
  font-weight: 600;
}

/* 裁剪编辑器 */
.crop-area { padding: 20px 26px; }

.crop-view {
  position: relative;
  height: 340px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: grab;
  background: var(--thu-50);
  user-select: none;
}

.crop-view:active { cursor: grabbing; }

.crop-view img {
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.crop-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px);
  background-size: 33.33% 33.33%;
}

.crop-hint {
  position: absolute;
  left: 50%; bottom: 12px;
  transform: translateX(-50%);
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(30, 22, 35, 0.62);
  color: #fff;
  font-size: 11.5px;
  pointer-events: none;
}

/* 缩略图上的裁剪按钮 */
.thumb-crop {
  position: absolute;
  left: 6px; bottom: 6px;
  width: 24px; height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  color: var(--thu-600);
  font-size: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
}

.thumb-crop:hover { background: var(--thu-600); color: #fff; border-color: var(--thu-600); }

.thumb-cover + .thumb-crop,
.thumb .thumb-crop ~ .thumb-cover { display: none; }


/* 弹层打开时锁定页面滚动：补偿滚动条宽度，避免内容跳动 */
body.modal-open { overflow: hidden !important; }

/* 小屏适配：弹层内容更紧凑 */
@media (max-width: 560px) {
  .acct-modal, .mp-modal, .report-modal { padding: 12px 10px; }
  .am-box { padding: 20px 18px 22px; border-radius: 20px; }
  .mp-box { max-height: calc(100vh - 24px); border-radius: 20px; }
  .am-avatar-row { flex-direction: column; text-align: center; }
  .am-avatar-acts { width: 100%; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
  .mp-body { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); grid-auto-rows: 104px; }
  .mp-item { height: 104px; }
}

/* 未来星 / 报道卡：没有照片时用姓氏首字占位，避免出现碎图 */
.rc-initial,
.rm-initial {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
  background: linear-gradient(140deg, var(--accent, #7C3A9E), color-mix(in srgb, var(--accent, #7C3A9E) 58%, #fff));
}
.rm-initial { font-size: 54px; }
.rc-photo, .rm-cover { position: relative; }
