:root {
  --primary: #6c5ce7;
  --primary-light: #a29bfe;
  --primary-dark: #4834d4;
  --secondary: #fd79a8;
  --secondary-light: #fab1a0;
  --accent: #00cec9;
  --accent-light: #81ecec;
  --bg: #0f0f1a;
  --bg-secondary: #1a1a2e;
  --bg-card: rgba(30, 30, 50, 0.65);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --text: #e8e8f0;
  --text-secondary: #a0a0b8;
  --text-muted: #6c6c88;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 16px 48px rgba(108, 92, 231, 0.25);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: all 0.35s 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;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f5fa;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-glass: rgba(255, 255, 255, 0.6);
    --text: #1a1a2e;
    --text-secondary: #4a4a68;
    --text-muted: #8888a0;
    --border: rgba(0, 0, 0, 0.08);
    --shadow: 0 8px 32px rgba(108, 92, 231, 0.1);
    --shadow-hover: 0 16px 48px rgba(108, 92, 231, 0.18);
  }
}

*, *::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: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(108, 92, 231, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(253, 121, 168, 0.08), transparent);
  background-attachment: fixed;
}

@media (prefers-color-scheme: light) {
  body {
    background-image:
      radial-gradient(ellipse 80% 50% at 50% -20%, rgba(108, 92, 231, 0.08), transparent),
      radial-gradient(ellipse 60% 40% at 80% 100%, rgba(253, 121, 168, 0.05), transparent);
  }
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition);
}

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

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

ul, ol {
  list-style: none;
}

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 15, 26, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

@media (prefers-color-scheme: light) {
  header {
    background: rgba(245, 245, 250, 0.82);
  }
}

header nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

header nav > a {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 1px;
  position: relative;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  flex-shrink: 0;
}

header nav > a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--secondary));
  transition: width 0.4s ease;
  border-radius: 2px;
}

header nav > a:hover::after {
  width: 100%;
}

header nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

header nav ul li a {
  display: block;
  padding: 8px 14px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
}

header nav ul li a:hover {
  color: var(--text);
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  transform: translateY(-1px);
}

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

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

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

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

main > nav[aria-label="面包屑"] ol li:not(:last-child)::after {
  content: '›';
  color: var(--text-muted);
  font-size: 1rem;
}

main > nav[aria-label="面包屑"] ol li a {
  color: var(--text-muted);
  transition: var(--transition);
}

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

/* ===== H1 ===== */
h1 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.35;
  margin: 16px 0 32px;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary-light) 50%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

/* ===== SECTIONS ===== */
section {
  margin-bottom: 48px;
  animation: fadeInUp 0.7s ease both;
}

section:nth-child(odd) {
  animation-delay: 0.05s;
}

section:nth-child(even) {
  animation-delay: 0.1s;
}

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

section h2 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 12px;
  position: relative;
  color: var(--text);
  letter-spacing: -0.3px;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px;
}

section h3 {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 600;
  margin: 24px 0 12px;
  color: var(--primary-light);
  letter-spacing: -0.2px;
}

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

/* ===== HERO ===== */
#hero {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.12), rgba(253, 121, 168, 0.08), rgba(0, 206, 201, 0.06));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

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

#hero p {
  position: relative;
  z-index: 1;
}

/* ===== CARDS ===== */
#brand, #products, #advantages, #solutions, #industry,
#cases, #testimonials, #news, #articles, #faq,
#howto, #contact, #sitemap, #links {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

#brand:hover, #products:hover, #advantages:hover, #solutions:hover,
#industry:hover, #cases:hover, #testimonials:hover, #news:hover,
#articles:hover, #faq:hover, #howto:hover, #contact:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: rgba(108, 92, 231, 0.2);
}

/* ===== NEWS & ARTICLES ===== */
#news article, #articles article {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  margin-bottom: 16px;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#news article:hover, #articles article:hover {
  background: rgba(108, 92, 231, 0.08);
  border-color: rgba(108, 92, 231, 0.25);
  transform: translateX(6px);
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.12);
}

#news article h3, #articles article h3 {
  margin-top: 0;
  color: var(--text);
  font-size: 1rem;
}

#news article time, #articles article time {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding: 2px 10px;
  background: var(--bg-glass);
  border-radius: 20px;
  border: 1px solid var(--border);
}

#articles article p {
  font-size: 0.88rem;
  margin-bottom: 0;
}

/* ===== TESTIMONIALS ===== */
#testimonials h3 {
  color: var(--secondary-light);
}

#testimonials p {
  font-style: italic;
  position: relative;
  padding-left: 20px;
  border-left: 3px solid var(--secondary);
  border-radius: 2px;
}

/* ===== FAQ ===== */
#faq details {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#faq details:hover {
  border-color: rgba(108, 92, 231, 0.3);
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.1);
}

#faq details[open] {
  border-color: rgba(108, 92, 231, 0.35);
  background: rgba(108, 92, 231, 0.06);
}

#faq summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  user-select: none;
}

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

#faq summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--primary-light);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 12px;
}

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

#faq details[open] summary {
  color: var(--primary-light);
  border-bottom: 1px solid var(--border);
}

#faq details p {
  padding: 16px 20px;
  margin: 0;
  font-size: 0.9rem;
  animation: slideDown 0.3s ease;
}

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

/* ===== HOWTO ===== */
#howto ol {
  counter-reset: step;
  padding-left: 0;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 12px 16px 12px 52px;
  margin-bottom: 10px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(108, 92, 231, 0.3);
}

#howto ol li:hover {
  background: rgba(108, 92, 231, 0.08);
  border-color: rgba(108, 92, 231, 0.25);
  transform: translateX(6px);
}

/* ===== CONTACT ===== */
#contact p {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.92rem;
}

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

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

#sitemap ul li a, #links ul li a {
  display: block;
  padding: 10px 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#sitemap ul li a:hover, #links ul li a:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.35);
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
}

footer > section {
  max-width: 1200px;
  margin: 0 auto 28px;
  animation: none;
}

footer > section h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 8px;
}

footer > section h2::after {
  width: 32px;
  height: 2px;
}

footer > section p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 6px;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  header nav {
    flex-direction: column;
    height: auto;
    padding: 12px 16px;
    gap: 8px;
  }

  header nav > a {
    font-size: 1.2rem;
  }

  header nav ul {
    justify-content: center;
    gap: 2px;
  }

  header nav ul li a {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  main {
    padding: 0 16px 60px;
  }

  #hero {
    padding: 24px 20px;
  }

  #brand, #products, #advantages, #solutions, #industry,
  #cases, #testimonials, #news, #articles, #faq,
  #howto, #contact, #sitemap, #links {
    padding: 24px 18px;
  }

  section {
    margin-bottom: 32px;
  }

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

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

  header nav ul li a {
    padding: 5px 8px;
    font-size: 0.75rem;
  }

  h1 {
    font-size: 1.25rem;
    margin: 12px 0 20px;
  }

  section h2 {
    font-size: 1.1rem;
  }

  #hero {
    padding: 20px 16px;
  }

  #brand, #products, #advantages, #solutions, #industry,
  #cases, #testimonials, #news, #articles, #faq,
  #howto, #contact, #sitemap, #links {
    padding: 20px 14px;
  }

  #faq summary {
    padding: 12px 14px;
    font-size: 0.85rem;
  }

  #faq details p {
    padding: 12px 14px;
    font-size: 0.82rem;
  }

  #howto ol li {
    padding: 10px 12px 10px 44px;
    font-size: 0.85rem;
  }

  #howto ol li::before {
    left: 10px;
    width: 22px;
    height: 22px;
    font-size: 0.68rem;
  }

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

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

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

/* ===== FOCUS VISIBLE ===== */
:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 3px;
  border-radius: 4px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 3px;
}

/* ===== PRINT ===== */
@media print {
  header, footer, #sitemap, #links {
    display: none;
  }

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

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