/* ============================================================
   大国科匠 · 科创素养与实践赋能平台
   UI Design System v1.0  —  by UI Designer
   明亮科技风 · 靛蓝主色 · 多彩板块辅色
   ============================================================ */

/* ---------- 字体 ---------- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap');

/* ============================================================
   设计 Token
   ============================================================ */
:root {
  /* —— 品牌主色 Indigo —— */
  --brand-300: #A5B4FC;
  --brand-400: #818CF8;
  --brand-500: #4F46E5;
  --brand-600: #4338CA;
  --brand-700: #3730A3;

  /* —— 五大板块辅色 —— */
  --edu:        #8B5CF6;  --edu-50:  #F5F3FF;  --edu-100: #EDE9FE;   /* 通识教育 创新紫 */
  --exam:       #06B6D4;  --exam-50: #ECFEFF;  --exam-100: #CFFAFE;  /* 等级考试 实践青 */
  --event:      #F97316;  --event-50:#FFF7ED;  --event-100:#FFEDD5;  /* 赛事活动 活力橙 */
  --talent:     #10B981;  --talent-50:#ECFDF5; --talent-100:#D1FAE5; /* 人才培养 成长绿 */
  --res:        #F59E0B;  --res-50: #FFFBEB;  --res-100: #FEF3C7;   /* 资料专区 匠心金 */

  /* —— 语义色 —— */
  --success: #10B981;  --success-50: #ECFDF5;
  --warning: #F59E0B;  --warning-50: #FFFBEB;
  --error:   #EF4444;  --error-50:   #FEF2F2;
  --info:    #3B82F6;  --info-50:    #EFF6FF;

  /* —— 中性色 —— */
  --bg:        #F8FAFC;
  --surface:   #FFFFFF;
  --surface-2: #F1F5F9;
  --surface-3: #E2E8F0;
  --ink-900:   #0F1729;
  --ink-700:   #1E293B;
  --ink-600:   #475569;
  --ink-500:   #64748B;
  --ink-400:   #94A3B8;
  --ink-300:   #CBD5E1;
  --line:      #E2E8F0;
  --line-soft: #EEF2F7;
  --ink-dark:  #0B1020;   /* 深色区块背景 */

  /* —— 渐变 —— */
  --grad-brand:  linear-gradient(135deg, #4F46E5 0%, #818CF8 100%);
  --grad-edu:    linear-gradient(135deg, #8B5CF6 0%, #C4B5FD 100%);
  --grad-exam:   linear-gradient(135deg, #06B6D4 0%, #67E8F9 100%);
  --grad-event:  linear-gradient(135deg, #F97316 0%, #FDBA74 100%);
  --grad-talent: linear-gradient(135deg, #10B981 0%, #6EE7B7 100%);
  --grad-res:    linear-gradient(135deg, #F59E0B 0%, #FCD34D 100%);
  --grad-hero:   linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%);
  --grad-text:   linear-gradient(90deg, #4F46E5 0%, #8B5CF6 50%, #06B6D4 100%);

  /* —— 字体族 —— */
  --font-display: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', serif;
  --font-body: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;

  /* —— 字号 —— */
  --fs-xs: 12px;  --fs-sm: 14px;  --fs-base: 16px;  --fs-lg: 18px;
  --fs-xl: 20px;  --fs-2xl: 24px; --fs-3xl: 30px;   --fs-4xl: 36px;
  --fs-5xl: 48px; --fs-6xl: 60px;

  /* —— 间距 8pt —— */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px;
  --s-20: 80px; --s-24: 96px; --s-32: 128px;

  /* —— 圆角 —— */
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 24px; --r-2xl: 32px; --r-full: 999px;

  /* —— 阴影 —— */
  --sh-xs: 0 1px 2px rgba(15,23,41,.04);
  --sh-sm: 0 2px 8px rgba(15,23,41,.06);
  --sh-md: 0 6px 20px rgba(15,23,41,.08);
  --sh-lg: 0 14px 40px rgba(15,23,41,.10);
  --sh-brand: 0 8px 24px rgba(79,70,229,.25);
  --sh-edu: 0 8px 24px rgba(139,92,246,.22);
  --sh-exam: 0 8px 24px rgba(6,182,212,.22);
  --sh-event: 0 8px 24px rgba(249,115,22,.22);
  --sh-talent: 0 8px 24px rgba(16,185,129,.22);
  --sh-res: 0 8px 24px rgba(245,158,11,.22);

  /* —— 动效 —— */
  --ease-fast: 150ms cubic-bezier(.4,0,.2,1);
  --ease: 250ms cubic-bezier(.4,0,.2,1);
  --ease-slow: 400ms cubic-bezier(.4,0,.2,1);

  /* —— 布局 —— */
  --container: 1200px;
  --nav-h: 72px;
}

/* ============================================================
   重置
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

::selection { background: var(--brand-500); color: #fff; }

:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   布局工具
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-6);
}
.container--narrow { max-width: 880px; }
.container--wide { max-width: 1360px; }

.section { padding: var(--s-24) 0; }
.section--tight { padding: var(--s-16) 0; }
.section--dark { background: var(--ink-dark); color: #fff; }

.grid { display: grid; gap: var(--s-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-2 { gap: var(--s-2); } .gap-3 { gap: var(--s-3); } .gap-4 { gap: var(--s-4); }
.gap-6 { gap: var(--s-6); } .gap-8 { gap: var(--s-8); }

.text-center { text-align: center; }
.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================
   标题排版
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--brand-600);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
}
.eyebrow::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--brand-500);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink-900);
  letter-spacing: -.02em;
}
.section-title--lg { font-size: var(--fs-5xl); }
.section-sub {
  font-size: var(--fs-lg);
  color: var(--ink-500);
  line-height: 1.6;
  margin-top: var(--s-4);
  max-width: 640px;
}
.section-head { margin-bottom: var(--s-16); }
.section-head--center { text-align: center; }
.section-head--center .section-sub { margin-left: auto; margin-right: auto; }

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 var(--s-6);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 600;
  border-radius: var(--r-md);
  transition: all var(--ease);
  white-space: nowrap;
  user-select: none;
  border: 1.5px solid transparent;
}
.btn:disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }

.btn--primary {
  background: var(--brand-500);
  color: #fff;
  box-shadow: var(--sh-brand);
}
.btn--primary:hover { background: var(--brand-600); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(79,70,229,.32); }

.btn--secondary {
  background: var(--surface);
  color: var(--brand-600);
  border-color: var(--brand-500);
}
.btn--secondary:hover { background: var(--edu-50); border-color: var(--brand-600); transform: translateY(-2px); }

.btn--ghost { color: var(--ink-600); }
.btn--ghost:hover { color: var(--brand-600); background: var(--edu-50); }

.btn--dark { background: var(--ink-900); color: #fff; }
.btn--dark:hover { background: var(--ink-700); transform: translateY(-2px); }

.btn--lg { height: 56px; padding: 0 var(--s-8); font-size: var(--fs-lg); }
.btn--sm { height: 40px; padding: 0 var(--s-4); font-size: var(--fs-sm); }
.btn--block { width: 100%; }

/* 板块色按钮 */
.btn--edu    { background: var(--grad-edu);    color: #fff; }
.btn--exam   { background: var(--grad-exam);   color: #fff; }
.btn--event  { background: var(--grad-event);  color: #fff; }
.btn--talent { background: var(--grad-talent); color: #fff; }
.btn--res    { background: var(--grad-res);    color: #fff; }

/* ============================================================
   卡片
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  transition: all var(--ease);
  overflow: hidden;
}
.card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); border-color: var(--ink-300); }
.card--pad { padding: var(--s-8); }
.card--pad-lg { padding: var(--s-10); }

/* 板块卡：顶部色条 */
.plate-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  transition: all var(--ease);
  overflow: hidden;
}
.plate-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--bar-color, var(--brand-500));
}
.plate-card:hover { box-shadow: var(--sh-lg); transform: translateY(-4px); }
.plate-card--edu    { --bar-color: var(--edu); }
.plate-card--exam   { --bar-color: var(--exam); }
.plate-card--event  { --bar-color: var(--event); }
.plate-card--talent { --bar-color: var(--talent); }
.plate-card--res    { --bar-color: var(--res); }

/* 板块图标 */
.plate-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700;
  color: #fff;
  margin-bottom: var(--s-5);
}
.plate-icon--edu    { background: var(--grad-edu);    box-shadow: var(--sh-edu); }
.plate-icon--exam   { background: var(--grad-exam);   box-shadow: var(--sh-exam); }
.plate-icon--event  { background: var(--grad-event);  box-shadow: var(--sh-event); }
.plate-icon--talent { background: var(--grad-talent); box-shadow: var(--sh-talent); }
.plate-icon--res    { background: var(--grad-res);    box-shadow: var(--sh-res); }
.plate-icon--brand  { background: var(--grad-brand);  box-shadow: var(--sh-brand); }

/* ============================================================
   标签 / 徽标
   ============================================================ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  background: var(--surface-2);
  color: var(--ink-600);
}
.tag--brand { background: var(--edu-50); color: var(--brand-600); }
.tag--edu    { background: var(--edu-50);    color: var(--edu); }
.tag--exam   { background: var(--exam-50);   color: var(--exam); }
.tag--event  { background: var(--event-50);  color: var(--event); }
.tag--talent { background: var(--talent-50); color: var(--talent); }
.tag--res    { background: var(--res-50);    color: var(--res); }
.tag--success { background: var(--success-50); color: var(--success); }
.tag--warning { background: var(--warning-50); color: var(--warning); }
.tag--error   { background: var(--error-50);   color: var(--error); }

.badge-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ============================================================
   导航栏
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all var(--ease);
}
.nav--scrolled {
  background: rgba(255,255,255,.95);
  border-bottom-color: var(--line);
  box-shadow: var(--sh-xs);
}
.nav__inner {
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--s-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
}
.nav__brand { display: flex; align-items: center; gap: 0; flex-shrink: 0; }
.nav__logo {
  height: 64px; width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.nav__brand-name { font-size: var(--fs-lg); font-weight: 700; color: var(--ink-900); line-height: 1.2; }
.nav__brand-en { font-size: 10px; color: var(--ink-400); letter-spacing: .1em; font-family: var(--font-mono); }

.nav__menu { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative;
  padding: 8px 14px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-600);
  border-radius: var(--r-md);
  transition: all var(--ease-fast);
  cursor: pointer;
}
.nav__link:hover { color: var(--brand-600); background: var(--edu-50); }
.nav__link--active { color: var(--brand-600); }
.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 2px;
  background: var(--brand-500);
  border-radius: 2px;
}

.nav__actions { display: flex; align-items: center; gap: var(--s-3); flex-shrink: 0; }
.nav__login { font-size: var(--fs-sm); font-weight: 500; color: var(--ink-600); cursor: pointer; }
.nav__login:hover { color: var(--brand-600); }

.nav__toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--ink-900); border-radius: 2px; transition: all var(--ease); }

/* ============================================================
   页脚
   ============================================================ */
.footer {
  background: var(--ink-dark);
  color: var(--ink-300);
  padding: var(--s-20) 0 var(--s-8);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--s-10);
  margin-bottom: var(--s-12);
}
.footer__brand-name { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 700; color: #fff; margin-bottom: var(--s-3); }
.footer__desc { font-size: var(--fs-sm); line-height: 1.7; color: var(--ink-400); max-width: 320px; }
.footer__col-title { font-size: var(--fs-sm); font-weight: 600; color: #fff; margin-bottom: var(--s-5); }
.footer__link { display: block; font-size: var(--fs-sm); color: var(--ink-400); padding: 6px 0; transition: color var(--ease-fast); }
.footer__link:hover { color: var(--brand-400); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: var(--s-6);
  display: flex; align-items: center; justify-content: space-between;
  font-size: var(--fs-xs); color: var(--ink-400);
}

/* ============================================================
   表单元素
   ============================================================ */
.field { margin-bottom: var(--s-5); }
.field__label { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-700); margin-bottom: var(--s-2); }
.field__label .req { color: var(--error); }
.input, .select, .textarea {
  width: 100%;
  height: 48px;
  padding: 0 var(--s-4);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  font-size: var(--fs-base);
  color: var(--ink-900);
  transition: all var(--ease-fast);
}
.textarea { height: auto; padding: var(--s-3) var(--s-4); min-height: 120px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(79,70,229,.12);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-400); }
.field__error { font-size: var(--fs-xs); color: var(--error); margin-top: 6px; display: none; }
.field--error .input { border-color: var(--error); }
.field--error .field__error { display: block; }

/* ============================================================
   工具：分隔线、装饰、动画
   ============================================================ */
.divider { height: 1px; background: var(--line); border: none; margin: var(--s-10) 0; }

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .6; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal--in { opacity: 1; transform: translateY(0); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid > :first-child { grid-column: 1 / -1; }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --fs-6xl: 40px; --fs-5xl: 32px; --fs-4xl: 26px; --fs-3xl: 22px; }
  .nav__menu, .nav__login { display: none; }
  .nav__toggle { display: flex; }
  .nav__actions .btn { display: none; }
  .section { padding: var(--s-16) 0; }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; gap: var(--s-3); text-align: center; }
}
@media (max-width: 480px) {
  .container { padding: 0 var(--s-4); }
  .footer__grid { grid-template-columns: 1fr; }
}
