:root {
  --brand: #1a7f5a;
  --brand-2: #2fa87a;
  --brand-3: #57d3a3;
  --brand-light: #7ee0bb;
  --bg: #f5f9f7;
  --bg-soft: #ebf4f0;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --text: #16241f;
  --text-soft: #4a5c55;
  --text-muted: #6f8079;
  --border: rgba(26, 127, 90, 0.14);
  --shadow-sm: 0 2px 8px rgba(18, 60, 45, 0.06);
  --shadow-md: 0 10px 30px rgba(18, 60, 45, 0.1);
  --shadow-lg: 0 20px 50px rgba(18, 60, 45, 0.16);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --accent: #ff8a5c;
  --accent-2: #ffd166;
  --header-h: 68px;
  --max-w: 1200px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1512;
    --bg-soft: #101c17;
    --surface: #14211c;
    --surface-glass: rgba(20, 33, 28, 0.7);
    --text: #e8f2ed;
    --text-soft: #b4c6be;
    --text-muted: #8ba39a;
    --border: rgba(126, 224, 187, 0.16);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
  }
}

*,
*::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: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 12% 0%, rgba(47, 168, 122, 0.1), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(126, 224, 187, 0.12), transparent 40%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1 {
  font-size: clamp(1.7rem, 4.4vw, 2.9rem);
  letter-spacing: -0.02em;
}

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

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

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

h4 {
  font-size: 1.02rem;
  color: var(--brand);
}

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

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

li {
  margin-bottom: 0.45em;
}

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

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

blockquote p {
  margin: 0;
  font-style: italic;
}

figure {
  margin: 1.6em 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  line-height: 0;
}

section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(2.4rem, 5vw, 4rem) clamp(1rem, 4vw, 2.5rem);
  background: var(--surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-top: clamp(1.2rem, 3vw, 2rem);
  margin-bottom: clamp(1.2rem, 3vw, 2rem);
  animation: fadeUp 0.7s var(--ease) both;
}

section:nth-of-type(even) {
  background: linear-gradient(160deg, var(--surface-glass), rgba(47, 168, 122, 0.06));
}

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

#hero {
  position: relative;
  max-width: 100%;
  margin: 0;
  border-radius: 0;
  border: none;
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2.5rem);
  background: linear-gradient(135deg, #1a7f5a 0%, #2fa87a 38%, #57d3a3 72%, #7ee0bb 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

#hero::after {
  content: "";
  position: absolute;
  inset: auto auto -45% -12%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.22), transparent 70%);
  pointer-events: none;
  animation: floatBlob 18s ease-in-out infinite reverse;
}

@keyframes floatBlob {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-30px, 26px) scale(1.08);
  }
}

#hero > * {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

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

#hero h1::after {
  display: none;
}

#hero p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 880px;
}

#hero figure {
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.24);
  transition: transform 0.5s var(--ease);
}

#hero figure:hover {
  transform: translateY(-6px) scale(1.01);
}

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

header > div {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.55rem clamp(1rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

header > div > a {
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: var(--brand);
  white-space: nowrap;
  padding: 0.4rem 0.2rem;
  position: relative;
}

header > div > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-3));
  transition: width 0.35s var(--ease);
}

header > div > a:hover::after {
  width: 100%;
}

header nav {
  flex: 1 1 auto;
  min-width: 0;
}

header nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

header nav ul::-webkit-scrollbar {
  height: 4px;
}

header nav ul::-webkit-scrollbar-thumb {
  background: var(--brand-3);
  border-radius: 4px;
}

header nav li {
  margin: 0;
  flex: 0 0 auto;
}

header nav a {
  display: inline-block;
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--text-soft);
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

header nav a:hover {
  background: rgba(47, 168, 122, 0.14);
  color: var(--brand);
  transform: translateY(-1px);
}

main {
  display: block;
  padding-bottom: 1rem;
}

article {
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  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);
}

article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(47, 168, 122, 0.4);
}

article h3 {
  margin-bottom: 0.4em;
}

article p:first-of-type {
  font-size: 0.9rem;
  color: var(--text-muted);
}

article a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(47, 168, 122, 0.12);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

article a:hover {
  background: var(--brand);
  color: #fff;
  transform: translateX(3px);
}

#reviews blockquote {
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

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

#faq h3 {
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.4rem;
  background: linear-gradient(90deg, rgba(47, 168, 122, 0.12), transparent);
  border-left: 3px solid var(--brand-2);
  border-radius: var(--radius-sm);
  font-size: 1.02rem;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

#faq h3:hover {
  background: linear-gradient(90deg, rgba(47, 168, 122, 0.22), transparent);
  transform: translateX(4px);
}

#faq p {
  padding-left: 1.2rem;
  margin-bottom: 1.4rem;
}

#contact ul,
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.6rem;
}

#contact li,
#sitemap li,
#links li {
  margin: 0;
  padding: 0.7rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#contact li:hover,
#sitemap li:hover,
#links li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(47, 168, 122, 0.45);
}

#sitemap a,
#links a {
  display: block;
  font-weight: 500;
}

#sitemap a::before {
  content: "▸ ";
  color: var(--brand-2);
  font-weight: 700;
}

#legal h3 {
  margin-top: 1.2em;
}

#howto h4 {
  padding: 0.5rem 0.9rem;
  background: rgba(47, 168, 122, 0.1);
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 0.5em;
}

footer {
  margin-top: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 4vw, 2.5rem);
  background: linear-gradient(160deg, #123a2c, #0d2a20);
  color: rgba(232, 242, 237, 0.85);
  text-align: center;
  border-top: 1px solid rgba(126, 224, 187, 0.2);
}

footer p {
  max-width: var(--max-w);
  margin: 0 auto 0.7em;
  color: rgba(232, 242, 237, 0.72);
  font-size: 0.9rem;
}

footer nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.2rem;
  list-style: none;
  padding: 0;
  margin: 1rem auto 0;
  max-width: var(--max-w);
}

footer nav li {
  margin: 0;
}

footer nav a {
  color: rgba(232, 242, 237, 0.8);
  font-size: 0.9rem;
  padding: 0.3rem 0.4rem;
  border-radius: 6px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

footer nav a:hover {
  color: #fff;
  background: rgba(126, 224, 187, 0.18);
}

::selection {
  background: var(--brand-3);
  color: #0d2a20;
}

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

@media (max-width: 900px) {
  :root {
    --header-h: 60px;
  }

  header > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  header nav {
    width: 100%;
  }

  header nav ul {
    padding-bottom: 0.3rem;
  }

  section {
    border-radius: var(--radius);
    margin-left: 0.6rem;
    margin-right: 0.6rem;
  }

  #hero {
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
    line-height: 1.7;
  }

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

  section {
    padding: 1.8rem 1.1rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }

  article {
    padding: 1.1rem 1.1rem;
  }

  blockquote {
    padding: 0.9rem 1rem;
  }

  #contact ul,
  #sitemap ul,
  #links ul {
    grid-template-columns: 1fr;
  }

  header nav a {
    font-size: 0.82rem;
    padding: 0.4rem 0.6rem;
  }

  #hero figure {
    border-radius: var(--radius);
  }
}

@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,
  #hero::before,
  #hero::after {
    display: none;
  }

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

  section {
    box-shadow: none;
    border: 1px solid #ccc;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}