:root {
  --bg-primary: #0f0f1a;
  --bg-secondary: #1a1a2e;
  --bg-tertiary: #22223b;
  --bg-card: rgba(30, 30, 55, 0.65);
  --bg-glass: rgba(30, 30, 60, 0.45);
  --bg-glass-hover: rgba(40, 40, 75, 0.6);
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-muted: #6c6c85;
  --accent: #e94560;
  --accent-hover: #ff5a75;
  --accent-glow: rgba(233, 69, 96, 0.35);
  --accent-secondary: #7b5ea7;
  --accent-tertiary: #4a9de0;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(233, 69, 96, 0.4);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(233, 69, 96, 0.2);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-primary: #f5f5fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eeeef5;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.55);
    --bg-glass-hover: rgba(255, 255, 255, 0.75);
    --text-primary: #1a1a2e;
    --text-secondary: #555570;
    --text-muted: #8888a0;
    --accent: #d63050;
    --accent-hover: #e94560;
    --accent-glow: rgba(214, 48, 80, 0.2);
    --accent-secondary: #6a4d9e;
    --accent-tertiary: #3a8dc8;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(214, 48, 80, 0.35);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 30px rgba(214, 48, 80, 0.12);
  }
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.75;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(233, 69, 96, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(123, 94, 167, 0.08), transparent);
  background-attachment: fixed;
}

@media (prefers-color-scheme: light) {
  body {
    background-image:
      radial-gradient(ellipse 80% 50% at 50% -20%, rgba(214, 48, 80, 0.06), transparent),
      radial-gradient(ellipse 60% 40% at 80% 100%, rgba(106, 77, 158, 0.04), transparent);
  }
}

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

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}

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

a:hover {
  color: var(--accent-hover);
}

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

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

ul,
ol {
  list-style: none;
}

/* ===== HEADER ===== */
header[role="banner"] {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition-smooth), box-shadow var(--transition-smooth);
}

header[role="banner"]:hover {
  background: var(--bg-glass-hover);
  box-shadow: var(--shadow-sm);
}

header[role="banner"] nav {
  width: 100%;
  max-width: var(--max-width);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

header[role="banner"] nav > div:first-child a {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  position: relative;
  padding-bottom: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity var(--transition-fast);
}

header[role="banner"] nav > div:first-child a:hover {
  opacity: 0.8;
  color: transparent;
}

header[role="banner"] nav > div:first-child a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-smooth);
}

header[role="banner"] nav > div:first-child a:hover::after {
  transform: scaleX(1);
}

header[role="banner"] nav > ul {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

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

header[role="banner"] nav > ul li a:hover {
  color: var(--text-primary);
  background: rgba(233, 69, 96, 0.1);
  transform: translateY(-1px);
}

/* ===== MAIN ===== */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  padding-top: calc(var(--header-height) + 20px);
}

/* ===== HERO SECTION ===== */
#hero {
  position: relative;
  padding: 80px 40px 60px;
  margin-bottom: 48px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: heroFadeIn 0.8s ease-out both;
}

#hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 30% 40%, rgba(233, 69, 96, 0.25), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(123, 94, 167, 0.2), transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(74, 157, 224, 0.15), transparent 50%);
  animation: heroGlow 12s ease-in-out infinite alternate;
  pointer-events: none;
}

#hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
}

#hero h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(233, 69, 96, 0.3);
  animation: slideUp 0.7s ease-out 0.15s both;
}

#hero > p {
  position: relative;
  z-index: 1;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 720px;
  margin-bottom: 16px;
  line-height: 1.8;
  animation: slideUp 0.7s ease-out 0.25s both;
}

#hero > p:last-of-type {
  animation-delay: 0.35s;
}

#hero figure {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.7s ease-out 0.45s both;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

#hero figure:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 28px 80px rgba(233, 69, 96, 0.2);
}

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

#hero figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 24px;
  background: linear-gradient(transparent, rgba(15, 15, 26, 0.9));
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  text-align: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ===== BREADCRUMB ===== */
nav[aria-label="面包屑导航"] {
  margin-bottom: 40px;
  padding: 12px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: slideUp 0.6s ease-out 0.5s both;
}

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

nav[aria-label="面包屑导航"] ol li + li::before {
  content: '/';
  margin-right: 8px;
  color: var(--text-muted);
  opacity: 0.5;
}

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

nav[aria-label="面包屑导航"] ol li a:hover {
  color: var(--accent);
}

/* ===== SECTIONS ===== */
main > section {
  margin-bottom: 64px;
  animation: fadeInUp 0.7s ease-out both;
}

main > section:nth-child(odd) {
  animation-delay: 0.05s;
}

main > section:nth-child(even) {
  animation-delay: 0.1s;
}

main > section > h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 28px;
  padding-bottom: 16px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

main > section > h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.2em;
  background: linear-gradient(180deg, var(--accent), var(--accent-secondary));
  border-radius: 2px;
  flex-shrink: 0;
}

main > section > h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary), transparent);
  border-radius: 2px;
}

main > section > h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 32px;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  transition: color var(--transition-fast);
}

main > section > h3:hover {
  color: var(--accent);
}

main > section > h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 24px;
  margin-bottom: 10px;
}

main > section > p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.85;
  font-size: 0.95rem;
}

/* ===== CARDS (about, products, advantages, solutions, applications) ===== */
#about,
#products,
#advantages,
#solutions,
#applications,
#cases,
#testimonials,
#news,
#articles,
#faq,
#howto,
#contact,
#sitemap,
#links,
#legal {
  padding: 36px 32px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth), transform var(--transition-smooth);
}

#about:hover,
#products:hover,
#advantages:hover,
#solutions:hover,
#applications:hover,
#cases:hover,
#testimonials:hover,
#news:hover,
#articles:hover,
#faq:hover,
#howto:hover,
#contact:hover,
#sitemap:hover,
#links:hover,
#legal:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(-3px);
}

/* ===== BLOCKQUOTE (testimonials) ===== */
#testimonials blockquote {
  position: relative;
  padding: 24px 28px 24px 56px;
  margin-bottom: 20px;
  background: var(--bg-glass);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

#testimonials blockquote::before {
  content: '"';
  position: absolute;
  top: 8px;
  left: 16px;
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  font-family: Georgia, serif;
}

#testimonials blockquote:hover {
  background: var(--bg-glass-hover);
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}

#testimonials blockquote p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 12px;
  font-style: italic;
}

#testimonials blockquote cite {
  display: block;
  font-size: 0.85rem;
  color: var(--accent);
  font-style: normal;
  font-weight: 500;
}

/* ===== NEWS & ARTICLES ===== */
#news article,
#articles article {
  padding: 24px 28px;
  margin-bottom: 20px;
  background: var(--bg-glass);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background var(--transition-smooth), border-color var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

#news article:hover,
#articles article:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 20px rgba(233, 69, 96, 0.08);
}

#news article h3,
#articles article h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  margin-top: 0;
  transition: color var(--transition-fast);
}

#news article:hover h3,
#articles article:hover h3 {
  color: var(--accent);
}

#news article time,
#articles article time {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding: 3px 10px;
  background: rgba(233, 69, 96, 0.08);
  border-radius: 20px;
  font-weight: 500;
}

#news article p,
#articles article p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

#news article p a,
#articles article p a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(233, 69, 96, 0.1);
  color: var(--accent);
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

#news article p a:hover,
#articles article p a:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateX(4px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

#articles article strong {
  color: var(--accent);
  font-weight: 600;
}

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

#faq details:hover {
  border-color: var(--border-hover);
  background: var(--bg-glass-hover);
}

#faq details[open] {
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(233, 69, 96, 0.1);
}

#faq details summary {
  padding: 18px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color var(--transition-fast), background var(--transition-fast);
  user-select: none;
  -webkit-user-select: none;
}

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

#faq details summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(233, 69, 96, 0.1);
  transition: transform var(--transition-smooth), background var(--transition-fast);
}

#faq details[open] summary::after {
  content: '−';
  transform: rotate(180deg);
  background: var(--accent);
  color: #ffffff;
}

#faq details summary:hover {
  color: var(--accent);
}

#faq details p {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.85;
  animation: fadeIn 0.3s ease-out;
}

/* ===== HOWTO ===== */
#howto h3 {
  margin-top: 28px;
}

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

#howto h4 {
  position: relative;
  padding-left: 24px;
  color: var(--accent);
  font-weight: 600;
}

#howto h4::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

#howto p {
  padding-left: 24px;
}

/* ===== CONTACT ===== */
#contact h3 {
  color: var(--accent);
  margin-top: 28px;
}

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

#contact p {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

#contact p:hover {
  color: var(--text-primary);
  padding-left: 8px;
}

#contact p:last-child {
  border-bottom: none;
}

/* ===== SITEMAP & LINKS ===== */
#sitemap ul,
#links ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

#sitemap ul li a,
#links ul li a {
  display: block;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  background: rgba(233, 69, 96, 0.1);
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233, 69, 96, 0.15);
}

/* ===== LEGAL ===== */
#legal h2 {
  font-size: 1.25rem;
  margin-top: 32px;
  margin-bottom: 16px;
}

#legal h2:first-child {
  margin-top: 0;
}

#legal h2::before {
  height: 1em;
}

#legal h2::after {
  width: 60px;
}

#legal p {
  font-size: 0.875rem;
  line-height: 1.9;
  color: var(--text-muted);
}

/* ===== FOOTER ===== */
footer[role="contentinfo"] {
  margin-top: 80px;
  padding: 48px 24px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  text-align: center;
  position: relative;
  overflow: hidden;
}

footer[role="contentinfo"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-secondary), transparent);
  opacity: 0.5;
}

footer[role="contentinfo"] p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.8;
}

footer[role="contentinfo"] p:first-child {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

footer[role="contentinfo"] p a {
  color: var(--accent);
  font-weight: 500;
  position: relative;
  transition: color var(--transition-fast);
}

footer[role="contentinfo"] p a:hover {
  color: var(--accent-hover);
}

footer[role="contentinfo"] p a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-smooth);
}

footer[role="contentinfo"] p a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

footer[role="contentinfo"] p:last-child {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 4px;
}

/* ===== ANIMATIONS ===== */
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes heroGlow {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(5%, 5%) rotate(3deg);
  }
}

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

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ===== SCROLL-DRIVEN ANIMATIONS ===== */
@supports (animation-timeline: view()) {
  main > section {
    animation: fadeInUp 0.7s ease-out both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }

  #news article,
  #articles article {
    animation: fadeInUp 0.6s ease-out both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }

  #testimonials blockquote {
    animation: slideUp 0.6s ease-out both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }

  #faq details {
    animation: fadeInUp 0.5s ease-out both;
    animation-timeline: view();
    animation-range: entry 0% entry 50%;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  main {
    padding: 0 20px;
    padding-top: calc(var(--header-height) + 16px);
  }

  #hero {
    padding: 60px 28px 48px;
  }

  #about,
  #products,
  #advantages,
  #solutions,
  #applications,
  #cases,
  #testimonials,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links,
  #legal {
    padding: 28px 24px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

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

  header[role="banner"] nav > div:first-child a {
    font-size: 1.1rem;
  }

  header[role="banner"] nav > ul {
    gap: 2px;
  }

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

  main {
    padding: 0 16px;
    padding-top: calc(var(--header-height) + 12px);
  }

  #hero {
    padding: 40px 20px 36px;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
  }

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

  #hero > p {
    font-size: 0.9rem;
  }

  #hero figure {
    margin-top: 28px;
    border-radius: var(--radius-md);
  }

  #hero figcaption {
    padding: 12px 16px;
    font-size: 0.78rem;
  }

  nav[aria-label="面包屑导航"] {
    padding: 10px 16px;
    margin-bottom: 28px;
  }

  main > section {
    margin-bottom: 40px;
  }

  main > section > h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
  }

  #about,
  #products,
  #advantages,
  #solutions,
  #applications,
  #cases,
  #testimonials,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links,
  #legal {
    padding: 22px 18px;
    border-radius: var(--radius-md);
  }

  #testimonials blockquote {
    padding: 20px 18px 20px 44px;
  }

  #testimonials blockquote::before {
    font-size: 2.5rem;
    left: 12px;
  }

  #news article,
  #articles article {
    padding: 18px 20px;
  }

  #faq details summary {
    padding: 14px 18px;
    font-size: 0.875rem;
  }

  #faq details p {
    padding: 0 18px 16px;
    font-size: 0.85rem;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
  }

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

  footer[role="contentinfo"] {
    padding: 36px 16px;
    margin-top: 56px;
  }

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

@media (max-width: 480px) {
  header[role="banner"] nav {
    flex-direction: column;
    gap: 6px;
    padding: 6px 12px;
  }

  header[role="banner"] {
    height: auto;
    min-height: var(--header-height);
    padding: 8px 0;
  }

  header[role="banner"] nav > ul {
    justify-content: center;
    flex-wrap: wrap;
  }

  header[role="banner"] nav > ul li a {
    padding: 4px 6px;
    font-size: 0.72rem;
  }

  :root {
    --header-height: 100px;
  }

  #hero {
    padding: 32px 16px 28px;
  }

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

  #hero > p {
    font-size: 0.85rem;
  }

  main > section > h2 {
    font-size: 1.15rem;
  }

  main > section > h3 {
    font-size: 1rem;
  }

  #about,
  #products,
  #advantages,
  #solutions,
  #applications,
  #cases,
  #testimonials,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links,
  #legal {
    padding: 18px 14px;
  }

  #testimonials blockquote {
    padding: 16px 14px 16px 38px;
  }

  #testimonials blockquote::before {
    font-size: 2rem;
    left: 10px;
    top: 4px;
  }

  #testimonials blockquote p {
    font-size: 0.85rem;
  }

  #news article,
  #articles article {
    padding: 14px 16px;
  }

  #news article h3,
  #articles article h3 {
    font-size: 0.95rem;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  #sitemap ul li a,
  #links ul li a {
    padding: 7px 10px;
    font-size: 0.75rem;
    text-align: center;
  }

  footer[role="contentinfo"] {
    padding: 28px 12px;
    margin-top: 40px;
  }
}

/* ===== REDUCED MOTION ===== */
@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;
  }

  #hero::before {
    animation: none;
  }
}

/* ===== PRINT ===== */
@media print {
  header[role="banner"],
  footer[role="contentinfo"],
  #hero figure {
    display: none;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  main > section {
    box-shadow: none;
    border: 1px solid #cccccc;
    break-inside: avoid;
  }

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