@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Rubik:wght@300;400;500;600;700&display=swap');

/* =============================================
   CSS 变量 & 重置
============================================= */
:root {
  --c-bg: #0D0D0D;
  --c-pink: #FF2D6B;
  --c-blue: #00C2FF;
  --c-surface: #161616;
  --c-surface2: #1e1e1e;
  --c-border: rgba(255,255,255,0.08);
  --c-text: #f0f0f0;
  --c-muted: #888;
  --c-white: #ffffff;
  --nav-w: 240px;
  --radius: 18px;
  --radius-sm: 10px;
  --font-head: 'Outfit', 'Rubik', system-ui, sans-serif;
  --font-body: 'Rubik', 'Outfit', system-ui, sans-serif;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --hero-h: 100vh;
  --scroll-top: 0px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--c-bg);
  color: var(--c-text);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  background: var(--c-bg);
  color: var(--c-text);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, menu { list-style: none; padding: 0; margin: 0; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }

/* =============================================
   辅助
============================================= */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* =============================================
   全局布局：左侧固定导航 + 主画布
============================================= */
.site-wrapper {
  display: flex;
  min-height: 100vh;
}

/* =============================================
   左侧竖排导航
============================================= */
.sidebar-nav {
  position: fixed;
  top: 0; left: 0;
  width: var(--nav-w);
  height: 100vh;
  background: #0a0a0a;
  border-right: 1px solid var(--c-border);
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 0 20px;
}

/* 品牌块 */
.brand-block {
  padding: 0 20px 24px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.brand-monogram {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--c-pink), var(--c-blue));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}

.logo-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  background: linear-gradient(90deg, var(--c-pink), var(--c-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.02em;
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--c-muted);
  line-height: 1.4;
}

/* details / summary 导航 */
.nav-details {
  flex: 1;
}

.nav-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--c-muted);
  text-transform: uppercase;
  user-select: none;
  min-height: 40px;
}

.nav-toggle-icon {
  width: 14px; height: 14px;
  border-right: 2px solid var(--c-muted);
  border-bottom: 2px solid var(--c-muted);
  transform: rotate(45deg);
  transition: transform var(--transition);
}

.nav-details[open] .nav-toggle-icon {
  transform: rotate(-135deg);
}

.nav-menu {
  padding: 6px 0;
}

.nav-menu li {
  width: 100%;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-text);
  border-radius: 0;
  transition: color var(--transition), background var(--transition);
  min-height: 44px;
  position: relative;
}

.nav-link:hover, .nav-link:focus-visible {
  color: var(--c-pink);
  background: rgba(255,45,107,0.08);
  outline: none;
}

.nav-indicator {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--c-muted);
  flex-shrink: 0;
  transition: background var(--transition), transform var(--transition);
}

.nav-link:hover .nav-indicator,
.nav-link:focus-visible .nav-indicator {
  background: var(--c-pink);
  transform: scale(1.8);
}

.nav-text {
  flex: 1;
}

/* 侧栏底部小提示 */
.sidebar-footer-note {
  padding: 16px 20px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--c-muted);
  border-top: 1px solid var(--c-border);
  margin-top: auto;
}

.dot-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-pink);
  display: inline-block;
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* =============================================
   主画布
============================================= */
.main-canvas {
  margin-left: var(--nav-w);
  flex: 1;
  min-width: 0;
}

/* =============================================
   Hero
============================================= */
.hero-section {
  position: relative;
  width: 100%;
  height: var(--hero-h);
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  scroll-margin-top: 0;
}

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

.hero-media--no-img {
  background: linear-gradient(135deg, #0D0D0D 0%, #1a0a12 40%, #0a121a 100%);
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(13,13,13,0.92) 0%,
    rgba(13,13,13,0.6) 50%,
    rgba(13,13,13,0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 40px 60px 40px 40px;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,45,107,0.15);
  border: 1px solid rgba(255,45,107,0.4);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--c-pink);
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-pink);
  animation: pulse 1.8s ease-in-out infinite;
}

.hero-h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.kinetic-title {
  display: block;
  background: linear-gradient(90deg, var(--c-white) 0%, var(--c-pink) 50%, var(--c-blue) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s linear infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-desc {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: rgba(240,240,240,0.75);
  max-width: 420px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--c-pink), #c4004f);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 24px rgba(255,45,107,0.35);
  min-height: 48px;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,45,107,0.55);
}

/* =============================================
   Reveal 动效（Intersection Observer 触发）
============================================= */
.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-item:nth-child(1) { transition-delay: 0.1s; }
.reveal-item:nth-child(2) { transition-delay: 0.25s; }
.reveal-item:nth-child(3) { transition-delay: 0.4s; }
.reveal-item:nth-child(4) { transition-delay: 0.55s; }

/* Stagger 列表 */
.stagger-list li {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-list.is-visible li { opacity: 1; transform: translateX(0); }
.stagger-list.is-visible li:nth-child(1) { transition-delay: 0.05s; }
.stagger-list.is-visible li:nth-child(2) { transition-delay: 0.12s; }
.stagger-list.is-visible li:nth-child(3) { transition-delay: 0.19s; }
.stagger-list.is-visible li:nth-child(4) { transition-delay: 0.26s; }
.stagger-list.is-visible li:nth-child(5) { transition-delay: 0.33s; }
.stagger-list.is-visible li:nth-child(6) { transition-delay: 0.40s; }
.stagger-list.is-visible li:nth-child(7) { transition-delay: 0.47s; }

@media (prefers-reduced-motion: reduce) {
  .reveal-item,
  .stagger-list li,
  .kinetic-title,
  .dot-pulse,
  .hero-cta {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =============================================
   正文主容器
============================================= */
.page-main {
  padding: 80px 0 60px;
}

/* scroll-margin-top for sections */
section[id] {
  scroll-margin-top: 80px;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.content-section {
  width: 100%;
}

.content-article {
  width: 100%;
}

.content-with-aside {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

.content-primary {
  min-width: 0;
}

/* 正文内 section 样式（page.content 里的 #section）*/
.content-primary section {
  background: var(--c-surface);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 32px;
  border: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
}

.content-primary section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--c-pink), var(--c-blue));
  border-radius: 4px 0 0 4px;
}

.content-primary h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  line-height: 1.2;
  color: var(--c-white);
  margin-bottom: 16px;
}

.content-primary h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--c-pink);
  margin: 24px 0 12px;
}

.content-primary p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(240,240,240,0.85);
  margin-bottom: 14px;
}

.content-primary ul, .content-primary ol {
  padding-left: 20px;
  margin-bottom: 14px;
}

.content-primary li {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(240,240,240,0.8);
  margin-bottom: 6px;
}

.content-primary a {
  color: var(--c-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-primary a:hover {
  color: var(--c-pink);
}

.content-primary small {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-pink);
  margin-bottom: 6px;
}

/* =============================================
   Aside 侧边栏
============================================= */
.content-aside {
  position: sticky;
  top: 80px;
}

.aside-inner {
  background: var(--c-surface);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--c-border);
}

.aside-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-blue);
  margin-bottom: 6px;
}

.aside-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--c-white);
  margin-bottom: 16px;
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}

.aside-link {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(240,240,240,0.75);
  background: rgba(255,255,255,0.03);
  transition: background var(--transition), color var(--transition);
  min-height: 40px;
  display: flex;
  align-items: center;
}

.aside-link:hover {
  background: rgba(255,45,107,0.1);
  color: var(--c-pink);
}

.aside-stat {
  border-top: 1px solid var(--c-border);
  padding-top: 16px;
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2rem;
  background: linear-gradient(90deg, var(--c-pink), var(--c-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--c-muted);
  margin-top: 4px;
}

/* =============================================
   页脚
============================================= */
.site-footer {
  background: #080808;
  border-top: 1px solid var(--c-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  max-width: 100%;
}

.footer-brand {
  padding: 56px 48px 40px;
  border-right: 1px solid var(--c-border);
}

.footer-brand-inner {
  max-width: 380px;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 12px;
}

.footer-brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  background: linear-gradient(90deg, var(--c-pink), var(--c-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--c-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-pink);
  margin-bottom: 8px;
}

.footer-about-text {
  font-size: 0.82rem;
  color: var(--c-muted);
  line-height: 1.6;
}

.footer-links {
  padding: 56px 48px 40px;
}

.footer-links-inner {}

.footer-links-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--c-white);
  margin-bottom: 16px;
}

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

.footer-nav-link {
  display: block;
  font-size: 0.9rem;
  color: var(--c-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--c-border);
  transition: color var(--transition), padding-left var(--transition);
  min-height: 40px;
  display: flex;
  align-items: center;
}

.footer-nav-link:hover {
  color: var(--c-blue);
  padding-left: 8px;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  border-top: 1px solid var(--c-border);
  font-size: 0.78rem;
  color: var(--c-muted);
  flex-wrap: wrap;
  gap: 8px;
}

/* =============================================
   正文 h2 前 small 眉题（build 补齐 + 内容区）
============================================= */
small + h2,
small + h3 {
  margin-top: 4px;
}

/* =============================================
   响应式断点
============================================= */
@media (max-width: 1100px) {
  :root { --nav-w: 210px; }
  .content-with-aside {
    grid-template-columns: 1fr 240px;
    gap: 32px;
  }
  .wrap { padding: 0 28px; }
}

@media (max-width: 900px) {
  .content-with-aside {
    grid-template-columns: 1fr;
  }
  .content-aside {
    position: static;
  }
  .site-footer {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    border-right: none;
    border-bottom: 1px solid var(--c-border);
    padding: 40px 28px 32px;
  }
  .footer-links { padding: 32px 28px 32px; }
  .footer-bottom { padding: 16px 28px; }
}

@media (max-width: 768px) {
  :root { --nav-w: 0px; }

  .sidebar-nav {
    position: fixed;
    top: auto;
    bottom: 0; left: 0;
    width: 100%;
    height: auto;
    max-height: 60vh;
    flex-direction: column;
    border-right: none;
    border-top: 1px solid var(--c-border);
    z-index: 200;
    transform: translateY(calc(100% - 56px));
    transition: transform var(--transition);
  }

  .sidebar-nav:has(.nav-details[open]) {
    transform: translateY(0);
  }

  .sidebar-inner {
    padding: 0;
    height: auto;
  }

  .brand-block {
    padding: 12px 20px;
    border-bottom: 1px solid var(--c-border);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .brand-tagline { display: none; }

  .nav-details { flex: none; }

  .nav-summary {
    padding: 16px 20px;
    font-size: 0.8rem;
    min-height: 56px;
  }

  .nav-menu {
    display: flex;
    flex-wrap: wrap;
    padding: 8px 12px 16px;
    gap: 6px;
  }

  .nav-menu li { width: auto; }

  .nav-link {
    padding: 8px 14px;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
    background: var(--c-surface2);
    min-height: 40px;
  }

  .sidebar-footer-note { display: none; }

  .main-canvas {
    margin-left: 0;
    padding-bottom: 80px;
  }

  .hero-content {
    padding: 32px 24px;
    max-width: 100%;
    align-items: flex-start;
    text-align: left;
  }

  .hero-h1 { font-size: clamp(2.2rem, 10vw, 3.5rem); }

  .content-primary section { padding: 28px 20px; }

  .wrap { padding: 0 16px; }

  .page-main { padding: 48px 0 40px; }

  section[id] { scroll-margin-top: 120px; }
}

@media (max-width: 480px) {
  .hero-cta { padding: 12px 24px; font-size: 0.92rem; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
