/* shared.css - Shared styles for blog pages */
:root {
  --primary: #0d3b6e;
  --primary-light: #1a5fa8;
  --primary-dark: #082a50;
  --accent: #c9a227;
  --accent-light: #e8c04a;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface2: #f0f4f8;
  --text: #1a202c;
  --text2: #4a5568;
  --text3: #718096;
  --border: rgba(13,59,110,0.12);
  --border2: rgba(13,59,110,0.2);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow: 0 2px 16px rgba(13,59,110,0.08);
  --shadow-md: 0 4px 24px rgba(13,59,110,0.12);
}
[data-theme="dark"] {
  --primary: #4a9edd;
  --primary-light: #6ab8f5;
  --primary-dark: #2980c7;
  --accent: #e8c04a;
  --accent-light: #f5d470;
  --bg: #0f1923;
  --surface: #1a2635;
  --surface2: #243245;
  --text: #e8edf5;
  --text2: #a0aec0;
  --text3: #718096;
  --border: rgba(255,255,255,0.08);
  --border2: rgba(255,255,255,0.15);
  --shadow: 0 2px 16px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.4);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  transition: background 0.3s, color 0.3s;
}
nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #0d3b6e 0%, #1a5fa8 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}
.nav-brand-text strong { font-size: 15px; font-weight: 700; color: var(--primary); line-height: 1.2; display: block; }
.nav-brand-text span { font-size: 11px; color: var(--text3); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active { background: var(--surface2); color: var(--primary); }
.theme-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border2);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text2);
  transition: all 0.2s;
  margin-left: 8px;
}
.theme-btn:hover { background: var(--surface2); }
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 32px 20px;
  margin-top: 20px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.footer-logo { font-size: 16px; font-weight: 700; color: var(--primary); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--text3); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary-light); }
.footer-disclaimer { font-size: 12px; color: var(--text3); max-width: 600px; line-height: 1.5; }
.footer-copy { font-size: 12px; color: var(--text3); }
