:root {
  --brand: #f5a623;
  --brand-2: #ff7a45;
  --brand-3: #a855f7;
  --bg: #0f1024;
  --bg-soft: #171a35;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.12);
  --text: #eef0fa;
  --text-soft: #b9bed6;
  --text-dim: #8a90ad;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --maxw: 1180px;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f5ef;
    --bg-soft: #ffffff;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-strong: rgba(255, 255, 255, 0.9);
    --border: rgba(26, 26, 46, 0.1);
    --text: #1a1a2e;
    --text-soft: #4a4f6a;
    --text-dim: #6b708c;
    --shadow: 0 18px 50px rgba(26, 26, 46, 0.12);
  }
}

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

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

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(245, 166, 35, 0.16), transparent 60%),
    radial-gradient(1000px 700px at 92% 0%, rgba(168, 85, 247, 0.18), transparent 62%),
    radial-gradient(900px 700px at 50% 110%, rgba(255, 122, 69, 0.1), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover,
a:focus-visible {
  color: var(--brand-2);
}

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

h1,
h2,
h3,
h4 {
  line-height: 1.3;
  margin: 0 0 0.7em;
  letter-spacing: -0.01em;
  color: var(--text);
}

h1 {
  font-size: clamp(1.8rem, 4.4vw, 3rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 800;
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--brand), var(--brand-3));
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--text);
}

h4 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--brand);
}

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

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

li {
  margin-bottom: 0.4em;
}

blockquote {
  margin: 1.2em 0;
  padding: 1em 1.2em;
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

blockquote p {
  margin: 0;
  color: var(--text);
}

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

noscript p {
  margin: 0;
  padding: 10px 16px;
  text-align: center;
  background: var(--brand);
  color: #1a1a2e;
  font-weight: 600;
}

/* ============ Header ============ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 16, 36, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

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

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  flex-shrink: 0;
}

.brand:hover {
  color: var(--text);
  opacity: 0.9;
}

.brand svg {
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(245, 166, 35, 0.35);
  transition: transform 0.4s var(--ease);
}

.brand:hover svg {
  transform: rotate(-6deg) scale(1.06);
}

.brand-name {
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--brand), var(--brand-2) 60%, var(--brand-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

#main-nav {
  margin-left: auto;
}

#main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#main-nav li {
  margin: 0;
}

#main-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--text-soft);
  font-weight: 500;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

#main-nav a:hover,
#main-nav a:focus-visible {
  color: var(--text);
  background: var(--surface-strong);
  transform: translateY(-1px);
}

#menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

#menu-toggle:hover {
  background: var(--surface-strong);
  transform: scale(1.04);
}

/* ============ Main layout ============ */
main {
  display: block;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 60px;
}

main > section {
  margin: 42px 0;
  padding: clamp(22px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
  box-shadow: var(--shadow);
  animation: fadeUp 0.7s var(--ease) both;
}

main > section > h2 {
  margin-bottom: 1em;
}

/* ============ Hero ============ */
#hero {
  margin-top: 28px;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(36px, 7vw, 76px) clamp(22px, 4vw, 48px);
  background:
    linear-gradient(135deg, rgba(245, 166, 35, 0.22), rgba(255, 122, 69, 0.14) 40%, rgba(168, 85, 247, 0.22)),
    var(--surface);
  border: 1px solid var(--border);
}

#hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.35), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
  animation: floaty 12s ease-in-out infinite alternate;
}

#hero::after {
  content: "";
  position: absolute;
  inset: auto auto -45% -12%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.32), transparent 65%);
  filter: blur(24px);
  pointer-events: none;
  animation: floaty 14s ease-in-out infinite alternate-reverse;
}

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

#hero-title {
  background: linear-gradient(92deg, var(--text) 0%, var(--brand) 45%, var(--brand-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.6em;
}

.hero-lead {
  max-width: 780px;
  margin: 0 auto 2em;
  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
  color: var(--text-soft);
  text-align: left;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 820px;
  margin: 0 auto;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 10px;
  border-radius: var(--radius);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.stat:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 166, 35, 0.55);
  box-shadow: 0 12px 30px rgba(245, 166, 35, 0.18);
}

.stat-num {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ============ Breadcrumb ============ */
#breadcrumb {
  margin: 22px 0 0;
  padding: 0 4px;
  background: none;
  border: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  animation: none;
}

#breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  color: var(--text-dim);
}

#breadcrumb li {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#breadcrumb li + li::before {
  content: "›";
  color: var(--text-dim);
}

#breadcrumb a {
  color: var(--text-soft);
}

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

#breadcrumb [aria-current="page"] {
  color: var(--brand);
  font-weight: 600;
}

/* ============ Cards / lists inside sections ============ */
main > section > h3:not(:first-of-type) {
  margin-top: 1.6em;
}

#products h4 {
  margin-top: 1.4em;
  padding-left: 12px;
  border-left: 3px solid var(--brand-2);
}

#products > p,
#scenarios p,
#solutions p,
#cases p,
#news p,
#intro p {
  text-align: justify;
}

/* Articles */
#articles > p:first-of-type {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  border: 1px dashed var(--border);
}

#articles article {
  position: relative;
  margin: 18px 0;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  overflow: hidden;
}

#articles article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand), var(--brand-3));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

#articles article:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 166, 35, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

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

#articles article h3 {
  margin-bottom: 0.35em;
}

#articles article h3 a {
  color: var(--text);
  background-image: linear-gradient(var(--brand), var(--brand));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.35s var(--ease), color 0.3s var(--ease);
}

#articles article h3 a:hover {
  color: var(--brand);
  background-size: 100% 2px;
}

#articles .meta {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 0.7em;
  letter-spacing: 0.02em;
}

#articles article > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(245, 166, 35, 0.4);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

#articles article > a::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

#articles article > a:hover {
  background: var(--brand);
  color: #1a1a2e;
  transform: translateX(2px);
}

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

/* ============ FAQ ============ */
#faq details {
  margin: 12px 0;
  border-radius: var(--radius);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#faq details[open] {
  border-color: rgba(245, 166, 35, 0.5);
  box-shadow: 0 10px 30px rgba(245, 166, 35, 0.12);
}

#faq summary {
  position: relative;
  padding: 16px 52px 16px 20px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #1a1a2e;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.35s var(--ease);
}

#faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

#faq summary:hover {
  background: rgba(245, 166, 35, 0.08);
}

#faq details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--text-soft);
  animation: fadeUp 0.45s var(--ease) both;
}

/* ============ HowTo ============ */
#howto h4 {
  margin-top: 1.5em;
  padding: 8px 14px;
  display: inline-block;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.18), rgba(168, 85, 247, 0.18));
  border: 1px solid var(--border);
}

#howto h3 {
  margin-top: 1.8em;
}

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

/* ============ Contact ============ */
#contact p {
  word-break: break-word;
}

#contact h3 {
  margin-top: 1.5em;
}

/* ============ Sitemap & Links ============ */
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 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(--surface-strong);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.92rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  transform: translateY(-3px);
  color: var(--brand);
  border-color: rgba(245, 166, 35, 0.5);
  background: rgba(245, 166, 35, 0.08);
}

/* ============ Footer ============ */
#site-footer {
  position: relative;
  margin-top: 40px;
  padding: 48px 20px 40px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.22));
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 32px;
}

#site-footer h3 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.6em;
  position: relative;
  padding-left: 14px;
}

#site-footer h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  bottom: 0.35em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--brand), var(--brand-3));
}

#site-footer p {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 0.8em;
}

#site-footer strong {
  color: var(--text-soft);
}

.copyright {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ============ Back to top ============ */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 90;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a2e;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(245, 166, 35, 0.4);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), opacity 0.35s var(--ease);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
}

#back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 16px 38px rgba(245, 166, 35, 0.55);
}

/* ============ Animations ============ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floaty {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-30px, 26px, 0) scale(1.08);
  }
}

/* Scroll reveal helper */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 62px;
  }

  #menu-toggle {
    display: grid;
    place-items: center;
  }

  #main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    margin: 0;
    padding: 0 16px;
    background: rgba(15, 16, 36, 0.94);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease), padding 0.45s var(--ease);
  }

  @media (prefers-color-scheme: light) {
    #main-nav {
      background: rgba(255, 255, 255, 0.96);
    }
  }

  #main-nav.is-open {
    max-height: 560px;
    padding: 12px 16px 18px;
  }

  #main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  #main-nav a {
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.98rem;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  main {
    padding: 0 14px 48px;
  }

  main > section {
    margin: 28px 0;
    border-radius: var(--radius);
  }

  #hero {
    margin-top: 18px;
  }

  .hero-lead {
    text-align: left;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    padding: 0 14px;
  }

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

  .brand svg {
    width: 34px;
    height: 34px;
  }

  .hero-stats {
    gap: 10px;
  }

  .stat {
    padding: 12px 8px;
  }

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

  #faq summary {
    padding: 14px 46px 14px 16px;
    font-size: 0.95rem;
  }

  #faq details p {
    padding: 0 16px 16px;
  }

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

  #back-to-top {
    right: 14px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }

  #site-footer {
    padding: 36px 14px 30px;
  }
}

/* ============ Print ============ */
@media print {
  #site-header,
  #back-to-top,
  #menu-toggle {
    display: none !important;
  }

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

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

  a {
    color: #000;
  }
}