/* ============================================================
   安全文档库 · 工具箱 公共样式
   新工具页面直接 link 本文件，保持整站风格统一
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; background: #f5f6f8; color: #333; line-height: 1.7; font-size: 15px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 20px 16px 60px; }

/* 顶部 */
header { display: flex; justify-content: space-between; align-items: center; padding: 14px 0 10px; border-bottom: 2px solid #1e87f0; }
header .brand { font-size: 20px; font-weight: bold; }
header .brand a { color: #222; text-decoration: none; }
header .brand span { color: #1e87f0; }
header .header-links { display: flex; gap: 14px; }
header .header-links a { font-size: 13px; color: #555; text-decoration: none; }
header .header-links a:hover { color: #1e87f0; }

/* 页面标题 */
h1 { font-size: 24px; font-weight: 700; color: #1a1a1a; margin: 18px 0 6px; }
.sub { color: #777; font-size: 13px; margin-bottom: 16px; }

/* 面板/卡片通用（对齐主站 category-block） */
.panel { background: #fff; border-radius: 10px; padding: 24px; border: 1px solid #eee; }

/* 工具箱首页卡片 */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 10px; }
.tool-card { background: #fff; border-radius: 10px; padding: 24px; box-shadow: 0 1px 4px rgba(0,0,0,.06); display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: #222; border: 1px solid #eee; transition: border-color .15s, box-shadow .15s; }
a.tool-card:hover { border-color: #1e87f0; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.tool-card .t-name { font-size: 16px; font-weight: bold; display: flex; align-items: center; gap: 8px; }
.tool-card .t-desc { font-size: 13px; color: #666; line-height: 1.6; flex: 1; }
.tool-card .t-tag { font-size: 12px; padding: 2px 10px; border-radius: 10px; }
.tool-card .t-tag.online { background: #e8f5e9; color: #2e7d32; }
.tool-card .t-tag.plan { background: #eee; color: #999; }
.tool-card.plan { opacity: .65; cursor: default; }

/* 按钮 */
.btn { padding: 9px 20px; border: none; border-radius: 4px; cursor: pointer; font-size: 14px; }
.btn-primary { background: #1e87f0; color: #fff; }
.btn-ghost { background: #fff; border: 1px solid #999; color: #333; }
.btn:hover { opacity: .9; }
.btn-primary:hover { background: #1668c9; }

/* 打印 */
@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  .wrap { max-width: none; padding: 0; }
}

/* 首页"最近生成"（对齐主站 section-title） */
.sec-title { font-size: 20px; font-weight: 600; color: #1a1a1a; border-left: 4px solid #1e87f0; padding-left: 12px; margin: 30px 0 20px; }
.recent-list { list-style: none; }
.recent-list li { margin-bottom: 8px; }
.recent-list a.recent-item { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 6px; padding: 10px 14px; font-size: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.06); text-decoration: none; color: #222; }
.recent-list a.recent-item:hover { box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.r-tool { font-size: 12px; padding: 2px 10px; border-radius: 10px; background: #e8f5e9; color: #2e7d32; flex-shrink: 0; }
.r-company { color: #666; background: #f2f2f2; padding: 2px 8px; border-radius: 4px; font-size: 12px; flex-shrink: 0; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-tool.zhangtai { background: #e3f2fd; color: #1565c0; }
.r-time { margin-left: auto; font-size: 12px; color: #999; flex-shrink: 0; }
