:root {
  --bg: #f4f1ec;
  --ink: #1a1512;
  --muted: #6b5e54;
  --line: rgba(26, 21, 18, 0.1);
  --brand: #e23d2d;
  --brand-dark: #b82e22;
  --surface: rgba(255, 252, 248, 0.92);
  --play: #fff7f0;
  --radius: 14px;
  --max: 920px;
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --display: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.7;
  background:
    radial-gradient(1100px 520px at 8% -10%, rgba(226, 61, 45, 0.16), transparent 55%),
    radial-gradient(900px 480px at 100% 0%, rgba(214, 160, 80, 0.14), transparent 50%),
    linear-gradient(180deg, #f7f2ea 0%, var(--bg) 42%, #ebe4da 100%);
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(255, 252, 248, 0.86);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-family: var(--display);
}

.brand:hover {
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brand);
}

.brand-sub {
  font-size: 0.86rem;
  color: var(--muted);
  font-family: var(--sans);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.92rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  opacity: 0.82;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--brand);
  opacity: 1;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 18px 48px;
}

.hero {
  margin-bottom: 22px;
  animation: rise 0.55s ease both;
}

.hero h1 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.hero h1 em {
  font-style: normal;
  color: var(--brand);
}

.hero-lead {
  margin: 0;
  max-width: 36em;
  color: var(--muted);
  font-size: 1.02rem;
}

.hub-block {
  margin: 20px 0;
  animation: rise 0.6s ease both;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 650;
}

.more-link {
  font-size: 0.86rem;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.more-link:hover {
  color: var(--brand);
}

.hub-status {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: var(--muted);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.chip,
.chip-link {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.3;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.chip:hover,
.chip-link:hover {
  border-color: rgba(226, 61, 45, 0.35);
  color: var(--brand);
  text-decoration: none;
}

.chip.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.search-bar {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.search-bar input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.98rem;
  background: #fff;
  color: var(--ink);
}

.search-bar input:focus {
  outline: 2px solid rgba(226, 61, 45, 0.35);
  outline-offset: 1px;
  border-color: rgba(226, 61, 45, 0.45);
}

.search-bar button {
  border: 0;
  border-radius: 12px;
  padding: 0 16px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 650;
  font-size: 0.92rem;
  cursor: pointer;
  white-space: nowrap;
}

.search-bar button:hover {
  background: var(--brand-dark);
}

.hot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.hot-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.hot-item:last-child {
  border-bottom: 0;
}

.hot-rank {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--brand);
  font-size: 0.92rem;
  line-height: 1.55;
}

.hot-item:nth-child(n+4) .hot-rank {
  color: var(--muted);
}

.hot-title {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.45;
}

.hot-title:hover {
  color: var(--brand);
}

.hot-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gallery-block {
  margin: 22px 0 18px;
  animation: rise 0.65s ease 0.05s both;
}

.badge {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--brand-dark);
  background: rgba(226, 61, 45, 0.1);
  border: 1px solid rgba(226, 61, 45, 0.18);
  padding: 3px 9px;
  border-radius: 999px;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  animation: rise 0.7s ease 0.1s both;
}

.thumb-card {
  position: relative;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #1a1512;
  aspect-ratio: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.thumb-hint {
  position: absolute;
  left: 8px;
  bottom: 8px;
  font-size: 0.72rem;
  font-weight: 650;
  color: #fff;
  background: rgba(226, 61, 45, 0.92);
  padding: 3px 8px;
  border-radius: 999px;
  pointer-events: none;
}

.thumb-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(26, 21, 18, 0.12);
}

.thumb-card:hover img {
  transform: scale(1.04);
}

.thumb-card:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 8, 6, 0.88);
}

.img-lightbox[hidden] {
  display: none !important;
}

.img-lightbox img {
  max-width: min(960px, 100%);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 10px;
}

.img-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

.media-empty {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.seo-block {
  margin-top: 28px;
  padding: 22px 0 8px;
  border-top: 1px solid var(--line);
  animation: rise 0.75s ease 0.15s both;
}

.seo-block h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 1.35rem;
}

.seo-block p {
  margin: 0 0 12px;
  color: var(--muted);
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.keyword-list li {
  font-size: 0.82rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
}

.faq {
  margin-top: 22px;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 252, 248, 0.7);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 18px 36px;
  display: grid;
  gap: 18px;
}

.footer-brand {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
}

.footer-brand span {
  color: var(--brand);
}

.footer-links,
.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-links a,
.footer-contacts a {
  color: var(--muted);
}

.footer-links a:hover,
.footer-contacts a:hover {
  color: var(--brand);
}

.footer-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  opacity: 0.9;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .thumb-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .brand-sub {
    display: none;
  }

  .hot-item {
    grid-template-columns: 24px 1fr;
  }

  .hot-meta {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .search-bar {
    flex-direction: column;
  }

  .search-bar button {
    padding: 12px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
