/* 欲漫涩 yeobook.com — shared styles */
:root {
  --brand: #e85d04;
  --brand-dark: #c44a00;
  --brand-soft: #fff0e6;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #e7e5e4;
  --surface: #fffaf7;
  --card-bg: #ffffff;
  --nav-h: 64px;
  --radius: 12px;
  --shadow: 0 12px 40px rgba(28, 25, 23, 0.08);
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(232, 93, 4, 0.12), transparent 60%),
    radial-gradient(900px 500px at 100% 20%, rgba(255, 170, 100, 0.15), transparent 55%),
    linear-gradient(180deg, #fff7f2 0%, var(--surface) 40%, #fff 100%);
  line-height: 1.7;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Fixed header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(231, 229, 228, 0.9);
}

.header-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
  max-width: calc(100% - 3.5rem);
}

.brand-link:hover {
  text-decoration: none;
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.35rem;
}

.nav-desktop a {
  color: var(--ink);
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  font-size: 0.92rem;
  text-decoration: none;
}

.nav-desktop a:hover,
.nav-desktop a.is-active {
  background: var(--brand-soft);
  color: var(--brand-dark);
  text-decoration: none;
}

.nav-cta {
  display: none;
  gap: 0.5rem;
  margin-left: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.85rem;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}



.menu-toggle.is-open .label-open {
  display: none;
}



.nav-drawer {
  position: fixed;
  top: var(--nav-h);
  right: 0;
  width: min(86vw, 320px);
  height: calc(100vh - var(--nav-h));
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateX(105%);
  transition: transform 0.28s ease;
  z-index: 999;
  padding: 1.25rem;
  overflow-y: auto;
}

.nav-drawer.is-open {
  transform: translateX(0);
}

.nav-drawer a {
  display: block;
  padding: 0.75rem 0.5rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.nav-drawer a:hover {
  color: var(--brand-dark);
}

.drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 998;
}

.drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

main {
  padding-top: var(--nav-h);
}

/* Ads */
.ad-slot {
  padding: 0.85rem 0 0;
}

.ad-slot .ad-frame {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ad-slot img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #1c1917;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  animation: heroZoom 18s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 25, 23, 0.25) 0%, rgba(28, 25, 23, 0.78) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0 3rem;
  color: #fff;
  max-width: 720px;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  margin: 0 0 0.6rem;
  letter-spacing: 0.06em;
  line-height: 1.15;
  animation: fadeUp 0.8s ease both;
}

.hero h1 {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 600;
  margin: 0 0 0.75rem;
  line-height: 1.45;
  animation: fadeUp 0.8s ease 0.1s both;
}

.hero-lead {
  margin: 0 0 1.4rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  max-width: 36em;
  animation: fadeUp 0.8s ease 0.18s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: fadeUp 0.8s ease 0.26s both;
}

.hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

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

/* Sections */
.section {
  padding: 3.25rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.55);
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 40rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
  letter-spacing: 0.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.prose {
  max-width: 48rem;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--ink);
}

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  margin: 1.75rem 0 0.65rem;
}

.prose ul {
  padding-left: 1.2rem;
  color: var(--muted);
}

.prose li {
  margin-bottom: 0.4rem;
}

.ext-link {
  color: var(--brand-dark);
  border-bottom: 1px solid rgba(196, 74, 0, 0.35);
  text-underline-offset: 2px;
}

/* News / cards for interaction */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.news-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.news-card:hover {
  transform: translateY(-4px);
}

.news-card a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.news-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.news-card-body {
  padding: 1rem 1.1rem 1.2rem;
}

.news-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  line-height: 1.4;
}

.news-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Platform features */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.feature-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.feature-item img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 14px;
}

.feature-item h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Video galleries */
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.video-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
}

.video-tile img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.video-tile:hover img {
  transform: scale(1.04);
}

.video-tile figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 0.85rem 0.85rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: #fff;
  font-size: 0.9rem;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 48rem;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-weight: 600;
  position: relative;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand);
  font-size: 1.2rem;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item .faq-a {
  padding: 0 1.15rem 1.1rem;
  color: var(--muted);
  margin: 0;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(232, 93, 4, 0.08), transparent);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 0.5rem;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb span {
  opacity: 0.5;
}

.content-wrap {
  padding: 2.25rem 0 3.5rem;
}

.related {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.related h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.85rem;
}

.related ul {
  margin: 0;
  padding-left: 1.1rem;
}

.related li {
  margin-bottom: 0.4rem;
}

/* Error pages */
.error-page {
  min-height: calc(100vh - var(--nav-h) - 180px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--brand);
  line-height: 1;
  margin: 0;
}

.error-page h1 {
  margin: 0.5rem 0;
  font-size: 1.5rem;
}

.error-page p {
  color: var(--muted);
  margin: 0 0 1.25rem;
}

/* Auth */
.auth-box {
  width: min(100%, 420px);
  margin: 2rem auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.auth-box h1 {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
  font-size: 1.6rem;
}

.auth-box .hint {
  color: var(--muted);
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.form-field input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

.form-field input:focus {
  outline: 2px solid rgba(232, 93, 4, 0.35);
  border-color: var(--brand);
}

.auth-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

/* Footer */
.site-footer {
  background: #1c1917;
  color: rgba(255, 255, 255, 0.82);
  padding: 2.75rem 0 1.75rem;
  margin-top: 1rem;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: 0.04em;
}

.footer-col h3 {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: 0.95rem;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.45rem;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: #ffb074;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

@media (min-width: 720px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .video-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .menu-toggle {
    display: none;
  }

  .nav-desktop,
  .nav-cta {
    display: flex;
  }

  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .brand-link {
    max-width: none;
  }
}


/* icon-only menu toggle */
.menu-toggle .label-menu,
.menu-toggle .label-close,
.menu-toggle .label-open,
.menu-toggle .menu-label,
.menu-toggle .nav-toggle-label,
.menu-toggle [data-menu-label],
.menu-toggle [data-nav-label],
.nav-toggle .label-menu,
.nav-toggle .label-close,
.nav-toggle .menu-label,
.nav-toggle .nav-toggle-label,
.nav-toggle [data-nav-label],
.nav-toggle [data-menu-label] {
  display: none !important;
}
.menu-toggle,
.nav-toggle {
  gap: 0;
}

