:root {
  --primary: #e94560;
  --primary-dark: #c73650;
  --primary-light: #ff6b81;
  --secondary: #533483;
  --secondary-light: #7b5ea7;
  --accent: #0f3460;
  --accent-light: #1a5276;
  --bg-dark: #1a1a2e;
  --bg-darker: #0f0f1a;
  --bg-card: #16213e;
  --bg-card-hover: #1d2d50;
  --text-primary: #ffffff;
  --text-secondary: #b8c1ec;
  --text-muted: #8892b0;
  --border-color: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(22, 33, 62, 0.65);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(233, 69, 96, 0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
  --max-width: 1200px;
  --header-height: 72px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-dark: #f5f7fa;
    --bg-darker: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f2f5;
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --border-color: rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 30px rgba(233, 69, 96, 0.15);
  }
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(233, 69, 96, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(83, 52, 131, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

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

a:hover {
  color: var(--primary-light);
}

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

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

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 700;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin-bottom: 0.75rem;
}

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

blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
}

blockquote p {
  margin-bottom: 0;
  color: var(--text-secondary);
}

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

header[role="banner"]:hover {
  box-shadow: var(--shadow-md);
}

header nav[aria-label="主导航"] {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1.5rem;
}

header nav[aria-label="主导航"] > a:first-child {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity var(--transition-fast);
}

header nav[aria-label="主导航"] > a:first-child:hover {
  opacity: 0.85;
}

header nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

header nav ul li a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

header nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transform: translateX(-50%);
  transition: width var(--transition-normal);
}

header nav ul li a:hover {
  color: var(--text-primary);
  background: rgba(233, 69, 96, 0.1);
}

header nav ul li a:hover::after {
  width: 60%;
}

header nav form[role="search"] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

header nav form[role="search"] label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

header nav form[role="search"] input[type="search"] {
  padding: 0.55rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-size: 0.875rem;
  width: 180px;
  transition: all var(--transition-normal);
  font-family: var(--font-sans);
}

header nav form[role="search"] input[type="search"]::placeholder {
  color: var(--text-muted);
}

header nav form[role="search"] input[type="search"]:focus {
  outline: none;
  border-color: var(--primary);
  width: 240px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.15);
}

header nav form[role="search"] button {
  padding: 0.55rem 1.1rem;
  border: none;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
  white-space: nowrap;
}

header nav form[role="search"] button:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
}

header nav form[role="search"] button:active {
  transform: translateY(0);
}

/* ===== MAIN ===== */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

section {
  margin-bottom: 3.5rem;
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

/* ===== HERO ===== */
#hero {
  position: relative;
  margin: 2rem 0 3rem;
  padding: 3.5rem 2.5rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 30%, #0f3460 60%, #533483 100%);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

#hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: heroPulse 8s ease-in-out infinite;
}

#hero::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(83, 52, 131, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: heroPulse 10s ease-in-out infinite reverse;
}

@keyframes heroPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
}

#hero h1 {
  position: relative;
  z-index: 1;
  color: #ffffff;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

#hero p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.85);
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

#hero figure {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

#hero figure svg {
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

#hero figure svg:hover {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0 12px 48px rgba(233, 69, 96, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

#hero figcaption {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
}

/* ===== BREADCRUMB ===== */
nav[aria-label="面包屑导航"] {
  margin-bottom: 2rem;
}

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

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

nav[aria-label="面包屑导航"] ol li:not(:last-child)::after {
  content: "/";
  margin: 0 0.5rem;
  color: var(--text-muted);
  opacity: 0.5;
}

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

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

/* ===== CARDS / SECTIONS ===== */
#brand,
#products,
#solutions,
#industry,
#cases,
#news,
#articles,
#faq,
#howto,
#contact,
#sitemap,
#links,
#author-info,
#security {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

#brand:hover,
#products:hover,
#solutions:hover,
#industry:hover,
#cases:hover,
#news:hover,
#articles:hover,
#faq:hover,
#howto:hover,
#contact:hover {
  box-shadow: var(--shadow-md);
}

#brand h3,
#products h3,
#solutions h3,
#industry h3,
#cases h3,
#news h3,
#articles h3,
#howto h3,
#contact h3 {
  color: var(--primary-light);
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--primary);
}

#brand h3:first-of-type,
#products h3:first-of-type,
#solutions h3:first-of-type {
  margin-top: 1rem;
}

/* ===== PRODUCTS LIST ===== */
#products ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

#products ul li {
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.925rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  position: relative;
  padding-left: 2rem;
}

#products ul li::before {
  content: "◆";
  position: absolute;
  left: 0.75rem;
  color: var(--primary);
  font-size: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
}

#products ul li:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
}

/* ===== NEWS / ARTICLES ===== */
#news article,
#articles article {
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

#news article::before,
#articles article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

#news article:hover,
#articles article:hover {
  background: var(--bg-card-hover);
  border-color: rgba(233, 69, 96, 0.3);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

#news article:hover::before,
#articles article:hover::before {
  opacity: 1;
}

#news article h3,
#articles article h3 {
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  transition: color var(--transition-fast);
}

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

#news article p,
#articles article p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

#news article p:first-of-type,
#articles article p:first-of-type {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

#news article a,
#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  transition: all var(--transition-fast);
}

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

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

/* ===== CASES BLOCKQUOTE ===== */
#cases blockquote {
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.08), rgba(83, 52, 131, 0.08));
  border-left-color: var(--primary);
  margin: 1rem 0;
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  transition: all var(--transition-normal);
}

#cases blockquote:hover {
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.15), rgba(83, 52, 131, 0.15));
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

#cases blockquote p {
  color: var(--text-secondary);
  font-style: italic;
}

/* ===== FAQ ===== */
#faq details {
  margin-bottom: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
}

#faq details[open] {
  border-color: rgba(233, 69, 96, 0.3);
  box-shadow: var(--shadow-sm);
}

#faq details:hover {
  border-color: rgba(233, 69, 96, 0.25);
}

#faq details summary {
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.975rem;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: all var(--transition-fast);
  user-select: none;
  position: relative;
}

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

#faq details summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(233, 69, 96, 0.1);
}

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

#faq details summary:hover {
  background: rgba(233, 69, 96, 0.05);
}

#faq details p {
  padding: 0 1.5rem 1.25rem;
  margin: 0;
  font-size: 0.925rem;
  line-height: 1.8;
  color: var(--text-secondary);
  animation: fadeSlideIn 0.3s ease;
}

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

/* ===== HOWTO ===== */
#howto ul,
#howto ol {
  margin: 0.75rem 0 1.5rem 1.25rem;
}

#howto ul li,
#howto ol li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.7;
  position: relative;
  padding-left: 0.5rem;
}

#howto ul li::before {
  content: "•";
  position: absolute;
  left: -0.75rem;
  color: var(--primary);
  font-weight: 700;
}

#howto ol {
  list-style: none;
  counter-reset: howto-counter;
}

#howto ol li {
  counter-increment: howto-counter;
  padding-left: 2rem;
  position: relative;
}

#howto ol li::before {
  content: counter(howto-counter);
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.4rem;
  height: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50%;
}

/* ===== CONTACT ===== */
#contact ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

#contact ul li {
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

#contact ul li:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ===== SITEMAP & LINKS ===== */
#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

#sitemap ul li a,
#links ul li a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.35);
}

/* ===== AUTHOR INFO ===== */
#author-info ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

#author-info ul li {
  padding: 0.6rem 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

#author-info ul li:hover {
  border-color: var(--primary);
  color: var(--text-primary);
}

/* ===== SECURITY ===== */
#security p {
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ===== FOOTER ===== */
footer[role="contentinfo"] {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  padding: 3rem 1.5rem 2rem;
  margin-top: 2rem;
}

footer[role="contentinfo"] > section {
  max-width: var(--max-width);
  margin: 0 auto 1.5rem;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

footer[role="contentinfo"] > section:hover {
  box-shadow: none;
}

footer[role="contentinfo"] h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
}

footer[role="contentinfo"] h2::after {
  width: 40px;
  height: 2px;
}

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

footer[role="contentinfo"] ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

footer[role="contentinfo"] ul li {
  font-size: 0.85rem;
  color: var(--text-muted);
}

footer[role="contentinfo"] > p {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

footer[role="contentinfo"] > p a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1.25rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

footer[role="contentinfo"] > p a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.35);
}

/* ===== SCROLL ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

section {
  animation: fadeInUp 0.6s ease both;
}

section:nth-child(1) { animation-delay: 0.05s; }
section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.15s; }
section:nth-child(4) { animation-delay: 0.2s; }
section:nth-child(5) { animation-delay: 0.25s; }
section:nth-child(6) { animation-delay: 0.3s; }
section:nth-child(7) { animation-delay: 0.35s; }
section:nth-child(8) { animation-delay: 0.4s; }

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 4px;
}

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

/* ===== SELECTION ===== */
::selection {
  background: rgba(233, 69, 96, 0.35);
  color: var(--text-primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  header nav[aria-label="主导航"] {
    flex-wrap: wrap;
    height: auto;
    padding: 0.75rem 1.25rem;
    gap: 0.75rem;
  }

  header nav ul {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-bottom: 0.5rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  header nav ul::-webkit-scrollbar {
    display: none;
  }

  header nav form[role="search"] {
    order: 2;
  }

  header nav form[role="search"] input[type="search"] {
    width: 140px;
  }

  header nav form[role="search"] input[type="search"]:focus {
    width: 180px;
  }

  #hero {
    padding: 2.5rem 1.75rem;
  }
}

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

  main {
    padding: 0 1rem 3rem;
  }

  section {
    margin-bottom: 2.5rem;
  }

  #brand,
  #products,
  #solutions,
  #industry,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links,
  #author-info,
  #security {
    padding: 1.5rem;
    border-radius: var(--radius-md);
  }

  #hero {
    padding: 2rem 1.25rem;
    border-radius: var(--radius-lg);
    margin: 1.5rem 0 2rem;
  }

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

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

  #hero figure svg {
    width: 90px;
    height: 90px;
  }

  header nav[aria-label="主导航"] > a:first-child {
    font-size: 1.25rem;
  }

  header nav form[role="search"] input[type="search"] {
    width: 110px;
    font-size: 0.8rem;
    padding: 0.45rem 0.75rem;
  }

  header nav form[role="search"] input[type="search"]:focus {
    width: 140px;
  }

  header nav form[role="search"] button {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
  }

  #products ul {
    grid-template-columns: 1fr;
  }

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

  #author-info ul {
    grid-template-columns: 1fr;
  }

  #faq details summary {
    padding: 0.9rem 1rem;
    font-size: 0.9rem;
  }

  #faq details p {
    padding: 0 1rem 1rem;
    font-size: 0.875rem;
  }

  #news article,
  #articles article {
    padding: 1.15rem;
  }

  footer[role="contentinfo"] {
    padding: 2rem 1rem 1.5rem;
  }

  footer[role="contentinfo"] ul {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  main {
    padding: 0 0.75rem 2.5rem;
  }

  #hero {
    padding: 1.5rem 1rem;
  }

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

  header nav[aria-label="主导航"] {
    padding: 0.6rem 0.75rem;
  }

  header nav ul {
    gap: 0.15rem;
  }

  header nav ul li a {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }

  header nav form[role="search"] input[type="search"] {
    width: 90px;
    font-size: 0.75rem;
  }

  header nav form[role="search"] input[type="search"]:focus {
    width: 120px;
  }

  #brand,
  #products,
  #solutions,
  #industry,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links,
  #author-info,
  #security {
    padding: 1.15rem;
  }

  #sitemap ul,
  #links ul {
    gap: 0.35rem;
  }

  #sitemap ul li a,
  #links ul li a {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* ===== PRINT ===== */
@media print {
  header[role="banner"],
  footer[role="contentinfo"],
  #hero figure,
  nav[aria-label="面包屑导航"] {
    display: none;
  }

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

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

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