:root {
  --bg-primary: #0d0d1a;
  --bg-secondary: #1a1a2e;
  --bg-tertiary: #16213e;
  --bg-card: rgba(26, 26, 46, 0.72);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --bg-glass-hover: rgba(255, 255, 255, 0.1);
  --accent: #e94560;
  --accent-hover: #ff5c77;
  --accent-soft: rgba(233, 69, 96, 0.15);
  --accent-2: #533483;
  --accent-3: #0f3460;
  --text-primary: #eaeaf2;
  --text-secondary: #a8a8c0;
  --text-muted: #6c6c88;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(233, 69, 96, 0.35);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 24px rgba(233, 69, 96, 0.2);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --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);
  --max-width: 1200px;
  --header-height: 68px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-primary: #f4f5fb;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eef0f9;
    --bg-card: rgba(255, 255, 255, 0.82);
    --bg-glass: rgba(255, 255, 255, 0.6);
    --bg-glass-hover: rgba(255, 255, 255, 0.85);
    --accent: #d6304a;
    --accent-hover: #b8253d;
    --accent-soft: rgba(214, 48, 74, 0.1);
    --accent-2: #6d4a9e;
    --accent-3: #e3e8f5;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a66;
    --text-muted: #8888a0;
    --border-color: rgba(26, 26, 46, 0.1);
    --border-accent: rgba(214, 48, 74, 0.3);
    --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
    --shadow-md: 0 8px 24px rgba(26, 26, 46, 0.1);
    --shadow-lg: 0 16px 48px rgba(26, 26, 46, 0.14);
    --shadow-glow: 0 0 24px rgba(214, 48, 74, 0.12);
  }
}

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

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

body {
  font-family: var(--font-stack);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.75;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(233, 69, 96, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(83, 52, 131, 0.1), transparent);
  background-attachment: fixed;
}

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

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

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

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

ul,
ol {
  list-style: none;
}

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

h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.4rem); }
h4 { font-size: clamp(1rem, 1.8vw, 1.15rem); }

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

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

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

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

::-webkit-scrollbar-thumb {
  background: var(--accent-3);
  border-radius: 10px;
  border: 2px solid var(--bg-primary);
}

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

body > a[href="#main-content"] {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top var(--transition-fast);
}

body > a[href="#main-content"]:focus {
  top: 12px;
  color: #fff;
}

header[role="banner"] {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
  height: var(--header-height);
  background: rgba(13, 13, 26, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

@media (prefers-color-scheme: light) {
  header[role="banner"] {
    background: rgba(255, 255, 255, 0.78);
  }
}

header[role="banner"]:hover {
  box-shadow: var(--shadow-md);
}

header[role="banner"] > div:first-child {
  flex-shrink: 0;
}

header[role="banner"] > div:first-child > a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

header[role="banner"] > div:first-child > a:hover {
  color: var(--text-primary);
}

header[role="banner"] > div:first-child svg {
  border-radius: 10px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  box-shadow: var(--shadow-sm);
}

header[role="banner"] > div:first-child > a:hover svg {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: var(--shadow-glow);
}

header[role="banner"] > div:first-child span {
  background: linear-gradient(135deg, var(--accent), #ff8fa3);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

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

header[role="banner"] nav[aria-label="主导航"] ul {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

header[role="banner"] nav[aria-label="主导航"] ul::-webkit-scrollbar {
  display: none;
}

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

header[role="banner"] nav[aria-label="主导航"] a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width var(--transition-base);
}

header[role="banner"] nav[aria-label="主导航"] a:hover {
  color: var(--text-primary);
  background: var(--bg-glass-hover);
}

header[role="banner"] nav[aria-label="主导航"] a:hover::after {
  width: 60%;
}

header[role="banner"] > div:last-child {
  flex-shrink: 0;
}

header[role="banner"] form[role="search"] {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 3px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

header[role="banner"] form[role="search"]:focus-within {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

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

header[role="banner"] form[role="search"] input[type="search"] {
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.88rem;
  padding: 7px 14px;
  width: 170px;
  font-family: inherit;
  outline: none;
  transition: width var(--transition-base);
}

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

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

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

header[role="banner"] form[role="search"] button:hover {
  filter: brightness(1.1);
  box-shadow: var(--shadow-glow);
  transform: scale(1.03);
}

header[role="banner"] form[role="search"] button:active {
  transform: scale(0.97);
}

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

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

nav[aria-label="面包屑导航"] li {
  display: flex;
  align-items: center;
  gap: 6px;
}

nav[aria-label="面包屑导航"] li + li::before {
  content: "›";
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
}

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

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

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

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

main section {
  margin-bottom: 56px;
  animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 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; }

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

@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[aria-labelledby="hero-title"] {
  position: relative;
  padding: clamp(32px, 5vw, 64px) clamp(24px, 4vw, 56px);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(233, 69, 96, 0.18) 0%, rgba(83, 52, 131, 0.22) 50%, rgba(15, 52, 96, 0.2) 100%),
    var(--bg-secondary);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 56px;
}

section[aria-labelledby="hero-title"]::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.25), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: floatGlow 8s ease-in-out infinite;
}

section[aria-labelledby="hero-title"]::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(83, 52, 131, 0.2), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: floatGlow 10s ease-in-out infinite reverse;
}

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

section[aria-labelledby="hero-title"] h1 {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 60%, #ff8fa3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 20px;
  max-width: 900px;
}

section[aria-labelledby="hero-title"] > p {
  position: relative;
  z-index: 1;
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  max-width: 820px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

section[aria-labelledby="hero-title"] > div {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

section[aria-labelledby="hero-title"] > div:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

section[aria-labelledby="hero-title"] > div svg {
  width: 100%;
  height: auto;
  display: block;
}

section h2 {
  position: relative;
  padding-left: 18px;
  margin-bottom: 28px;
  scroll-margin-top: calc(var(--header-height) + 20px);
}

section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 1.1em;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: var(--shadow-glow);
}

section h3 {
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--text-primary);
  scroll-margin-top: calc(var(--header-height) + 20px);
}

section h3::before {
  content: "▸";
  color: var(--accent);
  margin-right: 8px;
  font-size: 0.85em;
  vertical-align: 1px;
}

section h4 {
  margin-top: 20px;
  margin-bottom: 8px;
  color: var(--accent);
  font-weight: 600;
}

section p {
  font-size: 0.96rem;
  line-height: 1.85;
}

section#brand-intro,
section#products,
section#solutions,
section#cases,
section#news,
section#articles,
section#knowledge,
section#faq,
section#howto,
section#contact {
  padding: clamp(24px, 3.5vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}

section#brand-intro:hover,
section#products:hover,
section#solutions:hover,
section#cases:hover,
section#news:hover,
section#articles:hover,
section#knowledge:hover,
section#faq:hover,
section#howto:hover,
section#contact:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-accent);
}

section#cases blockquote {
  position: relative;
  margin: 16px 0;
  padding: 20px 24px 20px 52px;
  background: var(--bg-glass);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

section#cases blockquote::before {
  content: "\201C";
  position: absolute;
  left: 16px;
  top: 4px;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--accent);
  font-family: Georgia, serif;
  opacity: 0.6;
}

section#cases blockquote:hover {
  background: var(--bg-glass-hover);
  transform: translateX(4px);
}

section#cases blockquote p {
  margin: 0;
  font-style: italic;
  color: var(--text-secondary);
}

section#news h3 {
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border-color);
}

section#news h3 + p:first-of-type {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

section#news h3 + p:first-of-type::before {
  content: "🕒";
  font-size: 0.85em;
}

section#articles article {
  position: relative;
  padding: 22px 24px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), background var(--transition-base);
}

section#articles article::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity var(--transition-base);
}

section#articles article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-accent);
  background: var(--bg-glass-hover);
}

section#articles article:hover::after {
  opacity: 1;
}

section#articles article h3 {
  margin-top: 0;
  margin-bottom: 6px;
  transition: color var(--transition-fast);
}

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

section#articles article h3::before {
  content: none;
}

section#articles article p:first-of-type {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

section#articles article p:last-of-type {
  margin-bottom: 0;
}

section#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

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

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

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

section#faq details[open] {
  background: var(--bg-glass-hover);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-sm);
}

section#faq details:hover {
  border-color: var(--border-accent);
}

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

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

section#faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1;
  transition: transform var(--transition-base), background var(--transition-fast), color var(--transition-fast);
}

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

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

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

section#howto h4 {
  position: relative;
  padding-left: 34px;
  counter-increment: step;
}

section#howto {
  counter-reset: step;
}

section#howto h4::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

section#contact p {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 14px;
  margin-bottom: 6px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

section#contact p:hover {
  background: var(--bg-glass-hover);
  transform: translateX(3px);
}

footer[role="contentinfo"] {
  position: relative;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 56px 24px 32px;
  margin-top: 40px;
}

footer[role="contentinfo"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  background-size: 200% 100%;
  animation: gradientShift 6s linear infinite;
}

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

footer[role="contentinfo"] > nav,
footer[role="contentinfo"] > section {
  max-width: var(--max-width);
  margin: 0 auto 32px;
}

footer[role="contentinfo"] h2 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--text-primary);
  position: relative;
  padding-left: 14px;
}

footer[role="contentinfo"] h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 0.9em;
  border-radius: 2px;
  background: var(--accent);
}

footer[role="contentinfo"] nav[aria-label="网站地图"] ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px 20px;
}

footer[role="contentinfo"] nav ul a {
  display: inline-block;
  padding: 5px 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  position: relative;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

footer[role="contentinfo"] nav ul a::before {
  content: "›";
  margin-right: 6px;
  color: var(--accent);
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

footer[role="contentinfo"] nav ul a:hover {
  color: var(--accent);
  transform: translateX(3px);
}

footer[role="contentinfo"] nav ul a:hover::before {
  opacity: 1;
}

footer[role="contentinfo"] nav[aria-label="友情链接"] ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

footer[role="contentinfo"] nav[aria-label="友情链接"] ul a {
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

footer[role="contentinfo"] nav[aria-label="友情链接"] ul a::before {
  content: none;
}

footer[role="contentinfo"] nav[aria-label="友情链接"] ul a:hover {
  background: var(--accent-soft);
  border-color: var(--border-accent);
  color: var(--accent);
  transform: translateY(-2px);
}

footer[role="contentinfo"] section p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 8px;
}

footer[role="contentinfo"] > p:last-child {
  max-width: var(--max-width);
  margin: 24px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

footer[role="contentinfo"] > p:last-child a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 999px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

footer[role="contentinfo"] > p:last-child a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

footer[role="contentinfo"] > p:last-child a:hover::before {
  transform: translateY(-3px);
}

@media (max-width: 1024px) {
  header[role="banner"] {
    gap: 14px;
    padding: 0 16px;
  }

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

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

  main {
    padding: 20px 16px 60px;
  }
}

@media (max-width: 860px) {
  header[role="banner"] {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 16px;
    row-gap: 8px;
  }

  header[role="banner"] > div:first-child {
    order: 1;
  }

  header[role="banner"] > div:last-child {
    order: 2;
    margin-left: auto;
  }

  header[role="banner"] nav[aria-label="主导航"] {
    order: 3;
    flex-basis: 100%;
  }

  header[role="banner"] nav[aria-label="主导航"] ul {
    padding-bottom: 4px;
  }

  header[role="banner"] nav[aria-label="主导航"] a {
    padding: 6px 10px;
    font-size: 0.85rem;
  }

  :root {
    --header-height: 110px;
  }
}

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

  header[role="banner"] form[role="search"] input[type="search"] {
    width: 110px;
    font-size: 0.82rem;
  }

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

  header[role="banner"] form[role="search"] button {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  header[role="banner"] > div:first-child > a {
    font-size: 1rem;
  }

  header[role="banner"] > div:first-child svg {
    width: 32px;
    height: 32px;
  }

  nav[aria-label="面包屑导航"] {
    padding: 12px 16px 0;
  }

  main {
    padding: 16px 14px 48px;
  }

  main section {
    margin-bottom: 36px;
  }

  section[aria-labelledby="hero-title"] {
    padding: 28px 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 36px;
  }

  section#brand-intro,
  section#products,
  section#solutions,
  section#cases,
  section#news,
  section#articles,
  section#knowledge,
  section#faq,
  section#howto,
  section#contact {
    padding: 20px 18px;
    border-radius: var(--radius-md);
  }

  section h2 {
    padding-left: 14px;
    margin-bottom: 20px;
  }

  section h2::before {
    width: 4px;
  }

  section#articles article {
    padding: 16px 16px;
  }

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

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

  footer[role="contentinfo"] {
    padding: 40px 16px 24px;
  }

  footer[role="contentinfo"] nav[aria-label="网站地图"] ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  :root {
    --header-height: 104px;
  }

  header[role="banner"] > div:first-child span {
    display: none;
  }

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

  footer[role="contentinfo"] nav[aria-label="网站地图"] ul {
    grid-template-columns: 1fr;
  }
}

@media print {
  header[role="banner"],
  footer[role="contentinfo"],
  nav[aria-label="面包屑导航"],
  body > a[href="#main-content"] {
    display: none;
  }

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

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