/* ============================================================
   AI森林 · 官网设计系统
   森林 + 科技：科技蓝（取自新 Logo 主色 #354696）
   ============================================================ */

:root {
  /* 品牌色 —— 科技蓝 */
  --forest-900: #141a36;
  --forest-800: #1c2447;
  --forest-700: #252f60;
  --forest-600: #354696;
  --forest-500: #4a5dc0;
  --forest-400: #6a7edc;

  /* 浅蓝点缀 */
  --leaf-300: #93a6ee;
  --leaf-200: #c1cdf8;
  --leaf-100: #e5eafd;

  /* 高亮蓝（CTA / 强调） */
  --amber-500: #3b82f6;
  --amber-400: #5b96f8;
  --amber-100: #dbeafe;

  /* 中性 */
  --ink: #1b2338;
  --ink-soft: #3f4c66;
  --muted: #64748b;
  --line: #e3e8f0;
  --cream: #f4f6fc;
  --paper: #ffffff;

  /* 圆角 / 阴影 */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(20, 26, 54, 0.06);
  --shadow-md: 0 10px 30px rgba(20, 26, 54, 0.10);
  --shadow-lg: 0 24px 60px rgba(20, 26, 54, 0.16);

  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --nav-h: 72px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- 排版 ---------------- */
h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section {
  padding: 96px 0;
}

.section--cream {
  background: var(--cream);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--forest-500);
  text-transform: uppercase;
  background: var(--leaf-100);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--forest-800);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--muted);
  font-size: 17px;
}

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--r-pill);
  font-size: 16px;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--amber-500);
  color: #fff;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

.btn--primary:hover {
  background: var(--amber-400);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(59, 130, 246, 0.45);
}

.btn--forest {
  background: var(--forest-600);
  color: #fff;
  box-shadow: 0 8px 20px rgba(53, 70, 150, 0.30);
}

.btn--forest:hover {
  background: var(--forest-500);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--forest-700);
  border: 2px solid var(--forest-500);
}

.btn--ghost:hover {
  background: var(--leaf-100);
}

.btn--lg {
  padding: 17px 38px;
  font-size: 18px;
}

/* ---------------- 导航 ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;   /* 导航必须保持单行，标签换行会顶破 72px 的顶栏 */
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 22px;
  color: var(--forest-800);
  flex: none;          /* 不许被挤压，否则 logo 会变形 */
}

.brand__logo {
  height: 44px;
  width: auto;
  flex: none;
  /* 全局 img{max-width:100%} 会在窄屏把宽度钳住、而高度不变，
     导致 logo 被横向压扁。这里显式解除，保持等比缩放。 */
  max-width: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  min-width: 0;
}

.nav__links a {
  position: relative;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: var(--r-pill);
  white-space: nowrap;   /* 标签不换行 */
  transition: color 0.15s ease, background 0.15s ease;
}

.nav__links a:hover {
  color: var(--forest-600);
  background: var(--leaf-100);
}

.nav__links a.is-active {
  color: var(--forest-700);
  font-weight: 700;
}

.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: var(--amber-500);
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

/* 顶栏按钮比页面内的按钮更紧凑，避免挤占导航文字的空间 */
.nav__cta .btn {
  padding: 10px 18px;
  font-size: 15px;
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 10px;
}

.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--forest-700);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding: 96px 0 88px;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(193, 205, 248, 0.55), transparent 60%),
    radial-gradient(800px 500px at -10% 20%, rgba(229, 234, 253, 0.6), transparent 55%),
    linear-gradient(180deg, #fbfcff 0%, #f1f4fc 100%);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--forest-700);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  color: var(--forest-900);
  margin-bottom: 20px;
}

.hero h1 .accent {
  color: var(--forest-500);
  position: relative;
}

.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 100%;
  height: 12px;
  background: var(--amber-100);
  border-radius: 4px;
  z-index: -1;
}

.hero__sub {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 34px;
}

/* 首页实体介绍：给 AI / 搜索引擎一句可直接引用的机构定义 */
.hero__entity {
  max-width: 520px;
  margin: -18px 0 30px;
  padding-left: 14px;
  border-left: 3px solid var(--leaf-100);
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero__stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}

.hero__stat b {
  display: block;
  font-size: 28px;
  color: var(--forest-700);
  font-weight: 800;
}

.hero__stat b em {
  font-style: normal;
  font-size: 18px;
  color: var(--amber-500);
  margin-left: 2px;
}

.hero__stat span {
  font-size: 14px;
  color: var(--muted);
}

.hero__art {
  display: flex;
  justify-content: center;
}

.hero__art svg {
  width: 100%;
  max-width: 520px;
  height: auto;
  filter: drop-shadow(0 24px 40px rgba(20, 26, 54, 0.12));
}

/* ---------------- 卡片 ---------------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 20px;
  color: var(--forest-800);
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  font-size: 15px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

/* ---------------- 领域色块 ---------------- */
.domain-card { padding: 28px; }
.domain-card .card__icon { background: var(--leaf-100); }

.domain-card--ai .card__icon { background: #e7f0ff; }
.domain-card--robot .card__icon { background: #e0f2ff; }
.domain-card--science .card__icon { background: #e9ecff; }
.domain-card--drone .card__icon { background: #e6f7ef; }

/* ---------------- 学习路径 ---------------- */
.path {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

.path__step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  position: relative;
}

.path__step::before {
  content: attr(data-age);
  position: absolute;
  top: -18px;
  left: 30px;
  background: var(--forest-600);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  padding: 5px 16px;
  border-radius: var(--r-pill);
}

.path__step h3 { color: var(--forest-700); margin: 8px 0 10px; }
.path__step ul li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 8px;
}
.path__step ul li::before {
  content: "🌱";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 13px;
}

.course-list { margin-top: 16px; }
.course-list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 8px;
}
.course-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--forest-500);
  font-weight: 700;
}

.course-grade {
  display: inline-block;
  min-width: 52px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--forest-600);
  background: var(--leaf-100);
  padding: 2px 8px;
  border-radius: var(--r-pill);
  margin-right: 8px;
}

/* ---------------- 优势 ---------------- */
.adv-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.adv-card .card__icon { margin-bottom: 0; flex: none; }

/* ---------------- 作品 ---------------- */
.work-card {
  overflow: hidden;
  padding: 0;
}

.work-card__media {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  background: linear-gradient(135deg, var(--leaf-100), #eef2fe);
}

.work-card__body { padding: 24px; }
.work-card__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--forest-600);
  background: var(--leaf-100);
  padding: 3px 10px;
  border-radius: var(--r-pill);
  margin-bottom: 10px;
}

/* ---------------- 评价 ---------------- */
.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.quote__text {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 22px;
  position: relative;
}

.quote__text::before {
  content: "“";
  font-size: 48px;
  line-height: 1;
  color: var(--leaf-300);
  display: block;
  height: 26px;
}

.quote__author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.quote__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--forest-500);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.quote__author b { display: block; color: var(--forest-800); }
.quote__author span { font-size: 13px; color: var(--muted); }

.teacher-photo {
  height: 120px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* ---------------- CTA 横幅 ---------------- */
.cta-band {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(120deg, var(--forest-700), var(--forest-500));
  color: #fff;
  padding: 64px 48px;
  text-align: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(400px 200px at 15% 20%, rgba(193, 205, 248, 0.28), transparent 60%),
    radial-gradient(400px 200px at 85% 80%, rgba(91, 150, 248, 0.30), transparent 60%);
}

.cta-band > * { position: relative; }

.cta-band h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 560px; margin: 0 auto 28px; }

/* ---------------- 学生积分入口 ---------------- */
.points-entry__card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 30px 36px;
  border-radius: var(--r-lg);
  color: #fff;
  background:
    radial-gradient(420px 220px at 10% 20%, rgba(193, 205, 248, 0.35), transparent 65%),
    radial-gradient(420px 220px at 90% 80%, rgba(91, 150, 248, 0.35), transparent 65%),
    linear-gradient(120deg, var(--forest-700), var(--forest-500));
  box-shadow: var(--shadow-md);
}

.points-entry__icon {
  width: 64px;
  height: 64px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.16);
}

.points-entry__copy { flex: 1; min-width: 0; }
.points-entry__copy h2 { font-size: 24px; margin-bottom: 4px; }
.points-entry__copy p { font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, 0.85); }

.points-entry__btn { flex: none; }

@media (max-width: 768px) {
  .points-entry__card {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 26px 24px;
  }
  .points-entry__copy h2 { font-size: 21px; }
  .points-entry__btn { width: 100%; }
}

/* ---------------- 科技百科 / 文章 ---------------- */
.article-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  color: inherit;
}

.article-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--leaf-100), #eef2fe);
}

.article-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.article-card:hover .article-card__media img { transform: scale(1.04); }

.article-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 24px;
}

.article-card__body h3 { font-size: 19px; line-height: 1.45; color: var(--forest-800); }
.article-card__body p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card .work-card__tag { align-self: flex-start; }
.article-card__more { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--forest-600); }

.container.article-shell { max-width: 880px; }

.article-hero {
  padding: 60px 0 0;
  background: linear-gradient(180deg, #fbfcff, #f1f4fc);
}

.article-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--muted);
}
.article-crumb a:hover { color: var(--forest-600); }

.article-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--forest-900);
  margin-bottom: 14px;
}
.article-meta { font-size: 14px; color: var(--muted); }

.article-hero__media {
  margin-top: 32px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.article-hero__media img { display: block; width: 100%; }

.article-section { padding-top: 48px; }

/* 文章顶部「一句话答案」：放在正文最前，方便 AI 直接抽取 */
.article-answer {
  margin-top: 24px;
  padding: 22px 26px;
  border-radius: 16px;
  background: linear-gradient(120deg, var(--forest-700), var(--forest-500));
  color: #fff;
}
.article-answer b { font-size: 13px; letter-spacing: 0.08em; opacity: 0.9; }
.article-answer p { margin-top: 8px; line-height: 1.8; color: rgba(255, 255, 255, 0.95); }

.article-summary {
  padding: 22px 26px;
  margin-bottom: 36px;
  border-left: 4px solid var(--forest-500);
  border-radius: 14px;
  background: var(--leaf-100);
}
.article-summary b { font-size: 14px; color: var(--forest-700); }
.article-summary p { margin-top: 8px; line-height: 1.8; color: var(--ink-soft); }

.article-body { color: var(--ink-soft); font-size: 16px; }
.article-body section { margin-bottom: 40px; }
.article-body h2 {
  margin-bottom: 14px;
  padding-left: 14px;
  border-left: 4px solid var(--amber-500);
  font-size: clamp(21px, 2.6vw, 26px);
  line-height: 1.4;
  color: var(--forest-800);
}
.article-body p { margin-bottom: 16px; line-height: 1.9; }
.article-body ul,
.article-body ol { margin: 0 0 18px 22px; line-height: 1.9; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 6px; }
.article-body table {
  width: 100%;
  margin: 22px 0;
  border-collapse: collapse;
  font-size: 14.5px;
}
.article-body th,
.article-body td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.article-body th { background: var(--leaf-100); color: var(--forest-800); font-weight: 700; }
.article-body img { max-width: 100%; height: auto; margin: 20px auto; border-radius: 14px; }
.article-body a { color: var(--forest-600); text-decoration: underline; }

.article-takeaway {
  margin-top: 36px;
  padding: 24px 28px;
  border-radius: 16px;
  background: linear-gradient(120deg, var(--forest-700), var(--forest-500));
  color: #fff;
}
.article-takeaway b { font-size: 14px; letter-spacing: 0.04em; }
.article-takeaway p { margin-top: 8px; line-height: 1.8; color: rgba(255, 255, 255, 0.92); }

/* 文章页底部的相关问答 */
.article-faq { margin: 48px 0 8px; }
.article-faq h2 {
  margin-bottom: 16px;
  font-size: 22px;
  color: var(--forest-800);
}
.article-faq .faq-group { margin-bottom: 0; }
.article-faq__more { margin-top: 18px; }
.article-faq__more a { color: var(--forest-600); font-weight: 600; }

.article-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin: 52px 0;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--cream);
}
.article-cta h3 { margin-bottom: 4px; font-size: 20px; color: var(--forest-800); }
.article-cta p { font-size: 14.5px; color: var(--muted); }

.article-related { margin-top: 24px; }
.article-related > h2 { margin-bottom: 20px; font-size: 24px; color: var(--forest-800); }
.article-back { margin-top: 32px; font-size: 14px; font-weight: 700; }
.article-back a { color: var(--forest-600); }

/* ---------------- 常见问题 ---------------- */
.container.faq-wrap { max-width: 880px; }
.faq-group { margin-bottom: 40px; }
.faq-group h2 { margin-bottom: 16px; font-size: 22px; color: var(--forest-800); }

.faq-item {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--forest-800);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__icon {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--leaf-100);
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--forest-600);
  transform: translate(-50%, -50%);
}
.faq-item__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.2s ease; }
.faq-item[open] .faq-item__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq-answer {
  padding: 0 22px 20px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.85;
}
.faq-answer p { margin-bottom: 10px; }
.faq-answer a { color: var(--forest-600); text-decoration: underline; }

@media (max-width: 640px) {
  .article-hero { padding-top: 40px; }
  .article-cta { padding: 22px; }
  .article-body table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ---------------- 页脚 ---------------- */
.footer {
  background: var(--forest-900);
  color: rgba(255,255,255,0.78);
  padding: 72px 0 0;
  margin-top: 96px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer .brand { color: #fff; margin-bottom: 16px; }
.footer .brand__logo {
  height: 64px;
  background: #fff;
  padding: 10px 16px;
  border-radius: 14px;
}

.footer__desc { font-size: 14px; max-width: 320px; }

.footer h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 18px;
}

.footer__links li { margin-bottom: 12px; }
.footer__links a { font-size: 14px; transition: color 0.15s ease; }
.footer__links a:hover { color: #fff; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ---------------- 页面头部（子页） ---------------- */
.page-hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(900px 400px at 80% -20%, rgba(193, 205, 248, 0.5), transparent 60%),
    linear-gradient(180deg, #fbfcff, #f1f4fc);
  text-align: center;
}

.page-hero h1 { font-size: clamp(30px, 4.5vw, 46px); color: var(--forest-900); margin-bottom: 14px; }
.page-hero p { color: var(--muted); max-width: 620px; margin: 0 auto; font-size: 17px; }

/* ---------------- 表单 ---------------- */
.form-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px;
}

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--forest-800);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--forest-500);
  box-shadow: 0 0 0 4px var(--leaf-100);
}
.field textarea { resize: vertical; min-height: 110px; }

.form-note { font-size: 13px; color: var(--muted); text-align: center; margin-top: 14px; }

.success-msg {
  background: var(--leaf-100);
  border: 1px solid var(--leaf-200);
  color: var(--forest-700);
  padding: 16px 20px;
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
}

/* ---------------- FAQ ---------------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  color: var(--forest-800);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--forest-500); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 22px 18px; color: var(--muted); font-size: 15px; }

/* ---------------- 荣誉/数据条 ---------------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.metric b { font-size: 40px; color: var(--forest-600); font-weight: 800; display: block; }
.metric span { color: var(--muted); font-size: 15px; }

/* ---------------- 标签云 / 荣誉墙 ---------------- */
.badge-list { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.badge-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--forest-700);
  box-shadow: var(--shadow-sm);
}

/* ---------------- 赛事 ---------------- */
.event-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  height: 100%;
}

.event-card__level {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--forest-600);
  background: var(--leaf-100);
  padding: 4px 12px;
  border-radius: var(--r-pill);
}

.event-card h3 {
  font-size: 20px;
  color: var(--forest-800);
  margin: 0;
}

.event-card__result {
  font-size: 22px;
  font-weight: 800;
  color: var(--amber-500);
}

.event-card__desc {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.event-feature__result {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  color: var(--amber-500);
}

.event-feature__tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--forest-700);
  background: var(--leaf-100);
  padding: 5px 12px;
  border-radius: var(--r-pill);
}

.event-card__photo {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 6px;
}

.event-feature__photo {
  width: 300px;
  max-width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: var(--r-md);
  flex: none;
  border: 1px solid var(--line);
}

/* ---------------- 作品分类 ---------------- */
.subject-group {
  margin-bottom: 56px;
}

.subject-group:last-child {
  margin-bottom: 0;
}

.subject-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 800;
  color: var(--forest-800);
  margin-bottom: 20px;
}

.subject-title::before {
  content: "";
  width: 6px;
  height: 26px;
  border-radius: 3px;
  background: var(--amber-500);
  flex: none;
}

.subject-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-left: auto;
}

.work-card__download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--forest-600);
  transition: color 0.15s ease;
}

.work-card__download:hover {
  color: var(--amber-500);
}

.work-card__meta {
  font-size: 13px;
  font-weight: 700;
  color: var(--forest-600);
}

.shot-card {
  padding: 12px;
}

.shot-card img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: block;
}

.shot-card__cap {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
}

/* ---------------- 动画 ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* 窄一些的桌面：收紧导航，让「首页」等菜单始终保持单行横向 */
@media (max-width: 1200px) {
  .brand__logo { height: 40px; }
  .nav__inner { gap: 12px; }
  .nav__links { gap: 0; }
  .nav__links a { padding: 9px 10px; }
  .nav__cta { gap: 8px; }
  .nav__cta .btn { padding: 9px 14px; font-size: 14px; }
  .nav__cta .btn--ghost { display: none; }
}

/* 平板及以下：横向实在塞不下，收进汉堡菜单 */
@media (max-width: 1024px) {
  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    padding: 12px 20px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    transition: transform 0.25s ease;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: 14px 16px; }
  /* 菜单项是整行宽，居中下划线会跑到右边，改成整行高亮 */
  .nav__links a.is-active { background: var(--leaf-100); }
  .nav__links a.is-active::after { display: none; }
  .nav__toggle { display: flex; }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 960px) {
  .grid-4, .grid-3, .path { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .hero__art svg { max-width: 360px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2, .path { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
  .hero__stats { gap: 20px; }
  .cta-band { padding: 44px 24px; }
  .footer__grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* 手机端导航：给 logo 腾出空间，避免整条导航挤爆、logo 被压扁 */
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .nav__inner { gap: 12px; }
  .nav__cta { gap: 8px; }
  .brand__logo { height: 40px; }
  .nav__cta .btn { padding: 10px 14px; font-size: 14px; }
  .nav__toggle { width: 40px; height: 40px; }
}

/* 小屏手机（iPhone SE 等 320~380px）再收紧一档 */
@media (max-width: 380px) {
  .brand__logo { height: 34px; }
  .nav__cta .btn { padding: 9px 11px; font-size: 13px; }
  .nav__toggle { width: 36px; height: 36px; }
}

/* ---------------- 登录 ---------------- */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--paper);
}

.auth__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px;
  color: #fff;
  background:
    radial-gradient(900px 520px at 18% 0%, rgba(193, 205, 248, 0.24), transparent 55%),
    radial-gradient(700px 420px at 100% 100%, rgba(91, 150, 248, 0.28), transparent 55%),
    linear-gradient(150deg, var(--forest-800), var(--forest-600));
}

.auth__brand-inner { max-width: 460px; }

.auth__logo {
  height: 60px;
  width: auto;
  background: #fff;
  padding: 10px 16px;
  border-radius: 14px;
  margin-bottom: 36px;
}

.auth__brand h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.4;
  color: #fff;
  margin-bottom: 16px;
}

.auth__slogan {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  margin-bottom: 32px;
}

.auth__points { display: grid; gap: 14px; }
.auth__points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
}

.auth__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  position: relative;
}

.auth__back {
  position: absolute;
  top: 28px;
  left: 32px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.15s ease;
}
.auth__back:hover { color: var(--forest-600); }

.auth__form { width: 100%; max-width: 400px; }

.auth__logo-mobile { display: none; }

.auth__form h1 { font-size: 30px; color: var(--forest-900); margin-bottom: 8px; }
.auth__sub { color: var(--muted); font-size: 15px; margin-bottom: 28px; }

.auth__error {
  background: #fdecec;
  border: 1px solid #f5c6c6;
  color: #b3261e;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.password-wrap { position: relative; }
.password-wrap input { padding-right: 48px; }
.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border-radius: 10px;
  color: var(--muted);
}
.password-toggle:hover { color: var(--forest-600); background: var(--cream); }

.auth__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -4px 0 22px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-soft);
  cursor: pointer;
}
.checkbox input { width: 16px; height: 16px; accent-color: var(--forest-600); }

.auth__forgot { font-size: 14px; font-weight: 600; color: var(--forest-600); }
.auth__forgot:hover { color: var(--amber-500); }

.auth__submit { width: 100%; }

.auth__divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 18px;
  font-size: 13px;
  color: var(--muted);
}
.auth__divider::before,
.auth__divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.btn--wechat {
  width: 100%;
  background: #eaf7ee;
  color: #18a05e;
  font-weight: 700;
}
.btn--wechat:hover { background: #d6f1e1; }

/* 登录页响应式（手机 & iPad） */
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth__brand { display: none; }
  .auth__panel { justify-content: flex-start; padding: 96px 24px 48px; }
  .auth__logo-mobile { display: block; height: 48px; margin: 0 auto 28px; }
  .auth__back { top: 20px; left: 20px; }
}

@media (max-width: 640px) {
  .auth__panel { padding: 84px 20px 40px; }
  .auth__form h1 { font-size: 26px; }
}

/* ---------------- 小号按钮 ---------------- */
.btn--sm {
  padding: 9px 20px;
  font-size: 14px;
}

/* ============================================================
   入口选择页（portal）
   ============================================================ */
.portal-page {
  background:
    radial-gradient(1100px 560px at 85% -10%, rgba(193, 205, 248, 0.55), transparent 60%),
    radial-gradient(900px 560px at -10% 20%, rgba(229, 234, 253, 0.65), transparent 55%),
    linear-gradient(180deg, #fbfcff 0%, #eef2fc 100%);
  min-height: 100vh;
}

.portal {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.portal__inner {
  width: 100%;
  max-width: 860px;
  text-align: center;
}

.portal__logo {
  height: 64px;
  width: auto;
  margin: 0 auto 28px;
  background: #fff;
  padding: 12px 20px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.portal h1 {
  font-size: clamp(30px, 4.6vw, 46px);
  color: var(--forest-900);
  margin-bottom: 10px;
}

.portal__sub {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 44px;
}

.portal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  text-align: left;
}

.portal__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.portal__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--leaf-200);
}

.portal__card--points:hover {
  border-color: var(--amber-400);
}

.portal__icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  background: var(--leaf-100);
  margin-bottom: 10px;
}

.portal__card--points .portal__icon {
  background: var(--amber-100);
}

.portal__card h2 {
  font-size: 22px;
  color: var(--forest-800);
}

.portal__card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.portal__go {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--forest-600);
}

.portal__card--points .portal__go { color: var(--amber-500); }

.portal__footer {
  margin-top: 44px;
  font-size: 13px;
  color: var(--muted);
}

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

/* ============================================================
   学生积分系统
   ============================================================ */
.points-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.points-nav__inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.points-nav__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.points-nav__hi {
  font-size: 15px;
  font-weight: 700;
  color: var(--forest-700);
}

.points-hero {
  padding: 64px 0 56px;
  text-align: center;
  background:
    radial-gradient(900px 420px at 80% -20%, rgba(193, 205, 248, 0.5), transparent 60%),
    linear-gradient(180deg, #fbfcff, #f1f4fc);
}

.points-hero h1 {
  font-size: clamp(26px, 4vw, 40px);
  color: var(--forest-900);
  margin-bottom: 28px;
}

.points-hero__score {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 72px;
  box-shadow: var(--shadow-md);
}

.points-hero__score b {
  font-size: 72px;
  line-height: 1;
  font-weight: 800;
  color: var(--amber-500);
}

.points-hero__score span {
  font-size: 15px;
  color: var(--muted);
  font-weight: 600;
}

.points-tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--forest-600);
  background: var(--leaf-100);
  padding: 4px 12px;
  border-radius: var(--r-pill);
}

@media (max-width: 640px) {
  .points-hero__score { padding: 24px 48px; }
  .points-hero__score b { font-size: 56px; }
  .points-nav__hi { display: none; }
}

/* ============================================================
   提示消息 / 礼品榜 / 教师管理台
   ============================================================ */
.flash-stack {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flash,
.auth__notice {
  padding: 12px 18px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
}

.flash--ok,
.auth__notice--ok {
  color: #166534;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.flash--error,
.auth__notice--error {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fecaca;
}

.auth__notice { margin-bottom: 16px; }

/* ---------------- 入口页教师登录 ---------------- */
.portal__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.portal__teacher {
  font-size: 14px;
  font-weight: 700;
  color: var(--forest-600);
}

.portal__teacher:hover { text-decoration: underline; }

/* ---------------- 学生礼品榜 ---------------- */
.gift-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.gift-head__title {
  font-size: clamp(24px, 3.5vw, 30px);
  color: var(--forest-800);
}

.gift-head__sub {
  color: var(--muted);
  font-size: 15px;
  margin-top: 4px;
}

.gift-head__mine {
  font-size: 15px;
  color: var(--muted);
  white-space: nowrap;
}

.gift-head__mine b {
  color: var(--amber-500);
  font-size: 22px;
  margin-left: 4px;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}

.gift-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.gift-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--cream);
}

.gift-card__img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
}

.gift-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
  padding: 16px 18px 18px;
}

.gift-card__body h3 {
  font-size: 17px;
  color: var(--forest-800);
}

.gift-card__body p {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.gift-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.gift-card__points {
  font-weight: 800;
  color: var(--amber-500);
}

.gift-card__state {
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: var(--cream);
}

.gift-card__state.is-ready {
  color: #15803d;
  background: #dcfce7;
}

.gift-empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
  background: var(--cream);
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
}

/* ---------------- 教师管理台 ---------------- */
.teacher-page {
  min-height: 100vh;
  background: #f5f7fc;
}

.teacher-main { padding: 48px 0 80px; }

.teacher-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.teacher-head h1 {
  font-size: clamp(26px, 4vw, 38px);
  color: var(--forest-900);
  margin: 6px 0 8px;
}

.teacher-head p {
  max-width: 640px;
  font-size: 15px;
  color: var(--muted);
}

.teacher-stats {
  display: flex;
  gap: 14px;
  flex: none;
}

.teacher-stats div {
  padding: 14px 26px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}

.teacher-stats b {
  display: block;
  font-size: 28px;
  line-height: 1.2;
  color: var(--forest-600);
}

.teacher-stats span {
  font-size: 13px;
  color: var(--muted);
}

.panel {
  padding: 28px;
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.panel__head { margin-bottom: 20px; }

.panel__head h2 {
  font-size: 21px;
  color: var(--forest-800);
}

.panel__head p {
  margin-top: 2px;
  font-size: 14px;
  color: var(--muted);
}

.panel__empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  background: var(--cream);
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
}

.table-wrap { overflow-x: auto; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 12px 14px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}

.admin-table th {
  font-weight: 700;
  color: var(--muted);
  background: var(--cream);
}

.admin-table tbody tr:last-child td { border-bottom: none; }

.admin-score {
  font-size: 18px;
  font-weight: 800;
  color: var(--amber-500);
}

.inline-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inline-form input {
  width: 110px;
  padding: 8px 10px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.inline-form input:focus {
  outline: none;
  border-color: var(--forest-400);
  box-shadow: 0 0 0 3px var(--leaf-100);
}

.gift-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gift-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.gift-form .field { margin-bottom: 0; }

.form-hint {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.admin-gift-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-gift {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.admin-gift__img {
  flex: none;
  width: 84px;
  height: 84px;
  object-fit: cover;
  background: var(--cream);
  border-radius: var(--r-sm);
}

.admin-gift__img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

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

.admin-gift__body h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  color: var(--forest-800);
}

.admin-gift__body p {
  font-size: 14px;
  color: var(--muted);
}

.admin-gift__meta {
  display: flex;
  gap: 16px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-soft);
}

.admin-gift__meta b {
  font-size: 16px;
  color: var(--amber-500);
}

.admin-gift__actions {
  display: flex;
  flex: none;
  gap: 8px;
}

.btn--danger {
  color: #fff;
  background: #dc2626;
}

.btn--danger:hover { background: #b91c1c; }

.badge--off {
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}

@media (max-width: 720px) {
  .teacher-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .gift-form__row { grid-template-columns: 1fr; }

  .gift-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .admin-gift { flex-wrap: wrap; }

  .admin-gift__body { flex: 1 1 calc(100% - 100px); }

  .admin-gift__actions {
    width: 100%;
    justify-content: flex-end;
  }

  .admin-table thead { display: none; }

  .admin-table,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td { display: block; width: 100%; }

  .admin-table tr {
    margin-bottom: 12px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
  }

  .admin-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px;
    border: none;
  }

  .admin-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--muted);
  }

  .inline-form { flex: 1; justify-content: flex-end; }
}

@media (max-width: 640px) {
  .points-nav__right { gap: 6px; }
  .points-nav__right .btn--sm {
    padding: 8px 10px;
    font-size: 13px;
  }
}

/* 移动端 tr 被设为 display:block，需显式保证 hidden 仍然生效 */
.student-row[hidden],
.student-row.is-hidden {
  display: none !important;
}

/* ============================================================
   积分首页入口 / 教师搜索批量操作 / 兑换核销
   ============================================================ */
.entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.entry-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.entry-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--leaf-200);
}

.entry-card--gift { border-color: #fde68a; }

.entry-card__icon {
  flex: none;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: var(--cream);
  border-radius: 18px;
}

.entry-card--gift .entry-card__icon { background: #fef3c7; }

.entry-card__body h2 {
  font-size: 21px;
  color: var(--forest-800);
}

.entry-card__body p {
  margin-top: 4px;
  font-size: 15px;
  color: var(--muted);
}

.entry-card__link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  color: var(--forest-600);
}

.entry-card__badge {
  position: absolute;
  top: 20px;
  right: 22px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: var(--cream);
  border-radius: var(--r-pill);
}

.gift-card__action {
  margin-top: 10px;
}

.gift-card__action form { margin: 0; }

.gift-card__action .btn { width: 100%; }

.gift-card__action .btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.points-hero--compact {
  padding: 44px 0 36px;
}

.points-hero--compact h1 {
  margin-bottom: 20px;
}

.points-hero--compact .points-hero__score {
  padding: 22px 48px;
}

.points-hero--compact .points-hero__score b {
  font-size: 52px;
}

/* ---------------- 教师入口卡片 ---------------- */
.teacher-link-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  margin-bottom: 24px;
  background: linear-gradient(120deg, #eef3ff, #fff);
  border: 1px solid var(--leaf-200);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.teacher-link-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.teacher-link-card__icon {
  flex: none;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  background: #fff;
  border-radius: 16px;
}

.teacher-link-card__body {
  flex: 1;
  min-width: 0;
}

.teacher-link-card__body h2 {
  font-size: 20px;
  color: var(--forest-800);
}

.teacher-link-card__body p {
  font-size: 14px;
  color: var(--muted);
}

.teacher-link-card__go {
  flex: none;
  font-weight: 700;
  color: var(--forest-600);
  white-space: nowrap;
}

/* ---------------- 学生搜索与批量积分 ---------------- */
.student-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.student-search {
  position: relative;
  flex: 1 1 280px;
  max-width: 460px;
}

.student-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
}

.student-search input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}

.student-search input:focus {
  outline: none;
  border-color: var(--forest-400);
  box-shadow: 0 0 0 3px var(--leaf-100);
}

.selected-count {
  font-size: 14px;
  color: var(--muted);
}

.selected-count b {
  font-size: 18px;
  color: var(--amber-500);
}

.bulk-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 16px;
  margin-bottom: 16px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.bulk-bar label {
  font-size: 14px;
  font-weight: 700;
  color: var(--forest-800);
}

.bulk-bar input {
  width: 110px;
  padding: 9px 10px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.bulk-bar input:focus {
  outline: none;
  border-color: var(--forest-400);
  box-shadow: 0 0 0 3px var(--leaf-100);
}

.bulk-bar__unit {
  font-size: 14px;
  color: var(--muted);
}

.student-row.is-selected { background: #f0f5ff; }

.student-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--forest-600);
  cursor: pointer;
}

.student-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--forest-600);
  cursor: pointer;
}

/* ---------------- 兑换状态与记录 ---------------- */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--r-pill);
}

.status-badge--pending {
  color: #b45309;
  background: #fef3c7;
}

.status-badge--used {
  color: #15803d;
  background: #dcfce7;
}

.redemption-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.redemption-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}

.redemption-item__icon {
  flex: none;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: var(--cream);
  border-radius: 14px;
}

.redemption-item__body {
  flex: 1;
  min-width: 0;
}

.redemption-item__body h3 {
  font-size: 17px;
  color: var(--forest-800);
}

.redemption-item__body p {
  font-size: 13px;
  color: var(--muted);
}

.redemption-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.redemption-detail__info {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.redemption-detail__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}

.redemption-detail__row:last-child { border-bottom: none; }

.redemption-detail__row span { color: var(--muted); }

.redemption-detail__row b {
  text-align: right;
  word-break: break-all;
}

.redemption-detail__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.redemption-detail__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.qr-box {
  padding: 28px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.qr-box__img {
  width: 240px;
  max-width: 100%;
  margin: 0 auto 16px;
  border-radius: var(--r-sm);
}

.qr-box h2 {
  font-size: 20px;
  color: var(--forest-800);
}

.qr-box p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

.qr-box__code {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--muted);
  background: var(--cream);
  border-radius: var(--r-sm);
  word-break: break-all;
}

.qr-box--used {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 300px;
}

.qr-box__used-icon {
  margin-bottom: 8px;
  font-size: 56px;
}

/* ---------------- 教师核销 ---------------- */
.verify-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.verify-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.verify-card__head h1 {
  margin-top: 6px;
  font-size: clamp(24px, 3.5vw, 32px);
  color: var(--forest-900);
}

.verify-card__submit {
  display: flex;
  width: 100%;
  margin-top: 24px;
}

.verify-card__done {
  margin-top: 24px;
  padding: 18px;
  text-align: center;
  font-weight: 700;
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--r-md);
}

.verify-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.verify-form input {
  flex: 1 1 280px;
  padding: 11px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}

.verify-form input:focus {
  outline: none;
  border-color: var(--forest-400);
  box-shadow: 0 0 0 3px var(--leaf-100);
}

@media (max-width: 720px) {
  .entry-grid,
  .redemption-detail {
    grid-template-columns: 1fr;
  }

  .entry-card { padding: 22px; }

  .entry-card__badge {
    position: static;
    align-self: flex-start;
    margin-left: auto;
  }

  .teacher-link-card { flex-wrap: wrap; }

  .teacher-link-card__go { width: 100%; }

  .redemption-item { flex-wrap: wrap; }

  .redemption-item__body { flex: 1 1 calc(100% - 70px); }

  .student-search { max-width: none; }

  .bulk-bar input { flex: 1 1 100px; }
}

/* ============================================================
   简洁导航 / 教师扫码 / 学生积分首页
   ============================================================ */
.simple-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 15px;
  font-weight: 600;
}

.simple-nav a {
  position: relative;
  padding: 6px 0;
  color: var(--muted);
}

.simple-nav a:hover { color: var(--forest-700); }

.simple-nav a.is-active {
  color: var(--forest-700);
  font-weight: 700;
}

.simple-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--forest-600);
  border-radius: 2px;
}

.nav-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #ef4444;
  border-radius: var(--r-pill);
  vertical-align: middle;
}

/* ---------------- 教师首页 ---------------- */
.teacher-head--simple {
  align-items: center;
}

.teacher-head--simple h1 {
  margin: 0 0 2px;
  font-size: clamp(24px, 3.5vw, 32px);
}

.teacher-head--simple p { font-size: 14px; }

.stat-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}

.stat-strip b {
  margin-right: 2px;
  font-size: 18px;
  color: var(--forest-700);
}

.teacher-actions {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.scan-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.scan-card__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.scan-card__icon {
  flex: none;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: var(--leaf-100);
  border-radius: 14px;
}

.scan-card__head h2 {
  font-size: 19px;
  color: var(--forest-800);
}

.scan-card__head p {
  font-size: 14px;
  color: var(--muted);
}

.scan-card__btn {
  width: 100%;
  cursor: pointer;
}

.scan-status {
  min-height: 20px;
  margin-top: 10px;
  font-size: 13px;
  text-align: center;
  color: var(--muted);
}

.scan-status.is-error { color: #b91c1c; }

.scan-manual {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.scan-manual summary {
  font-weight: 600;
  color: var(--forest-600);
  cursor: pointer;
}

.scan-manual form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.scan-manual input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.scan-manual input:focus {
  outline: none;
  border-color: var(--forest-400);
  box-shadow: 0 0 0 3px var(--leaf-100);
}

.gift-entry-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: linear-gradient(120deg, #eef3ff, #fff);
  border: 1px solid var(--leaf-200);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gift-entry-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.gift-entry-card__icon {
  flex: none;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: #fff;
  border-radius: 14px;
}

.gift-entry-card__body {
  flex: 1;
  min-width: 0;
}

.gift-entry-card__body h2 {
  font-size: 19px;
  color: var(--forest-800);
}

.gift-entry-card__body p {
  font-size: 14px;
  color: var(--muted);
}

.gift-entry-card__go {
  flex: none;
  font-weight: 700;
  color: var(--forest-600);
  white-space: nowrap;
}

/* ---------------- 学生积分首页 ---------------- */
.points-simple {
  min-height: calc(100vh - var(--nav-h));
  padding: 72px 0 96px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(900px 460px at 82% -10%, rgba(193, 205, 248, 0.5), transparent 60%),
    linear-gradient(180deg, #fbfcff, #f1f4fc);
}

.points-simple__inner {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.points-simple h1 {
  margin: 6px 0 26px;
  font-size: clamp(26px, 4vw, 38px);
  color: var(--forest-900);
}

.points-simple__score {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 28px 72px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.points-simple__score b {
  font-size: 72px;
  line-height: 1;
  font-weight: 800;
  color: var(--amber-500);
}

.points-simple__score span {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.points-simple__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.points-simple__actions .btn { min-width: 170px; }

.points-simple__hint {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

.points-simple__hint b {
  font-size: 18px;
  color: var(--amber-500);
}

.points-simple__settings {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.points-simple--compact {
  min-height: 0;
  padding: 36px 0 20px;
  display: block;
  background: transparent;
}

.points-simple--compact .points-simple__inner {
  text-align: left;
}

.points-simple--compact h1 {
  margin-bottom: 8px;
}

.points-simple--compact .points-simple__hint {
  margin-top: 6px;
}

@media (max-width: 720px) {
  .simple-nav {
    gap: 10px;
    row-gap: 4px;
    font-size: 13px;
  }

  .simple-nav a { padding: 3px 0; }

  .teacher-actions { grid-template-columns: 1fr; }

  .teacher-head--simple { align-items: flex-start; }

  .stat-strip { gap: 12px; }

  .points-simple {
    padding: 48px 0 64px;
  }

  .points-simple__score {
    padding: 24px 48px;
  }

  .points-simple__score b { font-size: 56px; }

  .points-simple__actions { flex-direction: column; }

  .points-simple__actions .btn { width: 100%; }

  .gift-entry-card { flex-wrap: wrap; }

  .gift-entry-card__go { width: 100%; }
}

.bulk-status {
  min-height: 20px;
  margin: -6px 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.bulk-status.is-ok { color: #15803d; }

.bulk-status.is-error { color: #b91c1c; }

/* —— 机构信息表（About 页，便于 AI / 搜索引擎抽取实体信息） —— */
.brand-info {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.brand-info th {
  width: 110px;
  padding: 11px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  border-bottom: 1px solid var(--line, #e5e7eb);
}

.brand-info td {
  padding: 11px 12px;
  color: var(--ink, #1f2937);
  border-bottom: 1px solid var(--line, #e5e7eb);
}

.brand-info tr:last-child th,
.brand-info tr:last-child td {
  border-bottom: none;
}

.brand-info a {
  color: var(--forest-600, #2f6b4f);
}

/* —— 课程页：年龄-课程对照表（便于 AI / 搜索引擎抽取） —— */
.grade-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}

.grade-table th,
.grade-table td {
  padding: 13px 15px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line, #e5e7eb);
}

.grade-table thead th {
  background: var(--forest-600);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.grade-table tbody th {
  width: 150px;
  font-weight: 600;
  color: var(--forest-700);
  background: var(--leaf-100);
  white-space: nowrap;
}

.grade-table tbody tr:last-child th,
.grade-table tbody tr:last-child td {
  border-bottom: none;
}

.grade-table td {
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ============================================================
   2026 视觉升级：课程总览表、卡片、按钮与页面层次
   ============================================================ */

/* —— 课程体系总览表 —— */
.curriculum-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 26px 60px -36px rgba(27, 35, 56, 0.5);
}

.curriculum-table thead th {
  padding: 14px 8px;
  background: linear-gradient(135deg, #2b3a7a, #41529f);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  text-align: center;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.curriculum-table thead th:first-child {
  min-width: 96px;
  padding-left: 18px;
  text-align: left;
}

.curriculum-table tbody th {
  padding: 16px 18px;
  text-align: left;
  white-space: nowrap;
  font-weight: 700;
  vertical-align: middle;
  background: #f7f9ff;
  border-bottom: 1px solid #e9edf8;
}

.curriculum-table tbody td {
  padding: 13px 8px;
  text-align: center;
  vertical-align: middle;
  line-height: 1.55;
  color: #3f4a63;
  border-bottom: 1px solid #eef1f8;
  border-right: 1px solid #f1f4fb;
}

.curriculum-table tbody td:last-child {
  border-right: none;
}

.curriculum-table tbody td small {
  font-size: 11px;
  color: #8a94ab;
}

.curriculum-table tbody td.empty {
  background: repeating-linear-gradient(
    -45deg,
    #fbfcff,
    #fbfcff 6px,
    #f5f7fd 6px,
    #f5f7fd 12px
  );
}

.curriculum-table tbody tr:hover td:not(.empty) {
  background: #f6f8ff;
}

.curriculum-table tr.row-xinao > th {
  color: #3b4aa0;
  border-left: 4px solid #4a5dc0;
}

.curriculum-table tr.row-robot > th {
  color: #b45309;
  border-left: 4px solid #f59e0b;
}

.curriculum-table tr.row-aiot > th {
  color: #9d174d;
  border-left: 4px solid #ec4899;
}

/* —— 卡片：更柔和的层次与悬浮反馈 —— */
.card {
  border-radius: 20px;
  box-shadow: 0 14px 36px -28px rgba(27, 35, 56, 0.5);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #dfe5f4;
  box-shadow: 0 26px 50px -30px rgba(27, 35, 56, 0.5);
}

.domain-card .card__icon {
  transition: transform 0.25s ease;
}

.domain-card:hover .card__icon {
  transform: scale(1.08) rotate(-3deg);
}

/* —— 主按钮：渐变与光晕 —— */
.btn--primary {
  background: linear-gradient(135deg, var(--amber-500), #f7b955);
  box-shadow: 0 12px 26px -14px rgba(245, 158, 11, 0.8);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--amber-400), #fac36a);
  box-shadow: 0 18px 34px -14px rgba(245, 158, 11, 0.85);
}

/* —— 页面 Hero：更柔和的渐变与暖色点缀 —— */
.page-hero {
  background:
    radial-gradient(820px 380px at 14% -20%, rgba(112, 132, 232, 0.28), transparent 62%),
    radial-gradient(680px 300px at 92% -12%, rgba(245, 183, 90, 0.22), transparent 60%),
    linear-gradient(180deg, #fbfcff, #eef2fb);
}

/* —— 标题排版 —— */
.page-hero h1,
.section-head h2 {
  letter-spacing: -0.02em;
}

/* —— 课程列表悬浮反馈 —— */
.course-list li {
  transition: color 0.18s ease, transform 0.18s ease;
}

.course-list li:hover {
  color: var(--forest-700);
  transform: translateX(2px);
}

/* —— 首页 Hero：网格纹理与光晕 —— */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(53, 70, 150, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 70, 150, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 72% 62% at 52% 32%, #000 28%, transparent 76%);
  mask-image: radial-gradient(ellipse 72% 62% at 52% 32%, #000 28%, transparent 76%);
  pointer-events: none;
}

.hero h1 {
  letter-spacing: -0.03em;
  line-height: 1.14;
}

.hero__badge {
  box-shadow: 0 8px 20px -12px rgba(53, 70, 150, 0.55);
}

.hero__art {
  filter: drop-shadow(0 34px 54px rgba(53, 70, 150, 0.14));
}

/* —— CTA 区块：更大的圆角与柔光 —— */
.cta-band {
  border-radius: 24px;
  box-shadow: 0 36px 70px -46px rgba(27, 35, 56, 0.8);
}

/* —— 页脚：顶部细光带 —— */
.footer {
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

/* —— 表单防垃圾：蜜罐字段对真人不可见 —— */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* —— 表单错误提示 —— */
.error-msg {
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 14px;
}
