:root {
  --primary: #d32f2f;
  --primary-dark: #b71c1c;
  --primary-light: #ff6659;
  --accent: #ff8a65;
  --accent-2: #ffb74d;
  --bg: #f7f5f2;
  --bg-alt: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --text: #1f1b1a;
  --text-soft: #5c5450;
  --text-muted: #8a7f7a;
  --border: rgba(211, 47, 47, 0.14);
  --border-soft: rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 2px 10px rgba(60, 20, 20, 0.06);
  --shadow-md: 0 10px 30px rgba(60, 20, 20, 0.1);
  --shadow-lg: 0 24px 60px rgba(60, 20, 20, 0.16);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --glass-blur: blur(16px) saturate(160%);
  --grad-banner: linear-gradient(135deg, #d32f2f 0%, #e64a19 45%, #ff8a65 100%);
  --grad-soft: linear-gradient(135deg, rgba(211, 47, 47, 0.08), rgba(255, 138, 101, 0.12));
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14100f;
    --bg-alt: #1b1615;
    --surface: rgba(32, 26, 25, 0.66);
    --surface-solid: #221c1b;
    --text: #f3ecea;
    --text-soft: #c9beb9;
    --text-muted: #948781;
    --border: rgba(255, 138, 101, 0.18);
    --border-soft: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 34px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.6);
    --grad-banner: linear-gradient(135deg, #7f1d1d 0%, #b23a1e 50%, #d9764a 100%);
    --grad-soft: linear-gradient(135deg, rgba(211, 47, 47, 0.16), rgba(255, 138, 101, 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.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(211, 47, 47, 0.1), transparent 42%),
    radial-gradient(circle at 88% 0%, rgba(255, 138, 101, 0.12), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(255, 183, 77, 0.08), transparent 50%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

a:hover,
a:focus-visible {
  color: var(--primary-light);
}

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

h1 {
  font-size: clamp(1.75rem, 4.2vw, 3rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  position: relative;
  padding-bottom: 0.5em;
}

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

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

h4 {
  font-size: 1.05rem;
  color: var(--primary);
}

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

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

li {
  margin-bottom: 0.45em;
}

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

blockquote {
  margin: 0;
  padding: 1.3em 1.5em;
  border-radius: var(--radius);
  background: var(--surface);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-left: 5px solid var(--primary);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

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

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

time {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

::selection {
  background: rgba(211, 47, 47, 0.22);
  color: var(--text);
}

:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 3px;
  border-radius: 6px;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(60, 20, 20, 0.06);
}

.top-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.55rem 1.25rem;
  font-size: 0.78rem;
  color: #fff;
  background: var(--grad-banner);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  letter-spacing: 0.02em;
}

.top-bar span {
  opacity: 0.95;
}

nav[aria-label="主导航"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
}

nav[aria-label="主导航"] > a {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: var(--grad-banner);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
}

nav[aria-label="主导航"] > a:hover {
  filter: brightness(1.1);
}

nav[aria-label="主导航"] ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav[aria-label="主导航"] ul li {
  margin: 0;
}

nav[aria-label="主导航"] ul li a {
  display: block;
  padding: 0.42rem 0.72rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  border-radius: 999px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

nav[aria-label="主导航"] ul li a:hover,
nav[aria-label="主导航"] ul li a:focus-visible {
  color: var(--primary);
  background: rgba(211, 47, 47, 0.1);
  transform: translateY(-2px);
}

main {
  display: block;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 1.25rem 1rem;
}

section {
  position: relative;
  margin-bottom: 2rem;
  padding: 2rem;
  background: var(--surface);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  animation: rise-in 0.7s var(--ease) both;
  animation-timeline: view();
  animation-range: entry 0% cover 28%;
}

@supports not (animation-timeline: view()) {
  section {
    animation: none;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#hero {
  overflow: hidden;
  padding: 3rem 2rem;
  background: var(--grad-banner);
  border: none;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

#hero::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.22), transparent 65%);
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  inset: auto auto -50% -15%;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 183, 77, 0.28), transparent 65%);
  pointer-events: none;
}

#hero h1 {
  position: relative;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
  z-index: 1;
}

#hero p {
  position: relative;
  max-width: 780px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.02rem;
  z-index: 1;
}

#hero figure {
  position: relative;
  margin: 1.6rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  z-index: 1;
}

#hero figure:hover {
  transform: translateY(-6px) scale(1.005);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.36);
}

#hero figure svg {
  width: 100%;
  height: auto;
}

#hero figcaption {
  padding: 0.7rem 1rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.18);
  text-align: center;
}

.stats {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1.4rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
  z-index: 1;
}

.stats span[data-count] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  margin-right: 0.4rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.stats span[data-count]:hover {
  transform: translateY(-3px) scale(1.03);
  background: rgba(255, 255, 255, 0.26);
}

nav[aria-label="面包屑导航"] ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1.5rem;
  padding: 0.7rem 1.1rem;
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--surface);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

nav[aria-label="面包屑导航"] ol li {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

nav[aria-label="面包屑导航"] ol li + li::before {
  content: "/";
  margin-right: 0.4rem;
  color: var(--text-muted);
  opacity: 0.6;
}

#products h3,
#services h3,
#scenarios h3,
#solutions h3,
#cases h3,
#team h3,
#contact h3 {
  margin-top: 1.6rem;
  padding-left: 0.85rem;
  border-left: 4px solid var(--primary);
}

#products ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem;
  padding: 0;
  list-style: none;
}

#products ul li {
  position: relative;
  margin: 0;
  padding: 1rem 1.1rem 1rem 2.6rem;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 600;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#products ul li::before {
  content: "✓";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  color: #fff;
  background: var(--grad-banner);
  border-radius: 50%;
}

#products ul li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

#brand ul {
  list-style: none;
  padding: 0;
}

#brand ul li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.9rem;
  border-bottom: 1px dashed var(--border-soft);
}

#brand ul li::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 1.15rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--grad-banner);
  box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.12);
}

#brand ul li:last-child {
  border-bottom: none;
}

#testimonials blockquote + blockquote {
  margin-top: 1rem;
}

#testimonials blockquote::before {
  content: "“";
  display: block;
  font-size: 2.4rem;
  line-height: 0.6;
  color: var(--primary);
  opacity: 0.4;
  margin-bottom: 0.3rem;
}

#news article,
#articles > article {
  position: relative;
  padding: 1.25rem 1.4rem;
  margin-bottom: 1rem;
  background: var(--surface-solid);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  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::before,
#articles > article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25rem;
  bottom: 1.25rem;
  width: 4px;
  border-radius: 4px;
  background: var(--grad-banner);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

#news article:hover,
#articles > article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}

#news article:hover::before,
#articles > article:hover::before {
  opacity: 1;
}

#news article h3,
#articles > article h3 {
  margin-bottom: 0.35rem;
}

#news article p,
#articles > article p {
  margin-bottom: 0.5rem;
}

#articles > article a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(211, 47, 47, 0.1);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), gap 0.25s var(--ease);
}

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

#articles > article a:hover {
  background: var(--primary);
  color: #fff;
}

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

#articles section[id^="article-"] {
  margin: 1.2rem 0 0;
  padding: 1.4rem 1.6rem;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
}

#articles section[id^="article-"] h4 {
  margin-bottom: 0.6rem;
  color: var(--primary);
}

#faq dl {
  margin: 0;
}

#faq dt {
  position: relative;
  padding: 0.9rem 1rem 0.9rem 2.4rem;
  margin-top: 0.6rem;
  font-weight: 700;
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  cursor: default;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

#faq dt::before {
  content: "Q";
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.3rem;
  height: 1.3rem;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 900;
  color: #fff;
  background: var(--grad-banner);
  border-radius: 50%;
}

#faq dt:hover {
  background: rgba(211, 47, 47, 0.06);
}

#faq dd {
  margin: 0 0 0.6rem;
  padding: 0.9rem 1rem 0.9rem 2.4rem;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: background 0.3s var(--ease);
}

#faq dd:hover {
  background: var(--surface-solid);
}

#howto ol {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

#howto ol li {
  position: relative;
  counter-increment: step;
  margin-bottom: 0.7rem;
  padding: 1rem 1.1rem 1rem 3.4rem;
  background: var(--surface-solid);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  color: var(--text);
  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: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  background: var(--grad-banner);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

#howto ol li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
  border-color: var(--border);
}

#team h3 + p,
#contact p {
  margin-bottom: 0.5rem;
}

#contact p {
  padding: 0.6rem 1rem;
  background: var(--surface-solid);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

#contact p:hover {
  border-color: var(--primary-light);
  transform: translateX(4px);
}

#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  list-style: none;
}

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

#sitemap ul li a,
#links ul li a {
  display: inline-block;
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--surface-solid);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  color: #fff;
  background: var(--grad-banner);
  border-color: transparent;
  transform: translateY(-3px);
}

#legal h2 {
  margin-top: 1.6rem;
  font-size: 1.15rem;
}

#legal h2:first-child {
  margin-top: 0;
}

#legal h2::after {
  width: 40px;
  height: 3px;
}

footer {
  margin-top: 2rem;
  padding: 2.4rem 1.25rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.86);
  background: linear-gradient(160deg, #2a1a18 0%, #3d1f1b 55%, #5a2820 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer p {
  margin: 0.35rem auto;
  max-width: var(--maxw);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
}

footer p:first-child {
  font-weight: 700;
  color: #fff;
}

footer a {
  color: var(--accent-2);
}

footer a:hover {
  color: #fff;
}

@media (max-width: 900px) {
  nav[aria-label="主导航"] {
    padding: 0.75rem 1rem;
  }

  nav[aria-label="主导航"] ul {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.3rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  nav[aria-label="主导航"] ul li a {
    white-space: nowrap;
  }

  section {
    padding: 1.5rem;
    border-radius: var(--radius);
  }

  #hero {
    padding: 2.2rem 1.5rem;
  }
}

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

  body {
    font-size: 15px;
  }

  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    font-size: 0.72rem;
    border-radius: 0;
  }

  main {
    padding: 1.25rem 0.85rem 0.5rem;
  }

  section {
    padding: 1.2rem 1.1rem;
    margin-bottom: 1.25rem;
  }

  h2::after {
    width: 48px;
  }

  #hero {
    padding: 1.8rem 1.2rem;
  }

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

  .stats {
    gap: 0.6rem;
    font-size: 0.85rem;
  }

  .stats span[data-count] {
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
  }

  #products ul {
    grid-template-columns: 1fr;
  }

  #news article,
  #articles > article {
    padding: 1rem 1.1rem;
  }

  #faq dt,
  #faq dd {
    padding-left: 2.1rem;
  }

  #howto ol li {
    padding-left: 3rem;
  }

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

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

@media print {
  header,
  footer,
  nav[aria-label="主导航"],
  .stats,
  #sitemap,
  #links {
    display: none;
  }

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

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