:root {
  --bg: #0b0d12;
  --panel: #12161f;
  --text: #e9edf5;
  --muted: #9aa4b8;
  --accent: #5b8cff;
  --border: #222a3a;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 860px; margin: 0 auto; padding: 32px 20px 96px; }

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(11, 13, 18, 0.92);
  backdrop-filter: blur(8px);
  z-index: 20;
}

header.site .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

header.site .brand img { width: 28px; height: 28px; border-radius: 8px; }

nav.site a { margin-left: 16px; font-size: 14px; color: var(--muted); }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--text); }

h1 { font-size: 30px; line-height: 1.3; margin: 24px 0 8px; }
h2 { font-size: 20px; margin: 32px 0 10px; }
h3 { font-size: 16px; margin: 22px 0 8px; }

p, li { color: var(--text); }
.muted { color: var(--muted); }
.meta { color: var(--muted); font-size: 13px; margin-bottom: 24px; }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 18px 0;
}

ul, ol { padding-left: 22px; }
li { margin: 6px 0; }

table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
th, td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: #171d28; }

footer.site {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 22px 20px;
  color: var(--muted);
  font-size: 13px;
}

footer.site .links { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 10px; }

/* 落地页内嵌法律页脚 */
.site-legal {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 24px 20px 96px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  background: var(--bg);
}

.site-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.site-legal-links a { color: var(--muted); }
.site-legal-links a:hover { color: var(--text); }
.site-legal-copy { color: var(--muted); }
.site-legal-copy a { color: var(--muted); }

.lang-switch { font-size: 13px; color: var(--muted); }
.lang-switch a { margin-left: 8px; }

/* Cookie banner */
#cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #0f141d;
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  display: none;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.45);
}

#cookie-consent[data-open="true"] { display: block; }

#cookie-consent .inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

#cookie-consent p {
  margin: 0;
  flex: 1 1 520px;
  font-size: 14px;
  color: #cfd6e4;
}

#cookie-consent .actions { display: flex; gap: 10px; flex-wrap: wrap; }

#cookie-consent button {
  border: 1px solid var(--border);
  background: #1a2130;
  color: var(--text);
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
}

#cookie-consent button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

#cookie-consent button:hover { filter: brightness(1.1); }

@media (max-width: 560px) {
  h1 { font-size: 24px; }
  header.site { flex-direction: column; align-items: flex-start; }
  nav.site a { margin-left: 0; margin-right: 14px; }
}
