/* tools.96fx.cn - 简洁中性样式（美化后置） */
* { margin:0; padding:0; box-sizing:border-box; }
:root {
  --bg:#f6f7f9; --card:#ffffff; --border:#e3e6ea;
  --text:#2c2c2a; --muted:#6b7280;
  --accent:#185fa5; --accent-bg:#e6f1fb;
  --radius:12px;
}
body { font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif; background:var(--bg); color:var(--text); font-size:14px; line-height:1.6; }
.wrap { max-width:1080px; margin:0 auto; padding:0 16px; }

.topbar { background:#fff; border-bottom:1px solid var(--border); position:sticky; top:0; z-index:10; }
.topbar-in { display:flex; align-items:center; gap:24px; height:54px; }
.logo { font-size:18px; font-weight:700; color:var(--accent); text-decoration:none; white-space:nowrap; }
.cat-nav { display:flex; gap:4px; overflow-x:auto; }
.cat-nav a { padding:6px 12px; border-radius:8px; color:var(--muted); text-decoration:none; white-space:nowrap; font-size:13px; }
.cat-nav a:hover, .cat-nav a.active { background:var(--accent-bg); color:var(--accent); }

.hero { text-align:center; padding:36px 0 10px; }
.hero h1 { font-size:26px; font-weight:700; margin-bottom:8px; }
.hero p { color:var(--muted); font-size:14px; }

.section-title { font-size:16px; font-weight:700; margin:26px 0 12px; padding-left:10px; border-left:4px solid var(--accent); }
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:12px; }
.card {
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius);
  padding:16px; cursor:pointer; transition:box-shadow .15s,border-color .15s;
  display:flex; flex-direction:column; gap:4px; min-height:88px;
  text-decoration:none; color:inherit;
}
.card:hover { border-color:var(--accent); box-shadow:0 3px 12px rgba(0,0,0,.06); }
.card .t-name { font-weight:600; font-size:15px; }
.card .t-desc { color:var(--muted); font-size:12px; flex:1; }
.card .t-tag { display:inline-block; font-size:11px; color:var(--accent); background:var(--accent-bg); border-radius:4px; padding:1px 6px; align-self:flex-start; }

.crumb { margin:20px 0 4px; font-size:13px; }
.crumb a { color:var(--accent); text-decoration:none; }
.crumb span { color:var(--muted); margin-left:8px; }
.tool-title { font-size:22px; font-weight:700; margin:6px 0 4px; }
.tool-desc { color:var(--muted); margin-bottom:18px; font-size:13px; }

.panel { background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:18px; margin-bottom:14px; }
.panel h3 { font-size:15px; font-weight:600; margin-bottom:10px; }
label { display:block; font-size:13px; color:var(--muted); margin:10px 0 4px; }
input[type=text], input[type=number], textarea, select {
  width:100%; padding:8px 10px; border:1px solid var(--border); border-radius:8px;
  font-size:13px; font-family:inherit; background:#fff; color:var(--text);
}
textarea { min-height:120px; resize:vertical; }
input:focus, textarea:focus, select:focus { outline:none; border-color:var(--accent); }
.btn {
  display:inline-block; padding:8px 18px; margin:10px 6px 4px 0; border:none; cursor:pointer;
  border-radius:8px; font-size:13px; font-weight:500; background:var(--accent); color:#fff;
  min-height:38px; line-height:1.4;
}
.btn:hover { opacity:.9; }
.btn.ghost { background:#eef0f3; color:var(--text); }
.result { margin-top:12px; padding:12px; background:#fafbfc; border:1px dashed var(--border); border-radius:8px; font-size:13px; word-break:break-all; }
.result pre { white-space:pre-wrap; word-break:break-all; font-family:Consolas,Menlo,monospace; font-size:12px; }
.result .ok { color:#0f6e56; font-weight:600; }
.result .err { color:#a32d2d; }
.row { display:flex; gap:10px; flex-wrap:wrap; }
.row > div { flex:1; min-width:200px; }
.stat { display:inline-block; margin-right:16px; font-size:13px; }
.stat b { color:var(--accent); }
table.tbl { width:100%; border-collapse:collapse; font-size:12px; }
table.tbl th, table.tbl td { border:1px solid var(--border); padding:5px 8px; text-align:center; }
table.tbl th { background:#f0f2f5; font-weight:600; }
.file-drop { border:2px dashed var(--border); border-radius:var(--radius); padding:28px; text-align:center; color:var(--muted); cursor:pointer; }
.file-drop:hover { border-color:var(--accent); color:var(--accent); }
.inline-input { max-width:320px; }
.two-col { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media (max-width:720px){ .two-col{grid-template-columns:1fr;} .hero h1{font-size:22px;} .hero{padding:24px 0 6px;} input[type=text],input[type=number],textarea{font-size:16px;} .grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));} .card{min-height:76px;padding:12px;} .footer{padding:18px 0;} }
.periodic { display:grid; grid-template-columns:repeat(18,1fr); gap:2px; font-size:10px; }
.periodic .el { background:var(--card); border:1px solid var(--border); border-radius:3px; padding:2px; text-align:center; cursor:default; }
.periodic .el .s { font-weight:700; font-size:11px; }
.periodic .el .n { color:var(--muted); }
.note { font-size:12px; color:var(--muted); margin-top:6px; }
.kbd { background:#eef0f3; border:1px solid var(--border); border-radius:4px; padding:1px 5px; font-family:monospace; font-size:12px; }
