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

:root {
  --lime: #80ff00;
  --neon: #00ff00;
  --ink: #1f2617;
  --mist: #f2ffdd;
  --glass: rgba(255, 255, 255, .58);
  --line: rgba(31, 38, 23, .26);
  --r: 4px;
  --nav-h: 190px;
}

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

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: 'Be Vietnam Pro', 'Noto Sans', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.68;
  background:
    radial-gradient(circle at 10% 6%, rgba(128, 255, 0, .48), transparent 42%),
    radial-gradient(circle at 90% 20%, rgba(0, 255, 0, .26), transparent 36%),
    radial-gradient(circle at 46% 88%, rgba(128, 255, 0, .3), transparent 46%),
    linear-gradient(165deg, #f5ffe6, #e6f8d0 55%, #ddf4c5);
  background-attachment: fixed;
}

/* ---------- 顶部：口号条 + 品牌行 + 胶囊菜单 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(#f8ffec, rgba(248, 255, 236, .82));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
}

.ticker {
  overflow: hidden;
  background: var(--ink);
  color: var(--neon);
  border-bottom: 2px solid var(--ink);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: slide 26s linear infinite;
}

.grp { display: flex; }

.grp span {
  display: inline-flex;
  align-items: center;
  padding: 5px 0 5px 22px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .06em;
  white-space: nowrap;
}

.grp span::after {
  content: '✦';
  margin-left: 22px;
  color: var(--lime);
}

@keyframes slide {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.brandrow {
  max-width: 1220px;
  margin: 0 auto;
  padding: 14px 20px 2px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  text-decoration: none;
  color: var(--ink);
}

.mark {
  font-size: 26px;
  line-height: 1;
  transform: rotate(-8deg);
}

.brandname {
  display: inline-block;
  padding: 3px 14px;
  font-size: clamp(25px, 4.2vw, 40px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: var(--r);
  box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(-1.5deg);
  animation: jitter 5.5s ease-in-out infinite;
}

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

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 12px 20px 16px;
  width: 100%;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 17px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transform: rotate(var(--r, 0deg));
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.pill:hover,
.pill:focus-visible {
  background: var(--lime);
  transform: rotate(var(--r, 0deg)) translateY(-3px);
  box-shadow: 3px 4px 0 var(--ink);
}

.pill[aria-current='page'] {
  background: var(--neon);
  box-shadow: 3px 3px 0 var(--ink);
}

/* ---------- 外壳 ---------- */
.shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  max-width: 1220px;
  margin: 0 auto;
  padding: 26px 20px 64px;
}

/* ---------- 左侧栏 ---------- */
.rail {
  position: sticky;
  top: calc(var(--nav-h) + 14px);
  align-self: start;
  padding: 16px 16px 18px;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  background: var(--glass);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  box-shadow: 4px 4px 0 rgba(31, 38, 23, .16);
  transform: rotate(-.6deg);
}

.rail-h {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.subtitle {
  margin: 3px 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: #3b4a2b;
}

.rail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rail;
}

.rail-list li { counter-increment: rail; }

.rail-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 2px 4px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px dashed var(--line);
}

.rail-list a::before {
  content: counter(rail, decimal-leading-zero);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #52683a;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  background: var(--lime);
}

/* ---------- 正文 ---------- */
.doc { min-width: 0; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  gap: 26px;
  align-items: center;
  min-height: 70vh;
  scroll-margin-top: var(--nav-h);
}

.hero--solo { grid-template-columns: minmax(0, 1fr); }

.hero-txt { min-width: 0; }

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(33px, 5.6vw, 62px);
  line-height: 1.08;
  letter-spacing: -.025em;
  display: inline-block;
  transform: rotate(-1.2deg);
  text-wrap: balance;
}

.lead {
  margin: 0;
  max-width: 34ch;
  padding-left: 14px;
  border-left: 5px solid var(--lime);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 500;
}

.hero-fig {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  border: 3px solid var(--ink);
  border-radius: var(--r);
  overflow: hidden;
  background: rgba(255, 255, 255, .5);
  box-shadow: 7px 7px 0 var(--neon);
  transform: rotate(1.6deg);
}

.hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  will-change: transform;
}

.doc > article {
  padding: 38px 0;
  border-top: 2px dashed var(--line);
  scroll-margin-top: var(--nav-h);
}

.doc > .hero { border-top: 0; padding-top: 0; }

.doc h2 {
  margin: 0 0 10px;
  font-size: clamp(23px, 3.3vw, 36px);
  line-height: 1.18;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.doc h2 + p,
.doc h2 + .subtitle {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 600;
  color: #41522c;
}

.doc h3 {
  margin: 22px 0 8px;
  font-size: 20px;
  line-height: 1.35;
}

.doc p,
.doc li {
  font-size: 17px;
  line-height: 1.78;
}

.doc p { margin: 0 0 14px; }

.doc ul,
.doc ol { margin: 0 0 16px; padding-left: 22px; }

.doc li { margin-bottom: 6px; }

.doc a {
  color: #2c4410;
  text-decoration: underline;
  text-decoration-color: var(--neon);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

.doc a:hover { background: var(--lime); }

.doc strong { font-weight: 700; }

.doc blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  border-left: 5px solid var(--lime);
  border-radius: var(--r);
  background: var(--glass);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.doc blockquote p:last-child { margin-bottom: 0; }

.doc img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r);
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.doc th,
.doc td {
  padding: 8px 10px;
  border: 1px solid var(--line);
  text-align: left;
}

.doc th { background: rgba(128, 255, 0, .35); }

.doc hr {
  margin: 26px 0;
  border: 0;
  border-top: 2px dashed var(--line);
}

/* 入场（仅在 JS 就绪时启用） */
.js .doc > article:not(.hero) {
  opacity: .001;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}

.js .doc > article.in,
.js .doc > article.hero {
  opacity: 1;
  transform: none;
}

/* ---------- 页脚 ---------- */
.foot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 26px 20px 20px;
  border-top: 3px solid var(--ink);
  background: var(--ink);
  color: var(--mist);
}

.footnav { min-width: 0; }

.foot dl { margin: 0; }

.foot dt {
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--lime);
}

.foot dd { margin: 0; }

.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-size: 16px;
  color: var(--mist);
  text-decoration: none;
}

.foot a:hover,
.foot a:focus-visible {
  color: var(--neon);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.copy {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  padding-top: 12px;
  border-top: 1px dashed rgba(242, 255, 221, .32);
  font-size: 16px;
  color: #cfe6b4;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .shell {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 18px 16px 52px;
  }

  .doc { order: 1; width: 100%; }

  .rail {
    order: 2;
    position: static;
    width: 100%;
    transform: none;
  }

  .rail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-top: 4px;
  }

  .hero-fig { aspect-ratio: 16 / 11; transform: rotate(1deg); }

  .doc > article { scroll-margin-top: 16px; }
}

@media (max-width: 780px) {
  .top { position: static; backdrop-filter: none; }

  .brandrow { padding: 12px 16px 0; }

  .menu { padding: 10px 16px 14px; gap: 6px; }

  .pill { padding: 6px 13px; }

  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 22px 16px 18px; }
}

@media (max-width: 420px) {
  .rail-list { grid-template-columns: minmax(0, 1fr); }
  .lead { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .hero-img { transform: none; }
}

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