@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans: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;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: #26171f;
  color: #f0dde8;
  line-height: 1.7;
  overflow-x: hidden;
  padding-bottom: 64px;
}

body.menu-open { overflow: hidden; }

/* ===== 品牌色变量 ===== */
:root {
  --c-primary: #ff0080;
  --c-accent: #ff00ff;
  --c-dark: #26171f;
  --c-dark2: #1a0f16;
  --c-dark3: #2e1c27;
  --c-text: #f0dde8;
  --c-muted: #b08090;
  --c-border: rgba(255,0,128,0.2);
  --nav-h: 56px;
  --radius: 4px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ===== Aurora 背景 ===== */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.mesh-layer {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}

.mesh-1 {
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, #ff0080 0%, transparent 70%);
  top: -20vw;
  left: -20vw;
  animation: driftA 18s ease-in-out infinite alternate;
}

.mesh-2 {
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, #ff00ff 0%, transparent 70%);
  bottom: -10vw;
  right: -15vw;
  animation: driftB 22s ease-in-out infinite alternate;
}

.mesh-3 {
  width: 50vw;
  height: 50vw;
  background: conic-gradient(from 180deg, #ff0080, #ff00ff, #ff0080);
  top: 40%;
  left: 30%;
  opacity: 0.2;
  animation: spin 40s linear infinite;
}

@keyframes driftA {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(15vw, 10vh) scale(1.15); }
}
@keyframes driftB {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(-10vw, -8vh) scale(1.1); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .mesh-layer { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ===== 页面层叠 ===== */
.site-header, .site-main, .cta-block, .site-footer, .bottom-bar, .nav-overlay {
  position: relative;
  z-index: 1;
}

/* ===== Hero / Header ===== */
.site-header {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 80px 5vw 60px;
  border-bottom: 1px solid var(--c-border);
  overflow: hidden;
}

.hero-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-text {
  text-align: left;
}

.hero-h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(135deg, #fff 0%, #ff0080 50%, #ff00ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  animation: fadeUp 0.7s ease both;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--c-muted);
  max-width: 480px;
  margin-bottom: 32px;
  animation: fadeUp 0.7s 0.15s ease both;
}

.hero-cta {
  display: inline-block;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius);
  border-bottom: 3px solid rgba(255,0,255,0.5);
  transition: filter var(--transition), transform var(--transition);
  animation: fadeUp 0.7s 0.3s ease both;
}
.hero-cta:hover { filter: brightness(1.2); transform: translateY(-2px); }

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

/* ===== Hero Visual ===== */
.hero-visual {
  position: relative;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,0,128,0.3) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
}

.prism-shape {
  position: absolute;
  border-radius: 2px;
  mix-blend-mode: screen;
}

.prism-1 {
  width: 160px;
  height: 220px;
  background: linear-gradient(135deg, #ff0080, #ff00ff, #26171f);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  animation: floatA 6s ease-in-out infinite;
  opacity: 0.7;
}

.prism-2 {
  width: 100px;
  height: 140px;
  background: linear-gradient(225deg, #ff00ff, #ff0080);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  animation: floatB 8s ease-in-out infinite;
  top: 30px;
  right: 40px;
  opacity: 0.5;
}

@keyframes floatA {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-20px) rotate(6deg); }
}
@keyframes floatB {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(14px) rotate(-8deg); }
}

@media (prefers-reduced-motion: reduce) {
  .prism-1, .prism-2 { animation: none !important; }
}

/* ===== 主内容区 ===== */
.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 5vw;
}

.content-section {
  display: grid;
  grid-template-columns: 1fr 260px;
  grid-template-rows: auto 1fr;
  gap: 40px;
  position: relative;
}

.section-figure {
  grid-column: 1 / -1;
  height: 4px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent), transparent);
  border-radius: 2px;
  margin-bottom: 8px;
}

.fig-aurora {
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: inherit;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%,100% { filter: hue-rotate(0deg) brightness(1); }
  50%      { filter: hue-rotate(30deg) brightness(1.3); }
}

@media (prefers-reduced-motion: reduce) {
  .fig-aurora { animation: none; }
}

/* ===== Aside ===== */
.content-aside {
  grid-column: 2;
  grid-row: 2;
}

.aside-inner {
  background: rgba(46,28,39,0.8);
  border: 1px solid var(--c-border);
  border-bottom: 3px solid var(--c-primary);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 80px;
  backdrop-filter: blur(8px);
}

.aside-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-primary);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.aside-inner hr {
  border: none;
  border-top: 1px solid var(--c-border);
  margin-bottom: 16px;
}

.aside-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aside-nav-list a {
  color: var(--c-muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 6px 0;
  display: block;
  transition: color var(--transition), padding-left var(--transition);
  border-bottom: 1px solid transparent;
}

.aside-nav-list a:hover {
  color: var(--c-primary);
  padding-left: 6px;
}

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

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

.content-body h2 {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  background: linear-gradient(90deg, #fff 0%, var(--c-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.content-body h2 + hr {
  border: none;
  border-top: 2px solid var(--c-border);
  margin-bottom: 20px;
  background: linear-gradient(90deg, var(--c-primary), transparent);
  height: 2px;
}

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

.content-body h3 + hr {
  border: none;
  border-top: 1px solid var(--c-border);
  margin-bottom: 16px;
}

.content-body p {
  margin-bottom: 16px;
  color: #d4b8c8;
  font-size: 1rem;
}

.content-body ul, .content-body ol {
  margin: 0 0 16px 24px;
  color: #d4b8c8;
}

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

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

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

/* 卡片风格（正文内自带） */
.content-body .card, .content-body [class*="card"] {
  background: rgba(46,28,39,0.7);
  border: 1px solid var(--c-border);
  border-bottom: 3px solid var(--c-primary);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  backdrop-filter: blur(6px);
  transition: transform var(--transition), border-color var(--transition);
}
.content-body .card:hover { transform: translateY(-3px); border-color: var(--c-accent); }

/* ===== CTA 大块 ===== */
.cta-block {
  background: linear-gradient(135deg, rgba(255,0,128,0.15), rgba(255,0,255,0.1));
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 60px 5vw;
}

.cta-block-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.cta-block-text {
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 24px;
}

.cta-block-btn {
  display: inline-block;
  padding: 14px 48px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border-radius: var(--radius);
  border-bottom: 3px solid rgba(0,0,0,0.3);
  transition: filter var(--transition), transform var(--transition);
}
.cta-block-btn:hover { filter: brightness(1.15); transform: translateY(-2px); }

/* ===== 页脚 ===== */
.site-footer {
  background: var(--c-dark2);
  border-top: 1px solid var(--c-border);
  padding: 24px 5vw;
  display: none; /* 移动端底栏取代页脚展示，桌面展示 */
}

@media (min-width: 768px) {
  .site-footer { display: block; }
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand { flex-shrink: 0; }

.footer-nav { flex: 1; }

.footer-nav dl {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  list-style: none;
}

.footer-nav dt, .footer-nav dd {
  display: inline;
  margin: 0;
}

.footer-nav a {
  color: var(--c-muted);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 4px 0;
  transition: color var(--transition);
  display: inline-block;
}
.footer-nav a:hover { color: var(--c-primary); }

.footer-copy {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--c-muted);
}

/* ===== 品牌 logo ===== */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo-img {
  height: 32px;
  width: auto;
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

/* ===== 底部固定导航栏 ===== */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(26,15,22,0.95);
  border-top: 1px solid var(--c-border);
  backdrop-filter: blur(12px);
  z-index: 100;
}

.bottom-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===== 汉堡按钮 ===== */
.hamburger {
  background: none;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition);
}
.hamburger:hover { border-color: var(--c-primary); }

.ham-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-primary);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ===== 全屏遮罩菜单 ===== */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,15,22,0.97);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  backdrop-filter: blur(16px);
}

.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.overlay-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: 1px solid var(--c-border);
  color: var(--c-text);
  font-size: 1.4rem;
  line-height: 1;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: var(--radius);
  min-height: 44px;
  min-width: 44px;
  transition: color var(--transition), border-color var(--transition);
}
.overlay-close:hover { color: var(--c-primary); border-color: var(--c-primary); }

.overlay-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.overlay-link {
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  padding: 12px 32px;
  border-radius: var(--radius);
  display: block;
  min-height: 52px;
  line-height: 1.4;
  transition: color var(--transition), background var(--transition);
  position: relative;
}

.overlay-link::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 32px;
  right: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.overlay-link:hover {
  color: var(--c-primary);
}
.overlay-link:hover::after { transform: scaleX(1); }

/* nav-overlay 内的 stagger 动效 */
.nav-overlay.is-open .overlay-nav li {
  animation: staggerIn 0.4s ease both;
}
.nav-overlay.is-open .overlay-nav li:nth-child(1) { animation-delay: 0.05s; }
.nav-overlay.is-open .overlay-nav li:nth-child(2) { animation-delay: 0.1s; }
.nav-overlay.is-open .overlay-nav li:nth-child(3) { animation-delay: 0.15s; }
.nav-overlay.is-open .overlay-nav li:nth-child(4) { animation-delay: 0.2s; }
.nav-overlay.is-open .overlay-nav li:nth-child(5) { animation-delay: 0.25s; }
.nav-overlay.is-open .overlay-nav li:nth-child(6) { animation-delay: 0.3s; }
.nav-overlay.is-open .overlay-nav li:nth-child(7) { animation-delay: 0.35s; }

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

@media (prefers-reduced-motion: reduce) {
  .nav-overlay.is-open .overlay-nav li { animation: none; }
  .nav-overlay { transition: none; }
}

/* ===== Section 滚动偏移 ===== */
div[id] {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-visual { display: none; }
  .content-section {
    grid-template-columns: 1fr;
  }
  .content-aside {
    grid-column: 1;
    grid-row: auto;
  }
  .section-figure {
    grid-column: 1;
  }
  .aside-inner { position: static; }
}

@media (max-width: 480px) {
  .site-header { padding: 60px 5vw 40px; }
  .hero-h1 { font-size: 1.75rem; }
  .site-main { padding: 40px 5vw; }
  .cta-block { padding: 40px 5vw; }
  .cta-block-text { font-size: 1.1rem; }
}

/* ===== HR 全局样式 ===== */
hr {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: 16px 0;
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--c-dark2); }
::-webkit-scrollbar-thumb { background: var(--c-primary); border-radius: 3px; }

/* ===== 选中高亮 ===== */
::selection { background: rgba(255,0,128,0.35); color: #fff; }
