:root {
  --bg: #121a30;
  --bg-2: #1a2744;
  --card: #223154;
  --ink: #f5f8ff;
  --muted: #c5d0e6;
  --line: #3d527c;
  --teal: #3ee0d0;
  --teal-dim: #145e5c;
  --yellow: #ffc107;
  --yellow-ink: #1a1404;
  --pink: #ff6b9a;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "WenQuanYi Micro Hei", "Droid Sans Fallback", "Segoe UI", sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  background:
    radial-gradient(1000px 420px at 0% -10%, rgba(62, 224, 208, 0.22), transparent 55%),
    radial-gradient(820px 380px at 100% 0%, rgba(255, 193, 7, 0.16), transparent 50%),
    radial-gradient(700px 360px at 80% 40%, rgba(255, 107, 154, 0.08), transparent 50%),
    var(--bg);
}

a { color: inherit; text-underline-offset: 0.18em; }
:focus { outline: 2px solid transparent; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
::selection { background: var(--yellow); color: var(--yellow-ink); }

.skip {
  position: absolute; left: 1rem; top: 0; z-index: 6;
  transform: translateY(-140%);
  background: var(--yellow); color: var(--yellow-ink);
  padding: 0.55rem 0.9rem; text-decoration: none;
}
.skip:focus { transform: none; }

.wrap { width: min(1180px, calc(100% - 1.5rem)); margin-inline: auto; }

.ticker {
  background: #0c1428;
  color: #e7eefc;
  font-size: 0.86rem;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.ticker .wrap { display: flex; gap: 0.8rem; align-items: center; min-height: 36px; }
.ticker b {
  flex: none;
  color: var(--yellow-ink);
  background: var(--yellow);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  font-size: 0.75rem;
}
.tick-mask { overflow: hidden; flex: 1; }
.tick-track { display: flex; width: max-content; animation: tick 46s linear infinite; }
.tick-track span { padding-right: 3rem; white-space: nowrap; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.site-head {
  background: rgba(18, 26, 48, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
  backdrop-filter: blur(10px);
}
.head-row { display: flex; align-items: center; gap: 0.7rem; min-height: 68px; }
.brand { font-weight: 800; letter-spacing: 0.03em; text-decoration: none; font-size: 1.2rem; display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; }
.brand i { width: 1.5rem; height: 1.5rem; border-radius: 0.4rem; background: var(--yellow); color: var(--yellow-ink); display: inline-grid; place-items: center; font-style: normal; font-size: 0.9rem; }
.nav { display: flex; flex-wrap: wrap; gap: 0.1rem; }
.nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 0.6rem; color: #e4ebf8; border-radius: 999px; }
.nav a[aria-current="page"] { background: rgba(62, 224, 208, 0.16); color: var(--teal); }

.pill, .float-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 1.05rem; border-radius: 999px;
  background: var(--yellow); color: var(--yellow-ink); text-decoration: none; font-weight: 800;
}
.head-row .pill { margin-left: auto; box-shadow: 0 6px 18px rgba(255, 193, 7, 0.28); }
.pill.xl { min-height: 52px; padding: 0 1.4rem; font-size: 1.05rem; }
.float-cta {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 6;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.doc { padding-bottom: 5rem; }

.hero { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.85fr); gap: 0.9rem; margin-top: 1rem; }
.carousel { position: relative; min-height: 420px; border-radius: 18px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28); }
.slide { position: absolute; inset: 0; display: block; text-decoration: none; opacity: 0; animation: rot 30s infinite; }
.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 6s; }
.slide:nth-child(3) { animation-delay: 12s; }
.slide:nth-child(4) { animation-delay: 18s; }
.slide:nth-child(5) { animation-delay: 24s; }
.slide picture, .slide img { position: absolute; inset: 0; width: 100%; height: 100%; }
.slide img { object-fit: cover; }
@keyframes rot {
  0%, 16% { opacity: 1; }
  20%, 100% { opacity: 0; }
}
.shade {
  position: absolute; inset: auto 0 0 0; padding: 1.3rem 1.2rem 1rem;
  background: linear-gradient(transparent, rgba(8, 12, 24, 0.88) 55%);
}
.shade .badge { position: static; }
.shade h1, .shade .hero-title { margin: 0.35rem 0 0; font-size: clamp(1.45rem, 2.5vw, 2.15rem); line-height: 1.25; font-weight: 800; }

.hot { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 0.85rem 0.9rem; }
.hot h2 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.hot ol { list-style: none; margin: 0; padding: 0; }
.hot a { display: grid; grid-template-columns: 1.7rem 64px minmax(0, 1fr); gap: 0.55rem; align-items: center; text-decoration: none; min-height: 56px; padding: 0.2rem 0; border-bottom: 1px solid rgba(61, 82, 124, 0.7); }
.hot a:last-child { border-bottom: 0; }
.hot a:hover .t { color: var(--yellow); }
.hot .n { color: var(--yellow); font-weight: 800; }
.hot .thumb { width: 64px; height: 40px; border-radius: 7px; overflow: hidden; }
.hot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hot .t { font-size: 0.88rem; line-height: 1.3; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; margin: 1rem 0 0.4rem; }
.stat, .stats .cta-stat { background: linear-gradient(180deg, #2a3b64, #1c2b4c); border: 1px solid var(--line); border-radius: 16px; padding: 0.9rem 1rem; }
.stat strong { display: block; font-size: 1.85rem; color: var(--yellow); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 0.88rem; }
.cta-stat { display: flex; align-items: center; justify-content: center; }

.tabs { display: flex; gap: 0.45rem; overflow-x: auto; padding: 0.35rem 0 0.2rem; }
.tabs a { flex: none; text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; gap: 0.35rem; padding: 0 0.85rem; border-radius: 999px; background: #1a2744; border: 1px solid var(--line); color: #e7eefc; }
.tabs a:hover, .tabs a:focus-visible { border-color: var(--yellow); color: var(--yellow); }
.tabs em { font-style: normal; color: var(--teal); font-size: 0.82rem; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 1.35rem 0 0.7rem; }
.section-head h2 { margin: 0; font-size: 1.28rem; }
.section-head a { color: var(--teal); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.count { color: var(--muted); font-weight: 600; font-size: 0.92rem; margin-left: 0.35rem; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.8rem; }
.gcard { display: flex; flex-direction: column; gap: 0.45rem; text-decoration: none; min-height: 44px; transition: transform 0.18s ease; }
.gcard:hover { transform: translateY(-5px); }
.frame { position: relative; aspect-ratio: 16/10; border-radius: 14px; overflow: hidden; background: #182848; border: 1px solid var(--line); }
.gcard:hover .frame { border-color: #ffd35c; box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32); }
.frame picture { display: block; height: 100%; }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.gcard:hover img { transform: scale(1.05); }
.badge, .datetag { position: absolute; z-index: 1; font-size: 0.72rem; line-height: 1; padding: 0.3rem 0.42rem; border-radius: 7px; font-weight: 700; }
.badge { top: 0.4rem; left: 0.4rem; background: rgba(12, 40, 48, 0.9); color: var(--teal); }
.badge.fresh { left: auto; right: 0.4rem; top: 0.4rem; background: var(--yellow); color: var(--yellow-ink); }
.badge.pick { top: 2rem; left: 0.4rem; background: var(--pink); color: #2a0614; }
.datetag { right: 0.4rem; bottom: 0.4rem; background: rgba(8, 12, 24, 0.72); color: #f4f7ff; }
.gcard-title { font-size: 0.92rem; line-height: 1.35; font-weight: 650; }

.topics { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 0.8rem; }
.topic { position: relative; display: block; min-height: 168px; border-radius: 16px; overflow: hidden; text-decoration: none; border: 1px solid var(--line); background: #243762; }
.topic img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.topic span { position: absolute; inset: auto 0 0 0; padding: 0.8rem 0.9rem; background: linear-gradient(transparent, rgba(8, 12, 24, 0.9)); display: flex; flex-direction: column; }
.topic b { font-size: 1.15rem; }
.topic small { color: var(--yellow); }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.35rem 0.45rem; list-style: none; padding: 0.9rem 0 0; margin: 0; color: var(--muted); font-size: 0.88rem; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 0.45rem; color: var(--line); }
.badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.7rem 0 0.2rem; }
.chip { background: #145e5c; color: var(--teal); border-radius: 999px; padding: 0.22rem 0.6rem; font-size: 0.8rem; font-weight: 700; }
.chip.fresh { background: var(--yellow); color: var(--yellow-ink); }
.chip.pick { background: var(--pink); color: #2a0614; }
h1 { font-size: clamp(1.7rem, 4vw, 2.45rem); line-height: 1.22; margin: 0.25rem 0 0.55rem; }
.lead { color: #e7eefc; font-size: 1.05rem; margin: 0 0 0.9rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1rem; }
.cover-block { margin: 0 0 1rem; }
.cover-block .frame { aspect-ratio: 16/9; border-radius: 16px; }
.info, .cta-box, .side-card, .prose-card { background: rgba(26, 39, 68, 0.92); border: 1px solid var(--line); border-radius: 16px; }
.info { width: 100%; border-collapse: collapse; overflow: hidden; }
.info th, .info td { text-align: left; padding: 0.7rem 0.95rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.info th { color: var(--muted); font-weight: 600; width: 7rem; }
.prose-card { padding: 0.95rem 1rem; margin: 0.9rem 0; }
.gallery { display: grid; gap: 0.7rem; margin: 0.8rem 0 1rem; }
.gallery img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); display: block; }
.prose-card h2, .cta-box h2, .side-card h2 { margin: 0 0 0.45rem; font-size: 1.05rem; }
.cta-box { padding: 1.1rem; margin: 0.9rem 0; background: linear-gradient(135deg, #3a2c08, #243762 55%); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem; }
.neighbors { display: flex; flex-wrap: wrap; gap: 0.7rem 1rem; }
.neighbors a { min-height: 44px; display: inline-flex; align-items: center; }
.side-card { padding: 0.85rem; margin-bottom: 0.75rem; }
.mini { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 0.55rem; align-items: center; text-decoration: none; min-height: 52px; padding: 0.3rem 0; border-bottom: 1px solid rgba(61, 82, 124, 0.65); }
.mini:last-child { border-bottom: 0; }
.mini .thumb { width: 72px; height: 44px; border-radius: 8px; overflow: hidden; }
.mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini b { display: block; font-weight: 650; line-height: 1.3; }
.mini small { color: var(--muted); }
.pager { display: flex; flex-wrap: wrap; gap: 0.55rem 0.8rem; align-items: center; margin-top: 1rem; }
.pager a, .pager span { min-height: 44px; display: inline-flex; align-items: center; }
.search-form { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: end; margin: 0.8rem 0; }
.search-form label { display: flex; flex-direction: column; gap: 0.3rem; flex: 1 1 16rem; }
input[type="search"], button { font: inherit; font-size: 1rem; min-height: 44px; }
input[type="search"] { background: #0f1730; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 0 0.75rem; }
button { background: var(--yellow); color: var(--yellow-ink); border: 0; border-radius: 999px; padding: 0 1rem; font-weight: 800; }
.results { list-style: none; padding: 0; }
.results a { display: flex; flex-direction: column; min-height: 44px; justify-content: center; padding: 0.45rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.when { color: #d5deee; font-size: 0.88rem; }
.counts div { display: grid; grid-template-columns: 1fr auto; gap: 1rem; border-bottom: 1px solid var(--line); padding: 0.65rem 0; }
.counts dt { margin: 0; }
.counts dd { margin: 0; color: var(--yellow); font-size: 1.2rem; }
.site-foot { border-top: 1px solid var(--line); padding: 1.4rem 0 2.2rem; color: var(--muted); background: #0e162b; }
.friends { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; align-items: center; }
.friends a { color: var(--yellow); min-height: 44px; display: inline-flex; align-items: center; }
.prose { max-width: 46rem; }
.fine { color: var(--muted); font-size: 0.88rem; }

@media (max-width: 1000px) {
  .hero, .article-layout, .topics { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats { grid-template-columns: 1fr 1fr; }
  .carousel { min-height: 320px; }
}
@media (max-width: 700px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .head-row { flex-wrap: wrap; padding: 0.35rem 0; }
  .head-row .pill { margin-left: 0; }
  .carousel { min-height: 230px; }
  .hot a { grid-template-columns: 1.5rem 56px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tick-track, .slide, .gcard, .frame img { animation: none; transition: none; }
  .slide { opacity: 0; }
  .slide:first-child { opacity: 1; }
}
