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

/* ===== 重置与基础 ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Noto Sans KR', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', system-ui, sans-serif;
  background-color: #1e2e2b;
  color: #d4c4a8;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: #5cc6b0;
  text-decoration: none;
  transition: color 0.25s ease-out;
}

a:hover {
  color: #7dd8c4;
}

ul {
  list-style: none;
}

/* ===== 变量 ===== */
:root {
  --mint: #5cc6b0;
  --mint-light: #7dd8c4;
  --sand: #d4c4a8;
  --forest: #172623;
  --forest-mid: #1e2e2b;
  --forest-lift: #243832;
  --terracotta: #c67b5c;
  --terracotta-light: #d4956e;
  --olive: #6b7b3c;
  --warm-bg: #243832;
  --card-bg: #2b4039;
  --card-border: rgba(92, 198, 176, 0.12);
  --shadow-soft: 0 4px 24px rgba(23, 38, 35, 0.45);
  --shadow-hover: 0 8px 36px rgba(23, 38, 35, 0.65);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --nav-h: 68px;
  --transition: 0.28s ease-out;
}

/* ===== 粒子纹理叠加 ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

/* ===== 页面骨架 ===== */
.page-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.main-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ===== ASIDE + 顶部导航 ===== */
.site-aside {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(23, 38, 35, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(92, 198, 176, 0.15);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 2rem;
  height: var(--nav-h);
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.nav-brand {
  flex-shrink: 0;
  margin-right: 0.5rem;
}

.brand-link {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 38px;
  width: auto;
}

.brand-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--mint);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-pills-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: none;
}

.nav-pills-group::-webkit-scrollbar {
  display: none;
}

/* 导航胶囊：tap 区域 ≥44px */
.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  height: 44px;
  min-height: 44px;
  min-width: 44px;
  line-height: 1;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sand);
  background: rgba(92, 198, 176, 0.08);
  border: 1px solid rgba(92, 198, 176, 0.15);
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.15s ease-out;
  white-space: nowrap;
  touch-action: manipulation;
  /* 确保点击区域充分 */
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-pill:hover {
  background: rgba(92, 198, 176, 0.2);
  color: var(--mint-light);
  border-color: rgba(92, 198, 176, 0.4);
  transform: translateY(-1px);
}

.nav-cta {
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.4rem;
  height: 44px;
  min-height: 44px;
  min-width: 44px;
  line-height: 1;
  border-radius: var(--radius-pill);
  background: var(--mint);
  color: var(--forest);
  font-size: 0.9rem;
  font-weight: 700;
  transition: background var(--transition), transform 0.15s ease-out, box-shadow var(--transition);
  box-shadow: 0 2px 12px rgba(92, 198, 176, 0.3);
  white-space: nowrap;
  touch-action: manipulation;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.btn-cta:hover {
  background: var(--mint-light);
  color: var(--forest);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(92, 198, 176, 0.45);
}

/* ===== 侧边快速导航（隐藏于移动，桌面辅助栏） ===== */
.aside-quick {
  display: none;
}

/* ===== HERO ===== */
.hero-block {
  position: relative;
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: linear-gradient(160deg, #2b4039 0%, #172623 60%, #1a2f2c 100%);
  scroll-margin-top: var(--nav-h);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.35;
}

.hero-media--placeholder {
  background: radial-gradient(ellipse at 70% 40%, rgba(198, 123, 92, 0.18) 0%, transparent 65%),
              radial-gradient(ellipse at 20% 80%, rgba(92, 198, 176, 0.12) 0%, transparent 60%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
}

.hero-text-layer {
  position: relative;
  z-index: 2;
  padding: 3.5rem 2rem 3rem;
  max-width: 720px;
  text-align: left;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(198, 123, 92, 0.25);
  border: 1px solid rgba(198, 123, 92, 0.45);
  color: var(--terracotta-light);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  /* 保证最小高度符合可访问性 */
  min-height: 28px;
  line-height: 1.4;
}

.hero-h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--sand);
  line-height: 1.25;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 1rem;
  color: rgba(212, 196, 168, 0.8);
  line-height: 1.65;
  margin-bottom: 1.6rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius-pill);
  background: var(--terracotta);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  min-height: 48px;
  touch-action: manipulation;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--transition), transform 0.15s ease-out, box-shadow var(--transition);
  box-shadow: 0 3px 14px rgba(198, 123, 92, 0.4);
}

.btn-primary:hover {
  background: var(--terracotta-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(198, 123, 92, 0.5);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--mint);
  border: 1.5px solid var(--mint);
  font-size: 0.95rem;
  font-weight: 500;
  min-height: 48px;
  touch-action: manipulation;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--transition), color var(--transition), transform 0.15s ease-out;
}

.btn-ghost:hover {
  background: rgba(92, 198, 176, 0.15);
  color: var(--mint-light);
  transform: translateY(-2px);
}

/* ===== 主内容区 ===== */
.site-main {
  flex: 1;
  background: var(--forest-mid);
  position: relative;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.content-section {
  width: 100%;
}

.content-article {
  width: 100%;
}

.page-content-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--sand);
}

/* ===== 正文内部元素样式 ===== */
.page-content-body h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--mint);
  margin: 3rem 0 1rem;
  line-height: 1.3;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(92, 198, 176, 0.2);
}

.page-content-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--terracotta-light);
  margin: 2rem 0 0.75rem;
  line-height: 1.4;
}

.page-content-body p {
  margin-bottom: 1.2rem;
  color: rgba(212, 196, 168, 0.9);
}

.page-content-body ul,
.page-content-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}

.page-content-body li {
  margin-bottom: 0.5rem;
  list-style: disc;
}

.page-content-body ol li {
  list-style: decimal;
}

.page-content-body strong {
  color: var(--sand);
  font-weight: 600;
}

.page-content-body a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-content-body a:hover {
  color: var(--mint-light);
}

.page-content-body section {
  margin-bottom: 3.5rem;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
  scroll-margin-top: calc(var(--nav-h) + 1rem);
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.page-content-body section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mint) 0%, var(--terracotta) 100%);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.page-content-body article:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.page-content-body blockquote {
  border-left: 3px solid var(--mint);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: rgba(92, 198, 176, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: rgba(212, 196, 168, 0.85);
  font-style: italic;
}

.page-content-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.page-content-body th {
  background: rgba(92, 198, 176, 0.15);
  color: var(--mint);
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 2px solid rgba(92, 198, 176, 0.25);
}

.page-content-body td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(92, 198, 176, 0.08);
  color: rgba(212, 196, 168, 0.85);
}

.page-content-body tr:hover td {
  background: rgba(92, 198, 176, 0.04);
}

/* ===== 小眉题（h2 前的 small） ===== */
.page-content-body small {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--terracotta);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--forest);
  border-top: 1px solid rgba(92, 198, 176, 0.12);
  padding: 3rem 2rem 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-col dt {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--mint);
  letter-spacing: 0.05em;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
}

.footer-col dd {
  font-size: 0.85rem;
  color: rgba(212, 196, 168, 0.65);
  margin-bottom: 0.45rem;
  line-height: 1.5;
}

.footer-col dd a {
  color: rgba(212, 196, 168, 0.65);
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.25rem;
  touch-action: manipulation;
  cursor: pointer;
}

.footer-col dd a:hover {
  color: var(--mint);
}

.footer-bar {
  border-top: 1px solid rgba(92, 198, 176, 0.08);
  padding: 1.1rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(212, 196, 168, 0.4);
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== Scroll Reveal 动画 ===== */
@media (prefers-reduced-motion: no-preference) {
  .sr-hidden {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease-out, transform 0.55s ease-out;
  }

  .sr-hidden.sr-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .sr-hidden.sr-delay-1 { transition-delay: 0.1s; }
  .sr-hidden.sr-delay-2 { transition-delay: 0.2s; }
  .sr-hidden.sr-delay-3 { transition-delay: 0.3s; }

  .hero-badge {
    animation: fadeSlideDown 0.6s ease-out both;
  }

  .hero-h1 {
    animation: fadeSlideUp 0.7s ease-out 0.15s both;
  }

  .hero-sub {
    animation: fadeSlideUp 0.7s ease-out 0.28s both;
  }

  .hero-actions {
    animation: fadeSlideUp 0.7s ease-out 0.4s both;
  }

  @keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  @keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .page-content-body article {
    animation: none;
  }
}

/* ===== 桌面布局增强 ===== */
@media (min-width: 1100px) {
  .aside-quick {
    display: block;
    position: fixed;
    top: calc(var(--nav-h) + 2rem);
    right: 1.5rem;
    width: 160px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    box-shadow: var(--shadow-soft);
    z-index: 50;
  }

  .aside-eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--terracotta);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
  }

  .aside-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }

  .aside-links li a {
    font-size: 0.8rem;
    color: rgba(212, 196, 168, 0.7);
    display: block;
    padding: 0.4rem 0.5rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition);
    line-height: 1.4;
  }

  .aside-links li a:hover {
    background: rgba(92, 198, 176, 0.1);
    color: var(--mint);
  }

  .wrap {
    padding-right: 200px;
  }
}

/* ===== 中屏 ===== */
@media (min-width: 768px) and (max-width: 1099px) {
  .top-nav {
    padding: 0 1.5rem;
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== 移动端 ===== */
@media (max-width: 767px) {
  :root {
    --nav-h: 60px;
  }

  .top-nav {
    padding: 0 1rem;
    gap: 0.5rem;
    height: var(--nav-h);
  }

  .brand-text {
    font-size: 1rem;
  }

  .nav-pills-group {
    gap: 0.25rem;
  }

  /* 移动端胶囊：固定高度确保 tap ≥44px */
  .nav-pill {
    padding: 0 0.85rem;
    height: 44px;
    min-height: 44px;
    min-width: 44px;
    font-size: 0.8rem;
    line-height: 1;
  }

  .btn-cta {
    padding: 0 1rem;
    height: 44px;
    min-height: 44px;
    min-width: 44px;
    font-size: 0.82rem;
    line-height: 1;
  }

  .hero-text-layer {
    padding: 2.5rem 1.25rem 2rem;
  }

  .hero-h1 {
    font-size: 1.6rem;
  }

  .hero-sub {
    font-size: 0.9rem;
  }

  .btn-primary,
  .btn-ghost {
    min-height: 48px;
    font-size: 0.9rem;
    padding: 0.75rem 1.4rem;
  }

  .wrap {
    padding: 2rem 1rem 3rem;
  }

  .page-content-body article {
    padding: 1.4rem 1.1rem;
    margin-bottom: 2rem;
  }

  .page-content-body h2 {
    font-size: 1.25rem;
    margin-top: 2rem;
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding-bottom: 2rem;
  }

  .site-footer {
    padding: 2rem 1.25rem 0;
  }

  /* 页脚链接移动端 tap 区域 */
  .footer-col dd a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  /* 极小屏隐藏胶囊组，保留品牌和 CTA */
  .nav-pills-group {
    display: none;
  }
}

/* ===== 区块间隔 ===== */
.page-content-body article + article {
  margin-top: 0;
}

/* ===== 聚焦可访问性 ===== */
:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 4px;
}

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