:root {
  --brand: #e63946;
  --brand-2: #f4a261;
  --brand-3: #ff6b81;
  --accent: #ffb703;
  --bg: #f6f7fb;
  --bg-soft: #ffffff;
  --bg-elev: rgba(255, 255, 255, 0.72);
  --text: #1d2433;
  --text-soft: #4a5468;
  --text-mute: #7b8497;
  --border: rgba(29, 36, 51, 0.09);
  --shadow-sm: 0 4px 14px rgba(29, 36, 51, 0.06);
  --shadow-md: 0 12px 32px rgba(29, 36, 51, 0.10);
  --shadow-lg: 0 24px 60px rgba(29, 36, 51, 0.14);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --grad-hero: linear-gradient(135deg, #e63946 0%, #ff6b81 42%, #f4a261 100%);
  --grad-soft: linear-gradient(135deg, rgba(230, 57, 70, 0.10), rgba(244, 162, 97, 0.12));
  --glass: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.55);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --maxw: 1180px;
  --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f131b;
    --bg-soft: #161c27;
    --bg-elev: rgba(22, 28, 39, 0.72);
    --text: #eef1f7;
    --text-soft: #c3cad8;
    --text-mute: #8b94a6;
    --border: rgba(255, 255, 255, 0.10);
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
    --glass: rgba(22, 28, 39, 0.55);
    --glass-border: rgba(255, 255, 255, 0.12);
    --grad-soft: linear-gradient(135deg, rgba(230, 57, 70, 0.18), rgba(244, 162, 97, 0.14));
  }
}

*,
*::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: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(900px 480px at 8% -8%, rgba(230, 57, 70, 0.10), transparent 60%),
    radial-gradient(800px 420px at 100% 0%, rgba(244, 162, 97, 0.12), transparent 62%);
  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(--brand);
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

a:hover,
a:focus-visible {
  color: var(--brand-3);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

h1,
h2,
h3 {
  line-height: 1.32;
  letter-spacing: 0.2px;
  color: var(--text);
  margin: 0 0 0.6em;
  font-weight: 800;
}

h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
}

h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  position: relative;
  padding-left: 16px;
}

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-2));
}

h3 {
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  margin-top: 1.4em;
  color: var(--text);
}

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

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

li {
  margin: 0.35em 0;
}

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

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

time {
  color: var(--text-mute);
  font-size: 0.86em;
}

blockquote {
  margin: 1.2em 0;
  padding: 16px 20px;
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--grad-soft);
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
}

blockquote p {
  margin: 0;
}

address {
  font-style: normal;
}

/* ============ Header ============ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  background: var(--glass);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 6px 24px rgba(29, 36, 51, 0.06);
}

.brand-bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 20px 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
}

.brand-name {
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  font-weight: 900;
  letter-spacing: 0.5px;
  background: linear-gradient(92deg, var(--brand), var(--brand-3) 48%, var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.brand-slogan {
  font-size: 0.8rem;
  color: var(--text-mute);
  letter-spacing: 0.4px;
}

header nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: max-content;
}

header nav ul li {
  margin: 0;
}

header nav ul li a {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all 0.28s var(--ease);
}

header nav ul li a:hover,
header nav ul li a:focus-visible {
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(230, 57, 70, 0.28);
  transform: translateY(-1px);
}

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

main > nav[aria-label="面包屑导航"] {
  margin-bottom: 18px;
}

main > nav[aria-label="面包屑导航"] ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-mute);
}

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

main > nav[aria-label="面包屑导航"] ol li + li::before {
  content: "/";
  color: var(--text-mute);
  opacity: 0.6;
}

main > nav[aria-label="面包屑导航"] ol li[aria-current="page"] {
  color: var(--text-soft);
  font-weight: 600;
}

section {
  margin: 0 0 26px;
  padding: clamp(20px, 3.4vw, 38px);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.7s var(--ease) both;
}

section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(600px 200px at 100% 0%, rgba(244, 162, 97, 0.07), transparent 70%);
}

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

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

/* Staggered entrance for sections */
main > section:nth-of-type(1) { animation-delay: 0.02s; }
main > section:nth-of-type(2) { animation-delay: 0.06s; }
main > section:nth-of-type(3) { animation-delay: 0.10s; }
main > section:nth-of-type(4) { animation-delay: 0.14s; }
main > section:nth-of-type(5) { animation-delay: 0.18s; }
main > section:nth-of-type(6) { animation-delay: 0.22s; }
main > section:nth-of-type(7) { animation-delay: 0.26s; }
main > section:nth-of-type(8) { animation-delay: 0.30s; }
main > section:nth-of-type(9) { animation-delay: 0.34s; }
main > section:nth-of-type(10) { animation-delay: 0.38s; }
main > section:nth-of-type(11) { animation-delay: 0.42s; }

/* ============ Hero ============ */
#hero {
  background: var(--grad-hero);
  border: none;
  color: #fff;
  box-shadow: var(--shadow-lg);
  padding: clamp(26px, 5vw, 56px);
}

#hero::after {
  background:
    radial-gradient(520px 260px at 88% 12%, rgba(255, 255, 255, 0.32), transparent 62%),
    radial-gradient(420px 220px at 6% 96%, rgba(255, 255, 255, 0.18), transparent 60%);
}

#hero h1 {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
  max-width: 26em;
}

#hero p {
  color: rgba(255, 255, 255, 0.94);
  max-width: 62em;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
}

#hero figure {
  margin: 26px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
  background: rgba(255, 255, 255, 0.14);
  padding: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

#hero figure:hover {
  transform: translateY(-4px) scale(1.006);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.30);
}

#hero figure svg {
  border-radius: 12px;
  width: 100%;
  height: auto;
}

#hero figcaption {
  margin-top: 10px;
  font-size: 0.82rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.4px;
}

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

#products ul li {
  margin: 0;
  padding: 16px 18px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.94rem;
  color: var(--text-soft);
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease),
    border-color 0.32s var(--ease);
}

#products ul li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(230, 57, 70, 0.35);
}

#products ul li strong {
  display: inline-block;
  margin-right: 4px;
  color: var(--brand);
}

/* ============ Cases / blockquotes ============ */
#cases blockquote {
  position: relative;
  padding-left: 52px;
}

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

/* ============ Articles ============ */
#articles article {
  padding: 20px 22px;
  margin: 0 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

#articles article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(230, 57, 70, 0.30);
}

#articles article h3 {
  margin-top: 0;
  margin-bottom: 6px;
}

#articles article p {
  margin-bottom: 0.6em;
  font-size: 0.95rem;
}

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

#articles article a {
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

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

/* ============ Knowledge & FAQ ============ */
#knowledge ul,
#howto ul,
#howto ol {
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px 16px 38px;
}

#knowledge ul li,
#howto ul li,
#howto ol li {
  margin: 0.45em 0;
}

#faq h3 {
  padding: 14px 18px 6px;
  margin: 14px 0 0;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: 1rem;
  color: var(--text);
}

#faq h3 + p {
  margin: 0 0 6px;
  padding: 0 18px 16px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.94rem;
}

#faq h3:first-of-type {
  margin-top: 20px;
}

/* ============ Contact ============ */
#contact address {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

#contact address p {
  margin: 0;
  padding: 14px 16px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

#contact address p:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

#contact > p:last-of-type {
  font-size: 0.86rem;
  color: var(--text-mute);
  border-top: 1px dashed var(--border);
  padding-top: 14px;
  margin-top: 8px;
}

/* ============ Sitemap & links ============ */
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 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;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.28s var(--ease);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(230, 57, 70, 0.26);
  transform: translateY(-2px);
}

#links {
  background: var(--grad-soft);
}

/* ============ Footer ============ */
footer {
  background: linear-gradient(180deg, rgba(29, 36, 51, 0.02), rgba(29, 36, 51, 0.06));
  border-top: 1px solid var(--border);
  padding: 40px 20px 30px;
}

@media (prefers-color-scheme: dark) {
  footer {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.05));
  }
}

footer section {
  max-width: var(--maxw);
  margin: 0 auto 20px;
  background: var(--bg-elev);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.7s var(--ease) both;
}

footer section h2 {
  font-size: 1.25rem;
}

footer section h3 {
  margin-top: 1.2em;
  font-size: 1rem;
  color: var(--brand);
}

footer section h3:first-of-type {
  margin-top: 0.6em;
}

footer section p {
  font-size: 0.9rem;
  margin-bottom: 0.7em;
}

footer > p {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-mute);
  padding-top: 10px;
  letter-spacing: 0.3px;
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  :root {
    --radius-lg: 22px;
  }

  section {
    padding: 22px 18px;
  }

  #hero {
    padding: 26px 20px;
  }

  #contact address {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15.5px;
    line-height: 1.72;
  }

  .brand-bar {
    padding: 10px 16px 4px;
    gap: 4px 10px;
  }

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

  header nav {
    padding: 0 16px 8px;
  }

  header nav ul li a {
    padding: 6px 12px;
    font-size: 0.84rem;
  }

  main {
    padding: 16px 14px 48px;
  }

  section {
    margin-bottom: 18px;
    padding: 20px 16px;
    border-radius: var(--radius);
  }

  h2 {
    padding-left: 13px;
  }

  h2::before {
    width: 5px;
  }

  #hero h1 {
    max-width: none;
  }

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

  #products ul li {
    padding: 14px 15px;
  }

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

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

  #sitemap ul,
  #links ul {
    gap: 8px;
  }

  #sitemap ul li a,
  #links ul li a {
    padding: 7px 13px;
    font-size: 0.84rem;
  }

  footer {
    padding: 28px 14px 24px;
  }

  footer section {
    padding: 20px 16px;
    border-radius: var(--radius);
  }
}

/* ============ Motion preferences ============ */
@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;
  }
}

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

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

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