:root {
  --bg: #f5f7f4;
  --bg-alt: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --border: rgba(47, 93, 80, 0.14);
  --text: #1f2a26;
  --text-muted: #55665f;
  --accent: #2f5d50;
  --accent-2: #6fa38f;
  --accent-3: #c9a86a;
  --grad-1: #2f5d50;
  --grad-2: #4b8a72;
  --grad-3: #8fc0a9;
  --shadow-sm: 0 2px 10px rgba(31, 42, 38, 0.06);
  --shadow-md: 0 10px 30px rgba(31, 42, 38, 0.1);
  --shadow-lg: 0 20px 50px rgba(31, 42, 38, 0.16);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1613;
    --bg-alt: #131d19;
    --surface: rgba(28, 42, 36, 0.62);
    --surface-strong: rgba(32, 48, 41, 0.86);
    --border: rgba(143, 192, 169, 0.18);
    --text: #e6efe9;
    --text-muted: #a3b8ad;
    --accent: #8fc0a9;
    --accent-2: #6fa38f;
    --accent-3: #d8bd85;
    --grad-1: #16302a;
    --grad-2: #2f5d50;
    --grad-3: #4b8a72;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 20px 50px 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: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(111, 163, 143, 0.16), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(201, 168, 106, 0.12), transparent 55%),
    radial-gradient(800px 600px at 50% 120%, rgba(47, 93, 80, 0.12), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

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

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

::selection {
  background: rgba(111, 163, 143, 0.35);
  color: var(--text);
}

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

h1 {
  font-size: clamp(1.65rem, 1.1rem + 2.4vw, 2.6rem);
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.35rem, 1rem + 1.5vw, 1.9rem);
  position: relative;
  padding-bottom: 0.5em;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
}

h3 {
  font-size: clamp(1.1rem, 0.95rem + 0.7vw, 1.3rem);
  margin-top: 1.4em;
}

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

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

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

li {
  margin-bottom: 0.45em;
}

li::marker {
  color: var(--accent-2);
}

blockquote {
  margin: 1.4em 0;
  padding: 1.1em 1.4em;
  border-left: 4px solid var(--accent-2);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

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

blockquote p:last-child {
  margin-bottom: 0;
}

address {
  font-style: normal;
}

/* ============ Header ============ */
header[role="banner"] {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: var(--surface);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.site-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.site-brand > a {
  font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.3rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
  background: linear-gradient(120deg, var(--accent), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: filter 0.3s var(--ease);
}

.site-brand > a:hover {
  filter: brightness(1.15);
}

.brand-tagline {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

nav[aria-label="主导航"] {
  flex: 1 1 auto;
  min-width: 0;
}

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

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

nav[aria-label="主导航"] a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

nav[aria-label="主导航"] a:hover,
nav[aria-label="主导航"] a:focus-visible {
  color: var(--accent);
  background: rgba(111, 163, 143, 0.16);
  transform: translateY(-1px);
}

/* ============ Main layout ============ */
main {
  display: block;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 48px) clamp(16px, 4vw, 40px) 64px;
}

main > section {
  margin-bottom: clamp(28px, 4vw, 48px);
  padding: clamp(20px, 3.5vw, 40px);
  background: var(--surface);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  animation: fadeUp 0.7s var(--ease) both;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

main > section:hover {
  border-color: rgba(111, 163, 143, 0.32);
  box-shadow: var(--shadow-lg);
}

main > section:nth-child(2) { animation-delay: 0.05s; }
main > section:nth-child(3) { animation-delay: 0.1s; }
main > section:nth-child(4) { animation-delay: 0.15s; }
main > section:nth-child(5) { animation-delay: 0.2s; }
main > section:nth-child(6) { animation-delay: 0.25s; }

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

/* ============ Hero ============ */
#hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px) clamp(22px, 4vw, 48px);
  background:
    linear-gradient(135deg, rgba(47, 93, 80, 0.94), rgba(75, 138, 114, 0.88) 55%, rgba(143, 192, 169, 0.82));
  color: #f4fbf7;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-lg);
}

#hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 62%);
  border-radius: 50%;
  pointer-events: none;
  animation: floatBlob 14s ease-in-out infinite;
}

#hero::after {
  content: "";
  position: absolute;
  inset: auto auto -45% -12%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(201, 168, 106, 0.35), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  animation: floatBlob 18s ease-in-out infinite reverse;
}

@keyframes floatBlob {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-24px, 20px, 0) scale(1.08); }
}

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

#hero h1 {
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
  margin-bottom: 0.7em;
}

#hero p {
  color: rgba(244, 251, 247, 0.92);
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.08rem);
  max-width: 78ch;
}

nav[aria-label="面包屑导航"] ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 1.4em 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
}

nav[aria-label="面包屑导航"] li {
  display: inline-flex;
  align-items: center;
  margin: 0;
  color: rgba(244, 251, 247, 0.82);
}

nav[aria-label="面包屑导航"] li + li::before {
  content: "/";
  margin-right: 6px;
  color: rgba(244, 251, 247, 0.5);
}

nav[aria-label="面包屑导航"] a {
  color: rgba(244, 251, 247, 0.92);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

nav[aria-label="面包屑导航"] a:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

/* ============ Cards / lists inside sections ============ */
#product ul,
#scenes ul,
#solutions ul {
  display: grid;
  gap: 10px;
  padding-left: 0;
  list-style: none;
}

#product ul li,
#scenes ul li,
#solutions ul li {
  position: relative;
  padding: 12px 16px 12px 42px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#product ul li::before,
#scenes ul li::before,
#solutions ul li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: 0 0 0 4px rgba(111, 163, 143, 0.16);
}

#product ul li:hover,
#scenes ul li:hover,
#solutions ul li:hover {
  transform: translateY(-2px);
  border-color: rgba(111, 163, 143, 0.4);
  box-shadow: var(--shadow-md);
}

/* ============ Articles ============ */
#articles {
  display: block;
}

#articles article {
  position: relative;
  margin-bottom: 16px;
  padding: 18px 20px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  animation: fadeUp 0.6s var(--ease) both;
}

#articles article:nth-child(odd) { animation-delay: 0.04s; }
#articles article:nth-child(even) { animation-delay: 0.08s; }

#articles article:hover {
  transform: translateY(-3px);
  border-color: rgba(111, 163, 143, 0.42);
  box-shadow: var(--shadow-md);
}

#articles article h3 {
  margin-top: 0;
  margin-bottom: 0.35em;
  font-size: 1.08rem;
}

#articles article h3 a,
#articles article h3 {
  color: var(--accent);
}

#articles article p:first-of-type {
  display: inline-block;
  margin-bottom: 0.6em;
  padding: 2px 10px;
  font-size: 0.76rem;
  color: var(--text-muted);
  background: rgba(111, 163, 143, 0.14);
  border-radius: var(--radius-pill);
  letter-spacing: 0.03em;
}

#articles article p {
  font-size: 0.94rem;
}

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

#articles article a[href^="#article"] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: rgba(111, 163, 143, 0.14);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), color 0.25s var(--ease);
}

#articles article a[href^="#article"]::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}

#articles article a[href^="#article"]:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-1px);
}

#articles article a[href^="#article"]:hover::after {
  transform: translateX(3px);
}

/* ============ FAQ ============ */
#faq h3 {
  margin-top: 1.6em;
  padding: 12px 16px;
  font-size: 1.02rem;
  color: var(--accent);
  background: linear-gradient(90deg, rgba(111, 163, 143, 0.18), rgba(111, 163, 143, 0.04));
  border-left: 4px solid var(--accent-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

#faq h3 + p {
  padding: 0 4px;
}

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

#howto ol li {
  counter-increment: howto;
  position: relative;
  padding: 14px 18px 14px 58px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#howto ol li::before {
  content: counter(howto);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(47, 93, 80, 0.32);
}

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

/* ============ Contact ============ */
#contact address {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

#contact address p {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.94rem;
}

#contact address p::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
}

#contact address a {
  word-break: break-all;
}

/* ============ Sitemap ============ */
#sitemap > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 0;
  list-style: none;
  margin-bottom: 1.4em;
}

#sitemap > ul li {
  margin: 0;
}

#sitemap > ul a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.86rem;
  color: var(--text-muted);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

#sitemap > ul a:hover {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

#sitemap h3 + ul a {
  color: var(--accent);
  border-color: rgba(111, 163, 143, 0.4);
}

/* ============ Legal ============ */
#legal h3 {
  font-size: 1.02rem;
  color: var(--accent);
}

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

/* ============ Footer ============ */
footer[role="contentinfo"] {
  position: relative;
  padding: clamp(28px, 4vw, 48px) clamp(16px, 4vw, 40px);
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(47, 93, 80, 0.08));
  border-top: 1px solid var(--border);
}

footer[role="contentinfo"] p {
  margin: 0 0 6px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

footer[role="contentinfo"] a {
  display: inline-block;
  margin-top: 8px;
  padding: 7px 18px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

footer[role="contentinfo"] a:hover {
  color: #ffffff;
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  header[role="banner"] {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  nav[aria-label="主导航"] {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  nav[aria-label="主导航"]::-webkit-scrollbar {
    display: none;
  }

  nav[aria-label="主导航"] ul {
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

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

@media (max-width: 640px) {
  body {
    font-size: 15px;
    background-attachment: scroll;
  }

  main {
    padding-top: 16px;
  }

  main > section {
    border-radius: var(--radius-md);
    padding: 18px 16px;
  }

  #hero {
    border-radius: var(--radius-md);
    padding: 26px 18px;
  }

  #hero::before,
  #hero::after {
    width: 300px;
    height: 300px;
  }

  h2::after {
    width: 44px;
    height: 3px;
  }

  #contact address p {
    flex-direction: column;
    gap: 2px;
  }

  #contact address p::before {
    display: none;
  }

  #articles article {
    padding: 16px;
  }

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

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

@media (max-width: 380px) {
  .brand-tagline {
    white-space: normal;
  }

  nav[aria-label="主导航"] a {
    padding: 5px 10px;
    font-size: 0.8rem;
  }
}

/* ============ Motion & accessibility ============ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --border: rgba(47, 93, 80, 0.4);
    --text-muted: #3d4a44;
  }

  main > section,
  #articles article {
    border-width: 2px;
  }
}

@media print {
  header[role="banner"],
  footer[role="contentinfo"],
  nav[aria-label="主导航"],
  nav[aria-label="面包屑导航"] {
    display: none;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

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