:root {
  --bg: #0c0b0f;
  --bg-soft: #15131a;
  --bg-card: #1c1922;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f0ea;
  --muted: #a89f96;
  --brand: #e84a6f;
  --brand-deep: #c23055;
  --accent: #f0b45a;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --max: 1120px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", Georgia, serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(232, 74, 111, 0.18), transparent 55%),
    radial-gradient(900px 500px at 95% 5%, rgba(240, 180, 90, 0.12), transparent 50%),
    linear-gradient(180deg, #120f16 0%, var(--bg) 40%, #09080c 100%);
  min-height: 100vh;
  line-height: 1.75;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #5ec8ff;
  text-decoration: none;
}

a:hover {
  color: #9adcff;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(12, 11, 15, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.brand span {
  color: var(--brand);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text);
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3rem;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(12, 11, 15, 0.92) 28%, rgba(12, 11, 15, 0.55) 58%, rgba(12, 11, 15, 0.35) 100%),
    url("/daily-picks.jpg") center / cover no-repeat;
  z-index: -1;
  transform: scale(1.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from { transform: scale(1.02) translateY(0); }
  to { transform: scale(1.08) translateY(-1.5%); }
}

.hero-inner {
  max-width: 680px;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.hero p {
  margin: 0 0 1.5rem;
  color: #ddd4cb;
  font-size: 1.05rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  color: #fff;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  box-shadow: 0 10px 30px rgba(232, 74, 111, 0.35);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

section {
  padding: 3.5rem 0;
}

.section-head {
  margin-bottom: 1.8rem;
}

.section-head h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 720px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.media-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.media-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 74, 111, 0.4);
}

.media-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.media-card.landscape img {
  aspect-ratio: 16 / 10;
}

.media-card .cap {
  padding: 0.9rem 1rem 1.1rem;
}

.media-card .cap h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.media-card .cap p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.chip {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(232, 74, 111, 0.15);
  color: #ff9ab3;
  font-size: 0.75rem;
}

.prose {
  color: #d8d0c7;
}

.prose h2,
.prose h3 {
  color: var(--text);
  font-family: var(--font-display);
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul {
  margin: 0 0 1.2rem;
  padding-left: 1.2rem;
  color: var(--muted);
}

.prose a {
  color: #5ec8ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: #9adcff;
}

.feature-list {
  display: grid;
  gap: 1rem;
}

.feature-item {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(28, 25, 34, 0.85);
}

.feature-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.panel {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.panel h3 {
  margin-top: 0;
  font-family: var(--font-display);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tag-cloud a {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.88rem;
}

.tag-cloud a:hover {
  border-color: rgba(232, 74, 111, 0.5);
  color: var(--text);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin: 1.5rem 0 0;
}

.stat {
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.35rem;
  color: var(--accent);
  font-family: var(--font-display);
}

.stat span {
  color: var(--muted);
  font-size: 0.85rem;
}

.page-hero {
  padding: 3rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 760px;
}

.breadcrumb {
  margin-bottom: 0.9rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.breadcrumb a {
  color: #d7cfc6;
}

.content-wrap {
  padding: 2.5rem 0 4rem;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page h1 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  color: var(--brand);
}

.error-page p {
  margin: 0 0 1.4rem;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #09080c;
  padding: 2.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer h3 {
  margin: 0 0 0.8rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: #5ec8ff;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.45rem;
}

.copyright {
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: #7f776f;
  font-size: 0.85rem;
}

.fade-up {
  animation: fadeUp 0.7s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 960px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .stat-row,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem 1rem 1rem;
    background: rgba(12, 11, 15, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 0.4rem;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    padding: 3rem 0 2.2rem;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(12, 11, 15, 0.78) 0%, rgba(12, 11, 15, 0.92) 100%),
      url("/daily-picks.jpg") center / cover no-repeat;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .stat-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .media-card img {
    aspect-ratio: 3 / 4;
  }
}
