/*
Theme Name: 正毋百科
Theme URI: https://zhengwu.online
Author: 正毋百科
Description: 磨砂玻璃单栏主题。首页即全部条目索引，导航只有「首页 / 关于」。
Version: 1.2
*/

:root{
  --ink:#1f1c19;
  --sub:#7d766e;
  --line:rgba(31,28,25,.075);
  --glass:rgba(255,255,255,.72);
  --glass-line:rgba(255,255,255,.9);
  --serif:Georgia,"Songti SC","Noto Serif SC","Source Han Serif SC",serif;
  --sans:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Helvetica Neue","Microsoft YaHei",sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;-webkit-font-smoothing:antialiased}
body{
  margin:0;min-height:100vh;background:#f8f8f6;color:var(--ink);
  font:15px/1.9 var(--sans);letter-spacing:.012em;
}
body::before{
  content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:
    radial-gradient(42% 38% at 12% 10%, rgba(242,235,226,.55) 0%, rgba(242,235,226,0) 72%),
    radial-gradient(38% 36% at 92% 8%,  rgba(232,236,242,.5) 0%, rgba(232,236,242,0) 70%),
    radial-gradient(46% 42% at 76% 96%, rgba(244,238,229,.6) 0%, rgba(244,238,229,0) 72%),
    radial-gradient(30% 28% at 40% 46%, rgba(250,247,242,.7) 0%, rgba(250,247,242,0) 70%),
    #f8f8f6;
}
a{color:inherit;text-decoration:none;transition:color .18s ease,opacity .18s ease}
a:hover{color:var(--sub)}

.panel{
  max-width:740px;margin:52px auto 64px;padding:0 44px;
  background:var(--glass);
  -webkit-backdrop-filter:blur(34px) saturate(185%);
  backdrop-filter:blur(34px) saturate(185%);
  border:1px solid var(--glass-line);
  border-radius:26px;
  box-shadow:
    0 20px 60px -24px rgba(60,48,38,.18),
    0 1px 2px rgba(60,48,38,.03),
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 0 0 1px rgba(255,255,255,.6);
}

.site-head{padding:54px 0 26px;text-align:center}
.site-title{
  font-family:var(--serif);font-size:34px;font-weight:400;
  letter-spacing:.2em;margin:0 0 16px;line-height:1.2;text-indent:.2em;
}
.site-title a:hover{color:var(--ink);opacity:.72}
.site-slogan{
  font-size:11px;color:var(--sub);letter-spacing:.3em;
  margin:0 0 26px;text-indent:.3em;
}
.head-rule{width:22px;height:1px;background:var(--ink);margin:0 auto 24px;opacity:.35}
.site-nav{font-size:12px;letter-spacing:.14em}
.site-nav a{
  display:inline-block;margin:0 5px;padding:7px 16px;border-radius:999px;
  color:var(--sub);border:1px solid transparent;
}
.site-nav a.on{
  color:var(--ink);background:rgba(255,255,255,.62);
  border-color:rgba(255,255,255,.9);
  box-shadow:0 1px 3px rgba(60,48,38,.08);
}
.site-nav a:hover{color:var(--ink)}

.index-head{
  display:flex;justify-content:space-between;align-items:baseline;
  padding:0 0 12px;border-bottom:1px solid var(--line);
  font-size:11px;letter-spacing:.18em;color:var(--sub);
}
.index-head .count{font-variant-numeric:tabular-nums;letter-spacing:.08em}

.entry{padding:30px 0;border-bottom:1px solid var(--line);transition:opacity .18s ease}
.entry:hover{opacity:.72}
.entry .meta{
  font-size:11px;color:var(--sub);letter-spacing:.1em;
  margin-bottom:6px;font-variant-numeric:tabular-nums;
}
.entry h3{
  font-size:17.5px;font-weight:400;line-height:1.62;
  letter-spacing:.015em;margin:0 0 9px;
}
.entry .excerpt{
  font-size:13.5px;color:var(--sub);line-height:1.9;margin:0;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}

article.single{padding:48px 0 8px}
article.single h1{
  font-family:var(--serif);font-size:25px;font-weight:400;
  line-height:1.6;letter-spacing:.015em;margin:0 0 18px;
  text-wrap:balance;
}
article.single .meta{
  font-size:11px;color:var(--sub);letter-spacing:.12em;
  padding-bottom:22px;border-bottom:1px solid var(--line);margin-bottom:34px;
  font-variant-numeric:tabular-nums;
}
article.single h2{
  font-size:15.5px;font-weight:400;letter-spacing:.14em;
  margin:44px 0 16px;padding-bottom:9px;border-bottom:1px solid var(--line);
}
article.single h3{font-size:15px;margin:30px 0 10px;font-weight:400;letter-spacing:.04em}
article.single p{margin:0 0 18px}
article.single table{
  width:100%;border-collapse:collapse;margin:22px 0 26px;
  font-size:13px;line-height:1.75;
  background:rgba(255,255,255,.42);border-radius:12px;overflow:hidden;
}
article.single th,article.single td{
  border:0;border-bottom:1px solid var(--line);
  padding:12px 14px;text-align:left;vertical-align:top;
}
article.single th{
  font-weight:400;color:var(--sub);font-size:11px;letter-spacing:.12em;
  background:rgba(255,255,255,.5);
}
article.single tr:last-child td{border-bottom:0}
article.single ul,article.single ol{padding-left:20px;margin:0 0 18px}
article.single li{margin-bottom:7px}
article.single blockquote{
  margin:24px 0;padding:0 0 0 18px;border-left:1px solid var(--line);color:var(--sub);
}
article.single img{max-width:100%;height:auto;border-radius:12px}

.pager{
  padding:34px 0 52px;font-size:12px;letter-spacing:.12em;color:var(--sub);
  font-variant-numeric:tabular-nums;
}
.pager a{margin-right:20px}
.pager .current{color:var(--ink)}

.site-foot{
  border-top:1px solid var(--line);padding:28px 0 46px;margin-top:8px;
  font-size:11px;color:var(--sub);line-height:2.1;letter-spacing:.06em;
}
.site-foot div{margin-bottom:5px}

.page-body{padding:48px 0 24px}
.page-body h1{
  font-family:var(--serif);font-size:28px;font-weight:400;
  letter-spacing:.06em;margin:0 0 28px;line-height:1.4;
}
.page-body h2{
  font-size:15px;font-weight:400;letter-spacing:.14em;
  margin:42px 0 14px;padding-bottom:9px;border-bottom:1px solid var(--line);
}
.page-body p{font-size:15px;line-height:1.95;margin:0 0 18px;color:#332f2a}

.empty{padding:64px 0;color:var(--sub);font-size:13px;letter-spacing:.1em}

@media(max-width:760px){
  .panel{margin:20px 14px 28px;padding:0 24px;border-radius:22px}
}
@media(max-width:600px){
  .site-head{padding:40px 0 20px}
  .site-title{font-size:26px;letter-spacing:.16em;text-indent:.16em}
  .site-slogan{margin-bottom:20px;letter-spacing:.22em;text-indent:.22em}
  .entry{padding:26px 0}
  .entry h3{font-size:16.5px}
  article.single{padding:36px 0 4px}
  article.single h1{font-size:22px}
  article.single h2{margin-top:34px}
  article.single table{font-size:12px}
  article.single th,article.single td{padding:10px}
}

/* 参考资料 / 数据核对（与果核同一套模块） */
article.single ul + p.data-check,
article.single p.data-check{
  margin-top:26px;padding-top:18px;border-top:1px solid var(--line);
  font-size:12.5px;color:var(--sub);line-height:1.95;
}
article.single p.data-check strong{color:var(--ink);font-weight:400;letter-spacing:.12em}
article.single p.data-check a{border-bottom:1px solid currentColor}

/* ---------- 纠错表单 ---------- */
.correction-form{margin:34px 0 8px}
.fld{margin:0 0 20px}
.fld label{
  display:block;font-size:13px;margin-bottom:9px;
  letter-spacing:.06em;color:var(--ink);
}
.fld label em{font-style:normal;color:var(--sub);font-size:11px;margin-left:8px;letter-spacing:.04em}
.fld input[type=text],.fld textarea{
  width:100%;border:1px solid rgba(31,28,25,.14);border-radius:10px;
  padding:12px 14px;font:inherit;font-size:14px;line-height:1.8;
  background:rgba(255,255,255,.62);color:var(--ink);
  transition:border-color .18s ease,background .18s ease;
}
.fld input[type=text]::placeholder,.fld textarea::placeholder{color:#b3aca3}
.fld input[type=text]:focus,.fld textarea:focus{
  outline:none;border-color:rgba(31,28,25,.32);background:#fff;
}
.fld textarea{resize:vertical}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.submit-row{display:flex;gap:18px;align-items:flex-start;margin-top:28px;flex-wrap:wrap}
.submit-row button{
  border:0;border-radius:999px;padding:13px 30px;
  background:var(--ink);color:#fff;font:inherit;font-size:13px;
  letter-spacing:.12em;cursor:pointer;transition:opacity .18s ease;
}
.submit-row button:hover{opacity:.82}
.submit-row .hint{
  flex:1;min-width:240px;font-size:11.5px;color:var(--sub);
  line-height:1.9;letter-spacing:.02em;
}
.form-notice{padding:13px 16px;border-radius:10px;font-size:13px;margin:20px 0 24px}
.form-notice.ok{background:rgba(110,150,110,.13);color:#3f6b3f}
.form-notice.err{background:rgba(175,90,80,.11);color:#8d3c33}
