:root {
  --primary: #c0392b;
  --primary-dark: #a93226;
  --primary-light: #e74c3c;
  --secondary: #e67e22;
  --accent: #16a085;
  --accent-blue: #2980b9;
  --bg: #f7f8fa;
  --bg-alt: #ffffff;
  --bg-elevated: #ffffff;
  --text: #1a1a2e;
  --text-secondary: #555566;
  --text-muted: #888899;
  --border: #e8e8ee;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 12px 48px rgba(192, 57, 43, 0.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.45);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --header-h: 68px;
}

[data-theme="dark"] {
  --bg: #0f0f17;
  --bg-alt: #1a1a28;
  --bg-elevated: #1e1e30;
  --text: #eaeaf0;
  --text-secondary: #a8a8b8;
  --text-muted: #6e6e80;
  --border: #2a2a3e;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 12px 48px rgba(192, 57, 43, 0.3);
  --glass-bg: rgba(26, 26, 40, 0.78);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

*,
*::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: var(--bg);
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(192, 57, 43, 0.06), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(230, 126, 34, 0.05), transparent 55%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(22, 160, 133, 0.04), transparent 60%);
  pointer-events: none;
}

[data-theme="dark"] body::before {
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(192, 57, 43, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(230, 126, 34, 0.08), transparent 55%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(22, 160, 133, 0.06), transparent 60%);
}

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;
}

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

input {
  font-family: inherit;
  font-size: inherit;
}

.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: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}

#site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.logo:hover {
  transform: scale(1.04);
  color: var(--text);
}

.logo svg {
  filter: drop-shadow(0 2px 6px rgba(192, 57, 43, 0.35));
  transition: filter var(--transition), transform var(--transition);
}

.logo:hover svg {
  filter: drop-shadow(0 4px 12px rgba(192, 57, 43, 0.55));
  transform: rotate(-6deg) scale(1.08);
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-nav ul {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.main-nav a {
  display: block;
  padding: 6px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  position: relative;
  transition: color var(--transition), background var(--transition);
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  transition: transform var(--transition);
}

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

.main-nav a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.site-search {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  flex-shrink: 0;
}

.site-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
  background: var(--bg-alt);
}

.site-search input {
  border: none;
  background: transparent;
  padding: 8px 16px;
  color: var(--text);
  outline: none;
  width: 180px;
  font-size: 0.88rem;
  transition: width var(--transition);
}

.site-search input::placeholder {
  color: var(--text-muted);
}

.site-search input:focus {
  width: 220px;
}

.site-search button {
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 0 50px 50px 0;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}

.site-search button:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  transform: scale(1.03);
}

.site-search button:active {
  transform: scale(0.97);
}

#menu-toggle,
#theme-toggle {
  display: none;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  background: var(--bg);
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  transition: all var(--transition);
  white-space: nowrap;
}

#theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

/* ========== BREADCRUMB ========== */
.breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 20px) 24px 0;
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--border);
}

.breadcrumb a {
  color: var(--text-secondary);
  font-weight: 500;
}

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

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

/* ========== MAIN LAYOUT ========== */
main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

section {
  margin-top: 64px;
}

section > h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  position: relative;
  padding-left: 18px;
  color: var(--text);
}

section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
}

section > h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--text);
  letter-spacing: -0.01em;
}

section p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  max-width: 72ch;
}

section ul:not(.hero-stats):not(.toc ul):not(.breadcrumb ol) li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

section ul:not(.hero-stats):not(.toc ul):not(.breadcrumb ol) li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

section ol {
  counter-reset: item;
}

section ol li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  counter-increment: item;
}

section ol li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(192, 57, 43, 0.25);
}

/* ========== HERO ========== */
.hero {
  margin-top: 28px;
  padding: 56px 40px 48px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(192, 57, 43, 0.95) 0%, rgba(230, 126, 34, 0.9) 50%, rgba(22, 160, 133, 0.85) 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(192, 57, 43, 0.25);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.18), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1), transparent 40%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(40px);
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.3;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  max-width: 20ch;
}

.hero-lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.02rem;
  line-height: 1.85;
  max-width: 72ch;
  margin-bottom: 36px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Carousel */
.hero-carousel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.slide {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--glass-shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}

.slide:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.slide svg {
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  width: 100%;
  height: auto;
  transition: transform var(--transition);
}

.slide:hover svg {
  transform: scale(1.03);
}

.slide h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.slide p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0;
}

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.hero-stats li {
  text-align: center;
  padding: 18px 12px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  transition: transform var(--transition), background var(--transition);
}

.hero-stats li:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.22);
}

.hero-stats strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-stats span {
  display: block;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 2px;
  font-weight: 500;
}

/* ========== TOC ========== */
.toc {
  margin-top: 48px;
  padding: 28px 32px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

.toc:hover {
  box-shadow: var(--shadow-md);
}

.toc h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
  padding-left: 0;
}

.toc h2::before {
  display: none;
}

.toc ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px 24px;
}

.toc a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 6px 0;
  font-weight: 500;
  transition: color var(--transition), transform var(--transition);
}

.toc a::before {
  content: "→";
  font-size: 0.8rem;
  color: var(--primary);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--transition), transform var(--transition);
}

.toc a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.toc a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* ========== CARDS for sections ========== */
#intro,
#history,
#products,
#solutions,
#scenes,
#cases,
#news,
#articles,
#faq,
#howto,
#contact,
#sitemap,
#links {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), background var(--transition), border-color var(--transition), transform var(--transition);
}

#intro:hover,
#history:hover,
#products:hover,
#solutions:hover,
#scenes:hover,
#cases:hover,
#news:hover,
#articles:hover,
#faq:hover,
#howto:hover,
#contact:hover,
#sitemap:hover,
#links:hover {
  box-shadow: var(--shadow-md);
}

/* ========== NEWS & ARTICLES ========== */
#news article,
#articles > article {
  padding: 20px 24px;
  margin-bottom: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

#news article:hover,
#articles > article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(192, 57, 43, 0.25);
}

#news article:last-child,
#articles > article:last-child {
  margin-bottom: 0;
}

#news h3,
#articles > article h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 0;
  margin-bottom: 6px;
  line-height: 1.5;
  transition: color var(--transition);
}

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

#news article > p:first-of-type,
#articles > article > p:first-of-type {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

#articles > article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 6px;
  padding: 4px 0;
  transition: gap var(--transition), color var(--transition);
}

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

#articles > article a:hover {
  gap: 10px;
  color: var(--primary-light);
}

#articles > article a:hover::after {
  transform: translateX(4px);
}

#articles article[id^="article-detail-"] {
  padding: 18px 24px;
  margin-top: -8px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(192, 57, 43, 0.04), rgba(230, 126, 34, 0.03));
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

#articles article[id^="article-detail-"] h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

#articles article[id^="article-detail-"] p {
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* ========== CASES / BLOCKQUOTE ========== */
blockquote {
  position: relative;
  padding: 20px 24px 20px 56px;
  margin: 16px 0;
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

blockquote::before {
  content: "\201C";
  position: absolute;
  left: 18px;
  top: 8px;
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.25;
  line-height: 1;
  font-family: Georgia, serif;
}

blockquote:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(192, 57, 43, 0.2);
}

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

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

#faq details:hover {
  border-color: rgba(192, 57, 43, 0.25);
  box-shadow: var(--shadow-sm);
}

#faq details[open] {
  border-color: rgba(192, 57, 43, 0.35);
  box-shadow: var(--shadow-md);
  background: var(--bg-alt);
}

#faq summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: color var(--transition), background var(--transition);
  position: relative;
}

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

#faq summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  transition: transform var(--transition), background var(--transition);
}

#faq details[open] summary::before {
  content: "−";
  transform: rotate(180deg);
}

#faq summary:hover {
  color: var(--primary);
  background: rgba(192, 57, 43, 0.04);
}

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

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

/* ========== CONTACT ========== */
#contact ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.95rem;
}

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

#contact ul li::before {
  content: "";
  position: static;
  width: 8px;
  height: 8px;
  margin-top: 0.65em;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

/* ========== SITEMAP & LINKS ========== */
#sitemap ul,
#links ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px 20px;
}

#sitemap ul li,
#links ul li {
  padding-left: 0;
  margin-bottom: 0;
}

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

#sitemap a,
#links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 6px 0;
  font-weight: 500;
  transition: color var(--transition), transform var(--transition);
}

#sitemap a::before,
#links a::before {
  content: "›";
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
  transition: transform var(--transition);
}

#sitemap a:hover,
#links a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

#sitemap a:hover::before,
#links a:hover::before {
  transform: translateX(2px);
}

/* ========== FOOTER ========== */
footer {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
  padding: 56px 24px 32px;
  margin-top: 40px;
  transition: background var(--transition), border-color var(--transition);
}

footer > section {
  max-width: 1280px;
  margin: 0 auto 32px;
  padding: 0;
}

footer h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  padding-left: 0;
}

footer h2::before {
  display: none;
}

footer p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  line-height: 1.7;
}

footer a {
  color: var(--primary);
  font-weight: 500;
}

footer a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

footer .copyright {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ========== BACK TO TOP ========== */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(192, 57, 43, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), box-shadow var(--transition);
  line-height: 1.15;
  text-align: center;
  padding: 4px;
}

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

#back-to-top:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 8px 32px rgba(192, 57, 43, 0.55);
}

#back-to-top:active {
  transform: translateY(-2px) scale(0.98);
}

/* ========== SCROLL ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .main-nav ul {
    gap: 2px;
  }
  .main-nav a {
    padding: 6px 10px;
    font-size: 0.85rem;
  }
  .site-search input {
    width: 140px;
  }
  .site-search input:focus {
    width: 170px;
  }
  .hero-carousel {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-carousel .slide:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 60px;
  }

  .header-inner {
    padding: 0 16px;
    gap: 12px;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), padding 0.4s ease;
    box-shadow: var(--shadow-md);
    justify-content: flex-start;
  }

  .main-nav.open {
    max-height: 420px;
    padding: 12px 16px 20px;
    overflow-y: auto;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 2px;
    width: 100%;
  }

  .main-nav a {
    padding: 10px 14px;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }

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

  #menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-search {
    display: none;
  }

  .logo {
    font-size: 1.1rem;
    flex: 1;
  }

  .logo svg {
    width: 28px;
    height: 28px;
  }

  main {
    padding: 0 16px 60px;
  }

  .breadcrumb {
    padding: calc(var(--header-h) + 16px) 16px 0;
  }

  .hero {
    padding: 36px 24px 32px;
    border-radius: var(--radius-lg);
  }

  .hero h1 {
    font-size: 1.5rem;
  }

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

  .hero-carousel {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-carousel .slide:last-child {
    max-width: 100%;
  }

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

  .hero-stats strong {
    font-size: 1.4rem;
  }

  section {
    margin-top: 44px;
  }

  section > h2 {
    font-size: 1.4rem;
  }

  #intro,
  #history,
  #products,
  #solutions,
  #scenes,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links {
    padding: 24px 20px;
    border-radius: var(--radius-md);
  }

  .toc {
    padding: 20px 18px;
  }

  .toc ul {
    grid-template-columns: 1fr;
  }

  #faq details p {
    padding-left: 20px;
  }

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

  #back-to-top {
    width: 42px;
    height: 42px;
    bottom: 20px;
    right: 20px;
    font-size: 0.66rem;
  }

  footer {
    padding: 40px 16px 24px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 28px 18px 24px;
  }

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

  .hero-stats {
    gap: 8px;
  }

  .hero-stats li {
    padding: 14px 8px;
  }

  .hero-stats strong {
    font-size: 1.2rem;
  }

  .hero-stats span {
    font-size: 0.72rem;
  }

  #intro,
  #history,
  #products,
  #solutions,
  #scenes,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links {
    padding: 20px 16px;
  }

  section > h2 {
    font-size: 1.25rem;
    padding-left: 14px;
  }

  section > h3 {
    font-size: 1.05rem;
  }

  blockquote {
    padding: 16px 16px 16px 44px;
  }

  blockquote::before {
    left: 12px;
    font-size: 2.4rem;
  }

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

  .breadcrumb ol {
    font-size: 0.78rem;
  }
}

/* ========== PREFERS 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,
  .site-search,
  #menu-toggle,
  #theme-toggle {
    display: none !important;
  }

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

  .hero {
    background: #eee !important;
    box-shadow: none;
  }

  .hero h1,
  .hero-lead,
  .hero-stats strong,
  .hero-stats span {
    color: #000 !important;
    text-shadow: none;
  }

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