:root {
  --primary: #c0392b;
  --primary-dark: #a93226;
  --primary-light: #e74c3c;
  --accent: #f1c40f;
  --accent-dark: #d4ac0d;
  --bg: #f5f6fa;
  --bg-alt: #ffffff;
  --card-bg: rgba(255, 255, 255, 0.72);
  --card-border: rgba(255, 255, 255, 0.5);
  --text: #2c3e50;
  --text-secondary: #5d6d7e;
  --text-muted: #95a5a6;
  --border: #e1e5ea;
  --shadow: 0 8px 32px rgba(44, 62, 80, 0.1);
  --shadow-hover: 0 16px 48px rgba(192, 57, 43, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --transition: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --gradient-hero: linear-gradient(135deg, #c0392b 0%, #e74c3c 40%, #f39c12 100%);
  --gradient-accent: linear-gradient(135deg, #f1c40f, #e67e22);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.35);
}

[data-theme="dark"] {
  --primary: #e74c3c;
  --primary-dark: #c0392b;
  --primary-light: #ff6b5b;
  --accent: #f1c40f;
  --accent-dark: #d4ac0d;
  --bg: #12151c;
  --bg-alt: #1a1f2e;
  --card-bg: rgba(30, 38, 55, 0.72);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #e8ecf1;
  --text-secondary: #aab5c5;
  --text-muted: #6b7a8d;
  --border: #2a3346;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 16px 48px rgba(231, 76, 60, 0.25);
  --gradient-hero: linear-gradient(135deg, #7b1e1e 0%, #c0392b 40%, #d68910 100%);
  --glass-bg: rgba(26, 31, 46, 0.65);
  --glass-border: rgba(255, 255, 255, 0.06);
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  transition: background var(--transition), color var(--transition);
  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), opacity var(--transition);
}

a:hover {
  color: var(--primary-light);
}

ul,
ol {
  list-style: none;
}

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

h1 { font-size: clamp(1.5rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }
h4 { font-size: clamp(1rem, 2vw, 1.15rem); }

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

#site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] #site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  color: var(--text);
  font-weight: 800;
}

.brand:hover {
  color: var(--primary);
}

.brand svg {
  border-radius: 50%;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 14px rgba(192, 57, 43, 0.3);
}

.brand:hover svg {
  transform: rotate(12deg) scale(1.08);
  box-shadow: 0 6px 22px rgba(192, 57, 43, 0.45);
}

.brand-name {
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

#main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  align-items: center;
}

#main-nav a {
  display: block;
  padding: 0.35rem 0.65rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  position: relative;
  transition: color var(--transition), background var(--transition);
}

#main-nav a::after {
  content: "";
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

#main-nav a:hover {
  color: var(--primary);
  background: rgba(192, 57, 43, 0.06);
}

#main-nav a:hover::after {
  transform: scaleX(1);
}

#menu-toggle,
#theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  flex-shrink: 0;
}

#menu-toggle {
  display: none;
}

#menu-toggle:hover,
#theme-toggle:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(192, 57, 43, 0.3);
}

#site-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

#site-search input[type="search"] {
  width: 180px;
  padding: 0.42rem 0.8rem;
  font-size: 0.85rem;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all var(--transition);
}

#site-search input[type="search"]::placeholder {
  color: var(--text-muted);
}

#site-search input[type="search"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
  width: 220px;
}

#site-search button[type="submit"] {
  padding: 0.42rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-hero);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

#site-search button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(192, 57, 43, 0.35);
  filter: brightness(1.08);
}

/* ===== Main ===== */
main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

section {
  margin-bottom: 2.5rem;
  scroll-margin-top: 90px;
}

section > h2 {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 1.25rem;
}

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

section > h3 {
  margin: 1.5rem 0 0.6rem;
  color: var(--primary);
}

section > h4 {
  margin: 1.2rem 0 0.5rem;
  color: var(--text);
}

/* ===== Hero ===== */
#hero {
  position: relative;
  margin: 1.5rem 0 2.5rem;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  background: var(--gradient-hero);
  overflow: hidden;
  color: #fff;
  box-shadow: 0 20px 60px rgba(192, 57, 43, 0.3);
}

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

#hero::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, 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(30px, -30px) scale(1.1); }
}

#hero h1 {
  position: relative;
  z-index: 2;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  margin-bottom: 1rem;
  max-width: 900px;
}

.hero-lead {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.02rem;
  max-width: 900px;
  margin-bottom: 1.75rem;
  line-height: 1.85;
}

/* ===== Banner Carousel ===== */
.hero-banner {
  position: relative;
  z-index: 2;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.75rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.slide {
  display: none;
  position: relative;
  animation: slideFade 0.6s ease;
}

.slide.active {
  display: block;
}

@keyframes slideFade {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

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

.slide figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
}

.banner-prev,
.banner-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  padding: 0.5rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition);
  opacity: 0;
}

.hero-banner:hover .banner-prev,
.hero-banner:hover .banner-next {
  opacity: 1;
}

.banner-prev { left: 0.75rem; }
.banner-next { right: 0.75rem; }

.banner-prev:hover,
.banner-next:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.05);
}

/* ===== Stats ===== */
.stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat {
  text-align: center;
  padding: 1rem 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform var(--transition), background var(--transition);
}

.stat:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.25);
}

.stat .num {
  display: block;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat span:last-child {
  display: block;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0.2rem;
}

/* ===== Breadcrumb ===== */
#breadcrumb {
  margin-bottom: 1.5rem;
}

#breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
}

#breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
}

#breadcrumb li + li::before {
  content: "/";
  color: var(--text-muted);
  opacity: 0.6;
}

#breadcrumb a {
  color: var(--text-secondary);
}

#breadcrumb a:hover {
  color: var(--primary);
}

#breadcrumb [aria-current="page"] {
  color: var(--primary);
  font-weight: 600;
}

/* ===== Anchor Nav ===== */
#anchor-nav {
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

#anchor-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
}

#anchor-nav a {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all var(--transition);
}

#anchor-nav a:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(192, 57, 43, 0.3);
}

/* ===== Cards / Sections ===== */
#about,
#history,
#culture,
#products,
#advantages,
#solutions,
#applications,
#cases,
#reviews,
#news,
#articles,
#knowledge,
#faq,
#howto,
#contact,
#sitemap,
#links,
#copyright,
#privacy,
#disclaimer {
  padding: 1.75rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}

#about:hover,
#products:hover,
#solutions:hover,
#cases:hover,
#news:hover,
#articles:hover,
#faq:hover,
#howto:hover,
#contact:hover {
  box-shadow: var(--shadow-hover);
}

/* ===== Articles & News ===== */
#news article,
#articles article {
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

#news article:hover,
#articles article:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(192, 57, 43, 0.12);
}

#news article h3,
#articles article h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

#news article p,
#articles article p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

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

#news article a,
#articles article a {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  transition: all var(--transition);
}

#news article a:hover,
#articles article a:hover {
  color: var(--primary-light);
  transform: translateX(4px);
}

/* ===== FAQ ===== */
.faq-item {
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.85rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.faq-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}

.faq-item:hover {
  transform: translateX(4px);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(192, 57, 43, 0.1);
}

.faq-item:hover::before {
  transform: scaleY(1);
}

.faq-item h3 {
  font-size: 1rem;
  margin-bottom: 0.45rem;
  color: var(--primary);
}

.faq-item p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ===== Blockquote ===== */
blockquote {
  position: relative;
  padding: 1rem 1.25rem 1rem 2rem;
  margin-bottom: 1rem;
  background: var(--bg-alt);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: all var(--transition);
}

blockquote::before {
  content: "\201C";
  position: absolute;
  left: 0.5rem;
  top: 0.2rem;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.25;
  font-family: Georgia, serif;
}

blockquote:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(192, 57, 43, 0.1);
}

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

/* ===== Contact ===== */
#contact p {
  padding: 0.4rem 0;
  margin-bottom: 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.92rem;
}

#contact p:last-child {
  border-bottom: none;
}

/* ===== Sitemap & Links ===== */
#sitemap ul,
#links ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.5rem;
}

#sitemap a,
#links a {
  display: block;
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(192, 57, 43, 0.25);
}

/* ===== HowTo ===== */
#howto ol {
  counter-reset: howto;
  padding-left: 0;
  margin-bottom: 1rem;
}

#howto ol li {
  position: relative;
  padding: 0.6rem 0.75rem 0.6rem 2.75rem;
  margin-bottom: 0.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
  counter-increment: howto;
  transition: all var(--transition);
}

#howto ol li::before {
  content: counter(howto);
  position: absolute;
  left: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.6rem;
  height: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-hero);
  border-radius: 50%;
}

#howto ol li:hover {
  transform: translateX(4px);
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(192, 57, 43, 0.1);
}

/* ===== Footer ===== */
#site-footer {
  position: relative;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 2rem 1.25rem 5rem;
  margin-top: 2rem;
  transition: background var(--transition);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.footer-inner p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  line-height: 1.7;
}

.footer-inner p:first-child {
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

#back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 900;
  padding: 0.7rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-hero);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(192, 57, 43, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--transition);
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 14px 36px rgba(192, 57, 43, 0.5);
}

/* ===== Scroll Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.8, 0.25, 1),
    transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

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

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

/* ===== Selection ===== */
::selection {
  background: var(--primary);
  color: #fff;
}

/* ===== Focus ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  #main-nav a {
    font-size: 0.82rem;
    padding: 0.3rem 0.5rem;
  }

  #site-search input[type="search"] {
    width: 150px;
  }

  #site-search input[type="search"]:focus {
    width: 180px;
  }
}

@media (max-width: 860px) {
  #menu-toggle {
    display: inline-flex;
  }

  #main-nav {
    display: none;
    flex-basis: 100%;
    order: 10;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border);
  }

  #main-nav.open {
    display: block;
    animation: navSlide 0.35s ease;
  }

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

  #main-nav ul {
    flex-direction: column;
    gap: 0.15rem;
  }

  #main-nav a {
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
  }

  #main-nav a::after {
    display: none;
  }

  #site-search {
    order: 11;
    flex-basis: 100%;
    padding-top: 0.5rem;
  }

  #site-search input[type="search"] {
    flex: 1;
    width: auto;
  }

  #site-search input[type="search"]:focus {
    width: auto;
  }

  #site-search button[type="submit"] {
    flex-shrink: 0;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  #hero {
    padding: 1.75rem 1.25rem;
  }

  .banner-prev,
  .banner-next {
    opacity: 1;
    padding: 0.35rem 0.6rem;
    font-size: 0.72rem;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

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

  main {
    padding: 0 0.85rem 2rem;
  }

  .header-inner {
    padding: 0.6rem 0.85rem;
    gap: 0.6rem;
  }

  .brand-name {
    font-size: 1rem;
  }

  #hero {
    padding: 1.5rem 1rem;
    border-radius: var(--radius);
    margin: 1rem 0 1.75rem;
  }

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

  .hero-lead {
    font-size: 0.9rem;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .stat {
    padding: 0.75rem 0.35rem;
  }

  .stat .num {
    font-size: 1.3rem;
  }

  .stat span:last-child {
    font-size: 0.72rem;
  }

  #about,
  #history,
  #culture,
  #products,
  #advantages,
  #solutions,
  #applications,
  #cases,
  #reviews,
  #news,
  #articles,
  #knowledge,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links,
  #copyright,
  #privacy,
  #disclaimer {
    padding: 1.25rem 1rem;
    border-radius: var(--radius);
  }

  #anchor-nav {
    padding: 0.75rem;
  }

  #anchor-nav a {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
  }

  #sitemap a,
  #links a {
    padding: 0.4rem 0.55rem;
    font-size: 0.78rem;
  }

  .slide figcaption {
    font-size: 0.82rem;
    padding: 0.75rem 0.9rem;
  }

  #back-to-top {
    right: 0.85rem;
    bottom: 0.85rem;
    padding: 0.6rem 0.85rem;
    font-size: 0.75rem;
  }

  .footer-inner p {
    font-size: 0.78rem;
  }
}

@media (max-width: 380px) {
  .stats {
    grid-template-columns: 1fr;
  }

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== Print ===== */
@media print {
  #site-header,
  #back-to-top,
  #anchor-nav,
  .hero-banner,
  #site-search {
    display: none !important;
  }

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

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