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

/* ============================================================
   CSS 变量 & Reset
   ============================================================ */
:root {
  --c-primary: #ff0080;
  --c-accent: #ff00ff;
  --c-dark: #26171f;
  --c-dark2: #1a0f16;
  --c-dark3: #321b27;
  --c-text: #f0e0ea;
  --c-text-muted: #b89aaa;
  --c-border: rgba(255,0,128,0.25);
  --nav-h: 64px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.22,1,0.36,1);
}

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

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

body {
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100vh;
  background: var(--c-dark);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-accent); }

/* ============================================================
   极光根容器
   ============================================================ */
.aurora-root {
  position: relative;
  min-height: 100vh;
}

/* ============================================================
   顶部导航
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(38,23,31,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--c-border);
  border-radius: 0;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  transition: opacity 0.2s;
}
.brand-mark:hover { opacity: 0.85; }

.brand-icon { width: 32px; height: 32px; object-fit: contain; }
.brand-icon-text { font-size: 1.1rem; font-weight: 700; color: #fff; }

.header-nav {
  flex: 1;
}

.header-nav dl {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.header-nav dt {
  display: block;
}

.header-nav dt a {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-text-muted);
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
}

.header-nav dt a:hover {
  color: var(--c-primary);
  border-color: var(--c-border);
  background: rgba(255,0,128,0.06);
}

.header-contact {
  flex-shrink: 0;
}

.contact-btn {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  font-size: 0.8rem;
  font-weight: 600;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  color: #fff;
  letter-spacing: 0.06em;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.contact-btn:hover { opacity: 0.85; color: #fff; transform: translateY(-1px); }

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--c-border);
  cursor: pointer;
  padding: 8px 10px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-text);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero 区
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  padding-top: var(--nav-h);
  scroll-margin-top: var(--nav-h);
}

/* 极光网格层 */
.aurora-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.aurora-layer {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  mix-blend-mode: screen;
  opacity: 0.55;
  animation: auroraFlow 12s ease-in-out infinite alternate;
}
.a1 {
  width: 70%; height: 80%;
  top: -20%; left: -10%;
  background: radial-gradient(ellipse, #ff0080 0%, transparent 70%);
  animation-duration: 14s;
}
.a2 {
  width: 60%; height: 70%;
  top: 10%; right: -5%;
  background: radial-gradient(ellipse, #ff00ff 0%, transparent 65%);
  animation-duration: 18s;
  animation-delay: -6s;
}
.a3 {
  width: 50%; height: 60%;
  bottom: -10%; left: 30%;
  background: radial-gradient(ellipse, #c000ff 0%, transparent 65%);
  animation-duration: 22s;
  animation-delay: -10s;
}

@keyframes auroraFlow {
  0%   { transform: translate(0,0) scale(1); }
  33%  { transform: translate(6%,4%) scale(1.08); }
  66%  { transform: translate(-4%,7%) scale(0.95); }
  100% { transform: translate(3%,-5%) scale(1.05); }
}

.aurora-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 渐变蒙版 */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    135deg,
    rgba(38,23,31,0.75) 0%,
    rgba(255,0,128,0.18) 50%,
    rgba(255,0,255,0.12) 100%
  );
}

/* 棱镜斜切色带 */
.prism-slash {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 5px;
  z-index: 3;
  background: linear-gradient(
    90deg,
    var(--c-primary),
    var(--c-accent),
    #7000ff,
    var(--c-primary)
  );
  background-size: 300% 100%;
  animation: prismShift 6s linear infinite;
  clip-path: polygon(0 100%, 100% 0%, 100% 100%);
}

@keyframes prismShift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 620px;
  padding: 40px 48px 56px 24px;
  text-align: right;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 20px rgba(255,0,128,0.5);
  margin-bottom: 14px;
}

.hero-desc {
  font-size: 1rem;
  color: rgba(240,224,234,0.8);
  line-height: 1.6;
  max-width: 400px;
  margin-left: auto;
}

/* ============================================================
   正文主容器
   ============================================================ */
.site-main {
  position: relative;
  z-index: 10;
  background: var(--c-dark);
}

.content-section {
  display: grid;
  grid-template-columns: 1fr 260px;
  grid-template-rows: auto 1fr;
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* 装饰 figure */
.content-deco {
  grid-column: 1 / -1;
  height: 4px;
  margin: 0 0 0 0;
  background: linear-gradient(
    90deg,
    transparent,
    var(--c-primary),
    var(--c-accent),
    transparent
  );
  background-size: 200% 100%;
  animation: decoFlow 4s linear infinite;
}
.deco-prism {
  width: 100%;
  height: 100%;
}
@keyframes decoFlow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* 正文内容 */
.content-body {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  padding: 40px 40px 40px 0;
  min-width: 0;
}

/* ---- 正文内通用样式 ---- */
.content-body section {
  margin-bottom: 48px;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

.content-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  position: relative;
  padding-left: 16px;
}
.content-body h2::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 3px;
  background: linear-gradient(to bottom, var(--c-primary), var(--c-accent));
}

.content-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--c-text);
  margin: 24px 0 10px;
}

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

.content-body ul,
.content-body ol {
  padding-left: 1.4em;
  margin-bottom: 16px;
}
.content-body li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-text);
  margin-bottom: 6px;
}

.content-body a {
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.content-body a:hover { color: var(--c-accent); }

.content-body strong { color: #fff; font-weight: 600; }

.content-body blockquote {
  border-left: 3px solid var(--c-primary);
  padding: 12px 20px;
  margin: 20px 0;
  background: rgba(255,0,128,0.06);
  color: var(--c-text-muted);
  font-style: normal;
  font-size: 0.975rem;
}

/* ---- section 里的 p.subtitle ---- */
.content-body .subtitle,
.content-body p.subtitle {
  color: var(--c-text-muted);
  font-size: 0.925rem;
  margin-bottom: 16px;
}

/* ---- 卡片（正文里如有 card 类） ---- */
.content-body .card {
  border: 1px solid var(--c-border);
  border-radius: 0;
  padding: 20px;
  margin: 16px 0;
  background: var(--c-dark3);
}

/* ---- 右侧 aside ---- */
.content-aside {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  padding: 40px 0 40px 24px;
  border-left: 1px solid var(--c-border);
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  align-self: start;
}

.content-aside h2 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-primary);
  margin-bottom: 6px;
}

.content-aside .subtitle {
  font-size: 0.82rem;
  color: var(--c-text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.aside-links {
  list-style: none;
  padding: 0;
}
.aside-links li {
  border-bottom: 1px solid rgba(255,0,128,0.1);
}
.aside-links li:last-child { border-bottom: none; }
.aside-links a {
  display: block;
  padding: 10px 0;
  font-size: 0.875rem;
  color: var(--c-text-muted);
  transition: color 0.2s, padding-left 0.2s;
}
.aside-links a:hover {
  color: var(--c-primary);
  padding-left: 6px;
}

/* ============================================================
   section scroll-margin-top（锚点偏移）
   ============================================================ */
section[id] {
  scroll-margin-top: calc(var(--nav-h) + 12px);
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  background: var(--c-dark2);
  border-top: 1px solid var(--c-border);
  padding: 48px 20px 20px;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent), #7000ff, var(--c-primary));
  background-size: 300% 100%;
  animation: prismShift 8s linear infinite;
}

.footer-brand-row {
  text-align: center;
  margin-bottom: 32px;
}
.footer-brand-big {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--c-border);
  flex-wrap: wrap;
}

.footer-address {
  font-style: normal;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--c-text-muted);
  flex-wrap: wrap;
}
.footer-address a {
  color: var(--c-text-muted);
  transition: color 0.2s;
}
.footer-address a:hover { color: var(--c-primary); }
.footer-copy { font-size: 0.8rem; }

.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}
.footer-links li { display: flex; }
.footer-links li + li::before {
  content: '·';
  padding: 0 8px;
  color: var(--c-text-muted);
  line-height: 40px;
}
.footer-links li a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 4px;
  font-size: 0.82rem;
  color: var(--c-text-muted);
  transition: color 0.2s;
}
.footer-links li a:hover { color: var(--c-primary); }

/* 页脚 dl 导航 */
.footer-nav-dl-wrap {
  max-width: 1280px;
  margin: 20px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255,0,128,0.08);
}
.footer-nav-dl {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.footer-nav-dl dt {
  display: block;
}
.footer-nav-dl dt a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  font-size: 0.78rem;
  color: rgba(184,154,170,0.55);
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.footer-nav-dl dt a:hover {
  color: var(--c-primary);
  border-color: rgba(255,0,128,0.2);
}

/* ============================================================
   动效 / 列表错落
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .content-body section {
    animation: fadeSlideUp 0.5s var(--ease-out) both;
  }
  .content-body section:nth-child(2) { animation-delay: 0.05s; }
  .content-body section:nth-child(3) { animation-delay: 0.1s; }
  .content-body section:nth-child(4) { animation-delay: 0.15s; }
  .content-body section:nth-child(5) { animation-delay: 0.2s; }
  .content-body section:nth-child(6) { animation-delay: 0.25s; }
  .content-body section:nth-child(7) { animation-delay: 0.3s; }
}

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

@media (prefers-reduced-motion: reduce) {
  .aurora-layer,
  .prism-slash,
  .content-deco,
  .site-footer::before {
    animation: none;
  }
  .content-body section { animation: none; }
}

/* ============================================================
   响应式断点
   ============================================================ */
@media (max-width: 900px) {
  .content-section {
    grid-template-columns: 1fr;
  }
  .content-body {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    padding: 32px 0 0;
  }
  .content-aside {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
    border-left: none;
    border-top: 1px solid var(--c-border);
    padding: 24px 0;
    position: static;
  }
}

@media (max-width: 680px) {
  :root { --nav-h: 56px; }

  .header-nav {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(38,23,31,0.97);
    border-bottom: 1px solid var(--c-border);
    padding: 16px 20px 24px;
    z-index: 199;
    backdrop-filter: blur(12px);
  }
  .header-nav.open {
    display: block;
  }
  .header-nav dl {
    flex-direction: column;
    gap: 0;
  }
  .header-nav dt a {
    height: 48px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,0,128,0.08);
    border-left: none;
    border-right: none;
    border-top: none;
    padding: 0 0;
  }
  .nav-toggle {
    display: flex;
  }
  .header-contact { display: none; }

  .hero-content {
    text-align: left;
    padding: 32px 20px 40px;
  }
  .hero-desc { margin-left: 0; }

  .content-section {
    padding: 0 16px 40px;
  }
  .content-body {
    padding: 24px 0 0;
  }

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

@media (max-width: 400px) {
  .hero-content h1 { font-size: 1.5rem; }
  .footer-brand-big { font-size: 2rem; }
}

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