@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@400;700&family=Cabin:wght@400;500;600;700&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --c-green: #80ff00;
  --c-green2: #00ff00;
  --c-dark: #1f2617;
  --c-dark2: #161d0f;
  --c-dark3: #2a3320;
  --c-text: #e8f0d8;
  --c-text-dim: #a8b890;
  --c-accent: #ff3cac;
  --c-yellow: #ffe600;
  --c-orange: #ff6b00;
  --nav-h: 60px;
  --marquee-h: 36px;
  --radius-card: 28px;
  --radius-sm: 12px;
  --font-hand: 'Amatic SC', cursive;
  --font-body: 'Cabin', system-ui, -apple-system, sans-serif;
  --max-prose: 760px;
  --max-wide: 1100px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  background: var(--c-dark);
  padding-bottom: calc(var(--nav-h) + 12px);
  overflow-x: hidden;
}

a {
  color: var(--c-green);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}
a:hover { color: var(--c-green2); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--c-green); outline-offset: 2px; border-radius: 4px; }

img { display: block; max-width: 100%; height: auto; }
p { margin-bottom: 1rem; }
strong { color: var(--c-green); }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; }
h1, h2, h3, h4 { font-family: var(--font-hand); line-height: 1.2; }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-wrap {
  height: var(--marquee-h);
  background: var(--c-green);
  overflow: hidden;
  position: relative;
  z-index: 10;
  border-top: 2px solid var(--c-dark);
  border-bottom: 2px solid var(--c-dark);
}

.marquee-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: marquee-scroll 22s linear infinite;
  width: max-content;
}

.marquee-track span {
  display: inline-block;
  padding: 0 2rem;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--c-dark);
  line-height: var(--marquee-h);
  letter-spacing: 0.08em;
}
.marquee-track span:nth-child(even) {
  color: var(--c-dark2);
  letter-spacing: 0.14em;
}

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

/* ============================================================
   BOTTOM NAV (fixed, mobile-style, desktop too)
   ============================================================ */
.site-header {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--c-dark2);
  border-top: 2px solid var(--c-green);
  box-shadow: 0 -4px 24px rgba(128,255,0,0.18);
}

.bottom-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: var(--nav-h);
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.bottom-nav::-webkit-scrollbar { display: none; }

.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 10px;
  font-family: var(--font-hand);
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-text-dim);
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  text-decoration: none;
  flex-shrink: 0;
  transition: color 0.2s, background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--c-green);
  background: rgba(128,255,0,0.08);
  text-decoration: none;
  transform: translateY(-2px);
}
.nav-link.active {
  color: var(--c-dark);
  background: var(--c-green);
  border-radius: var(--radius-sm);
}

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.site-main {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 16px 40px;
}

.page-article {
  width: 100%;
}

/* ============================================================
   HERO - HOME
   ============================================================ */
.hero-section {
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 40px 0 32px;
  position: relative;
}

.hero-inner {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 24px;
  width: 100%;
  position: relative;
}

.hero-text {
  text-align: right;
  max-width: 680px;
  position: relative;
  z-index: 2;
}

.hero-h1 {
  font-family: var(--font-hand);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 700;
  color: var(--c-green);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  text-shadow: 3px 3px 0 var(--c-dark2), 6px 6px 0 rgba(128,255,0,0.15);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--c-text-dim);
  margin-bottom: 1.2rem;
  text-align: right;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

/* ============================================================
   STICKERS / DECORATIVE ELEMENTS
   ============================================================ */
.hero-stickers {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.stk {
  position: absolute;
  font-family: var(--font-hand);
  font-weight: 700;
  background: var(--c-green);
  color: var(--c-dark);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 1rem;
  letter-spacing: 0.06em;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.4);
  animation: jitter 4s ease-in-out infinite;
}

.stk-1 {
  top: 12%;
  left: 4%;
  transform: rotate(-8deg);
  background: var(--c-accent);
  color: #fff;
  animation-delay: 0s;
}
.stk-2 {
  top: 30%;
  left: 12%;
  transform: rotate(5deg);
  background: var(--c-yellow);
  color: var(--c-dark);
  animation-delay: 1.2s;
}
.stk-3 {
  top: 55%;
  left: 3%;
  transform: rotate(-3deg);
  background: var(--c-green2);
  color: var(--c-dark);
  animation-delay: 0.6s;
  font-size: 1.3rem;
}
.stk-4 {
  top: 10%;
  left: 22%;
  transform: rotate(10deg);
  background: var(--c-orange);
  color: #fff;
  animation-delay: 1.8s;
  font-size: 0.85rem;
}

@keyframes jitter {
  0%, 100% { transform: rotate(var(--rot, -8deg)) translateY(0); }
  25% { transform: rotate(calc(var(--rot, -8deg) + 3deg)) translateY(-3px); }
  75% { transform: rotate(calc(var(--rot, -8deg) - 2deg)) translateY(2px); }
}

/* ============================================================
   STICKER TAGS
   ============================================================ */
.sticker-tag {
  display: inline-block;
  padding: 8px 16px;
  background: var(--c-dark3);
  color: var(--c-green);
  border: 2px solid var(--c-green);
  border-radius: var(--radius-sm);
  font-family: var(--font-hand);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, transform 0.18s;
  min-height: 40px;
  line-height: 1.2;
}
.sticker-tag:hover {
  background: var(--c-green);
  color: var(--c-dark);
  transform: rotate(-2deg) scale(1.04);
  text-decoration: none;
}
.sticker-tag--home {
  background: var(--c-green);
  color: var(--c-dark);
  border-color: var(--c-green);
}
.sticker-tag--home:hover {
  background: var(--c-green2);
  border-color: var(--c-green2);
  color: var(--c-dark);
}

/* ============================================================
   SECTION HEADINGS & EYEBROW
   ============================================================ */
.eyebrow {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
  padding: 2px 8px;
  background: rgba(255,60,172,0.12);
  border-radius: 4px;
  border-left: 3px solid var(--c-accent);
}

.section-heading {
  font-family: var(--font-hand);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--c-green);
  margin-bottom: 1.2rem;
  margin-top: 0.3rem;
  line-height: 1.15;
}

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */
.content-section {
  padding: 36px 0;
  border-top: 1px dashed rgba(128,255,0,0.2);
}

.children-section,
.cat-nav-section,
.related-section,
.about-links-section,
.privacy-links-section,
.article-footer-section,
.default-links-section {
  padding: 36px 0;
  border-top: 1px dashed rgba(128,255,0,0.2);
}

.other-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

/* ============================================================
   PROSE BODY
   ============================================================ */
.prose-body {
  max-width: var(--max-prose);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-text);
}

.prose-body h2 {
  font-family: var(--font-hand);
  font-size: 1.8rem;
  color: var(--c-green);
  margin: 1.6rem 0 0.6rem;
}
.prose-body h3 {
  font-family: var(--font-hand);
  font-size: 1.4rem;
  color: var(--c-green2);
  margin: 1.2rem 0 0.5rem;
}
.prose-body p { margin-bottom: 1rem; }
.prose-body a { color: var(--c-green); text-decoration: underline; }
.prose-body a:hover { color: var(--c-green2); }
.prose-body ul, .prose-body ol { margin: 0.6rem 0 1rem 1.5rem; }
.prose-body li { margin-bottom: 0.4rem; }
.prose-body strong { color: var(--c-green); }
.prose-body blockquote {
  border-left: 4px solid var(--c-green);
  padding: 8px 16px;
  margin: 1rem 0;
  background: rgba(128,255,0,0.06);
  border-radius: 0 8px 8px 0;
  color: var(--c-text-dim);
  font-style: italic;
}
.prose-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}
.prose-body th {
  background: var(--c-dark3);
  color: var(--c-green);
  padding: 8px 12px;
  text-align: left;
  border-bottom: 2px solid var(--c-green);
}
.prose-body td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(128,255,0,0.1);
}
.prose-body tr:hover td { background: rgba(128,255,0,0.04); }

.prose-body--article { max-width: var(--max-prose); }
.prose-body--about { max-width: var(--max-prose); }
.prose-body--privacy { max-width: var(--max-prose); }

/* ============================================================
   CARDS TABLE (子页列表)
   ============================================================ */
.cards-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;
  table-layout: fixed;
}

.card-row {
  transition: transform 0.2s;
}
.card-row:hover { transform: translateX(6px); }

.card-cell {
  padding: 0;
}

.card-anchor {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--c-dark3);
  border-radius: var(--radius-card);
  padding: 18px 24px;
  text-decoration: none;
  color: var(--c-text);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  border: 1.5px solid rgba(128,255,0,0.1);
  min-height: 80px;
}
.card-anchor:hover {
  background: rgba(128,255,0,0.1);
  box-shadow: 0 0 0 2px var(--c-green);
  text-decoration: none;
  color: var(--c-text);
}

.card-num {
  font-family: var(--font-hand);
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-green);
  min-width: 44px;
  flex-shrink: 0;
  opacity: 0.7;
  line-height: 1;
}

.card-title {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-green);
  flex: 1;
  display: block;
  line-height: 1.3;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--c-text-dim);
  flex-basis: 240px;
  flex-shrink: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-date {
  font-size: 0.82rem;
  color: var(--c-text-dim);
  flex-shrink: 0;
  font-family: var(--font-body);
  white-space: nowrap;
}

.cards-table--small .card-anchor {
  padding: 12px 18px;
  min-height: 56px;
  border-radius: var(--radius-sm);
}
.cards-table--small .card-num {
  font-size: 1.4rem;
  min-width: 34px;
}
.cards-table--small .card-title {
  font-size: 1.05rem;
}

/* ============================================================
   STAGGER ANIMATION
   ============================================================ */
.stagger-item {
  animation: fadeSlideUp 0.5s ease both;
  animation-delay: calc(var(--i, 0) * 0.07s);
}

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

/* ============================================================
   CATEGORY PAGE
   ============================================================ */
.cat-hero-section {
  padding: 32px 0 24px;
}

.cat-hero-inner {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  position: relative;
  min-height: 160px;
  padding: 16px 0;
}

.cat-hero-text {
  text-align: right;
  max-width: 680px;
  z-index: 2;
}

.cat-h1 {
  font-family: var(--font-hand);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 700;
  color: var(--c-green);
  line-height: 1.15;
  margin-bottom: 0.4rem;
  text-shadow: 2px 2px 0 var(--c-dark2);
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.page-article--single {}

.article-header-section {
  padding: 32px 0 24px;
}

.article-title-block {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 24px;
  padding: 16px 0;
  min-height: 120px;
}

.article-h1 {
  font-family: var(--font-hand);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--c-green);
  line-height: 1.15;
  margin-bottom: 0.5rem;
  text-align: right;
  max-width: 680px;
  text-shadow: 2px 2px 0 var(--c-dark2);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}

.pub-date, .mod-date {
  font-size: 0.85rem;
  color: var(--c-text-dim);
  font-family: var(--font-body);
  padding: 3px 8px;
  background: rgba(128,255,0,0.06);
  border-radius: 4px;
  border: 1px solid rgba(128,255,0,0.12);
}

.article-hero-img {
  margin-bottom: 20px;
  border-radius: var(--radius-card);
  overflow: hidden;
}
.article-hero-img .hero-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-card);
}

.content-section--article { padding-top: 24px; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero-section {
  padding: 32px 0 24px;
}
.about-hero-inner {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  position: relative;
  min-height: 160px;
}
.about-hero-text {
  text-align: right;
  max-width: 680px;
  z-index: 2;
}
.about-h1 {
  font-family: var(--font-hand);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 700;
  color: var(--c-green);
  line-height: 1.15;
  margin-bottom: 0.4rem;
  text-shadow: 2px 2px 0 var(--c-dark2);
}

/* ============================================================
   PRIVACY PAGE
   ============================================================ */
.privacy-hero-section {
  padding: 32px 0 24px;
  text-align: right;
  position: relative;
}
.privacy-h1 {
  font-family: var(--font-hand);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--c-green);
  line-height: 1.15;
  margin-bottom: 0.4rem;
  text-shadow: 2px 2px 0 var(--c-dark2);
}

/* ============================================================
   DEFAULT PAGE
   ============================================================ */
.default-h1 {
  font-family: var(--font-hand);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--c-green);
  line-height: 1.15;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 0 var(--c-dark2);
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--c-text-dim);
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.breadcrumb a {
  color: var(--c-text-dim);
  text-decoration: underline;
}
.breadcrumb a:hover { color: var(--c-green); }
.breadcrumb span[aria-hidden] {
  color: rgba(255,255,255,0.3);
  padding: 0 2px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--c-dark2);
  border-top: 2px solid var(--c-green);
  padding: 48px 16px 32px;
  margin-bottom: calc(var(--nav-h) + 8px);
  position: relative;
  overflow: hidden;
}

.footer-brand-row {
  text-align: center;
  margin-bottom: 36px;
}

.footer-brand-big {
  font-family: var(--font-hand);
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 700;
  color: var(--c-green);
  letter-spacing: 0.04em;
  line-height: 1;
  opacity: 0.85;
  text-shadow: 4px 4px 0 rgba(0,0,0,0.4);
  display: block;
}

.footer-cols {
  max-width: var(--max-wide);
  margin: 0 auto 32px;
  display: flex;
  gap: 32px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-dl {
  flex: 1;
  min-width: 180px;
}

.footer-dl dt {
  font-family: var(--font-hand);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-green);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(128,255,0,0.25);
  letter-spacing: 0.06em;
}

.footer-dl dd {
  margin-bottom: 8px;
  margin-left: 0;
}

.footer-dl dd a {
  color: var(--c-text-dim);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-block;
  min-height: 28px;
  line-height: 28px;
}
.footer-dl dd a:hover { color: var(--c-green); text-decoration: underline; }

.footer-copy {
  text-align: center;
  padding-top: 20px;
  border-top: 1px dashed rgba(128,255,0,0.15);
}
.footer-copy p {
  font-size: 0.82rem;
  color: var(--c-text-dim);
  margin: 0;
}

/* ============================================================
   EMPTY TIP
   ============================================================ */
.empty-tip {
  color: var(--c-text-dim);
  font-size: 0.95rem;
  padding: 20px 0;
}

/* ============================================================
   NOISE / TEXTURE OVERLAY (pseudo)
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
  mix-blend-mode: overlay;
}

/* ============================================================
   MOBILE BREAKPOINTS
   ============================================================ */
@media (max-width: 640px) {
  .hero-section {
    min-height: 38vh;
    padding: 24px 0 20px;
  }
  .hero-inner {
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
  }
  .hero-h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-sub { font-size: 0.95rem; }

  .cat-hero-inner,
  .about-hero-inner,
  .article-title-block {
    flex-direction: column;
    align-items: flex-end;
    min-height: 100px;
  }

  .card-anchor {
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 16px;
  }
  .card-desc { flex-basis: 100%; }
  .card-date { flex-basis: 100%; }

  .footer-cols {
    flex-direction: column;
    gap: 24px;
  }
  .footer-dl { min-width: auto; }

  .bottom-nav {
    gap: 0;
    justify-content: flex-start;
    padding: 0 4px;
  }
  .nav-link {
    padding: 6px 8px;
    font-size: 0.9rem;
    min-height: 44px;
  }

  .hero-stickers { display: none; }

  .site-main { padding: 0 12px 32px; }
}

@media (min-width: 641px) and (max-width: 900px) {
  .card-desc { flex-basis: 160px; }
  .footer-cols { gap: 20px; }
}

@media (min-width: 901px) {
  .bottom-nav {
    gap: 4px;
  }
  .nav-link { font-size: 1.05rem; padding: 8px 14px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .stk { animation: none; }
  .stagger-item { animation: none; }
  .card-row { transition: none; }
  .sticker-tag:hover { transform: none; }
  .nav-link:hover { transform: none; }
}
