:root {
  --primary: #1a5490;
  --primary-light: #2e7bc4;
  --primary-dark: #0f3a66;
  --accent: #e8a33d;
  --accent-light: #f5c06e;
  --accent-dark: #c98520;
  --bg: #f4f7fb;
  --bg-alt: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.65);
  --bg-glass-strong: rgba(255, 255, 255, 0.82);
  --text: #1c2733;
  --text-secondary: #4a5a6a;
  --text-muted: #7a8a9a;
  --border: rgba(26, 84, 144, 0.12);
  --border-strong: rgba(26, 84, 144, 0.22);
  --shadow-sm: 0 2px 8px rgba(15, 58, 102, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 58, 102, 0.1);
  --shadow-lg: 0 16px 48px rgba(15, 58, 102, 0.14);
  --shadow-glow: 0 0 0 3px rgba(46, 123, 196, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Fira Code", Consolas, monospace;
  --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);
  --header-height: 72px;
  --max-width: 1200px;
  --gradient-hero: linear-gradient(135deg, #0f3a66 0%, #1a5490 35%, #2e7bc4 70%, #4a9ee0 100%);
  --gradient-accent: linear-gradient(135deg, #e8a33d 0%, #f5c06e 100%);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(244, 247, 251, 0.7) 100%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1520;
    --bg-alt: #131e2b;
    --bg-glass: rgba(19, 30, 43, 0.65);
    --bg-glass-strong: rgba(19, 30, 43, 0.85);
    --text: #e8eef5;
    --text-secondary: #a8b8c8;
    --text-muted: #6e8090;
    --border: rgba(74, 158, 224, 0.15);
    --border-strong: rgba(74, 158, 224, 0.28);
    --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 0 3px rgba(74, 158, 224, 0.25);
    --gradient-hero: linear-gradient(135deg, #081220 0%, #0f3a66 40%, #1a5490 75%, #2e7bc4 100%);
    --gradient-card: linear-gradient(145deg, rgba(19, 30, 43, 0.9) 0%, rgba(13, 21, 32, 0.7) 100%);
  }
}

[data-theme="dark"] {
  --bg: #0d1520;
  --bg-alt: #131e2b;
  --bg-glass: rgba(19, 30, 43, 0.65);
  --bg-glass-strong: rgba(19, 30, 43, 0.85);
  --text: #e8eef5;
  --text-secondary: #a8b8c8;
  --text-muted: #6e8090;
  --border: rgba(74, 158, 224, 0.15);
  --border-strong: rgba(74, 158, 224, 0.28);
  --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 0 3px rgba(74, 158, 224, 0.25);
  --gradient-hero: linear-gradient(135deg, #081220 0%, #0f3a66 40%, #1a5490 75%, #2e7bc4 100%);
  --gradient-card: linear-gradient(145deg, rgba(19, 30, 43, 0.9) 0%, rgba(13, 21, 32, 0.7) 100%);
}

[data-theme="light"] {
  --bg: #f4f7fb;
  --bg-alt: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.65);
  --bg-glass-strong: rgba(255, 255, 255, 0.82);
  --text: #1c2733;
  --text-secondary: #4a5a6a;
  --text-muted: #7a8a9a;
  --border: rgba(26, 84, 144, 0.12);
  --border-strong: rgba(26, 84, 144, 0.22);
  --shadow-sm: 0 2px 8px rgba(15, 58, 102, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 58, 102, 0.1);
  --shadow-lg: 0 16px 48px rgba(15, 58, 102, 0.14);
  --shadow-glow: 0 0 0 3px rgba(46, 123, 196, 0.18);
  --gradient-hero: linear-gradient(135deg, #0f3a66 0%, #1a5490 35%, #2e7bc4 70%, #4a9ee0 100%);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(244, 247, 251, 0.7) 100%);
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(46, 123, 196, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(232, 163, 61, 0.05) 0%, transparent 45%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color var(--transition-base), color var(--transition-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  letter-spacing: -0.01em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p {
  margin-bottom: 0.85em;
  color: var(--text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  padding-left: 1.5em;
  margin-bottom: 0.85em;
  color: var(--text-secondary);
}

li {
  margin-bottom: 0.4em;
}

li::marker {
  color: var(--primary-light);
}

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

blockquote {
  position: relative;
  margin: 1.2em 0;
  padding: 1.2em 1.4em 1.2em 2.8em;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
  color: var(--text-secondary);
  font-style: italic;
}

blockquote::before {
  content: "\201C";
  position: absolute;
  left: 0.5em;
  top: 0.1em;
  font-size: 2.6em;
  line-height: 1;
  color: var(--accent);
  opacity: 0.55;
  font-family: Georgia, serif;
}

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

time {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

::selection {
  background: var(--primary-light);
  color: #fff;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg);
}

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

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

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

header > div > a {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.02em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

header > div > a::before {
  content: "";
  display: inline-block;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--gradient-accent);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

header > div > a:hover {
  transform: translateY(-1px);
  color: var(--primary-light);
}

header nav {
  flex: 1;
  min-width: 0;
}

header nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

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

header nav ul li {
  margin: 0;
  flex-shrink: 0;
}

header nav ul li a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: all var(--transition-fast);
  position: relative;
}

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

header nav ul li a:hover {
  color: var(--primary-light);
  background: rgba(46, 123, 196, 0.08);
}

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

header form[role="search"] {
  display: flex;
  align-items: center;
  gap: 6px;
  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"] {
  width: 180px;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  outline: none;
  transition: all var(--transition-fast);
}

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

header form[role="search"] input[type="search"]:focus {
  width: 220px;
  border-color: var(--primary-light);
  box-shadow: var(--shadow-glow);
  background: var(--bg-alt);
}

header form[role="search"] button[type="submit"] {
  padding: 8px 16px;
  font-size: 0.88rem;
  font-family: inherit;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

header form[role="search"] button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.08);
}

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

header > div > button {
  padding: 8px 16px;
  font-size: 0.88rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

header > div > button:hover {
  color: var(--primary-light);
  border-color: var(--primary-light);
  background: rgba(46, 123, 196, 0.08);
  transform: translateY(-1px);
}

header > div > button:last-child {
  display: none;
}

nav[aria-label="面包屑导航"] {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px 0;
}

nav[aria-label="面包屑导航"] ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

nav[aria-label="面包屑导航"] ol li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--text-muted);
  opacity: 0.6;
}

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

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

nav[aria-label="面包屑导航"] ol li[aria-current="page"] {
  color: var(--text-secondary);
  font-weight: 500;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 24px 64px;
}

section {
  margin-bottom: 48px;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

section > h2 {
  position: relative;
  margin-bottom: 24px;
  padding-left: 20px;
  font-size: 1.9rem;
}

section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 5px;
  border-radius: 3px;
  background: var(--gradient-accent);
}

section > h3 {
  margin: 24px 0 10px;
  color: var(--primary);
}

#hero {
  position: relative;
  margin: 0 -24px 56px;
  padding: 56px 48px 48px;
  border-radius: var(--radius-xl);
  background: var(--gradient-hero);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(232, 163, 61, 0.22) 0%, transparent 45%);
  z-index: -1;
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  animation: floatOrb 12s ease-in-out infinite;
}

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

#hero h1 {
  color: #fff;
  font-size: 2.4rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.8s var(--transition-base) both;
}

#hero > p:first-of-type {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  max-width: 820px;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s 0.1s var(--transition-base) both;
}

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

#hero [role="region"][aria-label="Banner轮播"] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}

#hero [role="region"][aria-label="Banner轮播"] article {
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-base), background var(--transition-base), box-shadow var(--transition-base);
  animation: fadeInUp 0.8s var(--transition-base) both;
}

#hero [role="region"][aria-label="Banner轮播"] article:nth-child(1) { animation-delay: 0.15s; }
#hero [role="region"][aria-label="Banner轮播"] article:nth-child(2) { animation-delay: 0.25s; }
#hero [role="region"][aria-label="Banner轮播"] article:nth-child(3) { animation-delay: 0.35s; }

#hero [role="region"][aria-label="Banner轮播"] article:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

#hero [role="region"][aria-label="Banner轮播"] article h2 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 8px;
  padding-left: 0;
}

#hero [role="region"][aria-label="Banner轮播"] article h2::before {
  display: none;
}

#hero [role="region"][aria-label="Banner轮播"] article p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  margin: 0;
}

#hero > ul {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  animation: fadeInUp 0.8s 0.45s var(--transition-base) both;
}

#hero > ul li {
  margin: 0;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  text-align: center;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

#hero > ul li:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.18);
}

#hero > ul li strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-light);
  line-height: 1.2;
  margin-bottom: 2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#hero > p:last-of-type {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
  animation: fadeInUp 0.8s 0.55s var(--transition-base) both;
}

#hero > p:last-of-type a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  text-decoration: none;
}

#hero > p:last-of-type a:first-child {
  color: var(--primary-dark);
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

#hero > p:last-of-type a:first-child:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  background: var(--accent-light);
}

#hero > p:last-of-type a:last-child {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#hero > p:last-of-type a:last-child:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.22);
  border-color: #fff;
}

#intro,
#products,
#solutions,
#cases,
#news,
#articles,
#faq,
#howto,
#contact,
#sitemap,
#links {
  padding: 36px 32px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

#intro:hover,
#products:hover,
#solutions:hover,
#cases:hover,
#news:hover,
#articles:hover,
#faq:hover,
#howto:hover,
#contact:hover,
#sitemap:hover,
#links:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

#intro > p:last-of-type {
  margin-top: 24px;
  padding: 14px 20px;
  background: rgba(232, 163, 61, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

#products > ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

#products > ul li {
  position: relative;
  margin: 0;
  padding: 16px 18px 16px 44px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

#products > ul li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(26, 84, 144, 0.3);
}

#products > ul li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

#solutions > h3,
#cases > h3,
#howto > h3 {
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border-strong);
}

#cases blockquote {
  margin: 18px 0;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

#news {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

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

#news article {
  padding: 22px 24px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

#news article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

#news article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

#news article:hover::before {
  transform: scaleX(1);
}

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

#news article p {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

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

#articles {
  display: block;
}

#articles > h2 {
  margin-bottom: 28px;
}

#articles > article {
  position: relative;
  padding: 24px 26px;
  margin-bottom: 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  overflow: hidden;
}

#articles > article::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition-base);
}

#articles > article:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

#articles > article:hover::after {
  transform: scaleY(1);
}

#articles > article h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
  color: var(--text);
  transition: color var(--transition-fast);
}

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

#articles > article p {
  font-size: 0.93rem;
  margin-bottom: 10px;
}

#articles > article p:last-child {
  margin-bottom: 0;
}

#articles > article > p:last-child a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-light);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

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

#articles > article > p:last-child a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

#articles > article > p:last-child a:hover::after {
  transform: translateX(4px);
}

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

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

#faq details:last-child {
  margin-bottom: 0;
}

#faq summary {
  position: relative;
  padding: 16px 48px 16px 20px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: background var(--transition-fast), color var(--transition-fast);
  user-select: none;
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--primary-light);
  background: rgba(46, 123, 196, 0.1);
  border-radius: 50%;
  transition: transform var(--transition-base), background var(--transition-fast), color var(--transition-fast);
}

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

#faq summary:hover {
  background: rgba(46, 123, 196, 0.06);
  color: var(--primary-light);
}

#faq details > p {
  padding: 0 20px 18px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  animation: faqReveal 0.35s ease both;
}

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

#howto ol {
  counter-reset: howto-step;
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

#howto ol li {
  counter-increment: howto-step;
  position: relative;
  margin-bottom: 12px;
  padding: 16px 20px 16px 60px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.93rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

#howto ol li::before {
  content: counter(howto-step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(26, 84, 144, 0.3);
}

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

#howto > ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
}

#howto > ul li {
  position: relative;
  margin: 0;
  padding: 12px 16px 12px 40px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

#howto > ul li::before {
  content: "•";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--accent);
  line-height: 1;
}

#howto > ul li:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

#howto > h3:last-of-type + p {
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(26, 84, 144, 0.06) 0%, rgba(232, 163, 61, 0.06) 100%);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 0.95rem;
}

#contact > ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

#contact > ul li {
  position: relative;
  margin: 0;
  padding: 16px 18px 16px 46px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  word-break: break-word;
}

#contact > ul li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gradient-accent);
  box-shadow: 0 0 0 3px rgba(232, 163, 61, 0.18);
}

#contact > ul li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--accent);
}

#contact > ul li a {
  font-weight: 600;
  word-break: break-all;
}

#contact > h3 {
  margin-top: 28px;
}

#sitemap > ul,
#links > ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

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

#sitemap > ul li a:hover,
#links > ul li a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

footer {
  position: relative;
  margin-top: 32px;
  padding: 48px 24px 32px;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
}

footer > section {
  max-width: var(--max-width);
  margin: 0 auto 28px;
  padding: 24px 28px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

footer > section > h2 {
  position: relative;
  margin-bottom: 14px;
  padding-left: 16px;
  font-size: 1.15rem;
}

footer > section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 4px;
  border-radius: 2px;
  background: var(--gradient-accent);
}

footer > section > p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
}

footer > p {
  max-width: var(--max-width);
  margin: 0 auto 8px;
  padding: 0 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

footer > p:last-child {
  margin-top: 20px;
  margin-bottom: 0;
}

footer > p:last-child a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-light);
  background: var(--bg-glass);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

footer > p:last-child a::before {
  content: "↑";
  transition: transform var(--transition-fast);
}

footer > p:last-child a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

@media (max-width: 1080px) {
  header form[role="search"] input[type="search"] {
    width: 140px;
  }
  header form[role="search"] input[type="search"]:focus {
    width: 170px;
  }
  header nav ul li a {
    padding: 8px 10px;
    font-size: 0.86rem;
  }
  #hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 64px;
  }
  header > div {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 20px;
    gap: 12px;
  }
  header nav {
    order: 3;
    flex-basis: 100%;
    width: 100%;
  }
  header nav ul {
    justify-content: flex-start;
    padding-bottom: 4px;
  }
  header form[role="search"] {
    margin-left: auto;
  }
  header form[role="search"] input[type="search"] {
    width: 120px;
  }
  header form[role="search"] input[type="search"]:focus {
    width: 150px;
  }
  header > div > button:last-child {
    display: inline-block;
  }
  #hero {
    padding: 40px 28px 36px;
  }
  #hero h1 {
    font-size: 1.75rem;
  }
  section > h2 {
    font-size: 1.6rem;
  }
  #intro,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links {
    padding: 28px 22px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
    line-height: 1.7;
  }
  header > div {
    padding: 10px 16px;
    gap: 10px;
  }
  header > div > a {
    font-size: 1.2rem;
  }
  header > div > a::before {
    width: 28px;
    height: 28px;
  }
  header form[role="search"] {
    flex-basis: 100%;
    order: 4;
    width: 100%;
  }
  header form[role="search"] input[type="search"],
  header form[role="search"] input[type="search"]:focus {
    flex: 1;
    width: auto;
  }
  header > div > button {
    padding: 7px 12px;
    font-size: 0.8rem;
  }
  nav[aria-label="面包屑导航"] {
    padding: 12px 16px 0;
  }
  main {
    padding: 16px 16px 48px;
  }
  section {
    margin-bottom: 32px;
  }
  section > h2 {
    font-size: 1.4rem;
    padding-left: 16px;
    margin-bottom: 18px;
  }
  section > h3 {
    font-size: 1.15rem;
  }
  #hero {
    margin: 0 -16px 36px;
    padding: 32px 20px 28px;
    border-radius: var(--radius-lg);
  }
  #hero h1 {
    font-size: 1.45rem;
    margin-bottom: 14px;
  }
  #hero > p:first-of-type {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }
  #hero [role="region"][aria-label="Banner轮播"] {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
  }
  #hero [role="region"][aria-label="Banner轮播"] article {
    padding: 18px 20px;
  }
  #hero > ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 24px;
  }
  #hero > ul li {
    padding: 12px 10px;
    font-size: 0.8rem;
  }
  #hero > ul li strong {
    font-size: 1.4rem;
  }
  #hero > p:last-of-type {
    flex-direction: column;
    gap: 10px;
  }
  #hero > p:last-of-type a {
    width: 100%;
    padding: 12px 20px;
  }
  #intro,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links {
    padding: 22px 18px;
    border-radius: var(--radius-md);
  }
  #products > ul {
    grid-template-columns: 1fr;
  }
  #news {
    grid-template-columns: 1fr;
  }
  #articles > article {
    padding: 18px 20px;
  }
  #articles > article h3 {
    font-size: 1.05rem;
  }
  #articles > article:hover {
    transform: none;
  }
  #faq summary {
    padding: 14px 44px 14px 16px;
    font-size: 0.92rem;
  }
  #faq details > p {
    padding: 0 16px 16px;
  }
  #howto ol li {
    padding: 14px 16px 14px 52px;
  }
  #howto ol li::before {
    left: 14px;
    width: 26px;
    height: 26px;
    font-size: 0.82rem;
  }
  #howto > ul {
    grid-template-columns: 1fr;
  }
  #contact > ul {
    grid-template-columns: 1fr;
  }
  blockquote {
    padding: 1em 1.2em 1em 2.4em;
  }
  footer {
    padding: 32px 16px 24px;
  }
  footer > section {
    padding: 18px 20px;
  }
  footer > section > h2 {
    font-size: 1.05rem;
  }
  #sitemap > ul,
  #links > ul {
    gap: 8px;
  }
  #sitemap > ul li a,
  #links > ul li a {
    padding: 7px 14px;
    font-size: 0.82rem;
  }
}

@media (max-width: 380px) {
  #hero > ul {
    grid-template-columns: 1fr;
  }
  header > div > a {
    font-size: 1.05rem;
  }
}

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

@media (hover: none) {
  #hero [role="region"][aria-label="Banner轮播"] article:hover,
  #products > ul li:hover,
  #news article:hover,
  #articles > article:hover,
  #contact > ul li:hover,
  #howto ol li:hover {
    transform: none;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  header {
    background: var(--bg-alt);
  }
  #hero [role="region"][aria-label="Banner轮播"] article {
    background: rgba(255, 255, 255, 0.2);
  }
  #intro,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links,
  footer > section {
    background: var(--bg-alt);
  }
}

@media print {
  header,
  nav[aria-label="面包屑导航"],
  footer,
  #hero > p:last-of-type,
  #links {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }
  section {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
  #hero {
    background: #f0f0f0 !important;
    color: #000;
    box-shadow: none;
  }
  #hero h1,
  #hero > p,
  #hero > ul li,
  #hero [role="region"] article h2,
  #hero [role="region"] article p {
    color: #000 !important;
    text-shadow: none;
  }
}