/* ================================
   At0086Study | 在华留学网
   现代极简 · 红色主题 · 欧美风格
   ================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Noto+Sans+SC:wght@400;500;700;900&display=swap');

:root {
  --red: #dc2626;
  --red-dark: #b91c1c;
  --red-darker: #991b1b;
  --red-light: #fef2f2;
  --red-soft: #fee2e2;
  --gold: #d97706;
  --gold-light: #fffbeb;
  --text: #18181b;
  --text-secondary: #52525b;
  --text-tertiary: #a1a1aa;
  --white: #ffffff;
  --bg: #fafafa;
  --bg-card: #ffffff;
  --bg-subtle: #f4f4f5;
  --border: #e4e4e7;
  --border-light: #f4f4f5;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.06), 0 4px 6px -4px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.05);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max-w: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== Typography ===== */
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

/* ===== Header & Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border-light);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 32px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
}
.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--red);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  border-radius: 10px;
  letter-spacing: -0.5px;
}
.logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-brand {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}
.logo-brand .code {
  color: var(--red);
  font-weight: 900;
}
.logo-chinese {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}

/* Main Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  letter-spacing: -0.01em;
}
.main-nav a:hover {
  color: var(--red);
  background: var(--red-light);
}
.main-nav a.active {
  color: var(--red);
  background: var(--red-light);
  font-weight: 600;
}

/* Header Buttons */
.header-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.btn-ghost-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-secondary);
  transition: all 0.2s ease;
  letter-spacing: -0.01em;
}
.btn-ghost-sm:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-light);
}
.btn-primary-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  background: var(--red);
  color: #fff;
  transition: all 0.2s ease;
  letter-spacing: -0.01em;
}
.btn-primary-sm:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220,38,38,0.3);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 88px 0 0;
  overflow: hidden;
  background: linear-gradient(180deg, #fefefe 0%, #fdf8f8 40%, var(--white) 100%);
}
.hero::before {
  content: '';
  position: absolute;
  top: -25%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(220,38,38,0.06), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -8%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(220,38,38,0.04), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
  min-height: 520px;
}
.hero-left {
  padding-bottom: 60px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: var(--red-light);
  border: 1px solid var(--red-soft);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.hero-badge .dot {
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}
.hero h1 {
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  font-size: clamp(38px, 5.5vw, 58px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 16px;
}
.hero h1 .mark {
  color: var(--red);
  position: relative;
  display: inline-block;
}
.hero-desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 540px;
}

/* Hero CTA Cards — large & prominent */
.hero-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 48px;
  max-width: 600px;
}
.hero-cta-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  border: none;
  text-align: left;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: -0.01em;
  /* shine effect line */
  --shine: rgba(255,255,255,0.0);
}
.hero-cta-card:hover {
  transform: translateY(-4px);
}
.hero-cta-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  flex-shrink: 0;
}
.hero-cta-text {
  line-height: 1.3;
}
.hero-cta-text .cta-title {
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 5px;
}
.hero-cta-text .cta-desc {
  font-size: 15px;
  opacity: 0.75;
  font-weight: 500;
}
.hero-cta-arrow {
  align-self: flex-end;
  margin-top: -8px;
  opacity: 0.6;
  transition: all 0.3s ease;
}
.hero-cta-card:hover .hero-cta-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* Free Consult Card (filled red) */
.hero-cta-card.cta-free {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 30px rgba(220,38,38,0.28);
}
.hero-cta-card.cta-free .hero-cta-icon-wrap {
  background: rgba(255,255,255,0.22);
  color: #fff;
}
.hero-cta-card.cta-free:hover {
  box-shadow: 0 14px 40px rgba(220,38,38,0.40);
  background: #c92525;
}
.hero-cta-card.cta-free .cta-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: #fff;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.hero-cta-card.cta-free .cta-badge::before {
  content: '';
  position: absolute;
  top: -3px;
  right: 14px;
  width: 6px;
  height: 6px;
  background: #fff;
  transform: rotate(45deg);
}

/* Scholarship Card (outlined style with soft red bg) */
.hero-cta-card.cta-paid {
  background: #fff;
  color: var(--red);
  border: 2px solid var(--red-soft);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.hero-cta-card.cta-paid .hero-cta-icon-wrap {
  background: var(--red-soft);
  color: var(--red);
}
.hero-cta-card.cta-paid:hover {
  border-color: var(--red);
  box-shadow: 0 12px 32px rgba(220,38,38,0.12);
  background: var(--red-light);
}
.hero-cta-card.cta-paid .cta-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--gold);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(217,119,6,0.3);
}
.hero-cta-card.cta-paid .cta-badge::before {
  content: '';
  position: absolute;
  top: -3px;
  right: 14px;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
  max-width: 600px;
}
.hero-stat .num {
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--red);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat .label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* Hero right panel — decorative illustration */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 420px;
}
.hero-visual .hv-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-visual .hv-ring.outer {
  width: 360px;
  height: 360px;
  border: 2px dashed rgba(220,38,38,0.12);
  animation: ring-spin 30s linear infinite;
}
.hero-visual .hv-ring.mid {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(220,38,38,0.04), transparent 70%);
  animation: ring-spin 20s linear infinite reverse;
}
.hero-visual .hv-ring.inner {
  width: 170px;
  height: 170px;
  background: rgba(220,38,38,0.07);
}
.hero-visual .hv-center {
  position: relative;
  z-index: 2;
  width: 100px;
  height: 100px;
  background: var(--red);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 12px 40px rgba(220,38,38,0.35);
}
.hero-visual .hv-float {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  animation: float-card 4s ease-in-out infinite;
}
.hero-visual .hv-float.tl {
  top: 20px;
  left: 10px;
  animation-delay: 0s;
}
.hero-visual .hv-float.tr {
  top: 60px;
  right: 0px;
  animation-delay: 0.8s;
}
.hero-visual .hv-float.br {
  bottom: 50px;
  right: 10px;
  animation-delay: 1.6s;
}
.hero-visual .hv-float.bl {
  bottom: 30px;
  left: 20px;
  animation-delay: 2.4s;
}
.hero-visual .hv-float .hvf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hero-visual .hv-float .hvf-dot.green { background: #22c55e; }
.hero-visual .hv-float .hvf-dot.blue { background: #3b82f6; }
.hero-visual .hv-float .hvf-dot.amber { background: #f59e0b; }
.hero-visual .hv-float .hvf-dot.red { background: var(--red); }

@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}
.section-alt {
  background: var(--bg);
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}
.section-header h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.section-header .sub {
  display: block;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-tertiary);
  margin-top: 6px;
  letter-spacing: -0.01em;
}
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  transition: gap 0.2s ease;
}
.section-link:hover { gap: 10px; }

/* ===== Discipline Grid ===== */
.discipline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.discipline-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.discipline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.discipline-card .dc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  color: var(--card-clr, var(--red));
  background: color-mix(in srgb, var(--card-clr, var(--red)) 8%, transparent);
  margin-bottom: 18px;
  transition: transform 0.3s ease;
}
.discipline-card:hover .dc-icon {
  transform: scale(1.05);
}
.discipline-card .dc-name {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.015em;
}
.discipline-card .dc-name-en {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.discipline-card .dc-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.discipline-card .dc-arrow {
  position: absolute;
  bottom: 24px;
  right: 24px;
  color: var(--card-clr, var(--red));
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.discipline-card:hover .dc-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ===== Ranking Preview ===== */
.ranking-preview {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  cursor: pointer;
}
.ranking-preview:hover {
  box-shadow: var(--shadow-md);
}
.ranking-preview-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
}
.ranking-preview-header .rp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gold-light);
  color: var(--gold);
  flex-shrink: 0;
}
.ranking-preview-header .rp-info { flex: 1; }
.ranking-preview-header h3 {
  font-size: 15px;
  font-weight: 700;
}
.ranking-preview-header .rp-sub {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 2px;
}
.ranking-preview-list { padding: 4px 0; }
.ranking-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  transition: background 0.15s ease;
}
.ranking-item:hover { background: var(--bg); }
.rank-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 14px;
  font-weight: 800;
  border-radius: 8px;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
}
.rank-badge.gold { background: #fef3c7; color: #d97706; }
.rank-badge.silver { background: #f1f5f9; color: #64748b; }
.rank-badge.bronze { background: #fef3c7; color: #b45309; }
.rank-badge.normal { background: var(--bg); color: var(--text-tertiary); }
.ranking-item .ri-school-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  flex-shrink: 0;
}
.ranking-item .ri-info { flex: 1; min-width: 0; }
.ranking-item .ri-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.ranking-item .ri-meta {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 1px;
}
.ranking-item .ri-score {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
  font-size: 13px;
  color: var(--text-tertiary);
}
.breadcrumb a { color: var(--text-secondary); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { color: var(--text-tertiary); }
.breadcrumb .current { color: var(--text); font-weight: 600; }

.page-title-bar {
  padding: 48px 0 40px;
}
.page-title-bar h1 {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.page-title-bar p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 650px;
}

/* ===== Discipline Page ===== */
.discipline-page-hero {
  padding: 56px 0 40px;
}
.discipline-page-hero .dph-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 18px;
  margin-bottom: 20px;
  color: var(--red);
  background: var(--red-light);
}
.discipline-page-hero h1 {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.discipline-page-hero .dph-en {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-left: 10px;
}
.discipline-page-hero p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 650px;
}

/* Filter Bar */
.filter-bar {
  position: sticky;
  top: 64px;
  z-index: 50;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  padding: 14px 0;
  margin-bottom: 28px;
}
.filter-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.filter-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
  letter-spacing: -0.01em;
}
.filter-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-chip {
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: -0.01em;
}
.filter-chip:hover { border-color: var(--red); color: var(--red); }
.filter-chip.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.filter-count {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-tertiary);
}
.filter-count strong {
  color: var(--text);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
}

/* Major Cards */
.major-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 64px;
}
.major-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.major-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.major-card .mc-school-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
}
.major-card .mc-content { flex: 1; min-width: 0; }
.major-card .mc-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.major-card .mc-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.degree-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 100px;
  letter-spacing: -0.01em;
}
.degree-badge.bachelor { background: #fef2f2; color: #dc2626; }
.degree-badge.master { background: #f5f3ff; color: #7c3aed; }
.degree-badge.doctorate { background: #fce7f3; color: #db2777; }
.degree-badge.associate { background: #ecfdf5; color: #059669; }
.degree-badge.other { background: #f4f4f5; color: #52525b; }
.major-card .mc-school {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.major-card .mc-school strong { color: var(--text); font-weight: 600; }
.major-card .mc-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-tertiary);
}
.major-card .mc-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.major-card .mc-meta .tuition { color: var(--red); font-weight: 700; }

/* Major card: badges group */
.mc-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.mc-name-en { font-size: 12px; color: var(--text-tertiary); font-weight: 400; }
.degree-badge.lang { background: #eff6ff; color: #1e40af; }

/* Recommendation badge */
.rec-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 100px;
  letter-spacing: -0.01em;
}
.rec-badge.key { background: #fef2f2; color: #dc2626; }

/* Cooperation level badges */
.coop-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.coop-strategic { background: #fef2f2; color: #dc2626; }
.coop-key { background: #fef3c7; color: #b45309; }
.coop-enhanced { background: #f0fdf4; color: #15803d; }
.coop-all { background: #eff6ff; color: #1d4ed8; }
.coop-normal { background: #f4f4f5; color: #52525b; }
.coop-simple { background: #fafafa; color: #a1a1aa; }
.coop-none { background: #fafafa; color: #d4d4d8; }
.coop-pending { background: #fff7ed; color: #c2410c; }

/* Major card: scholarship hint */
.mc-scholarship {
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--gold-light);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--gold);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.mc-scholarship svg { flex-shrink: 0; margin-top: 1px; }

/* Major card: scholarship badge (generic) */
.mc-sch-badge {
  color: var(--red);
  font-weight: 600;
}

/* Major card: school advantage line */
.mc-advantage {
  margin-top: 10px;
  padding: 8px 12px;
  background: #fef2f2;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: #b91c1c;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.mc-advantage svg { flex-shrink: 0; margin-top: 1px; color: var(--gold); }

/* Major card: score area */
.mc-score-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-left: 1px solid var(--border-light);
  flex-shrink: 0;
  min-width: 72px;
}
.mc-score {
  font-size: 22px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.02em;
  line-height: 1;
}
.mc-score-label {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 4px;
  letter-spacing: 0.02em;
}
.mc-score-label.pop-label { color: var(--gold); font-weight: 600; }

/* Discipline card: stats row */
.dc-stats {
  display: flex;
  gap: 14px;
  margin-top: auto;
  font-size: 12px;
  color: var(--text-tertiary);
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

/* School detail page: tags in header */
.dsh-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: var(--bg-subtle);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.dsh-tag.rank { background: var(--red-light); color: var(--red); }
.dsh-tag.pop-tag { background: var(--gold-light); color: var(--gold); border-color: #fde68a; }

/* School detail page: logo badge */
.dsh-logo {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  background: var(--red);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 900;
  flex-shrink: 0;
}

/* Scholarship content block */
.scholarship-content {
  background: var(--gold-light);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  line-height: 1.8;
  font-size: 14px;
  color: var(--text);
  white-space: pre-line;
}

.major-card .mc-arrow {
  display: flex;
  align-items: center;
  color: var(--text-tertiary);
  flex-shrink: 0;
  transition: all 0.25s ease;
}
.major-card:hover .mc-arrow {
  color: var(--red);
  transform: translateX(4px);
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-tertiary);
}

/* ===== Major Detail Page ===== */
.detail-page { padding-bottom: 64px; }
.detail-school-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 36px;
}
.detail-school-header .dsh-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  flex-shrink: 0;
}
.detail-school-header .dsh-info h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.detail-school-header .dsh-en {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}
.detail-school-header .dsh-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.dsh-tag {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 100px;
  background: var(--bg);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.dsh-tag.rank { background: var(--gold-light); color: var(--gold); border-color: #fde68a; }
.dsh-tag.school-type-tag { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.dsh-tag.intl-tag { background: #fffbeb; color: #b45309; border-color: #fde68a; }

/* 学校优势文字 */
.school-advantage {
  margin-top: 14px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #fef3f2, #fff8f6);
  border-left: 3px solid var(--red);
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 720px;
}
.school-advantage .sa-icon { color: var(--gold); flex-shrink: 0; margin-top: 1px; }
.school-advantage .sa-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
}

/* 校友信息区 */
.school-alumni-section {
  margin-bottom: 24px;
  padding: 20px 24px;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-light);
}
.school-alumni-section h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alumni-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.alumni-item {
  padding: 14px 16px;
  background: var(--bg);
  border-radius: 8px;
}
.alumni-item .ai-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.alumni-item .ai-value {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* 学校详情页精简版专业卡片 */
.school-major-card .mc-meta {
  flex-wrap: wrap;
  gap: 16px;
}
.school-major-card .mc-sch-badge {
  color: var(--red);
  font-weight: 600;
}
@media (max-width: 768px) {
  .alumni-grid { grid-template-columns: 1fr; }
}

.detail-major-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.detail-major-title h1 {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.detail-major-title .dmt-en {
  font-size: 15px;
  color: var(--text-tertiary);
  margin-bottom: 36px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 36px;
  align-items: start;
}
.detail-main { min-width: 0; }
.detail-sidebar {
  position: sticky;
  top: 84px;
}

/* Info Cards */
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}
.info-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}
.info-card h3 .ic-bar {
  width: 3px;
  height: 16px;
  background: var(--red);
  border-radius: 2px;
}

/* 学校详情页统一标题样式 */
.school-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.school-section-title .ic-bar {
  width: 4px;
  height: 22px;
  background: var(--red);
  border-radius: 2px;
  flex-shrink: 0;
}
.school-section-title .en-sub {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-tertiary);
}
.info-card h3.school-section-title {
  font-size: 20px;
  font-weight: 800;
}
.info-card h3.school-section-title .ic-bar {
  width: 4px;
  height: 22px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.info-item {
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}
.info-item .ii-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.info-item .ii-value {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.info-item .ii-value.tuition { color: var(--red); }
.info-item .ii-value.deadline { color: var(--gold); }

.info-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.curriculum-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.curriculum-tag {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  background: var(--red-light);
  color: var(--red-dark);
  border-radius: var(--radius-sm);
  letter-spacing: -0.01em;
}

.requirements-list { list-style: none; }
.requirements-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.requirements-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  background: #16a34a;
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z' fill='%23fff'/%3E%3C/svg%3E");
  background-size: 13px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Sidebar Action Card */
.action-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 16px;
}
.action-card .ac-tuition {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
}
.action-card .ac-tuition .ac-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.action-card .ac-tuition .ac-value {
  font-size: 32px;
  font-weight: 900;
  color: var(--red);
  letter-spacing: -0.02em;
  font-family: 'Inter', sans-serif;
}
.ac-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.ac-btn.apply {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 14px rgba(220,38,38,0.25);
}
.ac-btn.apply:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(220,38,38,0.35);
}
.ac-btn.consult {
  background: var(--bg);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.ac-btn.consult:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-light);
}

/* 学校详情页悬浮免费咨询按钮 */
.fab-consult {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--red), #c1121f);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.35);
  transition: all 0.25s ease;
}
.fab-consult:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(220, 38, 38, 0.45);
}
.fab-consult svg { margin-top: 2px; }

.school-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
}
.school-info-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}
.school-info-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-tertiary);
}

/* ===== Ranking Page ===== */
.ranking-page-hero { padding: 56px 0 40px; }
.ranking-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: var(--bg);
  border-radius: var(--radius);
  margin-bottom: 28px;
  overflow-x: auto;
  border: 1px solid var(--border-light);
}
.ranking-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}
.ranking-tab:hover { background: var(--bg-card); color: var(--text); }
.ranking-tab.active {
  background: var(--bg-card);
  color: var(--red);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}

.ranking-table {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 64px;
}
.ranking-table-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.2s ease;
}
.ranking-table-item:last-child { border-bottom: none; }
.ranking-table-item:hover { background: var(--bg); }
.ranking-table-item .rt-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 18px;
  font-weight: 900;
  border-radius: 12px;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
}
.ranking-table-item .rt-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}
.ranking-table-item .rt-info { flex: 1; min-width: 0; }
.ranking-table-item .rt-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}
.ranking-table-item .rt-meta {
  font-size: 13px;
  color: var(--text-tertiary);
}
.ranking-table-item .rt-name-en {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-tertiary);
  margin-left: 6px;
}
.ranking-table-item .rt-scholarship {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
  background: rgba(220, 38, 38, 0.08);
  padding: 1px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}
.ranking-table-item .rt-score { text-align: right; flex-shrink: 0; }
.ranking-table-item .rt-score .val {
  font-size: 22px;
  font-weight: 900;
  color: var(--red);
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.02em;
}
.ranking-table-item .rt-score .lbl {
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* rt-meta flex 布局 */
.ranking-table-item .rt-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 13px;
  color: var(--text-tertiary);
}
.ranking-table-item .rt-meta-item { white-space: nowrap; }
.ranking-table-item .rt-dot { color: var(--border); font-size: 10px; }
.ranking-table-item .rt-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 4px;
  white-space: nowrap;
}
.ranking-table-item .rt-tag.rt-type {
  color: var(--text-secondary, #555);
  background: rgba(0, 0, 0, 0.04);
}
.ranking-table-item .rt-tag.rt-intl {
  color: #b8860b;
  background: rgba(255, 193, 7, 0.1);
}
.ranking-table-item .rt-stars {
  color: #f0a020;
  letter-spacing: 1px;
}

/* ===== 排名页筛选栏 ===== */
.ranking-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md, 10px);
}
.rf-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary, #666);
  background: var(--bg, #f5f5f5);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.rf-chip:hover {
  border-color: var(--red);
  color: var(--red);
}
.rf-chip.active {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}
.rf-chip.active svg { color: #fff; }
.rf-arrow { font-size: 10px; opacity: 0.7; }
.rf-sort-dir { font-size: 12px; margin-left: 2px; }

.rf-dropdown { position: relative; display: inline-block; }
.rf-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  min-width: 160px;
  max-height: 300px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 100;
  padding: 6px 0;
}
.rf-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-secondary, #555);
  text-decoration: none;
  transition: all 0.15s ease;
}
.rf-menu a:hover {
  background: rgba(220, 38, 38, 0.06);
  color: var(--red);
}

.rf-count {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-tertiary);
  font-weight: 500;
}

.ranking-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-tertiary);
  font-size: 15px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg, 14px);
}

/* ===== Modal Overlays ===== */
.consult-overlay,
.form-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } }
.consult-overlay {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 24px;
}
.form-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* Consult Modal */
.consult-modal {
  width: 420px;
  max-width: 100%;
  height: 600px;
  max-height: 85vh;
  background: var(--white);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } }
.consult-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--red);
  color: #fff;
}
.consult-agent-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.consult-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #fff;
}
.consult-agent-name { font-size: 15px; font-weight: 700; }
.consult-agent-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  opacity: 0.85;
  margin-top: 1px;
}
.status-dot {
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 6px #4ade80;
}
.consult-close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.consult-close:hover { opacity: 1; }
.consult-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.consult-body::-webkit-scrollbar { width: 4px; }
.consult-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.chat-msg {
  display: flex;
  gap: 10px;
  max-width: 85%;
  animation: msgIn 0.3s ease;
}
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } }
.chat-msg.bot { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg .cm-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.chat-msg.bot .cm-avatar { background: var(--red); }
.chat-msg.user .cm-avatar { background: var(--text-secondary); }
.chat-msg .cm-bubble {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.6;
}
.chat-msg.bot .cm-bubble {
  background: var(--bg);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.chat-msg.user .cm-bubble {
  background: var(--red);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-typing {
  display: flex;
  gap: 4px;
  padding: 14px 16px;
}
.chat-typing span {
  width: 7px;
  height: 7px;
  background: var(--text-tertiary);
  border-radius: 50%;
  animation: typing 1.4s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

/* 聊天内推荐卡片 */
.chat-msg.bot .cm-bubble { max-width: 100%; }
.chat-rec-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-rec-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  display: flex;
  align-items: stretch;
  gap: 10px;
  transition: all 0.2s;
}
.chat-rec-card:hover {
  border-color: var(--red);
  box-shadow: 0 2px 10px rgba(220,38,38,0.12);
  transform: translateY(-1px);
}
.crc-rank {
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  background: var(--red-light);
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  align-self: flex-start;
}
.crc-body { flex: 1; min-width: 0; }
.crc-school { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.crc-major { font-size: 14px; font-weight: 700; color: var(--primary); margin-top: 2px; }
.crc-major-en { font-size: 11px; color: var(--text-tertiary); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crc-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.crc-tag { font-size: 11px; padding: 2px 6px; background: var(--bg); border-radius: 4px; color: var(--text-secondary); }
.crc-tag.tuition { color: var(--red); font-weight: 600; }
.crc-arrow { color: var(--text-tertiary); display: flex; align-items: center; }
.crc-arrow svg { fill: currentColor; }
.chat-cta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chat-cta-btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.chat-cta-btn.apply { background: var(--red); color: #fff; }
.chat-cta-btn.apply:hover { background: #c1121f; }
.chat-cta-btn.school { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.chat-cta-btn.school:hover { border-color: var(--red); color: var(--red); }
.chat-cta-btn.restart { background: transparent; color: var(--text-tertiary); border: 1px solid var(--border-light); }
.chat-cta-btn.restart:hover { color: var(--text); border-color: var(--border); }
.chat-cta-btn.assess { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
.chat-cta-btn.assess:hover { background: linear-gradient(135deg, #d97706, #b45309); }

.consult-quick {
  display: flex;
  gap: 8px;
  padding: 0 20px 12px;
  flex-wrap: wrap;
}
.quick-q {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.quick-q:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-light);
}
.consult-input-area {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
  background: var(--white);
}
.consult-input-area input {
  flex: 1;
  padding: 12px 16px;
  font-size: 14px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}
.consult-input-area input:focus { border-color: var(--red); }
.consult-send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.consult-send:hover {
  background: var(--red-dark);
  transform: scale(1.05);
}

/* Form Modal */
.form-modal {
  width: 520px;
  max-width: 100%;
  max-height: 85vh;
  background: var(--white);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.form-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid var(--border-light);
}
.form-modal-header h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.form-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text-tertiary);
  border-radius: 8px;
  transition: all 0.2s;
}
.form-close:hover { color: var(--text); background: var(--bg); }
.form-modal-body { padding: 28px; overflow-y: auto; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.form-group label .req { color: var(--red); }
.form-group label .en-label { font-size: 11px; font-weight: 400; color: var(--text-tertiary); margin-left: 4px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease;
  background: var(--white);
  color: var(--text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-summary {
  padding: 16px;
  background: var(--red-light);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  border: 1px solid var(--red-soft);
}
.form-summary .fs-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
}
.form-summary .fs-row:last-child { margin-bottom: 0; }
.form-summary .fs-label { color: var(--text-secondary); }
.form-summary .fs-value { font-weight: 700; color: var(--text); }
.form-submit-btn {
  width: 100%;
  padding: 15px;
  font-size: 15px;
  font-weight: 800;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 14px rgba(220,38,38,0.25);
}
.form-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(220,38,38,0.35);
}
.form-success {
  text-align: center;
  padding: 40px 20px;
}
.form-success .fs-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  background: #ecfdf5;
  color: #16a34a;
  border-radius: 50%;
  margin: 0 auto 24px;
}
.form-success h4 { font-size: 21px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.015em; }
.form-success p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ===== Loading ===== */
.page-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-light);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Footer ===== */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.footer-logo .logo-mark {
  width: 42px;
  height: 42px;
  font-size: 22px;
  font-weight: 900;
  background: var(--red);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-logo .fl-brand {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.01em;
}
.footer-logo .fl-brand .code { color: var(--red); font-weight: 900; }
.footer-col > p {
  font-size: 13px;
  line-height: 1.7;
  opacity: 0.65;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 10px;
  transition: color 0.2s;
  font-weight: 500;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  text-align: center;
}
.footer-bottom p {
  font-size: 12px;
  opacity: 0.45;
  font-family: 'Inter', sans-serif;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; min-height: auto; }
  .hero-visual { display: none; }
  .hero-left { padding-bottom: 48px; }
  .hero-cta-row { max-width: 100%; }
  .hero-stats { max-width: 100%; }
  .discipline-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .faq-quick-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: clamp(34px, 5vw, 52px); }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 20px; }
  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 6px;
  }
  .section { padding: 56px 0; }
  .section-header h2 { font-size: 26px; }
  .hero { padding: 56px 0 0; }
  .hero-left { padding-bottom: 40px; }
  .hero h1 { font-size: 32px; }
  .hero-desc { font-size: 15px; }
  .hero-cta-row { grid-template-columns: 1fr; gap: 12px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .hero-stat .num { font-size: 24px; }
  .hero-visual { display: none; }
  .discipline-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .discipline-card { padding: 24px 20px; }
  .info-grid { grid-template-columns: 1fr; }
  .major-card { padding: 18px; gap: 14px; }
  .major-card .mc-school-logo { width: 44px; height: 44px; font-size: 18px; }
  .major-card .mc-meta { gap: 10px; font-size: 12px; }
  .detail-school-header { flex-direction: column; text-align: center; }
  .consult-modal { width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
  .consult-overlay { padding: 0; }
  .form-modal { border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
  .form-overlay { align-items: flex-end; padding: 0; }
  .form-row { grid-template-columns: 1fr; }
  .ranking-table-item { padding: 16px 20px; gap: 14px; }
  .ranking-table-item .rt-rank { width: 36px; height: 36px; font-size: 14px; }
  .filter-row { gap: 10px; }
}
@media (max-width: 480px) {
  .discipline-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .hero-cta-row { grid-template-columns: 1fr; }
  .hero-cta-card { padding: 18px 20px; }
  .hero-cta-card .cta-title { font-size: 17px; }
  .page-title-bar h1,
  .discipline-page-hero h1 { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ================================
   新增页面通用样式 v=20260805b
   ================================ */

/* ===== Page Hero ===== */
.page-hero {
  background: linear-gradient(135deg, var(--red-light) 0%, #fff 100%);
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border-light);
}
.page-hero-content { max-width: 760px; }
.page-hero-content h1 { font-size: 36px; margin: 8px 0 12px; }
.page-hero-desc { font-size: 16px; color: var(--text-secondary); line-height: 1.7; }

/* ===== Form Section (Apply page) ===== */
.form-section {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  background: var(--bg-card);
}
.form-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}
.form-section-title svg { color: var(--red); }
.form-checkbox-row { margin-bottom: 24px; }
.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}
.checkbox-item input { margin-top: 3px; }
.radio-group { display: flex; gap: 20px; }
.radio-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
}

/* ===== Apply Layout ===== */
.apply-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}
.apply-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.apply-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.apply-info-card h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  margin-bottom: 16px;
}
.apply-info-card h4 svg { color: var(--red); }
.apply-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
}
.apply-steps li {
  display: flex;
  flex-direction: column;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  padding-left: 28px;
}
.apply-steps li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 0;
  top: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.apply-steps li:last-child { border-bottom: none; }
.apply-steps strong { font-size: 14px; }
.apply-steps span { font-size: 12px; color: var(--text-tertiary); }
.apply-materials {
  list-style: none;
  padding: 0;
  font-size: 13px;
  color: var(--text-secondary);
}
.apply-materials li {
  padding: 6px 0;
  padding-left: 18px;
  position: relative;
}
.apply-materials li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}
.apply-success-info {
  background: var(--bg-subtle);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
}
.apply-success-info .asi-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}
.apply-success-info .asi-row:last-child { border-bottom: none; }
.apply-success-info .asi-row span { color: var(--text-tertiary); }

/* ===== Consult Page ===== */
.consult-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.consult-option-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}
.consult-option-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.consult-option-card.featured {
  border-color: var(--gold);
  background: linear-gradient(180deg, var(--gold-light) 0%, #fff 40%);
}
.coc-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.coc-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}
.coc-badge.gold { background: var(--gold); }
.coc-badge.blue { background: #1a56db; }
.consult-option-card h3 { font-size: 20px; margin-bottom: 8px; }
.consult-option-card p { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.6; }
.coc-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  text-align: left;
}
.coc-features span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}
.coc-features svg { color: var(--red); }
.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.process-step {
  display: flex;
  gap: 20px;
  padding-bottom: 32px;
  position: relative;
}
.process-step::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.process-step:last-child::after { display: none; }
.ps-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}
.ps-content h4 { font-size: 17px; margin-bottom: 6px; }
.ps-content p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.faq-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.faq-quick-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.2s;
}
.faq-quick-card:hover { border-color: var(--red); box-shadow: var(--shadow-sm); }
.fqc-q {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}
.fqc-q svg { color: var(--red); flex-shrink: 0; }
.fqc-a { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  border-radius: var(--radius-xl);
  padding: 40px 48px;
  color: #fff;
}
.cta-band-content h2 { font-size: 24px; color: #fff; margin-bottom: 8px; }
.cta-band-content p { font-size: 15px; opacity: 0.9; }
.cta-band-actions { display: flex; gap: 12px; }
.cta-band-actions .btn-primary-sm { background: #fff; color: var(--red); border-color: #fff; }
.cta-band-actions .btn-ghost-sm { color: #fff; border-color: rgba(255,255,255,0.4); }

/* ===== Dashboard Page ===== */
.dashboard-header {
  background: var(--bg-subtle);
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.dh-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dh-user {
  display: flex;
  align-items: center;
  gap: 16px;
}
.dh-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red-light);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dh-name { font-size: 18px; font-weight: 700; }
.dh-meta { font-size: 13px; color: var(--text-tertiary); }
.dashboard-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}
.dashboard-sidebar {
  position: sticky;
  top: 80px;
}
.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}
.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.dash-nav-item svg { color: var(--text-tertiary); }
.dash-nav-item:hover { background: var(--bg-subtle); color: var(--text); }
.dash-nav-item.active { background: var(--red-light); color: var(--red); font-weight: 600; }
.dash-nav-item.active svg { color: var(--red); }
.dn-badge {
  margin-left: auto;
  background: var(--bg-subtle);
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}
.dash-nav-item.active .dn-badge { background: var(--red); color: #fff; }
.dash-cta { display: flex; flex-direction: column; gap: 8px; }
.dash-section { margin-bottom: 40px; }
.dash-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.dash-section-header h3 { font-size: 18px; }
.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.2s;
}
.app-card:hover { box-shadow: var(--shadow-md); }
.app-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.app-card-title { font-size: 15px; font-weight: 600; }
.app-card-school { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.app-card-status { font-size: 13px; font-weight: 600; }
.app-card-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.progress-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-subtle);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill { height: 100%; border-radius: 3px; transition: width 0.3s; }
.progress-text { font-size: 12px; font-weight: 600; color: var(--text-tertiary); }
.app-card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-tertiary);
}
.fav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.fav-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}
.fav-card:hover { border-color: var(--red); box-shadow: var(--shadow-sm); }
.fav-card svg { position: absolute; top: 16px; right: 16px; color: var(--red); }
.fav-type {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-tertiary);
  background: var(--bg-subtle);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.fav-name { font-size: 15px; font-weight: 600; }
.fav-name-en { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }
.fav-meta { font-size: 13px; color: var(--text-secondary); margin-top: 8px; }
.msg-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
}
.msg-card.unread { border-left: 3px solid var(--red); }
.msg-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.msg-from { font-size: 13px; font-weight: 600; }
.msg-time { font-size: 12px; color: var(--text-tertiary); }
.msg-text { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.profile-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}
.profile-row:last-child { border-bottom: none; }
.profile-row span { color: var(--text-tertiary); }

/* ===== Auth (Login/Register) ===== */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}
.auth-tab {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-tertiary);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.auth-tab.active { color: var(--red); border-bottom-color: var(--red); }
.auth-form .form-group { margin-bottom: 16px; }
.auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 13px;
}
.auth-aside {
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.auth-aside h3 { font-size: 18px; margin-bottom: 20px; }
.auth-benefits {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}
.auth-benefits svg { color: var(--red); flex-shrink: 0; }
.auth-aside-cta {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.auth-aside-cta p { font-size: 14px; color: var(--text-secondary); margin-bottom: 12px; }

/* ===== About Page ===== */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}
.about-intro-text h2 { font-size: 24px; margin-bottom: 16px; }
.about-intro-text p { font-size: 15px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
.about-intro-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ais-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}
.ais-num { font-size: 32px; font-weight: 800; color: var(--red); }
.ais-label { font-size: 13px; color: var(--text-tertiary); margin-top: 4px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: all 0.2s;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.sc-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.service-card h3 { font-size: 16px; margin-bottom: 8px; }
.service-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}
.wc-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--red-light);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.why-card h4 { font-size: 16px; margin-bottom: 8px; }
.why-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.about-contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ac-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}
.ac-card svg { color: var(--red); margin-bottom: 12px; }
.ac-card h4 { font-size: 15px; margin-bottom: 6px; }
.ac-card p { font-size: 14px; color: var(--text-secondary); }

/* ===== Contact Page ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
  max-width: 600px;
  margin: 0 auto;
}
.contact-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
}
.ci-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ci-label { font-size: 13px; color: var(--text-tertiary); margin-bottom: 4px; }
.ci-value { font-size: 16px; font-weight: 600; }
.ci-note { font-size: 12px; color: var(--text-tertiary); margin-top: 4px; }
.contact-quick-actions { margin-top: 32px; }
.contact-quick-actions h3 { font-size: 16px; margin-bottom: 16px; }
.cqa-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.contact-form { margin-top: 8px; }

/* ===== FAQ Page ===== */
.faq-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}
.faq-sidebar {
  position: sticky;
  top: 80px;
}
.faq-search input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 20px;
}
.faq-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}
.faq-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.faq-nav-item svg { color: var(--text-tertiary); }
.faq-nav-item:hover { background: var(--bg-subtle); color: var(--text); }
.faq-cta { text-align: center; }
.faq-cta p { font-size: 14px; color: var(--text-secondary); margin-bottom: 12px; }
.faq-category { margin-bottom: 40px; }
.faq-cat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.faq-cat-header svg { color: var(--red); }
.faq-cat-header h2 { font-size: 20px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  font-family: inherit;
  color: var(--text);
}
.faq-q svg {
  transition: transform 0.2s;
  color: var(--text-tertiary);
  flex-shrink: 0;
}
.faq-item.open .faq-q svg { transform: rotate(90deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s;
}
.faq-item.open .faq-a { max-height: 500px; }
.faq-a p {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== Legal Page ===== */
.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}
.legal-sidebar { position: sticky; top: 80px; }
.legal-nav { display: flex; flex-direction: column; gap: 4px; }
.legal-nav-item {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.legal-nav-item:hover { background: var(--bg-subtle); color: var(--text); }
.legal-intro {
  background: var(--bg-subtle);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
}
.legal-intro p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.legal-section { margin-bottom: 32px; }
.legal-section h2 { font-size: 18px; margin-bottom: 12px; }
.legal-section p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 10px; }
.legal-section ul { padding-left: 20px; margin-bottom: 10px; }
.legal-section ul li { font-size: 14px; color: var(--text-secondary); line-height: 1.8; }
.legal-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.legal-footer p { font-size: 14px; color: var(--text-secondary); }

/* ===== Responsive for new pages ===== */
@media (max-width: 968px) {
  .apply-layout, .auth-layout, .about-intro, .contact-layout, .faq-layout, .legal-layout, .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .apply-sidebar, .auth-aside, .faq-sidebar, .legal-sidebar, .dashboard-sidebar {
    position: static;
  }
  .consult-options { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .about-contact { grid-template-columns: 1fr; }
  .fav-grid { grid-template-columns: 1fr 1fr; }
  .faq-quick-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; gap: 20px; text-align: center; }
}
@media (max-width: 640px) {
  .main-nav { gap: 12px; }
  .main-nav a { font-size: 13px; }
  .services-grid, .why-grid, .fav-grid { grid-template-columns: 1fr; }
  .about-intro-stats { grid-template-columns: 1fr 1fr; }
  .page-hero-content h1 { font-size: 26px; }
}

/* ===== 移动端适配（来自同事徐慧20260814 优化版，叠加保留原功能） ===== */
@media (max-width: 968px) {
  .apply-layout, .auth-layout, .about-intro, .contact-layout, .faq-layout, .legal-layout, .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .apply-sidebar, .auth-aside, .faq-sidebar, .legal-sidebar, .dashboard-sidebar {
    position: static;
  }
  .consult-options { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .about-contact { grid-template-columns: 1fr; }
  .fav-grid { grid-template-columns: 1fr 1fr; }
  .faq-quick-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; gap: 20px; text-align: center; }
}
@media (max-width: 640px) {
  .main-nav { gap: 12px; }
  .main-nav a { font-size: 13px; }
  .services-grid, .why-grid, .fav-grid { grid-template-columns: 1fr; }
  .about-intro-stats { grid-template-columns: 1fr 1fr; }
  .page-hero-content h1 { font-size: 26px; }
}

/* ===== 语言切换浮标（i18n.js 自动创建并定位，这里兜底样式） ===== */
#sic-lang-toggle {
  position: fixed !important;
  right: 16px !important;
  bottom: 16px !important;
  z-index: 2147483647 !important;
}

/* 登录按钮（与徐慧0814一致） */
.btn-login-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid var(--red);
  background: var(--white);
  color: var(--red);
  transition: all 0.2s ease;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.btn-login-sm:hover {
  background: var(--red);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220,38,38,0.2);
}
