:root {
  --bg: #0f0f1a;
  --bg-elev: #171726;
  --bg-card: rgba(28, 28, 46, 0.62);
  --bg-card-solid: #1c1c2e;
  --text: #e8e8f2;
  --text-soft: #a9a9c0;
  --text-mute: #7a7a95;
  --accent: #ff4f7b;
  --accent-2: #7c5cff;
  --accent-3: #23d5ab;
  --accent-4: #ffb347;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 18px 44px rgba(0, 0, 0, 0.5);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --glass-blur: 14px;
  --grad-hero: linear-gradient(135deg, #2a1b4d 0%, #4a1f55 38%, #7b2c5e 68%, #b23a5c 100%);
  --grad-accent: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 60%, var(--accent-3) 100%);
  --grad-soft: linear-gradient(160deg, rgba(255, 79, 123, 0.16), rgba(124, 92, 255, 0.16));
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1180px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f5fb;
    --bg-elev: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.72);
    --bg-card-solid: #ffffff;
    --text: #1d1d2b;
    --text-soft: #4b4b63;
    --text-mute: #71718c;
    --border: rgba(20, 20, 50, 0.1);
    --border-strong: rgba(20, 20, 50, 0.18);
    --shadow: 0 10px 28px rgba(40, 30, 90, 0.1);
    --shadow-hover: 0 18px 40px rgba(40, 30, 90, 0.18);
    --grad-hero: linear-gradient(135deg, #ffd9e4 0%, #e6d6ff 40%, #d3e6ff 70%, #d9fff3 100%);
    --grad-soft: linear-gradient(160deg, rgba(255, 79, 123, 0.1), rgba(124, 92, 255, 0.1));
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 500px at 12% -8%, rgba(255, 79, 123, 0.16), transparent 60%),
    radial-gradient(800px 480px at 92% 4%, rgba(124, 92, 255, 0.18), transparent 62%),
    radial-gradient(700px 600px at 50% 110%, rgba(35, 213, 171, 0.1), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  animation: pageFade 0.6s ease both;
}

@keyframes pageFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

a:hover,
a:focus-visible {
  color: var(--accent-3);
}

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

::selection {
  background: rgba(255, 79, 123, 0.35);
  color: #fff;
}

h1, h2, h3, h4 {
  line-height: 1.35;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  bottom: 0.28em;
  width: 6px;
  border-radius: 6px;
  background: var(--grad-accent);
  box-shadow: 0 0 16px rgba(255, 79, 123, 0.55);
}

h3 {
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  color: var(--text);
}

h4 {
  font-size: 1.02rem;
  color: var(--accent-3);
  margin-top: 1.2em;
}

p {
  margin: 0 0 1em;
  color: var(--text-soft);
}

strong {
  color: var(--text);
}

ul {
  margin: 0 0 1em;
  padding-left: 1.3em;
  color: var(--text-soft);
}

li {
  margin-bottom: 0.4em;
}

blockquote {
  margin: 1em 0;
  padding: 16px 20px;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
  font-style: italic;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

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

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

#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(15, 15, 26, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  animation: headerSlide 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-color-scheme: light) {
  #site-header {
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 6px 22px rgba(50, 40, 100, 0.08);
  }
}

@keyframes headerSlide {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.brand-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  max-width: var(--maxw);
  margin: 0 auto 10px;
}

.brand-name {
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(255, 79, 123, 0.25);
}

.brand-slogan {
  font-size: 0.82rem;
  color: var(--text-mute);
  letter-spacing: 0.04em;
}

#site-header nav {
  max-width: var(--maxw);
  margin: 0 auto;
}

#site-header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#site-header nav a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.86rem;
  color: var(--text-soft);
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

#site-header nav a:hover {
  color: #fff;
  background: var(--grad-accent);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 79, 123, 0.35);
}

main {
  display: block;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 48px) clamp(16px, 4vw, 40px) 60px;
}

main > section {
  position: relative;
  margin-bottom: clamp(28px, 4vw, 52px);
  padding: clamp(22px, 3.4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  animation: riseIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

main > section:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-hover);
}

main > section:nth-of-type(1) { animation-delay: 0.04s; }
main > section:nth-of-type(2) { animation-delay: 0.08s; }
main > section:nth-of-type(3) { animation-delay: 0.12s; }
main > section:nth-of-type(4) { animation-delay: 0.16s; }
main > section:nth-of-type(5) { animation-delay: 0.2s; }
main > section:nth-of-type(6) { animation-delay: 0.24s; }

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

#hero {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5vw, 64px) clamp(22px, 4vw, 52px);
  background: var(--grad-hero);
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 60px rgba(80, 20, 90, 0.45);
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 65%);
  filter: blur(10px);
  animation: floatOrb 12s ease-in-out infinite alternate;
  z-index: -1;
}

#hero::after {
  content: "";
  position: absolute;
  inset: auto auto -45% -15%;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(35, 213, 171, 0.35), transparent 68%);
  filter: blur(16px);
  animation: floatOrb 15s ease-in-out infinite alternate-reverse;
  z-index: -1;
}

@keyframes floatOrb {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-26px, 22px, 0) scale(1.12); }
}

#hero h1 {
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  margin-bottom: 0.5em;
}

#hero p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 72ch;
}

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

#about h3,
#products h3,
#solutions h3,
#cases h3,
#news h3,
#howto h3 {
  display: inline-block;
  padding: 2px 12px;
  margin-bottom: 0.5em;
  border-radius: 999px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
}

#products h4 {
  display: flex;
  align-items: center;
  gap: 8px;
}

#products h4::before {
  content: "◆";
  font-size: 0.7em;
  color: var(--accent);
}

#cases blockquote {
  position: relative;
  padding-top: 22px;
}

#cases blockquote::before {
  content: "“";
  position: absolute;
  top: 2px;
  left: 14px;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.55;
  font-family: Georgia, serif;
}

#news h3 {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent-4);
  font-size: 1.08rem;
}

#news h3 + p {
  font-size: 0.82rem;
  color: var(--text-mute);
  margin-bottom: 0.35em;
  letter-spacing: 0.02em;
}

#articles article {
  position: relative;
  margin-bottom: 18px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

#articles article::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--grad-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

#articles article:hover::after {
  opacity: 1;
}

#articles article h3 {
  margin-bottom: 0.35em;
  font-size: 1.12rem;
}

#articles article p {
  font-size: 0.94rem;
}

#articles article p:first-of-type {
  font-size: 0.8rem;
  color: var(--text-mute);
  margin-bottom: 0.5em;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--grad-soft);
  border: 1px solid var(--border-strong);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

#articles article a::after {
  content: "→";
  transition: transform 0.3s ease;
}

#articles article a:hover {
  color: #fff;
  background: var(--grad-accent);
  transform: translateX(2px);
  box-shadow: 0 8px 20px rgba(255, 79, 123, 0.35);
}

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

#articles h3[id^="article-"] {
  margin-top: 2em;
  padding-top: 1.2em;
  border-top: 1px dashed var(--border-strong);
  color: var(--accent-3);
}

#articles h3[id="article-1"] {
  margin-top: 2.6em;
}

#faq h3 {
  position: relative;
  margin: 1.4em 0 0.5em;
  padding: 12px 16px 12px 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  font-size: 1.02rem;
  cursor: default;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

#faq h3::before {
  content: "Q";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  border-radius: 50%;
  background: var(--grad-accent);
  box-shadow: 0 0 12px rgba(255, 79, 123, 0.5);
}

#faq h3:hover {
  transform: translateX(4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

#faq h3 + p {
  padding-left: 16px;
  border-left: 2px solid var(--border-strong);
  margin-left: 4px;
}

#howto h4 {
  margin-top: 1.4em;
  padding-left: 14px;
  border-left: 3px solid var(--accent-3);
  color: var(--text);
}

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

#contact h3 {
  color: var(--accent-4);
  font-size: 1.05rem;
  margin-top: 1.4em;
}

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

#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

#sitemap li,
#links li {
  margin: 0;
}

#sitemap a,
#links a {
  display: block;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.9rem;
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

#sitemap a::before,
#links a::before {
  content: "▸";
  margin-right: 8px;
  color: var(--accent);
  transition: transform 0.25s ease;
  display: inline-block;
}

#sitemap a:hover,
#links a:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(255, 79, 123, 0.22);
  background: var(--grad-soft);
}

#sitemap a:hover::before,
#links a:hover::before {
  transform: translateX(4px);
}

#legal h3 {
  color: var(--accent-3);
  margin-top: 1.4em;
}

#legal p:last-of-type {
  font-size: 0.82rem;
  color: var(--text-mute);
}

footer {
  position: relative;
  margin-top: 20px;
  padding: 36px clamp(16px, 4vw, 48px) 44px;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
  border-top: 1px solid var(--border);
}

@media (prefers-color-scheme: light) {
  footer {
    background: linear-gradient(180deg, transparent, rgba(120, 100, 200, 0.08));
  }
}

footer p {
  margin: 0.35em 0;
  font-size: 0.85rem;
  color: var(--text-mute);
}

footer a {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 22px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  border-radius: 999px;
  background: var(--grad-accent);
  box-shadow: 0 8px 22px rgba(255, 79, 123, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

footer a:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(255, 79, 123, 0.5);
  filter: brightness(1.08);
}

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

  #site-header {
    padding: 12px 16px;
  }

  .brand-line {
    margin-bottom: 8px;
  }

  #site-header nav ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  #site-header nav ul::-webkit-scrollbar {
    height: 4px;
  }

  #site-header nav ul::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 4px;
  }

  #site-header nav a {
    white-space: nowrap;
    font-size: 0.82rem;
    padding: 5px 12px;
  }

  main {
    padding: 20px 14px 44px;
  }

  main > section {
    padding: 20px 18px;
    border-radius: var(--radius);
  }

  #hero {
    padding: 28px 20px;
  }

  #hero::before,
  #hero::after {
    width: 320px;
    height: 320px;
  }

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

  #faq h3 {
    padding-left: 40px;
  }

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

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

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 4px;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .brand-slogan {
    font-size: 0.74rem;
  }

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

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

  main > section {
    padding: 18px 15px;
    margin-bottom: 24px;
  }

  #articles article a {
    width: 100%;
    justify-content: center;
  }

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

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  #site-header,
  footer,
  #sitemap,
  #links {
    display: none;
  }

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

  h1, h2, h3, h4 {
    color: #000;
    background: none;
    -webkit-text-fill-color: currentColor;
  }
}