:root {
  --green-900: #0b3d2c;
  --green-800: #0f5c40;
  --green-700: #146b4c;
  --green-600: #1a7f5a;
  --green-500: #23896a;
  --green-400: #3aa87f;
  --green-300: #6cc79f;
  --green-200: #a8e6c9;
  --green-100: #d6f5e6;
  --green-50: #eefaf3;
  --accent: #f5b83d;
  --accent-soft: #ffe9b8;
  --text-strong: #10241c;
  --text-main: #2b3f37;
  --text-muted: #5c7268;
  --bg-page: #f4faf7;
  --bg-elevated: #ffffff;
  --bg-soft: #e8f5ee;
  --border-soft: rgba(26, 127, 90, 0.14);
  --border-strong: rgba(26, 127, 90, 0.28);
  --shadow-sm: 0 2px 8px rgba(11, 61, 44, 0.06);
  --shadow-md: 0 10px 30px rgba(11, 61, 44, 0.1);
  --shadow-lg: 0 22px 55px rgba(11, 61, 44, 0.16);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.55);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --header-h: 76px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --text-strong: #eaf7f0;
    --text-main: #c9ded4;
    --text-muted: #93b3a6;
    --bg-page: #07130f;
    --bg-elevated: #0e211a;
    --bg-soft: #102a21;
    --border-soft: rgba(108, 199, 159, 0.16);
    --border-strong: rgba(108, 199, 159, 0.32);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 22px 55px rgba(0, 0, 0, 0.6);
    --glass-bg: rgba(14, 33, 26, 0.72);
    --glass-border: rgba(108, 199, 159, 0.22);
  }
}

:root[data-theme="dark"] {
  --text-strong: #eaf7f0;
  --text-main: #c9ded4;
  --text-muted: #93b3a6;
  --bg-page: #07130f;
  --bg-elevated: #0e211a;
  --bg-soft: #102a21;
  --border-soft: rgba(108, 199, 159, 0.16);
  --border-strong: rgba(108, 199, 159, 0.32);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 22px 55px rgba(0, 0, 0, 0.6);
  --glass-bg: rgba(14, 33, 26, 0.72);
  --glass-border: rgba(108, 199, 159, 0.22);
}

*,
*::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-main);
  background-color: var(--bg-page);
  background-image:
    radial-gradient(1100px 520px at 8% -6%, rgba(108, 199, 159, 0.22), transparent 62%),
    radial-gradient(900px 480px at 96% 4%, rgba(245, 184, 61, 0.14), transparent 60%),
    radial-gradient(760px 520px at 50% 108%, rgba(26, 127, 90, 0.14), transparent 65%);
  background-attachment: fixed;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--green-500);
}

:root[data-theme="dark"] a,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) a {
    color: var(--green-300);
  }
}

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

h1 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); }
h3 { font-size: clamp(1.08rem, 1.8vw, 1.28rem); }

p { margin: 0 0 1em; }

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.35em;
}

li { margin-bottom: 0.45em; }

blockquote {
  margin: 0 0 1.2em;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--green-400);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

blockquote p { margin: 0; }

time {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

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

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-strong);
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.brand svg {
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(26, 127, 90, 0.35);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.brand:hover svg {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 10px 26px rgba(26, 127, 90, 0.5);
}

.brand-name {
  background: linear-gradient(120deg, var(--green-600), var(--green-400));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

.main-nav li { margin: 0; }

.main-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--text-main);
  font-weight: 500;
  position: relative;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green-500), var(--green-300));
  transform: translateX(-50%);
  transition: width 0.32s var(--ease);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(26, 127, 90, 0.1);
  color: var(--green-600);
  transform: translateY(-1px);
}

.main-nav a:hover::after { width: 60%; }

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-tools form {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.header-tools form:focus-within {
  border-color: var(--green-400);
  box-shadow: 0 0 0 4px rgba(26, 127, 90, 0.14);
}

#site-search {
  width: 190px;
  padding: 7px 12px;
  border: 0;
  background: transparent;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  border-radius: 999px;
}

#site-search::placeholder { color: var(--text-muted); }

#site-search:focus { outline: none; }

.header-tools button {
  cursor: pointer;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 8px 14px;
  border: 1px solid var(--border-soft);
  background: var(--bg-elevated);
  color: var(--text-main);
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.header-tools form button {
  border: 0;
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  color: #fff;
  padding: 7px 16px;
}

.header-tools button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-400);
  color: var(--green-600);
}

.header-tools form button:hover { color: #fff; }

#menu-toggle { display: none; }

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

main > section {
  margin: 56px 0;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

main > section > h2 {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 24px;
}

main > section > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--green-600), var(--accent));
  box-shadow: 0 4px 14px rgba(26, 127, 90, 0.35);
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  padding: 10px 16px;
  font-size: 0.86rem;
  color: var(--text-muted);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.breadcrumb li { margin: 0; display: inline-flex; align-items: center; }

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--border-strong);
}

.breadcrumb a { color: var(--green-600); font-weight: 500; }

/* ============ Hero ============ */
#hero {
  position: relative;
  margin-top: 28px !important;
  padding: clamp(24px, 4vw, 52px);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(11, 61, 44, 0.94) 0%, rgba(26, 127, 90, 0.9) 45%, rgba(35, 137, 106, 0.86) 70%, rgba(245, 184, 61, 0.55) 100%),
    radial-gradient(circle at 80% 20%, rgba(168, 230, 201, 0.5), transparent 55%);
  color: #eaf7f0;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

#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.26), transparent 62%);
  filter: blur(12px);
  animation: floatOrb 14s ease-in-out infinite alternate;
  z-index: -1;
}

#hero::after {
  content: "";
  position: absolute;
  inset: auto auto -30% -12%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 184, 61, 0.34), transparent 65%);
  filter: blur(16px);
  animation: floatOrb 18s ease-in-out infinite alternate-reverse;
  z-index: -1;
}

@keyframes floatOrb {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-40px, 30px, 0) scale(1.12); }
}

#hero h1 {
  color: #ffffff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);
  margin-top: 0;
  max-width: 22ch;
}

.hero-lead,
.hero-answer {
  color: rgba(234, 247, 240, 0.92);
  font-size: clamp(0.96rem, 1.5vw, 1.06rem);
  max-width: 78ch;
}

.hero-answer {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Slider */
.hero-slider {
  position: relative;
  margin: 30px 0 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
}

.hero-slider .slide {
  animation: slideFade 0.7s var(--ease);
}

.hero-slider .slide svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

@keyframes slideFade {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

.hero-slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0b3d2c;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  padding: 8px 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease);
}

.hero-slider button:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.06);
  box-shadow: var(--shadow-md);
}

.slider-prev { left: 14px; }
.slider-next { right: 14px; }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.stat {
  padding: 18px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.stat:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.stat-num {
  display: block;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: rgba(234, 247, 240, 0.85);
}

/* ============ Generic section cards ============ */
#brand,
#products,
#solutions,
#applications,
#cases,
#news,
#articles,
#howto,
#faq,
#contact,
#sitemap,
#links {
  padding: clamp(22px, 3.4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

#brand:hover,
#products:hover,
#solutions:hover,
#applications:hover,
#cases:hover,
#news:hover,
#articles:hover,
#howto:hover,
#faq:hover,
#contact:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

#brand h3,
#products h3,
#solutions h3,
#applications h3,
#cases h3,
#news h3,
#howto h3,
#contact h3 {
  margin-top: 1.6em;
  margin-bottom: 0.5em;
  padding-left: 14px;
  position: relative;
}

#brand h3::before,
#products h3::before,
#solutions h3::before,
#applications h3::before,
#cases h3::before,
#news h3::before,
#howto h3::before,
#contact h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  bottom: 0.32em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--green-500), var(--green-300));
}

#brand h3:first-of-type,
#products h3:first-of-type,
#solutions h3:first-of-type,
#applications h3:first-of-type,
#cases h3:first-of-type,
#news h3:first-of-type,
#howto h3:first-of-type,
#contact h3:first-of-type {
  margin-top: 0.4em;
}

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

#products ul li {
  margin: 0;
  padding: 14px 16px 14px 44px;
  position: relative;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  font-size: 0.94rem;
  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: 16px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-500), var(--green-300));
  box-shadow: 0 0 0 4px rgba(26, 127, 90, 0.12);
}

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

/* Cases blockquotes */
#cases blockquote {
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

/* News */
#news h3 + p time {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(26, 127, 90, 0.1);
  color: var(--green-600);
  font-weight: 600;
}

/* ============ Articles ============ */
#articles > p {
  max-width: 80ch;
}

#articles article {
  position: relative;
  padding: 20px 22px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--green-500), var(--accent));
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

#articles article:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

#articles article:hover::before { opacity: 1; }

#articles article h3 {
  margin: 0 0 6px;
  padding: 0;
}

#articles article h3::before { display: none; }

#articles article h3 a {
  color: var(--text-strong);
  background-image: linear-gradient(90deg, var(--green-500), var(--green-400));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.35s var(--ease), color 0.3s var(--ease);
}

#articles article h3 a:hover {
  color: var(--green-600);
  background-size: 100% 2px;
}

#articles article > p:nth-of-type(2) {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-bottom: 10px;
}

#articles article > a:last-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(26, 127, 90, 0.1);
  color: var(--green-600);
  transition: all 0.3s var(--ease);
}

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

#articles article > a:last-child:hover {
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(26, 127, 90, 0.35);
}

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

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

#howto ol li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 12px 16px 12px 52px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-600), var(--green-400));
  box-shadow: 0 4px 12px rgba(26, 127, 90, 0.35);
}

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

#howto ul {
  display: grid;
  gap: 8px;
  padding-left: 0;
  list-style: none;
}

#howto ul li {
  position: relative;
  padding-left: 26px;
  margin: 0;
}

#howto ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--green-500), var(--green-300));
  transform: rotate(45deg);
}

/* ============ FAQ ============ */
#faq details {
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#faq details:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

#faq details[open] {
  border-color: var(--green-400);
  box-shadow: 0 12px 30px rgba(26, 127, 90, 0.16);
}

#faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 52px 16px 20px;
  font-weight: 600;
  color: var(--text-strong);
  font-size: 1rem;
  position: relative;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  user-select: none;
}

#faq summary::-webkit-details-marker { display: none; }

#faq summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--green-600);
  border-bottom: 2px solid var(--green-600);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.32s var(--ease);
}

#faq details[open] summary {
  background: rgba(26, 127, 90, 0.08);
  color: var(--green-600);
}

#faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

#faq details p {
  padding: 4px 20px 18px;
  margin: 0;
  color: var(--text-main);
  font-size: 0.95rem;
  animation: faqFade 0.4s var(--ease);
}

@keyframes faqFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ Contact ============ */
#contact address {
  font-style: normal;
}

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

#contact address li {
  margin: 0;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  font-size: 0.94rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#contact address li:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

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

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

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

#sitemap a,
#links a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(26, 127, 90, 0.35);
}

/* ============ Footer ============ */
footer {
  margin-top: 40px;
  padding: clamp(28px, 4vw, 56px) 24px 32px;
  background:
    linear-gradient(160deg, rgba(11, 61, 44, 0.97), rgba(15, 92, 64, 0.96) 55%, rgba(26, 127, 90, 0.94));
  color: rgba(234, 247, 240, 0.88);
  border-top: 1px solid rgba(168, 230, 201, 0.2);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -80px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 184, 61, 0.24), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
}

footer > section {
  max-width: var(--maxw);
  margin: 0 auto 22px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

footer > section:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(168, 230, 201, 0.3);
  transform: translateY(-3px);
}

footer h2 {
  color: #ffffff;
  font-size: 1.02rem;
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}

footer p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(234, 247, 240, 0.82);
}

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

footer time { color: var(--green-200); }

footer a { color: var(--green-200); }

footer a:hover { color: #ffffff; }

/* ============ Back to top ============ */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 90;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: #ffffff;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  box-shadow: 0 12px 30px rgba(11, 61, 44, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.4s var(--ease);
}

#back-to-top.is-visible,
#back-to-top:hover,
#back-to-top:focus-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background: linear-gradient(135deg, var(--green-500), var(--green-400));
  box-shadow: 0 16px 38px rgba(11, 61, 44, 0.55);
  transform: translateY(-3px);
}

/* ============ Scroll reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

main > section {
  animation: sectionIn 0.6s var(--ease) both;
}

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

@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;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .header-inner { gap: 14px; }
  #site-search { width: 150px; }
  .main-nav a { padding: 7px 9px; font-size: 0.88rem; }
}

@media (max-width: 920px) {
  :root { --header-h: 68px; }

  .header-inner {
    padding: 10px 18px;
    row-gap: 10px;
  }

  nav[aria-label="主导航"] {
    order: 3;
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease), opacity 0.35s var(--ease);
    opacity: 0;
  }

  nav[aria-label="主导航"].is-open {
    max-height: 520px;
    opacity: 1;
    padding-bottom: 6px;
  }

  .main-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .main-nav a {
    display: block;
    padding: 11px 14px;
    border-radius: 12px;
    background: rgba(26, 127, 90, 0.06);
  }

  .main-nav a::after { display: none; }

  .header-tools { margin-left: auto; }

  #menu-toggle { display: inline-block; }

  .header-tools form {
    flex: 1 1 100%;
    order: 4;
    margin-top: 4px;
  }

  #site-search { width: 100%; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

  main { padding: 0 16px 32px; }

  .header-inner { padding: 10px 14px; }

  .brand-name { font-size: 0.98rem; }

  .brand svg { width: 34px; height: 34px; }

  .header-tools { gap: 6px; }

  .header-tools button { padding: 7px 11px; font-size: 0.8rem; }

  main > section { margin: 38px 0; }

  #hero {
    padding: 22px 18px;
    border-radius: var(--radius-lg);
  }

  #hero h1 { max-width: none; }

  .hero-answer { padding: 12px 14px; font-size: 0.92rem; }

  .hero-slider button {
    padding: 6px 10px;
    font-size: 0.74rem;
  }

  .slider-prev { left: 8px; }
  .slider-next { right: 8px; }

  .stats { gap: 10px; }

  .stat { padding: 14px 10px; }

  .stat-label { font-size: 0.76rem; }

  #brand,
  #products,
  #solutions,
  #applications,
  #cases,
  #news,
  #articles,
  #howto,
  #faq,
  #contact,
  #sitemap,
  #links {
    padding: 20px 16px;
    border-radius: var(--radius-md);
  }

  main > section > h2::after { width: 48px; }

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

  #articles article { padding: 16px; }

  #faq summary { padding: 14px 46px 14px 16px; font-size: 0.95rem; }

  #faq details p { padding: 2px 16px 16px; }

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

  footer { padding: 26px 16px 28px; }

  footer > section { padding: 16px; }

  #back-to-top {
    right: 14px;
    bottom: 16px;
    padding: 10px 14px;
    font-size: 0.78rem;
  }
}

@media (max-width: 400px) {
  .stats { grid-template-columns: 1fr; }
  .header-tools button { padding: 6px 9px; }
}
</style>