:root {
  --primary: #ff7eb6;
  --primary-dark: #e85a9c;
  --primary-light: #ffb3d4;
  --secondary: #7eb8ff;
  --secondary-dark: #5a9ce8;
  --accent: #b97eff;
  --accent-dark: #9a5ae8;
  --bg: #fdf6fa;
  --bg-alt: #f5eef5;
  --card-bg: rgba(255, 255, 255, 0.72);
  --card-border: rgba(255, 126, 182, 0.18);
  --text: #2d2438;
  --text-secondary: #6b5f7a;
  --text-light: #9a8fa8;
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.65);
  --shadow-sm: 0 2px 8px rgba(255, 126, 182, 0.08);
  --shadow-md: 0 8px 24px rgba(255, 126, 182, 0.12);
  --shadow-lg: 0 16px 48px rgba(255, 126, 182, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --max-width: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #ff9ec8;
    --primary-dark: #ff7eb6;
    --primary-light: #ffc4de;
    --secondary: #9ecbff;
    --secondary-dark: #7eb8ff;
    --accent: #cfa8ff;
    --accent-dark: #b97eff;
    --bg: #16121e;
    --bg-alt: #1e1828;
    --card-bg: rgba(40, 32, 52, 0.72);
    --card-border: rgba(255, 158, 200, 0.16);
    --text: #f0eaf5;
    --text-secondary: #b8aec8;
    --text-light: #8a7f9a;
    --glass-bg: rgba(40, 32, 52, 0.55);
    --glass-border: rgba(255, 158, 200, 0.2);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.32);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(255, 126, 182, 0.12), transparent 60%),
    radial-gradient(ellipse 70% 50% at 90% 20%, rgba(126, 184, 255, 0.1), transparent 55%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(185, 126, 255, 0.08), transparent 60%);
  pointer-events: none;
}

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

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

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

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

ul,
ol {
  list-style: none;
}

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

header > a:first-child {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  transition: transform var(--transition-bounce), filter var(--transition);
}

header > a:first-child:hover {
  transform: scale(1.06);
  filter: brightness(1.1);
}

header nav {
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

header nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
  white-space: nowrap;
}

header nav a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 999px;
  transition: color var(--transition), background var(--transition), transform var(--transition);
}

header nav a:hover {
  color: var(--primary-dark);
  background: rgba(255, 126, 182, 0.1);
  transform: translateY(-1px);
}

/* ===== MAIN ===== */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

/* ===== BREADCRUMB ===== */
main > nav[aria-label="面包屑导航"] {
  padding: 20px 0 8px;
}

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

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

main > nav[aria-label="面包屑导航"] li:not(:last-child)::after {
  content: "›";
  color: var(--text-light);
  opacity: 0.6;
}

main > nav[aria-label="面包屑导航"] a {
  color: var(--text-secondary);
  font-weight: 500;
}

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

/* ===== SECTIONS ===== */
section {
  margin-bottom: clamp(40px, 6vw, 72px);
}

section > h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 20px;
  position: relative;
  padding-left: 18px;
  color: var(--text);
  letter-spacing: 0.3px;
}

section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 1.1em;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  box-shadow: 0 0 12px rgba(255, 126, 182, 0.4);
}

section > h3 {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--text);
  line-height: 1.45;
}

section > p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  max-width: 72ch;
  line-height: 1.85;
}

section > ul,
section > ol {
  margin: 12px 0 18px;
  padding-left: 4px;
}

section > ul li,
section > ol li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--text-secondary);
  line-height: 1.8;
}

section > ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 8px rgba(255, 126, 182, 0.3);
}

section > ol {
  counter-reset: item;
}

section > ol li {
  counter-increment: item;
}

section > ol li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 2px 8px rgba(255, 126, 182, 0.3);
}

/* ===== HERO ===== */
#hero {
  position: relative;
  padding: clamp(40px, 7vw, 80px) clamp(20px, 5vw, 56px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, #ff9ec8 0%, #ff7eb6 25%, #b97eff 65%, #7eb8ff 100%);
  background-size: 200% 200%;
  animation: heroGradient 12s ease infinite;
  box-shadow: var(--shadow-lg);
  color: #fff;
  margin-top: 8px;
}

@keyframes heroGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

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

#hero::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
  transform: rotate(25deg);
  pointer-events: none;
  animation: heroShine 8s ease-in-out infinite;
}

@keyframes heroShine {
  0%, 100% { opacity: 0.5; transform: rotate(25deg) translateX(0); }
  50% { opacity: 0.8; transform: rotate(25deg) translateX(-40px); }
}

#hero > h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.6rem, 4.5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
}

#hero > p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  line-height: 1.85;
  max-width: 76ch;
  margin-bottom: 16px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
}

#hero > p a {
  color: #fff;
  font-weight: 600;
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 1px;
  transition: border-color var(--transition), opacity var(--transition);
}

#hero > p a:hover {
  color: #fff;
  border-color: #fff;
  opacity: 0.9;
}

/* Hero inner sections */
#hero section {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  margin-bottom: 0;
}

#hero section > h2 {
  color: #fff;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  padding-left: 0;
  margin-bottom: 18px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.12);
}

#hero section > h2::before {
  display: none;
}

#hero section > ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding: 0;
}

#hero section > ul > li {
  position: relative;
  padding: 22px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform var(--transition-bounce), background var(--transition), box-shadow var(--transition);
}

#hero section > ul > li::before {
  display: none;
}

#hero section > ul > li:hover {
  transform: translateY(-6px) scale(1.02);
  background: rgba(255, 255, 255, 0.26);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

#hero section > ul > li h3 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 8px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}

#hero section > ul > li p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 0;
  max-width: none;
}

/* Data overview */
#hero section[aria-label="数据概览"] > ul {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

#hero section[aria-label="数据概览"] > ul > li {
  text-align: center;
  padding: 20px 12px;
  font-weight: 700;
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  color: #fff;
  letter-spacing: 0.3px;
}

/* ===== CARDS (about, products, solutions, cases, news, knowledge, faq, howto, contact) ===== */
#about,
#products,
#solutions,
#cases,
#news,
#knowledge,
#faq,
#howto,
#contact,
#sitemap,
#links {
  background: var(--card-bg);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 48px);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

#about:hover,
#products:hover,
#solutions:hover,
#cases:hover,
#news:hover,
#knowledge:hover,
#faq:hover,
#howto:hover,
#contact:hover,
#sitemap:hover,
#links:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 126, 182, 0.3);
}

/* ===== NEWS & KNOWLEDGE ARTICLES ===== */
#news article,
#knowledge article {
  padding: 22px 24px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

#news article:last-child,
#knowledge article:last-child {
  margin-bottom: 0;
}

#news article:hover,
#knowledge article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 126, 182, 0.32);
  background: var(--card-bg);
}

#news article h3,
#knowledge article h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.5;
  color: var(--text);
  transition: color var(--transition);
}

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

#news article p,
#knowledge article p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 8px;
  max-width: none;
}

#news article p:first-of-type,
#knowledge article p:first-of-type {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 500;
  letter-spacing: 0.3px;
}

#news article p:last-child,
#knowledge article p:last-child {
  margin-bottom: 0;
}

#news article a,
#knowledge article a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-dark);
  transition: gap var(--transition), color var(--transition);
}

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

#news article a:hover,
#knowledge article a:hover {
  gap: 8px;
  color: var(--primary);
}

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

/* ===== FAQ ===== */
#faq h3 {
  position: relative;
  padding: 16px 20px 16px 48px;
  margin: 0 0 10px;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  border: 1px solid var(--card-border);
  cursor: default;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

#faq h3::before {
  content: "?";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 2px 8px rgba(255, 126, 182, 0.3);
}

#faq h3:hover {
  background: var(--card-bg);
  border-color: rgba(255, 126, 182, 0.3);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

#faq h3 + p {
  padding: 0 20px 16px 48px;
  margin: -4px 0 14px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.85;
  max-width: none;
}

#faq h3:last-of-type + p {
  margin-bottom: 0;
}

/* ===== HOWTO ===== */
#howto ol {
  counter-reset: item;
  padding-left: 0;
}

#howto ol li {
  padding-left: 36px;
  margin-bottom: 14px;
  position: relative;
}

#howto ol li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 2px 8px rgba(255, 126, 182, 0.3);
  transition: transform var(--transition-bounce), box-shadow var(--transition);
}

#howto ol li:hover::before {
  transform: scale(1.15);
  box-shadow: 0 4px 14px rgba(255, 126, 182, 0.45);
}

#howto ul li::before {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  box-shadow: 0 0 8px rgba(126, 184, 255, 0.3);
}

/* ===== CASES BLOCKQUOTES ===== */
#cases blockquote {
  position: relative;
  margin: 14px 0;
  padding: 20px 24px 20px 56px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

#cases blockquote::before {
  content: "\201C";
  position: absolute;
  left: 18px;
  top: 10px;
  font-size: 2.8rem;
  line-height: 1;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.35;
  font-family: Georgia, serif;
}

#cases blockquote:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--accent);
}

#cases blockquote p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
  font-style: italic;
  max-width: none;
}

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

#contact ul li {
  position: relative;
  padding: 16px 18px 16px 44px;
  margin: 0;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  border: 1px solid var(--card-border);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

#contact ul li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 10px rgba(255, 126, 182, 0.4);
}

#contact ul li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 126, 182, 0.3);
  background: var(--card-bg);
}

/* ===== SITEMAP & LINKS ===== */
#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
}

#sitemap ul li,
#links ul li {
  padding: 0;
  margin: 0;
}

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

#sitemap ul a,
#links ul a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--card-border);
  transition: color var(--transition), background var(--transition), transform var(--transition-bounce), box-shadow var(--transition), border-color var(--transition);
}

#sitemap ul a:hover,
#links ul a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 6px 20px rgba(255, 126, 182, 0.35);
}

/* ===== FOOTER ===== */
footer {
  margin-top: clamp(48px, 8vw, 80px);
  padding: clamp(32px, 6vw, 56px) clamp(16px, 4vw, 40px) 32px;
  background: linear-gradient(180deg, transparent, rgba(255, 126, 182, 0.06));
  border-top: 1px solid var(--card-border);
}

footer section {
  max-width: var(--max-width);
  margin: 0 auto 24px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

footer section:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 126, 182, 0.25);
  transform: translateY(-2px);
}

footer section h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  padding-left: 14px;
  position: relative;
  color: var(--text);
}

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

footer section p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: none;
  margin: 0;
}

footer > p {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 16px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-light);
  border-top: 1px solid var(--card-border);
  letter-spacing: 0.3px;
}

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

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

section {
  animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#hero {
  animation: heroGradient 12s ease infinite, fadeInScale 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#about { animation-delay: 0.05s; }
#products { animation-delay: 0.1s; }
#solutions { animation-delay: 0.15s; }
#cases { animation-delay: 0.2s; }
#news { animation-delay: 0.25s; }
#knowledge { animation-delay: 0.3s; }
#faq { animation-delay: 0.35s; }
#howto { animation-delay: 0.4s; }
#contact { animation-delay: 0.45s; }

#news article,
#knowledge article {
  animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#news article:nth-child(1) { animation-delay: 0.05s; }
#news article:nth-child(2) { animation-delay: 0.12s; }
#news article:nth-child(3) { animation-delay: 0.19s; }

#knowledge article:nth-child(1) { animation-delay: 0.05s; }
#knowledge article:nth-child(2) { animation-delay: 0.1s; }
#knowledge article:nth-child(3) { animation-delay: 0.15s; }
#knowledge article:nth-child(4) { animation-delay: 0.2s; }
#knowledge article:nth-child(5) { animation-delay: 0.25s; }
#knowledge article:nth-child(6) { animation-delay: 0.3s; }
#knowledge article:nth-child(7) { animation-delay: 0.35s; }
#knowledge article:nth-child(8) { animation-delay: 0.4s; }
#knowledge article:nth-child(9) { animation-delay: 0.45s; }
#knowledge article:nth-child(10) { animation-delay: 0.5s; }

@supports (animation-timeline: view()) {
  section {
    animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }

  #hero {
    animation: heroGradient 12s ease infinite;
    animation-timeline: auto;
  }
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  header {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 16px;
  }

  header > a:first-child {
    text-align: center;
    font-size: 1.2rem;
  }

  header nav ul {
    justify-content: flex-start;
    gap: 2px;
    padding-bottom: 2px;
  }

  header nav a {
    padding: 5px 10px;
    font-size: 0.8rem;
  }

  html {
    scroll-padding-top: 120px;
  }

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

  #hero section > ul {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #hero section[aria-label="数据概览"] > ul {
    grid-template-columns: repeat(2, 1fr);
  }

  #about,
  #products,
  #solutions,
  #cases,
  #news,
  #knowledge,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links {
    border-radius: var(--radius-md);
    padding: 24px 18px;
  }

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

  footer section {
    padding: 16px 18px;
  }
}

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

  header nav a {
    padding: 4px 8px;
    font-size: 0.75rem;
  }

  #hero > h1 {
    font-size: 1.45rem;
  }

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

  #hero section[aria-label="数据概览"] > ul {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  #hero section[aria-label="数据概览"] > ul > li {
    padding: 14px 8px;
    font-size: 0.78rem;
  }

  section > h2 {
    font-size: 1.25rem;
    padding-left: 14px;
  }

  section > h2::before {
    width: 4px;
  }

  #faq h3 {
    padding: 14px 16px 14px 42px;
    font-size: 0.9rem;
  }

  #faq h3::before {
    left: 12px;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
  }

  #faq h3 + p {
    padding: 0 16px 14px 42px;
    font-size: 0.82rem;
  }

  #cases blockquote {
    padding: 18px 18px 18px 46px;
  }

  #cases blockquote::before {
    left: 14px;
    font-size: 2.2rem;
  }

  #sitemap ul a,
  #links ul a {
    padding: 6px 14px;
    font-size: 0.78rem;
  }

  footer section h2 {
    font-size: 0.92rem;
  }

  footer section p {
    font-size: 0.78rem;
  }
}

/* ===== PRINT ===== */
@media print {
  header,
  footer,
  #hero::before,
  #hero::after {
    display: none;
  }

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

  #hero {
    background: #f5f5f5;
    color: #000;
    animation: none;
  }

  #hero > h1,
  #hero > p,
  #hero section > h2,
  #hero section > ul > li h3,
  #hero section > ul > li p {
    color: #000;
    text-shadow: none;
  }

  section {
    animation: none;
    break-inside: avoid;
  }
}