/* 欲漫涩 ylqwh.com — 全局样式 */
:root {
  --ink: #12161f;
  --ink-soft: #2c3444;
  --muted: #5c6678;
  --paper: #eef1f6;
  --paper-2: #e4e9f1;
  --surface: #ffffff;
  --accent: #e85d04;
  --accent-deep: #c24a00;
  --accent-soft: #ff8c42;
  --navy: #151b28;
  --navy-soft: #222b3d;
  --amber: #f0b429;
  --line: rgba(18, 22, 31, 0.1);
  --shadow: 0 20px 48px rgba(21, 27, 40, 0.14);
  --nav-h: 68px;
  --radius: 10px;
  --font-display: "ZCOOL QingKe HuangYou", "Noto Sans SC", sans-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(ellipse 70% 45% at 8% 0%, rgba(232, 93, 4, 0.09), transparent 55%),
    radial-gradient(ellipse 45% 35% at 100% 8%, rgba(240, 180, 41, 0.08), transparent 50%),
    linear-gradient(180deg, #f7f8fb 0%, var(--paper) 42%, var(--paper-2) 100%);
  background-attachment: fixed;
  line-height: 1.75;
  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.35;
  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: rgba(21, 27, 40, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  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.28);
  background: rgba(15, 20, 30, 0.98);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  min-width: 0;
  max-width: calc(100% - 7rem);
  flex-shrink: 1;
  text-decoration: none;
}

.brand:hover {
  color: #fff;
}

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

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

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}

.nav-desktop > a {
  color: rgba(255, 255, 255, 0.82);
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  font-size: 0.93rem;
  white-space: nowrap;
}

.nav-desktop > a:hover,
.nav-desktop > a.is-active {
  color: #fff;
  background: rgba(232, 93, 4, 0.32);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.55rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 40px;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  font-family: inherit;
  text-decoration: none;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #fff;
}

.btn-primary:hover {
  color: #fff;
}

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

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

.btn-dark {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

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

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  margin-left: auto;
  flex-shrink: 0;
}

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







.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 999;
  background: #101622;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 1rem 1.25rem;
  transform: translateY(-6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.nav-mobile.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-mobile a {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  padding: 0.85rem 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 1rem;
}

.mobile-auth .btn {
  width: 100%;
}

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

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

/* —— Hero —— */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  align-items: end;
  overflow: hidden;
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 20, 30, 0.35) 0%, rgba(15, 20, 30, 0.55) 45%, rgba(12, 16, 24, 0.92) 100%),
    linear-gradient(90deg, rgba(15, 20, 30, 0.6) 0%, transparent 55%);
}

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

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

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: 0.08em;
  margin: 0 0 0.85rem;
  color: #fff;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.hero-content h1 {
  color: #fff;
  font-size: clamp(1.15rem, 2.6vw, 1.65rem);
  max-width: 22em;
  margin-bottom: 0.85rem;
}

.hero-content > p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 34em;
  font-size: 1.02rem;
}

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

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

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

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

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

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

.intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.intro-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}

.intro-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-copy p + p {
  margin-top: 0.15rem;
}

/* —— News / Cards —— */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card-link {
  color: inherit;
  display: block;
  height: 100%;
}

.card-link:hover {
  color: inherit;
}

.media-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-link:hover .media-card {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.media-card .thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #d8dde6;
}

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

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

.media-card .body {
  padding: 1rem 1.05rem 1.2rem;
}

.media-card .body h3 {
  font-size: 1.08rem;
  margin-bottom: 0.45rem;
}

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

/* —— Core —— */
.core-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.core-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease;
}

.core-item:hover {
  transform: translateY(-3px);
}

.core-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.core-item h3,
.core-item p {
  padding: 0 0.95rem;
}

.core-item h3 {
  margin-top: 0.9rem;
  font-size: 1.05rem;
}

.core-item p {
  padding-bottom: 1rem;
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* —— Categories —— */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.cat-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow);
}

.cat-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-item span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 0.85rem 0.85rem;
  background: linear-gradient(transparent, rgba(12, 16, 24, 0.88));
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
}

/* —— Video panels —— */
.video-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
  align-items: stretch;
}

.video-feature {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 360px;
  box-shadow: var(--shadow);
}

.video-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.video-feature .caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(12, 16, 24, 0.9));
  color: #fff;
  z-index: 1;
}

.video-feature .caption h3 {
  color: #fff;
  margin-bottom: 0.4rem;
}

.video-feature .caption p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.video-grid {
  display: grid;
  gap: 1rem;
  align-content: start;
}

@media (min-width: 961px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

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

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

.faq-item h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem 1.15rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item h3::after {
  content: "+";
  font-weight: 400;
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
}

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

.faq-item .answer {
  display: none;
  padding: 0 1.15rem 1.1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.faq-item.is-open .answer {
  display: block;
  animation: fadeUp 0.35s ease both;
}

/* —— Page chrome —— */
.page-hero {
  padding: 2.75rem 0 1.5rem;
  background:
    linear-gradient(135deg, rgba(21, 27, 40, 0.94), rgba(40, 28, 18, 0.88)),
    url("yumanseshouyeyoushengman_17.jpg") center / cover;
  color: #fff;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 38rem;
  margin-bottom: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

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

.breadcrumb span {
  opacity: 0.7;
}

.prose {
  max-width: 46rem;
}

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

.prose h3 {
  margin-top: 1.4rem;
  font-size: 1.15rem;
}

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

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

.related h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.auth-box {
  max-width: 420px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.auth-box label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--ink-soft);
}

.auth-box input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
  margin-bottom: 1rem;
  font: inherit;
  background: #fff;
}

.auth-box .btn {
  width: 100%;
}

.auth-tip {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--muted);
  min-height: 1.4em;
}

.error-page {
  min-height: calc(100vh - var(--nav-h));
  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(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.error-page h1 {
  font-size: 1.6rem;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

/* —— Footer —— */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

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

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
}

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

.site-footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.site-footer a {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  padding: 0.28rem 0;
  font-size: 0.92rem;
}

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

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

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

/* —— Responsive —— */
@media (max-width: 960px) {
  .intro-grid,
  .video-panel {
    grid-template-columns: 1fr;
  }

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

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

  .video-feature {
    min-height: 280px;
    aspect-ratio: 16 / 10;
  }

  .video-feature img {
    position: absolute;
  }
}

@media (max-width: 860px) {
  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

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

@media (min-width: 861px) {
  .nav-mobile {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .news-grid,
  .core-grid,
  .cat-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 72vh;
  }

  .hero-content {
    padding: 3rem 0 2.5rem;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .section {
    padding: 3rem 0;
  }
}


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

