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

:root {
  --bg: #000000;
  --panel: #0a0b0d;
  --card: #101114;
  --line: #1e2027;
  --line-soft: #16181d;
  --ink: #eef1f6;
  --dim: #a8aeb9;
  --mute: #6d747f;
  --blue: #5aa9ff;
  --gold: #e8c07d;
  --rail: 236px;
  --r: 28px;
}

* {
  box-sizing: border-box;
}

html {
  background: #000;
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-top: 38px;
  padding-left: var(--rail);
  background: #000;
  color: var(--ink);
  font-family: 'Noto Sans KR', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: #9ccdff;
}

a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 8px;
}

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

/* 顶部细条 */
.ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 38px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #000;
  border-bottom: 1px solid var(--line);
  z-index: 70;
}

.ticker-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  padding-left: 40px;
  animation: glide 30s linear infinite;
  will-change: transform;
}

.ticker-track span {
  font-size: 15px;
  letter-spacing: 0.36em;
  color: #565d69;
  line-height: 1;
}

@keyframes glide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* 角落品牌 */
.brand {
  position: fixed;
  top: 38px;
  left: 0;
  width: var(--rail);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 20px;
  background: #000;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  z-index: 65;
}

.brand-glyph {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid #2a3140;
  background: radial-gradient(circle at 30% 25%, #141821, #07080a 72%);
  color: var(--blue);
  font-size: 16px;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(90, 169, 255, 0.55);
}

.brand img {
  border-radius: 12px;
}

.brand-word {
  font-size: 15px;
  letter-spacing: 0.06em;
  color: #b9c0cb;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 左侧竖排导航 */
.rail {
  position: fixed;
  top: 110px;
  left: 0;
  bottom: 0;
  width: var(--rail);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 12px 32px;
  background: #000;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 60;
}

.grp summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 6px 6px;
  font-size: 15px;
  letter-spacing: 0.28em;
  color: #5d646f;
}

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

.grp summary::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--line-soft);
}

.grp[open] summary {
  color: var(--gold);
}

.grp ul {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rail-a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #c2c8d2;
  font-size: 16px;
  line-height: 1.5;
}

.rail-a:hover,
.rail-a:focus-visible {
  color: #fff;
  background: #0f1116;
  border-color: #242a34;
  box-shadow: inset 2px 0 0 var(--blue);
}

/* 布局 */
.wrap {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  gap: 40px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 34px 80px;
}

.side {
  padding-top: 50px;
}

.side-k {
  margin: 0 0 12px;
  font-size: 15px;
  letter-spacing: 0.32em;
  color: #5d646f;
}

.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-a {
  display: block;
  min-height: 42px;
  padding: 9px 0 9px 12px;
  border-left: 1px solid #22262e;
  color: #a4abb6;
  font-size: 16px;
  line-height: 1.5;
}

.side-a:hover,
.side-a:focus-visible {
  color: #fff;
  border-left-color: var(--blue);
  background: linear-gradient(90deg, rgba(90, 169, 255, 0.12), transparent 78%);
}

.content {
  min-width: 0;
}

.sheet {
  padding-bottom: 20px;
}

/* 首屏 */
.hero {
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 26px;
  padding: 44px 0 32px;
  text-align: right;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  order: 1;
  max-width: 30ch;
  margin-left: auto;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.012em;
  color: #fff;
  text-shadow: 0 0 22px rgba(90, 169, 255, 0.18);
}

.hero-art {
  order: 2;
  width: 86px;
  height: 86px;
  flex: 0 0 86px;
  display: grid;
  place-items: center;
  border-radius: var(--r);
  border: 1px solid #262d38;
  background: radial-gradient(circle at 32% 26%, #161b24, #07080a 72%);
  box-shadow: 0 0 26px rgba(90, 169, 255, 0.12);
}

.hero-art span {
  font-size: 34px;
  font-weight: 700;
  color: var(--blue);
  text-shadow: 0 0 14px rgba(90, 169, 255, 0.5);
}

/* 正文排版 */
.sheet h2 {
  margin: 46px 0 8px;
  font-size: clamp(1.3rem, 2.7vw, 1.72rem);
  line-height: 1.42;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.005em;
}

.subtitle {
  margin: 0 0 22px;
  color: var(--dim);
  font-size: 16px;
  line-height: 1.75;
}

.sheet div {
  position: relative;
  overflow: hidden;
  margin: 26px 0;
  padding: 30px 32px 36px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  scroll-margin-top: 100px;
}

.sheet div::after {
  content: "";
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), rgba(90, 169, 255, 0.05) 72%, transparent);
  opacity: 0.6;
}

.sheet div h2 {
  margin-top: 0;
}

.sheet div > :first-child {
  margin-top: 0;
}

.sheet div > :last-child {
  margin-bottom: 0;
}

.sheet p {
  margin: 0 0 16px;
}

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

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

.sheet li {
  margin: 0 0 8px;
}

.sheet li::marker {
  color: var(--gold);
}

.sheet blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  border-left: 2px solid var(--gold);
  background: #0c0d10;
  border-radius: 0 16px 16px 0;
  color: #d8dde5;
}

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

.sheet hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}

/* 页脚 */
.foot {
  border-top: 1px solid var(--line);
  background: #050506;
  padding-bottom: 30px;
}

.foot-top {
  overflow: hidden;
  padding: 34px 34px 8px;
  line-height: 1;
}

.foot-top span {
  display: block;
  font-size: clamp(2.4rem, 9vw, 5.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  background: linear-gradient(180deg, #f3f6fb, #454d5a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 34px;
}

.foot-col {
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
  min-width: 0;
}

.foot address {
  font-style: normal;
  font-size: 16px;
  color: #dee3eb;
  line-height: 1.7;
}

.foot-nav dl {
  margin: 0;
}

.foot-nav dt,
.foot-nav dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.foot-col a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 0;
  color: #a4abb6;
  font-size: 16px;
  line-height: 1.5;
}

.foot-col a:hover,
.foot-col a:focus-visible {
  color: var(--blue);
}

.foot-bar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 34px 0;
  border-top: 1px solid var(--line-soft);
  text-align: center;
  font-size: 16px;
  color: var(--mute);
}

/* 回到顶部 */
.totop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 24px;
  border: 1px solid #2b323d;
  background: #0b0d11;
  color: #dfe4ec;
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, border-color 0.2s ease;
}

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

.totop:hover {
  border-color: var(--blue);
  color: #fff;
}

/* 移动端 */
@media (max-width: 880px) {
  body {
    padding-left: 0;
  }

  .brand {
    position: static;
    width: auto;
    height: 58px;
    padding: 0 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rail {
    position: sticky;
    top: 38px;
    bottom: auto;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: #000;
    z-index: 55;
  }

  .grp {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .grp summary {
    display: none;
  }

  .grp ul,
  .rail details:not([open]) ul {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin: 0;
  }

  .rail-a {
    white-space: nowrap;
    min-height: 44px;
    padding: 10px 14px;
    border-color: #232831;
    background: #0c0e12;
    border-radius: 22px;
    font-size: 16px;
  }

  .wrap {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 16px 56px;
  }

  .side {
    padding: 16px 0 6px;
  }

  .side-k {
    display: none;
  }

  .side-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .side-a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #0a0b0e;
    font-size: 16px;
  }

  .side-a:hover,
  .side-a:focus-visible {
    background: #101319;
    border-color: var(--blue);
  }

  .hero {
    min-height: 45vh;
    justify-content: flex-start;
    text-align: right;
    gap: 16px;
    padding: 30px 0 26px;
  }

  .hero-art {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border-radius: 22px;
  }

  .hero-art span {
    font-size: 26px;
  }

  .sheet div {
    padding: 24px 18px 30px;
    border-radius: 22px;
    scroll-margin-top: 108px;
  }

  .sheet div::after {
    left: 18px;
    right: 18px;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    padding: 22px 18px;
  }

  .foot-top,
  .foot-bar {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 520px) {
  .foot-grid {
    grid-template-columns: 1fr;
  }
}

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

  .ticker-track {
    animation: none;
  }

  .totop {
    transition: none;
  }
}

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