/* ===== 全局样式 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #dbeafe;
  --secondary: #ff6b35;
  --accent: #4f46e5;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --border: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg-secondary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 顶部导航 ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 32px;
}

.logo-text h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}

.logo-text p {
  font-size: 12px;
  color: var(--text-secondary);
}

.nav {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 8px 18px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

/* ===== Hero 主视觉 ===== */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 200, 150, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-left {
  color: white;
}

.badge {
  display: inline-block;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}

.hero-desc {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  line-height: 1.8;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 35px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  font-size: 14px;
  backdrop-filter: blur(10px);
}

.feature-icon {
  font-size: 18px;
}

.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  background: white;
  color: var(--primary);
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary.btn-large {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 16px 48px;
  font-size: 17px;
}

/* 学校卡片 */
.hero-right {
  display: flex;
  justify-content: center;
}

.school-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  max-width: 420px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.school-banner {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  padding: 30px;
  text-align: center;
}

.school-badge {
  display: inline-block;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.school-info {
  padding: 28px;
}

.school-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.school-info p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.7;
}

.school-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag {
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.school-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
}

.score-panel {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.score-panel-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.score-item {
  padding: 10px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.score-item.score-physics { background: #e3f2fd; }
.score-item.score-chem { background: #e8f5e9; }
.score-item.score-history { background: #fff3e0; }
.score-item.score-global { background: #f3e5f5; }

.score-group {
  font-size: 11px;
  color: #555;
  font-weight: 500;
}

.score-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}

.score-rank {
  font-size: 10px;
  color: var(--text-secondary);
}

/* ===== 查询区域 ===== */
.query-section {
  padding: 70px 0 50px;
  margin-top: -40px;
  position: relative;
  z-index: 10;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title p {
  font-size: 16px;
  color: var(--text-secondary);
}

.query-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

/* 表单 */
.query-form {
  margin-bottom: 30px;
}

.form-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group label .required {
  color: var(--danger);
}

.form-group input,
.form-group select {
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  transition: all 0.2s ease;
  background: white;
  color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

#analyze-btn {
  width: 100%;
  text-align: center;
}

/* 结果区域 */
.result-area {
  animation: fadeInUp 0.5s ease;
}

.result-area.hidden {
  display: none;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 统计面板 */
.overview-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

.overview-item {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
}

.overview-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.overview-icon {
  font-size: 32px;
}

.overview-content {
  flex: 1;
}

.overview-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.overview-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
}

.overview-value .unit {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: 4px;
}

.overview-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.probability-overview {
  background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
}

.chong-item {
  background: linear-gradient(135deg, #fff5f5, #fef2f2);
}

.chong-item .overview-value {
  color: #ef4444;
}

.wen-item {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.wen-item .overview-value {
  color: #f59e0b;
}

.bao-item {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

.bao-item .overview-value {
  color: #16a34a;
}

/* 分数可视化 */
.score-visual {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 30px;
}

.score-bar-wrap {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  align-items: center;
}

.score-bar {
  position: relative;
  height: 80px;
  background: linear-gradient(to right,
    #fecaca 0%, #fecaca 25%,
    #fcd34d 25%, #fcd34d 60%,
    #86efac 60%, #86efac 100%);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.score-bar-label {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.bar-zones {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  font-size: 12px;
  font-weight: 600;
  color: #7c2d12;
}

.zone {
  flex: 1;
  text-align: center;
}

.score-indicator {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: white;
  border: 3px solid #1e40af;
  border-radius: 3px;
  transform: translateX(-50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: left 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.score-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.score-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: white;
  border-radius: var(--radius-sm);
}

.score-info-row span {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.score-info-row strong {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 700;
}

/* 分类切换 */
.category-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 22px;
  border: 2px solid var(--border);
  background: white;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tab-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.tab-badge {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.tab-btn:not(.active) .tab-badge {
  background: var(--primary-light);
  color: var(--primary);
}

/* 专业卡片列表 */
.major-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.major-card {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  padding: 24px;
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  animation: slideIn 0.4s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-15px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.major-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

.major-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.major-category {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.major-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.major-tag {
  padding: 4px 10px;
  background: #f3f4f6;
  color: var(--text-secondary);
  border-radius: 15px;
  font-size: 11px;
  font-weight: 500;
}

.major-college {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 14px;
}

.major-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-label {
  font-size: 13px;
  color: var(--text-light);
}

.meta-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

/* 右侧概率圈 */
.major-card-right {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-direction: column;
  border-left: 1px solid var(--border);
  padding-left: 24px;
}

.probability-circle {
  position: relative;
  width: 120px;
  height: 120px;
}

.probability-circle svg {
  position: absolute;
  top: 0;
  left: 0;
}

.probability-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
}

.probability-num {
  display: block;
  font-size: 28px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}

.probability-unit {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
}

.probability-label {
  display: block;
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
  font-weight: 500;
}

@keyframes progressAnim {
  from {
    stroke-dasharray: 0 326.7;
  }
}

.btn-detail {
  padding: 10px 24px;
  background: var(--primary-light);
  color: var(--primary);
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-detail:hover {
  background: var(--primary);
  color: white;
}

/* 空状态 */
.empty-tip {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.empty-tip.hidden {
  display: none;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-tip p {
  font-size: 16px;
}

/* ===== About 区域 ===== */
.about-section {
  padding: 80px 0;
  background: white;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.about-card {
  padding: 32px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.about-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.about-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.about-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ===== 页脚 ===== */
.footer {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  padding: 30px 0;
  color: white;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.footer-logo {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.footer-left p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

.footer-right {
  flex: 1;
  max-width: 500px;
  text-align: right;
}

.footer-right p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

/* ===== 模态框 ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 30px;
  overflow-y: auto;
}

.modal.show {
  display: flex;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: -1;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 800px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin: 20px 0;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #f3f4f6;
  color: var(--text-primary);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close:hover {
  background: var(--danger);
  color: white;
  transform: rotate(90deg);
}

.modal-body {
  padding: 40px;
}

/* 详情内容 */
.detail-header {
  padding-bottom: 24px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
}

.detail-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.detail-name {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
}

.detail-category {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

.detail-college {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 12px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-tag {
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

/* 概率卡片 */
.detail-probability {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 30px;
}

.detail-prob-card {
  background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
  padding: 24px;
  border-radius: var(--radius);
  text-align: center;
}

.detail-prob-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.detail-prob-num {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 10px;
}

.detail-prob-tip {
  font-size: 13px;
  color: var(--text-secondary);
}

.detail-score-info {
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: var(--radius);
}

.detail-score-info .info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}

.detail-score-info .info-item:last-child {
  border-bottom: none;
}

.detail-score-info span {
  color: var(--text-secondary);
  font-size: 14px;
}

.detail-score-info strong {
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
}

/* 详情 section */
.detail-section {
  margin-bottom: 28px;
}

.section-label {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
  display: inline-block;
}

.section-content {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.9;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-primary);
}

/* 课程网格 */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.course-item {
  padding: 14px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
}

.course-semester {
  font-size: 12px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 6px;
}

.course-content {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.6;
}

/* ===== 响应式设计 ===== */
@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-features {
    justify-content: center;
  }

  .overview-panel {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .major-card {
    grid-template-columns: 1fr;
  }

  .major-card-right {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 24px;
    flex-direction: row;
    justify-content: space-around;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .score-bar-wrap {
    grid-template-columns: 1fr;
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }

  .detail-probability {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 34px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-right {
    text-align: center;
  }

  .modal-body {
    padding: 30px 20px;
  }

  .nav {
    display: none;
  }
}

@media (max-width: 568px) {
  .overview-panel {
    grid-template-columns: 1fr;
  }

  .section-title h2 {
    font-size: 26px;
  }

  .query-card {
    padding: 24px;
  }

  .hero {
    padding: 50px 0 70px;
  }

  .hero-title {
    font-size: 28px;
  }

  .major-card-right {
    flex-direction: column;
  }

  .detail-name {
    font-size: 22px;
  }

  .detail-prob-num {
    font-size: 38px;
  }
}
