/* ============================================
   StudyUPI · Master Stylesheet
   印尼教育大学硕博招生服务平台
   配色:UPI 红 + 黑 + 米白
   调性:编辑型庄重感
   ============================================ */

:root {
  /* Primary colors */
  --upi-red:        #C8102E;
  --upi-red-dark:   #A00C24;
  --upi-red-soft:   #FDEBEE;

  /* Neutrals */
  --black:          #1A1A1A;
  --ink:            #2D2D2D;
  --gray-900:       #1A1A1A;
  --gray-700:       #4A4A48;
  --gray-500:       #87867F;
  --gray-300:       #D6D3CC;
  --gray-100:       #F0EDE6;
  --gray-50:        #F7F4F1;
  --paper:          #FAF8F5;
  --white:          #FFFFFF;

  /* Semantic */
  --bg-primary:     var(--paper);
  --bg-elevated:    var(--white);
  --bg-muted:       var(--gray-50);
  --text-primary:   var(--gray-900);
  --text-body:      var(--gray-700);
  --text-muted:     var(--gray-500);
  --border:         var(--gray-300);
  --border-soft:    var(--gray-100);

  /* Type */
  --font-serif:     'Noto Serif SC', 'Source Han Serif SC', Georgia, serif;
  --font-sans:      'Noto Sans SC', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display:   'Playfair Display', 'Noto Serif SC', serif;
  --font-en:        'Inter', sans-serif;

  /* Sizes */
  --container:      1200px;
  --container-narrow: 880px;
  --radius:         2px;
  --radius-lg:      4px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-body);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* Container */
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 32px; }

/* Typography */
h1, h2, h3, h4, h5, h6 { color: var(--text-primary); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
h1 { font-family: var(--font-serif); font-weight: 700; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-family: var(--font-serif); font-weight: 700; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.4rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0; }
strong { font-weight: 600; color: var(--text-primary); }

/* ===== TOP BAR ===== */
.topbar {
  background: var(--black);
  color: var(--white);
  font-size: 13px;
  padding: 9px 0;
  border-bottom: 1px solid var(--gray-900);
}
.topbar-inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.topbar-tag {
  background: var(--upi-red);
  color: var(--white);
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-en);
}
.topbar-text { opacity: 0.88; font-size: 13px; }
.topbar-text strong { color: var(--white); }

/* ===== HEADER ===== */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.92);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 32px; }
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand-mark {
  width: 44px;
  height: 44px;
  background: var(--upi-red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-cn { font-family: var(--font-serif); font-weight: 700; font-size: 16px; color: var(--text-primary); }
.brand-en { font-family: var(--font-en); font-size: 11px; color: var(--text-muted); letter-spacing: 0.05em; margin-top: 2px; }
.nav { display: flex; gap: 32px; }
.nav a {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
  position: relative;
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--upi-red); }
.nav a:hover::after { width: 100%; }
.nav a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--upi-red);
  transition: width 0.2s ease;
}
.header-cta { display: flex; gap: 12px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--upi-red); color: var(--white); }
.btn-primary:hover { background: var(--upi-red-dark); transform: translateY(-1px); }
.btn-secondary { background: var(--white); color: var(--text-primary); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--text-primary); }
.btn-ghost { background: transparent; color: var(--text-primary); }
.btn-ghost:hover { background: var(--gray-50); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ===== HERO ===== */
.hero {
  position: relative;
  background: var(--paper);
  padding: 70px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background: var(--upi-red);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: var(--black);
  clip-path: polygon(35% 0, 100% 0, 100% 100%, 15% 100%);
  z-index: 0;
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.hero-content { max-width: 600px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  font-family: var(--font-en);
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}
.eyebrow-dot { width: 6px; height: 6px; background: var(--upi-red); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-title { margin-bottom: 24px; }
.hero-title .accent { color: var(--upi-red); font-style: italic; }
.hero-sub {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 32px;
}
.hero-sub strong { color: var(--text-primary); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
  padding: 24px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.stat-item .stat-num {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--upi-red);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-item .stat-num small { font-size: 14px; color: var(--text-body); margin-left: 2px; }
.stat-item .stat-label { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

.hero-cta { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.hero-meta { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-meta .dot { color: var(--gray-300); }

/* HERO RIGHT CARD */
.hero-card {
  position: relative;
  z-index: 2;
  background: var(--white);
  padding: 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  border-radius: var(--radius);
}
.hero-card-tag {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  padding: 4px 12px;
  font-size: 11px;
  letter-spacing: 0.1em;
  font-family: var(--font-en);
  font-weight: 600;
  margin-bottom: 16px;
}
.hero-card-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}
.hero-card-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-soft);
}
.hero-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border-soft);
  font-size: 14px;
}
.hero-card-row:last-of-type { border-bottom: 0; }
.hero-card-row .key { color: var(--text-muted); }
.hero-card-row .val { color: var(--text-primary); font-weight: 500; }
.hero-card-row .val.highlight { color: var(--upi-red); font-weight: 600; }
.hero-card-cta { margin-top: 24px; }

/* ===== SECTIONS ===== */
section { padding: 80px 0; position: relative; }
.section-eyebrow {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--upi-red);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.section-title {
  margin-bottom: 16px;
  max-width: 680px;
}
.section-note {
  color: var(--text-muted);
  margin-bottom: 56px;
  max-width: 620px;
  font-size: 15px;
}
.section-bg-muted { background: var(--gray-50); }
.section-bg-dark { background: var(--black); color: var(--gray-300); }
.section-bg-dark h2 { color: var(--white); }
.section-bg-dark .section-eyebrow { color: var(--upi-red); }
.section-bg-dark .section-note { color: rgba(255, 255, 255, 0.6); }

/* ===== QUICK FACTS ===== */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.fact {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.fact:hover { border-color: var(--upi-red); transform: translateY(-2px); }
.fact-key {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.fact-val {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 8px;
}
.fact-sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== ADVANTAGES (优势卖点 6 宫格) ===== */
.advantages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.advantage {
  padding: 36px 32px;
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: background 0.2s ease;
}
.advantage:hover { background: var(--gray-50); }
.advantage-num {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--upi-red);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}
.advantage-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.4;
}
.advantage-body { font-size: 14px; color: var(--text-body); line-height: 1.75; }

/* ===== PROGRAMS (硕博专业 2 列) ===== */
.programs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.program-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}
.program-card:hover { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08); }
.program-card.featured { border-color: var(--upi-red); }
.program-card.featured::before {
  content: '重点推荐';
  position: absolute;
  top: 0;
  right: 0;
  background: var(--upi-red);
  color: var(--white);
  padding: 6px 16px;
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.program-tag {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 12px;
}
.program-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 8px;
}
.program-en {
  font-family: var(--font-en);
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-soft);
}
.program-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  margin-bottom: 28px;
}
.program-grid .pg-item .pg-key {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-family: var(--font-en);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.program-grid .pg-item .pg-val {
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 500;
}
.program-majors {
  background: var(--gray-50);
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.program-majors .pm-title {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 500;
}
.program-majors .pm-list {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-body);
}
.program-cta { display: flex; gap: 12px; }

/* ===== COST TABLE (全部成本估算) ===== */
.cost-table {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.cost-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.7fr;
  gap: 24px;
  padding: 20px 32px;
  border-bottom: 1px solid var(--border-soft);
  align-items: center;
}
.cost-row:last-child { border-bottom: 0; }
.cost-row.head {
  background: var(--gray-50);
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}
.cost-row.total {
  background: var(--upi-red-soft);
  font-weight: 600;
}
.cost-row .item { font-weight: 500; color: var(--text-primary); }
.cost-row .amount { font-family: var(--font-serif); font-size: 18px; font-weight: 600; color: var(--text-primary); }
.cost-row.total .amount { color: var(--upi-red); font-size: 22px; }
.cost-row .note { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.cost-disclaimer {
  margin-top: 24px;
  padding: 20px 24px;
  background: #FFF9E6;
  border-left: 3px solid #F4B91A;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
}

/* ===== TIMELINE (年度安排) ===== */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 38px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
  z-index: 0;
}
.tl-item { position: relative; padding: 0 16px; text-align: center; z-index: 1; }
.tl-marker {
  width: 16px;
  height: 16px;
  background: var(--upi-red);
  border-radius: 50%;
  margin: 30px auto 24px;
  position: relative;
  z-index: 2;
  border: 4px solid var(--paper);
}
.tl-month {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--upi-red);
  margin-bottom: 8px;
}
.tl-event {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.tl-loc { font-size: 13px; color: var(--text-muted); }

/* ===== COMPLIANCE (合规披露区块,重要) ===== */
.compliance {
  background: #FFF9E6;
  border-left: 4px solid #F4B91A;
  padding: 32px 40px;
  border-radius: var(--radius);
  margin-bottom: 56px;
}
.compliance-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.compliance-title::before {
  content: '!';
  width: 24px;
  height: 24px;
  background: #F4B91A;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}
.compliance ul { padding-left: 0; }
.compliance li {
  padding: 8px 0 8px 24px;
  position: relative;
  line-height: 1.7;
  font-size: 15px;
}
.compliance li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 17px;
  width: 8px;
  height: 8px;
  background: #F4B91A;
  border-radius: 50%;
}

/* ===== APPLY FORM ===== */
.apply-section { background: var(--black); color: var(--gray-300); }
.apply-section h2 { color: var(--white); }
.apply-section .section-eyebrow { color: var(--upi-red); }
.apply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.apply-info { padding-top: 40px; }
.apply-info h2 { margin-bottom: 24px; }
.apply-info p { color: rgba(255, 255, 255, 0.7); line-height: 1.85; font-size: 16px; margin-bottom: 32px; }
.apply-info .info-list { margin-bottom: 32px; }
.apply-info .info-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}
.apply-info .info-row .ir-key {
  font-family: var(--font-en);
  color: var(--upi-red);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 11px;
  min-width: 110px;
}
.apply-info .info-row .ir-val { color: var(--white); }

.apply-form {
  background: var(--white);
  color: var(--text-primary);
  padding: 40px;
  border-radius: var(--radius);
}
.apply-form h3 { color: var(--text-primary); margin-bottom: 8px; }
.apply-form-note { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-row.full { grid-template-columns: 1fr; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 13px; color: var(--text-body); font-weight: 500; }
.form-field label .req { color: var(--upi-red); margin-left: 2px; }
.form-field input,
.form-field select,
.form-field textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 14px;
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color 0.2s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--upi-red); outline: 0; box-shadow: 0 0 0 3px var(--upi-red-soft); }
.form-field textarea { resize: vertical; min-height: 80px; font-family: inherit; }
.form-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 20px 0;
}
.form-agree input { margin-top: 3px; flex-shrink: 0; }
.form-agree a { color: var(--upi-red); text-decoration: underline; }
.form-submit { width: 100%; padding: 16px; font-size: 16px; }
.form-msg { font-size: 14px; margin-top: 12px; padding: 12px; border-radius: var(--radius); display: none; }
.form-msg.success { display: block; background: #E8F5E9; color: #2E7D32; }
.form-msg.error { display: block; background: var(--upi-red-soft); color: var(--upi-red-dark); }

/* ===== FOOTER ===== */
.footer { background: var(--black); color: rgba(255, 255, 255, 0.7); padding: 60px 0 32px; font-size: 14px; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand .brand { color: var(--white); }
.footer-brand .brand-cn { color: var(--white); }
.footer-disclosure { font-size: 12px; color: rgba(255, 255, 255, 0.5); line-height: 1.7; max-width: 480px; }
.footer-col h5 {
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-en);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col a { display: block; padding: 4px 0; color: rgba(255, 255, 255, 0.7); transition: color 0.2s ease; font-size: 13px; }
.footer-col a:hover { color: var(--upi-red); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom a { color: rgba(255, 255, 255, 0.4); }
.footer-bottom a:hover { color: var(--upi-red); }

/* ===== UTILITIES ===== */
.text-red { color: var(--upi-red); }
.text-muted { color: var(--text-muted); }
.italic { font-style: italic; }
.divider { height: 1px; background: var(--border-soft); margin: 40px 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero::before, .hero::after { width: 100%; height: 60%; bottom: 0; top: auto; clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%); }
  .hero-card { max-width: 480px; }
  .facts, .advantages { grid-template-columns: repeat(2, 1fr); }
  .programs { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .timeline::before { display: none; }
  .apply-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .hero { padding: 50px 0 60px; }
  section { padding: 60px 0; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .facts, .advantages { grid-template-columns: 1fr; }
  .cost-row { grid-template-columns: 1fr; padding: 16px 20px; gap: 8px; }
  .cost-row.head { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .header-cta .btn-secondary { display: none; }
  .topbar-text { font-size: 12px; }
}

/* ============================================
   SUBPAGE COMPONENTS · 二级页扩展
   ============================================ */

/* SUBPAGE HERO · 子页起头 (比首页 hero 更收敛) */
.subhero {
  background: var(--gray-900);
  color: var(--white);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.subhero::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 280px; height: 100%;
  background: var(--upi-red);
  clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.85;
}
.subhero .container { position: relative; z-index: 2; }
.subhero-eyebrow {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 3px;
  font-weight: 600;
  color: var(--upi-red);
  margin-bottom: 18px;
  text-transform: uppercase;
}
.subhero-title {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  max-width: 800px;
  letter-spacing: -0.5px;
}
.subhero-title .accent { color: var(--upi-red); }
.subhero-sub {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,0.78);
  max-width: 680px;
  margin-top: 20px;
}

/* BREADCRUMB · 面包屑 */
.crumbs {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 22px;
  text-transform: uppercase;
}
.crumbs a { color: rgba(255,255,255,0.7); text-decoration: none; }
.crumbs a:hover { color: var(--upi-red); }
.crumbs .sep { margin: 0 10px; opacity: 0.4; }

/* PAGE LAYOUT · 双栏布局(TOC + 内容) */
.page-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  padding: 72px 0 96px;
  align-items: start;
}
.page-content { min-width: 0; }

/* TOC · 章节锚链接 */
.toc {
  position: sticky;
  top: 24px;
  font-size: 13px;
  padding-right: 16px;
  border-left: 1px solid var(--border);
  padding-left: 20px;
}
.toc-title {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.toc ul { list-style: none; padding: 0; }
.toc li { margin-bottom: 10px; line-height: 1.5; }
.toc a {
  color: var(--text-body);
  text-decoration: none;
  display: block;
  padding: 2px 0;
  border-left: 2px solid transparent;
  padding-left: 12px;
  margin-left: -22px;
  transition: all 0.15s;
}
.toc a:hover { color: var(--upi-red); border-left-color: var(--upi-red); }
.toc a.active { color: var(--upi-red); border-left-color: var(--upi-red); font-weight: 600; }

/* PROSE · 长文排版(适用于详情页正文) */
.prose { max-width: 760px; font-size: 16px; line-height: 1.85; color: var(--text-body); }
.prose > section { margin-bottom: 56px; scroll-margin-top: 24px; }
.prose h2 {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-top: 8px;
  position: relative;
  letter-spacing: -0.3px;
}
.prose h2::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 32px; height: 3px;
  background: var(--upi-red);
}
.prose .h2-en {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: block;
}
.prose h3 {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 36px;
  margin-bottom: 14px;
}
.prose p { margin-bottom: 16px; }
.prose strong { color: var(--text-primary); font-weight: 600; }
.prose ul, .prose ol { margin: 12px 0 20px; padding-left: 24px; }
.prose ul li, .prose ol li { margin-bottom: 10px; }
.prose ul li::marker { color: var(--upi-red); }
.prose hr { border: 0; border-top: 1px solid var(--border-soft); margin: 40px 0; }
.prose a { color: var(--upi-red); text-decoration: none; border-bottom: 1px solid var(--upi-red-soft); }
.prose a:hover { border-bottom-color: var(--upi-red); }

/* CALLOUT · 强调侧栏块 */
.callout {
  padding: 24px 28px;
  border-left: 3px solid var(--upi-red);
  background: var(--upi-red-soft);
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--gray-900);
}
.callout-title {
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--upi-red-dark);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.callout.warn { background: #FEF7E0; border-left-color: #C18900; }
.callout.warn .callout-title { color: #8B5E00; }
.callout.neutral { background: var(--gray-50); border-left-color: var(--gray-700); }
.callout.neutral .callout-title { color: var(--gray-700); }

/* DETAIL CARD · 详情用方块卡 */
.detail-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 28px 32px;
  margin: 20px 0;
}
.detail-card h4 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

/* MAJORS TABLE · 专业列表大表 */
.majors-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  background: var(--white);
  border: 1px solid var(--border);
}
.majors-table thead {
  background: var(--gray-900);
  color: var(--white);
}
.majors-table th {
  text-align: left;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: var(--font-en);
}
.majors-table td {
  padding: 14px 18px;
  border-top: 1px solid var(--border-soft);
  vertical-align: top;
  color: var(--text-body);
  line-height: 1.65;
}
.majors-table tbody tr:nth-child(even) { background: var(--gray-50); }
.majors-table .mt-id {
  font-family: var(--font-en);
  font-weight: 600;
  color: var(--text-muted);
  width: 48px;
}
.majors-table .mt-cn { font-weight: 600; color: var(--text-primary); width: 220px; }
.majors-table .mt-en { font-family: var(--font-en); color: var(--text-muted); font-size: 13px; }

/* FAQ ACCORDION · 折叠 FAQ */
.faq-list { margin: 24px 0; }
.faq-item {
  border-top: 1px solid var(--border);
  padding: 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item summary {
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  line-height: 1.5;
  position: relative;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "+";
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 22px;
  color: var(--upi-red);
  flex-shrink: 0;
  width: 20px;
  text-align: center;
  transition: transform 0.2s;
  line-height: 1.2;
}
.faq-item[open] summary::before { content: "−"; }
.faq-item .faq-body {
  padding: 0 0 24px 36px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-body);
}
.faq-item .faq-body p { margin-bottom: 12px; }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* COMPLIANCE STEPS · 认证流程步骤 */
.steps {
  display: grid;
  gap: 0;
  margin: 28px 0;
  counter-reset: step;
}
.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-soft);
  align-items: start;
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--font-en);
  font-size: 36px;
  font-weight: 700;
  color: var(--upi-red);
  line-height: 1;
}
.step-body h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.step-body p { color: var(--text-body); line-height: 1.7; font-size: 15px; }

/* MOBILE · 二级页响应式 */
@media (max-width: 960px) {
  .page-layout { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 72px; }
  .toc { display: none; }
  .subhero-title { font-size: 32px; }
  .prose h2 { font-size: 24px; }
  .majors-table { font-size: 13px; }
  .majors-table th, .majors-table td { padding: 12px 14px; }
  .majors-table .mt-cn { width: auto; }
  .majors-table .mt-en { display: none; }
}
@media (max-width: 640px) {
  .subhero { padding: 48px 0 40px; }
  .subhero-title { font-size: 26px; }
  .subhero-sub { font-size: 14px; }
  .step { grid-template-columns: 56px 1fr; gap: 16px; }
  .step-num { font-size: 28px; }
  /* 红斜切角在窄屏只做顶部装饰条,避免压住正文 */
  .subhero::before { width: 120px; height: 60%; opacity: 0.55; }
  .subhero-sub { max-width: 100%; padding-right: 8px; }
  .subhero-meta { font-size: 12px; }
}

/* ============================================
   MOBILE NAV · 汉堡菜单抽屉
   ============================================ */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--gray-300, #d4d4d4);
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 0;
  margin-left: 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 4px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--gray-900, #1a1a1a);
  transition: transform 0.2s;
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .header-inner { flex-wrap: wrap; }
  .nav {
    display: none;
    order: 99;
    width: 100%;
    flex-direction: column;
    gap: 0;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-200, #e5e5e5);
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--gray-100, #f1f1f1);
    font-size: 15px;
  }
  .nav a:last-child { border-bottom: none; }
}

/* apply 页的 4 列 fact 卡:桌面 4 列、平板 2 列、手机 1 列 */
.facts-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .facts-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .facts-4 { grid-template-columns: 1fr; }
}

