:root {
  --bg: #f7f8fc;
  --bg-alt: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --border: rgba(26, 26, 46, 0.08);
  --text: #1f2233;
  --text-soft: #565a6e;
  --text-mute: #83879b;
  --primary: #e94560;
  --primary-dark: #c9304a;
  --primary-soft: rgba(233, 69, 96, 0.1);
  --accent: #5b6cff;
  --accent-2: #22c1a4;
  --navy: #1a1a2e;
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 8px 28px rgba(26, 26, 46, 0.1);
  --shadow-lg: 0 18px 48px rgba(26, 26, 46, 0.16);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --grad-hero: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 38%, #7a1f45 72%, #e94560 100%);
  --grad-primary: linear-gradient(135deg, #e94560 0%, #ff7a59 100%);
  --grad-accent: linear-gradient(135deg, #5b6cff 0%, #22c1a4 100%);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --maxw: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1017;
    --bg-alt: #14161f;
    --surface: rgba(30, 33, 48, 0.62);
    --surface-solid: #1b1e2b;
    --border: rgba(255, 255, 255, 0.09);
    --text: #eef0f7;
    --text-soft: #b6bacb;
    --text-mute: #8b90a4;
    --primary: #ff5c74;
    --primary-dark: #e94560;
    --primary-soft: rgba(255, 92, 116, 0.14);
    --accent: #7d8cff;
    --accent-2: #2fd6b6;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.6);
    --grad-hero: linear-gradient(135deg, #0b0b14 0%, #221437 40%, #5c1734 74%, #b83350 100%);
  }
}

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

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

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(233, 69, 96, 0.08), transparent 42%),
    radial-gradient(circle at 88% 22%, rgba(91, 108, 255, 0.08), transparent 40%),
    radial-gradient(circle at 50% 96%, rgba(34, 193, 164, 0.07), transparent 46%);
  background-attachment: fixed;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

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

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

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

h1, h2, h3, h4 {
  line-height: 1.35;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h2 { font-size: clamp(1.45rem, 2.8vw, 2.05rem); }
h3 { font-size: clamp(1.12rem, 1.9vw, 1.35rem); }

p {
  margin: 0 0 1em;
  color: var(--text-soft);
}

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
  color: var(--text-soft);
}

li {
  margin-bottom: 0.45em;
}

strong {
  color: var(--text);
  font-weight: 600;
}

::selection {
  background: var(--primary);
  color: #fff;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 999;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: top 0.3s var(--ease);
}

.skip-link:focus {
  top: 16px;
  color: #fff;
}

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

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

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-logo {
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(233, 69, 96, 0.28);
  transition: transform 0.4s var(--ease);
}

.brand:hover .brand-logo {
  transform: rotate(-6deg) scale(1.05);
}

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

.brand-name {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.04em;
}

.brand-slogan {
  font-size: 0.72rem;
  color: var(--text-mute);
  letter-spacing: 0.06em;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav li {
  margin: 0;
}

.main-nav a {
  display: inline-block;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  position: relative;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-primary);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--primary);
  background: var(--primary-soft);
  transform: translateY(-1px);
}

.main-nav a:hover::after {
  width: 46%;
}

.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-solid);
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.mobile-menu-btn:hover {
  background: var(--primary-soft);
  color: var(--primary);
  transform: scale(1.04);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-hero);
  background-size: 200% 200%;
  animation: heroShift 16s ease infinite;
  color: #fff;
  padding: clamp(56px, 9vw, 104px) 24px clamp(48px, 7vw, 88px);
  isolation: isolate;
}

@keyframes heroShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  width: 420px;
  height: 420px;
  top: -140px;
  right: -80px;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.85), transparent 68%);
  animation: floatBlob 12s ease-in-out infinite;
}

.hero::after {
  width: 360px;
  height: 360px;
  bottom: -160px;
  left: -60px;
  background: radial-gradient(circle, rgba(91, 108, 255, 0.8), transparent 68%);
  animation: floatBlob 14s ease-in-out infinite reverse;
}

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -18px) scale(1.08); }
}

.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  animation: fadeUp 0.9s var(--ease) both;
}

.hero h1 {
  color: #fff;
  max-width: 900px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}

.hero-lead {
  max-width: 820px;
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 1.6em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 2.6em;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  letter-spacing: 0.02em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 10px 26px rgba(233, 69, 96, 0.42);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 34px rgba(233, 69, 96, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat {
  padding: 18px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  text-align: center;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.stat:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
}

.stat-num {
  display: block;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.04em;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px 0;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 0.84rem;
  color: var(--text-mute);
}

.breadcrumb li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--text-mute);
  opacity: 0.6;
}

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

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

.breadcrumb [aria-current="page"] {
  color: var(--primary);
  font-weight: 600;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(48px, 7vw, 88px) 24px;
  position: relative;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.section h2 {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 1.2em;
}

.section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 62px;
  height: 4px;
  border-radius: 4px;
  background: var(--grad-primary);
  box-shadow: 0 4px 14px rgba(233, 69, 96, 0.4);
}

.section h3 {
  margin-top: 1.6em;
  color: var(--text);
}

.section h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--grad-accent);
  vertical-align: middle;
  transform: translateY(-2px);
}

/* ---------- Cards (glass) ---------- */
.section-inner > article,
.article-card,
.faq-list details,
.contact-list,
.sitemap-list,
.friend-links,
blockquote {
  border-radius: var(--radius);
}

.section-inner > article {
  padding: 22px 26px;
  margin-bottom: 18px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

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

.section-inner > article h3 {
  margin-top: 0;
}

.meta {
  font-size: 0.8rem;
  color: var(--text-mute);
  letter-spacing: 0.02em;
}

/* ---------- Article cards ---------- */
.article-card {
  position: relative;
  padding: 26px 28px;
  margin-bottom: 20px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.article-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--grad-primary);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}

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

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

.article-card h3 {
  margin-top: 0;
  color: var(--text);
  transition: color 0.3s var(--ease);
}

.article-card:hover h3 {
  color: var(--primary);
}

.article-card h3::before {
  display: none;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.read-more::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

.read-more:hover {
  background: var(--grad-primary);
  color: #fff;
  transform: translateX(3px);
  box-shadow: 0 8px 20px rgba(233, 69, 96, 0.35);
}

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

.article-full {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  border-left: 3px solid var(--primary);
  font-size: 0.94rem;
}

.article-full p:last-child {
  margin-bottom: 0;
}

/* ---------- Blockquote ---------- */
blockquote {
  position: relative;
  margin: 0 0 16px;
  padding: 20px 24px 20px 56px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

blockquote::before {
  content: "\201C";
  position: absolute;
  left: 16px;
  top: 4px;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.35;
  font-family: Georgia, serif;
}

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

blockquote p {
  margin: 0;
  color: var(--text-soft);
  font-style: italic;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  background: var(--surface);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.faq-list details:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(233, 69, 96, 0.28);
}

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

.faq-list summary {
  position: relative;
  padding: 16px 52px 16px 22px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 700;
  transform: translateY(-50%);
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease), color 0.35s var(--ease);
}

.faq-list details[open] summary::after {
  content: "−";
  background: var(--grad-primary);
  color: #fff;
  transform: translateY(-50%) rotate(180deg);
}

.faq-list summary:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.faq-list details p {
  margin: 0;
  padding: 0 22px 20px;
  font-size: 0.94rem;
  animation: fadeUp 0.4s var(--ease) both;
}

/* ---------- Contact & lists ---------- */
.contact-list,
.sitemap-list,
.friend-links {
  list-style: none;
  margin: 0 0 1.4em;
  padding: 22px 26px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.contact-list li,
.sitemap-list li,
.friend-links li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  transition: padding-left 0.3s var(--ease), color 0.3s var(--ease);
}

.contact-list li:last-child,
.sitemap-list li:last-child,
.friend-links li:last-child {
  border-bottom: none;
}

.contact-list li:hover,
.sitemap-list li:hover,
.friend-links li:hover {
  padding-left: 6px;
}

.sitemap-list,
.friend-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
}

.sitemap-list a,
.friend-links a {
  position: relative;
  color: var(--text-soft);
  font-weight: 500;
}

.sitemap-list a::before,
.friend-links a::before {
  content: "▸";
  margin-right: 8px;
  color: var(--primary);
  opacity: 0.7;
}

.sitemap-list a:hover,
.friend-links a:hover {
  color: var(--primary);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  padding: 56px 24px 0;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.35), transparent 68%);
  filter: blur(50px);
  pointer-events: none;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 32px;
  position: relative;
}

.footer-col h3 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 1em;
  letter-spacing: 0.04em;
}

.footer-col h3::before {
  display: none;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.9rem;
}

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

.footer-col li {
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.66);
}

.footer-col a {
  color: rgba(255, 255, 255, 0.72);
  position: relative;
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.footer-col a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-bottom {
  max-width: var(--maxw);
  margin: 40px auto 0;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  position: relative;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(233, 69, 96, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

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

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

.back-to-top:active {
  transform: scale(0.96);
}

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

.section-inner > * {
  animation: fadeUp 0.7s var(--ease) both;
}

.section-inner > *:nth-child(2) { animation-delay: 0.06s; }
.section-inner > *:nth-child(3) { animation-delay: 0.12s; }
.section-inner > *:nth-child(4) { animation-delay: 0.18s; }
.section-inner > *:nth-child(5) { animation-delay: 0.24s; }
.section-inner > *:nth-child(6) { animation-delay: 0.3s; }

/* ---------- Focus states ---------- */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface-solid);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
  }

  .main-nav.is-open {
    max-height: 480px;
    overflow-y: auto;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 16px 16px;
  }

  .main-nav a {
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
  }

  .main-nav a::after {
    display: none;
  }

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

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

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

  .brand-slogan {
    display: none;
  }

  .hero {
    padding: 48px 16px 42px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .section {
    padding: 44px 16px;
  }

  .breadcrumb {
    padding: 12px 16px 0;
  }

  .article-card,
  .section-inner > article {
    padding: 20px 18px;
  }

  blockquote {
    padding: 18px 18px 18px 48px;
  }

  .sitemap-list,
  .friend-links {
    grid-template-columns: 1fr;
  }

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

  .site-footer {
    padding: 44px 16px 0;
  }

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

@media (max-width: 380px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
}

/* ---------- Reduced motion ---------- */
@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;
  }
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .hero-actions,
  .back-to-top,
  .mobile-menu-btn,
  .site-footer {
    display: none !important;
  }

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

  .hero {
    background: none;
    color: #000;
  }

  .hero h1,
  .hero-lead,
  .stat-num,
  .stat-label {
    color: #000;
  }
}