:root {
  --mint: #b4fde1;
  --sky: #add8e6;
  --ink: #172620;
  --deep: #0f6b4d;
  --paper: #f4fffb;
  --line: 3px solid var(--ink);
  --r-lg: 26px;
  --r-md: 18px;
  --sh: 0 4px 0 rgba(23, 38, 32, 0.16), 0 12px 24px rgba(23, 38, 32, 0.12), inset -2px -2px 9px rgba(23, 38, 32, 0.07);
  --sh-up: 0 6px 0 rgba(23, 38, 32, 0.18), 0 16px 30px rgba(23, 38, 32, 0.16), inset -2px -2px 9px rgba(23, 38, 32, 0.07);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  margin: 0;
  font-family: 'Noto Sans KR', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.78;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(720px 520px at 92% -6%, rgba(173, 216, 230, 0.85) 0%, rgba(173, 216, 230, 0) 62%),
    radial-gradient(620px 520px at 2% 8%, rgba(180, 253, 225, 0.9) 0%, rgba(180, 253, 225, 0) 58%),
    radial-gradient(900px 700px at 50% 118%, rgba(173, 216, 230, 0.55) 0%, rgba(173, 216, 230, 0) 60%);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 99;
  padding: 12px 18px;
  background: #fff;
  border: var(--line);
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
}

.skip:focus {
  left: 14px;
  top: 14px;
}

/* 顶部 */
.topbar {
  max-width: 1220px;
  margin: 0 auto;
  padding: 16px 20px 12px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topnav-right {
  justify-content: flex-end;
}

.topbar-right {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 14px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(160deg, #ffffff, #f0fffa);
  border: var(--line);
  border-radius: 999px;
  box-shadow: var(--sh);
  transition: transform 0.2s var(--bounce), box-shadow 0.2s ease-out;
}

.pill:hover,
.pill:focus-visible {
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--sh-up);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 20px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(140deg, var(--mint), var(--sky));
  border: var(--line);
  border-radius: 999px;
  box-shadow: var(--sh);
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--ink);
}

.search {
  display: flex;
}

.search-input {
  width: 158px;
  min-height: 44px;
  padding: 9px 15px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: var(--line);
  border-radius: 999px;
  box-shadow: var(--sh);
}

.search-input::placeholder {
  color: #4d6a5d;
}

.search-input:focus {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}

.burger {
  width: 48px;
  height: 48px;
  padding: 0;
  display: grid;
  place-content: center;
  gap: 5px;
  background: #fff;
  border: var(--line);
  border-radius: 15px;
  box-shadow: var(--sh);
  cursor: pointer;
  transition: transform 0.2s var(--bounce), background 0.2s ease-out;
}

.burger span {
  display: block;
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: var(--ink);
}

.burger:hover {
  transform: translateY(-2px);
  background: var(--mint);
}

.burger[aria-expanded='true'] {
  background: var(--mint);
}

/* 锚点条 */
.anchorbar {
  position: sticky;
  top: 0;
  z-index: 40;
  margin-top: 6px;
  border-top: var(--line);
  border-bottom: var(--line);
  background: rgba(244, 255, 251, 0.9);
  backdrop-filter: blur(10px);
}

.anchorbar-nav {
  max-width: 1220px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 7px 14px;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  border: var(--line);
  border-radius: 999px;
  box-shadow: var(--sh);
  transition: transform 0.2s var(--bounce);
}

.chip:hover {
  transform: translateY(-2px);
}

.chip[aria-current='true'] {
  background: linear-gradient(140deg, var(--mint), var(--sky));
}

.chip-n {
  font-size: 12px;
  font-weight: 700;
  color: var(--deep);
  letter-spacing: 0.04em;
}

/* 全屏菜单 */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  grid-template-rows: auto auto 1fr;
  gap: 14px;
  padding: 20px;
  overflow-y: auto;
  background-color: #e8fff6;
  background-image:
    radial-gradient(600px 400px at 100% 0%, rgba(173, 216, 230, 0.9), rgba(173, 216, 230, 0)),
    radial-gradient(500px 400px at 0% 100%, rgba(180, 253, 225, 0.9), rgba(180, 253, 225, 0));
}

.drawer.open {
  display: grid;
}

.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.drawer-brand {
  font-size: 20px;
  font-weight: 700;
}

.drawer-close {
  min-height: 46px;
  padding: 8px 20px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: var(--line);
  border-radius: 999px;
  box-shadow: var(--sh);
  cursor: pointer;
}

.search-drawer .search-input {
  width: 100%;
}

.drawer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.drawer-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 13px 20px;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  border: var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh);
}

.drawer-list a:hover {
  background: linear-gradient(140deg, var(--mint), var(--sky));
}

.drawer-n {
  font-size: 12px;
  font-weight: 700;
  color: var(--deep);
}

/* 主视觉 */
.hero {
  position: relative;
  overflow: hidden;
  max-width: 1220px;
  margin: 22px auto;
  padding: 26px 24px;
  min-height: 45vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 26px;
  align-items: center;
  border: var(--line);
  border-radius: 32px;
  background: linear-gradient(150deg, #f2fffa 0%, #e4f6ff 100%);
  box-shadow: var(--sh);
}

.hero::before {
  content: attr(data-mark);
  position: absolute;
  right: 10px;
  bottom: -0.26em;
  font-size: clamp(68px, 13vw, 146px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  white-space: nowrap;
  color: rgba(23, 38, 32, 0.07);
  pointer-events: none;
}

.hero-txt {
  position: relative;
  z-index: 1;
  text-align: right;
}

.hero-txt h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.hero .subtitle {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #1c5f47;
}

.hero-media {
  position: relative;
  z-index: 1;
}

.hero-img {
  display: block;
  width: 100%;
  height: auto;
  border: var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  object-fit: cover;
}

.hero-blob {
  min-height: 220px;
  border: var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, var(--mint), var(--sky));
  box-shadow: var(--sh), inset -4px -6px 14px rgba(23, 38, 32, 0.1);
}

/* 正文 */
main {
  display: block;
}

section {
  max-width: 1220px;
  margin: 0 auto 40px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 234px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

section > article {
  grid-column: 2;
  margin: 0 0 22px;
  padding: 26px 26px 20px;
  scroll-margin-top: 96px;
  background: #fff;
  border: var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  transition: opacity 0.55s ease-out, transform 0.55s var(--bounce), box-shadow 0.2s ease-out;
  transition-delay: calc(var(--i, 0) * 60ms);
}

html.js section > article {
  opacity: 0;
  transform: translateY(16px);
}

html.js section > article.in {
  opacity: 1;
  transform: none;
}

section > article h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.6vw, 29px);
  line-height: 1.32;
  letter-spacing: -0.01em;
}

section > article h3 {
  margin: 26px 0 8px;
  font-size: 20px;
  line-height: 1.4;
}

section > article p {
  margin: 0 0 14px;
}

section > article > p.subtitle,
section > article p.subtitle {
  margin: -4px 0 14px;
  padding-left: 14px;
  font-size: 16px;
  color: #1c5f47;
  border-left: 5px solid var(--sky);
  border-radius: 3px;
}

section > article ul,
section > article ol {
  margin: 0 0 15px;
  padding-left: 1.3em;
}

section > article li {
  margin-bottom: 6px;
}

section > article a {
  color: var(--deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

section > article img {
  height: auto;
  border: var(--line);
  border-radius: var(--r-md);
}

section > article blockquote {
  margin: 0 0 15px;
  padding: 14px 18px;
  background: linear-gradient(150deg, #f1fffa, #eef8ff);
  border: 3px solid var(--ink);
  border-radius: var(--r-md);
  box-shadow: inset 3px 3px 0 rgba(23, 38, 32, 0.06);
}

/* 侧栏 */
.side {
  grid-column: 1;
  grid-row: 1 / span 24;
  align-self: start;
  position: sticky;
  top: 82px;
  padding: 18px;
  background: linear-gradient(160deg, var(--mint), #daf4ff);
  border: var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
}

.side h2 {
  margin: 0 0 4px;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.side .subtitle {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #1c5f47;
}

.side-nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.side-nav a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.62);
  border: 2px solid transparent;
  border-radius: 13px;
  transition: transform 0.2s var(--bounce), background 0.2s ease-out;
}

.side-nav a:hover {
  background: #fff;
  border-color: var(--ink);
  transform: translateX(2px);
}

.side-nav span {
  font-size: 11px;
  font-weight: 700;
  color: var(--deep);
}

/* 页脚 */
.foot {
  max-width: 1220px;
  margin: 0 auto 34px;
  padding: 28px 24px 20px;
  border: var(--line);
  border-radius: 32px;
  background: linear-gradient(160deg, #eafff7 0%, #def1ff 100%);
  box-shadow: var(--sh);
}

.foot-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.foot-nav dl {
  margin: 0;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.72);
  border: var(--line);
  border-radius: var(--r-md);
  box-shadow: inset -2px -2px 8px rgba(23, 38, 32, 0.06);
}

.foot-nav dt {
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.foot-nav dd {
  margin: 0;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 0;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.foot-nav a:hover {
  border-bottom-color: var(--ink);
}

.foot-brand {
  margin: 20px 0 12px;
  font-size: clamp(42px, 10vw, 112px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.055em;
  text-align: center;
  color: var(--ink);
  white-space: nowrap;
}

.copy {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  font-size: 16px;
  color: #234a3b;
}

.copy a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 0;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.copy a:hover {
  border-bottom-color: var(--ink);
}

@media (max-width: 1024px) {
  .search-input {
    width: 130px;
  }
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr auto;
    padding: 14px 16px 10px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .topnav-left,
  .topnav-right,
  .topbar .search {
    display: none;
  }

  .topbar-right {
    grid-column: 2;
    grid-row: 1;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px 18px;
    min-height: 45vh;
    border-radius: 26px;
    margin: 16px 14px;
  }

  .hero-media {
    order: -1;
  }

  section {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0 14px;
  }

  .side {
    grid-column: 1;
    grid-row: auto;
    position: static;
    margin-bottom: 20px;
  }

  section > article {
    grid-column: 1;
    padding: 20px 18px 14px;
    border-radius: 22px;
    scroll-margin-top: 84px;
  }

  .foot {
    margin: 0 14px 24px;
    padding: 20px 16px 16px;
    border-radius: 26px;
  }

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

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

  html.js section > article {
    opacity: 1;
    transform: none;
  }

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

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