:root {
  color-scheme: light;
  --bg: #f7f0e6;
  --paper: #fffdf8;
  --paper-soft: #fbf6ee;
  --ink: #332b24;
  --muted: #7b6f64;
  --line: #e5d8c8;
  --accent: #9b6b43;
  --accent-soft: #ead8c4;
  --shadow: 0 22px 50px rgba(92, 67, 43, 0.11);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(235, 215, 190, 0.55), transparent 34rem),
    linear-gradient(180deg, #faf4ea 0%, var(--bg) 46%, #f2e6d7 100%);
  font-family: "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  line-height: 1.8;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: linear-gradient(rgba(90, 66, 43, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(90, 66, 43, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
}

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

.site-header {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.brand {
  font-size: 1.25rem;
  letter-spacing: 0.18em;
  font-weight: 700;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.home-shell, .page-shell, .article-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.simple-hero {
  margin: 42px 0 34px;
  padding: clamp(34px, 6vw, 72px);
  background: rgba(255, 253, 248, 0.76);
  border: 1px solid rgba(229, 216, 200, 0.9);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

h1, h2 { line-height: 1.35; margin: 0; }

.simple-hero h1 {
  max-width: 840px;
  font-size: clamp(2.1rem, 6vw, 4.8rem);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.intro, .page-title p, .lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.06rem;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 72px;
}

.section-card {
  min-height: 270px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(92, 67, 43, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.section-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(92, 67, 43, 0.13);
}

.section-index {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
}

.section-card h2 { margin-top: 30px; font-size: 1.45rem; }
.section-card p { color: var(--muted); margin: 18px 0 0; }
.section-card em { color: #9d8a78; margin-top: auto; font-size: 0.92rem; font-style: normal; }

.breadcrumb {
  margin: 36px 0 20px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  font-size: 0.95rem;
}

.page-title {
  padding: 42px 0 28px;
  border-bottom: 1px solid var(--line);
}

.page-title h1 {
  max-width: 820px;
  font-size: clamp(2rem, 5vw, 3.9rem);
  font-weight: 500;
}

.entry-list {
  margin: 30px 0 72px;
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--line);
}

.entry-row {
  padding: 28px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.entry-row:last-child { border-bottom: 0; }
.entry-row time, .article-paper time { color: var(--accent); font-size: 0.92rem; }
.entry-row h2 { margin: 8px 0; font-size: 1.35rem; }
.entry-row p { margin: 0; color: var(--muted); }
.read-link { align-self: center; white-space: nowrap; color: var(--accent); }

.article-paper {
  margin: 28px auto 76px;
  max-width: 820px;
  padding: clamp(30px, 6vw, 68px);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.article-paper h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 500;
}

.article-paper h2 {
  margin-top: 42px;
  font-size: 1.45rem;
}

.article-paper p { margin: 20px 0; }
.article-paper blockquote {
  margin: 30px 0;
  padding: 20px 24px;
  background: var(--paper-soft);
  border-left: 4px solid var(--accent-soft);
  color: #5d5045;
}

.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 44px;
  color: var(--muted);
  border-top: 1px solid rgba(229, 216, 200, 0.75);
  position: relative;
  z-index: 1;
}

@media (max-width: 980px) {
  .section-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header { align-items: flex-start; flex-direction: column; }
  .top-nav { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .section-grid { grid-template-columns: 1fr; }
  .entry-row { flex-direction: column; }
  .read-link { align-self: flex-start; }
  .home-shell, .page-shell, .article-shell, .site-header, .site-footer { width: min(100% - 28px, 1120px); }
}

/* 同步状态页面样式 */
.sync-status {
  margin: 30px 0;
  padding: 24px;
  border-radius: 6px;
}

.sync-status.status-ok {
  background-color: #f0f8f0;
  border: 1px solid #a5e9a5;
}

.sync-status.status-error {
  background-color: #fff0f0;
  border: 1px solid #ffaaaa;
}

.sync-status .status-badge {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 16px;
}

.sync-status.status-ok .status-badge {
  color: #2e7d32;
}

.sync-status.status-error .status-badge {
  color: #c62828;
}

.sync-info {
  margin-top: 30px;
}

.sync-info h2 {
  font-size: 1.3rem;
  margin-top: 24px;
  margin-bottom: 12px;
}

.sync-info code {
  background: var(--paper-soft);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: monospace;
  display: inline-block;
}


/* ICP filing number */
.site-footer .beian {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  opacity: 0.85;
}
.site-footer .beian a {
  color: inherit;
  text-decoration: none;
}
.site-footer .beian a:hover {
  text-decoration: underline;
}


/* 备案悬挂：公安 + ICP + 图标 */
.site-footer .beian {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 32px;
}
.site-footer .beian a {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.site-footer .beian a.jgawb .beian-icon {
  width: auto;
  height: 1em;
  margin-right: 4px;
  vertical-align: middle;
}
.site-footer .beian a:hover {
  text-decoration: underline;
}

/* 首页最近更新 */
.recent-updates {
  margin: 0 0 72px;
}

.recent-updates .eyebrow {
  margin: 0 0 18px;
  font-size: 0.9rem;
  letter-spacing: 0.28em;
  padding-left: 4px;
}

.recent-updates .entry-list {
  margin: 0;
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(92, 67, 43, 0.06);
}

/* 最近更新列表 */
.recent-updates {
  margin: 0 0 72px;
  padding: 28px;
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--line);
}

.recent-updates-title {
  margin: 0 0 20px;
  font-size: 1.45rem;
  color: var(--accent);
}

.recent-updates-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-update-item {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.recent-update-item:last-child {
  border-bottom: none;
}

.recent-update-item time {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 0.92rem;
  min-width: 88px;
}

.recent-update-item a {
  flex: 1 1 auto;
  color: var(--ink);
  text-decoration: none;
}

.recent-update-item a:hover {
  color: var(--accent);
}

@media (max-width: 640px) {
  .recent-update-item {
    flex-direction: column;
    gap: 6px;
  }
  .recent-update-item time {
    min-width: auto;
  }
}
