/* 民俗文化小工具 · 公共样式 */
* { margin:0; padding:0; box-sizing:border-box; }
html,body { background:#f7f1e3; }
body {
  font-family:"LXGW WenKai","霞鹜文楷","楷体","KaiTi","Noto Serif CJK SC","STKaiti",serif;
  color:#3e2f1c; line-height:1.9;
}
.wrap { max-width:880px; margin:0 auto; padding:18px 14px 60px; }
.topbar {
  background:linear-gradient(135deg,#8a5a2e,#6f4522); color:#fff; border-radius:10px;
  text-align:center; padding:16px 10px; margin-bottom:16px;
}
.topbar .t1 { font-size:23px; font-weight:700; letter-spacing:6px; }
.topbar .t2 { font-size:13px; opacity:.85; margin-top:4px; letter-spacing:1px; }
.card {
  background:#fffdf7; border:1px solid #e6d9bd; border-radius:12px;
  padding:18px 18px 20px; margin:14px 0; box-shadow:0 2px 10px rgba(140,100,40,.05);
}
.hint { font-size:13.5px; color:#8a7455; line-height:1.9; }
.hint b { color:#6f4522; }
label.f { display:block; font-size:14.5px; color:#6f4522; font-weight:700; margin:10px 0 4px; }
input.txt, select.sel {
  font-family:inherit; font-size:16px; padding:9px 12px; border:1.5px solid #cbb98f;
  border-radius:8px; background:#fff; width:100%; color:#3e2f1c;
}
input.txt:focus, select.sel:focus { outline:none; border-color:#8a5a2e; }
.btn {
  display:inline-block; font-family:inherit; font-size:17px; font-weight:700;
  padding:11px 34px; margin-top:12px; letter-spacing:4px; color:#fff; cursor:pointer;
  background:linear-gradient(180deg,#b8281c,#9a1f15); border:none; border-radius:10px;
  box-shadow:0 6px 16px rgba(184,40,28,.22);
}
.btn:hover { opacity:.92; }
.btn.alt { background:linear-gradient(180deg,#8a5a2e,#6f4522); box-shadow:0 6px 16px rgba(111,69,34,.2); }
.err { color:#b8281c; font-size:14px; margin-top:8px; font-weight:700; }
.res-card {
  background:#fff9ee; border:1.5px solid #dcc89a; border-radius:14px; padding:20px 18px; margin-top:16px;
}
.res-head { text-align:center; margin-bottom:12px; }
.res-head .big { font-size:26px; color:#b8281c; font-weight:800; letter-spacing:2px; }
.res-head .sub { font-size:14px; color:#8a6a3a; margin-top:4px; }
.poem { font-size:17px; text-align:center; color:#4a3218; margin:12px 0; line-height:2.1; }
.poem div { margin:2px 0; }
.items { margin-top:10px; }
.items .it { font-size:14.5px; border-bottom:1px dashed #e4d5b5; padding:5px 2px; }
.items .it b { color:#6f4522; margin-right:6px; }
table.tb { width:100%; border-collapse:collapse; font-size:14px; margin-top:8px; }
table.tb th, table.tb td { border:1px solid #dcc89a; padding:6px 8px; text-align:left; }
table.tb th { background:#f3e7cf; color:#6f4522; }
table.tb tr:nth-child(even) td { background:#fdf9ef; }
.grid2 { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:8px; }
.zj { display:inline-block; padding:1px 10px; border-radius:12px; font-size:12.5px; font-weight:700; margin-left:8px; }
.zj.ji { background:#e7f4e3; color:#1e7a34; }
.zj.xiaoji { background:#eef3da; color:#6a7a1e; }
.zj.ping { background:#f3efe2; color:#8a7a3a; }
.zj.xiong { background:#fbe6e2; color:#b8281c; }
.footer {
  margin-top:26px; padding:14px; background:#fffdf7; border:1px dashed #d9c49a;
  border-radius:10px; text-align:center; font-size:14px; color:#6f5a33;
}
.footer a { color:#9a3a2a; font-weight:700; text-decoration:none; margin:0 4px; }
.footer a:hover { text-decoration:underline; }
.section-title {
  font-size:17px; font-weight:800; color:#6f4522; letter-spacing:3px;
  border-left:5px solid #b8281c; padding-left:10px; margin:18px 0 8px;
}
.backhome a { color:#8a6a3a; font-size:13px; text-decoration:none; }
.tbwrap { overflow-x:auto; -webkit-overflow-scrolling:touch; width:100%; }
html, body { overflow-x:hidden; }
