:root {
  --brand-primary: #f5a623;
  --brand-secondary: #ff6b35;
  --brand-accent: #ffd93d;
  --brand-deep: #1a0f2e;
  --brand-mid: #2d1b4e;
  --bg-body: #0d0817;
  --bg-surface: rgba(30, 18, 55, 0.72);
  --bg-surface-solid: #1e1237;
  --bg-card: rgba(45, 27, 78, 0.55);
  --bg-card-hover: rgba(58, 35, 100, 0.72);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --bg-glass-border: rgba(255, 255, 255, 0.12);
  --text-primary: #f0eaff;
  --text-secondary: #b8a9d4;
  --text-muted: #7e6fa0;
  --text-inverse: #0d0817;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 24px rgba(245, 166, 35, 0.3);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Cascadia Code", Consolas, monospace;
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --header-height: 68px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-body: #f7f4fc;
    --bg-surface: rgba(255, 255, 255, 0.78);
    --bg-surface-solid: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.72);
    --bg-card-hover: rgba(255, 255, 255, 0.92);
    --bg-glass: rgba(255, 255, 255, 0.55);
    --bg-glass-border: rgba(0, 0, 0, 0.06);
    --text-primary: #1a0f2e;
    --text-secondary: #4a3a6a;
    --text-muted: #8a7aa8;
    --text-inverse: #f0eaff;
    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-medium: rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 2px 8px rgba(26, 15, 46, 0.06);
    --shadow-md: 0 8px 24px rgba(26, 15, 46, 0.1);
    --shadow-lg: 0 16px 48px rgba(26, 15, 46, 0.14);
    --shadow-glow: 0 0 24px rgba(245, 166, 35, 0.25);
  }
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-primary);
  background-color: var(--bg-body);
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(245, 166, 35, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(255, 107, 53, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(120, 80, 220, 0.07) 0%, transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(245, 166, 35, 0.35);
  color: var(--text-primary);
}

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

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

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

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

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

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

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

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

ul, ol {
  list-style: none;
}

/* ========== HEADER ========== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-surface);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

header nav[aria-label="主导航"] {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

header nav[aria-label="主导航"] > a:first-child {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-primary), var(--brand-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform var(--transition-base), filter var(--transition-base);
  position: relative;
}

header nav[aria-label="主导航"] > a:first-child::before {
  content: "";
  position: absolute;
  inset: -6px -10px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.12), rgba(255, 107, 53, 0.08));
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: -1;
}

header nav[aria-label="主导航"] > a:first-child:hover {
  transform: scale(1.04);
  filter: brightness(1.15);
}

header nav[aria-label="主导航"] > a:first-child:hover::before {
  opacity: 1;
}

header nav[aria-label="主导航"] ul {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

header nav[aria-label="主导航"] ul li a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  position: relative;
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

header nav[aria-label="主导航"] ul li a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  border-radius: var(--radius-full);
  transform: translateX(-50%);
  transition: width var(--transition-base);
}

header nav[aria-label="主导航"] ul li a:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
  transform: translateY(-1px);
}

header nav[aria-label="主导航"] ul li a:hover::after {
  width: 60%;
}

/* ========== MAIN ========== */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 60px;
}

/* ========== BREADCRUMB ========== */
nav[aria-label="面包屑"] {
  padding: 20px 0 8px;
}

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

nav[aria-label="面包屑"] ol li {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

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

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

/* ========== HERO ========== */
#hero {
  position: relative;
  margin: 24px 0 48px;
  padding: 64px 48px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, #1a0f2e 0%, #2d1b4e 35%, #4a2060 65%, #7a2a5a 100%);
  box-shadow: var(--shadow-lg), 0 0 80px rgba(245, 166, 35, 0.12);
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 400px at 15% 20%, rgba(245, 166, 35, 0.35) 0%, transparent 70%),
    radial-gradient(circle 350px at 85% 75%, rgba(255, 107, 53, 0.3) 0%, transparent 70%),
    radial-gradient(circle 300px at 50% 50%, rgba(255, 217, 61, 0.12) 0%, transparent 70%);
  z-index: -1;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: -1;
  opacity: 0.6;
}

@keyframes heroGlow {
  0% {
    opacity: 0.7;
    transform: scale(1) rotate(0deg);
  }
  100% {
    opacity: 1;
    transform: scale(1.08) rotate(2deg);
  }
}

#hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.7s ease-out both;
}

#hero h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  margin-top: 20px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--brand-accent), var(--brand-primary), var(--brand-secondary));
  animation: expandWidth 0.9s 0.3s ease-out both;
}

@keyframes expandWidth {
  from { width: 0; opacity: 0; }
  to { width: 80px; opacity: 1; }
}

#hero p {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.82);
  max-width: 780px;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.7s 0.15s ease-out both;
}

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

/* ========== SECTIONS ========== */
main > section {
  margin-bottom: 56px;
  animation: fadeInUp 0.6s ease-out both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

@supports not (animation-timeline: view()) {
  main > section {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

main > section > h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 28px;
  padding-bottom: 16px;
  position: relative;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

main > section > h2::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 3px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  transition: width var(--transition-slow);
}

main > section:hover > h2::before {
  width: 100px;
}

main > section > h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.4;
  margin: 32px 0 16px;
  color: var(--text-primary);
  position: relative;
  padding-left: 18px;
}

main > section > h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  bottom: 0.25em;
  width: 4px;
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, var(--brand-accent), var(--brand-primary));
  transition: transform var(--transition-base);
}

main > section > h3:hover::before {
  transform: scaleY(1.15);
}

main > section > h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 20px 0 10px;
  color: var(--brand-primary);
  letter-spacing: 0.2px;
}

main > section p {
  margin-bottom: 14px;
  color: var(--text-secondary);
  line-height: 1.85;
}

main > section > p:last-child {
  margin-bottom: 0;
}

/* ========== CARD STYLES ========== */
#brand,
#product,
#solution,
#cases,
#news,
#articles,
#faq,
#howto,
#knowledge,
#contact,
#sitemap,
#links,
#legal {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
  position: relative;
  overflow: hidden;
}

#brand::before,
#product::before,
#solution::before,
#cases::before,
#news::before,
#articles::before,
#faq::before,
#howto::before,
#knowledge::before,
#contact::before,
#sitemap::before,
#links::before,
#legal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary), var(--brand-accent), var(--brand-primary));
  background-size: 300% 100%;
  opacity: 0;
  transition: opacity var(--transition-base);
  animation: gradientShift 4s linear infinite;
}

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

#brand:hover,
#product:hover,
#solution:hover,
#cases:hover,
#news:hover,
#articles:hover,
#faq:hover,
#howto:hover,
#knowledge:hover,
#contact:hover,
#sitemap:hover,
#links:hover,
#legal:hover {
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: rgba(245, 166, 35, 0.25);
}

#brand:hover::before,
#product:hover::before,
#solution:hover::before,
#cases:hover::before,
#news:hover::before,
#articles:hover::before,
#faq:hover::before,
#howto:hover::before,
#knowledge:hover::before,
#contact:hover::before,
#sitemap:hover::before,
#links:hover::before,
#legal:hover::before {
  opacity: 1;
}

/* ========== CASES BLOCKQUOTE ========== */
#cases blockquote {
  position: relative;
  margin: 20px 0;
  padding: 24px 28px 24px 52px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--brand-primary);
  border-radius: var(--radius-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

#cases blockquote::before {
  content: "\201C";
  position: absolute;
  top: 8px;
  left: 16px;
  font-size: 3rem;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--brand-primary);
  opacity: 0.5;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

#cases blockquote:hover {
  transform: translateX(6px) translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(245, 166, 35, 0.3);
}

#cases blockquote:hover::before {
  opacity: 0.9;
  transform: scale(1.1);
}

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

/* ========== NEWS ========== */
#news h3 {
  padding: 16px 20px;
  margin: 16px 0 8px;
  background: var(--bg-glass);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: transform var(--transition-base), background var(--transition-base), border-color var(--transition-base);
  padding-left: 20px;
}

#news h3::before {
  display: none;
}

#news h3:hover {
  transform: translateX(6px);
  background: var(--bg-card-hover);
  border-color: rgba(245, 166, 35, 0.25);
}

#news p:first-of-type {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding-left: 20px;
}

/* ========== ARTICLES ========== */
#articles article {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 28px 24px;
  margin-bottom: 20px;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), background var(--transition-base);
  position: relative;
  overflow: hidden;
}

#articles article::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(245, 166, 35, 0.25);
  background: var(--bg-card-hover);
}

#articles article:hover::after {
  transform: scaleX(1);
}

#articles article h3 {
  padding-left: 0;
  margin-top: 0;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

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

#articles article p:first-of-type {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

#articles article p a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brand-primary);
  transition: gap var(--transition-base), color var(--transition-fast);
}

#articles article p a::after {
  content: "→";
  transition: transform var(--transition-base);
  display: inline-block;
}

#articles article p a:hover {
  gap: 10px;
  color: var(--brand-accent);
}

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

/* ========== FAQ ========== */
#faq dl {
  display: grid;
  gap: 14px;
}

#faq dt {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text-primary);
  padding: 20px 24px 8px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  cursor: pointer;
  position: relative;
  padding-left: 48px;
  transition: background var(--transition-base), color var(--transition-fast);
}

#faq dt::before {
  content: "Q";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-inverse);
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-primary));
  border-radius: var(--radius-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

#faq dt:hover {
  background: var(--bg-card-hover);
  color: var(--brand-primary);
}

#faq dt:hover::before {
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 0 12px rgba(245, 166, 35, 0.4);
}

#faq dd {
  padding: 16px 24px 22px 48px;
  margin-bottom: 4px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.8;
  position: relative;
  transition: background var(--transition-base);
}

#faq dd::before {
  content: "A";
  position: absolute;
  left: 18px;
  top: 18px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand-primary);
  background: var(--bg-glass);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
}

#faq dd:hover {
  background: var(--bg-card-hover);
}

/* ========== HOWTO ========== */
#howto ul,
#howto ol {
  padding-left: 0;
  margin: 16px 0 24px;
  display: grid;
  gap: 10px;
}

#howto ul li {
  position: relative;
  padding: 14px 18px 14px 46px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.93rem;
  transition: transform var(--transition-base), background var(--transition-base), border-color var(--transition-base);
}

#howto ul li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-inverse);
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-primary));
  border-radius: 50%;
  transition: transform var(--transition-base);
}

#howto ul li:hover {
  transform: translateX(6px);
  background: var(--bg-card-hover);
  border-color: rgba(245, 166, 35, 0.25);
}

#howto ul li:hover::before {
  transform: translateY(-50%) scale(1.15);
}

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

#howto ol li {
  position: relative;
  padding: 16px 18px 16px 56px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.93rem;
  counter-increment: step-counter;
  transition: transform var(--transition-base), background var(--transition-base), border-color var(--transition-base);
}

#howto ol li::before {
  content: counter(step-counter);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-inverse);
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  border-radius: var(--radius-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

#howto ol li:hover {
  transform: translateX(6px);
  background: var(--bg-card-hover);
  border-color: rgba(245, 166, 35, 0.25);
}

#howto ol li:hover::before {
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 0 14px rgba(245, 166, 35, 0.4);
}

/* ========== KNOWLEDGE ========== */
#knowledge h3 {
  margin-top: 28px;
}

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

/* ========== CONTACT ========== */
#contact p {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-subtle);
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

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

#contact h3 {
  margin-top: 28px;
}

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

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

#sitemap ul li a,
#links ul li a {
  display: block;
  padding: 14px 18px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform var(--transition-base), background var(--transition-base), border-color var(--transition-base), color var(--transition-fast), box-shadow var(--transition-base);
  position: relative;
  overflow: hidden;
}

#sitemap ul li a::before,
#links ul li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--brand-primary), var(--brand-secondary));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--transition-base);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  transform: translateY(-3px) translateX(4px);
  background: var(--bg-card-hover);
  border-color: rgba(245, 166, 35, 0.25);
  color: var(--brand-primary);
  box-shadow: var(--shadow-sm);
}

#sitemap ul li a:hover::before,
#links ul li a:hover::before {
  transform: scaleY(1);
}

/* ========== LEGAL ========== */
#legal h2 {
  font-size: 1.15rem;
  margin-top: 28px;
  margin-bottom: 12px;
  padding-bottom: 10px;
}

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

#legal h2::before {
  width: 32px;
  height: 2px;
}

#legal p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

#legal p:last-child {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ========== FOOTER ========== */
footer {
  position: relative;
  margin-top: 40px;
  padding: 44px 24px;
  background: var(--bg-surface);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary), var(--brand-accent), var(--brand-primary));
  background-size: 300% 100%;
  animation: gradientShift 6s linear infinite;
}

footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.9;
  max-width: var(--max-width);
  margin: 0 auto;
}

footer p:first-child {
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  :root {
    --header-height: 60px;
  }

  header nav[aria-label="主导航"] {
    padding: 0 18px;
  }

  header nav[aria-label="主导航"] ul li a {
    padding: 6px 10px;
    font-size: 0.82rem;
  }

  main {
    padding: 0 18px 48px;
  }

  #hero {
    padding: 48px 32px;
    border-radius: var(--radius-lg);
  }

  #brand,
  #product,
  #solution,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #knowledge,
  #contact,
  #sitemap,
  #links,
  #legal {
    padding: 32px 26px;
    border-radius: var(--radius-md);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 56px;
    --radius-lg: 18px;
    --radius-xl: 24px;
  }

  body {
    font-size: 15px;
  }

  header nav[aria-label="主导航"] {
    padding: 0 14px;
    gap: 12px;
  }

  header nav[aria-label="主导航"] > a:first-child {
    font-size: 1.15rem;
  }

  header nav[aria-label="主导航"] ul {
    gap: 2px;
  }

  header nav[aria-label="主导航"] ul li a {
    padding: 5px 8px;
    font-size: 0.75rem;
  }

  main {
    padding: 0 14px 40px;
  }

  nav[aria-label="面包屑"] {
    padding: 14px 0 4px;
  }

  #hero {
    margin: 16px 0 32px;
    padding: 36px 22px;
    border-radius: var(--radius-lg);
  }

  #hero h1 {
    font-size: 1.5rem;
    margin-bottom: 16px;
  }

  #hero h1::after {
    width: 60px;
    height: 3px;
    margin-top: 14px;
  }

  #hero p {
    font-size: 0.9rem;
    line-height: 1.75;
  }

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

  main > section > h2 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
  }

  main > section > h3 {
    font-size: 1.05rem;
    margin: 24px 0 12px;
    padding-left: 14px;
  }

  #brand,
  #product,
  #solution,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #knowledge,
  #contact,
  #sitemap,
  #links,
  #legal {
    padding: 24px 18px;
    border-radius: var(--radius-md);
  }

  #cases blockquote {
    padding: 20px 18px 20px 42px;
  }

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

  #news h3 {
    padding: 14px 16px;
    font-size: 0.98rem;
  }

  #news p:first-of-type {
    padding-left: 0;
  }

  #articles article {
    padding: 22px 18px 20px;
  }

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

  #faq dt {
    padding: 16px 18px 6px 42px;
    font-size: 0.95rem;
  }

  #faq dt::before {
    left: 14px;
    width: 20px;
    height: 20px;
    font-size: 0.65rem;
  }

  #faq dd {
    padding: 14px 18px 18px 42px;
    font-size: 0.88rem;
  }

  #faq dd::before {
    left: 14px;
    top: 16px;
    width: 20px;
    height: 20px;
    font-size: 0.65rem;
  }

  #howto ul li {
    padding: 12px 14px 12px 40px;
    font-size: 0.88rem;
  }

  #howto ul li::before {
    left: 13px;
    width: 18px;
    height: 18px;
    font-size: 0.62rem;
  }

  #howto ol li {
    padding: 14px 14px 14px 48px;
    font-size: 0.88rem;
  }

  #howto ol li::before {
    left: 13px;
    width: 24px;
    height: 24px;
    font-size: 0.72rem;
  }

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

  #sitemap ul li a,
  #links ul li a {
    padding: 12px 14px;
    font-size: 0.84rem;
  }

  #legal h2 {
    font-size: 1.05rem;
  }

  footer {
    padding: 32px 16px;
  }

  footer p {
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  header nav[aria-label="主导航"] {
    flex-direction: column;
    height: auto;
    padding: 10px 12px;
    gap: 8px;
  }

  header nav[aria-label="主导航"] ul {
    justify-content: center;
    width: 100%;
  }

  header nav[aria-label="主导航"] ul li a {
    padding: 4px 7px;
    font-size: 0.7rem;
  }

  :root {
    --header-height: 90px;
  }

  #hero {
    padding: 28px 16px;
  }

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

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

  #brand,
  #product,
  #solution,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #knowledge,
  #contact,
  #sitemap,
  #links,
  #legal {
    padding: 20px 14px;
  }

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

/* ========== ACCESSIBILITY & 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;
  }

  main > section {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (prefers-contrast: high) {
  :root {
    --border-subtle: rgba(255, 255, 255, 0.25);
    --border-medium: rgba(255, 255, 255, 0.35);
    --text-secondary: #ddd0f0;
    --text-muted: #b8a9d4;
  }
}

@media print {
  header,
  footer,
  #sitemap,
  #links {
    display: none;
  }

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

  main > section {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
    background: #fff;
    backdrop-filter: none;
  }

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