:root {
  --ink: #1d2528;
  --muted: #657174;
  --line: #dfe7e4;
  --paper: #f7faf8;
  --panel: #ffffff;
  --green: #0f7b5f;
  --green-dark: #085942;
  --gold: #c69033;
  --red: #b5473f;
  --shadow: 0 20px 60px rgba(27, 45, 42, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; border-radius: 6px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 250, 248, .90);
  border-bottom: 1px solid rgba(223, 231, 228, .78);
  backdrop-filter: blur(18px);
}
.topbar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: stretch;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: 262px;
  min-height: 58px;
  padding: 7px 10px;
  border: 1px solid rgba(223, 231, 228, .72);
  border-radius: 8px;
  background: rgba(255, 255, 255, .76);
}
.brand-logo { display: block; border-radius: 0; }
.primary-nav {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  border: 1px solid rgba(223, 231, 228, .86);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 12px 34px rgba(20, 46, 39, .06);
}
.nav-scroll {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px;
}
.nav-home,
.nav-group {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #e5eee9;
  border-radius: 8px;
  background: #fbfdfc;
  white-space: nowrap;
}
.nav-home {
  padding: 0 15px;
  color: var(--green-dark);
  font-weight: 800;
}
.nav-label {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-right: 1px solid #e5eee9;
  color: var(--muted);
  background: #f0f7f3;
  font-size: 12px;
  font-weight: 700;
}
.nav-items { display: inline-flex; align-items: center; gap: 2px; padding: 4px; }
.nav-group a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  color: #273437;
  font-size: 14px;
  font-weight: 600;
}
.nav-home:hover,
.nav-home[aria-current="page"],
.nav-group a:hover,
.nav-group a[aria-current="page"] {
  background: var(--green);
  color: #fff;
}
main { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.site-footer {
  margin-top: 64px;
  background: #17211f;
  color: #edf4f1;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 32px;
}
.footer-inner p { margin: 4px 0 0; color: #b9c7c2; }
.footer-links { display: flex; gap: 16px; align-items: start; }
.footer-links a { color: #edf4f1; }
.copyright { grid-column: 1 / -1; font-size: 13px; }
.gotop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  cursor: pointer;
}
.gotop.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
@media (max-width: 760px) {
  .topbar { align-items: flex-start; flex-direction: column; gap: 10px; padding: 10px 14px; }
  .brand { width: 100%; }
  .primary-nav { width: 100%; overflow: hidden; }
  .nav-scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 10px; }
  .nav-scroll::-webkit-scrollbar { height: 6px; }
  .nav-scroll::-webkit-scrollbar-thumb { background: #c7d8d1; border-radius: 999px; }
  .nav-group { flex: 0 0 auto; }
  .footer-inner { grid-template-columns: 1fr; }
}
