:root {
  --brand: #ff5c8a;
  --brand-dark: #e63e6d;
  --brand-soft: #ffe4ec;
  --brand-glow: rgba(255, 92, 138, 0.35);
  --bg: #ffffff;
  --bg-soft: #fff7fa;
  --bg-card: #ffffff;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.55);
  --text: #22222a;
  --text-sub: #5a5a66;
  --text-mute: #8a8a96;
  --border: #f0d8e0;
  --shadow: 0 6px 24px rgba(255, 92, 138, 0.10);
  --shadow-lg: 0 18px 48px rgba(255, 92, 138, 0.18);
  --radius: 16px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html[data-theme="dark"] {
  --brand: #ff7ba3;
  --brand-dark: #ff5c8a;
  --brand-soft: #3a2230;
  --brand-glow: rgba(255, 123, 163, 0.28);
  --bg: #15151c;
  --bg-soft: #1c1c26;
  --bg-card: #20202b;
  --glass: rgba(32, 32, 43, 0.72);
  --glass-border: rgba(255, 255, 255, 0.10);
  --text: #ececf2;
  --text-sub: #b8b8c4;
  --text-mute: #8a8a96;
  --border: #33333f;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.55);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--brand-dark);
}

img,
svg {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  z-index: 9999;
  border-radius: 0 0 10px 0;
}

.skip-link:focus {
  left: 10px;
  top: 10px;
  border-radius: 10px;
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  flex-shrink: 0;
}

.logo:hover {
  color: var(--text);
}

.logo .logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), #ff9dbb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 6px 16px var(--brand-glow);
  transition: transform 0.3s var(--ease);
}

.logo:hover .logo-mark {
  transform: rotate(-8deg) scale(1.06);
}

.main-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav a {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text-sub);
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 4px 4px 14px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.search-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

.search-box input {
  border: none;
  background: transparent;
  color: var(--text);
  outline: none;
  width: 150px;
  font-size: 14px;
  font-family: inherit;
}

.search-box input::placeholder {
  color: var(--text-mute);
}

.search-box button {
  border: none;
  background: linear-gradient(135deg, var(--brand), #ff8fb0);
  color: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.search-box button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--brand-glow);
}

.icon-btn {
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease);
}

.icon-btn:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  background: var(--brand-soft);
}

.menu-toggle {
  display: none;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 40px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 92, 138, 0.18), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(255, 157, 187, 0.22), transparent 40%),
    linear-gradient(160deg, var(--brand-soft), var(--bg) 70%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 92, 138, 0.12) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.5;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: 34px;
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}

.hero h1 .hl {
  color: var(--brand-dark);
  background: linear-gradient(120deg, var(--brand), #ff9dbb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 17px;
  color: var(--text-sub);
  margin-bottom: 22px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), #ff8fb0);
  color: #fff;
  box-shadow: 0 8px 20px var(--brand-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  color: #fff;
  box-shadow: 0 14px 30px var(--brand-glow);
}

.btn-ghost {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--brand-dark);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  transform: translateY(-3px);
}

.hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.stat-num {
  font-size: 26px;
  font-weight: 900;
  color: var(--brand-dark);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 13px;
  color: var(--text-mute);
}

.hero-visual {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s var(--ease);
}

.hero-visual:hover {
  transform: translateY(-6px) rotate(-0.5deg);
}

.hero-visual svg {
  border-radius: 14px;
}

/* ============ Sections ============ */
.section {
  padding: 56px 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-head {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: 27px;
  font-weight: 900;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
  line-height: 1.4;
}

.section-head p {
  color: var(--text-sub);
  font-size: 16px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* ============ Grid & Cards ============ */
.grid {
  display: grid;
  gap: 20px;
}

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

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 92, 138, 0.06), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

.card:hover::after {
  opacity: 1;
}

.card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.5;
}

.card p {
  color: var(--text-sub);
  font-size: 15px;
}

.card .icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-soft), rgba(255, 157, 187, 0.35));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--brand-dark);
  font-weight: 900;
  font-size: 20px;
  transition: transform 0.3s var(--ease);
}

.card:hover .icon-badge {
  transform: scale(1.08) rotate(-4deg);
}

/* ============ Article Card ============ */
.article-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  overflow: hidden;
}

.article-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), #ff9dbb);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

.article-card:hover::before {
  transform: scaleX(1);
}

.article-card .meta {
  font-size: 13px;
  color: var(--text-mute);
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.article-card .meta span {
  color: var(--brand-dark);
  font-weight: 600;
}

.article-card h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.5;
}

.article-card p {
  color: var(--text-sub);
  font-size: 14.5px;
  flex: 1;
}

.article-card .read-more {
  margin-top: 14px;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.25s var(--ease);
}

.article-card:hover .read-more {
  gap: 10px;
}

/* ============ FAQ ============ */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.faq-item:hover {
  border-color: var(--brand);
}

.faq-item.open {
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: inherit;
  transition: color 0.2s var(--ease);
}

.faq-q:hover {
  color: var(--brand-dark);
}

.faq-q .chev {
  transition: transform 0.3s var(--ease);
  color: var(--brand);
  font-weight: 900;
  font-size: 20px;
  flex-shrink: 0;
}

.faq-item.open .faq-q .chev {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
  padding: 0 20px;
}

.faq-item.open .faq-a {
  max-height: 600px;
  padding-bottom: 18px;
}

.faq-a p {
  color: var(--text-sub);
  font-size: 15px;
}

/* ============ HowTo Steps ============ */
.steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 20px 20px 70px;
  position: relative;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.step:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
  border-color: var(--brand);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #ff9dbb);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  box-shadow: 0 4px 12px var(--brand-glow);
}

.step h4 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}

.step p {
  color: var(--text-sub);
  font-size: 14.5px;
}

/* ============ Table ============ */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 560px;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 800;
  white-space: nowrap;
}

tbody tr {
  transition: background 0.2s var(--ease);
}

tbody tr:hover {
  background: var(--bg-soft);
}

tr:last-child td {
  border-bottom: none;
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  font-size: 13.5px;
  color: var(--text-mute);
  padding: 16px 0;
}

.breadcrumb a {
  color: var(--text-sub);
}

.breadcrumb a:hover {
  color: var(--brand);
}

.breadcrumb span {
  margin: 0 6px;
}

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-list {
  list-style: none;
}

.contact-list li {
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  display: flex;
  gap: 12px;
  font-size: 15px;
  transition: padding-left 0.2s var(--ease);
}

.contact-list li:hover {
  padding-left: 6px;
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-list .k {
  color: var(--text-mute);
  min-width: 80px;
  font-weight: 600;
  flex-shrink: 0;
}

.contact-list .v {
  color: var(--text);
  word-break: break-all;
}

/* ============ Footer ============ */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 14px;
}

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

.footer-col li {
  margin-bottom: 9px;
  font-size: 14px;
  color: var(--text-sub);
}

.footer-col a {
  color: var(--text-sub);
  font-size: 14px;
  position: relative;
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--brand);
  padding-left: 4px;
}

.footer-col p {
  color: var(--text-sub);
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-mute);
}

/* ============ Back to Top ============ */
.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #ff9dbb);
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 8px 20px var(--brand-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: all 0.3s var(--ease);
  z-index: 900;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-top:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 12px 28px var(--brand-glow);
}

/* ============ Reveal Animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ============ Carousel ============ */
.carousel {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.slides {
  display: flex;
  transition: transform 0.5s var(--ease);
  will-change: transform;
}

.slide {
  min-width: 100%;
  padding: 32px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.slide .slide-text h3 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 8px;
}

.slide .slide-text p {
  color: var(--text-sub);
  font-size: 15px;
}

.slide .slide-svg {
  width: 120px;
  flex-shrink: 0;
}

.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s var(--ease), width 0.25s var(--ease);
}

.carousel-dots button:hover {
  background: var(--brand);
}

.carousel-dots button.active {
  background: var(--brand);
  width: 22px;
  border-radius: 999px;
}

/* ============ Misc ============ */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 600;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.tag:hover {
  transform: translateY(-2px);
  background: var(--brand);
  color: #fff;
}

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.anchor-nav a {
  font-size: 13.5px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--text-sub);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.anchor-nav a:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  transform: translateY(-2px);
}

.prose p {
  margin-bottom: 14px;
  color: var(--text-sub);
}

.prose h3 {
  font-size: 19px;
  font-weight: 800;
  margin: 22px 0 10px;
}

.prose h4 {
  font-size: 16px;
  font-weight: 800;
  margin: 16px 0 8px;
}

.prose ul {
  margin: 0 0 14px 22px;
  color: var(--text-sub);
}

.prose li {
  margin-bottom: 6px;
}

.note {
  background: var(--brand-soft);
  border-left: 4px solid var(--brand);
  border-radius: 0 12px 12px 0;
  padding: 14px 18px;
  font-size: 14.5px;
  color: var(--text-sub);
  margin: 16px 0;
}

/* ============ Accessibility & Motion ============ */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============ Responsive: Tablet ============ */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero h1 {
    font-size: 30px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 0;
  }
}

/* ============ Responsive: Mobile ============ */
@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    height: auto;
    padding: 10px 0;
    flex-wrap: wrap;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-top: 8px;
    gap: 2px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
    animation: navDrop 0.3s var(--ease);
  }

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

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 10px 14px;
    width: 100%;
  }

  .menu-toggle {
    display: flex;
  }

  .search-box {
    padding-left: 12px;
  }

  .search-box input {
    width: 90px;
  }

  .search-box button {
    padding: 6px 12px;
  }

  .hero {
    padding: 32px 0 28px;
  }

  .hero h1 {
    font-size: 25px;
  }

  .hero-lead {
    font-size: 15.5px;
  }

  .hero-stats {
    gap: 20px;
  }

  .stat-num {
    font-size: 22px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .section {
    padding: 40px 0;
  }

  .section-head h2 {
    font-size: 22px;
  }

  .slide {
    flex-direction: column;
    text-align: center;
    padding: 26px 20px 40px;
  }

  .slide .slide-svg {
    width: 96px;
  }

  .card,
  .article-card {
    padding: 20px;
  }

  .step {
    padding: 18px 18px 18px 64px;
  }

  .step::before {
    left: 16px;
    top: 18px;
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .back-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }

  .hero-visual {
    padding: 12px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 400px) {
  .search-box input {
    width: 70px;
  }

  .logo {
    font-size: 18px;
  }

  .logo .logo-mark {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
}