/* =========================================================
   鉴黄师 品牌站 — 共享样式
   暗色主题 + 金色点缀，PC / 移动端自适应
   ========================================================= */

/* ---------- 设计变量 ---------- */
:root {
  --bg:        #010406;
  --bg-2:      #0c0e11;
  --panel:     rgba(255, 255, 255, .05);
  --panel-2:   #1c1f25;
  --panel-3:   #23262d;
  --border:    rgba(255, 255, 255, .05);
  --border-2:  rgba(255, 255, 255, .14);

  --gold:      #e8a33d;
  --gold-2:    #f3c068;
  --gold-deep: #c8842a;
  --gold-grad: linear-gradient(135deg, #f5c873 0%, #e49b2e 100%);
  --gold-glow: rgba(232, 163, 61, .35);

  --text:      #f4f5f6;
  --text-2:    #c6cad0;
  --text-dim:  #8b9097;
  --text-mute: #5f656d;

  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --maxw:      1200px;
  --header-h:  72px;

  --shadow:    0 18px 50px rgba(0, 0, 0, .45);
  --ease:      .25s cubic-bezier(.4, 0, .2, 1);
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --motion-fast: 180ms;
  --motion-base: 420ms;
  --motion-slow: 720ms;
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg) url("https://g4w6v.com/cf230705/image/16u/tc/1zu/2n4/9937f2d5a00be1b7dc64fb97efac1f6f.webp") center top / 100% auto no-repeat;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--gold); }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

/* Figma 841:2502 — shared desktop Banner arrows. */
.hero-arrow.brand-banner-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: transparent;
  transform: translateY(-50%);
}
.hero-arrow.brand-banner-arrow.prev { left: 0; }
.hero-arrow.brand-banner-arrow.next { right: 0; }
.hero-arrow.brand-banner-arrow > img { width: 60px; height: 60px; pointer-events: none; }
.hero-arrow.brand-banner-arrow:hover { background: transparent; opacity: .82; }
.hero-arrow.brand-banner-arrow:focus-visible { outline: 3px solid #e5a0b7; outline-offset: 2px; background: transparent; }

/* ---------- 通用容器 / 工具类 ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* 视觉隐藏但保留给屏幕阅读器 / 搜索引擎（SEO 语义标题） */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* 响应式显隐：.pc-only ≥860px 显示，.mobile-only <860px 显示（断点规则见下方 860px 媒体查询） */
.pc-only { display: block; }
.mobile-only { display: none; }

.section { padding: 32px 0; position: relative; }
.section-sm { padding: 24px 0; }

.eyebrow {
  display: inline-block; color: var(--gold);
  font-size: 13px; letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(24px, 3.2vw, 38px); font-weight: 800;
  text-align: center; letter-spacing: 1px; line-height: 1.25;
}
.section-title .hl { color: var(--gold); }
.section-sub {
  text-align: center; color: var(--text-dim);
  max-width: 760px; margin: 16px auto 0; font-size: 15px;
}
.center { text-align: center; }

/* 金色描边标题装饰线 */
.title-deco { display: flex; align-items: center; justify-content: center; gap: 16px; }
.title-deco::before, .title-deco::after {
  content: ""; width: 46px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.title-deco::after { transform: scaleX(-1); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold-grad); color: #1a1206;
  box-shadow: 0 8px 24px -8px var(--gold-glow);
}
.btn-gold:hover { color: #1a1206; transform: translateY(-2px); box-shadow: 0 12px 30px -8px var(--gold-glow); }
.btn-ghost {
  border: 1px solid var(--border-2); color: var(--text);
  background: rgba(255, 255, 255, .03);
}
.btn-ghost:hover { color: var(--gold); border-color: var(--gold); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-block { width: 100%; }

/* =========================================================
   顶部导航
   ========================================================= */
/* 自定义元素包裹层不参与布局，保证 sticky 头部相对视口定位 */
site-header { display: contents; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: #131418;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  transition: background-color var(--motion-base) ease,
    border-color var(--motion-base) ease, box-shadow var(--motion-base) ease,
    backdrop-filter var(--motion-base) ease;
}
.site-header.is-scrolled {
  background: rgba(15, 16, 19, .88);
  border-bottom-color: rgba(247, 201, 107, .14);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .28);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
}
.site-scroll-progress {
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px; pointer-events: none; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, transparent 0%, var(--gold-2) 38%, var(--gold) 100%);
  box-shadow: 0 0 12px rgba(232, 163, 61, .42);
  will-change: transform;
}
.nav { height: 100%; display: flex; align-items: center; }
/* 右侧留白还原 Figma（导航不贴右边缘）—— 仅大屏生效，避免中等屏溢出 */
@media (min-width: 1100px) {
  .site-header .nav { padding-right: 120px; }
}

/* 品牌 logo —— 吉祥物 + 鉴(白)黄(金)师(白) */
.brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.brand .logo-mark { height: 30px; width: auto; display: block; }
.brand .logo-text { font-size: 22px; font-weight: 800; letter-spacing: 1px; color: #fff; }
.site-header .brand .logo-mark { height: 32px; }
.site-header .brand .logo-text { font-size: 24px; }
.brand .logo-text .g { color: var(--gold); }
.brand .logo-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  color: var(--gold); border: 1px solid var(--gold); border-radius: 40px;
  padding: 4px 8px; transform: translateY(-6px);
}

/* 导航链接 —— 右对齐胶囊，选中/悬停金色 */
.nav-links { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav-links > li > a {
  display: flex; align-items: center; justify-content: center;
  width: 100px; height: 44px; padding: 0 20px; border-radius: 100px;
  font-size: 16px; font-weight: 500; color: rgba(255, 255, 255, .7);
  white-space: nowrap; border: 1px solid transparent; transition: var(--ease);
}
.nav-links > li > a:active,
.btn:active,
.tab:active { transform: translateY(1px) scale(.985); }
.nav-links > li > a:hover {
  color: #fff; background: rgba(255, 255, 255, .05);
  border-color: var(--gold-2); box-shadow: 0 0 28px rgba(247, 201, 107, .26);
}
.nav-links > li > a.active {
  color: #fff8e6; border-color: var(--gold-2);
  background: linear-gradient(180deg, rgba(34, 26, 1, 0) 0%, #7d5e00 100%);
  box-shadow: inset 0 4px 4px rgba(255, 191, 0, .16);
}

.nav-links > li > .nav-app-download {
  border-radius: 999px; background: #f6c45c; color: #1d1609;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(246, 196, 92, .16);
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
}
.nav-links > li > .nav-app-download:hover {
  color: #1d1609; background: #ffd276; transform: translateY(-1px);
  border-color: transparent;
  box-shadow: 0 10px 28px rgba(246, 196, 92, .26);
}

/* 汉堡按钮（移动端） */
.nav-toggle {
  display: none; margin-left: auto; width: 36px; height: 36px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border: 1px solid var(--border-2); border-radius: 8px; background: rgba(255, 255, 255, .03);
  position: relative; z-index: 110;
}
.nav-toggle span { width: 16px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--ease); transform-origin: center; }
/* 打开时变 X */
.nav-toggle.on span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.on span:nth-child(2) { opacity: 0; }
.nav-toggle.on span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 移动端全屏抽屉（作为 header 的兄弟节点，避免被其堆叠上下文限制） */
.nav-drawer { display: none; }

/* =========================================================
   通用：区块背景光晕
   ========================================================= */
.glow-bg::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(232, 163, 61, .12), transparent 70%);
}
.section > .container { position: relative; z-index: 1; }

/* =========================================================
   通用卡片网格
   ========================================================= */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px;
}
.feature-card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; transition: var(--ease);
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: var(--shadow); }
.feature-card .ico {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(232, 163, 61, .12); color: var(--gold); margin-bottom: 18px;
}
.feature-card .ico svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-dim); font-size: 14px; line-height: 1.75; }
.feature-card .num {
  font-size: 13px; font-weight: 700; color: var(--gold);
  border: 1px solid var(--gold); border-radius: 6px; padding: 2px 8px;
  display: inline-block; margin-bottom: 16px;
}

/* ---------- 数据统计 ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  max-width: 900px; margin: 0 auto;
}
.stat { text-align: center; }
.stat .n {
  font-size: clamp(32px, 4vw, 48px); font-weight: 800;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; line-height: 1;
}
.stat .l { color: var(--text-dim); font-size: 14px; margin-top: 10px; }

/* =========================================================
   通用：分类标签 / Tabs
   ========================================================= */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 36px 0; }
.tab {
  padding: 9px 20px; border-radius: 999px; font-size: 14px; color: var(--text-2);
  background: var(--panel); border: 1px solid var(--border); transition: var(--ease);
}
.tab:hover { border-color: var(--border-2); color: var(--text); }
.tab.active { background: var(--gold-grad); color: #1a1206; border-color: transparent; font-weight: 600; }

/* ---------- 滚动进入动画 ---------- */
.reveal,
.motion-reveal {
  opacity: 0;
  filter: blur(5px);
  transform: translate3d(0, 24px, 0);
  transition:
    opacity var(--motion-slow) var(--ease-out) var(--motion-delay, 0ms),
    transform var(--motion-slow) var(--ease-out) var(--motion-delay, 0ms),
    filter var(--motion-base) ease var(--motion-delay, 0ms);
  will-change: opacity, transform;
}
.motion-reveal-card { transform: translate3d(0, 18px, 0) scale(.985); }
.reveal.in,
.motion-reveal.in { opacity: 1; filter: none; transform: none; will-change: auto; }

/* ---------- 全站微交互 ---------- */
.motion-surface {
  transition:
    transform var(--motion-base) var(--ease-out),
    border-color var(--motion-base) ease,
    box-shadow var(--motion-base) ease,
    background-color var(--motion-base) ease;
  transform-origin: center;
}

.motion-image {
  opacity: 1;
  filter: none;
  transition: transform var(--motion-slow) var(--ease-out);
}
.motion-image.is-loaded { animation: brand-image-in var(--motion-base) ease both; }
@keyframes brand-image-in {
  from { opacity: .72; filter: blur(3px); }
  to { opacity: 1; filter: none; }
}

:where(a, button, input, textarea, select):focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .motion-surface:hover { transform: translateY(-4px); }
  .motion-surface:active { transform: translateY(-1px) scale(.99); }
  .footer-social a,
  .footer-col a,
  .sec-head .more,
  .panel-more { transition: color var(--ease), transform var(--ease), opacity var(--ease); }
  .footer-social a:hover,
  .footer-col a:hover,
  .sec-head .more:hover { transform: translateY(-2px); }
}

/* 弹窗打开时统一提供遮罩与主体进入反馈。 */
:where(.notice-modal, .news-modal, .contact-modal, .artist-player-modal):not([hidden])
  :where(.notice-modal-backdrop, .news-modal-backdrop, .contact-modal-overlay, .artist-player-backdrop) {
  animation: brand-backdrop-in var(--motion-base) ease both;
}
:where(.notice-modal, .news-modal, .contact-modal, .artist-player-modal):not([hidden])
  :where(.notice-dialog, .news-modal-dialog, .contact-dialog, .artist-player-dialog) {
  animation: brand-dialog-in var(--motion-base) var(--ease-out) both;
}
@keyframes brand-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes brand-dialog-in {
  from { opacity: 0; transform: translate3d(0, 18px, 0) scale(.975); }
  to { opacity: 1; transform: none; }
}

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

@media (max-width: 860px) {
  body {  background-image: url("https://g4w6v.com/cf230705/image/1ma/e/160/3x/c3bae4c96e49cf137b21446945298442.webp"); }
  :root { --header-h: 60px; }
  .section { padding: 24px 0; }
  .site-header .brand .logo-mark { height: 24px; }
  .site-header .brand .logo-text { font-size: 18px; }
  /* 响应式显隐工具类 */
  .pc-only { display: none !important; }
  .mobile-only { display: block; }
  .hero-arrow.brand-banner-arrow { display: none; }

  /* 头部只保留 logo + 汉堡 */
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  /* 全屏抽屉：header 之外的兄弟节点，z 低于 header，使 logo+X 浮于其上 */
  .nav-drawer {
    display: flex; position: fixed; inset: 0; z-index: 90;
    flex-direction: column; align-items: center; justify-content: center; gap: 38px;
    background: #050507; padding: 80px 24px 48px;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
  }
  .nav-drawer.open { opacity: 1; visibility: visible; transform: none; }
  .nav-drawer-list { display: flex; flex-direction: column; align-items: center; gap: 38px; padding: 0; margin: 0; list-style: none; }
  .nav-drawer-list a { font-size: 19px; color: #fff; font-weight: 500; }
  .nav-drawer-list a.active { color: var(--gold); }
  .nav-drawer-list a:hover { color: var(--gold); }
  .nav-drawer-list .drawer-app-download {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 112px; height: 44px; padding: 0 24px; border-radius: 999px;
    background: #f6c45c; color: #1d1609; font-size: 17px; font-weight: 700;
  }
  .nav-more { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 14px; opacity: 1; transition: opacity var(--ease); }
  .nav-more img { display: block; width: 16px; height: 16px; }
  .nav-more:hover { opacity: 1; }

}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal,
  .motion-reveal,
  .motion-reveal-card,
  .motion-image {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
  .site-scroll-progress { display: none; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .feature-grid { grid-template-columns: 1fr; gap: 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
}


/* =========================================================
   通用组件响应式 / 杂项（原 pages.css 拆分出的共享部分）
   ========================================================= */

.page-hero {
  position: relative; overflow: hidden;
  padding: 60px 0 40px;
  background:
    radial-gradient(70% 120% at 80% 0%, rgba(232, 163, 61, .18), transparent 60%),
    linear-gradient(180deg, #100b06, var(--bg));
  border-bottom: 1px solid var(--border);
}

.page-hero h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: 2px; }

.page-hero p { color: var(--text-dim); margin-top: 12px; }
