:root {
  --brand-navy: #0b1f3a;
  --brand-blue: #2f9bff;
  --brand-blue-dark: #1a7be0;
  --brand-amber: #ffb020;
  --brand-amber-dark: #e69500;
  --bg: #f4f7fc;
  --bg-alt: #ffffff;
  --bg-elevated: rgba(255, 255, 255, 0.72);
  --text: #16233a;
  --text-soft: #4a5a75;
  --text-muted: #7b8aa3;
  --border: rgba(11, 31, 58, 0.1);
  --border-strong: rgba(11, 31, 58, 0.18);
  --shadow-sm: 0 2px 8px rgba(11, 31, 58, 0.06);
  --shadow-md: 0 8px 28px rgba(11, 31, 58, 0.1);
  --shadow-lg: 0 20px 50px rgba(11, 31, 58, 0.16);
  --grad-hero: linear-gradient(135deg, #0b1f3a 0%, #123a6b 42%, #2f9bff 100%);
  --grad-accent: linear-gradient(120deg, #2f9bff 0%, #6cd0ff 100%);
  --grad-amber: linear-gradient(120deg, #ffb020 0%, #ffd166 100%);
  --glass: rgba(255, 255, 255, 0.16);
  --glass-border: rgba(255, 255, 255, 0.28);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --maxw: 1240px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --bg: #071324;
  --bg-alt: #0d1e36;
  --bg-elevated: rgba(16, 34, 60, 0.72);
  --text: #e8eefb;
  --text-soft: #b3c2da;
  --text-muted: #8b9cb8;
  --border: rgba(120, 165, 230, 0.16);
  --border-strong: rgba(120, 165, 230, 0.3);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
  --grad-hero: linear-gradient(135deg, #04101f 0%, #0d2c52 45%, #1a6fd4 100%);
  --glass: rgba(18, 40, 72, 0.5);
  --glass-border: rgba(120, 165, 230, 0.24);
}

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

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "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(47, 155, 255, 0.1), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(255, 176, 32, 0.08), transparent 38%);
  background-attachment: fixed;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

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

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

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

h1,
h2,
h3,
h4 {
  line-height: 1.35;
  color: var(--text);
  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.4rem, 2.6vw, 2rem);
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: 6px;
  background: var(--grad-accent);
}

h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  margin-top: 1.6em;
}

h4 {
  font-size: 1.05rem;
  color: var(--text-soft);
}

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

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

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

li {
  margin-bottom: 0.45em;
}

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

/* ============ 顶部信息条 ============ */
.topbar {
  background: var(--brand-navy);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.topbar-slogan {
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
}

.topbar-contact {
  color: rgba(255, 255, 255, 0.66);
}

/* ============ 吸顶导航 ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-elevated);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}

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

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

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

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(47, 155, 255, 0.35);
  transition: transform 0.5s var(--ease);
}

.brand:hover .brand-logo {
  transform: rotate(-12deg) scale(1.06);
}

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

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

.brand-sub {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
}

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

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

.main-nav li {
  margin: 0;
}

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

.main-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.main-nav a:hover {
  color: var(--brand-blue);
  background: rgba(47, 155, 255, 0.08);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

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

.site-search {
  display: flex;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-search:focus-within {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(47, 155, 255, 0.18);
}

.site-search input {
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 0.85rem;
  padding: 8px 14px;
  width: 180px;
  font-family: inherit;
}

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

.site-search button {
  border: none;
  cursor: pointer;
  background: var(--grad-accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  font-family: inherit;
  transition: filter 0.25s var(--ease);
}

.site-search button:hover {
  filter: brightness(1.08);
}

.theme-toggle,
.menu-toggle {
  border: 1px solid var(--border-strong);
  background: var(--bg-alt);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: all 0.25s var(--ease);
}

.theme-toggle:hover,
.menu-toggle:hover {
  color: var(--brand-blue);
  border-color: var(--brand-blue);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
}

/* ============ 面包屑 ============ */
.breadcrumb {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px 0;
  font-size: 0.82rem;
}

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

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

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

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

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

/* ============ 主内容 ============ */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px 40px;
}

/* ============ Banner 轮播 ============ */
.hero {
  margin: 20px 0 32px;
}

.carousel {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--grad-hero);
  padding: clamp(28px, 5vw, 64px);
  padding-bottom: clamp(64px, 7vw, 88px);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  color: #fff;
}

.carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 176, 32, 0.28), transparent 42%),
    radial-gradient(circle at 12% 88%, rgba(108, 208, 255, 0.26), transparent 46%);
  pointer-events: none;
}

.carousel::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.slide {
  position: relative;
  z-index: 2;
  display: none;
  animation: slideIn 0.6s var(--ease);
}

.slide.is-active {
  display: block;
}

.slide h1,
.slide h2 {
  color: #fff;
  max-width: 820px;
  padding-left: 0;
}

.slide h2::before {
  display: none;
}

.slide h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.slide p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 760px;
  font-size: clamp(0.92rem, 1.4vw, 1.02rem);
}

.slide p strong {
  color: var(--brand-amber);
}

.hero-lead {
  line-height: 1.85;
}

.hero-cta {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--grad-amber);
  color: var(--brand-navy);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 10px 26px rgba(255, 176, 32, 0.35);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.hero-cta:hover {
  color: var(--brand-navy);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 34px rgba(255, 176, 32, 0.5);
}

.carousel-dots {
  position: absolute;
  left: clamp(28px, 5vw, 64px);
  bottom: 26px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.carousel-dots button {
  width: 34px;
  height: 6px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.32);
  color: transparent;
  font-size: 0;
  padding: 0;
  transition: all 0.35s var(--ease);
}

.carousel-dots button[aria-selected="true"] {
  width: 52px;
  background: var(--grad-amber);
}

.carousel-dots button:hover {
  background: rgba(255, 255, 255, 0.6);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: -40px;
  padding: 0 clamp(12px, 3vw, 36px);
  position: relative;
  z-index: 4;
}

.stat {
  background: var(--bg-elevated);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

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

.stat-num {
  display: block;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 800;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============ 锚点导航 ============ */
.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 16px 20px;
  margin-bottom: 32px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
}

.anchor-nav strong {
  color: var(--text);
  margin-right: 4px;
}

.anchor-nav a {
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(47, 155, 255, 0.08);
  transition: all 0.25s var(--ease);
}

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

/* ============ 区块通用 ============ */
.section {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 48px);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.section:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

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

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ 信息列表 ============ */
.info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4em;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px 20px;
}

.info-list li {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 0.9rem;
  margin: 0;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.info-list li:hover {
  border-color: var(--brand-blue);
  transform: translateX(4px);
}

.info-list strong {
  color: var(--brand-blue);
}

/* ============ 新闻 ============ */
.news-item {
  border-left: 3px solid transparent;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}

.news-item:hover {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.news-item h3 {
  margin-top: 0;
  font-size: 1.08rem;
}

.news-item h3 a {
  color: var(--text);
}

.news-item h3 a:hover {
  color: var(--brand-blue);
}

.meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.6em;
}

/* ============ 文章卡片 ============ */
.article-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s var(--ease);
}

.article-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s var(--ease);
}

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

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

.article-card h3 {
  margin-top: 0;
  font-size: 1.06rem;
}

.article-card h3 a {
  color: var(--text);
}

.article-card h3 a:hover {
  color: var(--brand-blue);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-blue);
}

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

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

/* ============ 客户评价 ============ */
blockquote {
  margin: 0 0 16px;
  padding: 18px 22px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-amber);
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease);
}

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

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

.review-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ============ FAQ ============ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-list details {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px 20px;
  transition: all 0.3s var(--ease);
}

.faq-list details[open] {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-md);
  background: var(--bg-alt);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 0;
  font-weight: 600;
  color: var(--text);
  position: relative;
  padding-right: 32px;
  transition: color 0.25s var(--ease);
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--brand-blue);
  transition: transform 0.3s var(--ease);
}

.faq-list details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}

.faq-list summary:hover {
  color: var(--brand-blue);
}

.faq-list details p {
  margin: 0 0 16px;
  font-size: 0.92rem;
  padding-top: 2px;
  border-top: 1px dashed var(--border);
  padding-top: 14px;
}

/* ============ 网站地图 & 友链 ============ */
.sitemap-list,
.friend-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sitemap-list li,
.friend-links li {
  margin: 0;
}

.sitemap-list a,
.friend-links a {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-soft);
  transition: all 0.25s var(--ease);
}

.sitemap-list a:hover,
.friend-links a:hover {
  color: #fff;
  background: var(--grad-accent);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(47, 155, 255, 0.3);
}

/* ============ 页脚 ============ */
.site-footer {
  background: var(--brand-navy);
  color: rgba(255, 255, 255, 0.72);
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}

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

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 24px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 36px;
}

.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 14px;
  position: relative;
  padding-bottom: 10px;
}

.site-footer h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-amber);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.85rem;
  margin: 0 0 8px;
  line-height: 1.7;
}

.footer-brand strong {
  display: block;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: 0.06em;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.25s var(--ease);
}

.site-footer a:hover {
  color: var(--brand-amber);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 24px;
  text-align: center;
  max-width: var(--maxw);
  margin: 0 auto;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.78rem;
  margin: 0 0 4px;
}

/* ============ 返回顶部 ============ */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 90;
  border: none;
  cursor: pointer;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--grad-accent);
  box-shadow: 0 10px 26px rgba(47, 155, 255, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.35s var(--ease);
}

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

.back-to-top:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 16px 34px rgba(47, 155, 255, 0.55);
}

/* ============ 动画关键帧 ============ */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ============ 响应式 ============ */
@media (max-width: 1080px) {
  .main-nav a {
    padding: 8px 9px;
    font-size: 0.85rem;
  }

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

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

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

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 20px;
    gap: 12px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .main-nav {
    order: 5;
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease);
  }

  .main-nav.is-open {
    max-height: 640px;
  }

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

  .main-nav a {
    padding: 11px 14px;
    font-size: 0.92rem;
  }

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

  .header-tools {
    margin-left: auto;
  }

  .site-search {
    display: none;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 20px;
    padding: 0;
  }

  .carousel {
    padding-bottom: 72px;
  }
}

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

  .topbar-inner {
    justify-content: center;
    text-align: center;
    padding: 8px 16px;
  }

  .topbar-contact {
    display: none;
  }

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

  .brand-sub {
    display: none;
  }

  .brand-name {
    font-size: 1rem;
  }

  .theme-toggle,
  .menu-toggle {
    padding: 7px 11px;
    font-size: 0.76rem;
  }

  .breadcrumb,
  main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .carousel {
    border-radius: var(--radius-lg);
    padding: 26px 20px 64px;
  }

  .carousel-dots {
    left: 20px;
    bottom: 20px;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stat {
    padding: 14px 10px;
  }

  .anchor-nav {
    padding: 12px 14px;
    font-size: 0.8rem;
  }

  .section {
    border-radius: var(--radius-md);
    padding: 22px 18px;
  }

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 4px;
  }

  .info-list {
    grid-template-columns: 1fr;
  }

  .news-item,
  .article-card,
  blockquote {
    padding: 16px 16px;
  }

  .faq-list details {
    padding: 4px 14px;
  }

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

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

  .back-to-top {
    right: 14px;
    bottom: 16px;
    padding: 10px 14px;
    font-size: 0.76rem;
  }
}

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

  .header-tools {
    gap: 6px;
  }
}

/* ============ 无障碍 & 减少动效 ============ */
:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

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

@media print {
  .topbar,
  .site-header,
  .anchor-nav,
  .back-to-top,
  .carousel-dots,
  .hero-cta {
    display: none !important;
  }

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

  .section {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}