/* 首页：学科入口。与英语站共用视觉语言（大卡片、圆角、高对比）。 */

:root {
  --blue: #2563eb;
  --ink: #1e293b;
  --dim: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  padding: 0 16px calc(32px + env(safe-area-inset-bottom));
  font: 16px/1.5 system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-user-select: none;
  user-select: none;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: calc(48px + env(safe-area-inset-top)) 0 36px;
}
.hero-icon { font-size: 68px; line-height: 1; }
.hero h1 { margin: 0; font-size: 26px; font-weight: 700; }

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

.subject {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 88px;
  padding: 0 18px;
  border-radius: 18px;
  background: #fff;
  border: 2px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: transform .1s;
}
.subject:active { transform: scale(.97); }
.subject .ic {
  flex: none;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  border-radius: 14px;
  background: #eff6ff;
}
.subject .tx { display: flex; flex-direction: column; min-width: 0; }
.subject .tx b { font-size: 19px; }
.subject .tx i {
  font-style: normal;
  font-size: 14px;
  color: var(--dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.subject .go { margin-left: auto; font-size: 26px; color: #cbd5e1; }

/* 学科配色：加新学科时在这里加一条 */
.subject.english .ic { background: #eff6ff; }
.subject.english:active { border-color: var(--blue); }

@media (min-width: 560px) {
  body { max-width: 560px; margin: 0 auto; }
}
