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

:root {
  color-scheme: dark;
  --ink: #000000;
  --panel: #121212;
  --deep: #07080c;
  --line: rgba(120, 160, 255, 0.18);
  --line-soft: rgba(255, 255, 255, 0.07);
  --glow: #4f80ff;
  --glow-2: #9fbaff;
  --txt: #e9edf7;
  --dim: #98a2b6;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

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

html.drawer-open body {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--txt);
  font-family: 'Noto Sans KR', system-ui, -apple-system, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.78;
  letter-spacing: -0.012em;
  overflow-x: hidden;
  background-image:
    radial-gradient(120% 60% at 50% -10%, rgba(30, 52, 120, 0.32), transparent 62%),
    radial-gradient(80% 40% at 90% 110%, rgba(20, 34, 88, 0.28), transparent 70%);
  background-repeat: no-repeat;
}

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

a {
  color: var(--glow-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--glow-2);
  outline-offset: 3px;
}

/* ---------- 顶栏 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.94);
  border-bottom: 1px solid var(--line);
}

.brand {
  grid-column: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  color: #ffffff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-shadow: 0 0 12px rgba(79, 128, 255, 0.55);
}

.tel {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: rgba(18, 18, 18, 0.7);
  color: #d5deef;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.08em;
}

.tel:hover {
  border-color: rgba(120, 160, 255, 0.55);
  box-shadow: 0 0 18px rgba(79, 128, 255, 0.28);
  color: #fff;
}

/* ---------- 抽屉菜单 ---------- */
.drawer {
  grid-column: 1;
  justify-self: start;
}

.drawer > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  background: rgba(18, 18, 18, 0.7);
  cursor: pointer;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: #cdd6e8;
}

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

.drawer[open] > summary {
  position: relative;
  z-index: 2;
  color: #fff;
  border-color: rgba(120, 160, 255, 0.55);
}

.burger {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 12px;
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: #cfd8ee;
  transition: transform .25s var(--ease);
}

.burger::before { top: 2px; }
.burger::after { bottom: 2px; }

.drawer[open] .burger::before { transform: translateY(4px) rotate(45deg); }
.drawer[open] .burger::after { transform: translateY(-4px) rotate(-45deg); }

.drawer > menu {
  position: fixed;
  inset: 0;
  z-index: 1;
  margin: 0;
  padding: 92px 20px 40px;
  list-style: none;
  display: flex;
  flex-direction: column;
  overflow: auto;
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(24, 46, 104, 0.55), transparent 58%),
    #000000;
}

.drawer[open] > menu {
  animation: menuIn .3s var(--ease) both;
}

@keyframes menuIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}

.drawer > menu > li {
  border-bottom: 1px solid var(--line-soft);
}

.drawer > menu > li > a {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 8px 4px;
  color: #e6ecfa;
  text-decoration: none;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: color .2s var(--ease), transform .2s var(--ease);
}

.drawer > menu > li > a:hover {
  color: #fff;
  transform: translateX(6px);
  text-shadow: 0 0 16px rgba(79, 128, 255, 0.75);
}

/* ---------- 粘性锚点条 ---------- */
.bars {
  position: sticky;
  top: 60px;
  z-index: 70;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 7px 12px;
  background: rgba(0, 0, 0, 0.96);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.bars::-webkit-scrollbar { display: none; }

.bars a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  color: var(--dim);
  text-decoration: none;
  font-size: 15px;
  border: 1px solid transparent;
  transition: color .2s var(--ease), background .2s var(--ease);
}

.bars a:hover,
.bars a.is-on {
  color: #fff;
  border-color: var(--line);
  background: rgba(79, 128, 255, 0.12);
  text-shadow: 0 0 10px rgba(79, 128, 255, 0.7);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: 110px 20px 78px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: -1;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 87%, 0 100%);
  background: var(--deep);
}

.hero-img {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  filter: brightness(0.82) saturate(0.92);
  will-change: transform;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.72) 46%, rgba(0, 0, 0, 0.34) 100%),
    radial-gradient(70% 55% at 6% 100%, rgba(28, 52, 124, 0.6), transparent 72%);
}

.hero-copy {
  position: relative;
  max-width: min(760px, 100%);
}

.kicker {
  margin: 0 0 14px;
  color: var(--glow-2);
  font-size: 15px;
  letter-spacing: 0.22em;
  text-shadow: 0 0 10px rgba(79, 128, 255, 0.6);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 6.2vw, 3.6rem);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.032em;
  color: #ffffff;
  text-shadow: 0 0 26px rgba(60, 108, 255, 0.35);
}

.lede {
  max-width: 54ch;
  margin: 0 0 26px;
  color: #c3cde2;
  font-size: 16px;
  line-height: 1.8;
}

.jump {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(140, 175, 255, 0.5);
  background: rgba(79, 128, 255, 0.14);
  color: #dde6ff;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.14em;
  transition: background .22s var(--ease), box-shadow .22s var(--ease);
}

.jump:hover {
  background: rgba(79, 128, 255, 0.28);
  box-shadow: 0 0 26px rgba(79, 128, 255, 0.35);
}

/* ---------- 版心 ---------- */
.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 46px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 66px 20px 20px;
}

.stream {
  min-width: 0;
  overflow-wrap: break-word;
}

.stream > div {
  position: relative;
  margin: 0 0 30px;
  padding: 32px 30px 34px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(18, 18, 18, 0.9), rgba(8, 9, 13, 0.92));
  scroll-margin-top: 132px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.stream > div::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 30px;
  height: 1px;
  background: var(--glow-2);
  box-shadow: 0 0 12px var(--glow);
}

.stream > div:hover {
  border-color: rgba(120, 160, 255, 0.34);
  box-shadow: 0 0 0 1px rgba(79, 128, 255, 0.12), 0 18px 44px -30px rgba(79, 128, 255, 0.9);
}

.stream h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.stream h2 + hr {
  border: 0;
  height: 1px;
  margin: 0 0 22px;
  background: linear-gradient(90deg, var(--glow), rgba(79, 128, 255, 0));
}

.stream h3 {
  margin: 30px 0 10px;
  font-size: 1.12rem;
  line-height: 1.45;
  font-weight: 500;
  color: #eef2fb;
  letter-spacing: -0.01em;
}

.stream h3 + hr {
  border: 0;
  height: 1px;
  margin: 0 0 16px;
  background: var(--line);
}

.stream p {
  margin: 0 0 16px;
  color: #d3dae9;
}

.stream ul,
.stream ol {
  margin: 0 0 18px;
  padding-left: 22px;
  color: #d3dae9;
}

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

.stream li::marker {
  color: var(--glow);
}

.stream a {
  color: #a9c2ff;
}

.stream a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(79, 128, 255, 0.7);
}

.stream hr {
  border: 0;
  height: 1px;
  margin: 24px 0;
  background: var(--line);
}

.stream blockquote {
  margin: 22px 0;
  padding: 14px 18px;
  border-left: 2px solid var(--glow);
  background: rgba(79, 128, 255, 0.07);
  color: #c8d3e8;
}

.stream figure {
  margin: 22px 0;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.5);
}

.stream figcaption {
  padding: 10px 14px;
  font-size: 15px;
  color: var(--dim);
}

.stream code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.08);
}

.stream strong {
  color: #ffffff;
  font-weight: 500;
}

/* ---------- 侧栏 ---------- */
.rail {
  align-self: start;
  position: sticky;
  top: 124px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.rail h2 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: #ccd6ea;
}

.rail hr {
  border: 0;
  height: 1px;
  margin: 0 0 14px;
  background: var(--line);
}

.rail ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
}

.rail a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 8px;
  border-left: 2px solid transparent;
  color: var(--dim);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.4;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}

.rail a:hover {
  color: #ffffff;
  border-left-color: var(--glow);
  background: rgba(79, 128, 255, 0.09);
}

.toTop {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-left-width: 1px;
  padding: 0 12px;
  letter-spacing: 0.08em;
  font-size: 15px;
}

/* ---------- 页脚 ---------- */
.foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 34px;
  max-width: 1180px;
  margin: 40px auto 0;
  padding: 54px 20px 42px;
  border-top: 1px solid var(--line);
}

.foot-brand {
  grid-column: 1;
  margin: 0;
  font-size: clamp(2.3rem, 10vw, 5.4rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: #ffffff;
  text-shadow: 0 0 34px rgba(64, 112, 255, 0.34);
}

.foot-desc {
  grid-column: 1;
  margin: 0;
  max-width: 46ch;
  color: var(--dim);
  font-size: 15px;
  line-height: 1.75;
}

.foot-links {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
  align-content: start;
  max-width: 280px;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #c2cce0;
  text-decoration: none;
  font-size: 15px;
}

.foot-links a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(79, 128, 255, 0.7);
}

.foot small {
  grid-column: 1 / -1;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  color: #6a7386;
  font-size: 13px;
  letter-spacing: 0.08em;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 30px 14px 12px;
  }

  .rail {
    order: -1;
    position: static;
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .rail ul {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .rail ul::-webkit-scrollbar { display: none; }

  .rail a {
    border: 1px solid var(--line);
    border-left-width: 1px;
    padding: 0 12px;
    white-space: nowrap;
  }

  .toTop {
    margin-top: 10px;
    min-height: 40px;
  }

  .stream > div {
    padding: 24px 18px 26px;
    scroll-margin-top: 118px;
  }

  .hero {
    padding: 96px 16px 64px;
  }

  .foot {
    grid-template-columns: minmax(0, 1fr);
    padding: 42px 16px 34px;
  }

  .foot-links {
    grid-column: 1;
    grid-row: auto;
    max-width: none;
  }
}

@media (max-width: 420px) {
  .top {
    padding: 8px 10px;
    gap: 6px;
  }

  .brand {
    font-size: 15px;
    letter-spacing: 0.1em;
  }

  .drawer > summary,
  .tel {
    padding: 0 10px;
    font-size: 15px;
  }

  .bars {
    top: 60px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }

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

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