/* ============================================================
   罗德岛训练终端 · 首页 v3
   平面海报式：出血大标题 / 跑马灯横幅 / 反色索引列表
   ============================================================ */

:root {
  --bg: #2e2b26;
  --ink: #f0ead9;
  --paper: #eae3d0;
  --muted: #b8b0a0;
  --faint: #837c6e;
  --hairline: rgba(240, 234, 217, .13);
  --acc: #e0aa5e;      /* 柔琥珀 */
  --acc-red: #d4796a;  /* 柔朱红 */
  --mono: Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }
html { background: var(--bg); }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  background:
    radial-gradient(1100px 700px at 78% -8%, rgba(240, 214, 160, .07), transparent 62%),
    var(--bg);
  overflow-x: clip;
}

a { color: inherit; }
img { display: block; }

::selection { background: var(--acc); color: #2b2517; }

.page {
  max-width: 1440px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 clamp(20px, 4.5vw, 80px);
  display: flex;
  flex-direction: column;
}

/* ---------- 顶栏 ---------- */

.topbar {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--hairline);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand-mark { color: var(--acc); flex: none; }

.brand-text strong {
  display: block;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: .16em;
  white-space: nowrap;
}

.brand-text small {
  display: block;
  margin-top: 5px;
  font: 11px/1.2 var(--mono);
  letter-spacing: .22em;
  color: var(--faint);
}

.topbar-note {
  font: 13px/1 var(--mono);
  letter-spacing: .2em;
  color: var(--muted);
}

/* ---------- 主标题 ---------- */

.hero {
  padding: clamp(60px, 12vh, 140px) 0 clamp(44px, 8vh, 90px);
}

.eyebrow {
  margin: 0 0 30px;
  font: 14px/1.6 var(--mono);
  letter-spacing: .28em;
  color: var(--acc);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 34px;
  height: 1px;
  margin-right: 14px;
  background: var(--acc);
  vertical-align: middle;
}

h1 {
  margin: 0 0 0 -.04em; /* 视觉出血对齐 */
  font-size: clamp(58px, 10.5vw, 150px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: .015em;
  white-space: nowrap;
}

h1 em { font-style: normal; color: var(--acc); }

.lead {
  max-width: 500px;
  margin: clamp(30px, 4.5vh, 48px) 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 2;
}

/* ---------- 跑马灯 ---------- */

.ticker-wrap {
  padding: 14px 0 0;
  margin-bottom: -17px; /* 横幅下沿压住列表顶线，前后连贯 */
  position: relative;
  z-index: 2;
  pointer-events: none; /* 重叠区域不挡列表点击 */
}

.ticker {
  margin: 0 -30px;
  background: var(--acc);
  color: #2b2517;
  transform: rotate(-1.1deg);
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: max-content;
  padding: 12px 0;
  font: 800 15.5px/1 var(--mono);
  letter-spacing: .18em;
  white-space: nowrap;
  animation: tick 26s linear infinite;
}

@keyframes tick {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- 索引列表入口 ---------- */

.entries {
  margin-bottom: clamp(48px, 8vh, 96px);
}

.entry {
  position: relative;
  display: grid;
  grid-template-columns: clamp(70px, 8vw, 120px) minmax(0, 1fr) clamp(180px, 20vw, 280px);
  align-items: center;
  gap: clamp(20px, 3.5vw, 56px);
  padding: clamp(28px, 4.5vh, 44px) clamp(14px, 2vw, 28px);
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  transition: background .3s ease, color .3s ease;
}

/* 整行反色 */
.entry:hover, .entry:focus-visible {
  background: var(--paper);
  color: #2e2a22;
}

.entry-no {
  font: 300 clamp(34px, 4vw, 56px)/1 var(--mono);
  color: var(--faint);
  transition: color .3s ease;
}

.entry-no i {
  display: block;
  margin-top: 10px;
  font: 11px/1 var(--mono);
  font-style: normal;
  letter-spacing: .3em;
  color: var(--acc);
}

.entry-voice:hover .entry-no, .entry-voice:focus-visible .entry-no { color: var(--acc); }
.entry-clues:hover .entry-no, .entry-clues:focus-visible .entry-no { color: var(--acc-red); }

.entry-main strong {
  display: block;
  font-size: clamp(26px, 3.4vw, 46px);
  font-weight: 800;
  letter-spacing: .06em;
}

.entry-go {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font: 700 13.5px/1 var(--mono);
  letter-spacing: .2em;
}

.go-arrow {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 15px;
  transition: transform .35s ease, background .3s ease, color .3s ease, border-color .3s ease;
}

.entry:hover .go-arrow, .entry:focus-visible .go-arrow {
  transform: rotate(-45deg);
  background: var(--acc);
  border-color: var(--acc);
  color: #2b2517;
}

.entry-clues:hover .go-arrow, .entry-clues:focus-visible .go-arrow {
  background: var(--acc-red);
  border-color: var(--acc-red);
  color: #fff;
}

.entry-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.entry-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.45) brightness(.85);
  transform: scale(1.02);
  transition: filter .4s ease, transform .6s cubic-bezier(.22, .8, .26, .99);
}

.entry:hover .entry-thumb img, .entry:focus-visible .entry-thumb img {
  filter: none;
  transform: scale(1.1);
}

/* ---------- 底栏 ---------- */

.bottombar {
  margin-top: auto;
  padding: 22px 0 26px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font: 11.5px/1.7 var(--mono);
  letter-spacing: .16em;
  color: var(--faint);
}

/* ---------- 焦点 ---------- */

:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
}

.entry:focus-visible { outline-offset: -2px; }

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
  .entry { grid-template-columns: clamp(56px, 10vw, 80px) minmax(0, 1fr); }
  .entry-thumb { grid-column: 1 / -1; order: 3; aspect-ratio: 21 / 9; }
}

@media (max-width: 560px) {
  .topbar { height: 72px; }
  .brand-text small, .topbar-note { display: none; }
  .hero { padding: 52px 0 40px; }
  .eyebrow { font-size: 12.5px; letter-spacing: .2em; }
  h1 { font-size: clamp(44px, 13.5vw, 60px); }
  .lead { font-size: 15.5px; }
  .ticker { transform: rotate(-1.6deg); }
  .ticker-track { font-size: 13.5px; padding: 10px 0; }
  .entry { padding: 24px 4px; gap: 18px; }
  .entry-no { font-size: 30px; }
  .bottombar { flex-wrap: wrap; font-size: 10.5px; }
}

/* ---------- 减少动态效果 ---------- */

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; transform: none; }
  .ticker-track span:nth-child(2) { display: none; }
  .entry, .entry-no, .go-arrow, .entry-thumb img { transition: none; }
  .entry:hover .entry-thumb img { transform: scale(1.02); }
  .entry:hover .go-arrow { transform: none; }
}
