:root {
  --bg: #fcfcfc;
  --bg-elevated: #ffffff;
  --bg-soft: #f5f5f0;
  --border-subtle: #e2e2e0;
  --accent: #2c5f8a;
  --accent-light: #3e7b9e;
  --text-main: #1e2a3a;
  --text-muted: #4a5b6e;
  --text-soft: #6c7a89;
  --shadow-soft: 0 1px 3px rgba(0,0,0,0.05);
  --radius-md: 6px;
  --font-serif: 'Merriweather', 'Georgia', 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body[data-theme="dark"] {
  --bg: #1a1e24;
  --bg-elevated: #242a32;
  --bg-soft: #2a3038;
  --border-subtle: #3a404a;
  --accent: #7aa2c0;
  --accent-light: #8fb4d4;
  --text-main: #e8eef2;
  --text-muted: #b0bec5;
  --text-soft: #8d9aa8;
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
}

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

/* 头部 */
.site-header {
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo-visual {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.logo-subtitle {
  font-size: 0.7rem;
  color: var(--text-soft);
}

.theme-btn {
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.theme-btn:hover {
  background: var(--accent-light);
  color: white;
  border-color: var(--accent-light);
}

/* 主视觉 */
.hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-subtle);
  padding: 48px 0;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.hero .subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* 两栏布局 */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  margin: 48px 0;
}

@media (max-width: 800px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.main-section h2,
.sidebar h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.entry-card {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 20px;
}

.entry-card h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.entry-card h3 a {
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}

.entry-card h3 a:hover {
  color: var(--accent);
}

.entry-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.entry-card .meta {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.info-box {
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  padding: 20px;
  margin-bottom: 24px;
  border-radius: var(--radius-md);
}

.info-box h2 {
  font-size: 1.2rem;
  border-bottom: none;
  margin-bottom: 16px;
  padding-bottom: 0;
}

.info-box p {
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.info-box ul {
  list-style: none;
  padding-left: 0;
}

.info-box li {
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.info-box a {
  color: var(--accent);
  text-decoration: none;
}

.info-box a:hover {
  text-decoration: underline;
}

/* 页脚 */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 24px 0;
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-left {
  display: flex;
  gap: 20px;
  align-items: baseline;
}

.footer-title {
  font-weight: 500;
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero h1 {
    font-size: 2rem;
  }
}

.enter-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.enter-link:hover {
  text-decoration: underline;
}