:root {
  --bg-primary: #0a0c10;
  --bg-secondary: #12161f;
  --bg-card: rgba(22, 27, 34, 0.75);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.25);
  --text-primary: #f0f6fc;
  --text-secondary: #8b949e;
  --text-muted: #6e7681;
  --accent-gold: #e5b869;
  --accent-gold-glow: rgba(229, 184, 105, 0.25);
  --accent-blue: #58a6ff;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "New York", "Songti SC", "SimSun", "Noto Serif CJK SC", serif;
  --max-w: 860px;
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Background Atmosphere Glow */
body::before {
  content: "";
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle, rgba(229, 184, 105, 0.08) 0%, rgba(88, 166, 255, 0.04) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Header & Nav */
header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 12, 16, 0.85);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.15rem;
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #e5b869, #996f2d);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0c10;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px var(--accent-gold-glow);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

/* Main Container */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
  position: relative;
  z-index: 1;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 2.5rem 0 3.5rem;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: rgba(229, 184, 105, 0.12);
  border: 1px solid rgba(229, 184, 105, 0.3);
  border-radius: 999px;
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

h1 {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 2rem;
}

/* Feature Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.5rem;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
}

.card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* Document & Legal Content Section */
.doc-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.doc-meta span strong {
  color: var(--text-secondary);
}

/* Language Toggle Tabs */
.lang-switch {
  display: flex;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 2rem;
  width: fit-content;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.4rem 1.2rem;
  border-radius: 7px;
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.15s ease;
}

.lang-btn.active {
  background: rgba(229, 184, 105, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(229, 184, 105, 0.3);
}

/* Legal Content Typography */
.content-body section {
  margin-bottom: 2.5rem;
}

.content-body h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}

.content-body h3 {
  font-size: 1.18rem;
  font-weight: 600;
  margin: 1.5rem 0 0.6rem;
  color: var(--accent-gold);
}

.content-body p {
  color: #d1d5db;
  margin-bottom: 1rem;
  font-size: 0.98rem;
}

.content-body ul,
.content-body ol {
  margin-left: 1.4rem;
  margin-bottom: 1.2rem;
  color: #d1d5db;
}

.content-body li {
  margin-bottom: 0.5rem;
}

.content-body blockquote {
  border-left: 3px solid var(--accent-gold);
  padding: 0.8rem 1.2rem;
  background: rgba(229, 184, 105, 0.05);
  border-radius: 0 8px 8px 0;
  margin: 1.2rem 0;
  font-style: italic;
  color: #e2e8f0;
}

/* Contact Box */
.contact-box {
  background: linear-gradient(135deg, rgba(22, 27, 34, 0.9), rgba(18, 22, 31, 0.9));
  border: 1px solid rgba(229, 184, 105, 0.25);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  margin-top: 3rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.contact-box h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.contact-box p {
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(229, 184, 105, 0.15);
  color: var(--accent-gold);
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  border: 1px solid rgba(229, 184, 105, 0.3);
  transition: all 0.2s ease;
}

.email-link:hover {
  background: rgba(229, 184, 105, 0.25);
  transform: scale(1.02);
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  position: relative;
  z-index: 1;
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
  margin: 0 0.6rem;
  transition: color 0.15s ease;
}

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

.footer-copy {
  margin-top: 0.8rem;
}

@media (max-width: 640px) {
  h1 { font-size: 1.85rem; }
  .grid { grid-template-columns: 1fr; }
  .nav-links { gap: 1rem; }
}
