:root {
  --bg: #0f0f1a;
  --bg-alt: #16162a;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-hover: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.12);
  --text: #e8e8f0;
  --text-muted: #a0a0b8;
  --text-dim: #6c6c88;
  --accent: #ff4d6d;
  --accent-2: #7c4dff;
  --accent-3: #00d9ff;
  --gradient-banner: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 40%, #4a1d3f 70%, #1a1a2e 100%);
  --gradient-accent: linear-gradient(135deg, #ff4d6d, #7c4dff);
  --gradient-text: linear-gradient(120deg, #ff4d6d, #ff8a5c, #7c4dff, #00d9ff);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --glass-blur: blur(20px);
  --glass-bg: rgba(22, 22, 42, 0.55);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f4fa;
    --bg-alt: #ffffff;
    --surface: rgba(255, 255, 255, 0.65);
    --surface-hover: rgba(255, 255, 255, 0.85);
    --border: rgba(0, 0, 0, 0.08);
    --text: #1a1a2e;
    --text-muted: #55556e;
    --text-dim: #8888a0;
    --gradient-banner: linear-gradient(135deg, #ffe4ec 0%, #e8e0ff 40%, #ffe0f0 70%, #e0f4ff 100%);
    --glass-bg: rgba(255, 255, 255, 0.55);
    --shadow-sm: 0 2px 8px rgba(80, 60, 120, 0.08);
    --shadow-md: 0 8px 32px rgba(80, 60, 120, 0.12);
    --shadow-lg: 0 16px 48px rgba(80, 60, 120, 0.16);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  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;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(124, 77, 255, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(255, 77, 109, 0.1), transparent),
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(0, 217, 255, 0.08), transparent);
  pointer-events: none;
}

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

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

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

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

ul {
  list-style: none;
}

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

header:has(nav) {
  box-shadow: var(--shadow-sm);
}

.brand-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.brand-bar strong {
  font-size: 1.15rem;
  font-weight: 800;
  background: var(--gradient-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 6s linear infinite;
  letter-spacing: 0.04em;
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-bottom: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

nav ul::-webkit-scrollbar {
  display: none;
}

nav ul li a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all var(--transition);
  position: relative;
}

nav ul li a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background: var(--gradient-accent);
  opacity: 0;
  z-index: -1;
  transition: opacity var(--transition);
}

nav ul li a:hover {
  color: #fff;
  transform: translateY(-1px);
}

nav ul li a:hover::after {
  opacity: 1;
}

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

section {
  margin-top: 56px;
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

section:nth-child(1) { animation-delay: 0.05s; }
section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.15s; }
section:nth-child(4) { animation-delay: 0.2s; }
section:nth-child(5) { animation-delay: 0.25s; }

/* ===== Hero ===== */
#hero {
  position: relative;
  margin-top: 32px;
  padding: 64px 48px;
  border-radius: var(--radius-lg);
  background: var(--gradient-banner);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 77, 109, 0.25), transparent 45%),
    radial-gradient(circle at 15% 80%, rgba(124, 77, 255, 0.25), transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(0, 217, 255, 0.1), transparent 60%);
  animation: heroGlow 8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes heroGlow {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.08); }
}

#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");
  pointer-events: none;
}

#hero h1 {
  position: relative;
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  background: var(--gradient-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 8s linear infinite;
}

#hero p {
  position: relative;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--text-muted);
  max-width: 820px;
  line-height: 1.85;
}

/* ===== Headings ===== */
h2 {
  position: relative;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  padding-left: 18px;
  line-height: 1.35;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 5px;
  border-radius: var(--radius-full);
  background: var(--gradient-accent);
  box-shadow: 0 0 16px rgba(255, 77, 109, 0.5);
}

h3 {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--text);
  letter-spacing: -0.01em;
}

h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 20px 0 8px;
  color: var(--accent-3);
  letter-spacing: 0.01em;
}

p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ===== Cards (sections as glass cards) ===== */
#intro,
#products,
#solutions,
#cases,
#knowledge,
#howto,
#faq,
#contact,
#sitemap,
#links,
#privacy,
#disclaimer {
  background: var(--surface);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

#intro:hover,
#products:hover,
#solutions:hover,
#cases:hover,
#knowledge:hover,
#howto:hover,
#faq:hover,
#contact:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 77, 109, 0.25);
}

/* ===== Product / Solution / Case grid feel ===== */
#products h3,
#solutions h3,
#cases h3 {
  position: relative;
  padding: 18px 20px 6px;
  margin: 16px 0 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  transition: background var(--transition), border-color var(--transition);
}

#products h3 + p,
#solutions h3 + p,
#cases h3 + p {
  padding: 0 20px 18px;
  margin: 0 0 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: background var(--transition), border-color var(--transition);
}

#products h3:hover,
#products h3:hover + p,
#solutions h3:hover,
#solutions h3:hover + p,
#cases h3:hover,
#cases h3:hover + p {
  background: var(--surface-hover);
  border-color: rgba(124, 77, 255, 0.3);
}

/* ===== Blockquote (testimonials) ===== */
blockquote {
  position: relative;
  margin: 20px 0;
  padding: 24px 28px 24px 52px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

blockquote::before {
  content: "\201C";
  position: absolute;
  left: 16px;
  top: 8px;
  font-size: 3rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--accent);
  opacity: 0.5;
}

blockquote:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--accent-3);
}

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

/* ===== Articles ===== */
#articles article {
  position: relative;
  background: var(--surface);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  margin-bottom: 18px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

#articles article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 217, 255, 0.3);
  background: var(--surface-hover);
}

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

#articles article h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  line-height: 1.5;
  transition: color var(--transition);
}

#articles article:hover h3 {
  color: var(--accent-3);
}

#articles article time {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 10px;
  padding: 2px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

#articles article p {
  font-size: 0.925rem;
  line-height: 1.8;
  margin-bottom: 14px;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  padding: 6px 16px;
  border: 1px solid rgba(255, 77, 109, 0.35);
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

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

#articles article a:hover {
  background: var(--gradient-accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(255, 77, 109, 0.4);
}

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

/* ===== FAQ ===== */
#faq h3 {
  position: relative;
  padding: 16px 20px 16px 44px;
  margin: 12px 0 0;
  font-size: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  cursor: default;
  transition: background var(--transition), color var(--transition);
}

#faq h3::before {
  content: "Q";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent);
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  border-radius: 50%;
  background: rgba(255, 77, 109, 0.15);
}

#faq h3 + p {
  padding: 4px 20px 18px 44px;
  margin: 0 0 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-size: 0.925rem;
  transition: background var(--transition), border-color var(--transition);
}

#faq h3:hover,
#faq h3:hover + p {
  background: var(--surface-hover);
}

#faq h3:hover {
  color: var(--accent-3);
}

/* ===== HowTo steps ===== */
#howto h4 {
  position: relative;
  padding-left: 36px;
  margin-top: 22px;
}

#howto h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient-accent);
  box-shadow: 0 0 12px rgba(255, 77, 109, 0.4);
}

#howto h4::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  width: 2px;
  height: 14px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  opacity: 0.5;
}

#howto h4 + p {
  padding-left: 36px;
}

/* ===== Contact info ===== */
#contact p {
  line-height: 2;
}

#contact p br {
  display: block;
  content: "";
  margin: 4px 0;
}

/* ===== Sitemap & Links ===== */
#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.875rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  color: #fff;
  background: var(--gradient-accent);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 77, 109, 0.35);
}

/* ===== Privacy & Disclaimer ===== */
#privacy p,
#disclaimer p {
  font-size: 0.9rem;
  line-height: 1.9;
}

/* ===== Footer ===== */
footer {
  position: relative;
  margin-top: 64px;
  padding: 48px 24px 40px;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: var(--gradient-accent);
  opacity: 0.6;
}

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

footer p:first-child {
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

footer p:last-child {
  margin-bottom: 0;
  font-size: 0.78rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  #hero {
    padding: 48px 32px;
  }

  #intro,
  #products,
  #solutions,
  #cases,
  #knowledge,
  #howto,
  #faq,
  #contact,
  #sitemap,
  #links,
  #privacy,
  #disclaimer {
    padding: 32px 26px;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 120px;
  }

  body {
    font-size: 15px;
  }

  .brand-bar {
    padding: 12px 16px 8px;
    font-size: 0.75rem;
  }

  .brand-bar strong {
    font-size: 1rem;
  }

  nav {
    padding: 0 16px;
  }

  nav ul {
    gap: 2px;
    padding-bottom: 8px;
  }

  nav ul li a {
    padding: 5px 11px;
    font-size: 0.8rem;
  }

  main {
    padding: 0 16px 40px;
  }

  section {
    margin-top: 36px;
  }

  #hero {
    margin-top: 20px;
    padding: 36px 22px;
    border-radius: var(--radius-md);
  }

  #hero h1 {
    margin-bottom: 14px;
  }

  h2 {
    margin-bottom: 20px;
    padding-left: 14px;
  }

  h2::before {
    width: 4px;
  }

  #intro,
  #products,
  #solutions,
  #cases,
  #knowledge,
  #howto,
  #faq,
  #contact,
  #sitemap,
  #links,
  #privacy,
  #disclaimer {
    padding: 24px 18px;
    border-radius: var(--radius-md);
  }

  #products h3,
  #solutions h3,
  #cases h3 {
    padding: 14px 16px 4px;
  }

  #products h3 + p,
  #solutions h3 + p,
  #cases h3 + p {
    padding: 0 16px 14px;
  }

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

  #articles article a {
    padding: 5px 14px;
  }

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

  #faq h3 + p {
    padding: 4px 16px 16px 40px;
    font-size: 0.875rem;
  }

  blockquote {
    padding: 20px 20px 20px 44px;
  }

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

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

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

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

/* ===== Print ===== */
@media print {
  body::before,
  header,
  footer::before,
  nav {
    display: none;
  }

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

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