:root {
  --brand: #ff5a3c;
  --brand-2: #ff8a3c;
  --brand-3: #ff3c6e;
  --brand-soft: rgba(255, 90, 60, 0.12);
  --bg: #f7f8fb;
  --bg-elev: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.65);
  --border: rgba(20, 24, 40, 0.09);
  --text: #1b1f2a;
  --text-2: #4a5266;
  --text-3: #7a839a;
  --shadow-sm: 0 2px 8px rgba(24, 30, 50, 0.06);
  --shadow-md: 0 10px 30px rgba(24, 30, 50, 0.08);
  --shadow-lg: 0 24px 60px rgba(24, 30, 50, 0.14);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1118;
    --bg-elev: #161b26;
    --bg-glass: rgba(22, 27, 38, 0.62);
    --border: rgba(255, 255, 255, 0.09);
    --text: #eef1f7;
    --text-2: #b6bfd0;
    --text-3: #8791a6;
    --brand-soft: rgba(255, 90, 60, 0.18);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  }
}

*,
*::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", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 90, 60, 0.10), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(255, 60, 110, 0.08), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

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

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

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

h1 {
  font-size: clamp(1.75rem, 1.15rem + 2.6vw, 2.85rem);
  margin-top: 0;
  background: linear-gradient(100deg, var(--brand) 0%, var(--brand-3) 55%, var(--brand-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--brand);
}

h2 {
  font-size: clamp(1.35rem, 1.05rem + 1.2vw, 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: linear-gradient(180deg, var(--brand), var(--brand-3));
}

h3 {
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  color: var(--text);
}

p {
  margin: 0.7em 0;
  color: var(--text-2);
}

ul, ol {
  padding-left: 1.35em;
  color: var(--text-2);
}

li {
  margin: 0.35em 0;
}

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

blockquote {
  margin: 1em 0;
  padding: 16px 20px;
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--brand-soft);
  color: var(--text-2);
  font-style: normal;
}

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

nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

nav > a {
  font-size: 1.22rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  padding: 8px 0;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

nav > a::before {
  content: "";
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  box-shadow: 0 6px 16px rgba(255, 90, 60, 0.4);
  flex: none;
}

nav > a:hover {
  color: var(--brand);
}

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

nav ul li {
  margin: 0;
}

nav ul li a {
  display: inline-block;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-2);
  position: relative;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

nav ul li a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-3));
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

nav ul li a:hover {
  color: var(--brand);
  background: var(--brand-soft);
  transform: translateY(-1px);
}

nav ul li a:hover::after {
  width: 40%;
}

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

section {
  margin: 28px 0;
  padding: clamp(20px, 2.4vw, 36px);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.7s var(--ease) both;
}

section::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 30%);
  opacity: 0.5;
}

@media (prefers-color-scheme: dark) {
  section::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 30%);
  }
}

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

/* ============ Hero Banner ============ */
#home {
  margin-top: 28px;
  padding: clamp(28px, 4vw, 60px) clamp(22px, 3.4vw, 52px);
  background:
    radial-gradient(900px 420px at 85% 15%, rgba(255, 255, 255, 0.28), transparent 60%),
    linear-gradient(125deg, #ff5a3c 0%, #ff3c6e 48%, #ff8a3c 100%);
  color: #fff;
  border: none;
  box-shadow: 0 30px 70px rgba(255, 60, 110, 0.32);
  overflow: visible;
}

#home::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
  animation: floatBlob 12s ease-in-out infinite alternate;
}

#home::after {
  content: "";
  position: absolute;
  inset: auto auto -45% -12%;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 65%);
  filter: blur(12px);
  pointer-events: none;
  animation: floatBlob 15s ease-in-out infinite alternate-reverse;
}

#home h1 {
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: none;
  text-shadow: 0 2px 18px rgba(120, 20, 40, 0.25);
}

#home p {
  color: rgba(255, 255, 255, 0.94);
  max-width: 78ch;
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
}

#home > div {
  margin-top: 26px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(80, 10, 30, 0.35);
  transform: translateZ(0);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

#home > div:hover {
  transform: translateY(-4px) scale(1.008);
  box-shadow: 0 32px 80px rgba(80, 10, 30, 0.45);
}

#home img {
  width: 100%;
  border-radius: 0;
}

/* ============ About / Info lists ============ */
#about ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

#about ul li {
  margin: 0;
  padding: 12px 16px;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  color: var(--text-2);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#about ul li:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 90, 60, 0.45);
  box-shadow: var(--shadow-md);
  color: var(--text);
}

/* ============ Products ============ */
#products ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

#products ul li {
  margin: 0;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--bg-glass), transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  color: var(--text);
  position: relative;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#products ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--brand), var(--brand-3));
  opacity: 0.85;
}

#products ul li:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 90, 60, 0.4);
  box-shadow: var(--shadow-lg);
}

/* ============ Solutions ============ */
#solutions ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

#solutions ul li {
  margin: 0;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text-2);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

#solutions ul li:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 60, 110, 0.45);
}

/* ============ Cases ============ */
#cases blockquote {
  position: relative;
  padding-left: 52px;
  background: linear-gradient(135deg, var(--brand-soft), transparent);
  border-left: none;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#cases blockquote::before {
  content: "\201C";
  position: absolute;
  left: 16px;
  top: 2px;
  font-size: 3rem;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--brand);
  opacity: 0.6;
}

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

/* ============ News & Articles ============ */
#news article,
#articles article {
  padding: 18px 20px;
  margin: 14px 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#news article:hover,
#articles article:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 90, 60, 0.4);
  box-shadow: var(--shadow-lg);
}

#news article h3,
#articles article h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}

#news article p:first-of-type,
#articles article p:first-of-type {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 2px 10px;
  border-radius: 999px;
  margin: 0 0 8px;
  font-weight: 600;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

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

#articles article a:hover {
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  color: #fff;
  transform: translateY(-1px);
}

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

/* ============ FAQ ============ */
#faq details {
  margin: 10px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

#faq details:hover {
  border-color: rgba(255, 90, 60, 0.4);
  box-shadow: var(--shadow-md);
}

#faq details[open] {
  border-color: rgba(255, 60, 110, 0.5);
  box-shadow: var(--shadow-md);
}

#faq summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 48px 15px 20px;
  font-weight: 700;
  color: var(--text);
  position: relative;
  user-select: none;
  transition: color 0.25s 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;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}

#faq details[open] summary::after {
  content: "\2212";
  transform: translateY(-50%) rotate(180deg);
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  color: #fff;
}

#faq summary:hover {
  color: var(--brand);
}

#faq details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--text-2);
  animation: fadeIn 0.4s var(--ease);
}

/* ============ HowTo ============ */
#howto ol {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 14px 18px 14px 62px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  color: var(--text-2);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border-radius: 50%;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  box-shadow: 0 6px 16px rgba(255, 90, 60, 0.35);
}

#howto ol li:hover {
  transform: translateX(4px);
  border-color: rgba(255, 90, 60, 0.4);
  box-shadow: var(--shadow-md);
}

/* ============ Contact ============ */
#contact ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

#contact ul li {
  margin: 0;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--brand-soft), transparent);
  color: var(--text-2);
  font-size: 0.94rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#contact ul li:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 90, 60, 0.45);
  box-shadow: var(--shadow-md);
  color: var(--text);
}

/* ============ Sitemap & Links ============ */
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

#sitemap ul li a,
#links ul li a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-2);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  transform: translateY(-2px);
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  box-shadow: 0 8px 20px rgba(255, 60, 110, 0.35);
}

/* ============ Footer ============ */
footer {
  margin-top: 40px;
  padding: 40px 20px 30px;
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-3), var(--brand-2));
}

footer > section {
  max-width: var(--maxw);
  margin: 0 auto 24px;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  animation: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

footer > section::after {
  display: none;
}

footer > section h2 {
  font-size: 1.02rem;
  padding-left: 12px;
  margin: 0 0 8px;
}

footer > section h2::before {
  width: 4px;
  top: 0.2em;
  bottom: 0.2em;
}

footer > section p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-3);
  line-height: 1.7;
}

footer > p {
  max-width: var(--maxw);
  margin: 0 auto 6px;
  padding: 0;
  font-size: 0.84rem;
  color: var(--text-3);
  text-align: center;
}

footer > p:last-child {
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  color: var(--text-2);
  font-weight: 600;
}

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

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

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

section:nth-of-type(2) { animation-delay: 0.05s; }
section:nth-of-type(3) { animation-delay: 0.1s; }
section:nth-of-type(4) { animation-delay: 0.15s; }
section:nth-of-type(5) { animation-delay: 0.2s; }
section:nth-of-type(6) { animation-delay: 0.25s; }
section:nth-of-type(7) { animation-delay: 0.3s; }

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

/* ============ Responsive ============ */
@media (max-width: 900px) {
  :root {
    --header-h: 60px;
  }

  nav {
    padding: 10px 16px;
    min-height: auto;
    justify-content: center;
  }

  nav ul {
    justify-content: center;
    gap: 2px;
  }

  nav ul li a {
    padding: 6px 10px;
    font-size: 0.85rem;
  }

  section {
    border-radius: var(--radius);
    margin: 20px 0;
  }

  #home {
    border-radius: var(--radius);
  }
}

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

  main {
    padding: 0 14px;
  }

  section {
    padding: 18px 16px;
  }

  #home {
    padding: 26px 18px;
  }

  nav > a {
    font-size: 1.08rem;
  }

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

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 4px;
  }

  #about ul,
  #products ul,
  #solutions ul,
  #contact ul {
    grid-template-columns: 1fr;
  }

  #cases blockquote {
    padding-left: 46px;
  }

  #howto ol li {
    padding: 12px 14px 12px 54px;
  }

  #howto ol li::before {
    left: 12px;
    width: 28px;
    height: 28px;
    line-height: 28px;
    font-size: 0.86rem;
  }

  footer > section {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ============ Focus & Selection ============ */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgba(255, 90, 60, 0.28);
  color: var(--text);
}

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

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand), var(--brand-3));
  border-radius: 10px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
}