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

/* ============================================================
   磁力星球 · Gen Z Chaos Design System
   ============================================================ */

/* --- 变量 --- */
:root {
  --green: #80ff00;
  --green2: #00ff00;
  --dark: #1f2617;
  --dark2: #161c10;
  --dark3: #0e1209;
  --surface: #252e19;
  --surface2: #2e3a1e;
  --text: #e8f5d0;
  --text-muted: #9bb87a;
  --accent: #80ff00;
  --radius-card: 28px;
  --nav-h: 64px;
  --font-main: 'Outfit', 'Work Sans', system-ui, sans-serif;
  --transition: 0.22s cubic-bezier(.4,0,.2,1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--dark3);
  color: var(--text);
  font-family: var(--font-main);
  overflow-x: hidden;
}
body.body-dark {
  background: var(--dark3);
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, menu { list-style: none; }
address { font-style: normal; }

/* --- 给 div 预留底部导航空间 --- */
div[id] {
  scroll-margin-top: calc(var(--nav-h) + 8px);
}

/* ============================================================
   跑马灯
   ============================================================ */
.marquee-bar {
  background: var(--green);
  color: var(--dark3);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  overflow: hidden;
  white-space: nowrap;
  padding: 6px 0;
  position: relative;
  z-index: 10;
}
.marquee-track {
  display: inline-block;
  animation: marquee-scroll 28s linear infinite;
}
.marquee-track span { display: inline-block; padding-right: 2rem; }

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}

/* ============================================================
   Hero
   ============================================================ */
.hero-block {
  min-height: 45vh;
  background: var(--dark);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-bottom: 3.5rem;
  border-bottom: 3px solid var(--green);
}
.hero-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 40%, rgba(128,255,0,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(0,255,0,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 0;
  position: relative;
  text-align: right;
}
.hero-bg-text {
  position: absolute;
  top: -0.1em;
  right: -0.05em;
  font-size: clamp(6rem, 18vw, 16rem);
  font-weight: 700;
  color: rgba(128,255,0,0.04);
  line-height: 1;
  letter-spacing: -0.04em;
  user-select: none;
  pointer-events: none;
  font-family: var(--font-main);
  mix-blend-mode: screen;
}
.sticker {
  position: absolute;
  font-size: 2.2rem;
  pointer-events: none;
  user-select: none;
  filter: saturate(150%);
  animation: jitter 3s ease-in-out infinite;
}
.sticker-1 { top: 1.5rem; left: 2rem; animation-delay: 0s; transform: rotate(-12deg); }
.sticker-2 { top: 2.5rem; left: 8rem; animation-delay: 1s; transform: rotate(8deg); font-size: 1.6rem; }
.sticker-3 { bottom: 3rem; left: 3rem; animation-delay: 0.5s; transform: rotate(20deg); font-size: 1.8rem; color: var(--green); }

@keyframes jitter {
  0%, 100% { transform: rotate(var(--r, -12deg)) translate(0,0); }
  25% { transform: rotate(calc(var(--r, -12deg) + 4deg)) translate(1px, -2px); }
  75% { transform: rotate(calc(var(--r, -12deg) - 3deg)) translate(-1px, 1px); }
}
.sticker-1 { --r: -12deg; }
.sticker-2 { --r: 8deg; }
.sticker-3 { --r: 20deg; }

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  opacity: 0.85;
}
.hero-h1 {
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1rem;
}
.hero-h1 em {
  color: var(--green);
  font-style: normal;
}
.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 520px;
  margin-left: auto;
  line-height: 1.65;
  margin-bottom: 1.8rem;
}
.hero-cta {
  display: inline-block;
  background: var(--green);
  color: var(--dark3);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  letter-spacing: 0.04em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 0 0 0 rgba(128,255,0,0.4);
}
.hero-cta:hover {
  background: var(--green2);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 0 32px rgba(128,255,0,0.45);
  text-decoration: none;
}

/* ============================================================
   主体内容区 — main > div > figure/aside 交错
   ============================================================ */
main { padding-bottom: calc(var(--nav-h) + 2rem); }

.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* aside 在左 */
.content-aside {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}
.aside-inner {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 1.5rem 1.25rem;
  border: 1.5px solid rgba(128,255,0,0.18);
  position: relative;
  overflow: hidden;
}
.aside-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--green2));
}
.aside-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.aside-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.aside-nav li a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  font-size: 0.88rem;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
  line-height: 1.4;
}
.aside-nav li a:hover {
  background: rgba(128,255,0,0.12);
  color: var(--green);
  text-decoration: none;
}
.aside-badge {
  font-size: 2rem;
  text-align: center;
  margin: 1rem 0 0.5rem;
  animation: jitter 4s ease-in-out infinite;
}
.aside-tip {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
  padding: 0 0.25rem;
}

/* figure 在右 */
.content-figure {
  min-width: 0;
  margin: 0;
}
.page-content-wrap {
  line-height: 1.78;
  font-size: 1rem;
  color: var(--text);
}

/* --- page.content 内部样式 --- */
.page-content-wrap h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-top: 3rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.page-content-wrap h2:first-child { margin-top: 0; }
.page-content-wrap h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 600;
  color: var(--green);
  margin-top: 2rem;
  margin-bottom: 0.4rem;
}
.page-content-wrap hr {
  border: none;
  border-top: 1.5px solid rgba(128,255,0,0.25);
  margin: 0.6rem 0 1.4rem;
}
.page-content-wrap p {
  margin-bottom: 1.1rem;
  color: var(--text);
}
.page-content-wrap ul, .page-content-wrap ol {
  margin: 0.75rem 0 1.1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.page-content-wrap ul { list-style: disc; }
.page-content-wrap ol { list-style: decimal; }
.page-content-wrap li { color: var(--text); }
.page-content-wrap a { color: var(--green); border-bottom: 1px solid rgba(128,255,0,0.3); }
.page-content-wrap a:hover { color: var(--green2); border-bottom-color: var(--green2); text-decoration: none; }
.page-content-wrap strong { color: var(--green); font-weight: 600; }
.page-content-wrap em { color: var(--text); font-style: italic; opacity: 0.9; }
.page-content-wrap blockquote {
  border-left: 3px solid var(--green);
  padding: 0.75rem 1.25rem;
  background: rgba(128,255,0,0.05);
  border-radius: 0 12px 12px 0;
  margin: 1.25rem 0;
  color: var(--text-muted);
  font-size: 0.97rem;
}
.page-content-wrap code {
  background: rgba(128,255,0,0.1);
  color: var(--green);
  padding: 0.15em 0.4em;
  border-radius: 5px;
  font-size: 0.9em;
  font-family: monospace;
}
.page-content-wrap pre {
  background: var(--surface);
  border-radius: 14px;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.25rem 0;
  border: 1px solid rgba(128,255,0,0.15);
}
.page-content-wrap pre code { background: none; padding: 0; }
.page-content-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.92rem;
}
.page-content-wrap th {
  background: rgba(128,255,0,0.12);
  color: var(--green);
  font-weight: 600;
  padding: 0.6rem 0.85rem;
  border: 1px solid rgba(128,255,0,0.2);
  text-align: left;
}
.page-content-wrap td {
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(255,255,255,0.06);
}
.page-content-wrap tr:nth-child(even) td { background: rgba(255,255,255,0.02); }

/* div 分隔装饰 */
.page-content-wrap div {
  padding: 2.5rem 0;
  border-bottom: 1px dashed rgba(128,255,0,0.12);
  position: relative;
}
.page-content-wrap div:last-child { border-bottom: none; }
.page-content-wrap div::before {
  content: attr(id);
  position: absolute;
  top: 1.5rem;
  right: 0;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(128,255,0,0.15);
  font-weight: 700;
  pointer-events: none;
  user-select: none;
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  background: var(--dark2);
  border-top: 2px solid rgba(128,255,0,0.2);
  padding-bottom: calc(var(--nav-h) + 1rem);
}
.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 2.5rem;
}
.footer-col-brand {}
.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.footer-logo-img { border-radius: 8px; }
.footer-brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.04em;
}
.footer-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.footer-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.footer-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--dark3);
  background: var(--green);
  padding: 0.2rem 0.55rem;
  border-radius: 50px;
  letter-spacing: 0.04em;
}
.footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.footer-col hr {
  border: none;
  border-top: 1px solid rgba(128,255,0,0.2);
  margin-bottom: 1rem;
}
.footer-col-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.footer-col-links ul li a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
  min-height: 40px;
  display: flex;
  align-items: center;
}
.footer-col-links ul li a:hover { color: var(--green); text-decoration: none; }
.footer-col-contact address { margin-bottom: 1.25rem; }
.footer-col-contact address p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  line-height: 1.5;
}
.footer-col-contact address a { color: var(--green); }
.footer-subscribe { margin-bottom: 1.25rem; }
.subscribe-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  line-height: 1.45;
}
.subscribe-btn {
  display: inline-block;
  background: transparent;
  border: 1.5px solid var(--green);
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  transition: background var(--transition), color var(--transition);
  min-height: 40px;
  line-height: 1.2;
}
.subscribe-btn:hover {
  background: var(--green);
  color: var(--dark3);
  text-decoration: none;
}
.footer-link-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.footer-link-list li a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
  min-height: 40px;
  display: flex;
  align-items: center;
}
.footer-link-list li a:hover { color: var(--green); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-copy {
  font-size: 0.78rem;
  color: rgba(155,184,122,0.55);
  text-align: center;
}

/* ============================================================
   底部固定导航条
   ============================================================ */
.bottom-nav-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(14,18,9,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1.5px solid rgba(128,255,0,0.22);
  z-index: 1000;
}
.bottom-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bottom-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
}
.brand-mark { border-radius: 6px; }
.brand-text-logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.04em;
}

/* --- Details/Summary 汉堡 --- */
.nav-details { position: static; }
.nav-details summary { list-style: none; }
.nav-details summary::-webkit-details-marker { display: none; }

.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  cursor: pointer;
  border-radius: 10px;
  transition: background var(--transition);
}
.hamburger-btn:hover { background: rgba(128,255,0,0.1); }
.ham-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-details[open] .ham-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-details[open] .ham-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-details[open] .ham-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- 全屏遮罩菜单 --- */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  bottom: var(--nav-h);
  background: rgba(14,18,9,0.97);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: menu-in 0.25s ease;
  padding: 0;
  margin: 0;
}
@keyframes menu-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.nav-details:not([open]) .fullscreen-menu { display: none; }
.menu-inner {
  width: 100%;
  max-width: 600px;
  padding: 2rem 2rem 3rem;
}
.menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(128,255,0,0.15);
  padding-bottom: 1rem;
}
.menu-brand {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.04em;
}
.menu-close {
  background: none;
  border: 1.5px solid rgba(128,255,0,0.3);
  color: var(--green);
  font-size: 1.1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.menu-close:hover { background: var(--green); color: var(--dark3); }
.menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.menu-list li { overflow: hidden; }
.nav-link {
  display: block;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  padding: 0.6rem 0;
  letter-spacing: -0.01em;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color var(--transition), padding-left var(--transition);
  min-height: 40px;
}
.nav-link:hover {
  color: var(--green);
  padding-left: 1rem;
  text-decoration: none;
}
.menu-deco {
  margin-top: 2rem;
  font-size: 1.8rem;
  letter-spacing: 0.5rem;
  color: rgba(128,255,0,0.3);
  text-align: center;
}

/* ============================================================
   Scroll Reveal (JS 控)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .content-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .content-aside {
    position: static;
  }
  .aside-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    align-items: start;
  }
  .aside-label { grid-column: 1 / -1; margin-bottom: 0; }
  .aside-nav { grid-column: 1; flex-direction: row; flex-wrap: wrap; gap: 0.4rem; }
  .aside-nav li a { font-size: 0.82rem; padding: 0.4rem 0.65rem; }
  .aside-badge { display: none; }
  .aside-tip { font-size: 0.75rem; grid-column: 2; }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-col-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .hero-inner { padding: 2.5rem 1.25rem 0; }
  .hero-bg-text { font-size: 5rem; opacity: 0.03; }
  .sticker-2 { display: none; }
  .hero-h1 { font-size: 1.85rem; }
  .hero-sub { font-size: 0.95rem; }
  .content-section { padding: 1.75rem 1rem; }
  .footer-top {
    grid-template-columns: 1fr;
    padding: 2rem 1rem 1.5rem;
    gap: 1.75rem;
  }
  .footer-col-brand { grid-column: 1; }
  .bottom-nav-inner { padding: 0 1rem; }
  .menu-inner { padding: 1.5rem 1.25rem 2rem; }
}

/* ============================================================
   prefers-reduced-motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .sticker { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

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