/* ============ 보험사 사이트 디자인 시스템 ============ */
:root {
  /* 메인 - 딥 그린 (DB 손보 톤) */
  --primary: #00854A;
  --primary-dark: #006B3C;
  --primary-light: #2DA86C;
  --primary-bg: #E5F5ED;
  --primary-soft: #F0F9F4;

  /* 보조 - 시그널 블루 (신뢰감) */
  --blue: #0064C8;
  --blue-dark: #004FA0;
  --blue-bg: #E5F0FB;

  /* 액센트 - 오렌지 (CTA 강조) */
  --accent: #FF6B35;
  --accent-dark: #E5552A;
  --accent-bg: #FFF0E8;

  /* 베이스 */
  --bg: #F7F8FA;
  --bg-soft: #FFFFFF;
  --surface: #FFFFFF;

  /* 텍스트 */
  --ink: #1A1F2E;
  --ink-soft: #4A5568;
  --ink-mid: #718096;
  --ink-light: #A0AEC0;

  /* 라인 */
  --line: #E2E8F0;
  --line-soft: #EDF2F7;

  /* 상태 */
  --good: #00A86B;
  --good-bg: #E6F7EF;
  --warn: #F6AD55;
  --warn-bg: #FFF4E6;
  --bad: #E53E3E;
  --bad-bg: #FEE5E5;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 15.5px;
  letter-spacing: -0.2px;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============ 상단 바 (utility bar) ============ */
.utility-bar {
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  font-size: 12px;
}

.utility-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-mid);
  font-weight: 500;
}

.utility-left {
  display: flex;
  gap: 16px;
  align-items: center;
}

.utility-left strong {
  color: var(--primary);
  font-weight: 700;
}

.utility-right {
  display: flex;
  gap: 16px;
  align-items: center;
}

.utility-right a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s;
}

.utility-right a:hover {
  color: var(--primary);
}

.utility-divider {
  width: 1px;
  height: 12px;
  background: var(--line);
}

/* ============ 헤더 ============ */
header {
  background: white;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -1px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.5px;
}

.brand-tag {
  font-size: 11px;
  color: var(--ink-mid);
  font-weight: 500;
  letter-spacing: 0.2px;
  margin-top: 2px;
}

.main-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.main-menu > li {
  position: relative;
}

.main-menu > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: 8px;
  transition: all 0.15s;
}

.main-menu > li > a:hover,
.main-menu > li > a.active {
  background: var(--primary-bg);
  color: var(--primary);
}

.chevron {
  font-size: 9px;
  opacity: 0.6;
  transition: transform 0.2s;
}

.main-menu > li:hover .chevron {
  transform: rotate(180deg);
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.15s;
  z-index: 10;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  margin-top: 4px;
}

.main-menu > li:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu li a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.15s;
}

.submenu li a:hover,
.submenu li a.active {
  background: var(--primary-bg);
  color: var(--primary);
  font-weight: 600;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-tel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.nav-tel-icon {
  font-size: 14px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.15s;
}

.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 133, 74, 0.25);
}

.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.25s;
}

.hamburger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============ 페이지 헤더 (서브) ============ */
.page-header {
  background: linear-gradient(180deg, var(--primary-bg) 0%, white 100%);
  padding: 60px 0 48px;
  border-bottom: 1px solid var(--line);
}

.page-header-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--ink-mid);
  font-weight: 500;
}

.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--ink-light); }
.breadcrumb .current { color: var(--primary); font-weight: 600; }

.page-tag {
  display: inline-block;
  padding: 6px 12px;
  background: white;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -1.2px;
  color: var(--ink);
  margin-bottom: 14px;
  word-break: keep-all;
}

.page-header h1 em {
  color: var(--primary);
  font-style: normal;
}

.page-lead {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.75;
  word-break: keep-all;
  font-weight: 500;
  max-width: 720px;
  margin-bottom: 24px;
}

.page-meta {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 10px 0;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
  flex-wrap: wrap;
}

.page-meta > span {
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-meta > span + span {
  border-left: 1px solid var(--line);
}

.page-meta-label {
  font-size: 12px;
  color: var(--ink-light);
  font-weight: 500;
}

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

/* ============ 콘텐츠 ============ */
.content { padding: 56px 0 80px; }

.content-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

.content h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  margin: 56px 0 20px;
  letter-spacing: -0.6px;
  word-break: keep-all;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 12px;
}

.content h2::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--primary);
  border-radius: 2px;
}

.content h2:first-child { margin-top: 0; }

.content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 32px 0 14px;
  letter-spacing: -0.4px;
  word-break: keep-all;
  line-height: 1.4;
}

.content p {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.85;
  margin-bottom: 18px;
  word-break: keep-all;
}

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

.content em {
  font-style: normal;
  color: var(--primary);
  font-weight: 700;
}

.content ul, .content ol {
  margin: 18px 0 24px;
  padding-left: 0;
  list-style: none;
}

.content li {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.85;
  margin-bottom: 10px;
  word-break: keep-all;
  padding-left: 28px;
  position: relative;
}

.content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.content ol { counter-reset: ol-counter; }
.content ol li { counter-increment: ol-counter; }

.content ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 정보 박스 */
.info-box {
  margin: 28px 0;
  padding: 24px 28px;
  background: var(--primary-soft);
  border: 1px solid var(--primary-bg);
  border-radius: 12px;
  border-left: 4px solid var(--primary);
}

.info-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.info-label::before {
  content: 'ℹ';
  font-size: 14px;
}

.info-box p {
  font-size: 15px;
  margin-bottom: 8px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.info-box p:last-child { margin-bottom: 0; }

.info-box strong {
  color: var(--primary);
  font-weight: 700;
}

/* Tip Box */
.tip-box {
  margin: 28px 0;
  padding: 24px 28px;
  background: var(--blue-bg);
  border: 1px solid #C5DEF7;
  border-radius: 12px;
  border-left: 4px solid var(--blue);
}

.tip-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 12px;
}

.tip-label::before {
  content: '💡';
  font-size: 14px;
}

.tip-box p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.tip-box p:last-child { margin-bottom: 0; }

.tip-box strong {
  color: var(--blue);
  font-weight: 700;
}

/* Warning Box */
.warning-box {
  margin: 28px 0;
  padding: 24px 28px;
  background: var(--accent-bg);
  border: 1px solid #FFD4BA;
  border-radius: 12px;
  border-left: 4px solid var(--accent);
}

.warning-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

.warning-label::before {
  content: '⚠';
  font-size: 14px;
}

.warning-box p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.warning-box p:last-child { margin-bottom: 0; }

.warning-box strong {
  color: var(--accent-dark);
  font-weight: 700;
}

/* 데이터 테이블 */
.data-table-wrap {
  margin: 28px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  overflow: hidden;
}

.data-table-caption {
  padding: 14px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.data-table-caption::before {
  content: '📊 ';
  margin-right: 4px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.data-table thead th {
  padding: 14px 16px;
  background: white;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  border-bottom: 2px solid var(--primary);
}

.data-table th.center { text-align: center; }

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-size: 14.5px;
}

.data-table td.center { text-align: center; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--primary-soft); }

.data-table td:first-child {
  font-weight: 700;
  color: var(--ink);
}

.data-table td.target {
  color: var(--primary);
  font-weight: 800;
  font-size: 15px;
}

/* 페이지 CTA */
.page-cta {
  margin: 64px 0 0;
  padding: 48px 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.page-cta::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.page-cta-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: white;
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.page-cta h3 {
  font-size: 28px;
  font-weight: 800;
  color: white;
  margin: 0 0 12px;
  letter-spacing: -0.8px;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.page-cta h3::before { display: none; }

.page-cta h3 em {
  color: white;
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.5);
  text-underline-offset: 4px;
}

.page-cta p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 28px;
  line-height: 1.7;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.page-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: white;
  color: var(--primary);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.15s;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-cta-btn:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* 관련 페이지 */
.related {
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.related-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.related-label::before {
  content: '';
  width: 4px;
  height: 16px;
  background: var(--primary);
  border-radius: 2px;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.related-card {
  display: block;
  padding: 24px 28px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: all 0.2s;
  position: relative;
}

.related-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 133, 74, 0.1);
}

.related-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-bg);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.related-card h4 {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.4px;
  line-height: 1.35;
  margin-bottom: 8px;
  word-break: keep-all;
}

.related-card p {
  font-size: 13.5px;
  color: var(--ink-mid);
  line-height: 1.6;
  word-break: keep-all;
  font-weight: 500;
}

.related-card .arrow {
  display: inline-block;
  margin-top: 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  transition: transform 0.2s;
}

.related-card:hover .arrow { transform: translateX(4px); }

/* 플로팅 CTA */
.float-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--accent);
  color: white;
  padding: 14px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
}

.float-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 107, 53, 0.4);
}

/* ============ FOOTER ============ */
footer {
  background: #1A1F2E;
  color: rgba(255, 255, 255, 0.85);
  padding: 56px 0 32px;
  margin-top: 80px;
}

.footer-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-brand-mark {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -1px;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.footer-brand-name {
  font-size: 18px;
  font-weight: 800;
  color: white;
}

.footer-brand-tag {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  margin-top: 2px;
}

.footer-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.75;
  word-break: keep-all;
  font-weight: 400;
  margin-bottom: 20px;
}

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

.footer-cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.footer-cert-badge::before {
  content: '✓';
  color: var(--primary-light);
  font-weight: 700;
}

.footer-col h5 {
  font-size: 14px;
  color: white;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--primary-light);
}

.footer-contact {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px 24px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.footer-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-contact-label {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

.footer-contact-value {
  font-size: 16px;
  color: white;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.footer-contact-time {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.85;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.footer-copy strong {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 16px;
  font-size: 12.5px;
  font-weight: 600;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.15s;
}

.footer-links a.highlight {
  color: white;
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-links .divider {
  color: rgba(255, 255, 255, 0.2);
}

/* ============ 반응형 ============ */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand-section {
    grid-column: 1 / -1;
  }
  .footer-contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .utility-bar { display: none; }
  .nav { padding: 14px 20px; gap: 16px; }
  .brand-tag { display: none; }
  .nav-tel { display: none; }

  .main-menu {
    position: fixed;
    top: 73px;
    right: -100%;
    width: 320px;
    height: calc(100vh - 73px);
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 4px;
    transition: right 0.3s;
    overflow-y: auto;
    border-left: 1px solid var(--line);
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.05);
    z-index: 99;
  }
  .main-menu.active { right: 0; }
  .main-menu > li > a {
    padding: 14px 16px;
    font-size: 15px;
    border-radius: 10px;
  }

  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 4px 16px 8px;
    margin: 0;
  }
  .submenu li a {
    padding: 8px 12px;
    font-size: 13.5px;
    color: var(--ink-mid);
  }

  .hamburger { display: flex; }

  .page-header { padding: 40px 0 32px; }
  .page-header-inner, .content-inner { padding: 0 20px; }
}

@media (max-width: 640px) {
  .nav { padding: 12px 16px; }

  .page-header { padding: 32px 0 28px; }
  .page-header h1 { font-size: 1.85rem; letter-spacing: -1px; }
  .page-lead { font-size: 15.5px; }
  .page-meta { font-size: 12px; flex-direction: column; align-items: flex-start; }
  .page-meta > span { padding: 4px 16px; width: 100%; }
  .page-meta > span + span { border-left: none; border-top: 1px solid var(--line); }

  .content { padding: 36px 0 56px; }
  .content h2 { font-size: 22px; margin: 40px 0 14px; }
  .content h3 { font-size: 18px; }
  .content p, .content li { font-size: 15px; }

  .info-box, .tip-box, .warning-box { padding: 20px 22px; margin: 24px 0; }
  .data-table thead th, .data-table td { padding: 11px 12px; font-size: 13px; }

  .related-grid { grid-template-columns: 1fr; gap: 12px; }
  .related-card { padding: 20px 22px; }

  .page-cta { padding: 36px 24px; }
  .page-cta h3 { font-size: 22px; }

  footer { padding: 40px 0 24px; margin-top: 56px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-contact-grid { grid-template-columns: 1fr; }

  .float-cta { bottom: 16px; right: 16px; padding: 12px 18px; font-size: 13px; }
}
