:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-softer: #fbfbfc;
  --text: #1a1d24;
  --text-2: #5a6270;
  --text-3: #9098a6;
  --border: #e8eaef;
  --accent: #2f6fd0;
  --accent-soft: #eef4fd;
  --warn: #d97a1e;
  --warn-soft: #fdf4e7;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.site-header {
  height: 64px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.header-note, .back-link { font-size: 13px; color: var(--text-2); }
.back-link:hover { color: var(--accent); }

.hero { padding: 68px 0 56px; border-bottom: 1px solid var(--border); }
.hero h1 { font-size: 40px; line-height: 1.2; margin: 0 0 16px; letter-spacing: -0.03em; font-weight: 650; }
.hero p { max-width: 680px; color: var(--text-2); font-size: 16px; margin: 0; }
.hero-stats { display: flex; gap: 40px; margin-top: 36px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat b { font-size: 26px; font-weight: 600; line-height: 1.2; }
.stat span { font-size: 12px; color: var(--text-3); margin-top: 4px; }

.list-section { padding: 48px 0 64px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.section-head h2 { font-size: 20px; margin: 0; font-weight: 600; }
.section-hint { font-size: 12px; color: var(--text-3); }

.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.post-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  background: var(--bg-softer);
  transition: border-color .16s, transform .16s;
}
.post-card:hover { border-color: #c8d4e8; transform: translateY(-2px); }
.card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.tag { font-size: 11px; color: var(--accent); background: var(--accent-soft); padding: 3px 9px; border-radius: 20px; }
.net-chip { font-size: 11px; color: var(--warn); background: var(--warn-soft); padding: 3px 9px; border-radius: 20px; }
.post-card h3 { font-size: 17px; margin: 0 0 8px; line-height: 1.45; font-weight: 600; }
.post-card p { margin: 0 0 18px; color: var(--text-2); font-size: 13px; }
.card-bottom { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); }
.net-name { color: var(--text-2); }

.config-status { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); }
.config-status h2 { font-size: 20px; margin: 0 0 6px; font-weight: 600; }
.config-status > .section-hint { display: block; margin-bottom: 20px; }
.status-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.status-card { border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.status-name { font-size: 14px; font-weight: 500; margin-bottom: 12px; }
.status-bar { height: 5px; background: var(--bg-soft); border-radius: 3px; overflow: hidden; }
.status-bar span { display: block; height: 100%; background: var(--accent); }
.status-num { font-size: 12px; color: var(--text-3); margin-top: 8px; }

.site-footer { border-top: 1px solid var(--border); padding: 28px 0; font-size: 12px; color: var(--text-3); }

.test-banner {
  display: flex; align-items: center; gap: 12px;
  background: var(--warn-soft); border: 1px solid #f3e2c4;
  border-radius: 10px; padding: 12px 16px; margin: 32px 0 28px;
  font-size: 13px;
}
.test-banner b { display: block; color: #8a5412; font-weight: 600; }
.test-banner span:not(.test-dot) { color: #a06a25; font-size: 12px; }
.test-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); flex: none; }

.post-head { margin-bottom: 28px; }
.tag-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tag-row time { font-size: 12px; color: var(--text-3); }
.post-head h1 { font-size: 34px; line-height: 1.3; margin: 0 0 12px; letter-spacing: -0.02em; font-weight: 650; }
.post-excerpt { color: var(--text-2); font-size: 16px; margin: 0; }

.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; margin-top: 28px; }
.post-body h2 { font-size: 22px; margin: 36px 0 14px; font-weight: 600; }
.post-body p { margin: 0 0 20px; color: #2c313b; }
.aside-inner { position: sticky; top: 24px; }
.aside-title { font-size: 12px; color: var(--text-3); margin-bottom: 10px; }

.ad-slot { margin: 24px 0; }
.ad-slot-label {
  font-size: 11px; color: var(--text-3); margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.ad-slot-label::before {
  content: ''; width: 12px; height: 1px; background: var(--border);
}
.ad-slot-body { min-height: 60px; }
.ad-placeholder {
  min-height: 90px; border: 1px dashed #cfd4dd; border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 13px; text-align: center; background: var(--bg-softer);
}
.ad-placeholder span { font-size: 11px; margin-top: 4px; }
.post-aside .ad-placeholder { min-height: 250px; }

.ads-live .ad-slot-label { display: none; }
.ads-live .ad-slot { margin: 20px 0; }

.not-found { padding: 100px 0; text-align: center; }
.not-found a { color: var(--accent); }

@media (max-width: 860px) {
  .post-grid { grid-template-columns: 1fr; }
  .status-grid { grid-template-columns: repeat(2, 1fr); }
  .post-layout { grid-template-columns: 1fr; gap: 8px; }
  .post-aside { order: -1; }
  .aside-inner { position: static; }
  .hero h1 { font-size: 32px; }
  .post-head h1 { font-size: 27px; }
}
