:root {
  --brand: #1f8a70;
  --brand-2: #34c38f;
  --brand-3: #7ce0b8;
  --accent: #ff8a5c;
  --accent-2: #ffd166;
  --bg: #f6faf8;
  --bg-soft: #eef6f2;
  --surface: #ffffff;
  --surface-2: #f2f8f5;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.75);
  --text: #16241f;
  --text-soft: #43574f;
  --muted: #6b8078;
  --line: rgba(31, 138, 112, 0.16);
  --shadow-sm: 0 4px 14px rgba(22, 60, 48, 0.06);
  --shadow-md: 0 14px 34px rgba(22, 60, 48, 0.10);
  --shadow-lg: 0 24px 60px rgba(22, 60, 48, 0.16);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --maxw: 1180px;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 0.68, 0.32, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #38d39f;
    --brand-2: #2fb98c;
    --brand-3: #1f8a70;
    --accent: #ff9d72;
    --accent-2: #ffd166;
    --bg: #0b1512;
    --bg-soft: #0f1d19;
    --surface: #12221d;
    --surface-2: #162a24;
    --glass: rgba(18, 34, 29, 0.55);
    --glass-border: rgba(120, 220, 180, 0.18);
    --text: #e8f5ef;
    --text-soft: #b9d2c8;
    --muted: #87a299;
    --line: rgba(120, 220, 180, 0.16);
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 14px 34px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 8% -10%, rgba(52, 195, 143, 0.16), transparent 60%),
    radial-gradient(900px 520px at 100% 0%, rgba(255, 138, 92, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg,
video {
  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 {
  color: var(--brand-2);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(52, 195, 143, 0.55);
  outline-offset: 3px;
  border-radius: 8px;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

h2 {
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--brand-2), var(--accent));
}

h3 {
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  color: var(--text);
}

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

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

header nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

header nav > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--text);
  padding: 6px 4px;
  white-space: nowrap;
  background: linear-gradient(120deg, var(--brand), var(--brand-2) 55%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

header nav > a::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-2), var(--accent));
  box-shadow: 0 0 0 4px rgba(52, 195, 143, 0.18);
  flex: none;
}

header nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  flex-wrap: wrap;
  justify-content: flex-end;
}

header nav ul li a {
  display: inline-block;
  padding: 6px 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-soft);
  border-radius: 99px;
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

header nav ul li a:hover,
header nav ul li a:focus-visible {
  color: var(--brand);
  background: rgba(52, 195, 143, 0.12);
  transform: translateY(-1px);
}

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

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

main > nav[aria-label="面包屑导航"] ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

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

main > nav[aria-label="面包屑导航"] ol li + li::before {
  content: "›";
  color: var(--muted);
  opacity: 0.7;
  margin-right: 2px;
}

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

/* ============ Sections ============ */
main > section {
  margin-top: 26px;
  padding: 30px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  animation: rise 0.7s var(--ease) both;
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

main > section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(600px 200px at 100% 0%, rgba(52, 195, 143, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

main > section:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(52, 195, 143, 0.3);
}

main > section:hover::after {
  opacity: 1;
}

main > section > h2 {
  margin-bottom: 18px;
}

main > section > h3 {
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

main > section > h3:first-of-type {
  margin-top: 6px;
  padding-top: 0;
  border-top: none;
}

main > section article {
  padding: 20px 22px;
  margin: 16px 0;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

main > section article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(52, 195, 143, 0.35);
}

main > section article h3 {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

main > section article p:last-child {
  margin-bottom: 0;
}

main > section article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: 99px;
  color: #fff;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  box-shadow: 0 8px 18px rgba(31, 138, 112, 0.25);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

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

main > section article a:hover {
  color: #fff;
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 12px 24px rgba(31, 138, 112, 0.35);
}

main > section article a:hover::after {
  transform: translateX(4px);
}

/* ============ Hero ============ */
#hero {
  margin-top: 20px;
  padding: 54px 40px;
  border-radius: var(--radius-xl);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    radial-gradient(700px 340px at 88% 8%, rgba(255, 209, 102, 0.34), transparent 62%),
    radial-gradient(620px 320px at 6% 100%, rgba(124, 224, 184, 0.36), transparent 60%),
    linear-gradient(125deg, #12664f 0%, #1f8a70 42%, #34c38f 78%, #7ce0b8 100%);
  box-shadow: 0 30px 70px rgba(18, 102, 79, 0.32);
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 65%);
  filter: blur(10px);
  animation: floaty 12s ease-in-out infinite;
  z-index: -1;
}

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

#hero p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.02rem;
  max-width: 78ch;
  margin-bottom: 0;
}

/* ============ Lists (sitemap / links) ============ */
#sitemap ul,
#links ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px 14px;
}

#sitemap ul li a,
#links ul li a {
  display: block;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  color: var(--brand);
  border-color: rgba(52, 195, 143, 0.45);
  background: rgba(52, 195, 143, 0.1);
  transform: translateY(-2px);
}

/* ============ FAQ ============ */
#faq h3 {
  position: relative;
  padding: 14px 16px 14px 46px;
  margin: 12px 0 0;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: none;
  font-size: 1rem;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

#faq h3::before {
  content: "Q";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 900;
  color: #fff;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

#faq h3 + p {
  margin: 0 0 4px;
  padding: 14px 18px 16px 46px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.94rem;
  position: relative;
}

#faq h3 + p::before {
  content: "A";
  position: absolute;
  left: 14px;
  top: 15px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--brand);
  border-radius: 8px;
  background: rgba(52, 195, 143, 0.14);
}

#faq h3:hover {
  background: rgba(52, 195, 143, 0.1);
  color: var(--brand);
}

/* ============ Contact ============ */
#contact p {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  padding: 10px 14px;
  margin: 0 0 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

#contact p:hover {
  transform: translateX(4px);
  border-color: rgba(52, 195, 143, 0.4);
}

/* ============ Reviews ============ */
#reviews h3 + p {
  position: relative;
  padding: 18px 20px 18px 22px;
  margin: 0 0 16px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-2);
  border-radius: var(--radius);
  font-style: normal;
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#reviews h3 + p:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

#reviews h3 + p::before {
  content: "“";
  position: absolute;
  left: 8px;
  top: -6px;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--brand-2);
  opacity: 0.35;
  font-family: Georgia, serif;
}

/* ============ News dates ============ */
#news h3 + p:first-of-type,
#articles article p:first-of-type {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--brand);
  background: rgba(52, 195, 143, 0.12);
  border: 1px solid rgba(52, 195, 143, 0.28);
  padding: 2px 12px;
  border-radius: 99px;
  margin-bottom: 10px;
}

/* ============ Footer ============ */
footer {
  margin-top: 40px;
  padding: 44px 20px 30px;
  background:
    radial-gradient(800px 300px at 0% 0%, rgba(52, 195, 143, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(18, 102, 79, 0.06), transparent 40%),
    var(--surface-2);
  border-top: 1px solid var(--line);
}

footer section {
  max-width: var(--maxw);
  margin: 0 auto 22px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

footer section:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

footer section h2 {
  font-size: 1.05rem;
  padding-left: 14px;
  margin-bottom: 10px;
}

footer section h2::before {
  width: 4px;
}

footer section p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

footer > p {
  max-width: var(--maxw);
  margin: 26px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.86rem;
  color: var(--muted);
  letter-spacing: 0.3px;
}

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

@keyframes floaty {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-24px, 18px, 0) scale(1.06);
  }
}

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

main > section:nth-of-type(1) { animation-delay: 0.02s; }
main > section:nth-of-type(2) { animation-delay: 0.05s; }
main > section:nth-of-type(3) { animation-delay: 0.08s; }
main > section:nth-of-type(4) { animation-delay: 0.11s; }
main > section:nth-of-type(5) { animation-delay: 0.14s; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  header nav {
    padding: 10px 16px;
  }
  header nav ul {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
  }
  header nav ul::-webkit-scrollbar {
    display: none;
  }
  header nav ul li a {
    white-space: nowrap;
  }
  main {
    padding: 0 16px 32px;
  }
  main > section {
    padding: 24px 20px;
  }
  #hero {
    padding: 42px 26px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  header nav {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  header nav > a {
    justify-content: center;
    font-size: 1.05rem;
  }
  header nav ul {
    justify-content: flex-start;
  }
  main > section {
    margin-top: 18px;
    padding: 20px 16px;
    border-radius: var(--radius);
  }
  #hero {
    padding: 34px 20px;
    border-radius: var(--radius-lg);
  }
  #hero h1 {
    max-width: none;
  }
  main > section > h3 {
    margin-top: 20px;
    padding-top: 12px;
  }
  main > section article {
    padding: 16px;
  }
  #sitemap ul,
  #links ul {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  #faq h3 {
    padding: 12px 14px 12px 42px;
    font-size: 0.95rem;
  }
  #faq h3 + p {
    padding: 12px 14px 14px 42px;
  }
  footer {
    padding: 32px 14px 24px;
  }
  footer section {
    padding: 16px 16px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.6rem;
  }
  h2 {
    font-size: 1.2rem;
    padding-left: 14px;
  }
  h2::before {
    width: 4px;
  }
  #hero p {
    font-size: 0.94rem;
  }
  main > section article a {
    padding: 5px 12px;
    font-size: 0.84rem;
  }
  #sitemap ul,
  #links ul {
    grid-template-columns: 1fr 1fr;
  }
}

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

@media print {
  header,
  footer,
  main > nav[aria-label="面包屑导航"] {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
  main > section {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
}