/* ===== gaokao-home 移动端响应式 ===== */

@media (max-width: 767.98px) {

  /* 顶部导航 */
  .gk-header-inner {
    width: 100%;
    height: 56px;
    padding: 0 14px;
  }
  .gk-logo-img { height: 26px; }
  .gk-header-right { gap: 10px; }
  .gk-nav {
    display: none;
  }
  .gk-account-name { max-width: 64px; font-size: 12px; }
  .gk-link-primary { font-size: 12px; padding: 4px 10px; }

  /* Hero：单列堆叠，筛选卡移到下方 */
  .gk-hero { padding: 8px 0 28px; }
  .gk-hero-bg {
    background:
      radial-gradient(560px 320px at 12% -10%, rgba(56, 189, 248, 0.45), transparent 60%),
      radial-gradient(420px 300px at 90% 0%, rgba(99, 102, 241, 0.4), transparent 55%),
      linear-gradient(135deg, #1d4ed8 0%, #2563eb 45%, #3b82f6 100%);
  }
  .gk-hero-inner {
    width: 100%;
    margin: 0;
    flex-direction: column;
    gap: 24px;
    padding: 28px 16px 24px;
    align-items: stretch;
  }
  .gk-hero-left {
    transform: none;
    text-align: center;
  }
  .gk-hero-eyebrow { font-size: 11px; margin-bottom: 12px; padding: 4px 10px; }
  .gk-hero-title { font-size: 28px; line-height: 1.2; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25); }
  .gk-hero-title span:first-child { transform: translateX(-20px); }
  .gk-hero-title-offset { transform: translateX(10px); }
  .gk-hero-sub { margin-top: 12px; font-size: 12px; }
  .gk-hero-badges { margin-top: 16px; gap: 8px 12px; justify-content: center; }
  .gk-hero-badges li { font-size: 11px; padding: 4px 10px; }

  /* 筛选卡：撑满屏幕 */
  .gk-hero-right { width: 100%; }
  .gk-filter-card {
    padding: 20px 16px 18px;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
  }
  .gk-filter-fields { gap: 12px; }
  .gk-field { flex-direction: column; align-items: stretch; gap: 5px; min-height: 0; }
  .gk-field-stack { gap: 6px; }
  .gk-field-label { width: auto; font-size: 12px; }
  .gk-field-control { height: 38px; line-height: 36px; font-size: 13px; padding: 0 12px; }
  select.gk-field-control {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 32px;
    line-height: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
  }
  .gk-input-line { height: 38px; line-height: 38px; font-size: 14px; padding: 0 34px 0 10px; }
  .gk-input-unit, .gk-scoreboard-unit { display: none; }
  .gk-checkbox-list { gap: 8px 12px; font-size: 12px; }
  .gk-cb { font-size: 12px; }
  .gk-mode-toggle { align-self: flex-start; flex-direction: row; gap: 0; }
  .gk-mode-toggle-label { width: auto; }
  .gk-mode-btn { white-space: nowrap; padding: 5px 12px; font-size: 12px; }
  .gk-btn-primary { padding: 0; height: 38px; line-height: 38px; font-size: 14px; border-radius: 999px; }
  .gk-filter-tip { font-size: 11px; text-align: center; }

  /* 高考倒计时 */
  .gk-cd-item { min-width: 36px; padding: 4px 6px; }
  .gk-cd-num { font-size: 18px; }
  .gk-cd-unit { font-size: 11px; }

  /* 通用区块 */
  .gk-section { width: 100%; padding: 32px 16px; }
  .gk-section-alt > * { width: 100%; }
  .gk-section-head { margin-bottom: 24px; }
  .gk-section-title { font-size: 20px; }
  .gk-section-sub { font-size: 12px; margin-top: 12px; }

  /* 时间轴 */
  .gk-timeline { flex-wrap: wrap; justify-content: flex-start; gap: 14px 0; padding: 0; }
  .gk-timeline::before { display: none; }
  .gk-tl-item { flex: 0 0 33.333%; padding: 0 4px; }
  .gk-tl-dot { width: 12px; height: 12px; margin-bottom: 8px; border-width: 3px; }
  .gk-tl-month { font-size: 13px; }
  .gk-tl-name { font-size: 11px; margin-top: 3px; }

  /* 院校榜单 */
  .gk-school-head { width: 100%; padding: 10px 16px 12px; flex-wrap: wrap; gap: 6px; }
  .gk-school-title { font-size: 16px; }
  .gk-school-more { font-size: 11px; }
  .gk-school-panel { width: 100%; padding: 16px 12px 18px; border-radius: 14px; }
  .gk-school-tabs { gap: 3px; margin-bottom: 16px; padding: 3px; }
  .gk-school-tab { min-width: 0; padding: 6px 8px; font-size: 11px; }
  .gk-school-grid { grid-template-columns: repeat(2, 1fr); gap: 8px 10px; }
  .gk-school-logo { width: 40px; height: 40px; font-size: 12px; }
  .gk-school-name { font-size: 12px; }

  /* 专业网格 */
  .gk-major-grid { grid-template-columns: repeat(3, 1fr); gap: 12px 6px; }
  .gk-major-icon { width: 40px; height: 40px; font-size: 18px; border-radius: 12px; }
  .gk-major-name { font-size: 11px; margin-top: 5px; }

  /* 一分一段表筛选条 */
  .gk-scoreboard-filters { gap: 10px 12px; padding: 4px 0 14px; }
  .gk-scoreboard-field { font-size: 11px; gap: 6px; }
  .gk-scoreboard-control { height: 30px; font-size: 11px; width: 100px; }
  .gk-scoreboard-btn { flex: 1; height: 30px; padding: 0 20px; min-width: 60px; font-size: 11px; }
  .gk-table-wrap { border-radius: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .gk-table { min-width: 460px; }
  .gk-table thead th { padding: 8px 10px; font-size: 11px; }
  .gk-table tbody td { padding: 8px 10px; font-size: 11px; }

  /* 页脚 */
  .gk-footer { padding: 24px 16px; }
  .gk-footer-inner { width: 100%; }
  .gk-footer-inner p { font-size: 11px; line-height: 1.8; }
  .gk-footer-disc { display: block; }
}

/* ===== 移动端导航（仅在 mobile link 加载时生效） ===== */
.gk-mobile-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px 0;
  background: #fff;
  padding: 14px 8px 12px;
  border-bottom: 1px solid #eef2f9;
}
.gk-mnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 4px;
  text-decoration: none;
  color: #4a5568;
  -webkit-tap-highlight-color: transparent;
}
.gk-mnav-item:active .gk-mnav-icon { transform: scale(0.92); }
.gk-mnav-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
  transition: transform 0.15s;
}
.gk-mnav-icon-blue   { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.gk-mnav-icon-purple { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.gk-mnav-icon-green  { background: linear-gradient(135deg, #34d399, #10b981); }
.gk-mnav-icon-red    { background: linear-gradient(135deg, #f87171, #ef4444); }
.gk-mnav-icon-orange { background: linear-gradient(135deg, #fb923c, #f97316); }
.gk-mnav-icon-cyan   { background: linear-gradient(135deg, #22d3ee, #06b6d4); }
.gk-mnav-icon-pink   { background: linear-gradient(135deg, #f472b6, #ec4899); }
.gk-mnav-icon-indigo { background: linear-gradient(135deg, #818cf8, #4f46e5); }
.gk-mnav-icon-amber  { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.gk-mnav-item.is-active .gk-mnav-icon {
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.gk-mnav-label { font-size: 11px; text-align: center; line-height: 1.2; }
.gk-mnav-item.is-active .gk-mnav-label { color: #2563eb; font-weight: 600; }

@media (max-width: 380px) {
  .gk-hero-title { font-size: 24px; }
  .gk-school-grid { grid-template-columns: 1fr 1fr; }
  .gk-major-grid { grid-template-columns: repeat(2, 1fr); }
}
