/* 欲漫涩 yzzj168.com — 原创漫画门户样式 */
:root {
  --ink: #14181f;
  --ink-soft: #2e3644;
  --muted: #5c6678;
  --paper: #f2f4f7;
  --paper-alt: #e8ecf1;
  --surface: #ffffff;
  --accent: #ff8a00;
  --accent-deep: #e06d00;
  --accent-soft: #ffd199;
  --slate: #1c2430;
  --slate-deep: #0f141c;
  --line: rgba(20, 24, 31, 0.1);
  --shadow: 0 20px 48px rgba(15, 20, 28, 0.14);
  --nav-h: 68px;
  --radius: 12px;
  --font-display: "ZCOOL XiaoWei", "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 55% 42% at 100% 0%, rgba(255, 138, 0, 0.14), transparent 55%),
    radial-gradient(ellipse 48% 36% at 0% 18%, rgba(28, 36, 48, 0.08), transparent 50%),
    linear-gradient(180deg, #f7f8fb 0%, var(--paper) 42%, var(--paper-alt) 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;
}

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(247, 248, 251, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 28px rgba(15, 20, 28, 0.1);
  background: rgba(255, 255, 255, 0.96);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  flex-shrink: 0;
  max-width: 48%;
  overflow: hidden;
  height: 100%;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 9px;
  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;
  line-height: 1;
}

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

.nav-desktop > a {
  color: var(--ink-soft);
  padding: 0.4rem 0.62rem;
  font-size: 0.9rem;
  border-radius: var(--radius);
}

.nav-desktop > a:hover,
.nav-desktop > a.is-active {
  color: var(--accent-deep);
  background: rgba(255, 138, 0, 0.12);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.58rem 1.1rem;
  border-radius: var(--radius);
  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: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
}

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

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

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}

.btn-light {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

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

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.4rem 0.7rem;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  margin-left: auto;
}

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







.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 1.25rem 1.25rem;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: 0 16px 36px rgba(15, 20, 28, 0.1);
}

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

.nav-mobile a {
  color: var(--ink-soft);
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.nav-mobile a:hover {
  background: rgba(255, 138, 0, 0.1);
  color: var(--accent-deep);
}

.mobile-auth {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

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

.ads-slot {
  min-height: 0;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(92vh, 780px);
  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;
  transform: scale(1.02);
  animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(15, 20, 28, 0.9) 0%, rgba(15, 20, 28, 0.55) 48%, rgba(15, 20, 28, 0.22) 100%),
    linear-gradient(0deg, rgba(15, 20, 28, 0.8) 0%, transparent 42%);
}

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

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

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.5vw, 3.8rem);
  color: #fff;
  margin: 0 0 0.55rem;
  letter-spacing: 0.08em;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.hero-title {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.96);
  margin: 0 0 0.85rem;
  line-height: 1.5;
}

.hero-desc {
  color: rgba(255, 255, 255, 0.84);
  margin: 0 0 1.4rem;
  font-size: 0.98rem;
}

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

/* —— 区块 —— */
.section {
  padding: 4.2rem 0;
}

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

.section-dark {
  background:
    linear-gradient(160deg, var(--slate-deep) 0%, var(--slate) 55%, #243041 100%);
  color: #fff;
}

.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.section-dark p {
  color: rgba(255, 255, 255, 0.82);
}

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

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

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

.section-dark .section-head p {
  color: rgba(255, 255, 255, 0.7);
}

.lede {
  font-size: 1.05rem;
  color: var(--ink-soft);
}

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

.intro-visual {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--slate-deep);
}

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  color: inherit;
}

.article-card .thumb {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--slate-deep);
}

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

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

.article-card .body {
  padding: 1rem 1.05rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.article-card .tag {
  display: inline-block;
  width: fit-content;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-deep);
  background: rgba(255, 138, 0, 0.12);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
}

.article-card h3 {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0;
}

.article-card p {
  font-size: 0.88rem;
  margin: 0;
  color: var(--muted);
  flex: 1;
}

.article-card .more {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-deep);
}

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

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

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

.cat-item:hover img {
  transform: scale(1.05);
}

.cat-item .label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.2rem 0.9rem 0.9rem;
  background: linear-gradient(0deg, rgba(15, 20, 28, 0.88), transparent);
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
}

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

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

.feature-item .pic {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--slate);
}

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

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

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

.video-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.video-block {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  color: #fff;
  box-shadow: var(--shadow);
}

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

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

.video-block .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 20, 28, 0.88) 0%, rgba(15, 20, 28, 0.15) 55%);
}

.video-block .caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1.15rem;
  z-index: 1;
}

.video-block .caption h3 {
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 0.3rem;
}

.video-block .caption p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
}

.section-dark .video-block {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

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

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

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

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

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

.faq-a {
  display: none;
  margin: 0;
  padding: 0 1.15rem 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.faq-item.is-open .faq-a {
  display: block;
}

/* —— 页内通用 —— */
.page-hero {
  padding: 2.8rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 138, 0, 0.08), transparent);
}

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

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

.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 a:hover {
  color: var(--accent-deep);
}

.breadcrumb span {
  opacity: 0.5;
}

.prose {
  max-width: 46rem;
}

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

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

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

.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}

.article-cover {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  max-height: 420px;
}

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

.side-panel {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem;
}

.side-panel h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.side-panel a {
  display: block;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.side-panel a:last-child {
  border-bottom: none;
}

.side-panel a:hover {
  color: var(--accent-deep);
}

.related-block {
  margin-top: 2.5rem;
}

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

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

.auth-box h1 {
  font-size: 1.55rem;
  text-align: center;
}

.auth-box .hint {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

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

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

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

.form-row input:focus {
  outline: 2px solid rgba(255, 138, 0, 0.35);
  border-color: var(--accent);
}

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

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

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

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

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

.error-page p {
  max-width: 28rem;
  margin: 0 auto 1.35rem;
  color: var(--muted);
}

/* —— Footer —— */
.site-footer {
  background: var(--slate-deep);
  color: rgba(255, 255, 255, 0.78);
  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: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

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

.footer-brand span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  margin: 0;
  max-width: 22rem;
}

.site-footer h3 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

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

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

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

/* —— 动效 —— */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.reveal-delay-1 {
  transition-delay: 0.12s;
}

.reveal-delay-2 {
  transition-delay: 0.22s;
}

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

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

/* —— 响应式 —— */
@media (max-width: 960px) {
  .intro-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }

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

  .cat-strip {
    grid-template-columns: 1fr 1fr;
  }

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

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

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

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

  .feature-item {
    grid-template-columns: 96px 1fr;
  }

  .hero {
    min-height: min(86vh, 640px);
  }

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

@media (max-width: 520px) {
  .cat-strip {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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


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

