/* ============================================================
   KEWO DSE · 升学资讯站 index.css（仅首页专属布局）
   复用 common.css 组件；移动优先，断点 481 / 769 / 1025
   ============================================================ */

/* ---------- 页首导语 ---------- */
.index-hero {
  background: linear-gradient(120deg, var(--c-primary) 0%, #1E4578 70%, #3A6298 100%);
  color: #fff;
  padding: 40px 0 36px;
}
.index-hero h1 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 8px;
}
.index-hero .hero-lead {
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  max-width: 720px;
  margin: 0;
}
@media (min-width: 769px) {
  .index-hero { padding: 56px 0 48px; }
  .index-hero h1 { font-size: 32px; }
  .index-hero .hero-lead { font-size: 16px; }
}

/* ---------- 1. 头条区 ---------- */
.headline-section { padding-top: 32px; }
@media (min-width: 769px) { .headline-section { padding-top: 40px; } }

.headline-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }

/* 置顶大卡 */
.featured-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-l);
  text-decoration: none;
}
.featured-card .featured-cover {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--c-primary) 0%, #2A5490 60%, var(--c-accent) 130%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .92);
  font-size: 52px;
  flex-shrink: 0;
}
.featured-card .featured-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.featured-card .featured-chips { display: flex; gap: 8px; align-items: center; }
.featured-card h2 {
  font-size: 20px;
  margin: 0;
  color: var(--c-text);
  line-height: 1.45;
  transition: color .15s ease;
}
.featured-card:hover h2 { color: var(--c-blue); }
.featured-card .featured-summary {
  font-size: 14.5px;
  color: var(--c-text-2);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-card .card-meta { margin-top: auto; }

/* 次头条横向小卡 */
.headline-side { display: grid; grid-template-columns: 1fr; gap: 14px; }
.mini-card {
  display: flex;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  padding: 14px;
  align-items: flex-start;
  transition: transform .15s ease, box-shadow .15s ease;
}
.mini-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.mini-card .mini-cover {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: var(--radius-s);
  background: linear-gradient(135deg, #F0F4FA, #E7EDF6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.mini-card .mini-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mini-card h3 {
  font-size: 15px;
  margin: 0;
  color: var(--c-text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .15s ease;
}
.mini-card:hover h3 { color: var(--c-blue); }
.mini-card .card-meta { margin: 0; }

@media (min-width: 481px) {
  .headline-side { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1025px) {
  .headline-grid { grid-template-columns: 7fr 5fr; gap: 24px; }
  .headline-side { grid-template-columns: 1fr; }
  .featured-card h2 { font-size: 24px; }
  .featured-card .featured-cover { font-size: 60px; }
}

/* ---------- 3. 趋势区 ---------- */
.trend-panel {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  padding: 18px;
  box-shadow: var(--shadow);
}
@media (min-width: 769px) { .trend-panel { padding: 24px 28px; } }
.trend-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0 12px;
}
.trend-more { font-size: 14px; font-weight: 600; white-space: nowrap; }
.trend-panel .table-scroll { margin-bottom: 12px; }
.trend-panel .source-line { margin-top: 0; }

/* ---------- 4. 分类入口 ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.cat-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-card h3 {
  font-size: 14.5px;
  margin: 0;
  color: var(--c-text);
  line-height: 1.55;
  font-weight: 600;
  flex: 1;
}
.cat-card h3 a { color: inherit; }
.cat-card h3 a:hover { color: var(--c-blue); text-decoration: none; }
.cat-card .card-meta { margin: 0; }
.cat-more { margin-top: 20px; text-align: center; }
@media (min-width: 1025px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

/* ---------- 5. 最新文章流 ---------- */
.more-card { justify-content: center; text-align: center; }
.more-card .card-body { align-items: center; }
.more-card:hover h3 { color: var(--c-accent); }

/* ---------- 6. 订阅横幅补充 ---------- */
.benefit-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.benefit-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, .88);
}
.benefit-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--c-accent);
  font-weight: 800;
}
.subscribe-banner .lead-form {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-m);
  padding: 20px;
}
.subscribe-banner .form-msg.ok { color: #7DD8A9; }
.subscribe-banner .form-msg.err { color: #F0A9A6; }

/* ---------- 375px 无横向滚动兜底 ---------- */
.headline-grid, .headline-side, .cat-grid, .card-grid, .stat-grid {
  min-width: 0;
}
.mini-card, .featured-card, .cat-card, .article-card { min-width: 0; }
