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

:root {
  --mint: #99ffcc;
  --glow: #00ff41;
  --ink: #001e3c;
  --ink-deep: #000f22;
  --paper: #d9f7ea;
  --line: rgba(153, 255, 204, 0.22);
  --soft: rgba(153, 255, 204, 0.08);
  --radius: 4px;
  --wrap: 1180px;
  --pad: clamp(16px, 4vw, 40px);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  font-family: "Noto Sans KR", "Noto Sans SC", -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: -22vmax;
  z-index: -1;
  background:
    radial-gradient(38vmax 38vmax at 18% 12%, rgba(0, 255, 65, 0.16), transparent 62%),
    radial-gradient(30vmax 30vmax at 82% 32%, rgba(153, 255, 204, 0.13), transparent 60%),
    radial-gradient(46vmax 46vmax at 58% 92%, rgba(0, 255, 65, 0.10), transparent 66%);
  filter: blur(28px);
  animation: breathe 17s ease-in-out infinite alternate;
}

@keyframes breathe {
  from { transform: scale(1) translate3d(0, 0, 0); opacity: 0.72; }
  to { transform: scale(1.15) translate3d(0, -2vmax, 0); opacity: 1; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--glow); text-underline-offset: 3px; }
a:hover { color: var(--mint); }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }

/* 页头：品牌行 + 菜单行 */
.site-head {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0, 30, 60, 0.94), rgba(0, 30, 60, 0.58));
}

.brand-row {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px var(--pad) 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--paper);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.14em;
}

.brand:hover { color: var(--mint); }
.brand-mark { width: 30px; height: 30px; border-radius: 50%; }

.brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 0 5px rgba(0, 255, 65, 0.16);
  animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(0, 255, 65, 0.14); }
  50% { box-shadow: 0 0 0 9px rgba(0, 255, 65, 0.05); }
}

.site-head nav {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad) 8px;
}

.site-head nav p {
  display: flex;
  gap: 2px;
  margin: 0;
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: thin;
  padding-bottom: 2px;
}

.site-head nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 12px;
  white-space: nowrap;
  font-size: 16px;
  color: var(--mint);
  text-decoration: none;
  border-radius: var(--radius);
  border-bottom: 2px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.site-head nav a:hover {
  background: rgba(0, 255, 65, 0.13);
  color: #ffffff;
  border-bottom-color: var(--glow);
  transform: translateY(-1px);
}

.site-head nav p a:nth-child(4) { position: relative; margin-left: 10px; }
.site-head nav p a:nth-child(4)::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: var(--line);
}

/* 首屏 */
.hero {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(22px, 3.5vw, 42px) var(--pad) clamp(34px, 5vw, 56px);
  display: grid;
  gap: clamp(16px, 3vw, 30px);
  align-items: center;
  min-height: 45vh;
}

.hero::after {
  content: "";
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 12px;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--glow), var(--mint) 42%, rgba(153, 255, 204, 0));
  transform: skewY(-1.6deg);
  transform-origin: left center;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5.6vw, 54px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  font-weight: 700;
  background: linear-gradient(114deg, #eafff6 6%, var(--mint) 46%, var(--glow) 94%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 0 0 22px;
  max-width: 46ch;
  font-size: 17px;
  color: rgba(217, 247, 234, 0.78);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.hero-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 22px;
  font-size: 16px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.hero-actions a:first-child {
  background: var(--glow);
  color: #00240c;
  font-weight: 700;
  box-shadow: 0 0 0 0 rgba(0, 255, 65, 0.45);
}

.hero-actions a:first-child:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(0, 255, 65, 0.3);
}

.hero-actions a + a {
  border: 1px solid var(--line);
  color: var(--mint);
}

.hero-actions a + a:hover {
  background: rgba(153, 255, 204, 0.12);
  transform: translateY(-2px);
}

.hero-art {
  margin: 0;
  display: flex;
  justify-content: center;
}

.hero-art .hero-cell,
.hero-art .hero-photo {
  width: min(58vw, 260px);
  height: auto;
  border-radius: 58% 42% 46% 54% / 48% 52% 44% 56%;
  animation: morph 13s ease-in-out infinite alternate;
  filter: drop-shadow(0 12px 32px rgba(0, 255, 65, 0.22));
}

.hero-art .hero-photo { object-fit: cover; aspect-ratio: 1 / 1; }

@keyframes morph {
  from {
    border-radius: 58% 42% 46% 54% / 48% 52% 44% 56%;
    transform: scale(1) rotate(0deg);
  }
  to {
    border-radius: 42% 58% 54% 46% / 56% 44% 52% 48%;
    transform: scale(1.06) rotate(-2deg);
  }
}

/* 主体：左侧栏 + 正文 */
.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 4vw, 44px);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(26px, 4.5vw, 52px) var(--pad);
}

.rail { align-self: start; }

.rail small {
  display: block;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.3em;
  color: var(--glow);
  padding-left: 2px;
}

.rail h2 {
  margin: 2px 0 12px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #eafff6;
}

.rail ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.rail li { border-bottom: 1px solid var(--line); }

.rail a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 2px;
  font-size: 16px;
  color: var(--paper);
  text-decoration: none;
  transition: color 0.22s ease, padding-left 0.22s ease;
}

.rail a::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(153, 255, 204, 0.55);
  transition: background 0.22s ease, transform 0.22s ease;
}

.rail a:hover { color: var(--glow); padding-left: 8px; }
.rail a:hover::before { background: var(--glow); transform: scale(1.35); }

/* 正文 */
.content, .prose { min-width: 0; }
.prose { font-size: 17px; }

.prose article {
  position: relative;
  margin: 0 0 clamp(18px, 3vw, 28px);
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(153, 255, 204, 0.06), rgba(153, 255, 204, 0.015));
  overflow: hidden;
  scroll-margin-top: 118px;
}

.prose article::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--glow), var(--mint) 48%, rgba(153, 255, 204, 0));
}

.prose small {
  display: block;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.24em;
  color: var(--glow);
  margin-bottom: 2px;
}

.prose h2 {
  margin: 0 0 16px;
  font-size: clamp(21px, 2.6vw, 28px);
  line-height: 1.38;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: #f0fff9;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(0, 255, 65, 0.45);
}

.prose h3 {
  margin: 28px 0 10px;
  font-size: 19px;
  font-weight: 500;
  color: var(--mint);
}

.prose p { margin: 0 0 1em; }
.prose strong { color: #ffffff; font-weight: 700; }
.prose a { color: var(--glow); }
.prose a:hover { color: var(--mint); }

.prose ol, .prose ul { margin: 0 0 1em; padding-left: 1.4em; }
.prose li { margin: 0.35em 0; }

.prose blockquote {
  margin: 1.2em 0;
  padding: 12px 18px;
  border-left: 3px solid var(--mint);
  background: rgba(153, 255, 204, 0.07);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.prose figure { margin: 1.2em 0; }
.prose figure img { border-radius: var(--radius); }
.prose img { border-radius: var(--radius); }

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

.prose th, .prose td {
  border: 1px solid var(--line);
  padding: 9px 12px;
  text-align: left;
}

.prose th { background: rgba(0, 255, 65, 0.1); color: #ffffff; }
.prose code { font-size: 16px; color: var(--mint); }

/* 页脚 */
.site-foot {
  margin-top: clamp(30px, 5vw, 60px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0, 30, 60, 0.35), rgba(0, 15, 34, 0.92));
}

.foot-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(26px, 4vw, 48px) var(--pad) clamp(18px, 3vw, 30px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
}

.foot-brand {
  margin: 0;
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(153, 255, 204, 0.62);
}

.site-foot dl { margin: 0; }

.site-foot dt {
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.24em;
  color: var(--glow);
  margin-bottom: 6px;
}

.site-foot dd {
  margin: 0;
  font-size: 16px;
  color: rgba(217, 247, 234, 0.8);
  word-break: break-word;
}

.site-foot dd a {
  display: flex;
  align-items: center;
  min-height: 40px;
  color: var(--paper);
  text-decoration: none;
  transition: color 0.22s ease, padding-left 0.22s ease;
}

.site-foot dd a:hover { color: var(--glow); padding-left: 6px; }

.foot-host {
  display: block;
  padding: 4px 0 2px;
  color: rgba(153, 255, 204, 0.62);
  letter-spacing: 0.04em;
}

.foot-base {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 10px var(--pad) 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: rgba(217, 247, 234, 0.6);
}

.foot-base .copy { padding: 10px 0; }

.foot-base a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--mint);
  text-decoration: none;
}

.foot-base a:hover { color: var(--glow); }

/* 滚动显现 */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
}

html.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.22, 0.8, 0.3, 1);
}

@media (min-width: 760px) {
  .site-head {
    position: sticky;
    top: 0;
    backdrop-filter: blur(12px);
  }
  .site-head nav p { flex-wrap: wrap; overflow-x: visible; }
}

@media (min-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.5fr); }
  .hero-art .hero-cell, .hero-art .hero-photo { width: min(100%, 290px); }
}

@media (min-width: 920px) {
  .shell { grid-template-columns: 260px minmax(0, 1fr); }
  .rail { position: sticky; top: 122px; }
}

@media (min-width: 700px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}

@media (min-width: 1000px) {
  .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; align-items: start; }
  .foot-brand { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  html.js .reveal { opacity: 1 !important; transform: none !important; }
}

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