:root {
  --bg: #f5f6fa;
  --bg-alt: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --text: #1a1a2e;
  --text-soft: #4a4a5e;
  --text-mute: #767688;
  --primary: #e8a33d;
  --primary-deep: #d4842a;
  --accent: #6c5ce7;
  --accent-soft: #a29bfe;
  --border: rgba(26, 26, 46, 0.09);
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 8px 28px rgba(26, 26, 46, 0.1);
  --shadow-lg: 0 20px 50px rgba(26, 26, 46, 0.14);
  --grad-banner: linear-gradient(135deg, #1a1a2e 0%, #2d2b55 40%, #4a3f8f 70%, #6c5ce7 100%);
  --grad-accent: linear-gradient(135deg, #e8a33d 0%, #f0b860 50%, #d4842a 100%);
  --grad-card: linear-gradient(150deg, rgba(255,255,255,0.9) 0%, rgba(245,246,250,0.75) 100%);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --nav-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f1a;
    --bg-alt: #16162a;
    --surface: rgba(30, 30, 52, 0.6);
    --surface-solid: #1c1c32;
    --text: #f0f0f8;
    --text-soft: #c4c4d8;
    --text-mute: #8a8aa4;
    --primary: #f0b860;
    --primary-deep: #e8a33d;
    --accent: #a29bfe;
    --accent-soft: #6c5ce7;
    --border: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
    --grad-banner: linear-gradient(135deg, #0a0a14 0%, #1c1a3a 40%, #2d2b55 70%, #4a3f8f 100%);
    --grad-card: linear-gradient(150deg, rgba(40,40,68,0.85) 0%, rgba(28,28,50,0.7) 100%);
  }
}

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

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

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(232, 163, 61, 0.08) 0%, transparent 42%),
    radial-gradient(circle at 88% 18%, rgba(108, 92, 231, 0.1) 0%, transparent 46%),
    radial-gradient(circle at 50% 100%, rgba(108, 92, 231, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

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

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

a:hover {
  color: var(--primary-deep);
}

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

ul,
ol {
  list-style: none;
}

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

/* ===== Header / Navigation ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

header nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

header nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: var(--nav-h);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

header nav ul li {
  flex-shrink: 0;
}

header nav ul li a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: 100px;
  white-space: nowrap;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

header nav ul li a:hover {
  color: var(--text);
  background: rgba(232, 163, 61, 0.14);
  transform: translateY(-1px);
}

header nav ul li a:active {
  transform: translateY(0) scale(0.97);
}

/* ===== Main Layout ===== */
main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

main > section {
  padding: 64px 0;
  animation: fadeUp 0.7s var(--ease) both;
}

main > section:nth-child(even) {
  animation-delay: 0.06s;
}

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

/* ===== Headings ===== */
h1 {
  font-size: clamp(1.65rem, 4.5vw, 2.6rem);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-bottom: 24px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

h2 {
  font-size: clamp(1.35rem, 3.2vw, 1.9rem);
  line-height: 1.4;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  padding-bottom: 14px;
  position: relative;
  letter-spacing: -0.005em;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: var(--grad-accent);
}

h3 {
  font-size: clamp(1.08rem, 2.2vw, 1.28rem);
  line-height: 1.5;
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 12px;
}

h3:first-child {
  margin-top: 0;
}

p {
  color: var(--text-soft);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.85;
}

strong {
  color: var(--text);
  font-weight: 600;
}

/* ===== Hero Banner (Home) ===== */
#home {
  position: relative;
  margin: 32px 0 0;
  padding: 72px 48px;
  border-radius: var(--radius-xl);
  background: var(--grad-banner);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

#home::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(232, 163, 61, 0.32) 0%, transparent 42%),
    radial-gradient(circle at 15% 85%, rgba(162, 155, 254, 0.28) 0%, transparent 46%);
  z-index: -1;
  pointer-events: none;
}

#home::after {
  content: "";
  position: absolute;
  top: -60%;
  right: -20%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 184, 96, 0.22) 0%, transparent 68%);
  filter: blur(20px);
  animation: floatGlow 14s ease-in-out infinite alternate;
  z-index: -1;
  pointer-events: none;
}

@keyframes floatGlow {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-40px, 40px) scale(1.15);
  }
}

#home p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.03rem;
  max-width: 880px;
}

#home p:first-of-type {
  font-size: 1.08rem;
}

/* ===== Generic Section Cards ===== */
#about,
#products,
#solutions,
#cases,
#news,
#articles,
#faq,
#howto,
#contact,
#sitemap,
#links {
  position: relative;
}

#products ul,
#howto ul,
#howto ol,
#news ul,
#contact ul,
#sitemap ul,
#links ul {
  display: grid;
  gap: 12px;
}

#products ul li,
#news ul li,
#contact ul li,
#sitemap ul li,
#links ul li {
  position: relative;
  padding: 16px 20px 16px 44px;
  background: var(--grad-card);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  color: var(--text-soft);
  font-size: 0.96rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#products ul li::before,
#news ul li::before,
#contact ul li::before,
#sitemap ul li::before,
#links ul li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--grad-accent);
}

#products ul li:hover,
#news ul li:hover,
#contact ul li:hover,
#sitemap ul li:hover,
#links ul li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232, 163, 61, 0.4);
}

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

#sitemap ul li a,
#links ul li a {
  color: var(--text);
  font-weight: 500;
}

#sitemap ul li a:hover,
#links ul li a:hover {
  color: var(--primary-deep);
}

/* ===== About Section ===== */
#about {
  background: transparent;
}

#about h3 {
  display: inline-block;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
}

/* ===== Products ===== */
#products {
  position: relative;
}

#products > p,
#solutions > p {
  max-width: 900px;
}

/* ===== Cases / Blockquote ===== */
#cases blockquote {
  position: relative;
  margin: 16px 0;
  padding: 24px 28px 24px 56px;
  background: var(--grad-card);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#cases blockquote::before {
  content: "\201C";
  position: absolute;
  left: 18px;
  top: 6px;
  font-size: 3.2rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--primary);
  opacity: 0.55;
}

#cases blockquote:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

#cases blockquote p {
  margin-bottom: 0;
  font-style: italic;
  color: var(--text-soft);
}

/* ===== News List ===== */
#news ul li strong {
  color: var(--primary-deep);
}

@media (prefers-color-scheme: dark) {
  #news ul li strong {
    color: var(--primary);
  }
}

/* ===== Articles ===== */
#articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

#articles > h2,
#articles > p {
  grid-column: 1 / -1;
}

#articles article {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  background: var(--grad-card);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

#articles article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

#articles article:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(232, 163, 61, 0.35);
}

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

#articles article h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--text);
}

#articles article p {
  font-size: 0.92rem;
  color: var(--text-mute);
  margin-bottom: 10px;
}

#articles article p:nth-of-type(2) {
  flex: 1;
  color: var(--text-soft);
  line-height: 1.75;
}

#articles article a {
  align-self: flex-start;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-deep);
  padding: 8px 18px;
  border-radius: 100px;
  background: rgba(232, 163, 61, 0.12);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

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

#articles article a:hover {
  background: var(--grad-accent);
  color: #1a1a2e;
  transform: translateX(3px);
}

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

@media (prefers-color-scheme: dark) {
  #articles article a {
    color: var(--primary);
  }
}

/* ===== FAQ ===== */
#faq h3 {
  position: relative;
  padding: 18px 22px 18px 48px;
  margin: 14px 0 0;
  background: var(--grad-card);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  font-size: 1.02rem;
  color: var(--text);
  cursor: default;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

#faq h3::before {
  content: "Q";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #1a1a2e;
  background: var(--grad-accent);
  border-radius: 6px;
}

#faq h3 + p {
  margin: 0 0 6px;
  padding: 18px 22px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-soft);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#faq h3:hover,
#faq h3:hover + p {
  border-color: rgba(232, 163, 61, 0.4);
}

#faq h3:hover + p {
  box-shadow: var(--shadow-sm);
}

/* ===== HowTo ===== */
#howto ol {
  counter-reset: step;
  gap: 14px;
}

#howto ol li {
  position: relative;
  counter-increment: step;
  padding: 16px 20px 16px 60px;
  background: var(--grad-card);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  color: var(--text-soft);
  font-size: 0.96rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a1a2e;
  background: var(--grad-accent);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(232, 163, 61, 0.35);
}

#howto ol li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232, 163, 61, 0.4);
}

#howto ul li {
  position: relative;
  padding: 14px 20px 14px 44px;
  background: var(--grad-card);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-soft);
  font-size: 0.95rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#howto ul li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--grad-accent);
}

#howto ul li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ===== Contact ===== */
#contact ul {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

#contact ul li {
  font-size: 0.95rem;
  word-break: break-word;
}

/* ===== Footer ===== */
footer {
  margin-top: 48px;
  padding: 56px 24px 32px;
  background: var(--grad-banner);
  color: rgba(255, 255, 255, 0.78);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 10%, rgba(232, 163, 61, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(162, 155, 254, 0.16) 0%, transparent 50%);
  pointer-events: none;
}

footer > section,
footer > p {
  position: relative;
  max-width: 1280px;
  margin: 0 auto 32px;
}

footer h2 {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 14px;
  padding-bottom: 10px;
}

footer h2::after {
  background: var(--grad-accent);
  width: 44px;
  height: 3px;
}

footer p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 0;
}

footer > p {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 0;
}

footer a {
  color: var(--primary);
}

footer a:hover {
  color: #ffffff;
}

/* ===== Scroll Reveal Enhancement ===== */
@media (prefers-reduced-motion: no-preference) {
  main > section {
    animation: fadeUp 0.7s var(--ease) both;
  }

  #articles article {
    animation: fadeUp 0.6s var(--ease) both;
  }

  #articles article:nth-child(3n + 1) {
    animation-delay: 0.05s;
  }

  #articles article:nth-child(3n + 2) {
    animation-delay: 0.1s;
  }

  #articles article:nth-child(3n + 3) {
    animation-delay: 0.15s;
  }
}

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

/* ===== Responsive: Tablet ===== */
@media (max-width: 900px) {
  main {
    padding: 0 18px;
  }

  main > section {
    padding: 48px 0;
  }

  #home {
    padding: 56px 32px;
    border-radius: var(--radius-lg);
    margin-top: 24px;
  }

  #articles {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
  }

  header nav {
    padding: 0 16px;
  }

  header nav ul li a {
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* ===== Responsive: Mobile ===== */
@media (max-width: 600px) {
  body {
    font-size: 15px;
    line-height: 1.75;
  }

  main {
    padding: 0 14px;
  }

  main > section {
    padding: 40px 0;
  }

  #home {
    padding: 40px 22px;
    margin-top: 16px;
    border-radius: var(--radius-md);
  }

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

  h2 {
    margin-bottom: 18px;
  }

  h3 {
    margin: 22px 0 10px;
  }

  #articles {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  #products ul li,
  #news ul li,
  #contact ul li,
  #sitemap ul li,
  #links ul li,
  #howto ul li {
    padding: 14px 16px 14px 40px;
    font-size: 0.92rem;
  }

  #products ul li::before,
  #news ul li::before,
  #contact ul li::before,
  #sitemap ul li::before,
  #links ul li::before,
  #howto ul li::before {
    left: 16px;
    width: 7px;
    height: 7px;
  }

  #howto ol li {
    padding: 14px 16px 14px 54px;
    font-size: 0.92rem;
  }

  #howto ol li::before {
    left: 14px;
    width: 26px;
    height: 26px;
    font-size: 0.78rem;
  }

  #faq h3 {
    padding: 16px 16px 16px 44px;
    font-size: 0.96rem;
  }

  #faq h3::before {
    left: 12px;
    width: 20px;
    height: 20px;
    font-size: 0.72rem;
  }

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

  #cases blockquote {
    padding: 20px 20px 20px 46px;
  }

  #cases blockquote::before {
    left: 12px;
    font-size: 2.6rem;
  }

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

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

  footer > section,
  footer > p {
    margin-bottom: 24px;
  }
}

/* ===== Small Mobile ===== */
@media (max-width: 380px) {
  header nav ul li a {
    padding: 7px 10px;
    font-size: 12px;
  }

  #home {
    padding: 32px 18px;
  }

  h1 {
    font-size: 1.45rem;
  }
}

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

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

  main > section {
    padding: 16px 0;
    animation: none;
  }

  #home {
    background: #f0f0f0;
    box-shadow: none;
  }

  h1 {
    color: #000;
    text-shadow: none;
  }

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