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

/* ============================================================
   CSS 自定义属性
   ============================================================ */
:root {
  --neon: #80ff00;
  --neon2: #00ff00;
  --dark: #1f2617;
  --dark2: #151c0e;
  --dark3: #2a3520;
  --text: #e8f5c8;
  --text-muted: #a8c870;
  --white: #ffffff;
  --radius: 10px;
  --nav-h: 64px;
  --font: 'Noto Sans KR', system-ui, -apple-system, sans-serif;
  --shadow-neon: 0 0 12px #80ff0088, 0 0 32px #80ff0033;
  --shadow-neon2: 0 0 8px #00ff0066;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--dark);
  color: var(--text);
  scroll-padding-top: calc(var(--nav-h) + 8px);
}

body, .body-root {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
  padding-bottom: var(--nav-h);
  filter: saturate(1.15);
}

a { color: var(--neon); text-decoration: none; }
a:hover { color: var(--neon2); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ============================================================
   跑马灯
   ============================================================ */
.marquee-bar {
  background: var(--neon);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  overflow: hidden;
  white-space: nowrap;
  height: 32px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
  width: 100%;
}

.marquee-track {
  display: inline-flex;
  gap: 2rem;
  animation: marquee-scroll 18s linear infinite;
  will-change: transform;
  flex-shrink: 0;
}

.marquee-track span { flex-shrink: 0; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 70vh;
  background: var(--dark2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, #80ff0022 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, #00ff0015 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 4rem 2rem 5rem;
  flex: 1;
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-text {
  flex: 1;
  min-width: 0;
  text-align: left;
  position: relative;
}

.hero-eyebrow.sticker-tag {
  display: inline-block;
  background: var(--neon);
  color: var(--dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 1rem;
  transform: rotate(-2deg);
  box-shadow: 3px 3px 0 var(--dark);
}

.hero-h1 {
  font-size: clamp(1.6rem, 4vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.2rem;
  text-shadow: 0 0 40px #80ff0044;
  letter-spacing: -0.01em;
  word-break: break-all;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 480px;
  line-height: 1.7;
  word-break: break-all;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--neon);
  color: var(--dark);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 99px;
  box-shadow: var(--shadow-neon), 4px 4px 0 var(--dark);
  transition: transform 0.15s, box-shadow 0.15s;
  letter-spacing: 0.04em;
  min-height: 48px;
  white-space: nowrap;
}

.hero-cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-neon), 6px 6px 0 var(--dark);
  color: var(--dark);
  text-decoration: none;
}

.sticker-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #ff2d55;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 4px;
  transform: rotate(8deg);
  box-shadow: 2px 2px 0 #000;
  animation: jitter 0.4s ease-in-out infinite alternate;
}

@keyframes jitter {
  from { transform: rotate(8deg) translateY(0); }
  to { transform: rotate(6deg) translateY(-2px); }
}

.hero-media {
  flex: 0 0 auto;
  width: clamp(160px, 30vw, 380px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 0 40px #80ff0044, 8px 8px 0 var(--neon2);
  position: relative;
  z-index: 2;
  animation: float 4s ease-in-out infinite alternate;
}

@keyframes float {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

.hero-media--empty {
  min-height: 180px;
}

.hero-deco-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon) 0%, var(--neon2) 50%, transparent 100%);
  opacity: 0.18;
  position: absolute;
}

.hero-deco-ring {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 3px solid var(--neon);
  opacity: 0.25;
  animation: spin 12s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-slash {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(170deg, transparent 49.5%, var(--dark) 50%);
  z-index: 3;
}

/* ============================================================
   主内容布局
   ============================================================ */
.site-main {
  padding: 2rem 0 3rem;
}

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

.content-section {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}

.content-article {
  min-width: 0;
  overflow: hidden;
}

.content-body {
  color: var(--text);
  overflow-wrap: break-word;
  word-break: break-all;
}

/* 正文内通用样式 */
.content-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--neon);
  margin: 2.5rem 0 0.8rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  word-break: break-all;
}

.content-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--neon2);
  margin: 1.8rem 0 0.6rem;
  word-break: break-all;
}

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

.content-body ul, .content-body ol {
  margin: 0.8rem 0 1rem 1.2rem;
}

.content-body ul li, .content-body ol li {
  margin-bottom: 0.45rem;
  line-height: 1.7;
  list-style: disc;
}

.content-body ol li { list-style: decimal; }

.content-body a {
  color: var(--neon);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  word-break: break-all;
}

.content-body a:hover { color: var(--neon2); }

.content-body strong { color: var(--neon); font-weight: 700; }

.content-body blockquote {
  border-left: 4px solid var(--neon);
  padding: 0.8rem 1.2rem;
  margin: 1.2rem 0;
  background: var(--dark3);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
  font-style: italic;
}

/* section 卡片感 */
.content-body section {
  background: var(--dark3);
  border-radius: 16px;
  padding: 1.5rem 1.2rem;
  margin-bottom: 2rem;
  border-bottom: 4px solid var(--neon);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.content-body section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon), var(--neon2), transparent);
}

.content-body section:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px #80ff0022;
}

/* small 眉题 */
.content-body small,
.aside-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--neon);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

/* ============================================================
   Aside 侧边栏
   ============================================================ */
.content-aside {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  min-width: 0;
}

.aside-inner {
  background: var(--dark3);
  border-radius: 16px;
  padding: 1.2rem;
  border-bottom: 4px solid var(--neon2);
  position: relative;
}

.aside-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--neon);
  margin-bottom: 0.3rem;
}

.aside-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.aside-nav-list {
  margin-bottom: 1.2rem;
}

.aside-nav-list li {
  margin-bottom: 0.3rem;
}

.aside-link {
  display: flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: background 0.15s, color 0.15s;
  border-left: 2px solid transparent;
  min-height: 40px;
  word-break: break-all;
}

.aside-link:hover {
  background: var(--dark2);
  color: var(--neon);
  border-left-color: var(--neon);
  text-decoration: none;
}

.aside-sticker {
  display: inline-block;
  background: #ff2d55;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  transform: rotate(-3deg);
  margin-bottom: 1rem;
  letter-spacing: 0.08em;
  box-shadow: 2px 2px 0 #000;
}

.aside-card {
  background: var(--dark2);
  border-radius: var(--radius);
  padding: 1rem;
  border-bottom: 3px solid var(--neon);
}

.aside-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.aside-card-body {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.aside-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--neon);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 99px;
  min-height: 40px;
  transition: transform 0.15s;
}

.aside-card-btn:hover {
  transform: scale(1.04);
  color: var(--dark);
  text-decoration: none;
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  background: var(--dark2);
  border-top: 2px solid var(--dark3);
  padding-bottom: calc(var(--nav-h) + 1rem);
}

.footer-brand-section {
  padding: 3rem 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid var(--dark3);
}

.footer-brand-mega {
  font-size: clamp(1.8rem, 5vw, 5rem);
  font-weight: 700;
  color: var(--neon);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.6rem;
  text-shadow: var(--shadow-neon);
  word-break: break-all;
}

.footer-brand-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 500px;
  line-height: 1.6;
  word-break: break-all;
}

.footer-nav-section {
  padding: 2rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-nav {
  margin-bottom: 2rem;
}

.footer-dl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.8rem;
}

.footer-dl dt { margin: 0; }

.footer-dl dt a {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 99px;
  border: 1px solid var(--dark3);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  min-height: 40px;
  white-space: nowrap;
}

.footer-dl dt a:hover {
  color: var(--neon);
  border-color: var(--neon);
  background: var(--dark3);
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--dark3);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  word-break: break-all;
}

.footer-links { display: flex; gap: 1rem; }

.footer-link {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.15s;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.footer-link:hover { color: var(--neon); text-decoration: none; }

/* ============================================================
   底部固定导航条
   ============================================================ */
.bottom-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(21, 28, 14, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--dark3);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  overflow: hidden;
}

.bottom-nav-dl {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.bottom-nav-dl::-webkit-scrollbar { display: none; }

.bottom-nav-dl dt,
.bottom-nav-dl dd { margin: 0; flex-shrink: 0; }

.bottom-nav-logo { margin-right: 0.4rem; }

.bottom-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--neon);
  border-radius: 10px;
  color: var(--dark);
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.15s;
  flex-shrink: 0;
}

.bottom-logo-link:hover {
  transform: scale(1.08);
  text-decoration: none;
}

.nav-logo-img { width: 24px; height: 24px; border-radius: 4px; }
.nav-logo-text { font-weight: 700; font-size: 1rem; color: var(--dark); }

.bottom-pill {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 10px;
  border-radius: 99px;
  background: var(--dark3);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  border: 1px solid transparent;
}

.bottom-pill:hover {
  background: var(--dark2);
  color: var(--neon);
  border-color: var(--neon);
  text-decoration: none;
}

.bottom-cta-wrap { margin-left: auto; flex-shrink: 0; }

.bottom-cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 99px;
  background: var(--neon);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
  box-shadow: var(--shadow-neon2);
  transition: transform 0.15s, box-shadow 0.15s;
}

.bottom-cta:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-neon);
  color: var(--dark);
  text-decoration: none;
}

/* ============================================================
   滚动动效（Stagger / Parallax）
   ============================================================ */
.content-body section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.content-body section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 900px) {
  .content-section {
    grid-template-columns: 1fr;
  }
  .content-aside {
    position: static;
    order: -1;
  }
  .hero-inner {
    flex-direction: column;
    padding: 2.5rem 1rem 4rem;
    text-align: left;
  }
  .hero-media {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  :root {
    --nav-h: 60px;
  }
  .hero-h1 { font-size: 1.5rem; }
  .footer-brand-mega { font-size: 1.8rem; }
  .footer-dl { flex-direction: column; }
  .footer-dl dt a { white-space: normal; word-break: break-all; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .wrap { padding: 0 0.75rem; }
  .hero-inner { padding: 1.8rem 0.75rem 3rem; }
  .footer-brand-section { padding-left: 0.75rem; padding-right: 0.75rem; }
  .footer-nav-section { padding-left: 0.75rem; padding-right: 0.75rem; }
  .bottom-nav-bar { padding: 0 0.5rem; }
  .bottom-pill { padding: 0 8px; font-size: 0.72rem; }
  .bottom-cta { padding: 0 10px; font-size: 0.78rem; }
  .content-body section { padding: 1.2rem 1rem; }
  .aside-inner { padding: 1rem; }
  .hero-desc { font-size: 0.95rem; }
}

@media (max-width: 375px) {
  .hero-h1 { font-size: 1.3rem; }
  .bottom-pill { padding: 0 6px; font-size: 0.68rem; }
  .bottom-cta { padding: 0 8px; }
}

/* ============================================================
   降低动效（可访问性）
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .hero-img { animation: none; }
  .hero-deco-ring { animation: none; }
  .sticker-badge { animation: none; }
  .content-body section {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

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