/* 欲漫涩 youwuhan.com — 全局样式 */
:root {
  --ink: #16131a;
  --ink-soft: #3a3440;
  --muted: #6b6270;
  --paper: #f3f0f4;
  --paper-2: #e8e3ea;
  --surface: #ffffff;
  --accent: #e67a1f;
  --accent-deep: #c45f0f;
  --accent-soft: #f0b56a;
  --nav-bg: rgba(22, 14, 10, 0.94);
  --nav-text: #fff8f0;
  --line: rgba(22, 19, 26, 0.1);
  --shadow: 0 20px 48px rgba(22, 14, 10, 0.12);
  --nav-h: 68px;
  --radius: 10px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 60% 38% at 0% 0%, rgba(230, 122, 31, 0.12), transparent 55%),
    radial-gradient(ellipse 42% 28% at 100% 8%, rgba(240, 181, 106, 0.16), transparent 50%),
    linear-gradient(180deg, #f7f4f6 0%, var(--paper) 42%, var(--paper-2) 100%);
  background-attachment: fixed;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-deep);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

ul, ol {
  padding-left: 1.25rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 0.75rem;
  letter-spacing: 0.03em;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(240, 181, 106, 0.14);
  transition: box-shadow 0.25s ease, background 0.25s ease;
  overflow: hidden;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.3);
  background: rgba(16, 10, 6, 0.97);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--nav-text);
  flex-shrink: 0;
  max-width: 48%;
  max-height: calc(var(--nav-h) - 16px);
  overflow: hidden;
}

.brand:hover {
  color: #fff;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

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

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

.nav-desktop a {
  color: rgba(255, 248, 240, 0.78);
  padding: 0.4rem 0.65rem;
  font-size: 0.9rem;
  border-radius: 6px;
}

.nav-desktop a:hover,
.nav-desktop a.is-active {
  color: #fff;
  background: rgba(230, 122, 31, 0.38);
}

.nav-cta {
  display: flex;
  gap: 0.4rem;
  margin-left: 0.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem 1.15rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

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

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

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn-ghost:hover {
  border-color: var(--accent-soft);
  color: #fff;
}

.nav-desktop .btn-ghost,
.nav-desktop .btn-primary {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  padding: 0.4rem 0.65rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
}

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







.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 999;
  background: #16100c;
  padding: 1rem 1.25rem 1.5rem;
  flex-direction: column;
  gap: 0.15rem;
  border-bottom: 1px solid rgba(240, 181, 106, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  color: rgba(255, 255, 255, 0.88);
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.95rem;
}

.nav-mobile a:hover {
  color: var(--accent-soft);
}

.mobile-auth {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.85rem;
  padding-top: 0.35rem;
}

.mobile-auth .btn {
  flex: 1;
}

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

.ads-slot {
  width: min(100% - 1.5rem, var(--max));
  margin: 0.75rem auto 0;
}

.ad-grid {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.5rem 0;
}

.ad-item img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 16px;
 width: 65px; height: 65px; aspect-ratio: 1 / 1; object-fit: cover; }

.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 10, 6, 0.28) 0%, rgba(16, 10, 6, 0.5) 45%, rgba(16, 10, 6, 0.92) 100%),
    linear-gradient(90deg, rgba(16, 10, 6, 0.55) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 3.5rem 0 3rem;
  animation: heroIn 0.9s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 3.7rem);
  margin: 0 0 0.6rem;
  color: #fff;
  letter-spacing: 0.1em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.hero-title {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 0.85rem;
  max-width: 32rem;
}

.hero-desc {
  color: rgba(255, 255, 255, 0.78);
  max-width: 34rem;
  margin-bottom: 1.5rem;
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-actions .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
}

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

.section {
  padding: 3.75rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.5);
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 2rem;
  max-width: 38rem;
}

.section-head h2 {
  font-size: clamp(1.55rem, 3vw, 1.95rem);
}

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

.intro-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.intro-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-height: 420px;
}

.intro-visual img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: center top;
}

.intro-copy h2 {
  font-size: clamp(1.45rem, 3vw, 1.85rem);
}

.intro-copy a {
  font-weight: 600;
  border-bottom: 1px solid rgba(230, 122, 31, 0.4);
}

.news-list {
  display: grid;
  gap: 1.25rem;
}

.news-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  transition: transform 0.25s ease;
}

.news-item:hover {
  transform: translateX(4px);
}

.news-thumb {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #ddd;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.news-item h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 0.4rem;
}

.news-item h3 a {
  color: var(--ink);
}

.news-item h3 a:hover {
  color: var(--accent);
}

.news-item p {
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}

.more-link {
  font-size: 0.88rem;
  font-weight: 600;
}

.feature-row {
  display: grid;
  gap: 1.75rem;
}

.feature {
  display: grid;
  gap: 0.85rem;
}

.feature-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius);
  background: #1a100c;
  box-shadow: var(--shadow);
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.45s ease;
}

.feature:hover .feature-media img {
  transform: scale(1.04);
}

.feature h3 {
  font-family: var(--font-body);
  font-weight: 650;
  font-size: 1.05rem;
  margin: 0;
}

.feature p {
  font-size: 0.92rem;
  margin: 0;
}

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

.video-card {
  display: grid;
  gap: 0.75rem;
}

.video-card .thumb {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: var(--radius);
  background: #1a100c;
  box-shadow: var(--shadow);
}

.video-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.45s ease;
}

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

.video-card h3 {
  font-family: var(--font-body);
  font-weight: 650;
  font-size: 1.05rem;
  margin: 0;
}

.video-card p {
  margin: 0;
  font-size: 0.92rem;
}

.faq-list {
  display: grid;
  gap: 0.65rem;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.faq-item h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  padding: 1rem 0;
  cursor: pointer;
  position: relative;
  padding-right: 2.5rem;
}

.faq-item h3::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2rem;
}

.faq-item.is-open h3::after {
  content: "–";
}

.faq-body {
  display: none;
  padding: 0 0 1.1rem;
}

.faq-item.is-open .faq-body {
  display: block;
  animation: fadeBody 0.3s ease;
}

.faq-body p {
  margin: 0;
  font-size: 0.94rem;
}

@keyframes fadeBody {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.site-footer {
  background: #120e0a;
  color: rgba(255, 255, 255, 0.72);
  padding: 3rem 0 1.5rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a:hover {
  color: var(--accent-soft);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  object-fit: contain;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  max-width: 28rem;
}

.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 650;
  color: #fff;
  margin-bottom: 0.85rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  font-size: 0.9rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.48);
}

.page-hero {
  padding: 2.5rem 0 1.5rem;
  background:
    linear-gradient(135deg, rgba(230, 122, 31, 0.1), transparent 55%),
    var(--surface);
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

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

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

.page-hero h1 {
  font-size: clamp(1.65rem, 3.5vw, 2.15rem);
  margin-bottom: 0.5rem;
}

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

.page-content {
  padding: 2.5rem 0 3.5rem;
}

.prose {
  max-width: 46rem;
}

.prose h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
}

.prose h3 {
  font-family: var(--font-body);
  font-weight: 650;
  font-size: 1.05rem;
  margin-top: 1.5rem;
}

.prose ul li,
.prose ol li {
  margin-bottom: 0.4rem;
  color: var(--ink-soft);
}

.content-visual {
  margin: 1.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-height: 380px;
}

.content-visual img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  object-position: center top;
}

.related-block {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.related-block h2 {
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

.related-grid {
  display: grid;
  gap: 1.25rem;
}

.related-item {
  display: grid;
  gap: 0.65rem;
}

.related-item .thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.related-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.related-item h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 650;
  margin: 0;
}

.related-item h3 a {
  color: var(--ink);
}

.related-item h3 a:hover {
  color: var(--accent);
}

.auth-wrap {
  max-width: 420px;
  margin: 0 auto;
  padding: 0.5rem 0 1rem;
}

.auth-wrap h1 {
  font-size: 1.55rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.auth-wrap .auth-lead {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

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

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--ink-soft);
}

.form-group input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fafafa;
}

.form-group input:focus {
  outline: 2px solid rgba(230, 122, 31, 0.3);
  border-color: var(--accent);
}

.auth-wrap .btn {
  width: 100%;
  margin-top: 0.5rem;
}

.auth-tip {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--accent-deep);
  min-height: 1.3em;
}

.auth-switch {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.9rem;
}

.error-page {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-box {
  max-width: 420px;
}

.error-code {
  font-family: var(--font-display);
  font-size: 4.5rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.error-box h1 {
  font-size: 1.45rem;
}

.error-box p {
  margin-bottom: 1.5rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 720px) {
  .intro-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2.5rem;
  }

  .news-item {
    grid-template-columns: 130px 1fr;
    gap: 1.25rem;
  }

  .feature-row {
    grid-template-columns: 1fr 1fr;
  }

  .video-grid {
    grid-template-columns: 1fr 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (min-width: 980px) {
  .nav-desktop {
    display: flex;
  }

  .menu-toggle {
    margin-left: 0.75rem;
  }

  .hero-content {
    padding: 4.5rem 0 3.5rem;
  }

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

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

  .news-item {
    grid-template-columns: 150px 1fr;
  }
}

@media (max-width: 479px) {
  .brand-name {
    font-size: 1.15rem;
  }

  .news-item {
    grid-template-columns: 88px 1fr;
    gap: 0.75rem;
  }

  .news-item h3 {
    font-size: 0.95rem;
  }

  .hero {
    min-height: min(78vh, 580px);
  }
}


/* 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;
}

