/* 垂直招投标平台 · 全站样式（简洁明了） */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; background: #f4f6f9; color: #1f2d3d; font-size: 14px; }

/* ---------- 顶栏导航 ---------- */
.navbar { background: #0b2545; color: #fff; padding: 0 32px; display: flex; align-items: center; height: 56px; gap: 8px; position: sticky; top: 0; z-index: 100; }
.navbar .logo { font-size: 17px; font-weight: 700; margin-right: 28px; letter-spacing: 1px; }
.navbar .logo span { color: #4da3ff; }
.navbar a { color: #c6d4e8; text-decoration: none; padding: 0 16px; line-height: 56px; display: inline-block; position: relative; }
.navbar a:hover, .navbar a.active { color: #fff; background: rgba(255,255,255,.08); }
.badge { background: #e74c3c; color: #fff; border-radius: 9px; font-size: 11px; padding: 1px 6px; margin-left: 4px; vertical-align: 2px; }
.nav-right { margin-left: auto; color: #8fa8c8; font-size: 12px; }

.container { max-width: 1200px; margin: 20px auto; padding: 0 20px; }
.page-title { font-size: 20px; font-weight: 700; margin-bottom: 16px; }

/* ---------- 频道切换 Tab ---------- */
.channel-tabs { display: flex; gap: 10px; margin-bottom: 14px; }
.ch-tab { background: #fff; border: 1px solid #d1d5db; color: #475569; border-radius: 20px; padding: 8px 20px; font-size: 14px; cursor: pointer; transition: all .2s; }
.ch-tab:hover { border-color: #2563eb; color: #2563eb; }
.ch-tab.active { background: #2563eb; color: #fff; border-color: #2563eb; font-weight: 600; }

/* ---------- 统计卡片 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card { background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.stat-card .num { font-size: 30px; font-weight: 700; margin-top: 6px; }
.stat-card .label { color: #7f8fa4; font-size: 13px; }
.stat-card.blue .num { color: #2563eb; } .stat-card.green .num { color: #16a34a; }
.stat-card.red .num { color: #dc2626; } .stat-card.orange .num { color: #ea580c; }

/* ---------- 卡片 / 面板 ---------- */
.panel { background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.06); margin-bottom: 20px; }
.panel h3 { font-size: 15px; margin-bottom: 14px; border-left: 3px solid #2563eb; padding-left: 10px; }

/* ---------- 分类快捷入口 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat-item { background: #f0f6ff; border: 1px solid #dbeafe; border-radius: 8px; text-align: center; padding: 18px 8px; cursor: pointer; transition: .2s; }
.cat-item:hover { background: #dbeafe; transform: translateY(-2px); }
.cat-item .name { font-weight: 600; margin-top: 8px; }
.cat-item .count { color: #2563eb; font-size: 18px; font-weight: 700; }

/* ---------- 标讯列表 ---------- */
.bid-item { background: #fff; border-radius: 10px; padding: 16px 20px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.05); cursor: pointer; transition: .15s; }
.bid-item:hover { box-shadow: 0 3px 12px rgba(37,99,235,.15); }
.bid-item .title { font-size: 15px; font-weight: 600; color: #1f2d3d; margin-bottom: 8px; }
.bid-item .title:hover { color: #2563eb; }
.bid-item .meta { display: flex; flex-wrap: wrap; gap: 14px; color: #7f8fa4; font-size: 12.5px; align-items: center; }

.tag { display: inline-block; background: #eef2ff; color: #4f46e5; border-radius: 4px; padding: 1px 8px; font-size: 12px; margin-right: 6px; }
.tag-hot { display: inline-block; background: #fee2e2; color: #dc2626; border-radius: 4px; padding: 1px 8px; font-size: 12px; margin-right: 6px; }
.st { display: inline-block; border-radius: 4px; padding: 1px 8px; font-size: 12px; }
.st-new { background: #dcfce7; color: #16a34a; }
.st-update { background: #fef9c3; color: #a16207; }
.st-bidding { background: #dbeafe; color: #2563eb; }
.st-win { background: #fee2e2; color: #dc2626; }
.st-stop, .st-end { background: #e5e7eb; color: #6b7280; }
.wt { font-size: 12px; padding: 1px 8px; border-radius: 4px; }
.wt-高 { background: #dc2626; color: #fff; }
.wt-中 { background: #ea580c; color: #fff; }
.wt-低 { background: #9ca3af; color: #fff; }
.budget { color: #dc2626; font-weight: 700; }

/* ---------- 筛选栏 ---------- */
.filter-bar { background: #fff; border-radius: 10px; padding: 16px 20px; margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.filter-bar select, .filter-bar input { border: 1px solid #d1d5db; border-radius: 6px; padding: 7px 10px; font-size: 13px; outline: none; }
.filter-bar input[type=text] { width: 220px; }
.btn { background: #2563eb; color: #fff; border: none; border-radius: 6px; padding: 8px 18px; cursor: pointer; font-size: 13px; }
.btn:hover { background: #1d4ed8; }
.btn-ghost { background: #fff; color: #2563eb; border: 1px solid #2563eb; }
.btn-gray { background: #6b7280; }
.btn-sm { padding: 5px 12px; font-size: 12px; }

/* ---------- 详情页 ---------- */
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 10px 8px; font-size: 13.5px; }
.kv .k { color: #7f8fa4; }
.timeline { border-left: 2px solid #e5e7eb; margin-left: 8px; padding-left: 18px; }
.timeline .t-item { position: relative; padding-bottom: 16px; }
.timeline .t-item::before { content: ""; position: absolute; left: -24px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #2563eb; }
.timeline .t-time { color: #9ca3af; font-size: 12px; }
.hint-box { background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 12px 14px; font-size: 13px; color: #92400e; margin-top: 12px; }

/* ---------- 消息中心 ---------- */
.msg-item { background: #fff; border-radius: 10px; padding: 14px 20px; margin-bottom: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.05); display: flex; align-items: flex-start; gap: 12px; }
.msg-item.unread { border-left: 3px solid #2563eb; background: #f8faff; }
.msg-item .dot { width: 8px; height: 8px; background: #e74c3c; border-radius: 50%; margin-top: 7px; flex: none; }
.msg-item .dot.read { background: #d1d5db; }
.msg-item .m-title { font-weight: 600; font-size: 14px; }
.msg-item .m-content { color: #7f8fa4; font-size: 13px; margin-top: 4px; }
.msg-item .m-time { color: #b0b8c4; font-size: 12px; margin-left: auto; flex: none; }

/* ---------- 后台管理 ---------- */
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th { background: #f1f5f9; text-align: left; padding: 10px 12px; color: #475569; }
table.tbl td { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; }
.log-line { font-family: Consolas, monospace; font-size: 12.5px; padding: 4px 0; border-bottom: 1px dashed #eee; }
.log-line .ERROR { color: #dc2626; } .log-line .INFO { color: #16a34a; }

/* ---------- 分页 ---------- */
.pager { display: flex; gap: 8px; justify-content: center; margin: 20px 0; }
.pager button { border: 1px solid #d1d5db; background: #fff; border-radius: 6px; padding: 6px 14px; cursor: pointer; }
.pager button.cur { background: #2563eb; color: #fff; border-color: #2563eb; }
.pager button:disabled { opacity: .4; cursor: default; }

.empty { text-align: center; color: #9ca3af; padding: 40px 0; }

/* ---------- 新标提示浮层 ---------- */
.toast { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); background: #0b2545; color: #fff; padding: 10px 22px; border-radius: 22px; font-size: 14px; z-index: 999; box-shadow: 0 4px 18px rgba(0,0,0,.28); display: none; }
.toast b { color: #4da3ff; }
