/* =========================================================
   拾光书阁 · 首页样式（pages/home.css，仅首页加载）
   Hero 搜索 / 双栏榜单 / 热门榜 / 最近更新
   ========================================================= */

/* ---------------- 首页 Hero ---------------- */

.hero {
  text-align: center;
  padding: 44px 16px 36px;
}
.hero h1 { font-size: clamp(24px, 4.6vw, 36px); font-weight: 800; letter-spacing: .04em; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px var(--glow-soft));
}
.hero-sub { color: var(--muted); margin: 10px 0 22px; font-family: var(--font-mono); letter-spacing: .12em; }
.hero-search {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
}
.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 11px 18px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(20, 13, 8, .8);
  color: var(--fg);
  font-size: 15px;
  box-shadow: var(--shadow);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.hero-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 16px var(--glow-soft); }

/* ---------------- 首页双栏 ---------------- */

.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 860px) { .home-grid { grid-template-columns: minmax(0, 1fr); } }
.home-grid > .panel { min-width: 0; }

/* 热门榜 */
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 8px;
  border-radius: 8px;
}
.rank-list li a:hover { background: rgba(245, 159, 0, .1); }
.rk {
  flex-shrink: 0;
  width: 24px;
  text-align: center;
  font-weight: 700;
  color: var(--muted);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.rk-top { color: #1c0f02; border-radius: 6px; font-size: 13px; line-height: 24px; }
.rk-1 { background: linear-gradient(135deg, #ff5c5c, #ff7a1a); }
.rk-2 { background: linear-gradient(135deg, #ff7a1a, #f59f00); }
.rk-3 { background: linear-gradient(135deg, #f59f00, #ffc53d); }
.rk-body { display: flex; flex-direction: column; min-width: 0; }
.rk-title { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-sub { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }

/* 最近更新 */
.update-list { list-style: none; margin: 0; padding: 0; }
.update-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  border-radius: 8px;
}
.update-list li a:hover { background: rgba(245, 159, 0, .1); }
.up-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.up-title { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-sub { font-size: 12px; color: var(--muted); font-family: var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-go { flex-shrink: 0; font-size: 13px; color: var(--accent); opacity: 0; transition: opacity .15s ease; }
.update-list li a:hover .up-go { opacity: 1; text-shadow: 0 0 10px var(--glow-soft); }

/* ---------------- 移动端适配 ---------------- */

@media (max-width: 720px) {
  .hero { padding: 28px 8px 24px; }
}
