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

:root {
  --ink: #26171a;
  --ink-soft: #5f484c;
  --pink: #eb879c;
  --pink-soft: #ffb6c1;
  --paper: #fffafb;
  --card: #ffffff;
  --line: rgba(38, 23, 26, .14);
  --r: 28px;
  --shadow-soft: 0 2px 4px rgba(38, 23, 26, .05), 0 14px 30px rgba(235, 135, 156, .13);
}

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

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

body {
  margin: 0;
  max-width: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Noto Sans KR', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  overflow-x: hidden;
  overflow-x: clip;
  overflow-wrap: break-word;
  word-break: normal;
}

img,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 20px;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color .25s ease, background-color .25s ease, border-color .25s ease;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  white-space: nowrap;
  clip: rect(0 0 0 0);
}

/* 顶部细条 */
.strip {
  background: var(--ink);
  color: var(--pink-soft);
}

.strip p {
  margin: 0;
  padding: 9px 16px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .28em;
  overflow-wrap: break-word;
}

/* 页头：品牌独占一行，菜单一行 */
.masthead {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.mast-in {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  max-width: 100%;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.brand .mark {
  font-size: 1.1em;
  line-height: 1;
}

.brand-name {
  position: relative;
  padding-left: 20px;
}

.brand-name::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 6px rgba(235, 135, 156, .18);
}

.menubox {
  display: block;
  min-width: 0;
}

.menubox summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 16px;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

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

.menubox summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .25s ease;
}

.menubox[open] summary {
  border-color: var(--pink);
  background: #fff4f6;
  color: var(--ink);
}

.menubox[open] summary::after {
  transform: rotate(225deg) translateY(-1px);
}

.menu {
  list-style: none;
  margin: 12px 0 2px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.menu li {
  min-width: 0;
}

.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #fff6f8;
  font-size: 16px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.menu a:hover {
  background: var(--pink-soft);
  border-color: var(--pink);
}

/* 首屏 */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 45vh;
  padding: 44px 20px;
  background: linear-gradient(158deg, #ffffff 0%, #fff5f7 58%, #ffe8ee 100%);
}

.hero::before {
  content: "";
  position: absolute;
  top: -18%;
  right: -10%;
  width: min(78vw, 660px);
  height: min(78vw, 660px);
  max-width: 78%;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 34%, rgba(255, 182, 193, .55), rgba(255, 182, 193, 0) 62%);
  transform: translate3d(0, var(--par, 0px), 0);
  pointer-events: none;
}

.hero-in {
  position: relative;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  min-width: 0;
  text-align: right;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5.6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-desc {
  margin: 16px 0 0 auto;
  max-width: 46em;
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

/* 主体：左栏目录 + 右栏正文 */
main {
  display: block;
  min-width: 0;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 52px 20px 76px;
  min-width: 0;
}

.reading {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  min-width: 0;
}

.toc {
  position: sticky;
  top: 24px;
  min-width: 0;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
}

.toc h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .2em;
}

.toc hr {
  width: 36px;
  height: 2px;
  margin: 0 0 14px;
  border: 0;
  background: var(--pink);
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.toc li {
  counter-increment: toc;
  min-width: 0;
}

.toc a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-height: 42px;
  padding: 8px 8px;
  border-radius: 14px;
  font-size: 16px;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  flex: none;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--pink);
}

.toc a:hover {
  background: #fff4f6;
  color: var(--ink);
}

/* 正文 */
.prose {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}

.prose article {
  margin: 0 0 24px;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  min-width: 0;
  max-width: 100%;
}

.prose article[id] {
  scroll-margin-top: 96px;
}

.prose article:last-child {
  margin-bottom: 0;
}

.prose h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2.6vw, 1.72rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.005em;
  overflow-wrap: anywhere;
}

.prose h3 {
  margin: 26px 0 10px;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.prose hr {
  width: 76px;
  height: 2px;
  margin: 0 0 18px;
  border: 0;
  background: linear-gradient(90deg, var(--pink), rgba(255, 182, 193, 0));
}

.prose p {
  margin: 0 0 1em;
  overflow-wrap: anywhere;
}

.prose p:last-child,
.prose ul:last-child,
.prose ol:last-child {
  margin-bottom: 0;
}

.prose ul,
.prose ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

.prose li {
  margin: 0 0 .35em;
  overflow-wrap: anywhere;
}

.prose a {
  color: #c25670;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.prose a:hover {
  color: var(--ink);
}

.prose blockquote {
  margin: 0 0 1em;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--pink-soft);
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.prose table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 1em;
  border-collapse: collapse;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  font-size: 16px;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.prose th {
  background: #fff4f6;
  font-weight: 700;
}

.prose pre {
  margin: 0 0 1em;
  padding: 16px 18px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff6f8;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  font-size: 16px;
  line-height: 1.6;
}

.prose code {
  font-size: .95em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.prose pre code {
  word-break: normal;
  white-space: pre;
}

.prose img {
  margin: 0 0 1em;
  max-width: 100%;
  box-shadow: var(--shadow-soft);
}

/* 页脚 */
.foot {
  background: var(--ink);
  color: #ffe9ee;
  padding: 48px 20px 22px;
  min-width: 0;
}

.foot-in {
  max-width: 1120px;
  margin: 0 auto;
  min-width: 0;
}

.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 22px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid rgba(255, 182, 193, .32);
  border-radius: var(--r);
  min-width: 0;
}

.foot-brand {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--pink-soft);
  overflow-wrap: anywhere;
}

.sub {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.sub input {
  flex: 1 1 170px;
  min-width: 0;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 182, 193, .42);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
}

.sub input::placeholder {
  color: rgba(255, 233, 238, .72);
}

.sub button {
  min-height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--pink);
  color: #2a1116;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .25s ease;
}

.sub button:hover {
  background: var(--pink-soft);
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
  min-width: 0;
}

.foot-cols dl {
  margin: 0;
  min-width: 0;
}

.foot-cols dt {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--pink-soft);
}

.foot-cols dd {
  margin: 0;
  min-width: 0;
}

.foot-cols dd a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  max-width: 100%;
  color: #ffe9ee;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.foot-cols dd a:hover {
  color: var(--pink-soft);
}

.foot-cols .host {
  display: inline-block;
  padding: 10px 0;
  color: rgba(255, 233, 238, .78);
  font-size: 16px;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.foot-bar {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 182, 193, .22);
}

.foot-bar p {
  margin: 0;
  text-align: center;
  font-size: 16px;
  color: rgba(255, 233, 238, .72);
}

/* 入场动效 */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

[data-reveal] {
  animation: rise .5s ease both;
}

.prose article {
  animation: rise .45s ease both;
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .reading {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .toc {
    position: static;
  }

  .toc ol {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .toc a {
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff6f8;
  }

  .toc a::before {
    content: none;
  }

  .foot-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .foot-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .mast-in {
    padding: 12px 16px 12px;
  }

  .brand {
    font-size: 1.3rem;
  }

  .hero {
    min-height: 0;
    padding: 34px 16px 38px;
  }

  .hero::before {
    width: 84vw;
    height: 84vw;
    right: -18%;
  }

  .wrap {
    padding: 36px 16px 56px;
  }

  .prose article {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .menu {
    gap: 6px;
  }

  .menu a {
    padding: 0 12px;
  }

  .foot {
    padding: 36px 16px 20px;
  }
}

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

  [data-reveal],
  .prose article {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero::before {
    transform: none;
  }

  a,
  .menubox summary,
  .menubox summary::after,
  .sub button {
    transition: none;
  }
}

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