/* ============================================================
   首页：三屏叙事 / 试题卡 / 通知
   ============================================================ */

html.snap-page { scroll-snap-type: y mandatory; }

.page-home { overflow-x: hidden; }

.screen {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: 108px 0 62px;
  scroll-snap-align: start;
  scroll-margin-top: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.22, .61, .36, 1);
}

.reveal.in { opacity: 1; transform: none; }

/* ---------- 首次访问提示 ---------- */
.welcome-tip {
  position: fixed;
  top: 80px;
  left: 50%;
  z-index: 65;
  width: min(880px, calc(100% - 32px));
  padding: 12px 16px;
  border: 1px solid var(--blue-200);
  border-radius: 14px;
  background: rgba(255, 255, 255, .95);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}

.welcome-inner { display: flex; align-items: center; gap: 16px; }
.welcome-copy { display: grid; gap: 2px; min-width: 0; flex: 1; }
.welcome-copy strong { color: var(--navy); font-size: 13.5px; }
.welcome-copy span { color: var(--muted); font-size: 11.5px; }
.welcome-actions { display: flex; gap: 8px; flex: none; }

@media (max-width: 640px) {
  .welcome-tip { top: 74px; padding: 10px 12px; }
  .welcome-inner { flex-wrap: wrap; gap: 8px; }
  .welcome-copy span { display: none; }
  .welcome-actions { width: 100%; }
  .welcome-actions .btn { flex: 1; }
}

/* ---------- 第一屏 ---------- */
.hero {
  background:
    radial-gradient(760px 420px at 82% 18%, rgba(201, 224, 255, .55), transparent 68%),
    radial-gradient(520px 360px at 8% 88%, rgba(228, 240, 255, .8), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 54px;
}

.hero-title {
  margin: 10px 0 0;
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1.18;
  letter-spacing: -.02em;
  color: var(--navy);
}

.hero-title span {
  background: linear-gradient(120deg, var(--blue-500), var(--blue-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  max-width: 560px;
  margin-top: 20px;
  color: #4a6584;
  font-size: 15.5px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-actions .btn svg { width: 18px; height: 18px; }

.hero-metrics {
  display: flex;
  gap: 38px;
  margin: 34px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(201, 224, 255, .8);
}

.hero-metrics div { display: grid; gap: 2px; }
.hero-metrics dt { color: var(--navy); font-size: 23px; font-weight: 700; letter-spacing: -.02em; }
.hero-metrics dd { margin: 0; color: var(--muted); font-size: 12.5px; }

/* 右侧答题卡示意 */
.hero-visual { position: relative; }

.hero-card {
  position: relative;
  width: min(430px, 100%);
  margin-left: auto;
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 30px 70px rgba(30, 58, 138, .16);
  transform: rotate(-1.2deg);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  z-index: -1;
  border-radius: 26px;
  background: rgba(201, 224, 255, .38);
}

.hero-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--success);
  font-size: 12px;
  font-weight: 600;
}

.hero-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: live-pulse 1.8s ease infinite;
}

@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .35); }
  50% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
}

.mini-sheet {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 9px;
  padding: 16px;
  border-radius: 14px;
  background: #f7fbff;
  border: 1px solid var(--line-soft);
}

.mini-sheet span {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.mini-sheet .done {
  background: var(--blue-500);
  border-color: var(--blue-500);
  color: #fff;
}

.mini-sheet .current {
  background: #fff;
  border: 2px solid var(--blue-600);
  color: var(--blue-700);
}

.hero-card-bottom {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
}

.score-ring {
  position: relative;
  width: 96px;
  height: 96px;
  flex: none;
}

.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: #e4f0ff; stroke-width: 9; }
.ring-fg {
  fill: none;
  stroke: var(--blue-600);
  stroke-width: 9;
  stroke-linecap: round;
}

.score-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  padding-top: 32px;
}

.score-ring-text strong { color: var(--navy); font-size: 27px; line-height: 1; }
.score-ring-text span { color: var(--muted); font-size: 11px; }

.hero-card-label { color: var(--navy); font-size: 13.5px; font-weight: 600; }
.hero-card-note { margin-top: 4px; color: var(--muted); font-size: 12px; }

.hero-progress {
  height: 5px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--blue-100);
  overflow: hidden;
}

.hero-progress span {
  display: block;
  width: 62%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-300), var(--blue-600));
  animation: progress-slide 2.4s ease-in-out infinite alternate;
}

@keyframes progress-slide {
  from { width: 48%; }
  to { width: 78%; }
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.float-chip svg { width: 15px; height: 15px; color: var(--success); }
.chip-a { left: -22px; bottom: -18px; animation: float-y 4.6s ease-in-out infinite; }
.chip-b { right: -18px; top: 66px; animation: float-y 5.2s ease-in-out .6s infinite; }

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

/* 功能条 */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 46px;
}

.feature-card {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .66);
  border: 1px solid rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--blue-100);
  color: var(--blue-600);
  flex: none;
}

.feature-icon svg { width: 19px; height: 19px; }
.feature-card h3 { font-size: 14.5px; margin-bottom: 3px; }
.feature-card p { color: var(--muted); font-size: 12.5px; line-height: 1.65; }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transform: translateX(-50%);
  color: var(--muted-2);
  font-size: 11.5px;
  letter-spacing: .08em;
}

.scroll-hint svg { width: 17px; height: 17px; animation: hint-bounce 1.8s ease infinite; }
@keyframes hint-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ---------- 分屏圆点 ---------- */
.deck-dots {
  position: fixed;
  top: 50%;
  right: 26px;
  z-index: 40;
  display: grid;
  gap: 12px;
  transform: translateY(-50%);
}

.deck-dots button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.deck-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #b9d3f3;
  transition: .25s ease;
}

.deck-dots button:hover span { background: var(--blue-400); }
.deck-dots button.is-active span { height: 22px; background: var(--blue-600); }

/* ---------- 第二屏 ---------- */
.recent {
  background: radial-gradient(700px 380px at 88% 12%, rgba(228, 240, 255, .75), transparent 70%);
}

.screen-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.screen-title { font-size: clamp(27px, 3.4vw, 36px); margin-top: 4px; }
.screen-desc { margin-top: 9px; color: var(--muted); font-size: 14px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-600);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

.link-arrow svg { width: 16px; height: 16px; transition: transform .18s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

.recent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.exam-card {
  display: flex;
  flex-direction: column;
  min-height: 246px;
  padding: 24px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.exam-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue-200);
  box-shadow: 0 20px 44px rgba(30, 58, 138, .13);
}

.skeleton-card {
  background: linear-gradient(100deg, #f1f7ff 30%, #f9fcff 50%, #f1f7ff 70%);
  background-size: 220% 100%;
  animation: shimmer 1.6s linear infinite;
  border-color: transparent;
  box-shadow: none;
}

.exam-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.exam-status { color: var(--muted-2); font-size: 11.5px; }

.exam-card h3 {
  margin: 16px 0 8px;
  font-size: 19px;
  letter-spacing: -.01em;
}

.exam-card h3 a { color: var(--navy); }
.exam-card h3 a:hover { color: var(--blue-600); }

.exam-card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  min-height: 44px;
}

.exam-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 16px 0 18px;
  color: var(--muted);
  font-size: 12.5px;
}

.exam-meta span { display: inline-flex; align-items: center; gap: 5px; }
.exam-meta svg { width: 14px; height: 14px; color: var(--blue-400); }

.exam-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.exam-card-actions { display: flex; gap: 8px; }

.exam-card-foot .score-inline { color: var(--navy); font-size: 13px; font-weight: 700; }

.recent-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 12.5px;
}

.recent-note .dot { color: var(--blue-400); }
.recent-note a { margin-left: 2px; }

/* ---------- 第三屏 ---------- */
.notices { background: radial-gradient(640px 340px at 8% 10%, rgba(228, 240, 255, .7), transparent 70%); }

.notice-layout {
  display: grid;
  grid-template-columns: 1.45fr .9fr;
  gap: 20px;
  align-items: start;
}

.notice-list { display: grid; gap: 10px; }

.notice-item {
  padding: 18px 22px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.notice-item:hover { border-color: var(--blue-200); box-shadow: var(--shadow-sm); }

.notice-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted-2);
  font-size: 12px;
}

.notice-head .badge { padding: 2px 8px; font-size: 11px; }
.notice-date { margin-left: auto; font-variant-numeric: tabular-nums; }

.notice-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
}

.notice-title svg { width: 15px; height: 15px; color: var(--muted-2); transition: transform .2s ease; flex: none; }
.notice-item.is-open .notice-title svg { transform: rotate(180deg); }

.notice-summary { margin-top: 4px; color: var(--muted); font-size: 12.5px; line-height: 1.65; }

.notice-body {
  display: none;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  color: #47617f;
  font-size: 13px;
  line-height: 1.8;
}

.notice-item.is-open .notice-body { display: block; }

.rules-card { padding: 24px; }

.rules-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }

.rules-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--warning-bg);
  color: var(--warning);
  flex: none;
}

.rules-icon svg { width: 20px; height: 20px; }
.rules-head h3 { font-size: 15.5px; }
.rules-head p { color: var(--muted); font-size: 12px; }

.rules-list {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.rules-list li {
  display: flex;
  gap: 10px;
  color: #47617f;
  font-size: 12.5px;
  line-height: 1.7;
}

.rules-list li span {
  color: var(--blue-400);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  padding-top: 2px;
}

.friend-band {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 26px;
  padding: 15px 22px;
  border-radius: 14px;
  background: rgba(228, 240, 255, .55);
  border: 1px solid rgba(201, 224, 255, .7);
}

.friend-label { color: var(--muted); font-size: 12px; letter-spacing: .04em; }

.friend-band a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
}

.friend-band a:hover { color: var(--blue-700); }
.friend-url { color: var(--muted-2); font-size: 11.5px; font-weight: 400; }
.friend-split { width: 1px; height: 14px; background: var(--blue-200); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .hero-grid { gap: 30px; }
  .float-chip { display: none; }
  .deck-dots { right: 14px; }
}

@media (max-width: 900px) {
  html.snap-page { scroll-snap-type: none; }
  .screen { min-height: auto; padding: 96px 0 52px; }
  .hero { padding-top: 104px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-title { font-size: clamp(32px, 8vw, 44px); }
  .feature-strip { grid-template-columns: 1fr; margin-top: 32px; }
  .recent-grid { grid-template-columns: 1fr; }
  .notice-layout { grid-template-columns: 1fr; }
  .deck-dots { display: none; }
  .scroll-hint { display: none; }
  .screen-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-metrics { gap: 26px; }
}

@media (max-width: 520px) {
  .hero-metrics dt { font-size: 19px; }
  .hero-actions .btn { flex: 1; }
  .friend-band { gap: 10px 16px; }
  .friend-split { display: none; }
}
