:root {
  --primary: #e63946;
  --primary-dark: #c1121f;
  --primary-light: #ff6b7a;
  --secondary: #457b9d;
  --accent: #2a9d8f;
  --warm: #f4a261;
  --bg: #f8f9fb;
  --bg-alt: #ffffff;
  --bg-elevated: #ffffff;
  --text: #1d1d1f;
  --text-secondary: #5a5a6e;
  --text-muted: #8a8a9e;
  --border: #e8e8ef;
  --border-light: #f0f0f5;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
  --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.5);
  --glass-blur: 16px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 72px;
  --max-width: 1200px;
  --gradient-primary: linear-gradient(135deg, #e63946 0%, #f4a261 100%);
  --gradient-secondary: linear-gradient(135deg, #457b9d 0%, #2a9d8f 100%);
  --gradient-hero: linear-gradient(135deg, #1d1d2f 0%, #2d1b3d 40%, #4a1f3d 70%, #e63946 100%);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(255,255,255,0.6));
}

[data-theme="dark"] {
  --primary: #ff6b7a;
  --primary-dark: #e63946;
  --primary-light: #ff9aa5;
  --secondary: #6ba3c7;
  --accent: #4dbdb2;
  --warm: #f4b88a;
  --bg: #0f0f17;
  --bg-alt: #16161f;
  --bg-elevated: #1c1c28;
  --text: #f0f0f5;
  --text-secondary: #b0b0c0;
  --text-muted: #78788e;
  --border: #2a2a3a;
  --border-light: #22222e;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
  --glass-bg: rgba(28, 28, 40, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
  --gradient-hero: linear-gradient(135deg, #0f0f17 0%, #1a1025 40%, #2d1428 70%, #8b1a2b 100%);
  --gradient-card: linear-gradient(145deg, rgba(28,28,40,0.9), rgba(28,28,40,0.6));
  --gradient-primary: linear-gradient(135deg, #ff6b7a 0%, #f4b88a 100%);
  --gradient-secondary: linear-gradient(135deg, #6ba3c7 0%, #4dbdb2 100%);
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(230, 57, 70, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(69, 123, 157, 0.06), transparent),
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(42, 157, 143, 0.05), transparent);
  pointer-events: none;
  z-index: 0;
  transition: opacity var(--transition);
}

[data-theme="dark"] body::before {
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(255, 107, 122, 0.06), transparent),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(107, 163, 199, 0.05), transparent),
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(77, 189, 178, 0.04), transparent);
}

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

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

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

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.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); margin-bottom: 0.6rem; }

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

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

time {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

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

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

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

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

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

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

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

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.brand svg {
  width: 40px;
  height: 40px;
  transition: transform var(--transition);
  filter: drop-shadow(0 2px 6px rgba(230, 57, 70, 0.3));
}

.brand:hover svg {
  transform: rotate(-6deg) scale(1.08);
}

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

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

#main-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

#main-nav a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: all var(--transition);
  transform: translateX(-50%);
}

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

#main-nav a:hover::after {
  width: 60%;
}

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

#site-search {
  display: flex;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  transition: all var(--transition);
}

#site-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12);
}

#site-search input {
  border: none;
  outline: none;
  background: transparent;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--text);
  width: 160px;
  transition: width var(--transition);
}

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

#site-search input:focus {
  width: 200px;
}

#site-search button {
  border: none;
  background: var(--gradient-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--transition-fast);
  white-space: nowrap;
}

#site-search button:hover {
  opacity: 0.88;
}

#theme-toggle,
#menu-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}

#theme-toggle:hover,
#menu-toggle:hover {
  border-color: var(--primary);
  background: rgba(230, 57, 70, 0.08);
  transform: scale(1.08);
}

#menu-toggle {
  display: none;
}

nav[aria-label="面包屑导航"] {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem 0;
  position: relative;
  z-index: 1;
}

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

nav[aria-label="面包屑导航"] li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--text-muted);
  opacity: 0.5;
}

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

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

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

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  position: relative;
  z-index: 1;
}

section {
  padding: 3.5rem 0;
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

section > h2 {
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

section > h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 4px;
}

section > h3 {
  margin-top: 2rem;
  color: var(--text);
}

section > h3:first-of-type {
  margin-top: 0.5rem;
}

#hero {
  padding: 3rem 0 2rem;
  position: relative;
}

#hero::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 600px;
  background: var(--gradient-hero);
  opacity: 0.04;
  border-radius: 0 0 50% 50%;
  pointer-events: none;
  z-index: -1;
}

[data-theme="dark"] #hero::before {
  opacity: 0.15;
}

#hero h1 {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

#hero > p {
  max-width: 800px;
  margin: 0 auto 1.25rem;
  text-align: center;
  font-size: 1.02rem;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

#banner-carousel {
  position: relative;
  margin: 2.5rem 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 260px;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

#banner-carousel .slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.8s ease, transform 0.8s ease;
  background: var(--slide-bg, var(--gradient-primary));
}

#banner-carousel .slide:first-child {
  position: relative;
  opacity: 1;
  transform: scale(1);
}

#banner-carousel .slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

#banner-carousel .slide h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

#banner-carousel .slide p {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  max-width: 500px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.15);
}

#hero > ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

#hero > ul li {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

#hero > ul li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

#hero > ul li:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(230, 57, 70, 0.2);
}

#hero > ul li:hover::before {
  transform: scaleX(1);
}

#hero > ul li strong {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

#about,
#products,
#advantages,
#solutions,
#applications,
#cases,
#testimonials,
#news,
#articles,
#howto,
#faq,
#knowledge,
#contact,
#sitemap,
#links {
  position: relative;
}

#about > p,
#products > p,
#advantages > p,
#solutions > p,
#applications > p,
#cases > p,
#testimonials > p,
#news > p,
#articles > p,
#howto > p,
#knowledge > p,
#contact > p {
  max-width: 900px;
}

#about h3,
#products h3,
#advantages h3,
#solutions h3,
#applications h3,
#cases h3,
#testimonials h3,
#news h3,
#articles h3,
#howto h3,
#knowledge h3,
#contact h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  padding-left: 1rem;
  position: relative;
}

#about h3::before,
#products h3::before,
#advantages h3::before,
#solutions h3::before,
#applications h3::before,
#cases h3::before,
#testimonials h3::before,
#news h3::before,
#articles h3::before,
#howto h3::before,
#knowledge h3::before,
#contact h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1.1em;
  background: var(--gradient-primary);
  border-radius: 4px;
}

#about p,
#products p,
#advantages p,
#solutions p,
#applications p,
#cases p,
#testimonials p,
#news p,
#articles p,
#howto p,
#knowledge p,
#contact p {
  max-width: 900px;
  font-size: 0.98rem;
}

#products > h3,
#advantages > h3,
#solutions > h3,
#applications > h3,
#cases > h3,
#testimonials > h3,
#knowledge > h3 {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem 1rem 1.5rem;
  margin-top: 1.5rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

#products > h3:hover,
#advantages > h3:hover,
#solutions > h3:hover,
#applications > h3:hover,
#cases > h3:hover,
#testimonials > h3:hover,
#knowledge > h3:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(230, 57, 70, 0.2);
}

#news article,
#articles article {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

#news article::before,
#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}

#news article:hover,
#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(230, 57, 70, 0.15);
}

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

#news article h3,
#articles article h3 {
  margin-top: 0;
  padding-left: 0;
  font-size: 1.1rem;
}

#news article h3::before,
#articles article h3::before {
  display: none;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 0.5rem;
  transition: gap var(--transition);
}

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

#articles article a:hover {
  gap: 0.6rem;
}

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

#faq details {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: all var(--transition);
}

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

#faq details[open] {
  border-color: rgba(230, 57, 70, 0.3);
  box-shadow: var(--shadow-md);
  background: var(--bg-elevated);
}

#faq summary {
  padding: 1.1rem 1.5rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background var(--transition-fast);
  position: relative;
}

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

#faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--primary);
  transition: transform var(--transition);
  flex-shrink: 0;
  line-height: 1;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(230, 57, 70, 0.08);
}

#faq details[open] summary::after {
  content: "−";
  transform: rotate(180deg);
  background: rgba(230, 57, 70, 0.15);
}

#faq summary:hover {
  background: rgba(230, 57, 70, 0.04);
}

#faq details p {
  padding: 0 1.5rem 1.25rem;
  margin: 0;
  font-size: 0.94rem;
  animation: fadeIn 0.3s ease-out;
}

#howto h3 {
  margin-top: 2rem;
}

#howto h3:first-of-type {
  margin-top: 0;
}

#testimonials p {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem;
  margin-bottom: 0.75rem;
  font-style: italic;
  position: relative;
  transition: all var(--transition);
}

#testimonials p::before {
  content: "\201C";
  position: absolute;
  top: -0.2rem;
  left: 0.6rem;
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
}

#testimonials p:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(230, 57, 70, 0.2);
}

#contact p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

#contact p:first-of-type {
  font-weight: 600;
  color: var(--text);
}

#sitemap ul,
#links ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.65rem;
}

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

#sitemap a:hover,
#links a:hover {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.3);
}

footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 2rem;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  font-weight: 500;
}

.footer-info h3 {
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  color: var(--text);
  padding: 0;
}

.footer-info h3::before {
  display: none;
}

.footer-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.footer-bottom {
  grid-column: 1 / -1;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: all var(--transition);
  z-index: 999;
}

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

#back-to-top:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 30px rgba(230, 57, 70, 0.5);
}

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

aside[aria-label="作者与编辑信息"] {
  max-width: var(--max-width);
  margin: 0 auto 3rem;
  padding: 1.75rem 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 1;
}

aside[aria-label="作者与编辑信息"] h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
}

aside[aria-label="作者与编辑信息"] h2::after {
  width: 40px;
  height: 3px;
}

aside[aria-label="作者与编辑信息"] p {
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
}

aside[aria-label="作者与编辑信息"] p:last-child {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible {
  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; }
.reveal-delay-4 { transition-delay: 0.4s; }

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

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

@media (max-width: 1024px) {
  .header-inner {
    padding: 0 1rem;
  }

  #main-nav a {
    padding: 0.5rem 0.6rem;
    font-size: 0.85rem;
  }

  #site-search input {
    width: 120px;
  }

  #site-search input:focus {
    width: 150px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 64px;
  }

  #menu-toggle {
    display: flex;
  }

  #main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition), opacity var(--transition);
    opacity: 0;
    z-index: 999;
  }

  #main-nav.open {
    max-height: 500px;
    opacity: 1;
  }

  #main-nav ul {
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
  }

  #main-nav a {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }

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

  #site-search {
    display: none;
  }

  #hero > ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  #hero > ul li {
    padding: 1.15rem 0.75rem;
  }

  #banner-carousel {
    min-height: 220px;
  }

  #banner-carousel .slide {
    padding: 2.5rem 1.5rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 600px) {
  html {
    font-size: 15px;
  }

  .header-inner {
    padding: 0 1rem;
    gap: 0.5rem;
  }

  .brand svg {
    width: 34px;
    height: 34px;
  }

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

  #theme-toggle,
  #menu-toggle {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  main {
    padding: 0 1rem 3rem;
  }

  nav[aria-label="面包屑导航"] {
    padding: 0.75rem 1rem 0;
  }

  section {
    padding: 2.5rem 0;
  }

  #hero {
    padding: 2rem 0 1.5rem;
  }

  #hero > ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  #hero > ul li {
    padding: 1rem 0.6rem;
    font-size: 0.8rem;
  }

  #hero > ul li strong {
    font-size: 1.4rem;
  }

  #banner-carousel {
    min-height: 200px;
    border-radius: var(--radius-lg);
  }

  #banner-carousel .slide {
    padding: 2rem 1.25rem;
  }

  #news article,
  #articles article {
    padding: 1.25rem 1.25rem;
  }

  #faq summary {
    padding: 1rem 1.15rem;
    font-size: 0.92rem;
  }

  #faq details p {
    padding: 0 1.15rem 1rem;
    font-size: 0.88rem;
  }

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

  #sitemap a,
  #links a {
    padding: 0.55rem 0.65rem;
    font-size: 0.82rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
  }

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

  aside[aria-label="作者与编辑信息"] {
    margin: 0 1rem 2.5rem;
    padding: 1.25rem 1.15rem;
  }
}

@media (max-width: 380px) {
  #hero > ul {
    grid-template-columns: 1fr;
  }

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

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

@media print {
  #site-header,
  #back-to-top,
  #banner-carousel,
  .header-actions {
    display: none;
  }

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

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