:root {
  --primary: #ff6b35;
  --primary-dark: #d94f1e;
  --primary-light: #ff8c5f;
  --primary-soft: #fff3e8;
  --accent: #7c3aed;
  --accent-light: #a78bfa;
  --bg: #fdfaf7;
  --bg-alt: #fff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --text: #2b2119;
  --text-secondary: #6b5d52;
  --text-muted: #9a8b7f;
  --border: rgba(255, 107, 53, 0.16);
  --border-strong: rgba(255, 107, 53, 0.32);
  --shadow-sm: 0 2px 8px rgba(43, 33, 25, 0.06);
  --shadow-md: 0 8px 24px rgba(43, 33, 25, 0.08);
  --shadow-lg: 0 16px 48px rgba(43, 33, 25, 0.12);
  --shadow-glow: 0 8px 32px rgba(255, 107, 53, 0.28);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14100d;
    --bg-alt: #1c1713;
    --surface: rgba(36, 29, 23, 0.72);
    --surface-solid: #241d17;
    --text: #f3ece5;
    --text-secondary: #c4b6a9;
    --text-muted: #8d8074;
    --border: rgba(255, 140, 95, 0.18);
    --border-strong: rgba(255, 140, 95, 0.36);
    --primary-soft: rgba(255, 107, 53, 0.12);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 8px 32px rgba(255, 107, 53, 0.35);
  }
}

*,
*::before,
*::after {
  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: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(
      circle at 12% 8%,
      rgba(255, 107, 53, 0.08),
      transparent 42%
    ),
    radial-gradient(circle at 88% 4%, rgba(124, 58, 237, 0.07), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(255, 140, 95, 0.06), transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ============ 滚动条 ============ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ============ Header ============ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

header > div {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

header > div > a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
  transition: var(--transition);
}

header > div > a::before {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
  transition: transform var(--transition);
}

header > div > a:hover {
  color: var(--primary);
}
header > div > a:hover::before {
  transform: rotate(-8deg) scale(1.08);
}

nav[aria-label="主导航"] {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

nav[aria-label="主导航"] ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav[aria-label="主导航"] a {
  display: block;
  padding: 8px 13px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 999px;
  white-space: nowrap;
  position: relative;
  transition: var(--transition);
}

nav[aria-label="主导航"] a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width var(--transition);
}

nav[aria-label="主导航"] a:hover {
  color: var(--primary);
  background: var(--primary-soft);
}
nav[aria-label="主导航"] a:hover::after {
  width: 60%;
}

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

/* ============ 面包屑 ============ */
nav[aria-label="面包屑导航"] {
  margin: 24px 0 8px;
}

nav[aria-label="面包屑导航"] ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

nav[aria-label="面包屑导航"] li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

nav[aria-label="面包屑导航"] li + li::before {
  content: "›";
  color: var(--primary);
  font-weight: 700;
  opacity: 0.7;
}

nav[aria-label="面包屑导航"] a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 6px;
  transition: var(--transition);
}
nav[aria-label="面包屑导航"] a:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

nav[aria-label="面包屑导航"] li[aria-current="page"] {
  color: var(--primary);
  font-weight: 600;
}

/* ============ Section 通用 ============ */
section {
  margin: 28px 0;
  padding: 40px 36px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

@supports (animation-timeline: view()) {
  section {
    animation: revealSection linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 22%;
  }
  @keyframes revealSection {
    from {
      opacity: 0.35;
      transform: translateY(36px) scale(0.985);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}

section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-light));
  opacity: 0.85;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

section h2 {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
  padding-left: 16px;
  position: relative;
  color: var(--text);
}

section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 1.4em;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  box-shadow: var(--shadow-glow);
}

section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 26px 0 12px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

section h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--primary-soft);
}

section p {
  color: var(--text-secondary);
  margin-bottom: 14px;
}

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

section strong {
  color: var(--primary-dark);
  font-weight: 700;
}

@media (prefers-color-scheme: dark) {
  section strong {
    color: var(--primary-light);
  }
}

/* ============ 列表 ============ */
section ul,
section ol {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 12px 0 20px;
}

section ul li,
section ol li {
  position: relative;
  padding: 12px 16px 12px 40px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  transition: var(--transition);
}

section ul li:hover,
section ol li:hover {
  transform: translateX(4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
  background: var(--primary-soft);
}

section ul li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  transition: var(--transition);
}

section ul li:hover::before {
  transform: translateY(-50%) rotate(135deg) scale(1.15);
}

section ol {
  counter-reset: step;
}
section ol li {
  counter-increment: step;
  padding-left: 48px;
}
section ol li::before {
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

/* 嵌套列表缩进 */
section li ul,
section li ol {
  margin: 8px 0 0;
  gap: 6px;
}

/* ============ Hero ============ */
#hero {
  margin-top: 16px;
  padding: 56px 40px 48px;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c5f 35%, #a78bfa 100%);
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-glow), var(--shadow-lg);
  color: #fff;
  overflow: hidden;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(255, 255, 255, 0.25),
      transparent 45%
    ),
    radial-gradient(circle at 85% 75%, rgba(255, 255, 255, 0.18), transparent 50%);
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 70%);
  animation: floatBlob 12s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatBlob {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-40px, 30px) scale(1.12);
  }
}

#hero h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
}

#hero p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1rem;
  line-height: 1.85;
  max-width: 900px;
  margin-bottom: 16px;
}

#hero p strong {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.92rem;
  display: inline-block;
  margin-top: 4px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

#hero > div {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 32px;
}

#hero > div a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

#hero > div a:first-child {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

#hero > div a:first-child:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

#hero > div a:last-child {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

#hero > div a:last-child:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-3px);
  border-color: #fff;
}

#hero figure {
  position: relative;
  z-index: 1;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

#hero figure:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.35);
}

#hero figure svg {
  display: block;
  width: 100%;
  height: auto;
}

#hero figcaption {
  padding: 12px 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  background: rgba(0, 0, 0, 0.16);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* ============ 新闻 & 文章卡片 ============ */
#news ul {
  gap: 16px;
}

#news ul > li {
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

#news ul > li::before {
  display: none;
}

#news ul > li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}

#news ul > li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

#news ul > li:hover::after {
  transform: scaleY(1);
}

#news h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
#news h3::before {
  display: none;
}

#news h3 a {
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
}
#news h3 a:hover {
  color: var(--primary);
}

#news p {
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--text-muted);
}
#news p:last-child {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* 文章 */
#articles article {
  padding: 22px 24px;
  margin-bottom: 16px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  position: relative;
  transition: var(--transition);
  scroll-margin-top: calc(var(--header-h) + 20px);
}

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

#articles article h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  color: var(--text);
}
#articles article h3::before {
  display: none;
}

#articles article p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

#articles article p:nth-of-type(1) {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  background: var(--primary-soft);
  border-radius: 999px;
  margin-bottom: 12px;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  transition: var(--transition);
}

#articles article a::after {
  content: "→";
  transition: transform var(--transition);
}

#articles article a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

#articles article a:hover::after {
  transform: translateX(4px);
}

/* ============ FAQ ============ */
#faq details {
  margin-bottom: 12px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

#faq details:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

#faq details[open] {
  border-color: var(--primary);
  box-shadow: var(--shadow-md), 0 0 0 3px var(--primary-soft);
}

#faq summary {
  padding: 18px 52px 18px 22px;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: var(--transition);
  -webkit-user-select: none;
  user-select: none;
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  transition: var(--transition);
}

#faq details[open] summary::after {
  content: "−";
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  transform: translateY(-50%) rotate(180deg);
}

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

#faq details[open] summary {
  color: var(--primary);
  background: var(--primary-soft);
  border-bottom: 1px solid var(--border);
}

#faq details p {
  padding: 18px 22px;
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.85;
  animation: fadeIn 0.35s ease both;
}

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

/* ============ 客户评价 ============ */
#cases blockquote {
  margin: 14px 0;
  padding: 20px 24px 20px 56px;
  background: linear-gradient(135deg, var(--primary-soft), transparent);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  position: relative;
  transition: var(--transition);
}

#cases blockquote::before {
  content: "\201C";
  position: absolute;
  left: 16px;
  top: 8px;
  font-size: 3rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--primary);
  opacity: 0.5;
}

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

#cases blockquote p {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-secondary);
  margin: 0;
}

/* ============ 联系我们 ============ */
#contact ul li strong {
  color: var(--primary);
}

#contact a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed var(--primary);
  transition: var(--transition);
}
#contact a:hover {
  color: var(--primary-dark);
  border-bottom-style: solid;
}

/* ============ 网站地图 / 友情链接 ============ */
#sitemap ul,
#links ul {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

#sitemap ul li,
#links ul li {
  padding: 0;
  background: transparent;
  border: none;
}

#sitemap ul li::before,
#links ul li::before {
  display: none;
}

#sitemap ul li:hover,
#links ul li:hover {
  transform: none;
  background: transparent;
  box-shadow: none;
}

#sitemap a,
#links a {
  display: block;
  padding: 12px 18px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

#sitemap a::before,
#links a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
  z-index: -1;
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

#sitemap a:hover::before,
#links a:hover::before {
  opacity: 1;
}

#sitemap a,
#links a {
  isolation: isolate;
}

/* ============ Footer ============ */
footer {
  margin-top: 40px;
  background: linear-gradient(180deg, transparent, rgba(255, 107, 53, 0.05));
  border-top: 1px solid var(--border);
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-light));
}

footer > div {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px 32px;
  text-align: center;
}

footer p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 6px;
}

footer p:first-child {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

footer p:nth-child(2) {
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.5px;
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 2px 8px;
  border-radius: 6px;
  transition: var(--transition);
}

footer a:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  header > div {
    padding: 0 18px;
  }
  nav[aria-label="主导航"] a {
    padding: 7px 10px;
    font-size: 0.85rem;
  }
  section {
    padding: 32px 26px;
  }
  #hero {
    padding: 44px 30px 38px;
  }
}

@media (max-width: 860px) {
  header > div {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 16px;
    gap: 10px;
  }
  :root {
    --header-h: 0px;
  }
  header {
    position: relative;
  }
  nav[aria-label="主导航"] {
    width: 100%;
    justify-content: flex-start;
  }
  nav[aria-label="主导航"] ul {
    justify-content: flex-start;
    gap: 2px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  nav[aria-label="主导航"] ul::-webkit-scrollbar {
    display: none;
  }
  nav[aria-label="主导航"] a {
    padding: 6px 11px;
    font-size: 0.83rem;
  }
  main {
    padding: 0 16px 30px;
  }
  section {
    padding: 28px 20px;
    border-radius: var(--radius-md);
    margin: 20px 0;
  }
  section h2 {
    font-size: 1.35rem;
    padding-left: 14px;
  }
  section h3 {
    font-size: 1.05rem;
  }
  #hero {
    padding: 36px 22px 30px;
    border-radius: var(--radius-lg);
  }
  #hero h1 {
    font-size: 1.5rem;
  }
  #hero > div a {
    padding: 11px 22px;
    font-size: 0.9rem;
    flex: 1;
    justify-content: center;
    min-width: 140px;
  }
  #sitemap ul,
  #links ul {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}

@media (max-width: 540px) {
  body {
    font-size: 15px;
  }
  header > div > a {
    font-size: 1.15rem;
  }
  header > div > a::before {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }
  nav[aria-label="主导航"] a {
    padding: 5px 9px;
    font-size: 0.78rem;
  }
  main {
    padding: 0 12px 24px;
  }
  section {
    padding: 22px 16px;
    margin: 16px 0;
  }
  section h2 {
    font-size: 1.18rem;
    margin-bottom: 16px;
  }
  section h3 {
    font-size: 0.98rem;
    margin: 20px 0 10px;
  }
  section ul li,
  section ol li {
    padding: 10px 12px 10px 34px;
    font-size: 0.88rem;
  }
  section ol li {
    padding-left: 44px;
  }
  #hero {
    padding: 28px 16px 24px;
    border-radius: var(--radius-md);
  }
  #hero h1 {
    font-size: 1.28rem;
    line-height: 1.4;
  }
  #hero p {
    font-size: 0.9rem;
  }
  #hero > div {
    flex-direction: column;
    gap: 10px;
  }
  #hero > div a {
    width: 100%;
  }
  #news ul > li,
  #articles article {
    padding: 16px;
  }
  #faq summary {
    padding: 14px 46px 14px 16px;
    font-size: 0.9rem;
  }
  #faq details p {
    padding: 14px 16px;
    font-size: 0.88rem;
  }
  #cases blockquote {
    padding: 16px 16px 16px 44px;
  }
  #sitemap ul,
  #links ul {
    grid-template-columns: repeat(2, 1fr);
  }
  footer > div {
    padding: 28px 16px 24px;
  }
  footer p {
    font-size: 0.8rem;
  }
}

/* ============ 减少动画偏好 ============ */
@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;
  }
}

/* ============ 打印 ============ */
@media print {
  header,
  footer,
  #hero > div,
  nav[aria-label="面包屑导航"] {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  section {
    box-shadow: none;
    border: 1px solid #ddd;
    background: #fff;
    page-break-inside: avoid;
  }
  #hero {
    background: #fff !important;
    color: #000 !important;
  }
  #hero h1,
  #hero p {
    color: #000 !important;
  }
}
</style>