:root {
  --bg: #f6f8f5;
  --paper: #ffffff;
  --ink: #1a2420;
  --ink-secondary: #37544c;
  --muted: #6b8a82;
  --faint: #a3bbb5;
  --brand: #668473;
  --brand-2: #91a58e;
  --brand-deep: #46654f;
  --brand-light: #e7eee4;
  --brand-surface: #f1f5ed;
  --line: #dce9e5;
  --line-light: #eaf2ef;
  --link: #46654f;
  --maxw: 1080px;
  --content-maxw: 780px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(72,136,128,.08);
  --shadow-lg: 0 12px 40px rgba(72,136,128,.10);
  --nav-h: 60px;
  --transition: .2s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }

body {
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue",
    "Noto Sans SC", "PingFang SC", sans-serif;
  line-height: 1.7;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand); }

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


.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(247,250,249,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-light);
}

.navbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-deep);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -.01em;
}

.navbar-brand svg {
  width: 28px;
  height: 28px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.navbar-links a {
  color: var(--ink-secondary);
  font-size: .9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all var(--transition);
  text-decoration: none;
}

.navbar-links a:hover,
.navbar-links a.active {
  background: var(--brand-light);
  color: var(--brand-deep);
}

.lang-switch {
  display: flex;
  gap: 2px;
  background: var(--line-light);
  border-radius: 8px;
  padding: 3px;
}
.lang-switch.dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0;
  flex: 0 0 auto;
}

.lang-switch.dropdown select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  color: var(--brand-deep);
  padding: 4px 28px 4px 12px;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  border-radius: 8px;
  width: 138px;
  max-width: 34vw;
}

.lang-switch.dropdown::after {
  content: "";
  position: absolute;
  right: 12px;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid var(--brand-deep);
  border-bottom: 1.5px solid var(--brand-deep);
  transform: rotate(45deg) translateY(-1px);
  pointer-events: none;
}


.page-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}


.hero-landing {
  padding: 80px 0 64px;
  text-align: center;
}

.hero-landing .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-light);
  color: var(--brand-deep);
  font-size: .82rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
  letter-spacing: .02em;
}

.hero-landing h1 {
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.025em;
  margin-bottom: 16px;
}

.hero-landing h1 .brand-text {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-landing .hero-desc {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-deep);
  color: #fff;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(72,136,128,.2);
}

.btn-primary:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(72,136,128,.28);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  color: var(--brand-deep);
  border: 1px solid var(--line);
  padding: 12px 28px;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}

.btn-secondary:hover {
  border-color: var(--brand);
  background: var(--brand-light);
  transform: translateY(-1px);
}


.features-section {
  padding: 48px 0 64px;
}

.section-label {
  text-align: center;
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--brand);
  margin-bottom: 12px;
}

.section-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 48px;
  letter-spacing: -.015em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--line);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.feature-icon svg {
  color: var(--brand-deep);
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.6;
}

.article-hero {
  padding: 56px 0 32px;
  text-align: center;
  border-bottom: 1px solid var(--line-light);
  margin-bottom: 40px;
}

.article-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 750;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -.02em;
}

.article-hero .article-subtitle {
  font-size: 1rem;
  color: var(--muted);
}

.article-content {
  max-width: var(--content-maxw);
  margin: 0 auto;
  padding-bottom: 64px;
}

.article-card {
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 36px 32px;
  margin-bottom: 24px;
}

.article-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-light);
}

.article-card h3 {
  font-size: 1rem;
  font-weight: 650;
  color: var(--ink-secondary);
  margin: 24px 0 8px;
}

.article-card h3:first-child { margin-top: 0; }

.article-card p {
  font-size: .94rem;
  color: var(--ink-secondary);
  margin-bottom: 12px;
  line-height: 1.75;
}

.article-card ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.article-card li {
  font-size: .94rem;
  color: var(--ink-secondary);
  margin-bottom: 6px;
  line-height: 1.7;
}

.article-card li::marker {
  color: var(--brand);
}

.article-card strong {
  color: var(--ink);
  font-weight: 600;
}

.article-card a {
  color: var(--brand-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
}

.article-card a:hover {
  text-decoration-color: var(--brand);
}


.kvs { list-style: none; padding: 0; }
.kvs li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line-light);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.kvs li:last-child { border-bottom: none; }
.kvs strong { min-width: 80px; flex-shrink: 0; color: var(--ink); font-weight: 600; font-size: .9rem; }
.kvs a { font-size: .9rem; }

.note-box {
  margin-top: 16px;
  border-left: 3px solid var(--brand-2);
  background: var(--brand-surface);
  padding: 14px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .9rem;
  color: var(--ink-secondary);
  line-height: 1.65;
}


.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}


.site-footer {
  border-top: 1px solid var(--line-light);
  padding: 32px 0;
  margin-top: 0;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  font-size: .85rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  font-size: .85rem;
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover { color: var(--brand-deep); }


.divider {
  width: 100%;
  height: 1px;
  background: var(--line-light);
  margin: 48px 0;
}


[lang="zh"] { display: none !important; }
body.zh [lang="zh"] { display: block !important; }
body.zh [lang="en"] { display: none !important; }


body.zh span[lang="en"] { display: none !important; }
span[lang="zh"] { display: none !important; }
body.zh span[lang="zh"] { display: inline !important; }


body.zh .hero-badge[lang="zh"] { display: inline-flex !important; }
body.zh .hero-actions[lang="zh"] { display: flex !important; }

.navbar { height: auto; min-height: var(--nav-h); background: var(--bg); }
.navbar-inner { min-height: var(--nav-h); gap: 12px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.navbar-brand { white-space: nowrap; }
.navbar-brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.navbar-links { flex-wrap: wrap; gap: 4px; }
.navbar-links a { display: inline-block; padding: 6px 10px; }
.lang-switch.dropdown select { min-height: 36px; }
.hero-icon { width: 120px; height: 120px; margin: 0 auto 28px; border-radius: 28px; box-shadow: var(--shadow-md); }
.footer-links { flex-wrap: wrap; }
.article-card { overflow-wrap: anywhere; }
.article-card h2:not(:first-child) { margin-top: 28px; }
.article-card code { font-size: .9em; }
.article-card p:last-child { margin-bottom: 0; }
.note-box { margin-bottom: 24px; }
:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: 4px; }
@media (max-width: 768px) {
  .navbar-inner, .page-wrap, .footer-inner { padding-left: 16px; padding-right: 16px; }
  .navbar-inner { align-items: flex-start; }
  .nav-actions { justify-content: flex-end; }
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-landing { padding: 48px 0 32px; }
  .article-card { padding: 24px 20px; }
}
@media (max-width: 540px) {
  .navbar-inner { display: block; }
  .nav-actions { justify-content: flex-start; margin-top: 8px; }
  .navbar-links a { font-size: .82rem; padding: 6px 8px; }
  .lang-switch.dropdown select { width: 100px; max-width: none; }
  .features-grid { grid-template-columns: minmax(0, 1fr); }
  .features-section { padding-top: 28px; }
  .section-title { margin-bottom: 24px; }
  .article-hero { padding: 36px 0 24px; margin-bottom: 24px; }
  .kvs li { flex-wrap: wrap; gap: 4px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .feature-card:hover, .btn-primary:hover, .btn-secondary:hover { transform: none; }
}
