:root {
  --color-primary: #1a2744;
  --color-primary-light: #2a3a5c;
  --color-accent: #ff7a45;
  --color-accent-hover: #ff9466;
  --color-accent-soft: rgba(255, 122, 69, 0.12);
  --color-bg: #f5f7fb;
  --color-bg-alt: #eef2f9;
  --color-surface: #ffffff;
  --color-surface-glass: rgba(255, 255, 255, 0.72);
  --color-text: #1c2333;
  --color-text-secondary: #5a6478;
  --color-text-muted: #8b93a7;
  --color-border: #e2e8f2;
  --color-border-strong: #c9d4e8;
  --shadow-sm: 0 2px 8px rgba(26, 39, 68, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 39, 68, 0.1);
  --shadow-lg: 0 16px 48px rgba(26, 39, 68, 0.14);
  --shadow-glow: 0 8px 32px rgba(255, 122, 69, 0.22);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;
  --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.55s cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --max-width: 1180px;
  --header-height: 72px;
}

[data-theme="dark"] {
  --color-primary: #dfe7f7;
  --color-primary-light: #c3d0ea;
  --color-accent: #ff8b5c;
  --color-accent-hover: #ffa77e;
  --color-accent-soft: rgba(255, 139, 92, 0.16);
  --color-bg: #0d1220;
  --color-bg-alt: #131a2c;
  --color-surface: #182136;
  --color-surface-glass: rgba(24, 33, 54, 0.72);
  --color-text: #e8edf7;
  --color-text-secondary: #a7b2c9;
  --color-text-muted: #7a869e;
  --color-border: #253148;
  --color-border-strong: #33415c;
  --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 8px 32px rgba(255, 139, 92, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-primary: #dfe7f7;
    --color-primary-light: #c3d0ea;
    --color-accent: #ff8b5c;
    --color-accent-hover: #ffa77e;
    --color-accent-soft: rgba(255, 139, 92, 0.16);
    --color-bg: #0d1220;
    --color-bg-alt: #131a2c;
    --color-surface: #182136;
    --color-surface-glass: rgba(24, 33, 54, 0.72);
    --color-text: #e8edf7;
    --color-text-secondary: #a7b2c9;
    --color-text-muted: #7a869e;
    --color-border: #253148;
    --color-border-strong: #33415c;
    --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 8px 32px rgba(255, 139, 92, 0.18);
  }
}

*,
*::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(--color-text);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255, 122, 69, 0.08), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(26, 39, 68, 0.1), transparent 46%),
    radial-gradient(circle at 50% 100%, rgba(255, 122, 69, 0.05), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--transition-base), color var(--transition-base);
}

[data-theme="dark"] body {
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255, 139, 92, 0.1), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(90, 130, 220, 0.12), transparent 46%),
    radial-gradient(circle at 50% 100%, rgba(255, 139, 92, 0.06), transparent 55%);
}

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

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

ul,
ol {
  list-style: none;
}

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

h1 { font-size: clamp(1.75rem, 4.5vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3.2vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.4vw, 1.35rem); }

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

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

time {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

blockquote {
  border-left: 4px solid var(--color-accent);
  background: var(--color-accent-soft);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  margin: 1.25rem 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

blockquote p {
  color: var(--color-text);
  font-style: italic;
}

blockquote footer {
  margin-top: 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-style: normal;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem clamp(1rem, 4vw, 2.5rem);
  min-height: var(--header-height);
  background: var(--color-surface-glass);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-base), border-color var(--transition-base);
}

header > a:first-child {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1.25rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: 0 0 var(--radius-md) 0;
  z-index: 1100;
  font-weight: 600;
}

header > a:first-child:focus {
  left: 0;
}

header > div {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

header > div svg {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

header > div:hover svg {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: var(--shadow-md);
}

header > div strong {
  font-size: 1.3rem;
  background: linear-gradient(120deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

header > div span {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
}

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

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

header nav a {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  border-radius: var(--radius-full);
  position: relative;
  transition: color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast);
}

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

header nav a:hover,
header nav a:focus-visible {
  color: var(--color-accent);
  background: var(--color-accent-soft);
  transform: translateY(-2px);
}

header nav a:hover::after,
header nav a:focus-visible::after {
  width: 60%;
}

header form[role="search"] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 1 320px;
  min-width: 0;
}

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

header form[role="search"] input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

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

header form[role="search"] input[type="search"]:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-soft);
  background: var(--color-surface);
  outline: none;
}

header form[role="search"] button[type="submit"] {
  flex-shrink: 0;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--color-accent), #ff5c2b);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

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

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

header > button[type="button"] {
  flex-shrink: 0;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

header > button[type="button"]:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
  transform: translateY(-2px);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 3.5rem);
}

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

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

@supports (animation-timeline: view()) {
  main > section,
  main > nav {
    animation: fadeInUp linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}

#hero {
  position: relative;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 3rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #1a2744 0%, #2d4470 45%, #ff7a45 130%);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 122, 69, 0.4), transparent 45%),
    radial-gradient(circle at 10% 92%, rgba(120, 170, 255, 0.28), transparent 48%);
  z-index: -1;
}

#hero::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 68%);
  border-radius: 50%;
  animation: floatGlow 9s ease-in-out infinite;
  z-index: -1;
}

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

#hero h1 {
  color: #fff;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

#hero p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 72ch;
  margin-bottom: 1rem;
  font-size: 1.02rem;
}

#hero p strong {
  color: #ffd9c4;
}

#hero > div {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

#hero > div svg {
  width: min(100%, 420px);
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform var(--transition-slow);
}

#hero > div:hover svg {
  transform: translateY(-6px) scale(1.02);
}

#hero > div p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  margin: 0;
}

nav[aria-label="面包屑导航"] {
  padding: 0.75rem 1.25rem;
  background: var(--color-surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

nav[aria-label="面包屑导航"] ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

nav[aria-label="面包屑导航"] li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
}

nav[aria-label="面包屑导航"] li + li::before {
  content: "/";
  color: var(--color-border-strong);
  font-weight: 400;
}

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

main > section:not(#hero) {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}

main > section:not(#hero):hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-strong);
}

main > section > h2 {
  position: relative;
  padding-bottom: 0.85rem;
  margin-bottom: 1.5rem;
}

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

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

main > section h3 {
  margin: 1.75rem 0 0.75rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

main > section h3::before {
  content: "";
  width: 6px;
  height: 1.1em;
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, var(--color-accent), #ff5c2b);
  flex-shrink: 0;
}

main > section h3:first-of-type {
  margin-top: 0.5rem;
}

main > section p {
  margin-bottom: 0.85rem;
}

main > section ul,
main > section ol {
  margin: 0.75rem 0 1.25rem;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

main > section ul li,
main > section ol li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

main > section ul li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), #ff5c2b);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

main > section ol {
  counter-reset: step;
}

main > section ol li {
  counter-increment: step;
  padding-left: 2.5rem;
}

main > section ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

main > section ol li strong {
  color: var(--color-accent);
}

#products ul,
#solutions ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

#products ul li,
#solutions ul li {
  padding: 1rem 1rem 1rem 2.25rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

#products ul li:hover,
#solutions ul li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

#products ul li::before,
#solutions ul li::before {
  left: 0.85rem;
  top: 1.35em;
}

#cases blockquote {
  position: relative;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

#news,
#articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

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

#news article,
#articles article {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), background-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

#news article::before,
#articles article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), #ff5c2b);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

#news article:hover,
#articles article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
  background: var(--color-surface);
}

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

#news article h3,
#articles article h3 {
  margin: 0;
  font-size: 1.15rem;
  transition: color var(--transition-fast);
}

#news article:hover h3,
#articles article:hover h3 {
  color: var(--color-accent);
}

#news article h3::before,
#articles article h3::before {
  display: none;
}

#news article p,
#articles article p {
  margin: 0;
  font-size: 0.95rem;
}

#news article a,
#articles article a {
  align-self: flex-start;
  margin-top: auto;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

#news article a:hover,
#articles article a:hover {
  background: var(--color-accent);
  color: #fff;
  transform: translateX(4px);
  box-shadow: var(--shadow-glow);
}

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

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

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

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

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

#faq summary::after {
  content: "";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--transition-base);
}

#faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

#faq summary:hover {
  color: var(--color-accent);
  background: var(--color-accent-soft);
}

#faq details p {
  padding: 0 1.25rem 1.25rem;
  margin: 0;
  font-size: 0.95rem;
  animation: fadeInUp 0.35s ease both;
}

#howto ol {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

#howto ol li {
  padding: 1.25rem 1.25rem 1.25rem 3.25rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

#howto ol li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

#howto ol li::before {
  left: 1rem;
  top: 1.15rem;
  width: 1.75rem;
  height: 1.75rem;
}

#contact ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
}

#contact ul li {
  padding: 0.9rem 1rem 0.9rem 2.25rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  transition: all var(--transition-base);
}

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

#contact ul li::before {
  left: 0.85rem;
  top: 1.25em;
}

#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

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

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

#sitemap a,
#links a {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--color-accent), #ff5c2b);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

footer {
  margin-top: clamp(2rem, 5vw, 4rem);
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2rem) 2rem;
  background: linear-gradient(160deg, #1a2744 0%, #131c33 100%);
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 100%;
}

footer section {
  max-width: 60ch;
}

footer h2 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.85rem;
  position: relative;
  padding-bottom: 0.6rem;
}

footer h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--color-accent), #ff5c2b);
}

footer p {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.9rem;
  line-height: 1.8;
}

footer nav {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

footer nav a {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

footer nav a:hover {
  color: #fff;
  background: var(--color-accent);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

footer > p:last-child {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

body > button[type="button"]:last-of-type {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 900;
  width: 48px;
  height: 48px;
  padding: 0;
  font-size: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--color-accent), #ff5c2b);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: transform var(--transition-base), box-shadow var(--transition-base), opacity var(--transition-base);
  opacity: 0.92;
}

body > button[type="button"]:last-of-type::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-top: 3px solid #fff;
  border-left: 3px solid #fff;
  transform: translate(-50%, -30%) rotate(45deg);
  border-radius: 2px;
}

body > button[type="button"]:last-of-type:hover {
  transform: translateY(-5px) scale(1.08);
  box-shadow: 0 12px 36px rgba(255, 122, 69, 0.4);
  opacity: 1;
}

body > button[type="button"]:last-of-type:active {
  transform: translateY(-2px) scale(1);
}

@media (max-width: 1024px) {
  header {
    gap: 0.75rem;
  }

  header nav ul {
    gap: 0.15rem;
  }

  header nav a {
    padding: 0.4rem 0.65rem;
    font-size: 0.85rem;
  }

  header form[role="search"] {
    flex: 1 1 220px;
  }
}

@media (max-width: 860px) {
  header {
    flex-wrap: wrap;
    padding: 0.65rem 1rem;
  }

  header nav {
    order: 3;
    flex: 1 1 100%;
    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;
    width: max-content;
  }

  header form[role="search"] {
    order: 2;
    flex: 1 1 auto;
  }

  header > button[type="button"] {
    order: 2;
  }

  #hero > div svg {
    width: 100%;
  }
}

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

  header > div span {
    display: none;
  }

  header > div strong {
    font-size: 1.1rem;
  }

  header form[role="search"] {
    flex: 1 1 100%;
    order: 4;
  }

  header form[role="search"] button[type="submit"] {
    padding: 0.6rem 1rem;
  }

  main {
    padding: 1.25rem 1rem;
    gap: 1.75rem;
  }

  main > section:not(#hero) {
    padding: 1.25rem;
    border-radius: var(--radius-md);
  }

  #hero {
    padding: 2rem 1.25rem;
    border-radius: var(--radius-lg);
  }

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

  #howto ol {
    grid-template-columns: 1fr;
  }

  #products ul,
  #solutions ul {
    grid-template-columns: 1fr;
  }

  footer {
    padding: 2rem 1rem 1.5rem;
    gap: 1.5rem;
  }

  blockquote {
    padding: 1rem 1.1rem;
  }
}

@media (max-width: 400px) {
  header > div svg {
    width: 40px;
    height: 40px;
  }

  body > button[type="button"]:last-of-type {
    width: 44px;
    height: 44px;
  }
}

@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 print {
  header,
  footer,
  body > button[type="button"]:last-of-type,
  nav[aria-label="面包屑导航"] {
    display: none;
  }

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

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