:root {
  --primary: #1a1a2e;
  --accent: #e94560;
  --accent2: #0f3460;
  --text: #2c2c3a;
  --light: #f5f6fa;
  --border: #e0e2ec;
  --bg: #ffffff;
  --card-bg: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.45);
  --shadow-sm: 0 2px 10px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 8px 28px rgba(26, 26, 46, 0.1);
  --shadow-lg: 0 16px 48px rgba(26, 26, 46, 0.16);
  --gradient-banner: linear-gradient(135deg, #1a1a2e 0%, #16213e 42%, #0f3460 100%);
  --gradient-accent: linear-gradient(135deg, #e94560 0%, #c9304a 100%);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

body.dark {
  --primary: #0d0d1a;
  --text: #d8d8e0;
  --light: #16162a;
  --border: #2c2c44;
  --bg: #12121f;
  --card-bg: #1a1a2e;
  --glass-bg: rgba(26, 26, 46, 0.72);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
  --gradient-banner: linear-gradient(135deg, #0d0d1a 0%, #1a1a2e 45%, #0f3460 100%);
}

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

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

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

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

body.dark a {
  color: #7fb0e0;
}

a:hover {
  color: var(--accent);
}

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

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

/* ===== Header ===== */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(26, 26, 46, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.18);
  transition: background 0.4s var(--ease);
}

body.dark header.site-header {
  background: rgba(13, 13, 26, 0.85);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1180px;
  margin: 0 auto;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  letter-spacing: 0.5px;
}

.brand svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease);
}

.brand:hover svg {
  transform: rotate(-8deg) scale(1.06);
}

nav.main-nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
  flex-wrap: wrap;
}

nav.main-nav a {
  color: #e8e8f0;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
  display: inline-block;
}

nav.main-nav a:hover {
  background: var(--gradient-accent);
  color: #fff;
  transform: translateY(-2px);
}

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

.search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 4px 6px 4px 14px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.search-box:focus-within {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.18);
}

.search-box input {
  background: transparent;
  border: none;
  color: #fff;
  outline: none;
  width: 130px;
  font-size: 13px;
  font-family: inherit;
}

.search-box input::placeholder {
  color: #b8b8cc;
}

.search-box button {
  background: var(--gradient-accent);
  border: none;
  color: #fff;
  border-radius: 18px;
  padding: 5px 14px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.search-box button:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 14px rgba(233, 69, 96, 0.4);
}

.icon-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease), transform 0.3s var(--ease);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: rotate(20deg);
}

.menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  align-items: center;
  justify-content: center;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  background: var(--light);
  padding: 10px 0;
  font-size: 13px;
  color: #888;
  transition: background 0.4s var(--ease);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.breadcrumb li::after {
  content: "›";
  margin-left: 6px;
  color: #aaa;
}

.breadcrumb li:last-child::after {
  content: "";
}

/* ===== Banner ===== */
.banner {
  position: relative;
  overflow: hidden;
  background: var(--gradient-banner);
  color: #fff;
  min-height: 360px;
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(233, 69, 96, 0.28), transparent 42%),
    radial-gradient(circle at 82% 78%, rgba(15, 52, 96, 0.55), transparent 48%);
  pointer-events: none;
}

.slides {
  position: relative;
  min-height: 360px;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
  display: flex;
  align-items: center;
  padding: 50px 20px;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.slide-content {
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.slide-text {
  flex: 1;
  min-width: 280px;
}

.slide-text h1 {
  font-size: 32px;
  line-height: 1.4;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  animation: fadeUp 0.7s var(--ease) both;
}

.slide-text h1 .kw {
  color: var(--accent);
  background: linear-gradient(120deg, #ff6b81, #e94560);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slide-text p {
  font-size: 16px;
  color: #d0d0e0;
  margin-bottom: 20px;
  max-width: 560px;
  animation: fadeUp 0.7s 0.1s var(--ease) both;
}

.slide-text .btn {
  animation: fadeUp 0.7s 0.2s var(--ease) both;
}

.slide-illustration {
  flex: 0 0 320px;
  animation: floatY 5s ease-in-out infinite;
}

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

@keyframes floatY {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background: var(--gradient-accent);
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-family: inherit;
  box-shadow: 0 6px 18px rgba(233, 69, 96, 0.32);
}

.btn:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(233, 69, 96, 0.45);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.75);
  color: #fff;
  box-shadow: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.btn-outline:hover {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 10px 26px rgba(255, 255, 255, 0.22);
}

.banner-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.banner-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.3s var(--ease), width 0.3s var(--ease);
}

.banner-dots span.active {
  background: var(--accent);
  width: 26px;
  border-radius: 6px;
}

/* ===== Sections ===== */
section {
  padding: 56px 0;
  transition: background 0.4s var(--ease);
}

section:nth-child(even) {
  background: var(--light);
}

.section-title {
  font-size: 26px;
  text-align: center;
  margin-bottom: 12px;
  color: var(--primary);
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 14px;
}

body.dark .section-title {
  color: #fff;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 56px;
  height: 3px;
  border-radius: 3px;
  background: var(--gradient-accent);
}

.section-sub {
  text-align: center;
  color: #888;
  margin-bottom: 36px;
  font-size: 15px;
}

body.dark .section-sub {
  color: #9a9ab0;
}

h2 {
  scroll-margin-top: 80px;
}

h3 {
  font-size: 19px;
  margin: 24px 0 12px;
  color: var(--accent2);
}

body.dark h3 {
  color: #7fb0e0;
}

h4 {
  font-size: 16px;
  margin: 16px 0 8px;
  color: var(--primary);
}

body.dark h4 {
  color: #e0e0f0;
}

p {
  margin-bottom: 14px;
}

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

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

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

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

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.06), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: rgba(233, 69, 96, 0.35);
}

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

.card svg {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  transition: transform 0.35s var(--ease);
}

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

.card h3 {
  margin-top: 0;
  font-size: 17px;
}

.card p {
  font-size: 14px;
  color: #666;
  margin-bottom: 0;
}

body.dark .card p {
  color: #a0a0b8;
}

/* ===== Stats ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-num {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
}

.stat-label {
  font-size: 14px;
  color: #888;
}

/* ===== Article ===== */
.article-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.article-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.article-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(233, 69, 96, 0.3);
}

.article-item h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.article-meta {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}

.article-item p {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

body.dark .article-item p {
  color: #a0a0b8;
}

.read-more {
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  transition: transform 0.25s var(--ease);
}

.read-more:hover {
  transform: translateX(4px);
}

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

.faq-item:hover {
  border-color: rgba(233, 69, 96, 0.3);
}

.faq-item.open {
  box-shadow: var(--shadow-md);
  border-color: rgba(233, 69, 96, 0.4);
}

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

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

.faq-q::after {
  content: "+";
  font-size: 20px;
  color: var(--accent);
  transition: transform 0.35s var(--ease);
  flex-shrink: 0;
  line-height: 1;
}

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

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

.faq-item.open .faq-a {
  max-height: 600px;
  padding: 0 20px 16px;
}

.faq-a p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

body.dark .faq-a p {
  color: #a0a0b8;
}

/* ===== Howto ===== */
.howto-step {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.howto-step:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(233, 69, 96, 0.35);
}

.step-body h4 {
  margin-top: 0;
}

.step-body p {
  font-size: 14px;
  color: #666;
  margin-bottom: 0;
}

body.dark .step-body p {
  color: #a0a0b8;
}

/* ===== Case ===== */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.case-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.case-card .case-img {
  height: 150px;
  background: linear-gradient(135deg, #e94560, #0f3460);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.case-card .case-img svg {
  width: 100%;
  height: 100%;
  transition: transform 0.5s var(--ease);
}

.case-card:hover .case-img svg {
  transform: scale(1.06);
}

.case-card .case-body {
  padding: 16px;
}

.case-card h3 {
  font-size: 15px;
  margin: 0 0 8px;
}

.case-card p {
  font-size: 13px;
  color: #666;
  margin: 0;
}

body.dark .case-card p {
  color: #a0a0b8;
}

/* ===== Testimonial ===== */
.testimonial {
  background: var(--card-bg);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 16px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.testimonial:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.testimonial p {
  font-style: italic;
  color: #555;
  margin-bottom: 10px;
}

body.dark .testimonial p {
  color: #b0b0c8;
}

.testimonial .author {
  font-size: 13px;
  color: #999;
  font-style: normal;
}

/* ===== News ===== */
.news-list {
  list-style: none;
}

.news-list li {
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  transition: padding-left 0.3s var(--ease);
}

.news-list li:hover {
  padding-left: 8px;
}

.news-list li a {
  font-size: 15px;
}

.news-list .date {
  font-size: 13px;
  color: #999;
  flex-shrink: 0;
}

/* ===== Anchor Nav ===== */
.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}

.anchor-nav a {
  font-size: 13px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  background: var(--card-bg);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.anchor-nav a:hover {
  background: var(--gradient-accent);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}

body.dark .anchor-nav a {
  color: #d8d8e0;
}

/* ===== Info Table ===== */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.info-table th,
.info-table td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}

.info-table th {
  background: var(--light);
  font-weight: 600;
  width: 160px;
}

.info-table tr {
  transition: background 0.25s var(--ease);
}

.info-table tr:hover td {
  background: rgba(233, 69, 96, 0.05);
}

/* ===== Footer ===== */
footer.site-footer {
  background: var(--primary);
  color: #c8c8d8;
  padding: 48px 0 24px;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

footer.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
}

footer.site-footer a {
  color: #c8c8d8;
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

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

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

.footer-grid h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 14px;
}

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

.footer-grid li {
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #9090a8;
}

/* ===== Back Top ===== */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(233, 69, 96, 0.45);
  z-index: 999;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.back-top.show {
  display: flex;
  animation: fadeUp 0.4s var(--ease);
}

.back-top:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 12px 30px rgba(233, 69, 96, 0.6);
}

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

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

/* ===== Glass Utility ===== */
.glass {
  background: var(--glass-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid var(--glass-border);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--light);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #e94560, #0f3460);
  border-radius: 6px;
  border: 2px solid var(--light);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ===== Selection ===== */
::selection {
  background: rgba(233, 69, 96, 0.28);
  color: inherit;
}

/* ===== Focus ===== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid-3,
  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .slide-text h1 {
    font-size: 28px;
  }

  .slide-illustration {
    flex: 0 0 260px;
  }
}

@media (max-width: 640px) {
  nav.main-nav {
    display: none;
    width: 100%;
    order: 3;
  }

  nav.main-nav.open {
    display: block;
    animation: fadeUp 0.3s var(--ease);
  }

  nav.main-nav ul {
    flex-direction: column;
    gap: 2px;
  }

  nav.main-nav a {
    display: block;
    padding: 10px 14px;
  }

  .menu-toggle {
    display: flex;
  }

  .grid-3,
  .grid-2,
  .case-grid,
  .article-list {
    grid-template-columns: 1fr;
  }

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

  .slide-text h1 {
    font-size: 24px;
  }

  .slide-illustration {
    flex: 0 0 100%;
    max-width: 260px;
    margin: 0 auto;
  }

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

  .section-title {
    font-size: 22px;
  }

  section {
    padding: 40px 0;
  }

  .header-inner {
    padding: 10px 16px;
  }

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

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

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

  .info-table th {
    width: 110px;
  }

  .howto-step {
    padding: 14px;
  }
}

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

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

/* ===== Print ===== */
@media print {
  header.site-header,
  .banner,
  .back-top,
  footer.site-footer,
  .anchor-nav {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }

  section {
    padding: 20px 0;
    break-inside: avoid;
  }
}