:root {
  --brand-hue: 18;
  --brand-primary: hsl(18, 62%, 52%);
  --brand-primary-dark: hsl(18, 62%, 42%);
  --brand-primary-light: hsl(18, 62%, 62%);
  --brand-secondary: hsl(160, 38%, 48%);
  --brand-accent: hsl(42, 78%, 58%);
  --bg-body: #faf8f5;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f7f3ee;
  --bg-elevated: rgba(255, 255, 255, 0.72);
  --bg-glass: rgba(255, 255, 255, 0.55);
  --bg-glass-strong: rgba(255, 255, 255, 0.78);
  --text-primary: #1e1e1e;
  --text-secondary: #2e2e2e;
  --text-tertiary: #6b6b6b;
  --text-muted: #8a8a8a;
  --border-color: #e6e0d8;
  --border-light: #efeae3;
  --shadow-sm: 0 1px 3px rgba(30, 20, 10, 0.04);
  --shadow-md: 0 4px 16px rgba(30, 20, 10, 0.06);
  --shadow-lg: 0 12px 40px rgba(30, 20, 10, 0.1);
  --shadow-glow: 0 8px 32px hsla(18, 62%, 52%, 0.18);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-serif: Georgia, 'Times New Roman', 'Songti SC', 'SimSun', serif;
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  --header-height: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-body: #141414;
    --bg-surface: #1f1f1f;
    --bg-surface-alt: #262626;
    --bg-elevated: rgba(31, 31, 31, 0.82);
    --bg-glass: rgba(31, 31, 31, 0.6);
    --bg-glass-strong: rgba(31, 31, 31, 0.85);
    --text-primary: #f0f0f0;
    --text-secondary: #d8d8d8;
    --text-tertiary: #a0a0a0;
    --text-muted: #7a7a7a;
    --border-color: #333333;
    --border-light: #2c2c2c;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 8px 32px hsla(18, 62%, 52%, 0.25);
    --brand-primary: hsl(18, 62%, 58%);
    --brand-primary-dark: hsl(18, 62%, 48%);
    --brand-primary-light: hsl(18, 62%, 68%);
  }
}

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

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

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

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, hsla(18, 62%, 52%, 0.06), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 10%, hsla(160, 38%, 48%, 0.05), transparent 55%),
    radial-gradient(ellipse 70% 60% at 50% 100%, hsla(42, 78%, 58%, 0.04), transparent 60%);
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

@media (prefers-color-scheme: dark) {
  body::before {
    opacity: 0.5;
  }
}

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

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

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

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

ul,
ol {
  padding-left: 1.4em;
}

li {
  margin-bottom: 0.35em;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 700;
  color: var(--text-primary);
  scroll-margin-top: calc(var(--header-height) + 20px);
}

h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin: 28px 0 20px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--brand-primary) 60%, var(--brand-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin: 48px 0 20px;
  padding-left: 18px;
  border-left: 4px solid var(--brand-primary);
  position: relative;
  letter-spacing: -0.01em;
}

h2::after {
  content: '';
  position: absolute;
  left: -4px;
  bottom: -8px;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), transparent);
  border-radius: 2px;
  opacity: 0.4;
}

h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  margin: 32px 0 12px;
  color: var(--text-secondary);
}

h4 {
  font-size: 1.05rem;
  margin: 22px 0 10px;
  color: var(--text-secondary);
}

p {
  margin: 0 0 1em;
}

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

blockquote {
  margin: 0;
  padding: 20px 24px;
  border-left: 4px solid var(--brand-primary);
  background: var(--bg-surface-alt);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: normal;
  color: var(--text-secondary);
  position: relative;
}

blockquote::before {
  content: '\201C';
  position: absolute;
  top: 4px;
  left: 10px;
  font-size: 3rem;
  color: var(--brand-primary);
  opacity: 0.15;
  font-family: var(--font-serif);
  line-height: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

header {
  background: var(--bg-glass-strong);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

header.scrolled {
  box-shadow: var(--shadow-md);
}

header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-primary), transparent);
  opacity: 0.3;
}

nav[aria-label="主导航"] ul {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  flex-wrap: wrap;
  align-items: center;
}

nav[aria-label="主导航"] a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  position: relative;
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}

nav[aria-label="主导航"] a::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, hsla(18, 62%, 52%, 0.1), hsla(160, 38%, 48%, 0.08));
  opacity: 0;
  transform: scale(0.85);
  transition: opacity var(--transition-fast), transform var(--transition-spring);
  z-index: -1;
}

nav[aria-label="主导航"] a:hover {
  color: var(--brand-primary);
  transform: translateY(-1px);
}

nav[aria-label="主导航"] a:hover::before {
  opacity: 1;
  transform: scale(1);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  padding: 16px 0 4px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.breadcrumb li + li::before {
  content: '/';
  color: var(--text-muted);
  margin-right: 4px;
  font-size: 0.8rem;
}

.breadcrumb a {
  color: var(--text-tertiary);
  text-decoration: none;
  padding: 2px 4px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--brand-primary);
  background: hsla(18, 62%, 52%, 0.08);
}

main {
  padding-bottom: 40px;
}

section {
  margin-bottom: 48px;
  animation: fadeInUp 0.6s ease both;
}

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

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

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

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 hsla(18, 62%, 52%, 0.3);
  }
  50% {
    box-shadow: 0 0 0 8px hsla(18, 62%, 52%, 0);
  }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), background var(--transition-base);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary), var(--brand-accent));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: hsla(18, 62%, 52%, 0.2);
}

.card:hover::before {
  opacity: 1;
}

.card > h3:first-child,
.card > h4:first-child {
  margin-top: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.grid .card {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}

.grid .card p {
  flex: 1;
}

article.card {
  padding: 24px;
}

article.card h3 {
  margin-top: 0;
  font-size: 1.08rem;
  line-height: 1.45;
  transition: color var(--transition-fast);
}

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

article.card a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: auto;
  padding-top: 12px;
  color: var(--brand-primary);
  transition: gap var(--transition-fast), color var(--transition-fast);
}

article.card a::after {
  content: '\2192';
  transition: transform var(--transition-fast);
}

article.card a:hover {
  gap: 8px;
  color: var(--brand-primary-dark);
}

article.card a:hover::after {
  transform: translateX(3px);
}

.meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-primary);
  opacity: 0.5;
  flex-shrink: 0;
}

.tag {
  display: inline-block;
  background: linear-gradient(135deg, hsla(18, 62%, 52%, 0.12), hsla(160, 38%, 48%, 0.1));
  color: var(--brand-primary-dark);
  padding: 3px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 500;
  margin-right: 8px;
  margin-bottom: 4px;
  border: 1px solid hsla(18, 62%, 52%, 0.15);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.tag:hover {
  background: linear-gradient(135deg, hsla(18, 62%, 52%, 0.2), hsla(160, 38%, 48%, 0.16));
  transform: translateY(-1px);
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 16px 0;
  transition: background var(--transition-fast);
  border-radius: var(--radius-sm);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item:hover {
  background: var(--bg-surface-alt);
  padding-left: 12px;
  padding-right: 12px;
}

.faq-q {
  font-weight: 650;
  cursor: pointer;
  margin: 0;
  padding: 4px 0;
  font-size: 1.02rem;
  color: var(--text-primary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  transition: color var(--transition-fast);
  position: relative;
}

.faq-q::before {
  content: 'Q';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 2px 6px hsla(18, 62%, 52%, 0.25);
}

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

.faq-a {
  padding: 8px 0 4px 32px;
  color: var(--text-tertiary);
  font-size: 0.94rem;
  line-height: 1.8;
  animation: fadeIn 0.3s ease;
}

.faq-a p {
  margin: 0;
}

figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

figure:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

figure svg {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-slow);
}

figure:hover svg {
  transform: scale(1.04);
}

figcaption {
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--text-tertiary);
  text-align: center;
  border-top: 1px solid var(--border-light);
  background: var(--bg-surface-alt);
  font-weight: 500;
}

#intro-heading + .card,
section[aria-labelledby="intro-heading"] .card {
  background: linear-gradient(135deg, var(--bg-glass-strong), var(--bg-glass));
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid hsla(18, 62%, 52%, 0.12);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

@media (prefers-color-scheme: dark) {
  section[aria-labelledby="intro-heading"] .card {
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }
}

section[aria-labelledby="intro-heading"] .card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, hsla(18, 62%, 52%, 0.08), transparent 70%);
  pointer-events: none;
}

#brand {
  position: relative;
}

#brand::before {
  content: '';
  position: absolute;
  top: 0;
  left: -20px;
  right: -20px;
  height: 100%;
  background: linear-gradient(180deg, hsla(18, 62%, 52%, 0.03), transparent 60%);
  border-radius: var(--radius-xl);
  pointer-events: none;
  z-index: -1;
}

#products .grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

#products .card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

#products .card h3::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  flex-shrink: 0;
  box-shadow: 0 2px 6px hsla(18, 62%, 52%, 0.3);
}

#solutions h3 {
  padding-left: 16px;
  border-left: 3px solid var(--brand-secondary);
  margin-left: 2px;
}

#cases blockquote.card {
  padding: 24px 28px;
  font-size: 0.95rem;
  line-height: 1.8;
  border-left: 4px solid var(--brand-primary);
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-surface-alt));
}

#cases blockquote.card::before {
  font-size: 3.5rem;
  top: 0;
  left: 8px;
  opacity: 0.1;
}

#news .card {
  border-left: 4px solid transparent;
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

#news .card:hover {
  border-left-color: var(--brand-primary);
}

#news .card h3 {
  margin-top: 0;
  font-size: 1.15rem;
  transition: color var(--transition-fast);
}

#news .card:hover h3 {
  color: var(--brand-primary);
}

#articles .grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

#articles > p {
  color: var(--text-tertiary);
  font-size: 0.95rem;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: var(--bg-surface-alt);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--brand-accent);
}

#faq {
  counter-reset: faq-counter;
}

#faq .faq-item {
  counter-increment: faq-counter;
}

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

#howto ol li {
  counter-increment: howto-counter;
  position: relative;
  padding-left: 48px;
  margin-bottom: 16px;
  min-height: 32px;
  display: flex;
  align-items: flex-start;
}

#howto ol li::before {
  content: counter(howto-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light));
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px hsla(18, 62%, 52%, 0.3);
  flex-shrink: 0;
}

#howto ul {
  list-style: none;
  padding-left: 0;
}

#howto ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
}

#howto ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--brand-secondary);
  transform: rotate(45deg);
  opacity: 0.7;
}

#contact .card {
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-surface-alt));
}

#contact .card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-primary-dark);
}

#contact .card h3::before {
  content: '';
  width: 6px;
  height: 24px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--brand-primary), var(--brand-accent));
  flex-shrink: 0;
}

#contact p {
  margin-bottom: 8px;
  font-size: 0.94rem;
}

#contact p strong {
  color: var(--text-secondary);
}

section[aria-labelledby="footer-info"] .grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

section[aria-labelledby="footer-info"] .card {
  padding: 22px;
}

section[aria-labelledby="footer-info"] .card h4 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 1rem;
  color: var(--brand-primary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

section[aria-labelledby="footer-info"] .card h4::before {
  content: '';
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--brand-primary);
  flex-shrink: 0;
}

section[aria-labelledby="footer-info"] .card ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

section[aria-labelledby="footer-info"] .card ul li {
  margin-bottom: 8px;
}

section[aria-labelledby="footer-info"] .card ul a {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

section[aria-labelledby="footer-info"] .card ul a::before {
  content: '\203A';
  color: var(--brand-primary);
  font-weight: 700;
  opacity: 0.5;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

section[aria-labelledby="footer-info"] .card ul a:hover {
  color: var(--brand-primary);
  transform: translateX(3px);
}

section[aria-labelledby="footer-info"] .card ul a:hover::before {
  opacity: 1;
}

section[aria-labelledby="footer-info"] .card p {
  font-size: 0.88rem;
  color: var(--text-tertiary);
  line-height: 1.7;
  margin: 0;
}

section[aria-labelledby="security"] {
  background: linear-gradient(135deg, hsla(160, 38%, 48%, 0.06), hsla(18, 62%, 52%, 0.04));
  border-radius: var(--radius-xl);
  padding: 32px;
  border: 1px solid hsla(160, 38%, 48%, 0.12);
  position: relative;
  overflow: hidden;
}

section[aria-labelledby="security"]::before {
  content: '\1F512';
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2.5rem;
  opacity: 0.12;
}

section[aria-labelledby="security"] h2 {
  border-left-color: var(--brand-secondary);
  margin-top: 0;
}

section[aria-labelledby="security"] p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

section[aria-labelledby="gallery"] .grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

footer {
  background: linear-gradient(180deg, var(--bg-surface-alt), var(--bg-body));
  color: var(--text-tertiary);
  padding: 48px 0 32px;
  margin-top: 64px;
  border-top: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary), var(--brand-accent), var(--brand-primary));
  background-size: 200% 100%;
  animation: shimmer 4s linear infinite;
}

footer p {
  margin: 0 0 10px;
  font-size: 0.88rem;
  line-height: 1.7;
}

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

footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--brand-primary);
  transition: width var(--transition-base);
}

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

footer a:hover::after {
  width: 100%;
}

footer .container > p:first-child {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 16px;
}

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

::selection {
  background: hsla(18, 62%, 52%, 0.2);
  color: var(--text-primary);
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand-primary-light), var(--brand-primary));
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg-surface-alt);
}

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

@media (max-width: 1024px) {
  .container {
    padding: 0 18px;
  }
  h2 {
    margin: 40px 0 18px;
  }
  .card {
    padding: 24px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 56px;
  }
  body {
    font-size: 15px;
  }
  .container {
    padding: 0 16px;
  }
  nav[aria-label="主导航"] ul {
    gap: 2px;
    padding: 8px 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  nav[aria-label="主导航"] ul::-webkit-scrollbar {
    display: none;
  }
  nav[aria-label="主导航"] a {
    font-size: 0.85rem;
    padding: 7px 12px;
  }
  h1 {
    font-size: 1.5rem;
    margin: 20px 0 16px;
  }
  h2 {
    font-size: 1.25rem;
    margin: 32px 0 16px;
    padding-left: 14px;
  }
  h3 {
    font-size: 1.08rem;
    margin: 24px 0 10px;
  }
  .card {
    padding: 20px;
    border-radius: var(--radius-md);
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  #articles .grid,
  #products .grid,
  section[aria-labelledby="footer-info"] .grid {
    grid-template-columns: 1fr;
  }
  section[aria-labelledby="security"] {
    padding: 24px 20px;
  }
  section[aria-labelledby="security"]::before {
    font-size: 2rem;
    top: 16px;
    right: 18px;
  }
  .faq-a {
    padding-left: 0;
  }
  .faq-item:hover {
    padding-left: 8px;
    padding-right: 8px;
  }
  footer {
    padding: 36px 0 24px;
    margin-top: 48px;
  }
  figure:hover {
    transform: translateY(-3px);
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14.5px;
  }
  .container {
    padding: 0 14px;
  }
  .card {
    padding: 18px;
    border-radius: var(--radius-md);
  }
  h1 {
    font-size: 1.35rem;
  }
  h2 {
    font-size: 1.15rem;
    padding-left: 12px;
  }
  nav[aria-label="主导航"] a {
    font-size: 0.8rem;
    padding: 6px 10px;
  }
  #howto ol li {
    padding-left: 40px;
  }
  #howto ol li::before {
    width: 28px;
    height: 28px;
    font-size: 0.78rem;
  }
  .faq-q {
    font-size: 0.95rem;
  }
  .faq-q::before {
    width: 20px;
    height: 20px;
    font-size: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  section {
    animation: none;
  }
}

@media print {
  header,
  footer,
  nav,
  .breadcrumb {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
  h2 {
    border-left-color: #000;
  }
}

@supports (backdrop-filter: blur(1px)) {
  header {
    background: var(--bg-glass);
  }
  .card {
    background: var(--bg-elevated);
  }
}

@supports not (backdrop-filter: blur(1px)) {
  header {
    background: var(--bg-surface);
  }
  .card {
    background: var(--bg-surface);
  }
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-4px);
  }
  nav[aria-label="主导航"] a:hover {
    transform: translateY(-1px);
  }
}

@media (hover: none) {
  .card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
  .card:active {
    transform: scale(0.99);
    background: var(--bg-surface-alt);
  }
  figure:hover {
    transform: none;
  }
  figure:active {
    transform: scale(0.99);
  }
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.card:focus-within {
  box-shadow: var(--shadow-md), 0 0 0 3px hsla(18, 62%, 52%, 0.15);
  border-color: hsla(18, 62%, 52%, 0.3);
}

a[href^="#"]:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

#brand h3:first-of-type {
  margin-top: 20px;
}

#brand h3::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-primary);
  margin-right: 8px;
  vertical-align: middle;
  opacity: 0.6;
}

#solutions h3::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-secondary);
  margin-right: 8px;
  vertical-align: middle;
  opacity: 0.6;
}

#cases h3::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-accent);
  margin-right: 8px;
  vertical-align: middle;
  opacity: 0.6;
}

#howto h3 {
  color: var(--brand-primary-dark);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

#howto h3::before {
  content: '';
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand-primary), var(--brand-accent));
  flex-shrink: 0;
}

#howto > p:last-of-type {
  background: linear-gradient(135deg, hsla(42, 78%, 58%, 0.08), hsla(18, 62%, 52%, 0.06));
  padding: 20px 24px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--brand-accent);
  font-weight: 500;
  color: var(--text-secondary);
}

section[aria-labelledby="gallery"] h2 {
  border-left-color: var(--brand-accent);
}

section[aria-labelledby="gallery"] h2::after {
  background: linear-gradient(90deg, var(--brand-accent), transparent);
}

#contact h2 {
  border-left-color: var(--brand-primary);
}

section[aria-labelledby="footer-info"] h2 {
  border-left-color: var(--brand-secondary);
}

section[aria-labelledby="footer-info"] h2::after {
  background: linear-gradient(90deg, var(--brand-secondary), transparent);
}

@media (min-width: 1200px) {
  .container {
    padding: 0 24px;
  }
  .grid {
    gap: 24px;
  }
}

@media (min-width: 1440px) {
  .container {
    max-width: 1280px;
  }
}

body {
  background-image:
    radial-gradient(circle at 20% 80%, hsla(18, 62%, 52%, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, hsla(160, 38%, 48%, 0.03) 0%, transparent 50%);
  background-attachment: fixed;
}

@media (prefers-color-scheme: dark) {
  body {
    background-image:
      radial-gradient(circle at 20% 80%, hsla(18, 62%, 52%, 0.05) 0%, transparent 50%),
      radial-gradient(circle at 80% 20%, hsla(160, 38%, 48%, 0.04) 0%, transparent 50%);
  }
}

.card,
.faq-item,
figure,
blockquote {
  will-change: transform;
}

.card:active {
  transition-duration: 0.1s;
}

#faq .faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

#faq .faq-item:first-child {
  padding-top: 8px;
}

#news .card:last-child {
  margin-bottom: 0;
}

#contact .card:last-child {
  margin-bottom: 0;
}

section:last-of-type {
  margin-bottom: 0;
}

main > section:last-child {
  margin-bottom: 20px;
}

footer .container p:last-child {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  font-size: 0.82rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  footer .container p:last-child {
    margin-top: 12px;
    padding-top: 12px;
  }
}

a[href="#article1"],
a[href="#article2"],
a[href="#article3"],
a[href="#article4"],
a[href="#article5"],
a[href="#article6"],
a[href="#article7"],
a[href="#article8"],
a[href="#article9"],
a[href="#article10"] {
  font-size: 0.86rem;
}

#articles article.card {
  border-top: 3px solid transparent;
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

#articles article.card:hover {
  border-top-color: var(--brand-primary);
}

#articles article.card:nth-child(3n+1):hover {
  border-top-color: var(--brand-primary);
}

#articles article.card:nth-child(3n+2):hover {
  border-top-color: var(--brand-secondary);
}

#articles article.card:nth-child(3n+3):hover {
  border-top-color: var(--brand-accent);
}

#products .card:nth-child(1) h3::before {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
}

#products .card:nth-child(2) h3::before {
  background: linear-gradient(135deg, var(--brand-secondary), var(--brand-primary-light));
}

#products .card:nth-child(3) h3::before {
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-primary));
}

#products .card:nth-child(4) h3::before {
  background: linear-gradient(135deg, var(--brand-primary-light), var(--brand-secondary));
}

#cases blockquote.card:nth-child(1) {
  border-left-color: var(--brand-primary);
}

#cases blockquote.card:nth-child(2) {
  border-left-color: var(--brand-secondary);
}

#cases blockquote.card:nth-child(3) {
  border-left-color: var(--brand-accent);
}

@media (min-width: 769px) {
  #faq .faq-item {
    padding: 18px 8px;
  }
  #faq .faq-item:hover {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }
  .card {
    padding: 16px;
  }
  h1 {
    font-size: 1.25rem;
  }
  h2 {
    font-size: 1.08rem;
  }
  nav[aria-label="主导航"] a {
    font-size: 0.76rem;
    padding: 5px 8px;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  header {
    position: relative;
  }
  nav[aria-label="主导航"] ul {
    padding: 6px 0;
  }
}

@media (min-resolution: 2dppx) {
  .card {
    border-width: 0.5px;
  }
}

@media (prefers-contrast: more) {
  :root {
    --border-color: #999;
    --border-light: #bbb;
    --text-tertiary: #444;
  }
  .card {
    border-width: 2px;
  }
  a {
    text-decoration: underline;
  }
}

@media (prefers-color-scheme: dark) and (prefers-contrast: more) {
  :root {
    --border-color: #666;
    --border-light: #555;
    --text-tertiary: #ccc;
  }
}

::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

input,
textarea,
select,
button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
  margin: 32px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.92rem;
}

th,
td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

th {
  background: var(--bg-surface-alt);
  font-weight: 600;
  color: var(--text-secondary);
}

tr:hover td {
  background: var(--bg-surface-alt);
}

@media (max-width: 600px) {
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

code {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.88em;
  background: var(--bg-surface-alt);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  color: var(--brand-primary-dark);
  border: 1px solid var(--border-light);
}

pre {
  background: var(--bg-surface-alt);
  padding: 20px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  border: 1px solid var(--border-light);
  font-size: 0.88rem;
  line-height: 1.6;
}

pre code {
  background: none;
  padding: 0;
  border: none;
}

mark {
  background: linear-gradient(135deg, hsla(42, 78%, 58%, 0.35), hsla(18, 62%, 52%, 0.25));
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--text-primary);
}

[hidden] {
  display: none !important;
}

:target {
  animation: pulseGlow 1.5s ease;
}

@media (prefers-color-scheme: dark) {
  :target {
    animation: none;
  }
}

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

.clearfix::after {
  content: '';
  display: table;
  clear: both;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mb-1 { margin-bottom: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.mb-3 { margin-bottom: 24px !important; }

@media (max-width: 768px) {
  .mt-3 { margin-top: 16px !important; }
  .mb-3 { margin-bottom: 16px !important; }
}

.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

@media (max-width: 768px) {
  .gap-3 { gap: 16px; }
}

.rounded {
  border-radius: var(--radius-md);
}

.shadow {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.border {
  border: 1px solid var(--border-color);
}

.overflow-hidden {
  overflow: hidden;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.cursor-pointer {
  cursor: pointer;
}

.select-none {
  user-select: none;
  -webkit-user-select: none;
}

.transition {
  transition: all var(--transition-base);
}

.opacity-0 {
  opacity: 0;
}

.opacity-100 {
  opacity: 1;
}

@media (prefers-color-scheme: dark) {
  .card::before {
    opacity: 0.8;
  }
  header::after {
    opacity: 0.2;
  }
  footer::before {
    opacity: 0.7;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
  }
  #articles .grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

@media (max-width: 768px) {
  section {
    margin-bottom: 36px;
  }
  section[aria-labelledby="security"] {
    margin-bottom: 36px;
  }
}

@media (max-width: 480px) {
  section {
    margin-bottom: 28px;
  }
}

@media (prefers-color-scheme: dark) {
  blockquote {
    background: var(--bg-surface-alt);
  }
  blockquote::before {
    opacity: 0.2;
  }
  .tag {
    background: linear-gradient(135deg, hsla(18, 62%, 58%, 0.15), hsla(160, 38%, 48%, 0.12));
    color: var(--brand-primary-light);
    border-color: hsla(18, 62%, 58%, 0.2);
  }
  .tag:hover {
    background: linear-gradient(135deg, hsla(18, 62%, 58%, 0.25), hsla(160, 38%, 48%, 0.2));
  }
  code {
    color: var(--brand-primary-light);
  }
}

@media (min-width: 769px) {
  #faq {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 1025px) {
  #howto {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  #faq,
  #howto {
    max-width: 100%;
  }
}

@media (prefers-color-scheme: dark) {
  ::-webkit-scrollbar-track {
    background: var(--bg-body);
  }
  ::-webkit-scrollbar-thumb {
    border-color: var(--bg-body);
  }
}

@media (prefers-color-scheme: dark) {
  ::selection {
    background: hsla(18, 62%, 58%, 0.3);
  }
}

@media (max-width: 768px) {
  .grid .card {
    margin-bottom: 0;
  }
  .grid {
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .grid {
    gap: 12px;
  }
}

@media (min-width: 1200px) {
  #articles .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 769px) and (max-width: 1199px) {
  #articles .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  #articles .grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1200px) {
  #products .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 769px) and (max-width: 1199px) {
  #products .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  #products .grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1200px) {
  section[aria-labelledby="footer-info"] .grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 769px) and (max-width: 1199px) {
  section[aria-labelledby="footer-info"] .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  section[aria-labelledby="footer-info"] .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  section[aria-labelledby="footer-info"] .grid {
    grid-template-columns: 1fr;
  }
}