:root {
  --bg: #0f0f1a;
  --bg-elev: #1a1a2e;
  --bg-card: rgba(30, 30, 50, 0.6);
  --bg-glass: rgba(26, 26, 46, 0.55);
  --text: #eaeaf2;
  --text-soft: #b8b8cc;
  --text-mute: #8888a0;
  --primary: #6c5ce7;
  --primary-2: #a29bfe;
  --accent: #fdcb6e;
  --accent-2: #ff7675;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.3);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --maxw: 1180px;
  --header-h: 68px;
  --grad-hero: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 35%, #4a2c7a 65%, #6c5ce7 100%);
  --grad-btn: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  --grad-accent: linear-gradient(135deg, #fdcb6e 0%, #ff7675 100%);
  --grad-line: linear-gradient(90deg, #6c5ce7, #fdcb6e, #6c5ce7);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f5fb;
    --bg-elev: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-glass: rgba(255, 255, 255, 0.6);
    --text: #1a1a2e;
    --text-soft: #44445c;
    --text-mute: #6c6c85;
    --border: rgba(26, 26, 46, 0.08);
    --border-strong: rgba(26, 26, 46, 0.16);
    --shadow: 0 12px 40px rgba(80, 70, 140, 0.16);
    --shadow-sm: 0 6px 20px rgba(80, 70, 140, 0.12);
    --grad-hero: linear-gradient(135deg, #e9e4ff 0%, #d5c9ff 40%, #b9a8ff 70%, #8e7bff 100%);
  }
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(108, 92, 231, 0.18), transparent 40%),
    radial-gradient(circle at 88% 12%, rgba(253, 203, 110, 0.12), transparent 42%),
    radial-gradient(circle at 50% 100%, rgba(162, 155, 254, 0.14), transparent 50%);
  background-attachment: fixed;
}

#app {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--primary-2);
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

a:hover {
  color: var(--accent);
}

ul, ol {
  list-style: none;
}

.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: 100;
  width: 100%;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#site-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--grad-line);
  background-size: 200% 100%;
  opacity: 0.7;
  animation: slideLine 8s linear infinite;
}

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

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

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

.brand svg {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.5);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--primary-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
}

nav[aria-label="主导航"] {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-list a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 0.92rem;
  color: var(--text-soft);
  border-radius: 10px;
  position: relative;
  white-space: nowrap;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-btn);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-list a:hover {
  color: var(--text);
  background: rgba(108, 92, 231, 0.14);
  transform: translateY(-1px);
}

.nav-list a:hover::after {
  width: 60%;
}

.site-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.site-search input {
  width: 180px;
  padding: 9px 14px;
  font-size: 0.9rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  outline: none;
  transition: width 0.35s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.site-search input:focus {
  width: 220px;
  border-color: var(--primary-2);
  background: rgba(108, 92, 231, 0.12);
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.18);
}

.site-search button {
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: var(--grad-btn);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.site-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(108, 92, 231, 0.45);
  filter: brightness(1.08);
}

.site-search button:active {
  transform: translateY(0);
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  padding: 14px 20px 0;
}

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

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

.breadcrumb a {
  color: var(--text-soft);
}

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

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

/* ============ MAIN & SECTIONS ============ */
main {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 20px 60px;
  flex: 1;
}

section {
  margin-bottom: 44px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

section > h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.05rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 18px;
  position: relative;
  padding-left: 18px;
  letter-spacing: 0.01em;
}

section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: 6px;
  background: var(--grad-btn);
  box-shadow: 0 0 18px rgba(108, 92, 231, 0.6);
}

section > h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin: 26px 0 10px;
  color: var(--text);
  display: inline-block;
  position: relative;
}

section > h3::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 6px;
  border-radius: 3px;
  background: var(--grad-accent);
  opacity: 0.85;
}

section p {
  color: var(--text-soft);
  margin-bottom: 14px;
  font-size: 0.98rem;
}

section ul:not(.nav-list):not(.contact-list):not(.breadcrumb ol),
section ol {
  margin: 12px 0 18px;
  padding-left: 4px;
}

section ul:not(.nav-list):not(.contact-list) li,
section ol li {
  position: relative;
  padding: 8px 14px 8px 34px;
  margin-bottom: 8px;
  color: var(--text-soft);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

section ul:not(.nav-list):not(.contact-list) li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-btn);
  transform: translateY(-50%);
  box-shadow: 0 0 10px rgba(108, 92, 231, 0.7);
}

section ol {
  counter-reset: step;
}

section ol li {
  padding-left: 46px;
  counter-increment: step;
}

section ol li::before {
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  border-radius: 8px;
  background: var(--grad-btn);
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.5);
}

section ul:not(.nav-list):not(.contact-list) li:hover,
section ol li:hover {
  transform: translateX(4px);
  border-color: var(--border-strong);
  background: rgba(108, 92, 231, 0.12);
  box-shadow: var(--shadow-sm);
}

/* ============ HERO ============ */
#hero {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 7vw, 72px) clamp(22px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background: var(--grad-hero);
  background-size: 200% 200%;
  animation: heroShift 16s ease infinite;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-strong);
  isolation: isolate;
}

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

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 80% 20%, rgba(253, 203, 110, 0.28), transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(162, 155, 254, 0.32), transparent 50%);
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  top: -60%;
  right: -20%;
  width: 60%;
  height: 220%;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09), transparent);
  transform: rotate(18deg);
  animation: sheen 9s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sheen {
  0%, 100% { transform: translateX(-30%) rotate(18deg); opacity: 0.4; }
  50% { transform: translateX(30%) rotate(18deg); opacity: 0.9; }
}

#hero-title {
  font-size: clamp(1.7rem, 4.6vw, 2.9rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  animation: fadeUp 0.9s ease both;
}

@media (prefers-color-scheme: light) {
  #hero-title {
    color: #2a1a5e;
    text-shadow: 0 2px 16px rgba(255, 255, 255, 0.6);
  }
}

.hero-lead {
  max-width: 780px;
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 26px;
  animation: fadeUp 0.9s ease 0.1s both;
}

@media (prefers-color-scheme: light) {
  .hero-lead {
    color: rgba(42, 26, 94, 0.85);
  }
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
  animation: fadeUp 0.9s ease 0.2s both;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, filter 0.3s ease;
}

.btn-primary {
  color: #fff;
  background: var(--grad-btn);
  box-shadow: 0 10px 28px rgba(108, 92, 231, 0.5);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 38px rgba(108, 92, 231, 0.65);
  filter: brightness(1.1);
}

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.03);
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

@media (prefers-color-scheme: light) {
  .btn-secondary {
    color: #2a1a5e;
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(42, 26, 94, 0.25);
  }
  .btn-secondary:hover {
    color: #2a1a5e;
    background: rgba(255, 255, 255, 0.8);
  }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  animation: fadeUp 0.9s ease 0.3s both;
}

.stat {
  text-align: center;
  padding: 18px 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  transition: transform 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.stat:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

.stat .num {
  display: block;
  font-size: clamp(1.4rem, 3.4vw, 2.1rem);
  font-weight: 900;
  line-height: 1.2;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@media (prefers-color-scheme: light) {
  .stat {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(42, 26, 94, 0.16);
  }
  .stat .num {
    background: linear-gradient(135deg, #4a2c7a, #b8860b);
    -webkit-background-clip: text;
    background-clip: text;
  }
}

.stat .label {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
}

@media (prefers-color-scheme: light) {
  .stat .label {
    color: rgba(42, 26, 94, 0.75);
  }
}

/* ============ INTRO / CONTENT SECTIONS ============ */
#intro,
#products,
#solutions,
#scenes,
#articles,
#howto,
#faq,
#contact,
#sitemap,
#links,
#privacy,
#disclaimer,
#copyright {
  padding: clamp(22px, 4vw, 38px);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

#intro:hover,
#products:hover,
#solutions:hover,
#scenes:hover,
#articles:hover,
#howto:hover,
#faq:hover,
#contact:hover,
#sitemap:hover,
#links:hover,
#privacy:hover,
#disclaimer:hover,
#copyright:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

/* ============ ARTICLES ============ */
#articles article {
  position: relative;
  padding: 22px 24px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad-btn);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s ease;
}

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

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

#articles article h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 8px;
}

#articles article h3 a {
  color: var(--text);
  background-image: linear-gradient(90deg, var(--primary-2), var(--accent));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.35s ease, color 0.3s ease;
}

#articles article h3 a:hover {
  color: var(--primary-2);
  background-size: 100% 2px;
}

#articles article .meta {
  font-size: 0.8rem;
  color: var(--text-mute);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

#articles article p {
  color: var(--text-soft);
  font-size: 0.94rem;
  margin-bottom: 12px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-2);
  transition: gap 0.3s ease, color 0.3s ease;
}

.read-more::after {
  content: "→";
  transition: transform 0.3s ease;
}

.read-more:hover {
  gap: 10px;
  color: var(--accent);
}

.read-more:hover::after {
  transform: translateX(4px);
}

/* ============ BLOCKQUOTE ============ */
blockquote {
  position: relative;
  margin: 16px 0;
  padding: 18px 22px 18px 26px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.14), rgba(253, 203, 110, 0.1));
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

blockquote:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-sm);
}

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

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

#faq details:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

#faq details[open] {
  border-color: rgba(108, 92, 231, 0.45);
  box-shadow: 0 8px 28px rgba(108, 92, 231, 0.18);
}

#faq summary {
  position: relative;
  padding: 16px 52px 16px 20px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: color 0.25s ease, background 0.25s ease;
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  font-weight: 400;
  color: #fff;
  border-radius: 50%;
  background: var(--grad-btn);
  transform: translateY(-50%);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
}

#faq details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
  background: var(--grad-accent);
}

#faq summary:hover {
  color: var(--primary-2);
  background: rgba(108, 92, 231, 0.08);
}

#faq details p {
  padding: 0 20px 18px;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.93rem;
  line-height: 1.85;
  animation: fadeUp 0.4s ease both;
}

/* ============ CONTACT ============ */
.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 18px 0 24px;
}

.contact-list li {
  padding: 16px 18px;
  font-size: 0.93rem;
  color: var(--text-soft);
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.contact-list li:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  background: rgba(108, 92, 231, 0.1);
  box-shadow: var(--shadow-sm);
}

.contact-list a {
  font-weight: 600;
  word-break: break-all;
}

/* ============ SITEMAP & LINKS ============ */
#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

#sitemap ul li,
#links ul li {
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

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

#sitemap a,
#links a {
  display: inline-block;
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: var(--grad-btn);
  border-color: transparent;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 24px rgba(108, 92, 231, 0.4);
}

/* ============ COPYRIGHT ============ */
#copyright p {
  font-size: 0.88rem;
  color: var(--text-mute);
  margin-bottom: 8px;
}

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

/* ============ FOOTER ============ */
footer {
  margin-top: auto;
  padding: 30px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--grad-line);
  background-size: 200% 100%;
  animation: slideLine 8s linear infinite;
  opacity: 0.7;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}

.footer-inner p {
  font-size: 0.86rem;
  color: var(--text-mute);
  margin-bottom: 6px;
}

.footer-inner p:first-child {
  font-size: 0.94rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============ BACK TO TOP ============ */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 90;
  padding: 12px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-btn);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(108, 92, 231, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.35s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

#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 16px 36px rgba(108, 92, 231, 0.65);
  filter: brightness(1.1);
}

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

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary-2), var(--accent));
}

::selection {
  background: rgba(108, 92, 231, 0.4);
  color: #fff;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .header-inner {
    gap: 12px;
  }
  .site-search input {
    width: 150px;
  }
  .site-search input:focus {
    width: 180px;
  }
}

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

  .header-inner {
    padding: 10px 16px;
    row-gap: 10px;
  }

  nav[aria-label="主导航"] {
    order: 3;
    flex-basis: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  nav[aria-label="主导航"]::-webkit-scrollbar {
    display: none;
  }

  .nav-list {
    flex-wrap: nowrap;
    gap: 2px;
    padding-bottom: 2px;
  }

  .nav-list a {
    font-size: 0.86rem;
    padding: 7px 10px;
  }

  .site-search {
    margin-left: auto;
  }

  .site-search input {
    width: 130px;
    padding: 8px 12px;
    font-size: 0.85rem;
  }

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

  .site-search button {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .hero-stats {
    gap: 10px;
  }

  .stat {
    padding: 14px 8px;
  }

  section > h2 {
    padding-left: 14px;
  }

  section > h2::before {
    width: 5px;
  }
}

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

  main {
    padding: 18px 14px 48px;
  }

  .breadcrumb {
    padding: 12px 14px 0;
  }

  #hero {
    padding: 30px 20px;
    border-radius: var(--radius);
  }

  .hero-actions {
    gap: 10px;
  }

  .btn-primary,
  .btn-secondary {
    flex: 1 1 auto;
    padding: 12px 20px;
    font-size: 0.92rem;
    min-width: 130px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 14px 18px;
  }

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

  .stat .label {
    margin-top: 0;
    font-size: 0.8rem;
  }

  #intro,
  #products,
  #solutions,
  #scenes,
  #articles,
  #howto,
  #faq,
  #contact,
  #sitemap,
  #links,
  #privacy,
  #disclaimer,
  #copyright {
    padding: 20px 16px;
    border-radius: var(--radius);
  }

  #articles article {
    padding: 18px 16px;
  }

  #articles article h3 {
    font-size: 1rem;
  }

  #faq summary {
    padding: 14px 46px 14px 16px;
    font-size: 0.92rem;
  }

  #faq summary::after {
    right: 14px;
    width: 24px;
    height: 24px;
  }

  #faq details p {
    padding: 0 16px 16px;
    font-size: 0.9rem;
  }

  .contact-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contact-list li {
    padding: 14px 16px;
  }

  #sitemap ul,
  #links ul {
    gap: 8px;
  }

  #sitemap a,
  #links a {
    padding: 8px 14px;
    font-size: 0.82rem;
  }

  #back-to-top {
    right: 14px;
    bottom: 16px;
    padding: 10px 15px;
    font-size: 0.8rem;
  }

  blockquote {
    padding: 14px 16px 14px 20px;
  }

  section ul:not(.nav-list):not(.contact-list) li,
  section ol li {
    padding: 7px 12px 7px 30px;
    font-size: 0.92rem;
  }

  section ol li {
    padding-left: 42px;
  }
}

@media (max-width: 400px) {
  .site-search input {
    width: 100px;
  }
  .site-search input:focus {
    width: 120px;
  }
  .brand-name {
    font-size: 1.1rem;
  }
}

/* ============ 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,
  footer,
  .hero-actions,
  .site-search {
    display: none !important;
  }

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

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