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

:root{
  --red:#ff0000;
  --violet:#8b00ff;
  --ink:#261717;
  --card:rgba(46,28,30,.82);
  --glass:rgba(255,255,255,.075);
  --line:rgba(255,255,255,.20);
  --text:#f8f1f1;
  --dim:rgba(255,255,255,.66);
  --r:10px;
}

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

body{
  margin:0;
  color:var(--text);
  font-family:"Noto Sans KR",system-ui,-apple-system,"Segoe UI",Roboto,"PingFang SC","Microsoft YaHei",sans-serif;
  font-size:17px;
  line-height:1.78;
  font-weight:400;
  overflow-x:hidden;
  background:
    radial-gradient(60vw 55vw at 84% -10%, rgba(255,0,0,.30), rgba(255,0,0,0) 62%),
    radial-gradient(54vw 54vw at 4% 16%, rgba(139,0,255,.28), rgba(139,0,255,0) 62%),
    radial-gradient(78vw 52vw at 50% 112%, rgba(255,0,0,.16), rgba(255,0,0,0) 66%),
    #1a0e0f;
  background-attachment:fixed;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  opacity:.5;
  background-image:radial-gradient(rgba(255,255,255,.11) 1px, transparent 1px);
  background-size:26px 26px;
  -webkit-mask-image:linear-gradient(#000 40%, transparent 92%);
  mask-image:linear-gradient(#000 40%, transparent 92%);
}

img{max-width:100%}

h1,h2,h3{letter-spacing:-.01em}

/* 顶部细条 */
.topline{
  position:relative;
  z-index:3;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:5px 16px;
  font-size:13px;
  letter-spacing:.30em;
  color:rgba(255,255,255,.80);
  background:linear-gradient(90deg, rgba(255,0,0,.30), rgba(139,0,255,.30));
  border-bottom:1px solid rgba(255,255,255,.14);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}

/* 顶栏 + 锚点条 */
.topbar{
  position:sticky;
  top:0;
  z-index:20;
  display:flex;
  align-items:center;
  gap:14px;
  padding:10px 16px;
  background:rgba(28,16,18,.55);
  border-bottom:1px solid rgba(255,255,255,.16);
  backdrop-filter:blur(16px) saturate(150%);
  -webkit-backdrop-filter:blur(16px) saturate(150%);
}

.brand{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 6px;
  color:#fff;
  font-size:19px;
  font-weight:700;
  letter-spacing:.03em;
  text-decoration:none;
  text-shadow:0 0 20px rgba(255,0,0,.55);
}

.brand img{
  display:block;
  height:30px;
  width:auto;
}

.anchors{
  flex:1 1 auto;
  display:flex;
  align-items:center;
  gap:8px;
  padding:4px 2px;
  overflow-x:auto;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}

.anchors::-webkit-scrollbar{display:none}

.chip{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:40px;
  padding:8px 13px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.07);
  color:rgba(255,255,255,.86);
  font-size:15px;
  line-height:1.4;
  text-decoration:none;
  white-space:nowrap;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  transition:background .2s ease, color .2s ease;
}

.chip .dot{
  width:6px;
  height:6px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--red),var(--violet));
  box-shadow:0 0 10px rgba(255,0,0,.75);
}

.chip:hover,.chip:focus-visible{background:rgba(255,255,255,.17);color:#fff}

/* 首屏 */
.hero{
  position:relative;
  z-index:1;
  min-height:70vh;
  min-height:70svh;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:clamp(30px,7vw,86px) clamp(18px,5vw,72px) clamp(20px,4vw,46px);
  overflow:hidden;
  background-image:
    radial-gradient(closest-side at 78% 20%, rgba(255,0,0,.34), rgba(255,0,0,0) 72%),
    radial-gradient(closest-side at 16% 70%, rgba(139,0,255,.32), rgba(139,0,255,0) 74%);
}

.hero-in{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:16px;
  text-align:right;
}

.hero h1{
  margin:0;
  max-width:20ch;
  font-size:clamp(31px,6.2vw,60px);
  line-height:1.18;
  font-weight:700;
  text-shadow:0 8px 42px rgba(0,0,0,.6);
}

.lede{
  margin:0;
  max-width:46ch;
  font-size:clamp(15px,1.6vw,18px);
  line-height:1.72;
  color:rgba(255,255,255,.84);
}

.hero-art{
  margin-top:clamp(20px,4vw,40px);
  border-radius:14px;
  overflow:hidden;
  min-height:140px;
  background:linear-gradient(120deg, rgba(255,0,0,.38), rgba(139,0,255,.38));
  box-shadow:0 26px 70px rgba(0,0,0,.48);
}

.hero-art img{
  display:block;
  width:100%;
  height:100%;
  min-height:140px;
  max-height:46vh;
  object-fit:cover;
  transform:scale(1.07);
  will-change:transform;
}

/* 主体：左侧栏 + 正文 */
main{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:20px;
  max-width:1180px;
  margin:0 auto;
  padding:clamp(26px,5vw,62px) clamp(16px,4vw,40px) clamp(42px,6vw,84px);
}

.rail{
  padding:14px;
  border-radius:var(--r);
  border:1px solid var(--line);
  background:var(--glass);
  box-shadow:0 18px 50px rgba(0,0,0,.34);
  backdrop-filter:blur(15px);
  -webkit-backdrop-filter:blur(15px);
}

.rail h2{
  margin:0 0 8px;
  font-size:14px;
  font-weight:500;
  letter-spacing:.24em;
  color:rgba(255,255,255,.78);
}

.rail hr{
  height:1px;
  border:0;
  margin:0 0 10px;
  background:linear-gradient(90deg, rgba(255,0,0,.9), rgba(139,0,255,.7), rgba(255,255,255,0));
}

.rail ol{
  display:flex;
  gap:8px;
  margin:0;
  padding:0;
  list-style:none;
  counter-reset:rail;
  overflow-x:auto;
  scrollbar-width:none;
}

.rail ol::-webkit-scrollbar{display:none}

.rail li{
  flex:0 0 auto;
  counter-increment:rail;
}

.rail a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:40px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.07);
  color:rgba(255,255,255,.80);
  font-size:15px;
  line-height:1.4;
  text-decoration:none;
  white-space:nowrap;
}

.rail a::before{
  content:counter(rail,decimal-leading-zero);
  font-size:11px;
  letter-spacing:.06em;
  color:rgba(255,120,120,.95);
}

.rail a:hover,.rail a:focus-visible{background:rgba(255,255,255,.16);color:#fff}

.body{
  min-width:0;
  display:grid;
  gap:18px;
}

.body div{
  scroll-margin-top:112px;
  padding:clamp(20px,3.4vw,34px);
  border-radius:var(--r);
  background:var(--card);
  box-shadow:0 16px 46px rgba(0,0,0,.30);
}

.body div h2{
  margin:0 0 10px;
  font-size:clamp(21px,2.7vw,28px);
  line-height:1.32;
  font-weight:600;
}

.body div h3{
  margin:22px 0 8px;
  font-size:clamp(18px,2.1vw,21px);
  line-height:1.4;
  font-weight:600;
  color:rgba(255,255,255,.95);
}

.body hr{
  height:1px;
  border:0;
  margin:0 0 18px;
  background:linear-gradient(90deg, var(--red), var(--violet) 42%, rgba(255,255,255,0));
}

.body p{
  margin:0 0 14px;
  color:rgba(255,255,255,.88);
}

.body p:last-child{margin-bottom:0}

.body ul,.body ol{
  margin:0 0 14px;
  padding-left:1.3em;
  color:rgba(255,255,255,.88);
}

.body li{margin:0 0 8px}

.body a{
  color:#ff8a8a;
  text-decoration:underline;
  text-underline-offset:3px;
}

.body a:hover{color:#fff}

.body strong{color:#fff;font-weight:700}

.body img{
  display:block;
  height:auto;
  margin:14px 0;
  border-radius:var(--r);
}

.body blockquote{
  margin:16px 0;
  padding:12px 16px;
  border-left:3px solid var(--violet);
  background:rgba(255,255,255,.06);
  border-radius:0 var(--r) var(--r) 0;
  color:rgba(255,255,255,.86);
}

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

.body table{
  width:100%;
  border-collapse:collapse;
  margin:14px 0;
  font-size:16px;
}

.body th,.body td{
  padding:9px 10px;
  text-align:left;
  border-bottom:1px solid rgba(255,255,255,.14);
}

.body th{color:#fff;font-weight:600}

/* 页脚 */
.foot{
  position:relative;
  z-index:1;
  padding:clamp(30px,5vw,54px) clamp(16px,4vw,40px) 26px;
  border-top:1px solid rgba(255,255,255,.14);
  background:linear-gradient(180deg, rgba(38,23,23,0), rgba(18,10,11,.92) 34%);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}

.cta{
  max-width:1180px;
  margin:0 auto 34px;
  padding:clamp(22px,4.4vw,44px);
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.24);
  background:linear-gradient(120deg, rgba(255,0,0,.32), rgba(139,0,255,.32));
  box-shadow:0 22px 60px rgba(0,0,0,.42);
  backdrop-filter:blur(15px);
  -webkit-backdrop-filter:blur(15px);
}

.cta-name{
  margin:0;
  font-size:clamp(26px,4.4vw,42px);
  font-weight:700;
  line-height:1.24;
  color:#fff;
  text-shadow:0 6px 30px rgba(0,0,0,.5);
}

.cta-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:11px 24px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.42);
  background:rgba(255,255,255,.16);
  color:#fff;
  font-size:16px;
  text-decoration:none;
}

.cta-btn:hover,.cta-btn:focus-visible{background:rgba(255,255,255,.30)}

.foot-nav{
  max-width:1180px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
}

.foot-nav dl{margin:0}

.foot-nav dt{
  margin-bottom:4px;
  font-size:13px;
  letter-spacing:.24em;
  color:rgba(255,255,255,.55);
}

.foot-nav dd{margin:0}

.foot-nav a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:4px 0;
  color:rgba(255,255,255,.82);
  font-size:15px;
  text-decoration:none;
}

.foot-nav a:hover,.foot-nav a:focus-visible{
  color:#fff;
  text-decoration:underline;
  text-underline-offset:4px;
}

.copy{
  max-width:1180px;
  margin:24px auto 0;
  padding-top:16px;
  border-top:1px solid rgba(255,255,255,.12);
  font-size:14px;
  color:rgba(255,255,255,.55);
}

/* 滚动显现 */
.reveal{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .6s ease, transform .6s ease;
}

.reveal.in{opacity:1;transform:none}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1;transform:none;transition:none}
  .hero-art img{transform:none}
}

@media (min-width:900px){
  main{
    grid-template-columns:224px minmax(0,1fr);
    gap:30px;
    align-items:start;
  }
  .rail{position:sticky;top:86px}
  .rail ol{display:grid;gap:2px;overflow:visible}
  .rail a{
    width:100%;
    border-radius:8px;
    border-color:transparent;
    background:transparent;
    white-space:normal;
  }
  .rail a:hover,.rail a:focus-visible{background:rgba(255,255,255,.13)}
}

@media (max-width:640px){
  body{font-size:16px}
  .topbar{gap:10px;padding:8px 12px}
  .brand{font-size:17px}
  .hero{min-height:64vh;min-height:64svh}
  .hero-in{align-items:flex-start;text-align:left}
  .hero h1{max-width:100%}
  .foot-nav{gap:14px}
  .foot-nav dt{letter-spacing:.16em}
  .cta{flex-direction:column;align-items:flex-start}
  .cta-btn{width:100%}
}

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