/* ============================================
   金志愿 · 高考志愿填报系统 主样式
   Design: Refined Premium · 深海藏蓝 + 朱砂红
============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700;900&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
  --navy: #0a1628;
  --navy-2: #0f2044;
  --navy-3: #1a3260;
  --accent: #e63946;
  --accent-light: #ff6b6b;
  --gold: #f4b942;
  --sky: #457b9d;
  --sky-light: #a8dadc;
  --white: #ffffff;
  --gray-100: #f8fafc;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --text-main: #1e293b;
  --text-sub: #64748b;
  --card-bg: #ffffff;
  --border: rgba(0,0,0,0.08);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background: var(--gray-100);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ——— 通用按钮 ——— */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  border: none; border-radius: 100px;
  font-size: 15px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  font-family: inherit;
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(230,57,70,0.35); }
.btn-primary.btn-lg { padding: 16px 44px; font-size: 17px; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 28px;
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy-3);
  border-radius: 100px;
  font-size: 15px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  font-family: inherit;
}
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ——— 导航栏 ——— */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,22,40,0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 32px;
  padding: 0 32px; height: 68px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-icon {
  width: 40px; height: 40px;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Noto Serif SC', serif;
  font-size: 20px; font-weight: 900;
}
.logo-icon.sm { width: 30px; height: 30px; font-size: 15px; border-radius: 7px; }
.logo-text { display: flex; flex-direction: column; gap: 1px; }
.logo-main { font-size: 17px; font-weight: 700; color: #fff; font-family: 'Noto Serif SC', serif; }
.logo-sub { font-size: 11px; color: rgba(255,255,255,0.45); }
.nav-menu { display: flex; gap: 4px; list-style: none; flex: 1; }
.nav-link {
  padding: 7px 14px;
  color: rgba(255,255,255,0.65);
  border-radius: 8px;
  font-size: 14px; font-weight: 500;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.nav-actions { margin-left: auto; }

/* ——— 英雄区 ——— */
.hero {
  min-height: 100vh;
  background: var(--navy);
  position: relative;
  display: flex; align-items: center;
  padding: 80px 32px 60px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.25;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #1a3260, transparent);
  top: -200px; left: -100px;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(230,57,70,0.5), transparent);
  bottom: -100px; right: 200px;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(69,123,157,0.4), transparent);
  top: 30%; left: 40%;
}
.hero-content {
  flex: 1; max-width: 600px; position: relative; z-index: 2;
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(230,57,70,0.15);
  border: 1px solid rgba(230,57,70,0.4);
  border-radius: 100px;
  color: var(--accent-light);
  font-size: 13px; font-weight: 500;
  margin-bottom: 28px;
  animation: fadeInUp 0.6s ease both;
}
.hero-title {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease 0.1s both;
}
.title-line { display: block; color: rgba(255,255,255,0.92); }
.title-line.accent { color: var(--accent); }
.hero-desc {
  color: rgba(255,255,255,0.55);
  font-size: 16px; line-height: 1.8;
  margin-bottom: 36px;
  animation: fadeInUp 0.6s ease 0.2s both;
}
.hero-score-input {
  animation: fadeInUp 0.6s ease 0.3s both;
  margin-bottom: 40px;
}
.score-input-wrap {
  display: flex; align-items: flex-end; gap: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 20px 20px 20px 24px;
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
}
.score-field { display: flex; flex-direction: column; gap: 6px; }
.score-field label { color: rgba(255,255,255,0.5); font-size: 12px; }
.score-field input, .score-field select {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: #fff;
  padding: 10px 14px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  width: 130px;
  transition: var(--transition);
}
.score-field input:focus, .score-field select:focus {
  border-color: var(--accent); background: rgba(255,255,255,0.15);
}
.score-field select option { background: var(--navy-2); }
.btn-analyze {
  padding: 11px 24px;
  background: var(--accent);
  color: #fff; border: none; border-radius: 8px;
  font-size: 15px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  font-family: inherit;
  white-space: nowrap;
}
.btn-analyze:hover { background: var(--accent-light); transform: translateY(-2px); }
.hero-stats {
  display: flex; align-items: center; gap: 24px;
  animation: fadeInUp 0.6s ease 0.4s both;
}
.stat-item { text-align: center; }
.stat-num {
  display: block;
  font-size: 26px; font-weight: 700;
  color: var(--gold);
  font-family: 'Noto Serif SC', serif;
}
.stat-label { font-size: 12px; color: rgba(255,255,255,0.45); }
.stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.12); }

/* 右侧视觉卡片 */
.hero-visual {
  flex: 1; max-width: 480px;
  position: relative; z-index: 2;
  margin-left: 60px;
  animation: fadeInRight 0.8s ease 0.3s both;
}
.vis-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
}
.vis-card-main { padding: 20px; }
.vis-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 13px; color: rgba(255,255,255,0.5);
}
.vis-dot { width: 10px; height: 10px; border-radius: 50%; }
.vis-dot-red { background: #ff5f57; }
.vis-dot-yellow { background: #febc2e; }
.vis-dot-green { background: #28c840; }
.vis-school-list { display: flex; flex-direction: column; gap: 14px; }
.vis-school-item { display: flex; align-items: center; gap: 12px; }
.school-rank {
  width: 28px; height: 28px;
  background: rgba(230,57,70,0.2);
  color: var(--accent-light);
  border-radius: 6px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.school-rank.stab { background: rgba(245,158,11,0.2); color: var(--gold); }
.school-rank.safe { background: rgba(16,185,129,0.2); color: #34d399; }
.school-info { flex: 1; }
.school-name { display: block; font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.9); }
.school-major { font-size: 12px; color: rgba(255,255,255,0.4); }
.prob-bar-wrap {
  display: flex; align-items: center; gap: 8px;
  width: 140px;
}
.prob-bar {
  flex: 1; height: 6px;
  background: rgba(230,57,70,0.7);
  border-radius: 3px;
  width: var(--w);
  max-width: 100%;
  transition: width 1s ease;
}
.prob-bar.stab { background: rgba(245,158,11,0.8); }
.prob-bar.safe { background: rgba(16,185,129,0.8); }
.prob-num { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.8); width: 34px; text-align: right; }
.vis-card-mini {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}
.vis-card-1 { right: -30px; top: -20px; }
.vis-card-2 { right: -20px; bottom: 30px; }
.mini-icon { font-size: 22px; }
.mini-text { display: flex; flex-direction: column; }
.mini-text strong { font-size: 13px; color: rgba(255,255,255,0.9); }
.mini-text span { font-size: 12px; color: rgba(255,255,255,0.5); }

/* ——— 功能模块 ——— */
.features {
  padding: 80px 32px;
  max-width: 1280px; margin: 0 auto;
}
.section-header { text-align: center; margin-bottom: 52px; }
.section-tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(230,57,70,0.08);
  color: var(--accent);
  border-radius: 100px;
  font-size: 13px; font-weight: 600;
  margin-bottom: 14px;
}
.section-header h2 {
  font-family: 'Noto Serif SC', serif;
  font-size: 36px; font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}
.section-header p { color: var(--text-sub); font-size: 16px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: block;
  cursor: pointer;
}
.feature-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(230,57,70,0.04), transparent);
  opacity: 0; transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(230,57,70,0.2);
}
.feature-card:hover::before { opacity: 1; }
.feature-card-highlight {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  color: #fff;
}
.feature-card-highlight h3 { color: #fff; }
.feature-card-highlight p { color: rgba(255,255,255,0.6); }
.feature-badge {
  position: absolute; top: 16px; right: 16px;
  padding: 3px 10px;
  background: var(--accent);
  color: #fff; border-radius: 100px;
  font-size: 11px; font-weight: 700;
}
.feature-icon {
  width: 52px; height: 52px;
  background: color-mix(in srgb, var(--c) 12%, transparent);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}
.feature-card h3 {
  font-size: 18px; font-weight: 700;
  margin-bottom: 8px; color: var(--text-main);
}
.feature-card p { font-size: 14px; color: var(--text-sub); line-height: 1.6; }
.feature-arrow {
  position: absolute; bottom: 24px; right: 24px;
  width: 32px; height: 32px;
  background: var(--gray-100);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--text-sub);
  transition: var(--transition);
}
.feature-card:hover .feature-arrow { background: var(--accent); color: #fff; transform: translateX(3px); }
.feature-card-highlight .feature-arrow { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); }

/* ——— 数据展示区 ——— */
.data-section {
  background: var(--navy);
  padding: 80px 32px;
  display: flex; gap: 80px; align-items: center;
  max-width: 100%;
}
.data-section > * { max-width: 1280px; }
.data-left { flex: 1; padding-left: calc((100vw - 1280px)/2); max-width: 580px; }
.data-left .section-tag { background: rgba(230,57,70,0.2); }
.data-left h2 {
  font-family: 'Noto Serif SC', serif;
  font-size: 40px; font-weight: 700;
  color: #fff; line-height: 1.2;
  margin: 16px 0;
}
.data-left p { color: rgba(255,255,255,0.55); line-height: 1.8; margin-bottom: 24px; }
.data-highlights { list-style: none; margin-bottom: 32px; display: flex; flex-direction: column; gap: 12px; }
.data-highlights li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.7); font-size: 15px; }
.dh-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }
.data-left .btn-outline { border-color: rgba(255,255,255,0.3); color: #fff; }
.data-left .btn-outline:hover { background: #fff; color: var(--navy); }
.data-right { flex: 1; padding-right: calc((100vw - 1280px)/2); display: flex; justify-content: center; }
.data-chart {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 28px; width: 100%; max-width: 420px;
}
.chart-title { color: rgba(255,255,255,0.7); font-size: 14px; margin-bottom: 24px; font-weight: 500; }
.chart-bars {
  display: flex; gap: 16px; align-items: flex-end;
  height: 160px; margin-bottom: 20px;
}
.chart-year-group { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
.chart-bar-wrap {
  display: flex; gap: 3px; align-items: flex-end;
  height: 140px; width: 100%;
}
.bar-segment {
  flex: 1; border-radius: 4px 4px 0 0;
  transition: height 1s ease;
}
.bar-seg-1 { background: #e63946; }
.bar-seg-2 { background: #457b9d; }
.bar-seg-3 { background: #a8dadc; }
.chart-year-group span { font-size: 12px; color: rgba(255,255,255,0.4); }
.chart-legend {
  display: flex; gap: 20px; justify-content: center;
}
.chart-legend span {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: rgba(255,255,255,0.5);
}
.chart-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

/* ——— 快速入口 ——— */
.quick-start {
  padding: 80px 32px;
  text-align: center;
  background: var(--white);
}
.qs-inner { max-width: 900px; margin: 0 auto; }
.qs-inner h2 {
  font-family: 'Noto Serif SC', serif;
  font-size: 36px; font-weight: 700;
  margin-bottom: 52px;
}
.steps { display: flex; align-items: center; justify-content: center; gap: 24px; margin-bottom: 48px; }
.step { text-align: center; max-width: 200px; }
.step-num {
  font-size: 48px; font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
  font-family: 'Noto Serif SC', serif;
  line-height: 1; margin-bottom: 12px;
}
.step-content h4 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.step-content p { font-size: 14px; color: var(--text-sub); }
.step-arrow { font-size: 28px; color: var(--gray-200); flex-shrink: 0; }

/* ——— 页脚 ——— */
.footer {
  background: var(--navy);
  padding: 40px 32px;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 32px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.7); font-size: 15px; font-weight: 500;
}
.footer-note { flex: 1; text-align: center; color: rgba(255,255,255,0.35); font-size: 13px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255,255,255,0.45); font-size: 14px; transition: var(--transition); }
.footer-links a:hover { color: #fff; }

/* ——— 动画 ——— */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ——— 通用页面样式 (子页面复用) ——— */
.page-container {
  max-width: 1280px; margin: 0 auto;
  padding: 100px 32px 60px;
}
.page-header { margin-bottom: 40px; }
.page-header h1 {
  font-family: 'Noto Serif SC', serif;
  font-size: 32px; font-weight: 700;
  color: var(--text-main); margin-bottom: 8px;
}
.page-header p { color: var(--text-sub); font-size: 15px; }

/* 卡片通用 */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card-title {
  font-size: 17px; font-weight: 700;
  color: var(--text-main); margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}

/* 标签 */
.tag {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px; font-weight: 500;
}
.tag-985 { background: rgba(230,57,70,0.1); color: var(--accent); }
.tag-211 { background: rgba(69,123,157,0.1); color: var(--sky); }
.tag-blue { background: rgba(59,130,246,0.1); color: #3b82f6; }
.tag-green { background: rgba(16,185,129,0.1); color: #10b981; }

/* 表格 */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 12px 16px; text-align: left;
  background: var(--gray-100);
  font-size: 13px; font-weight: 600;
  color: var(--text-sub);
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 14px 16px;
  font-size: 14px; color: var(--text-main);
  border-bottom: 1px solid var(--border);
}
.data-table tr:hover td { background: var(--gray-100); }
.data-table tr:last-child td { border-bottom: none; }

/* 进度条 */
.progress-bar {
  height: 6px; background: var(--gray-200); border-radius: 3px; overflow: hidden;
}
.progress-fill {
  height: 100%; background: var(--accent); border-radius: 3px;
  transition: width 0.8s ease;
}
.progress-fill.sky { background: var(--sky); }
.progress-fill.green { background: #10b981; }

/* 响应式 */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { flex-direction: column; padding-top: 100px; text-align: center; }
  .hero-visual { margin-left: 0; margin-top: 40px; width: 100%; max-width: 400px; }
  .hero-stats { justify-content: center; }
  .data-section { flex-direction: column; }
  .data-left, .data-right { padding-left: 0; padding-right: 0; max-width: 100%; }
}
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .score-input-wrap { flex-direction: column; }
  .score-field input, .score-field select { width: 100%; }
}
