/* 欲漫涩 youxwanjia.com — 全局样式 */
:root {
  --ink: #12151c;
  --ink-soft: #2c3340;
  --muted: #6a7385;
  --paper: #f4f6f9;
  --paper-2: #e8ecf2;
  --surface: #ffffff;
  --accent: #e85d04;
  --accent-deep: #c44a02;
  --accent-soft: #ffb703;
  --line: rgba(18, 21, 28, 0.1);
  --shadow: 0 16px 40px rgba(18, 21, 28, 0.1);
  --nav-h: 68px;
  --radius: 6px;
  --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 70% 45% at 0% 0%, rgba(232, 93, 4, 0.07), transparent 55%),
    radial-gradient(ellipse 50% 35% at 100% 10%, rgba(255, 183, 3, 0.08), transparent 50%),
    linear-gradient(180deg, #f8f9fc 0%, var(--paper) 45%, #eef1f6 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.3;
  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(244, 246, 249, 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 6px 24px rgba(18, 21, 28, 0.08);
  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.6rem;
  color: var(--ink);
  flex-shrink: 0;
  max-width: 50%;
  overflow: hidden;
}

.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.3rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
}

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

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

.nav-desktop > a:hover,
.nav-desktop > a.is-active {
  color: var(--accent);
  background: rgba(232, 93, 4, 0.08);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem 1.15rem;
  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: var(--accent);
  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);
}

.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.65rem;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.82rem;
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
}

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







.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 1.25rem 1.35rem;
  z-index: 999;
  box-shadow: var(--shadow);
  transform: translateY(-6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.nav-mobile a {
  display: block;
  padding: 0.8rem 0.4rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}

.nav-mobile .mobile-auth {
  display: flex;
  gap: 0.7rem;
  margin-top: 1rem;
  border-bottom: none;
}

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

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

/* —— 广告 —— */
.ads-slot {
  width: min(100% - 2rem, var(--max));
  margin: 0.85rem auto 0;
}

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

.ad-item {
  width: 65px;
  height: 65px;
  border-radius: 18px;
  overflow: hidden;
}

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

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

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.03);
  animation: heroDrift 20s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 21, 28, 0.28) 0%, rgba(18, 21, 28, 0.68) 50%, rgba(18, 21, 28, 0.92) 100%),
    linear-gradient(90deg, rgba(18, 21, 28, 0.55) 0%, transparent 55%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 3.25rem 0 3.75rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 9vw, 5.2rem);
  letter-spacing: 0.1em;
  margin: 0 0 0.85rem;
  color: #fff;
  animation: fadeUp 0.85s ease both;
}

.hero-title {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2.6vw, 1.4rem);
  font-weight: 500;
  margin: 0 0 0.8rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 22em;
  animation: fadeUp 0.85s ease 0.1s both;
}

.hero-desc {
  color: rgba(255, 255, 255, 0.72);
  max-width: 34em;
  margin-bottom: 1.6rem;
  font-size: 1rem;
  animation: fadeUp 0.85s ease 0.2s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  animation: fadeUp 0.85s ease 0.3s both;
}

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

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

@keyframes heroDrift {
  from { transform: scale(1.03) translateY(0); }
  to { transform: scale(1.07) translateY(-1.2%); }
}

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

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

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

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

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

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

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

/* —— 品牌介绍 —— */
.intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 2.5rem;
  align-items: center;
}

.intro-visual {
  position: relative;
  aspect-ratio: 3 / 4;
  max-height: 500px;
  overflow: hidden;
}

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

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

.intro-copy a {
  font-weight: 600;
  border-bottom: 1px solid rgba(196, 74, 2, 0.35);
}

.intro-copy a:hover {
  border-bottom-color: currentColor;
}

/* —— 资讯 —— */
.news-list {
  display: grid;
  gap: 1.6rem;
}

.news-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.2rem;
  align-items: start;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}

.news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--paper-2);
}

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

.news-item:hover .news-thumb img {
  transform: scale(1.04);
}

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

.news-item h3 {
  font-size: 1.12rem;
  margin-bottom: 0.45rem;
  font-family: var(--font-body);
  font-weight: 600;
}

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

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

.news-item p {
  font-size: 0.94rem;
  margin-bottom: 0.45rem;
}

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

/* —— 平台核心 —— */
.feature-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem;
}

.feature-media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: 0.9rem;
  background: var(--paper-2);
}

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

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

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

/* —— 视频区 —— */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.video-card .thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: 0.9rem;
  background: var(--paper-2);
}

.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.03);
}

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

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

/* —— 分类条 —— */
.cat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.cat-item {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  display: block;
  color: #fff;
}

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

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

.cat-item span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 0.75rem 0.85rem;
  background: linear-gradient(transparent, rgba(18, 21, 28, 0.85));
  font-weight: 600;
  font-size: 0.95rem;
}

/* —— FAQ —— */
.faq-list {
  max-width: 42rem;
}

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

.faq-item h3 {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  padding: 1.1rem 1.75rem 1.1rem 0;
  margin: 0;
  cursor: pointer;
  position: relative;
  color: var(--ink);
}

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

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

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.is-open .faq-body {
  max-height: 280px;
}

.faq-body p {
  padding-bottom: 1.1rem;
  font-size: 0.95rem;
}

/* —— Footer —— */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 3.25rem 0 1.75rem;
  margin-top: 2rem;
}

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

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

.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.55rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-brand img {
  width: 34px;
  height: 34px;
  border-radius: 7px;
}

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

.footer-col h3 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  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;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

/* —— 内页 —— */
.page-hero {
  padding: 2.75rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(232, 93, 4, 0.06), transparent 50%),
    rgba(255, 255, 255, 0.5);
}

.page-hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  margin-bottom: 0.5rem;
}

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

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

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

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

.prose {
  padding: 2.75rem 0 3.5rem;
  max-width: 46rem;
}

.prose h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  font-family: var(--font-body);
  font-weight: 700;
}

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

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

.article-cover {
  margin: 0 0 1.75rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper-2);
}

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

.related {
  padding: 0 0 3.5rem;
}

.related h2 {
  font-size: 1.25rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

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

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

.related-item .thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: 0.65rem;
  background: var(--paper-2);
}

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

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

/* —— 认证页 —— */
.auth-box {
  max-width: 420px;
  margin: 2.5rem auto 4rem;
  padding: 2rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.auth-box h1 {
  font-size: 1.55rem;
  margin-bottom: 0.5rem;
}

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

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

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

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

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

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

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

/* —— 错误页 —— */
.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, 14vw, 7rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

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

.error-page p {
  max-width: 28rem;
  margin: 0 auto 1.5rem;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

/* —— 响应式 —— */
@media (max-width: 960px) {
  .feature-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .video-grid,
  .related-list,
  .cat-strip {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .intro-visual {
    max-height: 380px;
    max-width: 280px;
    margin: 0 auto;
  }
}

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

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

  .nav-mobile {
    display: block;
  }

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

  .brand img {
    width: 32px;
    height: 32px;
  }

  .hero {
    min-height: calc(92vh - var(--nav-h));
  }

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

  .feature-row,
  .video-grid,
  .related-list,
  .cat-strip,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  :root {
    --nav-h: 60px;
  }

  .hero-actions .btn {
    width: 100%;
  }

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


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

