:root {
  --ink: #15202b;
  --muted: #5e6c79;
  --line: rgba(28, 52, 76, 0.12);
  --paper: #f7f9f8;
  --card-bg: rgba(255, 255, 255, 0.78);
  --card-solid: #ffffff;
  --accent: #1e6e62;
  --accent-hover: #16554b;
  --accent-light: #e5f1ed;
  --accent-subtle: #f0f7f5;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(21, 32, 43, 0.04);
  --shadow-md: 0 8px 24px rgba(21, 32, 43, 0.06);
  --max-width: 1140px;
}

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ================= Header & Navigation ================= */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 249, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-container {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 36px;
  height: 36px;
  position: relative;
  border-radius: 10px 10px 10px 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  left: 50%;
  top: 50%;
  border: 2px solid #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1.25;
}

.brand-tagline {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-cta {
  padding: 8px 18px;
  border-radius: 20px;
  background: var(--accent);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.1s ease;
}

.nav-cta:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: 0.3s;
}

/* ================= Base Layout & Typography ================= */
main {
  flex: 1;
}

.container {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
}

.serif-title {
  font-family: "Songti SC", STSong, "Noto Serif SC", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: currentColor;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px;
}

.section-head h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  margin: 14px 0 16px;
}

.section-head p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

/* ================= Buttons ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(30, 110, 98, 0.25);
}

.btn-outline {
  border-color: var(--line);
  color: var(--accent);
  background: transparent;
}

.btn-outline:hover {
  background: var(--accent-light);
  border-color: #a8c9c0;
}

/* ================= Cards & Panels ================= */
.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(30, 110, 98, 0.3);
  background: var(--card-solid);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.card h3 {
  font-size: 19px;
  margin-bottom: 12px;
  font-weight: 600;
}

.card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}

/* ================= Footer ================= */
footer {
  background: #ffffff;
  border-top: 1px solid var(--line);
  margin-top: 80px;
}

.footer-top {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 44px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 48px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--ink);
  letter-spacing: 0.03em;
}

.footer-col p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 11px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.2s ease;
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 10px;
  line-height: 1.6;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item a {
  color: var(--accent);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}

.footer-bottom-inner {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: var(--muted);
}

.footer-legal-inline {
  display: flex;
  gap: 20px;
}

.footer-legal-inline a {
  color: var(--muted);
  text-decoration: none;
}

.footer-legal-inline a:hover {
  color: var(--accent);
}

/* ================= Legal Content Pages ================= */
.legal-hero {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--paper) 0%, #ffffff 100%);
}

.legal-hero h1 {
  font-size: clamp(30px, 4vw, 42px);
  margin: 12px 0;
}

.legal-meta {
  color: var(--muted);
  font-size: 13.5px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  padding: 56px 0 88px;
}

.legal-sidebar {
  position: sticky;
  top: 108px;
  align-self: start;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
}

.legal-sidebar h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.05em;
  color: var(--accent);
  text-transform: uppercase;
}

.legal-nav {
  list-style: none;
}

.legal-nav li {
  margin-bottom: 10px;
}

.legal-nav a {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.legal-nav a:hover,
.legal-nav a.active {
  color: var(--accent);
  background: var(--accent-light);
  font-weight: 500;
}

.legal-article {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 48px 52px;
}

.legal-article h2 {
  font-size: 22px;
  margin: 36px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.legal-article h2:first-of-type {
  margin-top: 0;
}

.legal-article h3 {
  font-size: 17px;
  margin: 22px 0 12px;
  color: #273746;
}

.legal-article p {
  color: #3e4c59;
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 16px;
}

.legal-article ul,
.legal-article ol {
  margin: 14px 0 20px 24px;
  color: #3e4c59;
  font-size: 15px;
  line-height: 1.85;
}

.legal-article li {
  margin-bottom: 8px;
}

.legal-callout {
  background: var(--accent-subtle);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  font-size: 14.5px;
  color: #2c4a43;
  line-height: 1.8;
}

/* ================= Responsive ================= */
@media (max-width: 960px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .legal-sidebar {
    position: static;
  }

  .legal-article {
    padding: 32px 24px;
  }
}

@media (max-width: 768px) {
  .nav-container {
    height: 72px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  nav.mobile-active .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    padding: 24px;
    gap: 18px;
    box-shadow: var(--shadow-md);
  }

  .footer-top {
    grid-template-columns: 1fr;
    padding: 44px 0 28px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}
