:root {
  --primary: #2b4c7e;
  --primary-light: #3d6aad;
  --primary-dark: #1e3658;
  --accent: #f2c14e;
  --accent-warm: #e86a5c;
  --accent-soft: #f7d98b;
  --bg: #f5f7fb;
  --bg-alt: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-glass: rgba(255, 255, 255, 0.55);
  --text: #1a2233;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --border: rgba(43, 76, 126, 0.12);
  --border-light: rgba(43, 76, 126, 0.08);
  --shadow-sm: 0 2px 8px rgba(43, 76, 126, 0.06);
  --shadow-md: 0 8px 24px rgba(43, 76, 126, 0.1);
  --shadow-lg: 0 16px 48px rgba(43, 76, 126, 0.14);
  --shadow-glow: 0 0 40px rgba(43, 76, 126, 0.15);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-serif: "Georgia", "Songti SC", "SimSun", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #5b8fd4;
    --primary-light: #7aaae8;
    --primary-dark: #3d6aad;
    --accent: #f2c14e;
    --accent-warm: #e86a5c;
    --accent-soft: #d4a83a;
    --bg: #0f1520;
    --bg-alt: #171f2e;
    --bg-card: rgba(23, 31, 46, 0.78);
    --bg-glass: rgba(23, 31, 46, 0.6);
    --text: #e8edf5;
    --text-secondary: #a8b6cc;
    --text-muted: #6b7a94;
    --border: rgba(91, 143, 212, 0.18);
    --border-light: rgba(91, 143, 212, 0.1);
    --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);
    --shadow-glow: 0 0 40px rgba(91, 143, 212, 0.2);
  }
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-base), color var(--transition-base);
  background-image:
    radial-gradient(ellipse at 10% 0%, rgba(43, 76, 126, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 100%, rgba(242, 193, 78, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

@media (prefers-color-scheme: dark) {
  body {
    background-image:
      radial-gradient(ellipse at 10% 0%, rgba(91, 143, 212, 0.08) 0%, transparent 50%),
      radial-gradient(ellipse at 90% 100%, rgba(242, 193, 78, 0.04) 0%, transparent 50%);
  }
}

::selection {
  background: rgba(43, 76, 126, 0.2);
  color: var(--text);
}

@media (prefers-color-scheme: dark) {
  ::selection {
    background: rgba(91, 143, 212, 0.35);
  }
}

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

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

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

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

ul, ol {
  list-style: none;
}

/* ========== HEADER ========== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 2rem;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

header > div:first-child {
  display: flex;
  align-items: center;
}

header > div:first-child a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 700;
}

header > div:first-child a:hover {
  color: var(--primary);
}

header > div:first-child a svg {
  flex-shrink: 0;
  border-radius: 10px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

header > div:first-child a:hover svg {
  transform: rotate(-6deg) scale(1.08);
  box-shadow: 0 4px 16px rgba(43, 76, 126, 0.3);
}

header > div:first-child a strong {
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

header nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

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

header nav ul li a {
  display: block;
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 999px;
  white-space: nowrap;
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
  position: relative;
}

header nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width var(--transition-base);
}

header nav ul li a:hover {
  color: var(--primary);
  background: rgba(43, 76, 126, 0.06);
  transform: translateY(-1px);
}

@media (prefers-color-scheme: dark) {
  header nav ul li a:hover {
    background: rgba(91, 143, 212, 0.12);
  }
}

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

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

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

header form[role="search"] input[type="search"] {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 180px;
  outline: none;
  transition: width var(--transition-base), border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

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

header form[role="search"] input[type="search"]:focus {
  width: 240px;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43, 76, 126, 0.12);
}

@media (prefers-color-scheme: dark) {
  header form[role="search"] input[type="search"]:focus {
    box-shadow: 0 0 0 3px rgba(91, 143, 212, 0.2);
  }
}

header form[role="search"] button {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: none;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

header form[role="search"] button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(43, 76, 126, 0.35);
  filter: brightness(1.08);
}

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

/* ========== MAIN LAYOUT ========== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

main > section {
  margin-bottom: 3.5rem;
  scroll-margin-top: 90px;
  animation: fadeInUp 0.7s ease-out both;
}

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

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

/* ========== HERO ========== */
#hero {
  position: relative;
  padding: 4rem 3rem;
  margin-top: 2rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #2b4c7e 0%, #3d6aad 40%, #5b8fd4 70%, #7aaae8 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

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

#hero::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232, 106, 92, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: heroFloat 10s ease-in-out infinite reverse;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 20px) scale(1.08); }
}

#hero h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

#hero p {
  position: relative;
  z-index: 1;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.92);
  max-width: 70ch;
  margin-bottom: 1.25rem;
}

#hero p:last-of-type {
  margin-bottom: 2rem;
}

#hero nav[aria-label="页面锚点导航"] {
  position: relative;
  z-index: 1;
}

#hero nav[aria-label="页面锚点导航"] ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

#hero nav[aria-label="页面锚点导航"] ul li a {
  display: inline-block;
  padding: 0.5rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

#hero nav[aria-label="页面锚点导航"] ul li a:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ========== SECTION HEADINGS ========== */
main > section > h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  position: relative;
  letter-spacing: -0.01em;
}

main > section > h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--accent-warm));
  transition: width var(--transition-slow);
}

main > section:hover > h2::after {
  width: 120px;
}

main > section > h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  font-weight: 700;
  color: var(--primary);
  margin: 1.75rem 0 0.75rem;
  padding-left: 0.9rem;
  border-left: 4px solid var(--accent);
  line-height: 1.5;
}

@media (prefers-color-scheme: dark) {
  main > section > h3 {
    color: var(--primary-light);
  }
}

main > section > p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-secondary);
  max-width: 80ch;
  margin-bottom: 1rem;
}

/* ========== CARD-LIKE SECTIONS ========== */
#brand,
#products,
#solutions,
#cases,
#news,
#articles,
#faq,
#howto,
#contact,
#sitemap,
#links,
#legal {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
}

#brand:hover,
#products:hover,
#solutions:hover,
#cases:hover,
#news:hover,
#articles:hover,
#faq:hover,
#howto:hover,
#contact:hover,
#sitemap:hover,
#links:hover,
#legal:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border);
  transform: translateY(-2px);
}

/* ========== LISTS ========== */
main > section ul:not([class]) {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0;
}

main > section ul:not([class]) li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

main > section ul:not([class]) li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

main > section ul:not([class]) li:hover {
  color: var(--text);
  transform: translateX(4px);
}

main > section ul:not([class]) li:hover::before {
  transform: scale(1.4);
  box-shadow: 0 0 12px rgba(43, 76, 126, 0.4);
}

main > section ol:not([class]) {
  counter-reset: step-counter;
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}

main > section ol:not([class]) li {
  position: relative;
  padding-left: 2.75rem;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
  counter-increment: step-counter;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

main > section ol:not([class]) li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.9rem;
  height: 1.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(43, 76, 126, 0.3);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

main > section ol:not([class]) li:hover {
  color: var(--text);
  transform: translateX(4px);
}

main > section ol:not([class]) li:hover::before {
  transform: scale(1.12);
  box-shadow: 0 4px 14px rgba(43, 76, 126, 0.45);
}

/* ========== ARTICLES ========== */
#articles article {
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

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

#articles article:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}

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

#articles article h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.4rem;
  padding: 0;
  border: none;
  line-height: 1.5;
  transition: color var(--transition-fast);
}

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

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

#articles article p:first-of-type {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

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

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

#articles article a:hover {
  color: var(--accent-warm);
  gap: 0.6rem;
}

#articles article a:hover::after {
  transform: translateX(3px);
}

/* ========== BLOCKQUOTES (CASES) ========== */
#cases blockquote {
  position: relative;
  background: var(--bg-alt);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.5rem 1.25rem 2.5rem;
  margin: 0.875rem 0;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

#cases blockquote::before {
  content: "\201C";
  position: absolute;
  left: 0.75rem;
  top: 0.5rem;
  font-size: 2.5rem;
  line-height: 1;
  font-family: var(--font-serif);
  color: var(--accent);
  opacity: 0.6;
}

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

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

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

#faq details:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--border);
  transform: translateY(-1px);
}

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

#faq details summary {
  position: relative;
  padding: 1rem 3rem 1rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: color var(--transition-fast), background var(--transition-fast);
  user-select: none;
}

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

#faq details summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(43, 76, 126, 0.08);
  border-radius: 50%;
  transition: transform var(--transition-base), background var(--transition-fast), color var(--transition-fast);
}

@media (prefers-color-scheme: dark) {
  #faq details summary::after {
    background: rgba(91, 143, 212, 0.15);
  }
}

#faq details[open] summary {
  color: var(--primary);
  background: rgba(43, 76, 126, 0.04);
}

@media (prefers-color-scheme: dark) {
  #faq details[open] summary {
    background: rgba(91, 143, 212, 0.08);
  }
}

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

#faq details p {
  padding: 0 1.5rem 1.25rem 1.5rem;
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--text-secondary);
  animation: slideDown 0.35s ease-out;
}

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

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

#contact ul li,
#sitemap ul li,
#links ul li {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

#contact ul li:hover,
#sitemap ul li:hover,
#links ul li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--primary);
  color: var(--text);
}

#sitemap ul li a,
#links ul li a {
  display: block;
  font-weight: 500;
  color: var(--primary);
  transition: color var(--transition-fast);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  color: var(--accent-warm);
}

/* ========== LEGAL ========== */
#legal h3 {
  margin-top: 1.5rem;
}

#legal h3:first-of-type {
  margin-top: 0.5rem;
}

#legal p {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

/* ========== FOOTER ========== */
footer {
  position: relative;
  margin-top: 2rem;
  padding: 3rem 2rem 2rem;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border-light);
  text-align: center;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--accent-warm), var(--primary));
  background-size: 300% 100%;
  animation: gradientShift 6s linear infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

footer p {
  font-size: 0.85rem;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

footer p:first-of-type {
  font-weight: 600;
  color: var(--text-secondary);
}

footer p:last-of-type {
  margin-top: 1.25rem;
  margin-bottom: 0;
}

footer p a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 999px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

footer p a::before {
  content: "↑";
  font-size: 1rem;
  transition: transform var(--transition-fast);
}

footer p a:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(43, 76, 126, 0.35);
  filter: brightness(1.1);
}

footer p a:hover::before {
  transform: translateY(-2px);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary-light), var(--accent));
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  header {
    padding: 0.75rem 1.25rem;
    gap: 0.75rem;
  }

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

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

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

  main {
    padding: 0 1.5rem 3rem;
  }

  #hero {
    padding: 3rem 2rem;
  }

  #brand,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links,
  #legal {
    padding: 2rem 1.75rem;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }

  header > div:first-child {
    justify-content: center;
  }

  header > div:first-child a strong {
    font-size: 0.95rem;
  }

  header nav {
    order: 3;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
  }

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

  header nav ul {
    flex-wrap: nowrap;
    gap: 0.15rem;
    justify-content: flex-start;
    padding: 0 0.25rem;
  }

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

  header form[role="search"] {
    order: 2;
    width: 100%;
  }

  header form[role="search"] input[type="search"] {
    flex: 1;
    width: auto;
  }

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

  main {
    padding: 0 1rem 2.5rem;
  }

  main > section {
    margin-bottom: 2.5rem;
  }

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

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

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

  #hero nav[aria-label="页面锚点导航"] ul {
    gap: 0.4rem;
  }

  #hero nav[aria-label="页面锚点导航"] ul li a {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
  }

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

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

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

  #articles article {
    padding: 1.25rem 1rem;
  }

  #articles article h3 {
    font-size: 1.05rem;
  }

  #cases blockquote {
    padding: 1rem 1.25rem 1rem 2.25rem;
  }

  #faq details summary {
    padding: 0.875rem 2.75rem 0.875rem 1.25rem;
    font-size: 0.9rem;
  }

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

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

  footer {
    padding: 2.25rem 1.25rem 1.5rem;
  }

  footer p {
    font-size: 0.8rem;
  }
}

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

  #hero {
    padding: 1.75rem 1.25rem;
  }

  #hero h1 {
    font-size: 1.35rem;
    line-height: 1.35;
  }

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

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

  main > section > p {
    font-size: 0.9rem;
  }

  main > section ul:not([class]) li,
  main > section ol:not([class]) li {
    font-size: 0.875rem;
  }

  #brand,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links,
  #legal {
    padding: 1.25rem 1rem;
  }

  #articles article {
    padding: 1rem 0.875rem;
  }

  #cases blockquote {
    padding: 0.875rem 1rem 0.875rem 2rem;
  }

  #cases blockquote::before {
    font-size: 2rem;
    left: 0.5rem;
  }

  footer p a {
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
  }
}

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

  main > section {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ========== PRINT ========== */
@media print {
  header,
  footer,
  #hero nav,
  header form[role="search"] {
    display: none;
  }

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

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

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