:root {
  --xigua-red: #ff4d4f;
  --xigua-orange: #ff7a45;
  --xigua-yellow: #ffc53d;
  --xigua-green: #52c41a;
  --xigua-blue: #1890ff;
  --xigua-purple: #722ed1;
  --xigua-cyan: #13c2c2;
  --bg-primary: #ffffff;
  --bg-secondary: #f5f7fa;
  --bg-tertiary: #eef1f6;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-border: rgba(255, 255, 255, 0.45);
  --text-primary: #1a1e2b;
  --text-secondary: #4e5969;
  --text-tertiary: #86909c;
  --text-inverse: #ffffff;
  --border-color: #e5e8ef;
  --shadow-sm: 0 2px 8px rgba(26, 30, 43, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 30, 43, 0.08);
  --shadow-lg: 0 16px 48px rgba(26, 30, 43, 0.12);
  --shadow-glow: 0 8px 32px rgba(255, 77, 79, 0.24);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;
  --gradient-hero: linear-gradient(135deg, #1a1e2b 0%, #2b1f3d 30%, #3d1f2e 55%, #4a2320 75%, #5c2a1a 100%);
  --gradient-accent: linear-gradient(135deg, #ff4d4f 0%, #ff7a45 50%, #ffc53d 100%);
  --gradient-accent-reverse: linear-gradient(135deg, #ffc53d 0%, #ff7a45 50%, #ff4d4f 100%);
  --gradient-cool: linear-gradient(135deg, #722ed1 0%, #1890ff 50%, #13c2c2 100%);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
  --gradient-text: linear-gradient(135deg, #ff4d4f 0%, #ff7a45 40%, #ffc53d 100%);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "JetBrains Mono", Consolas, monospace;
  --max-width: 1180px;
  --header-height: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #0f1219;
    --bg-secondary: #161a24;
    --bg-tertiary: #1c2130;
    --bg-card: #1a1f2e;
    --bg-glass: rgba(26, 31, 46, 0.75);
    --bg-glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #e8ecf4;
    --text-secondary: #a8b3c7;
    --text-tertiary: #6b7a94;
    --border-color: #262d3d;
    --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, 77, 79, 0.18);
    --gradient-hero: linear-gradient(135deg, #0a0c12 0%, #1a1228 30%, #2a1420 55%, #331a14 75%, #3d2010 100%);
    --gradient-card: linear-gradient(145deg, rgba(26, 31, 46, 0.95) 0%, rgba(22, 26, 36, 0.85) 100%);
  }
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--transition-base), color var(--transition-base);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

a {
  color: var(--xigua-red);
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.35rem); }
h4 { font-size: 1.1rem; }

p {
  margin-bottom: 1em;
  color: var(--text-secondary);
}

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

blockquote {
  position: relative;
  margin: 1.5em 0;
  padding: 1.25em 1.5em 1.25em 2.5em;
  background: var(--bg-secondary);
  border-left: 4px solid var(--xigua-red);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-style: normal;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

blockquote::before {
  content: "\201C";
  position: absolute;
  top: 0.1em;
  left: 0.5em;
  font-size: 3em;
  line-height: 1;
  color: var(--xigua-red);
  opacity: 0.25;
  font-family: Georgia, serif;
}

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

/* ============ HEADER ============ */
header[role="banner"] {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--bg-glass-border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

header[role="banner"] nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 32px;
}

header[role="banner"] nav > a:first-child {
  font-size: 1.35rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
  letter-spacing: -0.02em;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

header[role="banner"] nav > a:first-child:hover {
  transform: scale(1.04);
  filter: brightness(1.15);
  text-decoration: none;
}

header[role="banner"] nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

header[role="banner"] nav ul::-webkit-scrollbar {
  display: none;
}

header[role="banner"] nav ul li a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

header[role="banner"] nav ul li a:hover {
  color: var(--xigua-red);
  background: rgba(255, 77, 79, 0.08);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ============ MAIN ============ */
main {
  display: block;
}

main > section,
main > nav[aria-label="面包屑"],
main > footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

main > section {
  padding-top: 64px;
  padding-bottom: 64px;
}

/* ============ HERO ============ */
#hero {
  position: relative;
  max-width: 100%;
  padding: 96px 20px 80px;
  background: var(--gradient-hero);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  overflow: hidden;
  text-align: center;
  color: var(--text-inverse);
  margin-bottom: 64px;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(255, 77, 79, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(114, 46, 209, 0.3) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(255, 197, 61, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 75% 70%, rgba(19, 194, 194, 0.2) 0%, transparent 40%);
  pointer-events: none;
  animation: heroGlow 12s ease-in-out infinite alternate;
}

#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

@keyframes heroGlow {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.08); }
}

#hero > * {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

#hero h1 {
  color: var(--text-inverse);
  margin-bottom: 24px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

#hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s 0.15s cubic-bezier(0.4, 0, 0.2, 1) both;
}

#hero p a {
  display: inline-block;
  padding: 14px 36px;
  background: var(--gradient-accent);
  color: var(--text-inverse);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-glow);
  transition: transform var(--transition-base), box-shadow var(--transition-base), filter var(--transition-base);
  animation: fadeInUp 0.8s 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}

#hero p a:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 40px rgba(255, 77, 79, 0.4);
  filter: brightness(1.08);
  text-decoration: none;
  color: var(--text-inverse);
}

#hero figure {
  margin-top: 48px;
  animation: fadeInUp 0.9s 0.45s cubic-bezier(0.4, 0, 0.2, 1) both;
}

#hero figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

#hero figure img:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
}

#hero figcaption {
  margin-top: 16px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

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

/* ============ 面包屑 ============ */
main > nav[aria-label="面包屑"] {
  padding-top: 24px;
  padding-bottom: 8px;
}

main > nav[aria-label="面包屑"] ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

main > nav[aria-label="面包屑"] ol li {
  display: flex;
  align-items: center;
  gap: 8px;
}

main > nav[aria-label="面包屑"] ol li:not(:last-child)::after {
  content: "/";
  color: var(--text-tertiary);
  opacity: 0.5;
}

main > nav[aria-label="面包屑"] ol li a {
  color: var(--text-secondary);
}

main > nav[aria-label="面包屑"] ol li a:hover {
  color: var(--xigua-red);
}

/* ============ 通用 Section 标题 ============ */
section h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 32px;
  padding-bottom: 12px;
}

section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--gradient-accent);
  transition: width var(--transition-slow);
}

section:hover h2::after {
  width: 96px;
}

section h3 {
  margin-top: 32px;
  margin-bottom: 14px;
  color: var(--text-primary);
}

section h3:first-of-type {
  margin-top: 0;
}

/* ============ 卡片通用 ============ */
#intro,
#products,
#services,
#solutions,
#cases,
#news,
#articles,
#faq,
#howto,
#contact,
#sitemap,
#links,
#legal {
  position: relative;
}

#intro ul,
#products ul,
#services ul,
#solutions ul,
#howto ul,
#howto ol {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

#intro ul li,
#products ul li,
#services ul li,
#solutions ul li,
#howto ul li,
#howto ol li {
  position: relative;
  padding: 16px 20px 16px 52px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  color: var(--text-secondary);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), background var(--transition-base);
}

#intro ul li::before,
#products ul li::before,
#services ul li::before,
#solutions ul li::before,
#howto ul li::before,
#howto ol li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gradient-accent);
  opacity: 0.9;
  box-shadow: 0 2px 8px rgba(255, 77, 79, 0.3);
}

#intro ul li::after,
#products ul li::after,
#services ul li::after,
#solutions ul li::after,
#howto ul li::after,
#howto ol li::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 50%;
  transform: translateY(-60%) rotate(45deg);
  width: 6px;
  height: 11px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  pointer-events: none;
}

#intro ul li:hover,
#products ul li:hover,
#services ul li:hover,
#solutions ul li:hover,
#howto ul li:hover,
#howto ol li:hover {
  transform: translateY(-3px) translateX(2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 77, 79, 0.3);
}

/* 品牌历史时间线 */
#intro ul {
  position: relative;
}

#intro ul li strong {
  color: var(--xigua-red);
}

/* ============ 产品优势 & 服务内容特殊卡片 ============ */
#products > ul,
#services > ul {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ============ 案例 ============ */
#cases h3 {
  padding-left: 18px;
  border-left: 4px solid var(--xigua-orange);
  border-radius: 2px;
}

#cases blockquote {
  background: var(--gradient-card);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--bg-glass-border);
  border-left: 4px solid var(--xigua-red);
}

/* ============ 新闻中心 ============ */
#news > ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

#news > ul > li {
  position: relative;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

#news > ul > li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

#news > ul > li:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 77, 79, 0.25);
}

#news > ul > li:hover::before {
  transform: scaleX(1);
}

#news > ul > li h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

#news > ul > li h3 a {
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

#news > ul > li h3 a:hover {
  color: var(--xigua-red);
  text-decoration: none;
}

#news > ul > li p {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

#news > ul > li p:first-of-type {
  color: var(--text-tertiary);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ============ 技术文章 ============ */
#articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

#articles > h2 {
  grid-column: 1 / -1;
}

#articles article {
  position: relative;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

#articles article::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-cool);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-slow);
}

#articles article:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-lg);
  border-color: rgba(114, 46, 209, 0.25);
}

#articles article:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

#articles article h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

#articles article h3 a {
  color: var(--text-primary);
}

#articles article h3 a:hover {
  color: var(--xigua-purple);
  text-decoration: none;
}

#articles article p {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

#articles article p:first-of-type {
  color: var(--text-tertiary);
  font-size: 0.8rem;
  font-weight: 500;
}

/* ============ FAQ ============ */
#faq details {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition-base), border-color var(--transition-base), background var(--transition-base);
}

#faq details[open] {
  border-color: rgba(255, 77, 79, 0.3);
  box-shadow: var(--shadow-md);
  background: var(--bg-card);
}

#faq details:hover {
  border-color: rgba(255, 77, 79, 0.25);
  box-shadow: var(--shadow-md);
}

#faq summary {
  position: relative;
  padding: 18px 52px 18px 24px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color var(--transition-fast), background var(--transition-fast);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  line-height: 24px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--xigua-red);
  background: rgba(255, 77, 79, 0.1);
  border-radius: 50%;
  transition: transform var(--transition-base), background var(--transition-base), color var(--transition-base);
}

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

#faq summary:hover {
  color: var(--xigua-red);
  background: rgba(255, 77, 79, 0.04);
}

#faq details p {
  padding: 0 24px 20px;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
  animation: fadeInUp 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* ============ HowTo ============ */
#howto ol {
  counter-reset: howto-step;
  list-style: none;
}

#howto ol li {
  counter-increment: howto-step;
  padding-left: 64px;
}

#howto ol li::before {
  content: counter(howto-step);
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-accent);
  border-radius: 50%;
  left: 16px;
  box-shadow: 0 2px 10px rgba(255, 77, 79, 0.35);
}

#howto ol li::after {
  display: none;
}

/* ============ 联系我们 ============ */
#contact address {
  font-style: normal;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

#contact address p {
  position: relative;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

#contact address p:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 77, 79, 0.25);
}

#contact > p {
  display: inline-block;
  margin-right: 16px;
  margin-bottom: 12px;
  padding: 10px 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

#contact > p:hover {
  background: rgba(255, 77, 79, 0.08);
  color: var(--xigua-red);
  transform: translateY(-2px);
}

/* ============ 网站地图 ============ */
#sitemap ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#sitemap ul li a {
  display: inline-block;
  padding: 10px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

#sitemap ul li a:hover {
  background: var(--gradient-accent);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
  text-decoration: none;
}

/* ============ 友情链接 ============ */
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#links ul li a {
  display: inline-block;
  padding: 10px 22px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

#links ul li a:hover {
  background: var(--gradient-cool);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(114, 46, 209, 0.25);
  text-decoration: none;
}

/* ============ 法律声明 ============ */
#legal {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  padding: 48px 32px;
  margin-top: 32px;
  margin-bottom: 32px;
  border: 1px solid var(--border-color);
}

#legal h3 {
  color: var(--xigua-red);
  font-size: 1.05rem;
  margin-top: 24px;
}

#legal h3:first-of-type {
  margin-top: 0;
}

#legal p {
  font-size: 0.9rem;
  line-height: 1.85;
}

/* ============ FOOTER ============ */
footer[role="contentinfo"] {
  background: var(--gradient-hero);
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 20px 40px;
  margin-top: 32px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  position: relative;
  overflow: hidden;
}

footer[role="contentinfo"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 77, 79, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(114, 46, 209, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

footer[role="contentinfo"] > * {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

footer[role="contentinfo"] p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  line-height: 1.9;
  margin-bottom: 6px;
  text-align: center;
}

footer[role="contentinfo"] p:last-child {
  margin-top: 16px;
}

footer[role="contentinfo"] a {
  display: inline-block;
  padding: 10px 28px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  color: #fff;
  font-weight: 500;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: all var(--transition-base);
}

footer[role="contentinfo"] a:hover {
  background: var(--gradient-accent);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
  text-decoration: none;
  color: #fff;
}

/* ============ 滚动动画 ============ */
@supports (animation-timeline: view()) {
  main > section {
    animation: revealUp linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }

  #news > ul > li,
  #articles article,
  #faq details,
  #intro ul li,
  #products ul li,
  #services ul li,
  #solutions ul li {
    animation: revealUp linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  :root {
    --header-height: 58px;
  }

  header[role="banner"] nav {
    gap: 20px;
    padding: 0 16px;
  }

  header[role="banner"] nav ul li a {
    padding: 8px 10px;
    font-size: 0.85rem;
  }

  #hero {
    padding: 72px 20px 64px;
  }

  main > section {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

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

  header[role="banner"] nav {
    flex-direction: column;
    height: auto;
    padding: 12px 16px;
    gap: 10px;
    align-items: stretch;
  }

  header[role="banner"] nav > a:first-child {
    text-align: center;
    font-size: 1.2rem;
  }

  header[role="banner"] nav ul {
    justify-content: flex-start;
    padding-bottom: 4px;
  }

  #hero {
    padding: 56px 16px 48px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin-bottom: 40px;
  }

  #hero p {
    font-size: 0.95rem;
  }

  #hero p a {
    padding: 12px 28px;
    font-size: 0.9rem;
  }

  #hero figure {
    margin-top: 32px;
  }

  main > section {
    padding-top: 40px;
    padding-bottom: 40px;
    padding-left: 16px;
    padding-right: 16px;
  }

  section h2 {
    margin-bottom: 24px;
  }

  #news > ul,
  #articles {
    grid-template-columns: 1fr;
  }

  #intro ul li,
  #products ul li,
  #services ul li,
  #solutions ul li,
  #howto ul li,
  #howto ol li {
    padding: 14px 16px 14px 48px;
  }

  #faq summary {
    padding: 16px 48px 16px 18px;
    font-size: 0.95rem;
  }

  #faq details p {
    padding: 0 18px 18px;
  }

  #legal {
    padding: 32px 20px;
    border-radius: var(--radius-lg);
  }

  footer[role="contentinfo"] {
    padding: 36px 16px 32px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
}

@media (max-width: 480px) {
  :root {
    --radius-lg: 16px;
    --radius-xl: 20px;
  }

  #hero h1 {
    font-size: 1.5rem;
  }

  #contact address {
    grid-template-columns: 1fr;
  }

  #contact > p {
    display: block;
    text-align: center;
    margin-right: 0;
  }

  #sitemap ul li a,
  #links ul li a {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  footer[role="contentinfo"] p {
    font-size: 0.78rem;
  }
}

/* ============ 无障碍 & 动效偏好 ============ */
@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;
  }

  section:hover h2::after {
    width: 56px;
  }
}

/* ============ 打印样式 ============ */
@media print {
  header[role="banner"],
  footer[role="contentinfo"],
  #hero p a {
    display: none;
  }

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

  #hero {
    background: none;
    color: #000;
    padding: 20px 0;
  }

  #hero h1,
  #hero p {
    color: #000;
    text-shadow: none;
  }

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