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

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: #1f2617;
  color: #e8f0d0;
}

body.body-root {
  font-family: 'Lato', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  background: #1f2617;
  color: #e8f0d0;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: #80ff00; text-decoration: none; transition: color 0.2s; }
a:hover { color: #00ff00; text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

ol, ul { list-style: none; }

/* ===== PAGE SHELL ===== */
.page-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* ===== SIDE NAV ===== */
.side-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: 100vh;
  background: #111a0a;
  border-right: 2px solid #80ff00;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 12px;
  z-index: 100;
  overflow-y: auto;
  gap: 16px;
}

.nav-brand {
  width: 100%;
  margin-bottom: 8px;
}

.nav-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #80ff00;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.2s;
}
.nav-logo-link:hover { transform: rotate(-6deg) scale(1.08); }

.site-logo-img { width: 48px; height: 48px; object-fit: cover; border-radius: 50%; }

.logo-text-mark {
  font-family: 'EB Garamond', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #1f2617;
  line-height: 1;
}

.nav-pill-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.nav-pill-list li { width: 100%; }

.nav-pill {
  display: block;
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: 1.5px solid #80ff00;
  border-radius: 999px;
  color: #80ff00;
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
  transition: background 0.18s, color 0.18s, transform 0.15s;
  min-height: 40px;
  line-height: 1.3;
}

.nav-pill:hover {
  background: #80ff00;
  color: #1f2617;
  text-decoration: none;
  transform: translateX(3px) rotate(-1deg);
}

.nav-footer-contact {
  margin-top: auto;
  width: 100%;
  text-align: center;
}

.nav-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid #80ff00;
  border-radius: 50%;
  color: #80ff00;
  font-size: 1.1rem;
  transition: background 0.18s, color 0.18s;
}
.nav-contact-btn:hover { background: #80ff00; color: #1f2617; text-decoration: none; }

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-left: 200px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ===== MARQUEE BAR ===== */
.marquee-bar {
  width: 100%;
  overflow: hidden;
  background: #80ff00;
  color: #1f2617;
  font-family: 'EB Garamond', serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 2px solid #1f2617;
}

.marquee-track {
  display: inline-flex;
  gap: 24px;
  white-space: nowrap;
  animation: marquee-scroll 22s linear infinite;
  will-change: transform;
}

.mq-dot { color: #1f2617; opacity: 0.5; }

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

/* ===== HERO BLOCK ===== */
.hero-block {
  width: 100%;
  min-height: 45vh;
  background: linear-gradient(135deg, #0d1208 0%, #1f2617 60%, #2a3d12 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-bottom: 3px solid #80ff00;
}

.hero-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(128,255,0,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(0,255,0,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 48px 48px 60px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  position: relative;
}

.hero-badge-float {
  position: absolute;
  background: #80ff00;
  color: #1f2617;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 2px solid #1f2617;
  z-index: 3;
  animation: jitter 3s ease-in-out infinite;
}

.badge-1 { top: 18px; left: 40px; animation-delay: 0s; transform: rotate(-4deg); }
.badge-2 { top: 60px; left: 140px; animation-delay: 0.8s; transform: rotate(6deg); }
.badge-3 { bottom: 30px; left: 60px; animation-delay: 1.6s; transform: rotate(-2deg); }

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

.hero-text-wrap {
  max-width: 580px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #80ff00;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-h1 {
  font-family: 'EB Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 18px rgba(128,255,0,0.25));
}

.hero-sub {
  font-size: 1rem;
  color: #a8c47a;
  margin-bottom: 28px;
  line-height: 1.6;
}

.hero-cta-btn {
  display: inline-block;
  background: #80ff00;
  color: #1f2617;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  padding: 14px 36px;
  border-radius: 999px;
  border: 2px solid #1f2617;
  transition: transform 0.18s, background 0.18s, box-shadow 0.18s;
  min-height: 48px;
}
.hero-cta-btn:hover {
  background: #00ff00;
  text-decoration: none;
  transform: scale(1.05) rotate(-1deg);
  box-shadow: 0 0 24px rgba(128,255,0,0.5);
}

.hero-sticker {
  position: absolute;
  font-family: 'EB Garamond', serif;
  font-weight: 700;
  pointer-events: none;
  z-index: 1;
  opacity: 0.18;
  user-select: none;
}

.sticker-a {
  left: 20px;
  bottom: 20px;
  font-size: 5rem;
  color: #80ff00;
  transform: rotate(-12deg);
  letter-spacing: -0.02em;
}

.sticker-b {
  left: 52%;
  top: 18px;
  font-size: 4rem;
  opacity: 0.13;
  transform: rotate(8deg);
}

/* ===== SITE MAIN ===== */
.site-main {
  flex: 1;
  padding: 0;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 40px;
  display: grid;
  grid-template-columns: 1fr 260px;
  grid-template-areas: "content sidebar";
  gap: 40px;
  align-items: start;
}

/* === STRUCTURAL CONTRACT: main > section.wrap > article > div === */
.content-section {
  grid-area: content;
}

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

/* ===== CONTENT STYLES ===== */
.content-article h2 {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #80ff00;
  margin-top: 2.4em;
  margin-bottom: 0.7em;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(128,255,0,0.25);
  line-height: 1.25;
  scroll-margin-top: 80px;
}

.content-article h2 span {
  display: inline;
}

.content-article h3 {
  font-family: 'EB Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #b8e860;
  margin-top: 1.8em;
  margin-bottom: 0.5em;
  scroll-margin-top: 80px;
}

.content-article h3 span {
  display: inline;
}

.content-article p {
  margin-bottom: 1.1em;
  font-size: 1rem;
  line-height: 1.8;
  color: #d4e8a8;
}

.content-article ul, .content-article ol {
  margin: 1em 0 1.2em 1.4em;
  list-style: disc;
}
.content-article ol { list-style: decimal; }
.content-article li {
  margin-bottom: 0.5em;
  font-size: 1rem;
  line-height: 1.7;
  color: #d4e8a8;
}

.content-article strong { color: #80ff00; font-weight: 700; }
.content-article em { color: #a8d860; font-style: italic; }

.content-article a {
  color: #80ff00;
  border-bottom: 1px dashed rgba(128,255,0,0.4);
}
.content-article a:hover { color: #00ff00; border-bottom-color: #00ff00; }

.content-article blockquote {
  border-left: 4px solid #80ff00;
  margin: 1.5em 0;
  padding: 12px 20px;
  background: rgba(128,255,0,0.05);
  border-radius: 0 4px 4px 0;
  color: #b8d880;
  font-style: italic;
}

.content-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95rem;
}
.content-article th {
  background: rgba(128,255,0,0.15);
  color: #80ff00;
  font-weight: 700;
  padding: 10px 14px;
  text-align: left;
  border: 1px solid rgba(128,255,0,0.2);
}
.content-article td {
  padding: 9px 14px;
  border: 1px solid rgba(128,255,0,0.1);
  color: #d4e8a8;
  vertical-align: top;
}
.content-article tr:nth-child(even) td {
  background: rgba(128,255,0,0.03);
}

/* Section anchors from page.content */
.content-article article {
  margin-bottom: 3em;
  padding-top: 8px;
  scroll-margin-top: 80px;
}

/* ===== SIDEBAR ===== */
.sidebar-right {
  grid-area: sidebar;
  position: sticky;
  top: 56px;
}

.sidebar-inner {
  background: #111a0a;
  border: 2px solid rgba(128,255,0,0.35);
  border-radius: 4px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-title {
  font-family: 'EB Garamond', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #80ff00;
  margin-bottom: 2px;
}

.sidebar-title span { display: inline; }

.sidebar-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: decimal;
  padding-left: 18px;
  color: #80ff00;
}

.sidebar-nav-list li {
  color: #80ff00;
}

.sidebar-link {
  font-size: 0.88rem;
  color: #a8d860;
  transition: color 0.15s, padding-left 0.15s;
  display: block;
  padding: 3px 0;
}
.sidebar-link:hover { color: #80ff00; padding-left: 4px; text-decoration: none; }

.sidebar-badge-block {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill-tag {
  display: inline-block;
  background: transparent;
  border: 1.5px solid #80ff00;
  color: #80ff00;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 10px;
}

.sidebar-tip {
  font-size: 0.85rem;
  color: #8aaa60;
}
.sidebar-tip a { color: #80ff00; }

/* ===== FOOTER ===== */
.site-footer {
  background: #0b1008;
  border-top: 3px solid #80ff00;
  padding: 48px 40px 0;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 40px;
}

.footer-col-title {
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  font-weight: 700;
  color: #80ff00;
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}

.footer-col-title span { display: inline; }

.footer-desc {
  font-size: 0.88rem;
  color: #7a9460;
  line-height: 1.7;
}

.footer-links ul,
.footer-links2 ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links li a,
.footer-links2 li a {
  font-size: 0.88rem;
  color: #8aaa60;
  transition: color 0.15s;
  display: block;
  padding: 3px 0;
  min-height: 32px;
  line-height: 1.4;
}
.footer-links li a:hover,
.footer-links2 li a:hover { color: #80ff00; text-decoration: none; }

.footer-address {
  font-style: normal;
  margin-bottom: 12px;
}
.footer-address a,
.footer-address span {
  font-size: 0.85rem;
  color: #8aaa60;
  word-break: break-all;
}
.footer-address a:hover { color: #80ff00; }

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.footer-contact-list li a {
  font-size: 0.85rem;
  color: #8aaa60;
  display: block;
  padding: 4px 0;
  min-height: 32px;
  line-height: 1.5;
}
.footer-contact-list li a:hover { color: #80ff00; text-decoration: none; }

.footer-subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.subscribe-input {
  background: #1f2617;
  border: 1.5px solid rgba(128,255,0,0.35);
  border-radius: 4px;
  color: #e8f0d0;
  font-size: 0.88rem;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.18s;
  min-height: 40px;
  font-family: 'Lato', sans-serif;
}
.subscribe-input:focus { border-color: #80ff00; }
.subscribe-input::placeholder { color: #4a6030; }

.subscribe-btn {
  background: #80ff00;
  color: #1f2617;
  border: none;
  border-radius: 999px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 20px;
  cursor: pointer;
  min-height: 40px;
  transition: background 0.18s, transform 0.15s;
  letter-spacing: 0.05em;
}
.subscribe-btn:hover { background: #00ff00; transform: scale(1.04); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(128,255,0,0.15);
  padding: 16px 0 20px;
}

.footer-copy {
  font-size: 0.78rem;
  color: #506040;
  text-align: center;
  line-height: 1.6;
}

/* ===== SCROLL REVEAL ===== */
@media (prefers-reduced-motion: no-preference) {
  .sr-hidden {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .sr-visible {
    opacity: 1;
    transform: none;
  }
  .sr-hidden.stagger-1 { transition-delay: 0.08s; }
  .sr-hidden.stagger-2 { transition-delay: 0.16s; }
  .sr-hidden.stagger-3 { transition-delay: 0.24s; }
  .sr-hidden.stagger-4 { transition-delay: 0.32s; }
  .sr-hidden.stagger-5 { transition-delay: 0.40s; }
}

/* ===== SCROLL MARGIN FOR ANCHORED SECTIONS ===== */
article[id] { scroll-margin-top: 72px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .wrap {
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "sidebar";
    padding: 32px 24px;
    gap: 32px;
  }

  .sidebar-right {
    position: static;
  }

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

@media (max-width: 768px) {
  .side-nav {
    width: 100%;
    height: auto;
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    flex-direction: row;
    align-items: center;
    padding: 8px 12px;
    border-right: none;
    border-top: 2px solid #80ff00;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    z-index: 100;
  }

  .nav-brand { margin-bottom: 0; width: auto; flex-shrink: 0; }

  .nav-pill-list {
    flex-direction: row;
    gap: 6px;
    flex-wrap: nowrap;
  }

  .nav-pill-list li { width: auto; }

  .nav-pill {
    width: auto;
    white-space: nowrap;
    padding: 8px 14px;
    font-size: 0.78rem;
    min-height: 40px;
  }

  .nav-footer-contact { margin-top: 0; width: auto; flex-shrink: 0; }

  .main-content {
    margin-left: 0;
    margin-bottom: 64px;
  }

  .hero-inner {
    padding: 36px 20px 36px 20px;
    align-items: flex-end;
  }

  .badge-1 { left: 10px; top: 10px; }
  .badge-2 { left: 80px; top: 48px; }
  .badge-3 { left: 10px; bottom: 20px; }

  .site-footer {
    padding: 36px 20px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .wrap { padding: 24px 16px; }

  .hero-h1 { font-size: 1.7rem; }

  .hero-text-wrap { max-width: 100%; }

  .marquee-track { font-size: 0.85rem; }
}
