@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: #261717;
  color: #f0e6e6;
}

body {
  font-family: 'Source Sans 3', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  background: linear-gradient(135deg, #261717 0%, #1a0a2e 50%, #260a0a 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== 色彩变量 ===== */
:root {
  --red: #ff0000;
  --purple: #8b00ff;
  --dark: #261717;
  --glass-bg: rgba(255, 255, 255, 0.10);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-bg-strong: rgba(255, 0, 0, 0.12);
  --glass-shadow: 0 8px 32px rgba(139, 0, 255, 0.25);
  --text-bright: #fff;
  --text-muted: rgba(240, 220, 220, 0.70);
  --nav-h: 68px;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, menu {
  list-style: none;
}

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

/* div 统一加 scroll-margin-top，适配底部固定导航 */
div {
  scroll-margin-top: calc(var(--nav-h) + 12px);
}

/* ===== 站点包裹 ===== */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: var(--nav-h);
}

/* ===== 磨砂玻璃工具类 ===== */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
}

/* ===== 底部固定导航 ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.nav-bar-fixed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(38, 23, 23, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--glass-border);
  height: var(--nav-h);
  padding: 0 8px;
  box-shadow: 0 -4px 24px rgba(139, 0, 255, 0.30);
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}

.nav-right {
  justify-content: flex-end;
}

/* tap 区域 ≥40px：min-height + padding 保证 */
.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 11px 10px;
  min-width: 52px;
  min-height: 52px;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s, background 0.2s;
  border-radius: 8px;
}

.nav-link svg {
  flex-shrink: 0;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--red);
  background: rgba(255, 0, 0, 0.10);
}

.nav-link span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 44px;
  display: block;
  text-align: center;
}

/* 中央品牌按钮 */
.nav-brand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--purple));
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.50), 0 0 40px rgba(139, 0, 255, 0.30);
  flex-shrink: 0;
  margin: 0 6px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-brand-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 28px rgba(255, 0, 0, 0.70), 0 0 50px rgba(139, 0, 255, 0.45);
}

.nav-logo-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: 0.05em;
}

/* details 展开式全屏导航 */
.nav-details {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  pointer-events: none;
}

.nav-details[open] {
  pointer-events: auto;
}

/* summary 作为触发器隐藏，tap 区域由 nav-bar-fixed 的品牌按钮承担 */
.nav-brand-center {
  display: none;
}

.nav-menu-expanded {
  display: none;
  position: fixed;
  bottom: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(26, 10, 46, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  padding: 16px;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  z-index: 998;
}

.nav-details[open] .nav-menu-expanded {
  display: grid;
}

.nav-menu-expanded .nav-link {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 14px 8px;
  min-height: 60px;
}

/* ===== Hero 区块 ===== */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  padding: 60px 5% 60px;
}

.hero-bg-text {
  position: absolute;
  top: 50%;
  left: -2%;
  transform: translateY(-50%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(80px, 18vw, 220px);
  color: rgba(255, 0, 0, 0.07);
  letter-spacing: 0.05em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  line-height: 1;
}

.hero-seq {
  position: absolute;
  top: 24px;
  left: 5%;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 8vw, 96px);
  color: rgba(139, 0, 255, 0.18);
  letter-spacing: 0.1em;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-img-wrap {
  position: absolute;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 16px 60px rgba(0,0,0,0.6);
}

.hero-img-wrap-1 {
  top: 8%;
  left: 3%;
  width: 42%;
  max-width: 380px;
  aspect-ratio: 3/4;
  transform: rotate(-3deg);
  border: 2px solid rgba(255, 0, 0, 0.35);
  z-index: 2;
}

.hero-img-wrap-2 {
  bottom: 8%;
  left: 22%;
  width: 36%;
  max-width: 320px;
  aspect-ratio: 3/4;
  transform: rotate(4deg);
  border: 2px solid rgba(139, 0, 255, 0.35);
  z-index: 3;
}

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

.hero-img-wrap:empty {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: right;
  max-width: 420px;
}

.hero-eyebrow {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--red);
  margin-bottom: 10px;
  background: rgba(255, 0, 0, 0.12);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid rgba(255, 0, 0, 0.30);
}

.hero-h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(38px, 6vw, 80px);
  line-height: 1.05;
  letter-spacing: 0.05em;
  color: var(--text-bright);
  text-shadow: 0 0 30px rgba(255, 0, 0, 0.60), 2px 2px 0 rgba(139, 0, 255, 0.50);
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 360px;
  margin-left: auto;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--red), var(--purple));
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(255, 0, 0, 0.45), 0 2px 12px rgba(139, 0, 255, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 48px;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 0, 0, 0.60), 0 4px 20px rgba(139, 0, 255, 0.50);
}

/* ===== 主体布局 ===== */
.site-main {
  flex: 1;
  padding: 40px 5% 60px;
}

.content-article {
  max-width: 1280px;
  margin: 0 auto;
}

/* content-layout-section 是 article 的直接子 div，满足 main>article>div */
.content-layout-section {
  /* 透明容器，不加多余视觉 */
}

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

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

/* ===== 正文内部 div（page.content 直出，div 来自内容） ===== */
.content-body div {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 32px 28px;
  margin-bottom: 28px;
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
}

.content-body div::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  pointer-events: none;
}

/* 正文排版 */
.content-body h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: 0.06em;
  color: var(--text-bright);
  text-shadow: 0 0 20px rgba(255, 0, 0, 0.40);
  margin-bottom: 8px;
  line-height: 1.1;
}

.content-body h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 10px;
  margin-top: 20px;
}

.content-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.content-body a {
  color: var(--red);
  border-bottom: 1px solid rgba(255, 0, 0, 0.30);
  transition: color 0.2s, border-color 0.2s;
}

.content-body a:hover {
  color: #ff4444;
  border-color: rgba(255, 68, 68, 0.60);
}

.content-body ul {
  padding-left: 1.4em;
  margin-bottom: 14px;
  color: var(--text-muted);
}

.content-body ul li {
  margin-bottom: 6px;
  line-height: 1.65;
}

.content-body ol {
  padding-left: 1.6em;
  margin-bottom: 14px;
  color: var(--text-muted);
}

.content-body ol li {
  margin-bottom: 6px;
}

/* subtitle / subhead / lead */
.subtitle, .subhead, .lead {
  font-size: 0.95rem;
  color: rgba(240, 200, 200, 0.65);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ===== 侧边栏 ===== */
.content-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 20px;
}

.aside-card {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 22px 18px;
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
}

.aside-card-highlight {
  background: rgba(139, 0, 255, 0.12);
  border-color: rgba(139, 0, 255, 0.30);
}

.aside-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.20), transparent);
}

.aside-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: var(--text-bright);
  margin-bottom: 4px;
  text-shadow: 0 0 12px rgba(255, 0, 0, 0.35);
}

.aside-card .subtitle {
  font-size: 0.78rem;
  margin-bottom: 14px;
}

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

.aside-nav-list li a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid transparent;
  transition: all 0.2s;
}

.aside-nav-list li a:hover {
  color: #fff;
  background: rgba(255, 0, 0, 0.15);
  border-color: rgba(255, 0, 0, 0.30);
}

.aside-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== 页脚 ===== */
.site-footer {
  background: rgba(20, 8, 8, 0.95);
  border-top: 1px solid rgba(255, 0, 0, 0.20);
  padding: 60px 5% 24px;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--purple), var(--red));
}

.footer-brand-block {
  margin-bottom: 48px;
  text-align: center;
}

.footer-brand-giant {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 10vw, 120px);
  letter-spacing: 0.08em;
  line-height: 1;
  background: linear-gradient(135deg, var(--red), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.footer-col-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--text-bright);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 0, 0, 0.20);
}

.footer-address {
  font-style: normal;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-address a {
  color: var(--red);
}

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

.footer-nav-list li a {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 4px 0;
  display: block;
  transition: color 0.2s;
}

.footer-nav-list li a:hover {
  color: var(--red);
}

.footer-disclaimer {
  font-size: 0.82rem;
  color: rgba(200, 170, 170, 0.55);
  line-height: 1.65;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(200, 170, 170, 0.50);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links li a {
  font-size: 0.82rem;
  color: rgba(200, 170, 170, 0.50);
  transition: color 0.2s;
  display: inline-block;
  padding: 6px 0;
  min-height: 40px;
  line-height: 28px;
}

.footer-bottom-links li a:hover {
  color: var(--red);
}

/* ===== Scroll Reveal 动效 ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }

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

  .stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }

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

  .stagger-item:nth-child(2) { transition-delay: 0.08s; }
  .stagger-item:nth-child(3) { transition-delay: 0.16s; }
  .stagger-item:nth-child(4) { transition-delay: 0.24s; }
  .stagger-item:nth-child(5) { transition-delay: 0.32s; }
  .stagger-item:nth-child(6) { transition-delay: 0.40s; }
  .stagger-item:nth-child(7) { transition-delay: 0.48s; }
}

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

  .content-with-aside {
    grid-template-columns: 1fr;
  }

  .content-aside {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .aside-card {
    flex: 1 1 240px;
  }
}

@media (max-width: 640px) {
  .hero-section {
    min-height: 70vh;
    justify-content: center;
    padding: 48px 5% 48px;
  }

  .hero-content {
    text-align: center;
    max-width: 100%;
  }

  .hero-sub {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-eyebrow {
    display: inline-block;
  }

  .hero-img-wrap-1 {
    width: 52%;
    left: 0;
    top: 5%;
    opacity: 0.35;
  }

  .hero-img-wrap-2 {
    width: 45%;
    left: 40%;
    bottom: 5%;
    opacity: 0.25;
  }

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

  .footer-brand-giant {
    font-size: clamp(40px, 14vw, 72px);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-link span {
    font-size: 0.58rem;
    max-width: 36px;
  }

  .nav-link {
    padding: 11px 6px;
    min-width: 44px;
    min-height: 52px;
  }

  .site-main {
    padding: 24px 4% 40px;
  }

  .content-body div {
    padding: 22px 16px;
  }
}

@media (max-width: 400px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-link {
    min-width: 38px;
    padding: 11px 4px;
    min-height: 52px;
  }
}
