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

:root {
  --ink: #1f1f1f;
  --ink-2: #3c3c3c;
  --mute: #6d6d6d;
  --paper: #ffffff;
  --fog: #f5f5f5;
  --line: rgba(31, 31, 31, 0.1);
  --glass: rgba(255, 255, 255, 0.74);
  --e1: 0 1px 2px rgba(31, 31, 31, 0.06);
  --e2: 0 6px 18px -8px rgba(31, 31, 31, 0.16);
  --e3: 0 18px 44px -20px rgba(31, 31, 31, 0.24);
  --e4: 0 34px 80px -30px rgba(31, 31, 31, 0.32);
  --rail: 252px;
  --r: 28px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Noto Sans KR', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.78;
  letter-spacing: 0.01em;
}

/* ---- 溢出与收缩护栏 ---- */
img,
svg,
video,
iframe,
table,
pre {
  max-width: 100%;
}

main,
.wrap,
.stage,
.sheet,
.hero,
.hero-copy,
.hero-art,
.rail-side,
.base,
.rail-head {
  min-width: 0;
  max-width: 100%;
}

.hero-title,
.hero-desc,
.sheet p,
.sheet li,
.sheet h2,
.sheet h3,
.sheet blockquote,
.sheet td,
.base-copy {
  overflow-wrap: break-word;
  word-break: break-word;
}

.sheet pre,
.sheet table {
  display: block;
  width: 100%;
  overflow-x: auto;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ---- 左侧固定竖排控制层 ---- */
.rail-head {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: var(--rail);
  padding: 26px 20px 32px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-right: 1px solid var(--line);
  box-shadow: var(--e2);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mark-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--e2);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mark-link:hover {
  transform: translateY(-3px) rotate(-3deg);
  box-shadow: var(--e3);
}

.mark-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mark-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--ink);
  color: var(--paper);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0;
}

.rail-nav p {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.rail-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 17px;
  border-radius: 999px;
  background: var(--fog);
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  box-shadow: var(--e1);
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}

.rail-nav a:hover {
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-3px);
  box-shadow: var(--e2);
}

.finder {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-top: auto;
  padding-top: 8px;
}

.finder-lab {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.finder input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--fog);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.finder input::placeholder {
  color: var(--mute);
}

.finder-btn {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  box-shadow: var(--e2);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.finder-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--e3);
}

/* ---- 主体 ---- */
main {
  margin-left: var(--rail);
  padding: 0 40px;
}

.wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 36px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 0 72px;
  align-items: start;
}

.stage {
  position: relative;
}

.stage::before {
  content: "";
  position: absolute;
  inset: -44px 0 auto 0;
  height: 72vh;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 78% at 100% 0%, var(--fog) 0%, rgba(245, 245, 245, 0) 62%),
    radial-gradient(88% 66% at 0% 24%, var(--fog) 0%, rgba(245, 245, 245, 0) 58%);
  background-attachment: fixed;
}

/* ---- 首屏：双图错位拼贴 ---- */
.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 26px;
  align-items: center;
  min-height: 70vh;
  padding: 8px 0 26px;
}

.hero-art {
  position: relative;
  height: min(56vh, 500px);
  min-height: 240px;
}

.plate {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r);
  background: linear-gradient(145deg, #ffffff 0%, var(--fog) 55%, #e8e8e8 100%);
  border: 1px solid var(--line);
}

.plate .shot,
.plate img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p1 {
  top: 0;
  right: 0;
  width: 74%;
  height: 78%;
  z-index: 2;
  transform: rotate(-2.4deg);
  box-shadow: var(--e3);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.p2 {
  left: 0;
  bottom: 0;
  width: 62%;
  height: 64%;
  z-index: 3;
  transform: rotate(3deg);
  box-shadow: var(--e4);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hero-art:hover .p1 {
  transform: rotate(-4deg) translateY(-8px);
}

.hero-art:hover .p2 {
  transform: rotate(5deg) translateY(8px);
}

.hero-copy {
  position: relative;
  z-index: 4;
  text-align: right;
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(30px, 4.1vw, 54px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.hero-desc {
  max-width: 32ch;
  margin: 0 0 0 auto;
  color: var(--mute);
  font-size: 16px;
  line-height: 1.8;
}

/* ---- 正文玻璃卡 ---- */
.sheet {
  position: relative;
  z-index: 3;
  margin-top: -34px;
  padding: 40px 40px 34px;
  border-radius: var(--r);
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  box-shadow: var(--e3);
}

.sheet > section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 110px;
}

.sheet > section:first-child {
  padding-top: 2px;
  border-top: 0;
}

.sheet > section:last-child {
  padding-bottom: 2px;
}

.sheet h2 {
  margin: 0 0 14px;
  font-size: clamp(22px, 2.3vw, 29px);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.01em;
}

.sheet h3 {
  margin: 24px 0 10px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
}

.sheet p {
  max-width: 66ch;
  margin: 0 0 16px;
  color: var(--ink-2);
}

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

.sheet li {
  margin-bottom: 8px;
  color: var(--ink-2);
}

.sheet a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(31, 31, 31, 0.3);
  text-underline-offset: 3px;
}

.sheet a:hover {
  text-decoration-color: var(--ink);
}

.sheet strong {
  color: var(--ink);
  font-weight: 700;
}

.sheet blockquote {
  margin: 0 0 18px;
  padding: 16px 20px;
  background: var(--fog);
  border-left: 3px solid var(--ink);
  border-radius: 0 18px 18px 0;
  color: var(--ink-2);
}

.sheet img {
  height: auto;
  border-radius: 18px;
}

.sheet code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--fog);
  font-size: 0.95em;
}

/* ---- 右侧栏 ---- */
.rail-side {
  position: sticky;
  top: 28px;
  z-index: 2;
}

.side-card {
  padding: 24px 18px;
  border-radius: var(--r);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  box-shadow: var(--e2);
}

.side-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--mute);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.26em;
}

.side-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

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

.side-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 16px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.side-list a:hover {
  background: var(--fog);
  color: var(--ink);
  transform: translateX(3px);
}

/* ---- 页脚 ---- */
.base {
  margin-left: var(--rail);
  padding: 0 40px 40px;
}

.base > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.cta {
  position: relative;
  z-index: 2;
  padding: 58px 32px;
  margin-bottom: 40px;
  border-radius: 36px;
  border: 1px solid var(--line);
  background: linear-gradient(152deg, #ffffff 0%, var(--fog) 58%, #e9e9e9 100%);
  box-shadow: var(--e3);
  text-align: center;
}

.cta-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--mute);
  font-size: 16px;
  letter-spacing: 0.26em;
}

.cta-title {
  margin: 0 0 24px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 30px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
  text-decoration: none;
  box-shadow: var(--e3);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.cta-btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--e4);
}

.base-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.base-grid dl {
  margin: 0;
  min-width: 0;
}

.base-grid dt {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.base-grid dd {
  margin: 0;
  color: var(--mute);
  font-size: 16px;
  line-height: 1.6;
}

.base-grid dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--mute);
  font-size: 16px;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.base-grid dd a:hover {
  color: var(--ink);
  transform: translateX(3px);
}

.base-copy {
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 16px;
  text-align: center;
}

/* ---- 移动端 ---- */
@media (max-width: 1024px) {
  .rail-head {
    position: sticky;
    inset: auto;
    top: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--e2);
    overflow: visible;
  }

  .mark-link {
    grid-column: 1;
    grid-row: 1;
    width: 42px;
    height: 42px;
  }

  .rail-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .rail-nav p {
    flex-direction: row;
    gap: 8px;
    width: max-content;
    max-width: none;
  }

  .rail-nav a {
    white-space: nowrap;
    min-height: 42px;
    padding: 9px 15px;
  }

  .finder {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
  }

  .finder input {
    min-width: 0;
    width: 100%;
  }

  main,
  .base {
    margin-left: 0;
  }

  main {
    padding: 0 16px;
  }

  .base {
    padding: 0 16px 32px;
  }

  .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 24px 0 44px;
  }

  .stage::before {
    inset: -24px 0 auto 0;
    height: 52vh;
    background-attachment: scroll;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 18px;
    padding: 4px 0 10px;
  }

  .hero-art {
    height: 234px;
    min-height: 0;
    overflow: hidden;
    border-radius: var(--r);
  }

  .hero-title {
    font-size: clamp(26px, 8vw, 40px);
  }

  .hero-desc {
    max-width: 40ch;
  }

  .sheet {
    margin-top: 0;
    padding: 24px 16px 20px;
    border-radius: 22px;
  }

  .sheet > section {
    padding: 26px 0;
    scroll-margin-top: 132px;
  }

  .rail-side {
    position: static;
  }

  .cta {
    padding: 40px 18px;
    border-radius: 26px;
  }

  .base-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 20px 0;
  }
}

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

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

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