:root {
  --primary: #1a6b3c;
  --primary-light: #2e8b57;
  --primary-dark: #0f4a28;
  --accent: #f2c94c;
  --accent-light: #f7dc6f;
  --secondary: #7cc47f;
  --bg: #f5f8f5;
  --bg-alt: #eef4ee;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --surface-glass-hover: rgba(255, 255, 255, 0.88);
  --text: #1a2e1a;
  --text-secondary: #4a5e4a;
  --text-muted: #7a8e7a;
  --border: rgba(26, 107, 60, 0.12);
  --shadow-sm: 0 2px 8px rgba(26, 107, 60, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 107, 60, 0.1);
  --shadow-lg: 0 16px 48px rgba(26, 107, 60, 0.14);
  --shadow-glow: 0 0 40px rgba(124, 196, 127, 0.3);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --header-height: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #4ade80;
    --primary-light: #6ee7a0;
    --primary-dark: #22c55e;
    --accent: #fbbf24;
    --accent-light: #fcd34d;
    --secondary: #86efac;
    --bg: #0a0f0a;
    --bg-alt: #111811;
    --surface: #1a241a;
    --surface-glass: rgba(26, 36, 26, 0.78);
    --surface-glass-hover: rgba(26, 36, 26, 0.92);
    --text: #e8f0e8;
    --text-secondary: #a8c0a8;
    --text-muted: #6a806a;
    --border: rgba(74, 222, 128, 0.15);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(74, 222, 128, 0.2);
  }
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 0% 0%, rgba(124, 196, 127, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(242, 201, 76, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

a:hover {
  color: var(--primary-light);
}

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

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
}

h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.6rem;
}

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

section:hover > h2::after {
  width: 96px;
}

h3 {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--primary-dark);
}

@media (prefers-color-scheme: dark) {
  h3 {
    color: var(--primary-light);
  }
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

blockquote {
  margin: 1.25rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

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

blockquote footer {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: normal;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

header nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
  flex-wrap: wrap;
}

header nav > a:first-child {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
  position: relative;
  padding: 0.25rem 0;
}

header nav > a:first-child::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transition: width var(--transition-base);
}

header nav > a:first-child:hover::after {
  width: 100%;
}

header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  align-items: center;
}

header nav ul li a {
  display: inline-block;
  padding: 0.4rem 0.7rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}

header nav ul li a:hover {
  color: var(--primary);
  background: rgba(124, 196, 127, 0.12);
  transform: translateY(-1px);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

section {
  margin-bottom: 2.5rem;
  padding: 1.75rem;
  background: var(--surface-glass);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base), background var(--transition-base);
  animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

section:hover {
  box-shadow: var(--shadow-md);
  background: var(--surface-glass-hover);
}

#hero {
  margin-top: 1.5rem;
  padding: 2.5rem 2rem;
  background:
    linear-gradient(135deg, rgba(26, 107, 60, 0.92) 0%, rgba(46, 139, 87, 0.88) 40%, rgba(124, 196, 127, 0.85) 70%, rgba(242, 201, 76, 0.8) 100%);
  border: none;
  color: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

#hero::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(242, 201, 76, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 10s ease-in-out infinite reverse;
}

#hero h1 {
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

#hero p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  max-width: 720px;
  position: relative;
  z-index: 1;
}

#hero p:last-of-type {
  font-weight: 600;
  color: var(--accent-light);
}

#hero figure {
  margin-top: 1.75rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 1;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

#hero figure:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

#hero figure svg {
  width: 100%;
  display: block;
}

#hero figcaption {
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  text-align: center;
}

nav[aria-label="面包屑导航"] ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.75rem 0;
}

nav[aria-label="面包屑导航"] ol li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

nav[aria-label="面包屑导航"] ol li:not(:last-child)::after {
  content: "›";
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
}

nav[aria-label="面包屑导航"] ol li a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

nav[aria-label="面包屑导航"] ol li a:hover {
  color: var(--primary);
}

nav[aria-label="站内锚点导航"] {
  padding: 1.25rem 1.5rem;
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
  animation-delay: 0.1s;
}

nav[aria-label="站内锚点导航"] ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

nav[aria-label="站内锚点导航"] ul li a {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(124, 196, 127, 0.1);
  border: 1px solid transparent;
  border-radius: 999px;
  transition: all var(--transition-fast);
}

nav[aria-label="站内锚点导航"] ul li a:hover {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 107, 60, 0.3);
}

article {
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition-base);
}

article:hover::before {
  transform: scaleY(1);
}

article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(124, 196, 127, 0.3);
}

article h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

article h3 a {
  color: inherit;
  transition: color var(--transition-fast);
}

article h3 a:hover {
  color: var(--primary);
}

article p {
  font-size: 0.925rem;
  margin-bottom: 0.5rem;
}

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

article a {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

article a:hover {
  color: var(--accent);
  transform: translateX(3px);
}

#faq h3 {
  padding: 0.85rem 1rem;
  margin-top: 0.75rem;
  margin-bottom: 0;
  background: rgba(124, 196, 127, 0.08);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border-left: 3px solid var(--primary);
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
  position: relative;
}

#faq h3:hover {
  background: rgba(124, 196, 127, 0.16);
  color: var(--primary);
}

#faq h3 + p {
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
  background: var(--surface-glass);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  border-left: 3px solid transparent;
  font-size: 0.925rem;
  transition: background var(--transition-fast);
}

#faq h3 + p:hover {
  background: var(--surface-glass-hover);
}

#howto ol {
  list-style: none;
  counter-reset: howto-counter;
  padding-left: 0;
}

#howto ol li {
  counter-increment: howto-counter;
  position: relative;
  padding: 0.65rem 0 0.65rem 2.75rem;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

#howto ol li::before {
  content: counter(howto-counter);
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 1.85rem;
  height: 1.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(26, 107, 60, 0.25);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

#howto ol li:hover {
  background: rgba(124, 196, 127, 0.08);
  transform: translateX(4px);
}

#howto ol li:hover::before {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(26, 107, 60, 0.35);
}

#contact p {
  padding: 0.4rem 0;
  margin-bottom: 0;
  font-size: 0.95rem;
  border-bottom: 1px dashed var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

#contact p:last-child {
  border-bottom: none;
}

#contact p::before {
  content: "•";
  color: var(--primary);
  font-weight: 700;
}

#team p {
  font-size: 0.925rem;
  padding: 0.3rem 0;
  margin-bottom: 0;
}

#sitemap ul,
#links ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.5rem;
}

#sitemap ul li a,
#links ul li a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  background: rgba(124, 196, 127, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 107, 60, 0.25);
}

#reviews blockquote {
  margin-bottom: 1rem;
}

#reviews blockquote:nth-child(even) {
  border-left-color: var(--accent);
}

#reviews blockquote:nth-child(even):hover {
  transform: translateX(6px);
}

footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: rgba(255, 255, 255, 0.85);
  padding: 2rem 1.25rem;
  text-align: center;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

footer p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

footer p:last-child {
  margin-bottom: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

footer a {
  color: var(--accent-light);
  font-weight: 600;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

footer a:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

#top {
  scroll-margin-top: var(--header-height);
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

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

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(20px, -20px) scale(1.05);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(124, 196, 127, 0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(124, 196, 127, 0);
  }
}

section:nth-child(1) { animation-delay: 0s; }
section:nth-child(2) { animation-delay: 0.05s; }
section:nth-child(3) { animation-delay: 0.1s; }
section:nth-child(4) { animation-delay: 0.15s; }
section:nth-child(5) { animation-delay: 0.2s; }
section:nth-child(6) { animation-delay: 0.25s; }
section:nth-child(7) { animation-delay: 0.3s; }
section:nth-child(8) { animation-delay: 0.35s; }
section:nth-child(9) { animation-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 900px) {
  header nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }

  header nav ul {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
  }

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

  header nav ul li a {
    font-size: 0.8rem;
    padding: 0.35rem 0.6rem;
  }

  #hero {
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-lg);
  }

  #hero p {
    font-size: 0.95rem;
  }

  section {
    padding: 1.25rem;
    border-radius: var(--radius-md);
  }

  h2 {
    font-size: 1.3rem;
  }

  h3 {
    font-size: 1.05rem;
  }

  nav[aria-label="站内锚点导航"] {
    padding: 1rem;
  }

  nav[aria-label="站内锚点导航"] ul li a {
    font-size: 0.78rem;
    padding: 0.3rem 0.65rem;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}

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

  main {
    padding: 0 0.75rem 2rem;
  }

  #hero {
    padding: 1.25rem 1rem;
    margin-top: 1rem;
  }

  #hero h1 {
    font-size: 1.35rem;
  }

  section {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  h2 {
    font-size: 1.15rem;
  }

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

  h3 {
    font-size: 0.98rem;
  }

  p {
    font-size: 0.9rem;
  }

  article {
    padding: 1rem;
  }

  #faq h3 {
    font-size: 0.92rem;
    padding: 0.7rem 0.85rem;
  }

  #faq h3 + p {
    font-size: 0.875rem;
    padding: 0.7rem 0.85rem;
  }

  #howto ol li {
    padding-left: 2.35rem;
    font-size: 0.875rem;
  }

  #howto ol li::before {
    width: 1.6rem;
    height: 1.6rem;
    font-size: 0.72rem;
    top: 0.6rem;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.35rem;
  }

  #sitemap ul li a,
  #links ul li a {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }

  footer {
    padding: 1.5rem 1rem;
  }
}

@media (min-width: 1200px) {
  #hero {
    padding: 3.5rem 3rem;
  }

  #hero p {
    font-size: 1.1rem;
  }

  section {
    padding: 2.25rem;
  }
}

::selection {
  background: rgba(124, 196, 127, 0.35);
  color: var(--text);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 10px;
  border: 2px solid var(--bg-alt);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary-light), var(--accent));
}

@supports not (backdrop-filter: blur(1px)) {
  header,
  section,
  article,
  blockquote,
  nav[aria-label="站内锚点导航"] {
    background: var(--surface);
  }
}