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

:root{
  --neon:#87ff71;
  --amber:#ffce5c;
  --ink:#192617;
  --void:#0c1409;
  --paper:#eaf6e6;
  --line:rgba(135,255,113,.42);
  --glass:rgba(135,255,113,.07);
  --rail:236px;
}

*{box-sizing:border-box}

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

body{
  margin:0;
  background-color:var(--ink);
  background-image:
    radial-gradient(rgba(135,255,113,.13) 1px,transparent 1px);
  background-size:28px 28px;
  color:var(--paper);
  font-family:'Noto Sans KR',system-ui,-apple-system,'PingFang SC','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.75;
  font-weight:400;
}

a{color:var(--neon);text-decoration:none}
img{max-width:100%;height:auto;display:block}
p{margin:0 0 1em}

/* ---------- 左侧竖排导航 ---------- */
.rail{
  position:fixed;
  inset:0 auto 0 0;
  width:var(--rail);
  padding:18px 16px 22px;
  display:flex;
  flex-direction:column;
  gap:16px;
  background:var(--void);
  border-right:2px dashed var(--line);
  z-index:30;
  overflow-y:auto;
}

.mark{
  width:52px;height:52px;
  display:block;
  background:var(--amber);
  border:2px solid var(--void);
  flex:0 0 auto;
  transform:rotate(-6deg);
  transition:transform .3s ease, background .3s ease;
}
.mark-shape{
  display:block;
  width:100%;height:100%;
  background:var(--neon);
  clip-path:polygon(50% 8%,96% 90%,4% 90%);
}
.mark:hover{transform:rotate(8deg);background:var(--neon)}

.rail-nav p{
  margin:0;
  display:flex;
  flex-direction:column;
  gap:9px;
}
.rail-nav a{
  display:block;
  padding:11px 14px;
  font-size:16px;
  line-height:1.5;
  color:var(--neon);
  border:2px solid var(--line);
  border-radius:999px;
  text-align:center;
  letter-spacing:.02em;
  transition:background .25s ease,color .25s ease,border-color .25s ease;
}
.rail-nav a:hover,
.rail-nav a:focus-visible{
  background:var(--neon);
  color:var(--void);
  border-color:var(--amber);
  outline:none;
}

.rail-search{
  margin-top:auto;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.rail-search input{
  width:100%;
  padding:10px 14px;
  font-size:16px;
  font-family:inherit;
  color:var(--paper);
  background:transparent;
  border:2px dashed var(--line);
  border-radius:999px;
}
.rail-search input::placeholder{color:rgba(234,246,230,.55)}
.rail-search input:focus{outline:none;border-color:var(--amber);border-style:solid}
.rail-search button{
  padding:9px 14px;
  font-size:16px;
  font-family:inherit;
  font-weight:700;
  color:var(--void);
  background:var(--amber);
  border:2px solid var(--void);
  border-radius:999px;
  cursor:pointer;
}
.rail-search button:hover{background:var(--neon)}

/* ---------- 外壳 ---------- */
.shell{margin-left:var(--rail)}

main{
  display:grid;
  grid-template-columns:250px minmax(0,1fr);
  align-items:start;
}

/* ---------- 头图 ---------- */
.hero{
  grid-column:1 / -1;
  position:relative;
  overflow:hidden;
  min-height:45vh;
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:26px;
  align-items:center;
  padding:clamp(26px,4vw,52px) clamp(18px,4vw,48px);
  border-bottom:2px solid var(--line);
  background-image:
    radial-gradient(rgba(255,206,92,.2) 1.5px,transparent 1.5px);
  background-size:22px 22px;
}
.hero::before{
  content:"";
  position:absolute;
  top:-52px;right:-38px;
  width:190px;height:190px;
  background:var(--amber);
  clip-path:polygon(50% 0,100% 100%,0 100%);
  transform:rotate(18deg);
  mix-blend-mode:screen;
  z-index:0;
}
.hero::after{
  content:"";
  position:absolute;
  bottom:-46px;left:6%;
  width:130px;height:130px;
  border-radius:50%;
  background:var(--neon);
  opacity:.35;
  mix-blend-mode:screen;
  z-index:0;
}

.hero-copy{position:relative;z-index:2}

.badge{
  display:inline-block;
  padding:5px 14px;
  margin-bottom:14px;
  font-size:16px;
  font-weight:700;
  line-height:1.4;
  color:var(--void);
  background:var(--neon);
  border:2px solid var(--void);
  transform:rotate(-1.6deg);
}

.hero h1{
  margin:0 0 16px;
  font-size:clamp(30px,5.2vw,54px);
  line-height:1.16;
  font-weight:700;
  letter-spacing:-.015em;
  color:#fff;
  text-shadow:3px 3px 0 rgba(25,38,23,.85);
}
.hero h1::after{
  content:"";
  display:block;
  width:96px;height:10px;
  margin-top:18px;
  background:repeating-linear-gradient(90deg,var(--amber) 0 10px,transparent 10px 20px);
}
.lede{
  margin:0;
  max-width:46ch;
  font-size:17px;
  color:rgba(234,246,230,.86);
}

.hero-art{
  position:relative;
  min-height:190px;
  z-index:2;
}
.sh{position:absolute;z-index:1}
.sh-tri{
  width:88px;height:88px;
  right:4%;top:2%;
  background:var(--neon);
  clip-path:polygon(50% 0,100% 100%,0 100%);
  transform:rotate(16deg);
  mix-blend-mode:screen;
}
.sh-zig{
  width:112px;height:14px;
  left:2%;top:8%;
  background:repeating-linear-gradient(90deg,var(--amber) 0 9px,transparent 9px 18px);
  transform:rotate(-7deg);
}
.sh-ring{
  width:74px;height:74px;
  left:-10px;bottom:6%;
  border:4px solid var(--amber);
  border-radius:50%;
  mix-blend-mode:screen;
}
.hero-img{
  position:relative;
  z-index:2;
  width:100%;
  border:3px solid var(--amber);
  transform:rotate(-2deg);
  box-shadow:10px 10px 0 rgba(135,255,113,.22);
}

/* ---------- 侧栏 ---------- */
.side{
  position:sticky;
  top:0;
  align-self:start;
  padding:24px 16px 40px;
  border-right:2px dashed var(--line);
}

.side small{
  display:block;
  font-size:16px;
  font-weight:700;
  letter-spacing:.22em;
  color:var(--amber);
  line-height:1.4;
}
.side-h{
  margin:2px 0 16px;
  font-size:22px;
  line-height:1.3;
  color:#fff;
}
.side-nav p{
  margin:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.side-nav a{
  display:block;
  padding:9px 13px;
  font-size:16px;
  line-height:1.5;
  color:rgba(234,246,230,.9);
  border-left:3px solid var(--line);
  background:var(--glass);
  transition:border-color .25s ease,background .25s ease,color .25s ease, transform .25s ease;
}
.side-nav a:hover,
.side-nav a:focus-visible{
  color:var(--void);
  background:var(--amber);
  border-left-color:var(--neon);
  transform:translateX(4px);
  outline:none;
}

/* ---------- 正文区 ---------- */
.wrap{
  min-width:0;
  padding:26px clamp(16px,3.6vw,42px) 64px;
}
.content-sec{min-width:0}

.prose{
  padding:clamp(18px,3vw,36px);
  background:var(--glass);
  border:2px solid var(--line);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border-radius:0;
}

.prose div{
  scroll-margin-top:96px;
  padding-bottom:8px;
}
.prose div + div{
  margin-top:44px;
  padding-top:40px;
  border-top:2px dashed var(--line);
}

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

.prose h2{
  margin:0 0 16px;
  font-size:clamp(22px,3.2vw,31px);
  line-height:1.28;
  font-weight:700;
  color:#fff;
}
.prose h2::before{
  content:"";
  display:inline-block;
  width:14px;height:14px;
  margin-right:10px;
  background:var(--neon);
  clip-path:polygon(0 0,100% 50%,0 100%);
  transform:translateY(-1px);
}
.prose h3{
  margin:26px 0 12px;
  font-size:20px;
  line-height:1.4;
  color:var(--neon);
}
.prose p,
.prose li{font-size:17px;line-height:1.85}
.prose ul,
.prose ol{padding-left:1.3em;margin:0 0 1em}
.prose li{margin-bottom:.4em}
.prose strong{color:var(--amber)}
.prose a{
  color:var(--neon);
  border-bottom:2px solid var(--amber);
}
.prose img{
  margin:20px 0;
  border:3px solid var(--amber);
}
.prose blockquote{
  margin:20px 0;
  padding:14px 18px;
  border-left:6px solid var(--neon);
  background:rgba(255,206,92,.08);
  color:rgba(234,246,230,.92);
}
.prose blockquote p:last-child{margin-bottom:0}

/* ---------- 页脚 ---------- */
.foot{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:26px clamp(16px,3.6vw,42px) 34px;
  background:var(--void);
  border-top:2px solid var(--line);
}

.f-brand{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
  max-width:420px;
}
.f-dot{
  display:block;
  width:26px;height:24px;
  margin-bottom:6px;
  background:var(--neon);
  clip-path:polygon(0 0,100% 0,50% 100%);
  transform:rotate(-8deg);
}
.f-brand strong{
  font-size:clamp(24px,3.6vw,40px);
  line-height:1.08;
  font-weight:700;
  letter-spacing:-.02em;
  color:#fff;
}
.f-note{
  font-size:16px;
  line-height:1.6;
  color:rgba(234,246,230,.62);
}

.f-nav p{
  margin:0;
  display:flex;
  flex-wrap:wrap;
  gap:9px;
}
.f-nav a{
  display:block;
  padding:9px 13px;
  font-size:16px;
  line-height:1.5;
  color:var(--neon);
  border:2px solid var(--line);
  border-radius:999px;
  transition:background .25s ease,color .25s ease;
}
.f-nav a:hover,
.f-nav a:focus-visible{
  background:var(--amber);
  color:var(--void);
  border-color:var(--void);
  outline:none;
}

.f-legal p{
  margin:0;
  font-size:16px;
  line-height:1.5;
  color:rgba(234,246,230,.6);
}

/* ---------- 动效 ---------- */
.rv{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .55s ease,transform .55s ease;
}
.rv.in{opacity:1;transform:none}

/* ---------- 窄屏 ---------- */
@media (max-width:940px){
  .rail{
    position:sticky;
    inset:auto;
    top:0;
    width:auto;
    height:auto;
    flex-direction:row;
    align-items:center;
    gap:10px;
    padding:9px 12px;
    background:var(--void);
    border-right:0;
    border-bottom:2px solid var(--line);
    overflow:visible;
  }
  .mark{width:42px;height:42px}
  .rail-nav{
    flex:1 1 auto;
    min-width:0;
  }
  .rail-nav p{
    flex-direction:row;
    gap:8px;
    overflow-x:auto;
    scrollbar-width:none;
    padding-bottom:2px;
  }
  .rail-nav p::-webkit-scrollbar{display:none}
  .rail-nav a{
    flex:0 0 auto;
    white-space:nowrap;
    padding:8px 12px;
    font-size:16px;
  }
  .rail-search{display:none}

  .shell{margin-left:0}

  main{grid-template-columns:1fr}

  .hero{
    grid-template-columns:1fr;
    min-height:0;
    padding:22px 16px 30px;
    gap:18px;
  }
  .hero::before{width:120px;height:120px;top:-34px;right:-30px}
  .hero::after{display:none}
  .hero h1{font-size:clamp(27px,8vw,40px)}
  .hero h1::after{margin-top:14px}
  .hero-art{min-height:150px;order:2}
  .sh-tri{width:62px;height:62px}
  .sh-zig{width:80px;height:10px}
  .sh-ring{width:56px;height:56px;border-width:3px}

  .side{
    position:static;
    order:2;
    padding:22px 16px 30px;
    border-right:0;
    border-top:2px solid var(--line);
  }
  .side-nav p{
    flex-direction:row;
    flex-wrap:wrap;
  }
  .side-nav a{
    border-left:0;
    border:2px solid var(--line);
    border-radius:999px;
    padding:9px 13px;
  }
  .side-nav a:hover{transform:none}

  .wrap{padding:20px 14px 46px}
  .prose{padding:18px 14px}
  .prose div{scroll-margin-top:78px}

  .foot{
    flex-direction:column;
    align-items:flex-start;
    gap:16px;
    padding:22px 16px 30px;
  }
  .f-nav a{padding:9px 13px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{animation:none!important;transition:none!important}
  .rv{opacity:1;transform:none}
}

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