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

:root {
  --orange: #FF6B35;
  --orange-light: #FFF4F0;
  --text: #1a1a1a;
  --text-secondary: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-subtle: #f9fafb;
  --radius: 8px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

.logo-icon { font-size: 1.3rem; }
.logo-zh { color: var(--orange); }

.site-nav { display: flex; gap: 4px; }

.nav-link {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s;
}

.nav-link:hover { color: var(--text); background: var(--bg-subtle); }
.nav-link.active { color: var(--orange); background: var(--orange-light); }

.site-main {
  padding: 48px 0 80px;
  min-height: calc(100vh - 60px - 72px);
}

.doc-meta {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.content h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--orange-light);
  color: var(--text);
}

.content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--text);
}

.content p { margin-bottom: 16px; color: #374151; }

.content ul, .content ol { margin: 12px 0 16px 20px; }
.content li { margin-bottom: 6px; color: #374151; }
.content li::marker { color: var(--orange); }

.content strong { font-weight: 600; color: var(--text); }

.content a {
  color: var(--orange);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.content a:hover { border-color: var(--orange); }

.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.content thead { background: var(--bg-subtle); }
.content th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.content tr:last-child td { border-bottom: none; }
.content tbody tr:hover { background: var(--bg-subtle); }

.content blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  background: var(--orange-light);
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #7c2d12;
  font-size: 0.9375rem;
}

.content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

.site-footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  padding: 20px 0;
}

.site-footer p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-align: center;
}

.site-footer a { color: var(--orange); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .site-header .container { flex-direction: column; height: auto; padding: 12px 16px; gap: 10px; }
  .site-main { padding: 32px 0 60px; }
  .content h1 { font-size: 1.5rem; }
  .content h2 { font-size: 1.1rem; }
  .content th, .content td { padding: 8px 10px; }
}
