/* 欲漫涩 yangxinyue.xyz — 全局样式 */
:root {
  --ink: #12161c;
  --ink-soft: #2c3540;
  --muted: #5c6b7a;
  --paper: #f3f5f8;
  --paper-2: #e6ebf1;
  --surface: #ffffff;
  --accent: #e85d04;
  --accent-deep: #c44a02;
  --accent-soft: #ffb347;
  --line: rgba(18, 22, 28, 0.1);
  --shadow: 0 20px 48px rgba(18, 22, 28, 0.1);
  --nav-h: 72px;
  --radius: 6px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", "Songti 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(ellipse 70% 45% at 0% 0%, rgba(232, 93, 4, 0.07), transparent 55%),
    radial-gradient(ellipse 55% 40% at 100% 8%, rgba(92, 107, 122, 0.12), transparent 50%),
    linear-gradient(180deg, #f7f8fb 0%, var(--paper) 45%, 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;
}

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(243, 245, 248, 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(18, 22, 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.65rem;
  color: var(--ink);
  flex-shrink: 0;
  max-width: 55%;
  overflow: hidden;
}

.brand img {
  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.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-desktop a {
  color: var(--ink-soft);
  padding: 0.45rem 0.7rem;
  font-size: 0.92rem;
  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.5rem;
  margin-left: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.92rem;
  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.4rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.45rem 0.7rem;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  margin-left: auto;
}

.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: 1rem 1.25rem 1.5rem;
  z-index: 999;
  box-shadow: var(--shadow);
  transform: translateY(-8px);
  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.85rem 0.5rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}

.nav-mobile .mobile-auth {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

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

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

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

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

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

.ad-item a {
  display: block;
  width: 100%;
  height: 100%;
}

.ad-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
 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.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

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

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

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5rem);
  letter-spacing: 0.1em;
  margin: 0 0 1rem;
  color: #fff;
  animation: fadeUp 0.9s ease both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  margin: 0 0 0.85rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 18em;
  animation: fadeUp 0.9s ease 0.12s both;
}

.hero-desc {
  color: rgba(255, 255, 255, 0.78);
  max-width: 32em;
  margin-bottom: 1.75rem;
  font-size: 1.02rem;
  animation: fadeUp 0.9s ease 0.22s both;
}

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

.hero .btn-primary {
  box-shadow: 0 10px 30px rgba(232, 93, 4, 0.4);
}

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

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

@keyframes heroDrift {
  from { transform: scale(1.02) translateY(0); }
  to { transform: scale(1.06) translateY(-1.5%); }
}

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

/* —— 通用区块 —— */
.section {
  padding: 4.5rem 0;
}

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

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

.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.15rem);
}

.section-head p {
  font-size: 1.02rem;
}

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

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

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

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

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

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

.intro-copy a {
  font-weight: 600;
  border-bottom: 1px solid transparent;
}

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

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

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

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

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

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

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

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

.news-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

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

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

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

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

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

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

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

.feature h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

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

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

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

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

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

.video-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

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

/* —— FAQ —— */
.faq-list {
  max-width: 720px;
}

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

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

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

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

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

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

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

/* —— 页面通用正文 —— */
.page-hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(232, 93, 4, 0.06), transparent);
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
}

.page-hero .lead {
  max-width: 40rem;
  font-size: 1.05rem;
}

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

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

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

.breadcrumb span {
  margin: 0 0.35rem;
  opacity: 0.5;
}

.content-block {
  padding: 3rem 0 4rem;
}

.prose {
  max-width: 720px;
}

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

.prose h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
}

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

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

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

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

.related-item .thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: 0.65rem;
  border-radius: 6px;
}

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

.related-item h3 {
  font-size: 0.98rem;
}

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

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

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

/* —— 错误页 —— */
.error-page {
  min-height: calc(100vh - var(--nav-h) - 200px);
  display: flex;
  align-items: center;
  padding: 3rem 0;
  text-align: center;
}

.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.5rem;
}

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

/* —— 表单页 —— */
.auth-panel {
  max-width: 420px;
  margin: 2rem auto 4rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

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

.auth-panel input {
  width: 100%;
  padding: 0.75rem 0.85rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
}

.auth-panel input:focus {
  outline: 2px solid rgba(232, 93, 4, 0.25);
  border-color: var(--accent);
}

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

.auth-note {
  font-size: 0.88rem;
  margin-top: 1rem;
  text-align: center;
}

[data-auth-tip] {
  color: var(--accent-deep);
  font-size: 0.9rem;
  min-height: 1.4em;
}

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

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

.site-footer a:hover {
  color: #fff;
}

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

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
  object-fit: contain;
}

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

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

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

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

  .intro-visual {
    max-height: 420px;
    max-width: 320px;
    margin-inline: auto;
  }

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

@media (max-width: 768px) {
  :root {
    --nav-h: 64px;
  }

  .nav-desktop {
    display: none;
  }

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

  .nav-mobile {
    display: block;
  }

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

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

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

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

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

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

@media (max-width: 520px) {
  .feature-row,
  .video-grid {
    grid-template-columns: 1fr;
  }

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

  .ad-item {
    width: 100px;
    height: 100px;
  }
}


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

