:root {
  --bg-primary: #0f0f1a;
  --bg-secondary: #1a1a2e;
  --bg-card: rgba(26, 26, 46, 0.72);
  --bg-card-solid: #16213e;
  --bg-elevated: #0f3460;
  --text-primary: #f0f0f5;
  --text-secondary: #b8b8cc;
  --text-muted: #8888a0;
  --accent: #e94560;
  --accent-soft: rgba(233, 69, 96, 0.14);
  --accent-glow: rgba(233, 69, 96, 0.35);
  --blue: #0f3460;
  --blue-light: #3a7bd5;
  --gradient-banner: linear-gradient(135deg, #1a1a2e 0%, #16213e 35%, #0f3460 65%, #e94560 140%);
  --gradient-accent: linear-gradient(135deg, #e94560 0%, #903749 100%);
  --gradient-card: linear-gradient(160deg, rgba(22, 33, 62, 0.9) 0%, rgba(15, 52, 96, 0.55) 100%);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(233, 69, 96, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-accent: 0 8px 28px rgba(233, 69, 96, 0.25);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --glass-blur: blur(18px) saturate(1.4);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1180px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-primary: #f4f5fa;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-card-solid: #ffffff;
    --bg-elevated: #eef1f8;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a63;
    --text-muted: #7a7a92;
    --accent: #d6304a;
    --accent-soft: rgba(214, 48, 74, 0.1);
    --accent-glow: rgba(214, 48, 74, 0.25);
    --blue: #e3e9f5;
    --blue-light: #3a7bd5;
    --gradient-banner: linear-gradient(135deg, #eef1f8 0%, #e3e9f5 35%, #d6e0f0 65%, #f8d7de 130%);
    --gradient-card: linear-gradient(160deg, rgba(255, 255, 255, 0.95) 0%, rgba(238, 241, 248, 0.8) 100%);
    --border-subtle: rgba(26, 26, 46, 0.08);
    --border-accent: rgba(214, 48, 74, 0.25);
    --shadow-card: 0 8px 32px rgba(26, 26, 46, 0.08);
    --shadow-hover: 0 16px 48px rgba(26, 26, 46, 0.14);
    --shadow-accent: 0 8px 28px rgba(214, 48, 74, 0.18);
  }
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(233, 69, 96, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(15, 52, 96, 0.5), transparent 70%),
    radial-gradient(ellipse 50% 60% at 50% 120%, rgba(144, 55, 73, 0.15), transparent 70%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.75;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--text-primary);
  opacity: 0.95;
}

ul,
ol {
  padding-left: 1.4em;
}

li {
  margin-bottom: 0.5em;
  color: var(--text-secondary);
}

li::marker {
  color: var(--accent);
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  background: linear-gradient(120deg, var(--text-primary) 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  margin-bottom: 1.4rem;
  position: relative;
  padding-bottom: 0.7rem;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: var(--gradient-accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  margin: 1.6rem 0 0.7rem;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 15, 26, 0.65);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

@media (prefers-color-scheme: light) {
  header {
    background: rgba(255, 255, 255, 0.7);
  }
}

.brand-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem 0.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(120deg, var(--accent) 0%, #ff8fa3 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  padding-left: 1.6rem;
  white-space: nowrap;
}

.logo-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--gradient-accent);
  box-shadow: 0 0 14px var(--accent-glow), 0 0 28px var(--accent-glow);
  animation: pulse-glow 2.8s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { transform: translateY(-50%) scale(1); box-shadow: 0 0 14px var(--accent-glow), 0 0 28px var(--accent-glow); }
  50% { transform: translateY(-50%) scale(1.15); box-shadow: 0 0 22px var(--accent-glow), 0 0 44px var(--accent-glow); }
}

.slogan {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  padding: 0.2rem 0.7rem;
  border-left: 2px solid var(--border-accent);
  white-space: nowrap;
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 0.6rem;
  overflow-x: auto;
  scrollbar-width: none;
}

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

nav ul {
  list-style: none;
  display: flex;
  gap: 0.35rem;
  padding: 0;
  margin: 0;
  flex-wrap: nowrap;
}

nav li {
  margin: 0;
  flex-shrink: 0;
}

nav a {
  display: inline-block;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
  position: relative;
}

nav a:hover,
nav a:focus-visible {
  color: var(--text-primary);
  background: var(--accent-soft);
  border-color: var(--border-accent);
  box-shadow: 0 0 0 1px var(--border-accent), 0 4px 16px rgba(233, 69, 96, 0.12);
  outline: none;
  transform: translateY(-1px);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

section {
  margin-bottom: 3.5rem;
  animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  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; }
section:nth-child(6) { animation-delay: 0.3s; }
section:nth-child(7) { animation-delay: 0.35s; }
section:nth-child(8) { animation-delay: 0.4s; }
section:nth-child(9) { animation-delay: 0.45s; }
section:nth-child(10) { animation-delay: 0.5s; }
section:nth-child(11) { animation-delay: 0.55s; }
section:nth-child(12) { animation-delay: 0.6s; }
section:nth-child(13) { animation-delay: 0.65s; }
section:nth-child(14) { animation-delay: 0.7s; }
section:nth-child(15) { animation-delay: 0.75s; }

#hero {
  position: relative;
  background: var(--gradient-banner);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(233, 69, 96, 0.22), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(58, 123, 213, 0.18), transparent 50%);
  z-index: -1;
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.18), transparent 70%);
  filter: blur(40px);
  z-index: -1;
  animation: float-orb 12s ease-in-out infinite;
  pointer-events: none;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 30px) scale(1.1); }
}

#hero h1 {
  max-width: 900px;
}

#hero > p {
  max-width: 820px;
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  color: var(--text-secondary);
}

figure {
  margin: 2rem 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

figure:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: var(--shadow-hover);
}

figure svg {
  width: 100%;
  height: auto;
  display: block;
}

figcaption {
  padding: 0.85rem 1.2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.12);
}

#about,
#history,
#products,
#solutions,
#cases,
#news,
#articles,
#faq,
#howto,
#knowledge,
#contact,
#legal,
#author {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-smooth), transform var(--transition-smooth);
}

#about:hover,
#history:hover,
#products:hover,
#solutions:hover,
#cases:hover,
#news:hover,
#articles:hover,
#faq:hover,
#howto:hover,
#knowledge:hover,
#contact:hover,
#legal:hover,
#author:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

#about h3:first-of-type,
#history h3:first-of-type,
#products h3:first-of-type,
#solutions h3:first-of-type,
#cases h3:first-of-type,
#howto h3:first-of-type,
#knowledge h3:first-of-type,
#contact h3:first-of-type,
#legal h3:first-of-type,
#author h3:first-of-type {
  margin-top: 0.4rem;
}

#products ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

#products li {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 2.8rem;
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  margin: 0;
  transition: all var(--transition-fast);
}

#products li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient-accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

#products li:hover {
  border-color: var(--border-accent);
  transform: translateX(4px);
  color: var(--text-primary);
  box-shadow: var(--shadow-accent);
}

article {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.5rem;
  margin-bottom: 1.1rem;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

article:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

article:hover::before {
  opacity: 1;
}

article h3 {
  margin-top: 0;
  font-size: 1.08rem;
  transition: color var(--transition-fast);
}

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

article p {
  margin-bottom: 0.6rem;
  font-size: 0.93rem;
}

article p:first-of-type {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  display: inline-block;
  padding: 0.15rem 0.6rem;
  background: var(--accent-soft);
  border-radius: 999px;
  margin-bottom: 0.7rem;
}

article a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border-accent);
  border-radius: 999px;
  transition: all var(--transition-fast);
}

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

article a:hover {
  background: var(--accent-soft);
  box-shadow: var(--shadow-accent);
  transform: translateY(-1px);
}

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

#cases blockquote {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  margin: 1.2rem 0;
  position: relative;
  transition: all var(--transition-smooth);
}

#cases blockquote::before {
  content: "\201C";
  position: absolute;
  top: 0.2rem;
  right: 1rem;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.18;
  font-family: Georgia, serif;
  pointer-events: none;
}

#cases blockquote:hover {
  border-left-color: var(--text-primary);
  box-shadow: var(--shadow-hover);
  transform: translateX(3px);
}

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

#cases blockquote p:last-child {
  margin-bottom: 0;
}

#faq h3 {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: 0.9rem 1.2rem 0.9rem 2.6rem;
  margin: 1rem 0 0;
  position: relative;
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

#faq h3::before {
  content: "?";
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px var(--accent-glow);
}

#faq h3:hover {
  border-color: var(--border-accent);
  color: var(--accent);
  background: var(--gradient-card);
}

#faq h3 + p {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 0.9rem 1.2rem 1.1rem;
  margin: 0 0 1rem;
  font-size: 0.93rem;
  transition: all var(--transition-fast);
}

#faq h3 + p:hover {
  border-color: var(--border-accent);
}

#howto ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 0.9rem 1rem 0.9rem 3.2rem;
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  margin: 0;
  transition: all var(--transition-fast);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px var(--accent-glow);
}

#howto ol li:hover {
  border-color: var(--border-accent);
  transform: translateX(4px);
  color: var(--text-primary);
  box-shadow: var(--shadow-accent);
}

#contact ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.8rem 0 1.2rem;
}

#contact ul li {
  margin: 0;
}

#contact ul a {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

#contact ul a:hover {
  color: var(--text-primary);
  border-color: var(--border-accent);
  background: var(--accent-soft);
  box-shadow: var(--shadow-accent);
  transform: translateY(-2px);
}

#contact p {
  font-size: 0.95rem;
}

#author p {
  font-size: 0.95rem;
}

footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 2.2rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

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

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

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

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

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

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

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

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

@media (max-width: 900px) {
  .brand-bar {
    padding: 0.85rem 1rem 0.3rem;
  }

  .logo-text {
    font-size: 1.3rem;
  }

  .slogan {
    font-size: 0.78rem;
    padding: 0.15rem 0.55rem;
  }

  nav {
    padding: 0 1rem 0.5rem;
  }

  main {
    padding: 1.5rem 1rem 3rem;
  }

  section {
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
    line-height: 1.7;
  }

  .brand-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .slogan {
    border-left: none;
    padding-left: 1.6rem;
  }

  nav a {
    padding: 0.38rem 0.7rem;
    font-size: 0.82rem;
  }

  #hero {
    padding: 1.5rem 1.2rem;
    border-radius: var(--radius-lg);
  }

  #hero::after {
    width: 260px;
    height: 260px;
  }

  h2::after {
    width: 48px;
    height: 3px;
  }

  article {
    padding: 1rem 1.1rem;
  }

  #products li,
  #howto ol li {
    padding-left: 2.6rem;
  }

  #faq h3 {
    padding-left: 2.4rem;
    font-size: 0.95rem;
  }

  #contact ul {
    gap: 0.45rem;
  }

  #contact ul a {
    padding: 0.35rem 0.8rem;
    font-size: 0.8rem;
  }

  footer {
    padding: 1.6rem 1rem;
  }
}

@media (max-width: 380px) {
  .logo-text {
    font-size: 1.15rem;
  }

  nav a {
    padding: 0.32rem 0.6rem;
    font-size: 0.78rem;
  }
}

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

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

@media print {
  header,
  nav,
  footer {
    display: none;
  }

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

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

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