:root {
  --primary: #FF6B35;
  --primary-dark: #E55A2B;
  --primary-light: #FF8F5E;
  --secondary: #6C5CE7;
  --secondary-light: #A29BFE;
  --accent: #00CEC9;
  --bg: #FFF9F5;
  --bg-alt: #FFFFFF;
  --bg-card: #FFFFFF;
  --text: #2D3436;
  --text-secondary: #636E72;
  --text-muted: #B2BEC3;
  --border: #F0E6DF;
  --shadow: 0 4px 24px rgba(255, 107, 53, 0.08);
  --shadow-lg: 0 12px 48px rgba(255, 107, 53, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.5);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

[data-theme="dark"] {
  --primary: #FF8F5E;
  --primary-dark: #FF6B35;
  --primary-light: #FFB088;
  --secondary: #A29BFE;
  --secondary-light: #C7C2FF;
  --accent: #55EFC4;
  --bg: #1A1A2E;
  --bg-alt: #16213E;
  --bg-card: #1F2B47;
  --text: #E8E8E8;
  --text-secondary: #B0B0C0;
  --text-muted: #6C6C80;
  --border: #2D3A5C;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.4);
  --glass-bg: rgba(31, 43, 71, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
}

*,
*::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: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.75;
  transition: background-color var(--transition), color var(--transition);
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(255, 107, 53, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(108, 92, 231, 0.06), transparent),
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(0, 206, 201, 0.05), transparent);
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] body::before {
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(255, 143, 94, 0.06), transparent),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(162, 155, 254, 0.05), transparent),
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(85, 239, 196, 0.04), transparent);
}

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

ul, ol {
  list-style: none;
}

/* ===== 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: var(--shadow);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.header-inner > a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.header-inner > a:hover {
  color: var(--primary);
}

.header-inner > a svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.header-inner > a:hover svg {
  transform: rotate(-6deg) scale(1.08);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.35);
}

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

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

.header-inner nav ul li a {
  display: block;
  padding: 7px 14px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-radius: 999px;
  transition: all var(--transition);
  position: relative;
  white-space: nowrap;
}

.header-inner nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform var(--transition);
}

.header-inner nav ul li a:hover {
  color: var(--primary);
  background: rgba(255, 107, 53, 0.08);
}

.header-inner nav ul li a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

#theme-toggle,
#menu-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  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 {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

#menu-toggle {
  display: none;
}

/* ===== Main ===== */
main {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

/* ===== Hero ===== */
#hero {
  position: relative;
  padding: 80px 48px;
  margin: 32px 0 48px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #FF6B35 0%, #FF8F5E 30%, #6C5CE7 100%);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

#hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

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

#hero h1 {
  position: relative;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.15);
  max-width: 900px;
}

#hero p {
  position: relative;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  line-height: 1.85;
  margin-bottom: 16px;
  max-width: 800px;
  opacity: 0.95;
}

#hero a {
  position: relative;
  display: inline-block;
  margin-top: 16px;
  margin-right: 12px;
  padding: 12px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  transition: all var(--transition);
}

#hero a:hover {
  background: #fff;
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

#hero a:first-of-type {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

#hero a:first-of-type:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* ===== Banner Section ===== */
#banner {
  margin-bottom: 48px;
}

#banner h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
  position: relative;
  padding-left: 16px;
}

#banner h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 4px;
}

.banner-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.banner-slider article {
  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);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.banner-slider article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  border-radius: var(--radius) var(--radius) 0 0;
}

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

.banner-slider article h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.banner-slider article p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== Breadcrumb & Anchor Nav ===== */
nav[aria-label="面包屑导航"] {
  margin-bottom: 24px;
}

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

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

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

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

nav[aria-label="页面锚点导航"] {
  margin-bottom: 48px;
  padding: 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

nav[aria-label="页面锚点导航"] h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}

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

nav[aria-label="页面锚点导航"] ul li a {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all var(--transition);
}

nav[aria-label="页面锚点导航"] ul li a:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* ===== Sections ===== */
main > section {
  margin-bottom: 56px;
  scroll-margin-top: 80px;
}

main > section > h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text);
  position: relative;
  padding-left: 18px;
  letter-spacing: -0.01em;
}

main > section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 28px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 5px;
}

main > section > h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--text);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
  display: inline-block;
}

main > section > h3:first-of-type {
  margin-top: 0;
}

main > section > p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 14px;
  max-width: 900px;
}

/* ===== About Section ===== */
#about {
  padding: 32px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* ===== Products Section ===== */
#products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

#products > h2 {
  grid-column: 1 / -1;
}

#products > h3 {
  margin-top: 0;
  padding: 24px 24px 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-bottom: none;
  display: block;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

#products > h3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity var(--transition);
}

#products > h3:hover::before {
  opacity: 1;
}

#products > p {
  padding: 0 24px 24px;
  margin-top: -8px;
  margin-bottom: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: all var(--transition);
  font-size: 0.9rem;
}

#products > h3:hover,
#products > h3:hover + p {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

#products > h3:hover {
  border-color: var(--primary);
}

#products > h3:hover + p {
  border-color: var(--primary);
}

/* ===== Advantages Section ===== */
#advantages {
  padding: 32px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

#advantages h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

#advantages h3::before {
  content: "✦";
  color: var(--primary);
  font-size: 1rem;
}

/* ===== Solutions Section ===== */
#solutions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

#solutions > h2 {
  grid-column: 1 / -1;
}

#solutions > h3 {
  margin-top: 0;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: none;
  display: block;
  transition: all var(--transition);
}

#solutions > p {
  padding: 0 24px 20px;
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: all var(--transition);
  font-size: 0.9rem;
}

#solutions > h3:hover,
#solutions > h3:hover + p {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

#solutions > h3:hover {
  border-color: var(--secondary);
}

#solutions > h3:hover + p {
  border-color: var(--secondary);
}

/* ===== Applications Section ===== */
#applications {
  padding: 32px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* ===== Cases Section ===== */
#cases {
  padding: 32px;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.04), rgba(108, 92, 231, 0.04));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

#cases h3 {
  border-bottom-color: var(--primary);
}

/* ===== Reviews Section ===== */
#reviews {
  padding: 32px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

#reviews p {
  position: relative;
  padding: 16px 20px 16px 48px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
  margin-bottom: 12px;
  font-style: normal;
  font-size: 0.92rem;
}

#reviews p::before {
  content: "“";
  position: absolute;
  left: 16px;
  top: 10px;
  font-size: 2rem;
  color: var(--primary);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}

/* ===== News Section ===== */
#news {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

#news > h2 {
  grid-column: 1 / -1;
}

#news article {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

#news article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

#news article:hover::before {
  transform: scaleX(1);
}

#news article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

#news article h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
  border: none;
  padding: 0;
  display: block;
}

#news article p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.7;
}

#news article p:first-of-type {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

#news article a {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}

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

#news article a:hover {
  gap: 8px;
}

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

/* ===== Articles Section ===== */
#articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

#articles > h2 {
  grid-column: 1 / -1;
}

#articles article {
  padding: 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

#articles article:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}

#articles article h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
  border: none;
  padding: 0;
  display: block;
}

#articles article p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.7;
}

#articles article p:first-of-type {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

#articles article a {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

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

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

/* ===== Knowledge Section ===== */
#knowledge {
  padding: 32px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

#knowledge h3 {
  border-bottom-color: var(--accent);
}

/* ===== HowTo Section ===== */
#howto {
  padding: 32px;
  background: linear-gradient(135deg, rgba(0, 206, 201, 0.04), rgba(108, 92, 231, 0.04));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

#howto h3 {
  border-bottom-color: var(--secondary);
}

#howto p {
  font-size: 0.93rem;
  line-height: 1.9;
}

/* ===== FAQ Section ===== */
#faq {
  padding: 32px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

#faq h3 {
  cursor: default;
  border-bottom: none;
  padding: 16px 20px;
  margin: 0 0 4px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
  font-size: 1rem;
  transition: all var(--transition);
  display: block;
}

#faq h3:hover {
  background: rgba(255, 107, 53, 0.06);
  border-left-color: var(--secondary);
  transform: translateX(4px);
}

#faq p {
  padding: 0 20px 16px;
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  background: var(--bg-card);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  border-left: 3px solid var(--border);
}

/* ===== Contact Section ===== */
#contact {
  padding: 32px;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.06), rgba(108, 92, 231, 0.06));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

#contact p {
  font-size: 0.93rem;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}

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

/* ===== Sitemap & Links ===== */
#sitemap {
  padding: 32px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#sitemap ul li a,
#links ul li a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all var(--transition);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

#links {
  padding: 32px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

#links ul li a:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

/* ===== Team Section ===== */
#team {
  padding: 32px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* ===== Legal Section ===== */
#legal {
  padding: 32px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

#legal h2 {
  font-size: 1.2rem;
  margin-top: 24px;
}

#legal h2:first-of-type {
  margin-top: 0;
}

#legal p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ===== Footer ===== */
footer {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 40px;
  border-top: 1px solid var(--border);
  text-align: center;
}

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

footer p a {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

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

/* ===== Back to Top ===== */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--transition);
  z-index: 999;
}

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

#back-to-top:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 10px 28px rgba(255, 107, 53, 0.45);
}

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

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

/* ===== Mobile Menu ===== */
@media (max-width: 900px) {
  #menu-toggle {
    display: flex;
  }

  .header-inner nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 24px 24px;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 999;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    justify-content: flex-start;
  }

  .header-inner nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

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

  .header-inner nav ul li a {
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    width: 100%;
  }

  .header-inner nav ul li a::after {
    display: none;
  }

  .header-inner nav ul li a:hover {
    background: rgba(255, 107, 53, 0.1);
  }
}

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

  .header-inner {
    padding: 0 16px;
    height: 60px;
  }

  .header-inner > a span {
    font-size: 1.05rem;
  }

  main {
    padding: 0 16px 40px;
  }

  #hero {
    padding: 48px 24px;
    margin: 20px 0 32px;
    border-radius: var(--radius);
  }

  #hero a {
    display: block;
    text-align: center;
    margin-right: 0;
    margin-bottom: 10px;
  }

  main > section {
    margin-bottom: 40px;
  }

  main > section > h2 {
    font-size: 1.25rem;
  }

  #about,
  #advantages,
  #applications,
  #reviews,
  #knowledge,
  #howto,
  #faq,
  #contact,
  #sitemap,
  #links,
  #team,
  #legal {
    padding: 20px;
  }

  #products,
  #solutions,
  #news,
  #articles {
    grid-template-columns: 1fr;
  }

  #products > h3,
  #products > p,
  #solutions > h3,
  #solutions > p {
    padding-left: 18px;
    padding-right: 18px;
  }

  #faq h3 {
    padding: 14px 16px;
    font-size: 0.95rem;
  }

  #faq p {
    padding: 0 16px 14px;
  }

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

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

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .header-inner > a svg {
    width: 34px;
    height: 34px;
  }

  .header-inner > a span {
    font-size: 0.95rem;
  }

  #theme-toggle,
  #menu-toggle {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
    border-radius: 10px;
  }

  #hero {
    padding: 36px 18px;
  }

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

  #hero p {
    font-size: 0.88rem;
  }

  #hero a {
    padding: 10px 24px;
    font-size: 0.88rem;
  }

  .banner-slider article {
    padding: 20px 18px;
  }

  nav[aria-label="页面锚点导航"] {
    padding: 16px;
  }

  nav[aria-label="页面锚点导航"] ul li a {
    padding: 5px 12px;
    font-size: 0.8rem;
  }

  #news article,
  #articles article {
    padding: 18px;
  }

  #reviews p {
    padding: 14px 16px 14px 40px;
    font-size: 0.85rem;
  }

  #reviews p::before {
    left: 12px;
    font-size: 1.6rem;
  }
}

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

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

::-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(--primary);
}

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

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

@media print {
  #site-header,
  #back-to-top,
  #theme-toggle,
  #menu-toggle {
    display: none;
  }

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

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