:root {
  --primary: #6d28d9;
  --primary-dark: #5b21b6;
  --primary-light: #8b5cf6;
  --accent: #fbbf24;
  --accent-dark: #f59e0b;
  --bg: #f8f7fc;
  --bg-alt: #ffffff;
  --bg-elevated: rgba(255, 255, 255, 0.72);
  --text: #1e1b2e;
  --text-muted: #5c5873;
  --text-light: #8b879e;
  --border: rgba(109, 40, 217, 0.12);
  --shadow-sm: 0 2px 8px rgba(30, 27, 46, 0.06);
  --shadow-md: 0 8px 24px rgba(30, 27, 46, 0.1);
  --shadow-lg: 0 16px 48px rgba(109, 40, 217, 0.16);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 72px;
  --gradient-hero: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 40%, #a78bfa 70%, #fbbf24 100%);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 247, 252, 0.6));
  --gradient-accent: linear-gradient(135deg, #fbbf24, #f59e0b);
}

[data-theme="dark"] {
  --primary: #a78bfa;
  --primary-dark: #8b5cf6;
  --primary-light: #c4b5fd;
  --accent: #fbbf24;
  --accent-dark: #f59e0b;
  --bg: #0f0d1a;
  --bg-alt: #17142a;
  --bg-elevated: rgba(30, 27, 46, 0.72);
  --text: #ede9fe;
  --text-muted: #b4b0c8;
  --text-light: #8b879e;
  --border: rgba(167, 139, 250, 0.18);
  --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);
  --gradient-hero: linear-gradient(135deg, #2e1065 0%, #4c1d95 40%, #6d28d9 70%, #b45309 100%);
  --gradient-card: linear-gradient(145deg, rgba(30, 27, 46, 0.9), rgba(23, 20, 42, 0.6));
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

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

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== Header ========== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-elevated);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--primary);
}

.brand svg {
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}

.brand:hover svg {
  transform: rotate(-6deg) scale(1.05);
}

.brand-text {
  white-space: nowrap;
}

nav[aria-label="主导航"] {
  flex: 1;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-list::-webkit-scrollbar {
  display: none;
}

.nav-list a {
  display: block;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all var(--transition);
}

.nav-list a:hover {
  color: var(--primary);
  background: rgba(109, 40, 217, 0.08);
}

.site-search {
  display: flex;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
}

.site-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.15);
}

.site-search input {
  border: none;
  background: transparent;
  padding: 8px 16px;
  font-size: 0.875rem;
  color: var(--text);
  width: 180px;
  outline: none;
}

.site-search input::placeholder {
  color: var(--text-light);
}

.site-search button {
  padding: 8px 18px;
  background: var(--primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background var(--transition);
}

.site-search button:hover {
  background: var(--primary-dark);
}

#theme-toggle,
#menu-toggle {
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-alt);
  transition: all var(--transition);
  flex-shrink: 0;
}

#theme-toggle:hover,
#menu-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

#menu-toggle {
  display: none;
}

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

/* ========== Hero ========== */
.hero {
  position: relative;
  margin: 32px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gradient-hero);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding: 56px 48px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.25), transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(251, 191, 36, 0.3), transparent 45%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  color: #fff;
}

.hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.hero-lead {
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 28px;
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 12px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform var(--transition), background var(--transition);
}

.hero-stats li:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.22);
}

.stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
}

/* Hero slider */
.hero-slider {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 32px 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  color: #fff;
}

.slide {
  display: none;
  animation: fadeSlide 0.5s ease;
}

.slide.active {
  display: block;
}

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

.slide h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.slide p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.slider-dots {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.slider-dots button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all var(--transition);
}

.slider-dots button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.slider-dots button[aria-selected="true"] {
  background: var(--accent);
  color: #1e1b2e;
  border-color: var(--accent);
  transform: scale(1.08);
}

/* ========== Breadcrumb ========== */
.breadcrumb {
  margin: 24px 0;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--text-muted);
}

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

.breadcrumb [aria-current="page"] {
  color: var(--primary);
  font-weight: 600;
}

/* ========== Anchor nav ========== */
.anchor-nav {
  position: sticky;
  top: var(--header-height);
  z-index: 900;
  margin: 0 0 32px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.anchor-nav ul {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.anchor-nav ul::-webkit-scrollbar {
  display: none;
}

.anchor-nav a {
  display: block;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all var(--transition);
}

.anchor-nav a:hover {
  color: var(--primary);
  background: rgba(109, 40, 217, 0.08);
}

/* ========== Sections ========== */
main > section {
  margin: 56px 0;
  scroll-margin-top: calc(var(--header-height) + 60px);
}

main > section > h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 5px solid var(--primary);
  line-height: 1.3;
}

main > section > h3,
main > section > article h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 28px 0 10px;
  color: var(--text);
  letter-spacing: -0.01em;
}

main > section > p {
  color: var(--text-muted);
  margin-bottom: 14px;
  max-width: 78ch;
}

main > section > h3 + p {
  color: var(--text-muted);
  max-width: 78ch;
}

/* Card-based sections */
#intro,
#history,
#culture,
#products,
#advantages,
#solutions,
#applications,
#knowledge,
#howto,
#contact {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

#intro:hover,
#products:hover,
#advantages:hover,
#solutions:hover,
#howto:hover {
  box-shadow: var(--shadow-md);
}

/* ========== Cases ========== */
#cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

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

#cases > h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--primary);
}

#cases > p {
  margin: 0;
  padding: 24px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  color: var(--text-muted);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

#cases > p:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

/* ========== Reviews ========== */
#reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

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

#reviews blockquote {
  position: relative;
  padding: 28px 24px 24px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

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

#reviews blockquote p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ========== News ========== */
#news {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

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

#news > h3 {
  margin: 0 0 8px;
  padding: 24px 24px 0;
  font-size: 1.05rem;
  color: var(--text);
}

#news > p {
  margin: 0;
  padding: 0 24px 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

#news > h3,
#news > p {
  background: var(--bg-alt);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

#news > h3 {
  border-top: 1px solid var(--border);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  transition: color var(--transition);
}

#news > p {
  border-bottom: 1px solid var(--border);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

#news > h3:nth-of-type(1) {
  grid-column: auto;
}

#news > h3:hover {
  color: var(--primary);
}

/* ========== Articles ========== */
#articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

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

#articles article {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

#articles article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

#articles article h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.45;
  color: var(--text);
  transition: color var(--transition);
}

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

#articles .meta {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}

#articles article > p:not(.meta) {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.75;
  flex: 1;
  margin-bottom: 16px;
}

#articles article > a {
  align-self: flex-start;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(109, 40, 217, 0.08);
  transition: all var(--transition);
}

#articles article > a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateX(4px);
}

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

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

#faq details[open] {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

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

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform var(--transition);
}

#faq details[open] summary::after {
  content: "\2212";
}

#faq summary:hover {
  color: var(--primary);
  background: rgba(109, 40, 217, 0.05);
}

#faq details p {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.8;
  animation: fadeIn 0.4s ease;
}

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

/* ========== HowTo list ========== */
#howto ol {
  counter-reset: step;
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 14px 20px 14px 60px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  transition: transform var(--transition), border-color var(--transition);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50%;
}

#howto ol li:hover {
  transform: translateX(6px);
  border-color: var(--primary-light);
}

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

#contact ul li {
  padding: 14px 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: border-color var(--transition), transform var(--transition);
}

#contact ul li:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

/* ========== Sitemap & Links ========== */
#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#sitemap a,
#links a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ========== Footer ========== */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
  margin-top: 40px;
}

footer > section {
  max-width: 1280px;
  margin: 0 auto 32px;
}

footer h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

footer h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 16px 0 6px;
  color: var(--primary);
}

footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 78ch;
}

footer > section[aria-labelledby="footer-legal"] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px 32px;
}

footer > section[aria-labelledby="footer-legal"] h2 {
  grid-column: 1 / -1;
}

footer > section[aria-labelledby="footer-legal"] h3 {
  margin-top: 12px;
}

.copyright {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ========== Back to top ========== */
#back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  padding: 12px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--transition);
}

#back-to-top.visible,
#back-to-top:focus-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ========== Scroll animations ========== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ========== Responsive ========== */
@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 44px 36px;
  }

  .hero-slider {
    min-height: auto;
  }

  .site-search input {
    width: 140px;
  }
}

@media (max-width: 900px) {
  .nav-list {
    display: none;
  }

  nav[aria-label="主导航"] {
    flex: 0;
  }

  #menu-toggle {
    display: inline-block;
    margin-left: auto;
  }

  nav[aria-label="主导航"].open {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
    box-shadow: var(--shadow-md);
  }

  nav[aria-label="主导航"].open .nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  nav[aria-label="主导航"].open .nav-list a {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
  }

  .site-search {
    display: none;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .header-inner {
    padding: 0 16px;
    gap: 10px;
  }

  .brand-text {
    display: none;
  }

  main {
    padding: 0 16px 60px;
  }

  .hero {
    padding: 32px 22px;
    margin: 20px 0;
    border-radius: var(--radius-md);
  }

  .hero-lead {
    font-size: 0.92rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .hero-slider {
    padding: 24px 20px 20px;
  }

  .anchor-nav {
    padding: 8px 10px;
    border-radius: var(--radius-sm);
  }

  main > section {
    margin: 40px 0;
  }

  #intro,
  #history,
  #culture,
  #products,
  #advantages,
  #solutions,
  #applications,
  #knowledge,
  #howto,
  #contact {
    padding: 28px 20px;
    border-radius: var(--radius-md);
  }

  main > section > h2 {
    font-size: 1.3rem;
    padding-left: 12px;
    border-left-width: 4px;
  }

  #cases,
  #reviews,
  #news,
  #articles {
    grid-template-columns: 1fr;
  }

  #articles article {
    padding: 22px 18px;
  }

  #faq summary {
    padding: 16px 46px 16px 18px;
    font-size: 0.92rem;
  }

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

  #howto ol li {
    padding: 12px 16px 12px 52px;
  }

  footer {
    padding: 36px 16px 24px;
  }

  #back-to-top {
    right: 16px;
    bottom: 16px;
    padding: 10px 16px;
    font-size: 0.8rem;
  }
}

@media (max-width: 420px) {
  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stat-num {
    font-size: 1.35rem;
  }

  .stat-label {
    font-size: 0.72rem;
  }

  .slider-dots button {
    width: 30px;
    height: 30px;
  }
}