:root {
  --brand: #FF6B35;
  --brand-dark: #E8551F;
  --brand-light: #FFA07A;
  --accent: #FFB347;
  --accent-2: #FF4E6A;
  --bg: #FFF9F5;
  --bg-alt: #FFFFFF;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #FFFFFF;
  --glass-border: rgba(255, 255, 255, 0.55);
  --text: #2B2320;
  --text-soft: #6B5E58;
  --text-muted: #9A8D86;
  --border: rgba(255, 107, 53, 0.16);
  --shadow-sm: 0 4px 14px rgba(255, 107, 53, 0.08);
  --shadow-md: 0 10px 30px rgba(255, 107, 53, 0.12);
  --shadow-lg: 0 20px 50px rgba(255, 107, 53, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --gradient-hero: linear-gradient(135deg, #FF6B35 0%, #FF4E6A 45%, #FFB347 100%);
  --gradient-soft: linear-gradient(135deg, rgba(255, 107, 53, 0.12), rgba(255, 179, 71, 0.12));
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 249, 245, 0.7));
  --header-h: 72px;
  --transition: 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

html[data-theme="dark"] {
  --bg: #17120F;
  --bg-alt: #1E1815;
  --surface: rgba(38, 30, 26, 0.72);
  --surface-solid: #241D19;
  --glass-border: rgba(255, 255, 255, 0.08);
  --text: #F3EAE4;
  --text-soft: #C6B8B0;
  --text-muted: #8E8078;
  --border: rgba(255, 107, 53, 0.22);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
  --gradient-card: linear-gradient(145deg, rgba(48, 38, 33, 0.9), rgba(30, 24, 21, 0.7));
  --gradient-soft: linear-gradient(135deg, rgba(255, 107, 53, 0.16), rgba(255, 179, 71, 0.08));
  --gradient-hero: linear-gradient(135deg, #B8451C 0%, #9E2E44 45%, #B87A1F 100%);
}

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

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

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255, 107, 53, 0.10), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(255, 179, 71, 0.10), transparent 38%),
    radial-gradient(circle at 50% 100%, rgba(255, 78, 106, 0.06), transparent 50%);
  background-attachment: fixed;
  transition: background-color var(--transition), color var(--transition);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
button {
  font-size: inherit;
}

::selection {
  background: rgba(255, 107, 53, 0.28);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  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(--surface);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), box-shadow var(--transition);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--text);
}

.brand-logo svg {
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.35);
  transition: transform var(--transition), box-shadow var(--transition);
}

.brand-logo:hover svg {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 10px 24px rgba(255, 107, 53, 0.45);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

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

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

.nav-list::-webkit-scrollbar {
  display: none;
}

.nav-list a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  position: relative;
  transition: color var(--transition), background var(--transition);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-hero);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-list a:hover {
  color: var(--brand);
  background: rgba(255, 107, 53, 0.08);
}

.nav-list a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-actions form {
  display: flex;
  align-items: center;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 4px 4px 14px;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.header-actions form:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.14);
}

.header-actions input[type="search"] {
  border: none;
  background: transparent;
  color: var(--text);
  width: 150px;
  padding: 6px 0;
  font-size: 0.88rem;
  outline: none;
}

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

.header-actions button[type="submit"] {
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--gradient-hero);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition);
}

.header-actions button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

#theme-toggle,
#menu-toggle {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  font-size: 1.05rem;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

#theme-toggle:hover,
#menu-toggle:hover {
  transform: translateY(-2px) rotate(8deg);
  box-shadow: var(--shadow-md);
}

#menu-toggle {
  display: none;
}

/* ===== Hero ===== */
#hero {
  position: relative;
  max-width: 1240px;
  margin: 32px auto 0;
  padding: 0 24px;
}

.hero-slider {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 56px 56px 72px;
  overflow: hidden;
  background: var(--gradient-hero);
  background-size: 200% 200%;
  animation: gradientShift 14s ease infinite;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.hero-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.28), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.18), transparent 40%);
  pointer-events: none;
  z-index: -1;
}

.hero-slider::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -100px;
  top: -120px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.28);
  pointer-events: none;
  z-index: -1;
  animation: spinSlow 40s linear infinite;
}

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

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

.slide {
  display: none;
  animation: fadeSlide 0.6s ease both;
}

.slide.active {
  display: block;
}

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

.slide h1,
.slide h2 {
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.28;
  margin-bottom: 20px;
  text-shadow: 0 2px 16px rgba(120, 40, 0, 0.25);
}

.slide h1 {
  font-size: clamp(1.7rem, 4vw, 2.65rem);
}

.slide h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
}

.slide p {
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(0.95rem, 1.6vw, 1.06rem);
  max-width: 860px;
  margin-bottom: 16px;
  text-shadow: 0 1px 10px rgba(120, 40, 0, 0.18);
}

.slide .cta {
  display: inline-block;
  margin-top: 18px;
  padding: 13px 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 0.98rem;
  box-shadow: 0 8px 24px rgba(120, 40, 0, 0.28);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.slide .cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 34px rgba(120, 40, 0, 0.36);
  background: #fff;
  color: var(--brand-dark);
}

.slider-controls {
  position: absolute;
  right: 32px;
  bottom: 28px;
  display: flex;
  gap: 10px;
  z-index: 2;
}

.slider-controls button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4px;
  transition: background var(--transition), transform var(--transition);
}

.slider-controls button:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: -44px;
  padding: 0 24px;
  position: relative;
  z-index: 3;
}

.stat {
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.stat .num {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.stat span:last-child {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--text-soft);
  font-weight: 600;
}

/* ===== Breadcrumb & Anchor Nav ===== */
#breadcrumb {
  max-width: 1240px;
  margin: 36px auto 0;
  padding: 0 24px;
}

#breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 0.86rem;
  color: var(--text-muted);
}

#breadcrumb li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--text-muted);
}

#breadcrumb a {
  color: var(--text-soft);
  font-weight: 600;
}

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

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

#anchor-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 900;
  margin: 20px auto 0;
  max-width: 1240px;
  padding: 0 24px;
}

#anchor-nav ul {
  display: flex;
  gap: 8px;
  list-style: none;
  overflow-x: auto;
  padding: 12px 16px;
  background: var(--surface);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  scrollbar-width: none;
}

#anchor-nav ul::-webkit-scrollbar {
  display: none;
}

#anchor-nav a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  white-space: nowrap;
  background: rgba(255, 107, 53, 0.06);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

#anchor-nav a:hover {
  background: var(--gradient-hero);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== Main Sections ===== */
main {
  display: block;
}

main > section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 24px;
}

main > section + section {
  padding-top: 0;
}

main > section > h2 {
  position: relative;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 28px;
  padding-left: 18px;
  line-height: 1.35;
}

main > section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 1.1em;
  border-radius: 6px;
  background: var(--gradient-hero);
  box-shadow: 0 0 16px rgba(255, 107, 53, 0.5);
}

main > section > h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 12px;
  line-height: 1.4;
}

main > section h4 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--brand);
  margin: 20px 0 8px;
}

main > section p {
  color: var(--text-soft);
  margin-bottom: 14px;
  max-width: 900px;
}

main > section > p:first-of-type {
  font-size: 1.02rem;
}

/* Card-like sections */
#about,
#history,
#culture,
#products,
#advantages,
#solutions,
#applications,
#cases,
#reviews,
#news,
#articles,
#knowledge,
#faq,
#howto,
#contact,
#author,
#sitemap,
#links {
  background: var(--gradient-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  margin-top: 28px;
  margin-bottom: 0;
  padding: 44px 40px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow var(--transition), transform var(--transition);
}

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

/* ===== Product / Advantage / Solution blocks ===== */
#products h3,
#advantages h3,
#solutions h3,
#applications h3,
#cases h3,
#knowledge h3 {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--gradient-soft);
  border-left: 4px solid var(--brand);
  margin-top: 22px;
  transition: transform var(--transition), box-shadow var(--transition);
}

#products h3:hover,
#advantages h3:hover,
#solutions h3:hover,
#applications h3:hover,
#cases h3:hover,
#knowledge h3:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}

/* ===== Reviews ===== */
#reviews blockquote {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 26px 26px 22px 58px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

#reviews blockquote::before {
  content: "\201C";
  position: absolute;
  left: 18px;
  top: 4px;
  font-size: 3.4rem;
  line-height: 1;
  font-family: Georgia, serif;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#reviews blockquote:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

#reviews blockquote p {
  color: var(--text);
  font-size: 1.02rem;
  margin-bottom: 10px;
}

#reviews cite {
  display: block;
  font-style: normal;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand);
}

/* ===== News & Articles ===== */
#news article,
#articles article {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  overflow: hidden;
}

#news article::after,
#articles article::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-hero);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}

#news article:hover,
#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-light);
}

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

#news article h3,
#articles article h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.45;
}

#articles article h3 a {
  color: var(--text);
  transition: color var(--transition);
}

#articles article h3 a:hover {
  color: var(--brand);
}

#news time,
#articles time {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand);
  background: rgba(255, 107, 53, 0.1);
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

#articles article > a:last-child {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand);
  transition: gap var(--transition), color var(--transition);
}

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

#articles article > a:last-child:hover {
  gap: 8px;
  color: var(--brand-dark);
}

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

/* ===== FAQ ===== */
#faq details {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}

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

#faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 18px 52px 18px 22px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  transition: color var(--transition), background var(--transition);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient-hero);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  transition: transform var(--transition);
}

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

#faq summary:hover {
  color: var(--brand);
  background: rgba(255, 107, 53, 0.05);
}

#faq details > p {
  padding: 0 22px 20px;
  margin: 0;
  color: var(--text-soft);
  animation: faqReveal 0.4s ease both;
}

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

/* ===== HowTo ===== */
#howto h4 {
  position: relative;
  padding-left: 34px;
}

#howto h4::before {
  content: counter(howto-step);
  counter-increment: howto-step;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient-hero);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(255, 107, 53, 0.3);
}

#howto {
  counter-reset: howto-step;
}

#howto h3 {
  counter-reset: howto-step;
}

/* ===== Contact ===== */
#contact address {
  font-style: normal;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  margin: 20px 0;
}

#contact address p {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 0.96rem;
}

#contact address p:last-child {
  margin-bottom: 0;
}

#contact address a {
  font-weight: 600;
}

/* ===== Author ===== */
#author {
  background: var(--gradient-hero);
  color: #fff;
  position: relative;
  overflow: hidden;
}

#author::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -80px;
  bottom: -100px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

#author > h2 {
  color: #fff;
}

#author > h2::before {
  background: #fff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.6);
}

#author p,
#author h3 {
  color: rgba(255, 255, 255, 0.94);
  position: relative;
  z-index: 1;
}

#author h3 {
  font-weight: 700;
}

#author time {
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 10px;
  border-radius: 999px;
}

/* ===== Sitemap & Links ===== */
#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

#sitemap li,
#links li {
  flex: 0 0 auto;
}

#sitemap a,
#links a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
}

#sitemap a:hover,
#links a:hover {
  transform: translateY(-3px);
  background: var(--gradient-hero);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

/* ===== Footer ===== */
#site-footer {
  margin-top: 64px;
  padding: 56px 24px 40px;
  background: linear-gradient(180deg, transparent, rgba(255, 107, 53, 0.06));
  border-top: 1px solid var(--border);
}

#site-footer > section {
  max-width: 1240px;
  margin: 0 auto 32px;
}

#site-footer h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
  padding-left: 14px;
  position: relative;
}

#site-footer h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1em;
  border-radius: 4px;
  background: var(--gradient-hero);
}

#site-footer h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--brand);
  margin: 16px 0 6px;
}

#site-footer p {
  color: var(--text-soft);
  font-size: 0.92rem;
  max-width: 900px;
  margin-bottom: 8px;
}

#site-footer > p {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
}

#site-footer small {
  font-size: 0.84rem;
}

#site-footer time {
  font-weight: 600;
  color: var(--brand);
}

/* ===== Back to top ===== */
#back-to-top {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 950;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-hero);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition), box-shadow var(--transition);
}

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

#back-to-top:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: var(--shadow-lg);
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible,
.reveal.visible,
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .header-inner {
    gap: 14px;
  }
  .header-actions input[type="search"] {
    width: 120px;
  }
  .nav-list a {
    padding: 8px 10px;
    font-size: 0.86rem;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 64px;
  }
  #site-header nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface-solid);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 12px 16px 20px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  #site-header.nav-open nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    overflow: visible;
  }
  .nav-list a {
    display: block;
    padding: 12px 16px;
    font-size: 0.98rem;
    border-radius: var(--radius-sm);
  }
  .nav-list a::after {
    display: none;
  }
  #menu-toggle {
    display: inline-flex;
  }
  .header-actions form {
    display: none;
  }
  .hero-slider {
    padding: 40px 28px 76px;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 8px;
    margin-top: -36px;
  }
  #anchor-nav {
    top: var(--header-h);
  }
  #about,
  #history,
  #culture,
  #products,
  #advantages,
  #solutions,
  #applications,
  #cases,
  #reviews,
  #news,
  #articles,
  #knowledge,
  #faq,
  #howto,
  #contact,
  #author,
  #sitemap,
  #links {
    padding: 32px 24px;
    border-radius: var(--radius-lg);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }
  .header-inner {
    padding: 0 16px;
    gap: 10px;
  }
  .brand-name {
    font-size: 1.1rem;
  }
  .brand-logo svg {
    width: 34px;
    height: 34px;
  }
  #theme-toggle,
  #menu-toggle {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }
  #hero {
    margin-top: 20px;
    padding: 0 16px;
  }
  .hero-slider {
    padding: 32px 20px 72px;
    border-radius: var(--radius-lg);
  }
  .slide h1,
  .slide h2 {
    margin-bottom: 14px;
  }
  .slide .cta {
    padding: 11px 24px;
    font-size: 0.92rem;
  }
  .slider-controls {
    right: 20px;
    bottom: 20px;
  }
  .slider-controls button {
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
  }
  .hero-stats {
    gap: 10px;
    padding: 0;
    margin-top: -30px;
  }
  .stat {
    padding: 18px 10px;
    border-radius: var(--radius-md);
  }
  .stat span:last-child {
    font-size: 0.76rem;
  }
  #breadcrumb,
  #anchor-nav {
    padding: 0 16px;
  }
  #anchor-nav ul {
    padding: 10px 12px;
    border-radius: var(--radius-md);
  }
  #anchor-nav a {
    font-size: 0.8rem;
    padding: 5px 11px;
  }
  main > section {
    padding: 36px 16px;
  }
  main > section > h2 {
    padding-left: 14px;
    margin-bottom: 20px;
  }
  #about,
  #history,
  #culture,
  #products,
  #advantages,
  #solutions,
  #applications,
  #cases,
  #reviews,
  #news,
  #articles,
  #knowledge,
  #faq,
  #howto,
  #contact,
  #author,
  #sitemap,
  #links {
    padding: 26px 18px;
    border-radius: var(--radius-md);
    margin-top: 18px;
  }
  #reviews blockquote {
    padding: 22px 18px 18px 46px;
  }
  #reviews blockquote::before {
    left: 12px;
    font-size: 2.8rem;
  }
  #news article,
  #articles article {
    padding: 20px 18px;
  }
  #faq summary {
    padding: 15px 48px 15px 16px;
    font-size: 0.95rem;
  }
  #faq details > p {
    padding: 0 16px 16px;
  }
  #contact address {
    padding: 18px;
  }
  #sitemap a,
  #links a {
    padding: 7px 14px;
    font-size: 0.82rem;
  }
  #site-footer {
    padding: 40px 16px 32px;
    margin-top: 40px;
  }
  #back-to-top {
    right: 16px;
    bottom: 20px;
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
  }
}

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

/* ===== Print ===== */
@media print {
  #site-header,
  #anchor-nav,
  #back-to-top,
  .slider-controls,
  #theme-toggle,
  #menu-toggle {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  main > section {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
}