:root {
  --bg: #f6f7fb;
  --bg-alt: #eef0f7;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --surface-glass-strong: rgba(255, 255, 255, 0.88);
  --text: #171727;
  --text-secondary: #52526b;
  --text-muted: #8a8aa3;
  --accent: #e94560;
  --accent-dark: #c7354f;
  --accent-soft: rgba(233, 69, 96, 0.12);
  --accent-glow: rgba(233, 69, 96, 0.35);
  --violet: #6c5ce7;
  --cyan: #00b8d9;
  --gold: #f2a33c;
  --border: rgba(23, 23, 39, 0.1);
  --border-strong: rgba(23, 23, 39, 0.16);
  --shadow-sm: 0 2px 10px rgba(23, 23, 39, 0.06);
  --shadow: 0 8px 30px rgba(23, 23, 39, 0.1);
  --shadow-lg: 0 18px 50px rgba(23, 23, 39, 0.16);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.dark {
  --bg: #0d0d18;
  --bg-alt: #12121f;
  --surface: #181828;
  --surface-glass: rgba(24, 24, 40, 0.72);
  --surface-glass-strong: rgba(24, 24, 40, 0.9);
  --text: #f2f2f8;
  --text-secondary: #b4b4c8;
  --text-muted: #7c7c96;
  --accent: #ff5c77;
  --accent-dark: #e94560;
  --accent-soft: rgba(255, 92, 119, 0.16);
  --accent-glow: rgba(255, 92, 119, 0.4);
  --violet: #8b7cf6;
  --cyan: #22d3ee;
  --gold: #fbbf24;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.55);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(108, 92, 231, 0.1), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(233, 69, 96, 0.1), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(0, 184, 217, 0.07), transparent 55%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

body.dark {
  background-image:
    radial-gradient(circle at 12% 8%, rgba(139, 124, 246, 0.14), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(255, 92, 119, 0.12), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(34, 211, 238, 0.08), transparent 55%);
}

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

a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.header-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
}

.logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  transition: transform 0.3s var(--ease-bounce), filter 0.3s var(--ease);
}

.logo:hover {
  transform: translateY(-2px) scale(1.03);
  filter: drop-shadow(0 6px 14px var(--accent-glow));
}

.logo svg {
  display: block;
}

.main-nav {
  flex: 1;
  min-width: 0;
}

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

.main-nav a {
  display: block;
  padding: 7px 13px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

.main-nav a:hover {
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
  transform: translateY(-1px);
}

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

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

.search-form input {
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  font-size: 14px;
  width: 200px;
  background: var(--surface-glass-strong);
  color: var(--text);
  outline: none;
  font-family: inherit;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), width 0.35s var(--ease), background 0.3s var(--ease);
}

.search-form input::placeholder {
  color: var(--text-muted);
}

.search-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  width: 230px;
}

.search-form button {
  padding: 8px 18px;
  border: none;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent), var(--violet));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

.search-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--accent-glow);
  filter: brightness(1.06);
}

.search-form button:active {
  transform: translateY(0) scale(0.97);
}

.menu-toggle {
  display: none;
  background: var(--surface-glass-strong);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 20px;
  line-height: 1;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--text);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.menu-toggle:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: scale(1.05);
}

/* ============ Main ============ */
main {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ============ Hero ============ */
#hero {
  padding: 56px 0 40px;
  position: relative;
}

#hero::before {
  content: "";
  position: absolute;
  top: -80px;
  left: -10%;
  width: 60%;
  height: 420px;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

.hero-inner {
  max-width: 900px;
  position: relative;
}

h1 {
  font-size: clamp(1.7rem, 4.4vw, 2.7rem);
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  color: var(--text);
  background: linear-gradient(120deg, var(--text) 0%, var(--text) 55%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.dark h1 {
  background: linear-gradient(120deg, #ffffff 0%, #ffffff 45%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.06rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 720px;
  line-height: 1.8;
}

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

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 15px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--violet) 100%);
  color: #fff;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--violet), var(--accent));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.35s var(--ease);
}

.btn-primary:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 14px 34px var(--accent-glow);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: var(--surface-glass-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.hero-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.08), rgba(108, 92, 231, 0.08));
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.hero-banner:hover {
  transform: translateY(-6px) scale(1.005);
  box-shadow: 0 26px 64px rgba(23, 23, 39, 0.22);
}

body.dark .hero-banner:hover {
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.6);
}

.hero-banner svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  margin: 8px 0 24px;
  padding: 10px 18px;
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  display: inline-block;
}

.breadcrumb ol {
  display: flex;
  gap: 8px;
  list-style: none;
  font-size: 13px;
  color: var(--text-muted);
  align-items: center;
  margin: 0;
  padding: 0;
}

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

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--text-muted);
  opacity: 0.6;
}

.breadcrumb a {
  color: var(--text-secondary);
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ============ Sections ============ */
section {
  margin-bottom: 56px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

h2 {
  font-size: clamp(1.35rem, 3.2vw, 1.8rem);
  font-weight: 800;
  margin-bottom: 24px;
  padding-bottom: 12px;
  position: relative;
  display: inline-block;
  letter-spacing: -0.015em;
  color: var(--text);
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--violet), var(--cyan));
  background-size: 200% 100%;
  animation: gradientShift 6s ease infinite;
}

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

h3 {
  font-size: 1.16rem;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--text);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}

h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  bottom: 0.35em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--accent), var(--violet));
}

h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 18px 0 8px;
  color: var(--text-secondary);
}

p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.85;
}

ul,
ol {
  margin: 0 0 18px 24px;
  color: var(--text-secondary);
  padding: 0;
}

li {
  margin-bottom: 8px;
  line-height: 1.75;
}

li::marker {
  color: var(--accent);
  font-weight: 600;
}

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

blockquote {
  border-left: 4px solid transparent;
  border-image: linear-gradient(180deg, var(--accent), var(--violet)) 1;
  padding: 18px 24px;
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0;
  color: var(--text-secondary);
  font-style: normal;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

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

blockquote p {
  margin-bottom: 0;
  font-size: 15px;
}

/* ============ Articles ============ */
article {
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}

article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--violet));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}

article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
  background: var(--surface-glass-strong);
}

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

article h3 {
  margin-top: 0;
  margin-bottom: 8px;
  padding-left: 0;
  font-size: 1.1rem;
}

article h3::before {
  display: none;
}

article h3 a {
  color: var(--text);
  transition: color 0.25s var(--ease);
}

article h3 a:hover {
  color: var(--accent);
  text-decoration: none;
}

article time {
  font-size: 13px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 3px 12px;
  background: var(--accent-soft);
  border-radius: var(--radius-full);
  font-weight: 500;
}

article time::before {
  content: "◷";
  font-size: 12px;
}

article > a:last-child {
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  transition: gap 0.25s var(--ease);
}

article > a:last-child::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}

article > a:last-child:hover {
  gap: 10px;
  text-decoration: none;
}

article > a:last-child:hover::after {
  transform: translateX(3px);
}

/* ============ FAQ ============ */
dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

dt {
  font-weight: 600;
  padding: 16px 20px;
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--text);
  position: relative;
  padding-right: 48px;
  user-select: none;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

dt:hover {
  border-color: var(--accent);
  background: var(--surface-glass-strong);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

dt::after {
  content: "▾";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 14px;
  transition: transform 0.35s var(--ease);
}

dt.open::after {
  transform: translateY(-50%) rotate(180deg);
}

dd {
  margin: 0;
  padding: 0 20px 18px;
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
  animation: fadeSlideIn 0.35s var(--ease);
}

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

/* ============ Contact ============ */
address {
  font-style: normal;
  margin-bottom: 20px;
  padding: 24px 28px;
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

address:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

address p {
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}

address p:last-child {
  margin-bottom: 0;
}

address a {
  font-weight: 600;
}

/* ============ Sitemap & Links ============ */
#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#sitemap li,
#links li {
  margin: 0;
}

#sitemap a,
#links a {
  display: inline-block;
  padding: 8px 18px;
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  background: linear-gradient(135deg, var(--accent), var(--violet));
  color: #fff;
  border-color: transparent;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--accent-glow);
}

/* ============ Footer ============ */
footer {
  background: linear-gradient(180deg, var(--bg-alt), var(--surface));
  color: var(--text-secondary);
  padding: 56px 24px 36px;
  font-size: 14px;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

body.dark footer {
  background: linear-gradient(180deg, #0a0a14, #12121f);
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--violet), var(--cyan));
  background-size: 200% 100%;
  animation: gradientShift 6s ease infinite;
}

.footer-inner {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 40px;
}

.footer-brand p {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}

footer nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

footer nav li {
  margin: 0;
}

footer nav a {
  color: var(--text-secondary);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

footer nav a::before {
  content: "›";
  color: var(--accent);
  font-weight: 700;
  transition: transform 0.25s var(--ease);
}

footer nav a:hover {
  color: var(--accent);
  text-decoration: none;
  transform: translateX(4px);
}

.footer-legal p {
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}

.footer-legal strong {
  color: var(--text-secondary);
}

.footer-legal a {
  color: var(--accent);
  font-weight: 500;
}

/* ============ Back to top ============ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 150;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px var(--accent-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.8);
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease), transform 0.35s var(--ease-bounce), box-shadow 0.35s var(--ease), filter 0.35s var(--ease);
  text-decoration: none;
}

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

.back-to-top:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 14px 34px var(--accent-glow);
  filter: brightness(1.08);
}

/* ============ Scroll animation ============ */
@media (prefers-reduced-motion: no-preference) {
  main > section {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    will-change: opacity, transform;
  }

  main > section.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@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;
  }
}

/* ============ Responsive: 1024px ============ */
@media (max-width: 1024px) {
  .header-inner {
    gap: 14px;
  }

  .main-nav a {
    padding: 6px 10px;
    font-size: 13px;
  }

  .search-form input {
    width: 150px;
  }

  .search-form input:focus {
    width: 170px;
  }

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

  .footer-legal {
    grid-column: 1 / -1;
  }
}

/* ============ Responsive: 900px ============ */
@media (max-width: 900px) {
  :root {
    --header-h: 62px;
  }

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

  .main-nav ul {
    display: none;
  }

  .main-nav.open ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface-glass-strong);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    gap: 4px;
    animation: menuDrop 0.3s var(--ease);
  }

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

  .main-nav.open a {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 15px;
  }

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

  .menu-toggle {
    display: block;
    margin-left: auto;
    order: 3;
  }

  .search-form {
    order: 2;
  }

  .search-form input {
    width: 130px;
  }

  .search-form input:focus {
    width: 150px;
  }

  main {
    padding: 0 16px 60px;
  }

  #hero {
    padding: 36px 0 28px;
  }

  section {
    margin-bottom: 44px;
  }

  article {
    padding: 20px;
  }

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

  .footer-legal {
    grid-column: auto;
  }
}

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

  .header-inner {
    gap: 10px;
    padding: 0 14px;
  }

  .search-form {
    display: none;
  }

  .menu-toggle {
    margin-left: auto;
  }

  h1 {
    font-size: 1.45rem;
    line-height: 1.32;
  }

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

  .hero-actions {
    gap: 10px;
    margin-bottom: 28px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 11px 22px;
    font-size: 14px;
    flex: 1;
    text-align: center;
    min-width: 140px;
  }

  h2 {
    font-size: 1.25rem;
    margin-bottom: 18px;
  }

  h3 {
    font-size: 1.05rem;
    margin: 22px 0 10px;
  }

  article {
    padding: 18px 16px;
    border-radius: var(--radius-sm);
  }

  article h3 {
    font-size: 1.02rem;
  }

  blockquote {
    padding: 14px 18px;
  }

  dt {
    padding: 14px 16px;
    padding-right: 42px;
    font-size: 15px;
  }

  dd {
    padding: 0 16px 16px;
    font-size: 14px;
  }

  address {
    padding: 18px 16px;
  }

  #sitemap a,
  #links a {
    padding: 7px 14px;
    font-size: 13px;
  }

  footer {
    padding: 40px 16px 28px;
  }

  .back-to-top {
    bottom: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
}

/* ============ Responsive: 380px ============ */
@media (max-width: 380px) {
  .logo svg {
    width: 100px;
    height: 30px;
  }

  h1 {
    font-size: 1.3rem;
  }

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

/* ============ Hover-capable devices ============ */
@media (hover: hover) and (pointer: fine) {
  .hero-banner:hover svg {
    transform: scale(1.01);
  }

  .hero-banner svg {
    transition: transform 0.6s var(--ease);
  }
}

/* ============ Print ============ */
@media print {
  #site-header,
  .back-to-top,
  .hero-actions,
  .search-form,
  .menu-toggle {
    display: none !important;
  }

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

  main > section {
    opacity: 1 !important;
    transform: none !important;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}