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

/* =============================================
   CSS 变量 & 重置
   ============================================= */
:root {
  --c-lime: #80ff00;
  --c-green: #00ff00;
  --c-dark: #1f2617;
  --c-dark2: #161c10;
  --c-dark3: #0d1009;
  --c-lime-dim: rgba(128,255,0,0.12);
  --c-lime-mid: rgba(128,255,0,0.35);
  --c-white: #f5f5f0;
  --c-grey: #b8c4a0;
  --c-grey2: #6a7a55;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 0px;
  --nav-h: 72px;
  --sticky-h: 44px;
  --transition: 0.25s ease;
}

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

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

body.body-root {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-white);
  background: var(--c-dark);
  overflow-x: hidden;
  filter: saturate(1.08);
}

/* scroll margin for sticky nav */
div[id] {
  scroll-margin-top: calc(var(--nav-h) + var(--sticky-h) + 8px);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-lime); text-decoration: none; transition: color var(--transition); }
a:hover, a:focus { color: var(--c-green); text-decoration: underline; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); }

/* =============================================
   SITE WRAP
   ============================================= */
.site-wrap {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* =============================================
   HEADER / NAV
   ============================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: var(--c-dark3);
  border-bottom: 2px solid var(--c-lime);
  height: var(--nav-h);
  width: 100%;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  padding: 0 1rem;
  overflow: hidden;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 0.5rem;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

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

.main-nav ol li {
  flex-shrink: 1;
  min-width: 0;
}

.main-nav ol li a {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.55rem;
  min-height: 44px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--c-grey);
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
  position: relative;
}

.main-nav ol li a::after {
  content: '';
  position: absolute;
  bottom: 6px; left: 0.55rem; right: 0.55rem;
  height: 2px;
  background: var(--c-lime);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.main-nav ol li a:hover,
.main-nav ol li a:focus {
  color: var(--c-lime);
  text-decoration: none;
}

.main-nav ol li a:hover::after,
.main-nav ol li a:focus::after {
  transform: scaleX(1);
}

/* Brand center */
.brand-center {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.25rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

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

.brand-text {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-lime);
  letter-spacing: -0.01em;
  text-shadow: 0 0 18px rgba(128,255,0,0.55);
  white-space: nowrap;
}

/* =============================================
   STICKY ANCHORS
   ============================================= */
.sticky-anchors {
  position: sticky;
  top: var(--nav-h);
  z-index: 800;
  background: var(--c-dark2);
  border-bottom: 1.5px solid var(--c-lime-mid);
  height: var(--sticky-h);
  overflow: hidden;
  width: 100%;
}

.anchor-list {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.anchor-list::-webkit-scrollbar { display: none; }

.anchor-list li a {
  display: flex;
  align-items: center;
  padding: 0 0.65rem;
  height: var(--sticky-h);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--c-grey2);
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
  border-right: 1px solid rgba(128,255,0,0.15);
}

.anchor-list li:last-child a { border-right: none; }

.anchor-list li a:hover,
.anchor-list li a:focus {
  color: var(--c-lime);
  background: var(--c-lime-dim);
  text-decoration: none;
}

/* =============================================
   HERO
   ============================================= */
.hero-block {
  position: relative;
  margin-top: calc(var(--nav-h) + var(--sticky-h));
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--c-dark3);
  width: 100%;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.3) brightness(0.55);
  mix-blend-mode: screen;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(31,38,23,0.82) 0%, rgba(0,0,0,0.55) 50%, rgba(31,38,23,0.9) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4rem 1.25rem 5rem;
  width: 100%;
  max-width: 800px;
}

.hero-h1 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--c-lime);
  text-shadow: 0 0 40px rgba(128,255,0,0.6), 2px 2px 0 var(--c-dark3);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  word-break: break-word;
}

.hero-sub {
  font-size: 1rem;
  color: var(--c-grey);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto;
  word-break: break-word;
}

/* Sticker / Badge */
.sticker {
  display: inline-block;
  background: var(--c-lime);
  color: var(--c-dark3);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border: 2px solid var(--c-dark3);
  box-shadow: 3px 3px 0 var(--c-dark3);
  line-height: 1.3;
}

.hero-badge {
  position: absolute;
  z-index: 3;
}

.sticker-1 {
  top: 18%;
  left: 6%;
  transform: rotate(-6deg);
  background: var(--c-lime);
  animation: jitter1 3.5s ease-in-out infinite;
}

.sticker-2 {
  top: 22%;
  right: 6%;
  transform: rotate(5deg);
  background: var(--c-green);
  animation: jitter2 4s ease-in-out infinite;
}

.sticker-3 {
  bottom: 28%;
  left: 6%;
  transform: rotate(-3deg);
  background: var(--c-lime);
  animation: jitter1 2.8s ease-in-out infinite reverse;
}

/* Slanted clip at hero bottom */
.hero-clip-bottom {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 60px;
  background: var(--c-dark);
  clip-path: polygon(0 100%, 100% 30%, 100% 100%);
  z-index: 4;
}

/* =============================================
   MARQUEE
   ============================================= */
.marquee-wrap {
  width: 100%;
  overflow: hidden;
  background: var(--c-lime);
  padding: 0.45rem 0;
  border-top: 2px solid var(--c-dark3);
  border-bottom: 2px solid var(--c-dark3);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}

.marquee-text {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-dark3);
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0 2rem;
}

/* =============================================
   MAIN CONTENT
   ============================================= */
.site-main {
  padding-bottom: 4rem;
  width: 100%;
  overflow-x: hidden;
}

.content-section {
  max-width: 1300px;
  margin: 3rem auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 160px 1fr 240px;
  gap: 2rem;
  align-items: start;
}

/* figure deco */
.content-deco {
  grid-column: 1;
  position: relative;
  padding-top: 2rem;
  min-width: 0;
}

.deco-block {
  width: 100%;
  border: 2px solid var(--c-lime-mid);
  margin-bottom: 0.75rem;
}

.deco-block-1 {
  height: 120px;
  background: var(--c-lime-dim);
  transform: rotate(-2deg);
}

.deco-block-2 {
  height: 80px;
  background: linear-gradient(135deg, var(--c-lime-dim), transparent);
  transform: rotate(1.5deg);
}

.deco-label {
  display: block;
  font-size: 0.7rem;
  color: var(--c-lime);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  margin-top: 1rem;
}

/* content body */
.content-body {
  grid-column: 2;
  min-width: 0;
  overflow-x: hidden;
}

/* aside */
.content-aside {
  grid-column: 3;
  min-width: 0;
  position: sticky;
  top: calc(var(--nav-h) + var(--sticky-h) + 1rem);
}

.aside-inner {
  background: var(--c-dark2);
  border: 1.5px solid var(--c-lime-mid);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}

.aside-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--c-lime);
}

.aside-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-lime);
  margin-bottom: 0.4rem;
}

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

.aside-tags {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  list-style: none;
}

.aside-tags li a {
  padding: 0.55rem 0.75rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: var(--c-grey);
  background: var(--c-lime-dim);
  border-left: 3px solid var(--c-lime);
  transition: background var(--transition), color var(--transition);
}

.aside-tags li a:hover,
.aside-tags li a:focus {
  background: var(--c-lime-mid);
  color: var(--c-lime);
  text-decoration: none;
}

.aside-sticker {
  margin-top: 1.25rem;
  transform: rotate(-4deg);
  display: inline-block;
}

/* =============================================
   PAGE CONTENT STYLES (injected content)
   ============================================= */
.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4 {
  font-family: var(--font-head);
  color: var(--c-lime);
  line-height: 1.25;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  word-break: break-word;
}

.content-body h2 {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  border-bottom: 2px solid var(--c-lime-mid);
  padding-bottom: 0.4rem;
}

.content-body h3 {
  font-size: 1.15rem;
  color: var(--c-green);
}

.content-body h4 {
  font-size: 1rem;
  color: var(--c-grey);
}

.content-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-white);
  margin-bottom: 1.1rem;
  word-break: break-word;
}

.content-body ul,
.content-body ol {
  margin: 0.75rem 0 1.1rem 1.25rem;
  list-style: disc;
}

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

.content-body li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-white);
  margin-bottom: 0.35rem;
}

.content-body a {
  color: var(--c-lime);
  border-bottom: 1px solid var(--c-lime-mid);
  word-break: break-all;
}

.content-body a:hover {
  border-bottom-color: var(--c-lime);
}

.content-body blockquote {
  border-left: 4px solid var(--c-lime);
  padding: 0.75rem 1rem;
  background: var(--c-lime-dim);
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--c-grey);
}

.content-body strong { color: var(--c-lime); font-weight: 700; }
.content-body em { color: var(--c-green); }

.content-body div {
  padding: 2rem 0;
  border-bottom: 1px solid var(--c-lime-dim);
}

.content-body div:last-child {
  border-bottom: none;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--c-dark3);
  border-top: 3px solid var(--c-lime);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 2rem 2.5rem;
  padding: 3rem 1.25rem 0;
  width: 100%;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(128,255,0,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.footer-contact { grid-column: 1; }
.footer-nav-col { grid-column: 2; }
.footer-about-col { grid-column: 3; }
.footer-bar {
  grid-column: 1 / -1;
  border-top: 1px solid var(--c-lime-mid);
  padding: 1rem 0;
  text-align: center;
}

.footer-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-lime);
  margin-bottom: 0.4rem;
}

.footer-section-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-white);
  margin-bottom: 1rem;
}

.footer-email a,
.footer-tg a {
  color: var(--c-grey);
  font-size: 0.9rem;
  word-break: break-all;
}

.footer-email a:hover,
.footer-tg a:hover { color: var(--c-lime); }

.footer-email,
.footer-tg {
  margin-bottom: 0.5rem;
}

/* Subscribe form */
.subscribe-form {
  margin-top: 1rem;
}

.sub-label {
  display: block;
  font-size: 0.8rem;
  color: var(--c-grey2);
  margin-bottom: 0.4rem;
}

.sub-row {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

.sub-input {
  flex: 1 1 160px;
  min-width: 0;
  background: var(--c-dark2);
  border: 1.5px solid var(--c-lime-mid);
  border-right: none;
  color: var(--c-white);
  font-size: 0.9rem;
  padding: 0.6rem 0.75rem;
  min-height: 44px;
  outline: none;
  transition: border-color var(--transition);
}

.sub-input:focus {
  border-color: var(--c-lime);
}

.sub-btn {
  background: var(--c-lime);
  color: var(--c-dark3);
  border: 1.5px solid var(--c-lime);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0 1rem;
  min-height: 44px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.sub-btn:hover,
.sub-btn:focus {
  background: var(--c-green);
  border-color: var(--c-green);
}

/* footer nav list */
.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-nav-list li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.88rem;
  color: var(--c-grey);
  padding: 0.2rem 0;
  border-bottom: 1px solid rgba(128,255,0,0.08);
  transition: color var(--transition);
}

.footer-nav-list li a:hover { color: var(--c-lime); text-decoration: none; }

/* footer about */
.footer-desc {
  font-size: 0.88rem;
  color: var(--c-grey2);
  line-height: 1.65;
  word-break: break-word;
}

.footer-sticker {
  margin-top: 1rem;
  font-size: 1rem;
  transform: rotate(4deg);
}

/* footer bar */
.footer-copy {
  font-size: 0.78rem;
  color: var(--c-grey2);
  letter-spacing: 0.02em;
  word-break: break-word;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes jitter1 {
  0%, 100% { transform: rotate(-6deg) translate(0, 0); }
  25% { transform: rotate(-8deg) translate(-2px, 1px); }
  50% { transform: rotate(-4deg) translate(1px, -2px); }
  75% { transform: rotate(-7deg) translate(2px, 1px); }
}

@keyframes jitter2 {
  0%, 100% { transform: rotate(5deg) translate(0, 0); }
  25% { transform: rotate(7deg) translate(1px, -1px); }
  50% { transform: rotate(3deg) translate(-2px, 1px); }
  75% { transform: rotate(6deg) translate(1px, 2px); }
}

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

/* =============================================
   SCROLL REVEAL
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* =============================================
   RESPONSIVE — TABLET
   ============================================= */
@media (max-width: 1024px) {
  .content-section {
    grid-template-columns: 1fr 200px;
  }

  .content-deco {
    display: none;
  }

  .content-body {
    grid-column: 1;
  }

  .content-aside {
    grid-column: 2;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-about-col {
    grid-column: 1 / -1;
  }
}

/* =============================================
   RESPONSIVE — MOBILE
   ============================================= */
@media (max-width: 768px) {
  :root {
    --nav-h: 56px;
    --sticky-h: 40px;
  }

  .header-inner {
    padding: 0 0.5rem;
  }

  .main-nav {
    gap: 0.1rem;
  }

  .nav-left,
  .nav-right {
    gap: 0;
    overflow: hidden;
  }

  .main-nav ol li a {
    padding: 0.4rem 0.35rem;
    font-size: 0.65rem;
    min-height: 44px;
    letter-spacing: 0.01em;
  }

  .brand-text {
    font-size: 0.95rem;
  }

  .anchor-list {
    justify-content: flex-start;
    padding: 0 0.25rem;
  }

  .anchor-list li a {
    padding: 0 0.5rem;
    font-size: 0.7rem;
  }

  .hero-block {
    min-height: 42vh;
  }

  .hero-content {
    padding: 3rem 1rem 4.5rem;
  }

  .hero-h1 {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  .hero-sub {
    font-size: 0.92rem;
  }

  .sticker-1 { top: 10%; left: 2%; }
  .sticker-2 { top: 10%; right: 2%; }
  .sticker-3 { display: none; }

  .content-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .content-deco { display: none; }

  .content-body {
    grid-column: 1;
  }

  .content-aside {
    grid-column: 1;
    position: static;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 2rem 1rem 0;
    gap: 1.5rem;
  }

  .footer-contact,
  .footer-nav-col,
  .footer-about-col {
    grid-column: 1;
  }

  .footer-bar {
    grid-column: 1;
  }

  .sub-row {
    flex-direction: column;
  }

  .sub-input {
    border-right: 1.5px solid var(--c-lime-mid);
    border-bottom: none;
    flex: 1 1 auto;
  }

  .sub-btn {
    width: 100%;
  }
}

/* =============================================
   PREFERS REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .sticker-1,
  .sticker-2,
  .sticker-3 {
    animation: none;
  }

  .marquee-track {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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