/* ============================================================
   情欲探花秀 · 唐伯虎探花直播
   Site Kit 共享样式 /assets/site.css
   暗黑 + 霓虹紫 + 玫红 + 金色 · 哥特标题 · 悬浮胶囊导航
   ============================================================ */

/* ---------- 1. CSS Variables ---------- */
:root {
  --c-base: #0d0b0f;
  --c-surface: #1a1420;
  --c-surface-2: #201826;
  --c-neon: #9b5cff;
  --c-rose: #ff2b7d;
  --c-gold: #f5c542;
  --c-text: #f2eef5;
  --c-text-dim: #a89dab;
  --c-border: #3a2d3f;
  --c-disabled: #4a4a5a;
  --c-safe: #0f3d2e;

  --grad-neon: linear-gradient(135deg, #9b5cff 0%, #ff2b7d 100%);
  --grad-gold: linear-gradient(135deg, #f5c542 0%, #ff8c42 100%);
  --grad-surface: linear-gradient(180deg, #1a1420, #141019);

  --font-heading: "Pirata One", "Cinzel", "STZhongsong", "SimSun", serif;
  --font-body: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;

  --header-h: 64px;
  --nav-h: 48px;
  --container-w: 1280px;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.45);
  --shadow-pop: 0 12px 40px rgba(0, 0, 0, 0.55);
  --shadow-neon: 0 0 20px rgba(155, 92, 255, 0.25);

  --ease: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- 2. Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-text);
  background-color: var(--c-base);
  background-image:
    radial-gradient(ellipse at 15% -10%, rgba(155, 92, 255, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 5%, rgba(255, 43, 125, 0.07) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 110%, rgba(155, 92, 255, 0.06) 0%, transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--c-neon);
  text-decoration: none;
  transition: color var(--ease), box-shadow var(--ease), background var(--ease), border-color var(--ease);
}

a:hover {
  color: var(--c-rose);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
}

::selection {
  background: rgba(155, 92, 255, 0.4);
  color: var(--c-text);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--c-base);
}

::-webkit-scrollbar-thumb {
  background: var(--c-border);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--c-neon);
}

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

.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 3000;
  padding: 12px 28px;
  background: var(--grad-neon);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 24px rgba(155, 92, 255, 0.5);
  transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skip-link:focus {
  top: 16px;
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- 4. Scroll Progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--c-neon), var(--c-rose), var(--c-gold));
  box-shadow: 0 0 14px rgba(255, 43, 125, 0.55), 0 1px 4px rgba(0, 0, 0, 0.4);
  z-index: 2500;
  pointer-events: none;
  border-radius: 0 3px 3px 0;
  transition: width 0.08s linear;
}

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13, 11, 15, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(58, 45, 63, 0.6);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02), 0 8px 32px rgba(0, 0, 0, 0.35);
}

.header-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Brand */
.brand-link {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  color: var(--c-text);
}

.brand-link:hover {
  color: var(--c-text);
}

.brand-cn {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-text);
  text-shadow: 0 0 24px rgba(155, 92, 255, 0.45);
  white-space: nowrap;
}

.brand-accent {
  color: var(--c-rose);
  text-shadow: 0 0 20px rgba(255, 43, 125, 0.6);
}

.brand-en {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  margin-top: 5px;
  white-space: nowrap;
}

/* Header tools */
.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-screen {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid rgba(245, 197, 66, 0.45);
  border-radius: var(--radius-pill);
  background: rgba(245, 197, 66, 0.06);
  color: var(--c-gold);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all var(--ease);
}

.btn-screen:hover {
  border-color: var(--c-gold);
  background: rgba(245, 197, 66, 0.12);
  color: var(--c-gold);
  box-shadow: 0 0 20px rgba(245, 197, 66, 0.18);
}

.btn-screen-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--c-gold);
  border-radius: 2px;
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(245, 197, 66, 0.7);
  flex-shrink: 0;
}

/* Nav toggle mobile */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
  background: var(--c-surface);
  color: var(--c-text-dim);
  transition: all var(--ease);
}

.nav-toggle:hover {
  color: var(--c-text);
  border-color: var(--c-neon);
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle-label {
  font-size: 13px;
  font-weight: 500;
}

/* ---------- 6. Navigation ---------- */
.primary-nav {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 32px 10px;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  gap: 4px;
  padding: 5px 6px;
  background: linear-gradient(180deg, var(--c-surface), #15111b);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 24px rgba(155, 92, 255, 0.06);
}

.nav-link {
  display: block;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--c-text-dim);
  white-space: nowrap;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.nav-link:hover {
  color: var(--c-text);
  background: rgba(155, 92, 255, 0.12);
}

.nav-link[aria-current="page"] {
  color: var(--c-text);
  background: linear-gradient(135deg, rgba(155, 92, 255, 0.28), rgba(255, 43, 125, 0.2));
  box-shadow: inset 0 0 0 1px rgba(155, 92, 255, 0.35), 0 0 16px rgba(155, 92, 255, 0.2);
}

/* ---------- 7. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: 80px;
  background: linear-gradient(180deg, #12101a 0%, #0d0b0f 60%);
  border-top: 1px solid rgba(58, 45, 63, 0.7);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(155, 92, 255, 0.55), rgba(255, 43, 125, 0.75), rgba(245, 197, 66, 0.5), transparent);
  opacity: 0.6;
  z-index: 2;
}

.site-footer::after {
  content: '唐';
  position: absolute;
  right: 4%;
  bottom: 12%;
  font-family: var(--font-heading);
  font-size: clamp(120px, 20vw, 260px);
  line-height: 1;
  color: rgba(255, 255, 255, 0.018);
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 64px 32px 44px;
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 56px;
}

.footer-brand {
  max-width: 340px;
}

.footer-brand-link {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 600;
  color: var(--c-text);
  letter-spacing: 0.04em;
  text-shadow: 0 0 30px rgba(155, 92, 255, 0.35);
}

.footer-brand-link:hover {
  color: var(--c-text);
}

.footer-slogan {
  margin-top: 10px;
  color: var(--c-rose);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.footer-trust {
  margin-top: 20px;
  padding-left: 14px;
  border-left: 2px solid rgba(155, 92, 255, 0.4);
  color: var(--c-text-dim);
  font-size: 13px;
  line-height: 1.9;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-heading {
  position: relative;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(58, 45, 63, 0.65);
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--c-neon), var(--c-rose));
  border-radius: 2px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: var(--c-text-dim);
  font-size: 14px;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-link:hover {
  color: var(--c-neon);
  padding-left: 5px;
}

.footer-line {
  color: var(--c-text-dim);
  font-size: 14px;
  line-height: 2;
  word-break: break-all;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(58, 45, 63, 0.35);
  background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--c-text-dim);
}

.footer-bottom-inner a {
  color: var(--c-text-dim);
}

.footer-bottom-inner a:hover {
  color: var(--c-gold);
}

/* ---------- 8. Container & Grid ---------- */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

.grid {
  display: grid;
  gap: 24px;
}

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

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ---------- 9. Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 30px;
  background: linear-gradient(135deg, var(--c-neon), var(--c-rose));
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 24px rgba(155, 92, 255, 0.35);
  transition: all var(--ease);
}

.btn-primary:hover {
  box-shadow: 0 6px 32px rgba(255, 43, 125, 0.45);
  transform: translateY(-2px);
  color: #fff;
}

.btn-primary:active {
  transform: scale(0.96) translateY(0);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 30px;
  background: transparent;
  color: var(--c-text);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  transition: all var(--ease);
}

.btn-ghost:hover {
  border-color: var(--c-neon);
  box-shadow: 0 0 18px rgba(155, 92, 255, 0.2);
  color: var(--c-text);
}

/* ---------- 10. Common Components ---------- */
.card {
  background: linear-gradient(180deg, var(--c-surface), #16111d);
  border: 1px solid rgba(58, 45, 63, 0.85);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
  border-color: rgba(155, 92, 255, 0.45);
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.5), 0 0 28px rgba(155, 92, 255, 0.08);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--c-text);
  margin-bottom: 20px;
  padding-bottom: 16px;
  position: relative;
  letter-spacing: 0.03em;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--c-neon), var(--c-rose));
  box-shadow: 0 0 12px rgba(255, 43, 125, 0.5);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--c-text-dim);
  padding: 16px 0;
}

.breadcrumb a {
  color: var(--c-text-dim);
}

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

.breadcrumb-separator {
  color: var(--c-border);
  font-size: 12px;
}

.breadcrumb [aria-current="page"] {
  color: var(--c-gold);
  font-weight: 500;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: rgba(155, 92, 255, 0.14);
  color: var(--c-neon);
  border: 1px solid rgba(155, 92, 255, 0.3);
}

.badge-gold {
  background: rgba(245, 197, 66, 0.12);
  color: var(--c-gold);
  border-color: rgba(245, 197, 66, 0.28);
}

.badge-rose {
  background: rgba(255, 43, 125, 0.12);
  color: var(--c-rose);
  border-color: rgba(255, 43, 125, 0.3);
}

.img-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--c-surface), var(--c-base));
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  color: var(--c-text-dim);
  font-size: 14px;
}

.img-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(155, 92, 255, 0.12), transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.img-frame img,
.img-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 0;
}

.img-frame-portrait {
  aspect-ratio: 3 / 4;
}

.img-frame-wide {
  aspect-ratio: 21 / 9;
}

.divider {
  height: 1px;
  border: none;
  margin: 32px 0;
  background: linear-gradient(90deg, transparent, var(--c-border) 25%, rgba(155, 92, 255, 0.35) 50%, var(--c-border) 75%, transparent);
}

/* ---------- 11. Responsive: Tablet & Desktop ---------- */
@media (min-width: 769px) {
  .nav-toggle {
    display: none;
  }
}

/* ---------- 12. Responsive: Mobile ---------- */
@media (max-width: 768px) {
  html {
    scroll-padding-top: calc(var(--header-h) + 16px);
  }

  .header-inner {
    height: 60px;
    padding: 0 16px;
    gap: 12px;
  }

  .brand-cn {
    font-size: 21px;
  }

  .brand-en {
    font-size: 8px;
    letter-spacing: 0.28em;
    margin-top: 4px;
  }

  .btn-screen {
    padding: 7px 14px;
    font-size: 13px;
    gap: 6px;
  }

  .btn-screen-dot {
    width: 6px;
    height: 6px;
  }

  .nav-toggle {
    padding: 7px 12px;
  }

  .nav-toggle-label {
    display: none;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    z-index: 1001;
    display: none;
    padding: 12px;
    background: linear-gradient(180deg, var(--c-surface), #141019);
    border: 1px solid var(--c-border);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65), 0 0 30px rgba(155, 92, 255, 0.08);
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }

  .primary-nav[data-open] {
    display: block;
    animation: navDrawerIn 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
  }

  .nav-link {
    display: block;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 15px;
    border-bottom: 1px solid rgba(58, 45, 63, 0.3);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-link:hover {
    background: rgba(155, 92, 255, 0.14);
  }

  .nav-link[aria-current="page"] {
    background: linear-gradient(135deg, rgba(155, 92, 255, 0.24), rgba(255, 43, 125, 0.16));
    box-shadow: inset 0 0 0 1px rgba(155, 92, 255, 0.3);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 20px 36px;
  }

  .footer-brand {
    max-width: none;
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-line {
    font-size: 13px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    padding: 16px 20px;
  }

  .container {
    padding: 0 20px;
  }

  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .btn-screen span:last-child {
    display: none;
  }

  .btn-screen {
    padding: 7px 10px;
  }
}

/* ---------- 13. Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-progress {
    transition: none;
  }

  .primary-nav[data-open] {
    animation: none;
  }

  .nav-toggle-bar {
    transition: none;
  }
}
