:root {
  --primary: #6B3FA0;
  --primary-light: #8B5FC7;
  --primary-dark: #4A2775;
  --accent: #FF6F91;
  --accent-light: #FF9EB5;
  --gold: #FFD166;
  --teal: #2F8F83;
  --bg: #F7F4FB;
  --bg-alt: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-glass: rgba(255, 255, 255, 0.55);
  --text: #2A2138;
  --text-secondary: #6B5E7D;
  --text-muted: #9A8FAA;
  --border: rgba(107, 63, 160, 0.12);
  --border-strong: rgba(107, 63, 160, 0.22);
  --shadow-sm: 0 2px 8px rgba(42, 33, 56, 0.06);
  --shadow-md: 0 8px 24px rgba(42, 33, 56, 0.1);
  --shadow-lg: 0 16px 48px rgba(42, 33, 56, 0.14);
  --shadow-glow: 0 8px 32px rgba(107, 63, 160, 0.25);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 999px;
  --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --max-width: 1200px;
  --header-height: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12101A;
    --bg-alt: #1A1726;
    --bg-card: rgba(30, 26, 44, 0.72);
    --bg-glass: rgba(30, 26, 44, 0.6);
    --text: #EDE8F5;
    --text-secondary: #B8AECB;
    --text-muted: #7E7394;
    --border: rgba(139, 95, 199, 0.18);
    --border-strong: rgba(139, 95, 199, 0.32);
    --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(139, 95, 199, 0.35);
  }
}

*,
*::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(ellipse 80% 60% at 10% 0%, rgba(107, 63, 160, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(255, 111, 145, 0.06), transparent 60%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(47, 143, 131, 0.05), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--primary-light);
  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);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  position: relative;
  padding-left: 16px;
  margin-bottom: 1rem;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 5px;
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

h3 {
  font-size: clamp(1.1rem, 1.9vw, 1.35rem);
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--primary-dark);
}

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

h4 {
  font-size: 1.05rem;
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

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

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

/* ========== Header ========== */
header#top {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), box-shadow var(--transition);
}

.brand-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 4px 16px;
  align-items: center;
}

.brand-bar > a {
  grid-row: 1 / 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.brand-bar > a:hover {
  transform: scale(1.06) rotate(-3deg);
  box-shadow: var(--shadow-glow);
}

.brand-bar svg {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
}

.brand-bar h1 {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.4;
}

.brand-bar p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Navigation */
header nav[aria-label="主导航"] {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

header nav[aria-label="主导航"] > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1 1 auto;
}

header nav[aria-label="主导航"] > ul > li > a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  position: relative;
  white-space: nowrap;
}

header nav[aria-label="主导航"] > ul > li > a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

header nav[aria-label="主导航"] > ul > li > a:hover {
  color: var(--primary);
  background: rgba(107, 63, 160, 0.07);
}

header nav[aria-label="主导航"] > ul > li > a:hover::after {
  transform: scaleX(1);
}

/* Search form */
header form[role="search"] {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

header form[role="search"]:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(107, 63, 160, 0.15);
}

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"] {
  border: none;
  background: transparent;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--text);
  width: 180px;
  outline: none;
}

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

header form[role="search"] button {
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 20px;
  cursor: pointer;
  transition: filter var(--transition), transform var(--transition);
}

header form[role="search"] button:hover {
  filter: brightness(1.1);
}

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

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

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

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

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

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

/* ========== Main layout ========== */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 24px 80px;
}

section {
  margin-bottom: 48px;
  scroll-margin-top: calc(var(--header-height) + 16px);
  animation: fadeUp 0.7s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

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

/* Section card base */
section > h2,
section > h3,
section > h4,
section > p,
section > ul,
section > ol,
section > article,
section > blockquote,
section > details,
section > figure,
section > div {
  /* no-op placeholder for structure */
}

/* Card-like sections */
#about, #company, #history, #culture, #products, #advantages,
#solutions, #applications, #cases, #testimonials, #news,
#articles, #knowledge, #faq, #howto, #contact, #sitemap,
#links, #legal, #privacy, #disclaimer, #meta-info {
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

#about:hover, #company:hover, #history:hover, #culture:hover,
#products:hover, #advantages:hover, #solutions:hover,
#applications:hover, #cases:hover, #testimonials:hover,
#news:hover, #articles:hover, #knowledge:hover, #faq:hover,
#howto:hover, #contact:hover, #sitemap:hover, #links:hover,
#legal:hover, #privacy:hover, #disclaimer:hover, #meta-info:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

/* ========== Hero ========== */
#hero {
  background: linear-gradient(135deg, rgba(107, 63, 160, 0.9) 0%, rgba(255, 111, 145, 0.85) 50%, rgba(47, 143, 131, 0.8) 100%);
  border-radius: var(--radius-xl);
  padding: 48px 36px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: fadeUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

#hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.35), transparent 70%);
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

#hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
  pointer-events: none;
  animation: float 10s ease-in-out infinite reverse;
}

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

#hero h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  margin-bottom: 1rem;
  padding-left: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
}

#hero h2::before {
  display: none;
}

#hero > p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  max-width: 720px;
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
}

#hero > ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 32px;
  position: relative;
  z-index: 1;
}

#hero > ul > li {
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

#hero > ul > li:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

#hero > ul > li .num {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1.2;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

/* Carousel */
.carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
  position: relative;
  z-index: 1;
}

.carousel::-webkit-scrollbar {
  height: 6px;
}

.carousel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
}

.carousel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-full);
}

.carousel figure {
  flex: 0 0 min(720px, 85%);
  scroll-snap-align: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform var(--transition), box-shadow var(--transition);
}

.carousel figure:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.carousel figure svg {
  width: 100%;
  height: auto;
  display: block;
}

.carousel figcaption {
  padding: 12px 18px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  text-align: center;
}

/* Quick nav */
main > nav[aria-label="页内锚点导航"] {
  margin-bottom: 48px;
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}

main > nav[aria-label="页内锚点导航"] h2 {
  font-size: 1.15rem;
  margin-bottom: 14px;
}

main > nav[aria-label="页内锚点导航"] ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

main > nav[aria-label="页内锚点导航"] ul li a {
  display: inline-block;
  padding: 5px 14px;
  font-size: 0.82rem;
  border-radius: var(--radius-full);
  background: rgba(107, 63, 160, 0.08);
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all var(--transition);
}

main > nav[aria-label="页内锚点导航"] ul li a:hover {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* ========== Lists ========== */
section ul,
section ol {
  padding-left: 0;
}

section > ul > li,
section > ol > li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

section > ul > li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

section > ol {
  counter-reset: custom-counter;
}

section > ol > li {
  counter-increment: custom-counter;
  padding-left: 34px;
}

section > ol > li::before {
  content: counter(custom-counter);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
}

/* ========== Articles ========== */
section article {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-bottom: 16px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

section article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
}

section article:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

section article:hover::before {
  opacity: 1;
}

section article h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

section article h3 a,
section article > a {
  color: var(--primary);
  font-weight: 600;
}

section article > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(107, 63, 160, 0.08);
  transition: all var(--transition);
}

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

section article > a:hover {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: var(--shadow-glow);
}

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

section article p {
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

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

/* ========== Blockquotes (testimonials) ========== */
section blockquote {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 20px 24px 20px 56px;
  margin-bottom: 14px;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

section blockquote:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

section blockquote p {
  margin: 0;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-secondary);
}

/* ========== Details / FAQ ========== */
section details {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

section details[open] {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

section details summary {
  cursor: pointer;
  padding: 14px 20px 14px 44px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  position: relative;
  list-style: none;
  transition: background var(--transition), color var(--transition);
}

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

section details summary::before {
  content: "+";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(107, 63, 160, 0.1);
  border-radius: 50%;
  transition: all var(--transition);
}

section details[open] summary::before {
  content: "−";
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  transform: translateY(-50%) rotate(180deg);
}

section details summary:hover {
  background: rgba(107, 63, 160, 0.05);
  color: var(--primary);
}

section details > p {
  padding: 0 20px 16px 44px;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  animation: fadeUp 0.35s ease both;
}

/* ========== Contact info ========== */
#contact p {
  font-size: 0.92rem;
}

#contact p:nth-of-type(1),
#contact p:nth-of-type(2),
#contact p:nth-of-type(3),
#contact p:nth-of-type(4),
#contact p:nth-of-type(5),
#contact p:nth-of-type(6),
#contact p:nth-of-type(7) {
  padding-left: 0;
}

/* ========== Footer ========== */
footer {
  background: linear-gradient(180deg, transparent, rgba(107, 63, 160, 0.06));
  border-top: 1px solid var(--border);
  padding: 40px 24px 32px;
  text-align: center;
}

footer > p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

footer > p a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary);
  transition: all var(--transition);
}

footer > p a::before {
  content: "↑";
  font-size: 1rem;
}

footer > p a:hover {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

footer nav[aria-label="页脚导航"] {
  margin-top: 20px;
}

footer nav[aria-label="页脚导航"] ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}

footer nav[aria-label="页脚导航"] ul li a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

footer nav[aria-label="页脚导航"] ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform var(--transition);
}

footer nav[aria-label="页脚导航"] ul li a:hover {
  color: var(--primary);
}

footer nav[aria-label="页脚导航"] ul li a:hover::after {
  transform: scaleX(1);
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .brand-bar {
    padding: 12px 16px 8px;
  }

  .brand-bar p {
    -webkit-line-clamp: 2;
    font-size: 0.78rem;
  }

  header nav[aria-label="主导航"] {
    padding: 0 16px 10px;
  }

  header nav[aria-label="主导航"] > ul {
    order: 2;
    flex-basis: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

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

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

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

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

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

  #hero {
    padding: 32px 20px;
    border-radius: var(--radius-lg);
  }

  #hero > ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 24px;
  }

  #hero > ul > li {
    padding: 12px;
    font-size: 0.78rem;
  }

  #about, #company, #history, #culture, #products, #advantages,
  #solutions, #applications, #cases, #testimonials, #news,
  #articles, #knowledge, #faq, #howto, #contact, #sitemap,
  #links, #legal, #privacy, #disclaimer, #meta-info {
    padding: 22px 18px;
    border-radius: var(--radius-md);
  }

  main > nav[aria-label="页内锚点导航"] {
    padding: 18px;
    border-radius: var(--radius-md);
  }

  section {
    margin-bottom: 32px;
  }

  .carousel figure {
    flex: 0 0 88%;
  }

  section article {
    padding: 16px 16px 16px 20px;
  }

  section blockquote {
    padding: 16px 18px 16px 48px;
  }

  section details summary {
    padding: 12px 16px 12px 40px;
    font-size: 0.9rem;
  }

  section details > p {
    padding: 0 16px 14px 40px;
  }
}

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

  .brand-bar {
    grid-template-columns: auto 1fr;
    gap: 4px 10px;
  }

  .brand-bar svg {
    width: 36px;
    height: 36px;
  }

  .brand-bar h1 {
    font-size: 0.95rem;
  }

  .brand-bar p {
    font-size: 0.72rem;
    -webkit-line-clamp: 2;
  }

  #hero > ul {
    grid-template-columns: 1fr 1fr;
  }

  #hero > ul > li .num {
    font-size: 1.35rem;
  }

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 4px;
  }

  footer nav[aria-label="页脚导航"] ul {
    gap: 6px 14px;
  }
}

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

  #hero::before,
  #hero::after {
    animation: none;
  }
}

/* ========== Print ========== */
@media print {
  header#top,
  footer,
  .carousel,
  main > nav[aria-label="页内锚点导航"] {
    display: none;
  }

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

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

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

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.75em;
    color: #555;
  }
}