:root {
  --ink: #192617;
  --ink-deep: #0d1610;
  --ink-soft: #22331f;
  --neon: #87ff71;
  --sun: #ffce5c;
  --fog: #e4f8dc;
  --muted: #a8c79c;
  --line: #38512f;
  --r: 10px;
  --edge: clamp(16px, 4vw, 44px);
}

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

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

body {
  margin: 0;
  font-family: 'Noto Sans KR', system-ui, -apple-system, 'Segoe UI', 'PingFang SC',
    'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--fog);
  background-color: var(--ink-deep);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(135, 255, 113, 0.16) 1px, transparent 1.7px),
    radial-gradient(900px 520px at 88% -8%, #27401f 0%, transparent 72%),
    radial-gradient(700px 460px at -10% 40%, #1d2f1a 0%, transparent 70%);
  background-size: 26px 26px, 100% 100%, 100% 100%;
  background-attachment: scroll, fixed, fixed;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

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

menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

a {
  color: var(--neon);
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 顶部细条 ---------- */
.ticker {
  background: repeating-linear-gradient(135deg, var(--sun) 0 18px, #f3bd3d 18px 36px);
  color: #1b2413;
  border-bottom: 3px solid var(--ink);
  overflow: hidden;
  white-space: nowrap;
}

.ticker-line {
  margin: 0;
  padding: 6px var(--edge);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

/* ---------- 页头 ---------- */
.masthead {
  background: linear-gradient(180deg, rgba(13, 22, 16, 0.94), rgba(13, 22, 16, 0.55));
}

.brandrow {
  padding: 14px var(--edge) 6px;
  border-bottom: 2px dotted var(--line);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 6px 0;
  text-decoration: none;
}

.mark-shape {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  background: var(--sun);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform: rotate(-10deg);
  box-shadow: 4px 4px 0 rgba(135, 255, 113, 0.55);
}

.mark-text {
  font-size: clamp(28px, 4.6vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--neon);
  text-shadow: 3px 3px 0 rgba(255, 206, 92, 0.25);
}

.navrow {
  position: relative;
  padding: 10px var(--edge) 14px;
  border-bottom: 3px dashed var(--line);
}

.drop summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid var(--neon);
  border-radius: var(--r);
  color: var(--neon);
  font-weight: 700;
  letter-spacing: 0.14em;
  cursor: pointer;
  list-style: none;
  background: rgba(135, 255, 113, 0.07);
}

.drop summary::-webkit-details-marker {
  display: none;
}

.drop summary::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 8px solid var(--sun);
}

.drop-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.drop-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 2px solid transparent;
  border-radius: var(--r);
  text-decoration: none;
  color: var(--fog);
  font-weight: 500;
  background: rgba(135, 255, 113, 0.05);
}

.drop-menu a:hover {
  border-color: var(--sun);
  color: var(--sun);
  background: rgba(255, 206, 92, 0.12);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: clamp(20px, 4vw, 54px);
  min-height: 70vh;
  padding: clamp(26px, 5vw, 62px) var(--edge);
  overflow: hidden;
  border-bottom: 3px dashed var(--line);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(135, 255, 113, 0.13) 1px, transparent 1.7px);
  background-size: 30px 30px;
}

.hero-art {
  position: relative;
  will-change: transform;
}

.hero-frame {
  position: relative;
  z-index: 2;
  margin: 0;
  aspect-ratio: 4 / 3;
  border: 5px solid var(--sun);
  border-radius: var(--r);
  overflow: hidden;
  transform: rotate(-2.2deg);
  box-shadow: 16px 16px 0 rgba(135, 255, 113, 0.24);
  background: linear-gradient(140deg, #2c4726, #131f11);
}

.hero-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: normal;
}

.hero-frame--blank {
  display: grid;
  place-items: center;
}

.blank-dot {
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 10px dotted rgba(135, 255, 113, 0.6);
}

.deco {
  position: absolute;
  pointer-events: none;
  z-index: 3;
}

.deco-tri {
  width: 108px;
  height: 108px;
  top: -18px;
  left: -22px;
  background: var(--neon);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform: rotate(-14deg);
  opacity: 0.85;
  mix-blend-mode: screen;
}

.deco-ring {
  width: 92px;
  height: 92px;
  right: -16px;
  bottom: 4px;
  border-radius: 50%;
  border: 9px dotted var(--sun);
  opacity: 0.75;
}

.deco-grid {
  width: 96px;
  height: 44px;
  left: 6%;
  bottom: -16px;
  border-radius: 6px;
  background-image: radial-gradient(circle at 1px 1px, var(--sun) 1.6px, transparent 1.8px);
  background-size: 11px 11px;
  opacity: 0.7;
}

.hero-copy {
  position: relative;
  z-index: 4;
  text-align: left;
}

.hero-kick {
  display: inline-block;
  margin: 0 0 18px;
  padding: 4px 14px;
  border-radius: 4px;
  background: var(--sun);
  color: #17200f;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  transform: rotate(-1.6deg);
  box-shadow: 5px 5px 0 rgba(135, 255, 113, 0.5);
}

.hero h1 {
  margin: 0;
  font-size: clamp(28px, 4.8vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #f4ffee;
  text-shadow: 3px 3px 0 rgba(135, 255, 113, 0.3);
}

.hero-rule {
  display: block;
  height: 10px;
  width: min(260px, 68%);
  margin-top: 24px;
  border-radius: 6px;
  background: repeating-linear-gradient(90deg, var(--neon) 0 14px, transparent 14px 26px);
}

/* ---------- 主体 ---------- */
main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(20px, 3vw, 42px);
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 52px) var(--edge) clamp(36px, 5vw, 64px);
  align-items: start;
}

article {
  min-width: 0;
}

article > section {
  position: relative;
  scroll-margin-top: 88px;
  padding: clamp(20px, 3vw, 34px);
  margin-bottom: clamp(22px, 3.4vw, 38px);
  border: 2px dashed var(--line);
  border-radius: var(--r);
  overflow-x: auto;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
  box-shadow: 0 18px 34px -26px #000;
}

article > section:nth-child(odd) {
  transform: rotate(-0.35deg);
}

article > section::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 22px;
  width: 46px;
  height: 8px;
  border-radius: 4px;
  background: var(--sun);
}

article h2 {
  margin: 0 0 0.55em;
  font-size: clamp(22px, 3vw, 31px);
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--sun);
}

article h3 {
  margin: 1.5em 0 0.5em;
  font-size: 20px;
  line-height: 1.4;
  color: var(--neon);
}

article p {
  margin: 0 0 1em;
}

article ul,
article ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}

article li {
  margin: 0.42em 0;
}

article li::marker {
  color: var(--neon);
  font-weight: 700;
}

article a {
  color: var(--neon);
  text-decoration: none;
  border-bottom: 2px dotted var(--neon);
}

article a:hover {
  background: var(--neon);
  color: var(--ink);
}

article strong {
  color: #ffffff;
}

article blockquote {
  margin: 1.1em 0;
  padding: 12px 18px;
  border-left: 6px solid var(--sun);
  border-radius: 0 var(--r) var(--r) 0;
  background: rgba(255, 206, 92, 0.1);
}

article hr {
  border: 0;
  border-top: 2px dashed var(--line);
  margin: 1.6em 0;
}

article img {
  border-radius: var(--r);
  border: 2px solid var(--sun);
}

article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  margin: 0 0 1.2em;
}

article th,
article td {
  border: 1px dashed var(--line);
  padding: 9px 11px;
  text-align: left;
  vertical-align: top;
}

article th {
  background: rgba(135, 255, 113, 0.12);
  color: var(--neon);
}

article code {
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font-size: 15px;
  background: #0a120b;
  padding: 1px 6px;
  border-radius: 4px;
}

.subtitle {
  display: inline-block;
  margin: 0 0 14px;
  padding-bottom: 3px;
  border-bottom: 3px solid var(--sun);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--neon);
}

/* ---------- 侧栏 ---------- */
.side {
  align-self: start;
  position: sticky;
  top: 18px;
  min-width: 0;
}

.side-card {
  padding: 18px;
  border: 3px solid var(--sun);
  border-radius: var(--r);
  background: rgba(22, 36, 20, 0.86);
  transform: rotate(0.9deg);
  box-shadow: 10px 10px 0 rgba(135, 255, 113, 0.18);
}

.side-card h2 {
  margin: 0 0 4px;
  font-size: 20px;
  line-height: 1.35;
  color: var(--fog);
}

.side-card .subtitle {
  margin-bottom: 10px;
}

.side-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  border-bottom: 1px dotted var(--line);
  text-decoration: none;
  color: var(--fog);
  font-size: 16px;
}

.side-menu a:hover {
  color: var(--ink);
  background: var(--neon);
}

/* ---------- 页脚 ---------- */
footer {
  border-top: 4px solid var(--neon);
  background: linear-gradient(180deg, #101c11, #0a1209);
  padding: clamp(30px, 5vw, 60px) var(--edge) 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 52px);
  align-items: start;
}

footer > section {
  min-width: 0;
}

.giant {
  margin: 0 0 14px;
  font-size: clamp(38px, 11vw, 92px);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: transparent;
  -webkit-text-stroke: 2px var(--neon);
}

.foot-intro {
  margin: 0;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
}

.foot-nav h2 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.4;
  color: var(--sun);
  letter-spacing: 0.1em;
}

.foot-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
}

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

.foot-menu a:hover {
  color: var(--sun);
  text-decoration: underline;
  text-decoration-style: dotted;
}

.foot-base {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- 回到顶部 ---------- */
.totop {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 3px solid var(--ink);
  border-radius: 44px;
  background: var(--neon);
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  opacity: 0;
  translate: 0 12px;
  pointer-events: none;
  transition: opacity 0.25s, translate 0.25s;
}

.totop.on {
  opacity: 1;
  translate: 0 0;
  pointer-events: auto;
}

/* ---------- 动效 ---------- */
.reveal {
  opacity: 0;
  translate: 0 20px;
}

.reveal.in {
  opacity: 1;
  translate: 0 0;
  transition: opacity 0.55s ease, translate 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- 移动端 ---------- */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-top: 26px;
    gap: 26px;
  }

  .hero-copy {
    order: -1;
  }

  .deco-tri {
    width: 74px;
    height: 74px;
    top: -12px;
    left: -12px;
  }

  .deco-ring {
    width: 66px;
    height: 66px;
    border-width: 7px;
  }

  .drop-menu {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 100%;
    margin-top: 8px;
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 10px;
    border: 2px solid var(--sun);
    border-radius: var(--r);
    background: #152112;
    box-shadow: 0 20px 34px -20px #000;
    z-index: 40;
  }

  .drop-menu a {
    width: 100%;
  }

  main {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .side {
    position: static;
  }

  .side-card {
    transform: none;
  }

  footer {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

  .reveal {
    opacity: 1;
    translate: 0 0;
  }

  .hero-art {
    transform: none !important;
  }
}

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