/* ===== 设计令牌 ===== */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-tint: #f0f3f7;
  --ink: #16213a;
  --ink-soft: #45536e;
  --muted: #7a879e;
  --line: #e4e9f0;
  --accent: #1d5c8f;
  --accent-deep: #123e66;
  --accent-soft: #e8f1f9;
  --gold: #c08a3e;
  --shadow: 0 18px 50px -20px rgba(18, 62, 102, 0.22);
  --shadow-sm: 0 8px 24px -14px rgba(18, 62, 102, 0.28);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1160px;
  --font-sans: "DM Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--maxw), calc(100% - 48px)); margin: 0 auto; }

/* ===== 导航 ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 248, 250, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -18px rgba(18,62,102,.5); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 11px; background: var(--accent-deep); color: #fff;
  font-weight: 700; font-size: 14px; letter-spacing: .5px;
}
.brand-text { font-weight: 700; font-size: 16px; line-height: 1.15; }
.brand-en { display: block; font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: .5px; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.nav-links a { transition: color .2s ease; }
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent-deep); color: #fff !important;
  padding: 9px 18px; border-radius: 9px; transition: transform .2s ease, background .2s ease;
}
.nav-cta:hover { background: var(--accent); transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 70px 0 0; }
.hero-glow {
  position: absolute; top: -180px; right: -120px; width: 680px; height: 680px;
  background: radial-gradient(circle at center, rgba(29,92,143,.14), transparent 62%);
  pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; padding-bottom: 70px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; display: flex; align-items: center; gap: 10px; margin: 0 0 20px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); display: inline-block; }
.hero h1 { font-family: var(--font-serif); font-size: clamp(38px, 5.2vw, 62px); line-height: 1.25; margin: 0 0 24px; font-weight: 700; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { font-size: 16px; color: var(--ink-soft); max-width: 560px; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 10px; font-size: 14px; font-weight: 600; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn-primary { background: var(--accent-deep); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); background: var(--accent); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }

/* 肖像 */
.hero-portrait { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.portrait-frame {
  width: min(360px, 80vw); aspect-ratio: 4 / 4.6;
  border-radius: 22px; overflow: hidden; position: relative;
  background: linear-gradient(145deg, #dce8f3, #eef2f7 55%, #f6e9d6);
  box-shadow: var(--shadow); border: 6px solid var(--surface);
}
.portrait-frame::after {
  content: ""; position: absolute; inset: 0; border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); pointer-events: none;
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--accent-deep); }
.ph-initials { font-family: var(--font-serif); font-size: 84px; font-weight: 700; opacity: .28; }
.ph-hint { font-size: 12px; color: var(--muted); }
.portrait-caption { text-align: center; }
.portrait-caption strong { display: block; font-size: 15px; }
.portrait-caption span { font-size: 12px; color: var(--muted); }

/* 统计条 */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 26px 10px;
}
.stat { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 8px 18px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-num { font-family: var(--font-serif); font-size: 40px; font-weight: 700; color: var(--accent-deep); line-height: 1; }
.stat-plus { font-size: 20px; color: var(--gold); }
.stat-label { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.stat-label small { color: var(--muted); font-weight: 400; font-size: 11px; }

/* ===== 通用 section ===== */
.section { padding: 100px 0; }
.section-tint { background: var(--surface-tint); }
.section-heading { margin-bottom: 44px; }
.section-heading.center { text-align: center; }
.section-heading.center .eyebrow { justify-content: center; }
.section-heading h2 { font-family: var(--font-serif); font-size: clamp(30px, 3.6vw, 44px); line-height: 1.3; margin: 0 0 14px; font-weight: 700; }
.section-sub { color: var(--ink-soft); max-width: 560px; margin: 0; }
.section-heading.center .section-sub { margin: 0 auto; }

/* 关于 */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; }
.about-body .lead { font-family: var(--font-serif); font-size: 21px; font-weight: 600; line-height: 1.7; color: var(--accent-deep); margin: 0 0 22px; }
.about-body p { color: var(--ink-soft); margin: 0 0 16px; }
.about-tags { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.about-tags li { background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft); font-size: 13px; padding: 7px 14px; border-radius: 100px; }

/* 教学领域卡片 */
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.focus-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; transition: transform .25s ease, box-shadow .25s ease; }
.focus-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.focus-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font-size: 26px; font-weight: 600; margin-bottom: 20px; }
.focus-card h3 { font-size: 19px; margin: 0 0 10px; }
.focus-card p { color: var(--ink-soft); font-size: 14px; margin: 0; }

/* 课程体系 */
.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.program-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px; position: relative; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.program-card.featured { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.program-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.program-tag { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--accent); background: var(--accent-soft); padding: 5px 11px; border-radius: 7px; }
.program-card.featured .program-tag { background: rgba(255,255,255,.16); color: #fff; }
.program-no { font-family: var(--font-serif); font-size: 30px; color: var(--line); font-weight: 700; line-height: 1; }
.program-card.featured .program-no { color: rgba(255,255,255,.25); }
.program-card h3 { font-family: var(--font-serif); font-size: 23px; margin: 0 0 12px; }
.program-card p { font-size: 14px; margin: 0 0 20px; }
.program-card:not(.featured) p { color: var(--ink-soft); }
.program-card.featured p { color: rgba(255,255,255,.82); }
.program-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.program-card li { font-size: 13px; padding-left: 20px; position: relative; }
.program-card li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.program-card.featured li { color: rgba(255,255,255,.9); }

/* 教育理念 */
.journey-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; }
.journey-list { display: grid; gap: 0; }
.journey-item { display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.journey-item:first-child { padding-top: 0; }
.journey-item:last-child { border-bottom: 0; }
.journey-year { font-size: 12px; font-weight: 700; color: var(--accent); padding-top: 5px; }
.journey-item h3 { font-size: 17px; margin: 0 0 6px; }
.journey-item p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* 联系 */
.contact { text-align: center; background: var(--surface); }
.contact .eyebrow { justify-content: center; }
.contact h2 { font-family: var(--font-serif); font-size: clamp(32px, 4vw, 48px); margin: 0 0 16px; }
.contact-lead { color: var(--ink-soft); max-width: 520px; margin: 0 auto 28px; }
.contact-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.contact-note { font-size: 13px; color: var(--muted); }
.contact-note a { color: var(--accent); }
.contact-note a:hover { text-decoration: underline; }
.sep { margin: 0 10px; color: var(--line); }

/* 页脚 */
.site-footer { border-top: 1px solid var(--line); padding: 26px 0; font-size: 12px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .hero-inner, .about-grid, .journey-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-portrait { order: -1; }
  .portrait-frame { width: min(300px, 70vw); }
  .focus-grid, .programs { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 32px, var(--maxw)); }
  .nav-links { display: none; position: absolute; top: 74px; left: 0; right: 0; background: var(--surface); flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-cta { text-align: center; margin-top: 10px; border-radius: 9px !important; }
  .nav-toggle { display: block; }
  .section { padding: 70px 0; }
  .hero { padding-top: 50px; }
  .stats-bar { grid-template-columns: 1fr 1fr; padding: 20px 6px; }
  .stat { flex-direction: column; gap: 6px; text-align: center; padding: 10px; }
  .stat-label small { display: none; }
  .stat-num { font-size: 32px; }
  .role-grid, .ib-grid, .edu-grid, .gallery-grid, .ib-feature { grid-template-columns: 1fr; gap: 18px; }
  .ib-feature { padding: 24px; }
  .ib-feature-media img { height: 220px; }
  .timeline::before { left: 7px; }
  .timeline-item { grid-template-columns: 1fr; gap: 12px; padding-left: 30px; padding-bottom: 24px; }
  .timeline-meta { text-align: left; }
  .timeline-meta::after { left: -27px; right: auto; top: 4px; }
  .timeline-body { padding: 20px; }
  .gallery-item img { height: 220px; }
}

/* ===== 领导经验 ===== */
.role-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.role-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 34px 30px; box-shadow: var(--shadow-sm); }
.role-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.role-date { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .5px; margin-bottom: 8px; }
.role-card h3 { font-family: var(--font-serif); font-size: 22px; margin: 0 0 4px; line-height: 1.4; }
.role-org { color: var(--muted); font-size: 13px; margin: 0; }
.role-badge { flex-shrink: 0; font-size: 11px; font-weight: 700; color: var(--gold); background: #faf3e8; border-radius: 100px; padding: 5px 12px; }
.role-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 12px; }
.role-list li { position: relative; padding-left: 20px; font-size: 14px; color: var(--ink-soft); line-height: 1.65; }
.role-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.role-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.role-tags span { font-size: 12px; color: var(--accent-deep); background: var(--accent-soft); border-radius: 100px; padding: 5px 12px; }

/* ===== IB 成就 ===== */
.ib-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ib-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column; }
.ib-card-highlight { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.ib-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 18px; margin-bottom: 18px; }
.ib-card-highlight .ib-icon { background: rgba(255,255,255,.16); color: #fff; }
.ib-kicker { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--gold); margin-bottom: 8px; }
.ib-card h3 { font-family: var(--font-serif); font-size: 20px; margin: 0 0 12px; line-height: 1.4; }
.ib-card p { font-size: 14px; line-height: 1.7; margin: 0 0 20px; flex: 1; }
.ib-card:not(.ib-card-highlight) p { color: var(--ink-soft); }
.ib-card-highlight p { color: rgba(255,255,255,.85); }
.ib-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; padding-top: 16px; border-top: 1px solid var(--line); }
.ib-card:not(.ib-card-highlight) .ib-foot { color: var(--accent); }
.ib-card-highlight .ib-foot { border-top-color: rgba(255,255,255,.2); color: #fff; }
.ib-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px; margin-top: 24px; }
.ib-feature h3 { font-family: var(--font-serif); font-size: 26px; margin: 0 0 14px; }
.ib-feature p:not(.eyebrow) { color: var(--ink-soft); font-size: 14px; margin: 0 0 18px; }
.ib-feature-media { border-radius: 14px; overflow: hidden; }
.ib-feature-media img { width: 100%; height: 300px; object-fit: cover; }
.text-link { color: var(--accent); font-weight: 600; font-size: 14px; }
.text-link:hover { text-decoration: underline; }
.ib-note { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; padding: 22px 28px; background: var(--accent-soft); border-radius: var(--radius-sm); }
.ib-note-label { flex-shrink: 0; font-size: 12px; font-weight: 700; color: var(--accent-deep); background: #fff; border-radius: 100px; padding: 6px 14px; }
.ib-note p { flex: 1; min-width: 240px; margin: 0; font-size: 14px; color: var(--ink-soft); }

/* ===== 职业履历时间线 ===== */
.timeline { position: relative; padding-left: 0; }
.timeline::before { content: ""; position: absolute; left: 150px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline-item { position: relative; display: grid; grid-template-columns: 150px 1fr; gap: 40px; padding-bottom: 34px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-meta { position: relative; text-align: right; padding-top: 2px; }
.timeline-date { font-size: 13px; font-weight: 700; color: var(--accent); }
.timeline-meta::after { content: ""; position: absolute; right: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); }
.timeline-current .timeline-meta::after { background: var(--gold); border-color: var(--gold); }
.timeline-current .timeline-date { color: var(--gold); }
.timeline-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 24px 28px; }
.timeline-current .timeline-body { border-color: var(--gold); }
.timeline-body h3 { font-family: var(--font-serif); font-size: 19px; margin: 0 0 4px; }
.timeline-org { color: var(--accent); font-size: 13px; font-weight: 600; margin: 0 0 12px; }
.timeline-body p:last-child { color: var(--ink-soft); font-size: 14px; margin: 0; line-height: 1.7; }

/* ===== 教育与资质 ===== */
.edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 44px; }
.edu-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.edu-year { display: inline-block; font-size: 12px; font-weight: 700; color: var(--gold); letter-spacing: .5px; margin-bottom: 12px; }
.edu-card h3 { font-family: var(--font-serif); font-size: 19px; margin: 0 0 8px; }
.edu-org { color: var(--accent); font-size: 13px; font-weight: 600; margin: 0 0 8px; }
.edu-card p:last-child { color: var(--ink-soft); font-size: 13px; margin: 0; }
.credentials .eyebrow { margin-bottom: 18px; }
.cred-list { border-top: 1px solid var(--line); }
.cred-item { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); }
.cred-note { font-size: 12px; color: var(--muted); flex-shrink: 0; }

/* ===== 影像记录 ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.gallery-item { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.gallery-item img { width: 100%; height: 300px; object-fit: cover; display: block; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item figcaption { padding: 14px 20px; font-size: 13px; color: var(--ink-soft); font-weight: 500; }

/* ===== 入场动画 ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
