:root {
  --primary: #1e5bb8;
  --primary-dark: #154084;
  --primary-light: #e8f0fc;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #0891b2;
  --text: #1f2937;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --bg: #f4f6fa;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 顶部导航 */
.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.topbar-inner { display: flex; align-items: center; height: 64px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; color: var(--primary-dark); white-space: nowrap; }
.logo .brand-logo { height: 40px; width: auto; object-fit: contain; border-radius: 6px; }
.logo .mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; display: grid; place-items: center; font-size: 18px;
}
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { padding: 8px 14px; border-radius: 8px; color: var(--text); font-weight: 500; }
.nav a:hover, .nav a.active { background: var(--primary-light); color: var(--primary-dark); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* 汉堡菜单按钮：桌面隐藏，窄屏显示 */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 38px; padding: 0 9px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--white); cursor: pointer; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--primary-dark); border-radius: 2px; }

/* 平台全称 / 简称：桌面显示全称，窄屏切换简称 */
.name-short { display: none; }
.logo .name-full { font-size: 15px; white-space: nowrap; line-height: 1.35; }
.auth-card .logo .name-full, .auth-card .logo .name-short { font-size: 18px; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: 8px; border: 1px solid transparent;
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: all .15s; white-space: nowrap; line-height: 1.2;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: #fff; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-lg { padding: 12px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* 表单 */
.form-group { margin-bottom: 18px; }
.form-label { display: block; margin-bottom: 6px; font-weight: 500; color: var(--text); }
.form-label .req { color: var(--danger); margin-left: 2px; }
.form-control {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 14px; color: var(--text);
  background: #fff; transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30, 91, 184, .12); }
.form-control:disabled { background: #f9fafb; color: var(--text-light); }
textarea.form-control { resize: vertical; min-height: 96px; }
select.form-control { cursor: pointer; }
.form-hint { font-size: 12px; color: var(--text-light); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 4px; }

/* 表单内逻辑分组标题：左侧主色竖条 + 加粗标题，清晰划分信息区块 */
.form-section-title {
  display: flex; align-items: center; gap: 8px;
  margin: 20px 0 4px; font-size: 14px; font-weight: 700; color: var(--primary-dark);
}
.form-section-title::before {
  content: ''; width: 4px; height: 15px; border-radius: 2px; background: var(--primary);
}
.form-section-title:first-child, .form-section-title:first-of-type { margin-top: 4px; }

/* 采购方式合规时间建议卡片 */
.pm-advice {
  background: var(--info-bg, #eef4ff);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 6px 0 4px;
  font-size: 13px;
}
.pm-advice-head { font-weight: 700; color: var(--primary-dark); margin-bottom: 6px; }
.pm-rule-list { list-style: none; margin: 0; padding: 0; }
.pm-rule-list li { display: flex; gap: 8px; padding: 3px 0; line-height: 1.5; }
.pm-rule-k { flex: 0 0 92px; color: var(--text-secondary, #666); }
.pm-rule-v { flex: 1; color: var(--text, #222); }
.pm-advice-basis { margin-top: 6px; font-size: 12px; color: var(--text-secondary, #666); }
.pm-advice-tip { margin-top: 2px; font-size: 12px; color: var(--warning, #d97706); }

/* 风险/责任提示框：橙红警示，用于注册、报名等关键操作前的责任告知 */
.risk-box {
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-left: 4px solid var(--warning);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 4px 0 16px;
  font-size: 13px;
  line-height: 1.7;
  color: #9a3412;
}
.risk-box.danger { background: #fef2f2; border-color: #fca5a5; border-left-color: var(--danger); color: #991b1b; }
.risk-box .risk-title { display: flex; align-items: center; gap: 6px; font-weight: 700; margin-bottom: 6px; font-size: 13.5px; }
.risk-box ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.risk-box li { position: relative; padding-left: 14px; }
.risk-box li::before { content: "•"; position: absolute; left: 2px; top: 0; font-weight: 700; }
.risk-box .strong { font-weight: 700; }

/* 卡片 */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-title { font-size: 16px; font-weight: 700; }
.card-body { padding: 20px; }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--border); }

/* 徽章 */
.badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.badge-primary { background: var(--primary-light); color: var(--primary-dark); }
.badge-success { background: #dcfce7; color: #15803d; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-danger { background: #fee2e2; color: #b91c1c; }
.badge-info { background: #cffafe; color: #0e7490; }
.badge-gray { background: #f3f4f6; color: #4b5563; }

/* 表格 */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { background: #f9fafb; font-weight: 600; color: #374151; white-space: nowrap; }
.table tbody tr:hover { background: #fafbfd; }
.table .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-muted { color: var(--text-light); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.money { font-variant-numeric: tabular-nums; font-weight: 600; }
.money.warn { color: var(--danger); }

/* 分页 */
.pagination { display: flex; gap: 6px; justify-content: flex-end; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.pagination button { min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--border); background: #fff; border-radius: 8px; cursor: pointer; }
.pagination button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination button:disabled { opacity: .5; cursor: not-allowed; }

/* 公告列表项 */
.notice-list { display: flex; flex-direction: column; gap: 14px; }
.notice-item { padding: 18px 20px; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; transition: box-shadow .15s, transform .15s; }
.notice-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.notice-item h3 { font-size: 16px; margin-bottom: 8px; color: var(--text); }
.notice-item h3:hover { color: var(--primary); }
.notice-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--text-light); font-size: 13px; }
.notice-meta span { display: inline-flex; align-items: center; gap: 4px; }

/* 筛选条 */
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.filter-bar .form-control { width: auto; min-width: 140px; }
.filter-bar .search-input { flex: 1; min-width: 220px; }

/* banner */
.hero {
  background: linear-gradient(120deg, #154084, #1e5bb8 55%, #2f74d6);
  color: #fff; padding: 56px 0; margin-bottom: 28px;
}
.hero h1 { font-size: 40px; margin-bottom: 14px; line-height: 1.35; font-weight: 800; }
.hero p { opacity: .9; font-size: 16px; max-width: 680px; }
.hero .search-box { display: flex; gap: 10px; margin-top: 24px; max-width: 620px; }
.hero .search-box input { flex: 1; padding: 13px 16px; border-radius: 10px; border: none; font-size: 15px; }
.hero .search-box .btn { padding: 13px 28px; background: #ffb020; color: #4a2e00; font-weight: 700; }

/* 统计卡片 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.stat-card { padding: 20px; }
.stat-card .label { color: var(--text-light); font-size: 13px; margin-bottom: 8px; }
.stat-card .value { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-card .icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; float: right; }

/* 描述列表 */
.desc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 24px; }
.desc-item .d-label { color: var(--text-light); font-size: 13px; margin-bottom: 2px; }
.desc-item .d-value { font-weight: 500; }

/* 时间线 */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; padding-bottom: 18px; }
.tl-item::before { content: ''; position: absolute; left: -21px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); }
.tl-item.done::before { background: var(--success); border-color: var(--success); }

/* 办理时间线（只读） */
.timeline-item { position: relative; padding-bottom: 16px; display: flex; gap: 14px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: -22px; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); z-index: 1; }
.timeline-time { flex-shrink: 0; width: 98px; font-size: 12px; color: var(--text-light); padding-top: 2px; }
.timeline-content { min-width: 0; flex: 1; }
@media (max-width: 600px) {
  .timeline-item { flex-direction: column; gap: 2px; }
  .timeline-time { width: auto; }
}

/* 模态框 */
.modal-mask { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.modal-mask.show { display: flex; }
.modal { background: #fff; border-radius: 12px; width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; box-shadow: var(--shadow-lg); }
.modal.modal-lg { max-width: 880px; }
.modal-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 16px; }
.modal-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text-light); line-height: 1; }
.modal-body { padding: 20px; }
.modal-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* toast */
.toast-wrap { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast { padding: 11px 20px; border-radius: 8px; color: #fff; box-shadow: var(--shadow-lg); font-size: 14px; animation: toastIn .2s; }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--info); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* 标签页 */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 22px; flex-wrap: wrap; }
.tab { padding: 10px 18px; cursor: pointer; border-bottom: 2px solid transparent; color: var(--text-light); font-weight: 500; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* 后台布局 */
.admin-layout { display: flex; min-height: 100vh; }
.sidebar { width: 232px; background: #102a4c; color: #cbd5e1; flex-shrink: 0; position: fixed; top: 0; bottom: 0; left: 0; overflow-y: auto; z-index: 50; }
.sidebar .logo { color: #fff; padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar .logo .mark { background: #ffb020; color: #4a2e00; }
.menu { padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.menu-item { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 8px; color: #cbd5e1; cursor: pointer; font-size: 14px; }
.menu-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.menu-item.active { background: var(--primary); color: #fff; }
.menu-item .mi { width: 18px; text-align: center; }
.admin-main { flex: 1; margin-left: 232px; min-width: 0; }
.admin-header { background: #fff; height: 60px; display: flex; align-items: center; padding: 0 24px; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 40; gap: 12px; }
.admin-content { padding: 24px; }
.page-title { font-size: 20px; font-weight: 700; margin-bottom: 18px; }
.user-chip { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; text-decoration: none; flex-shrink: 0; }

/* 图表柱 */
.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 200px; padding-top: 10px; }
.bar-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.bar { width: 60%; max-width: 34px; background: linear-gradient(180deg, #3b82f6, #1e5bb8); border-radius: 5px 5px 0 0; min-height: 2px; position: relative; }
.bar-col .bl { font-size: 11px; color: var(--text-light); transform: rotate(-30deg); white-space: nowrap; }
@media (max-width: 640px) {
  .bar-chart { gap: 3px; }
  .bar-col .bl { font-size: 9px; }
}

/* 收款二维码预览 */
.qrcode-preview { display: flex; align-items: center; justify-content: center;
  min-height: 160px; padding: 12px; border: 1px dashed var(--border); border-radius: 8px; background: #fafbfc; }
.qrcode-preview img { width: 200px; height: 200px; object-fit: contain; border-radius: 6px; }

/* 登录页 */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(135deg, #154084, #1e5bb8); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .card-body { padding: 32px; }
.auth-card .logo { justify-content: center; margin-bottom: 22px; }
.auth-switch { text-align: center; margin-top: 16px; color: var(--text-light); }

/* 空状态 */
.empty { text-align: center; padding: 48px 20px; color: var(--text-light); }
.empty .ei { font-size: 44px; margin-bottom: 10px; }

/* 响应式 */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; }
  .admin-main { margin-left: 0; }
  .nav-toggle { display: flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 2px; margin-left: 0; padding: 10px 14px;
    background: var(--white); border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 20px rgba(15,40,74,.12); }
  .nav.open { display: flex; }
  .nav a { padding: 11px 14px; border-radius: 8px; }
  .name-full { display: none; }
  .name-short { display: inline; }
  .hero h1 { font-size: 30px; }
  .notice-item { flex-direction: column; }
}
@media (max-width: 600px) {
  .container { padding: 0 14px; }
  .admin-content { padding: 16px; }
  .filter-bar .form-control { width: 100%; }
  .topbar-inner { gap: 12px; height: 56px; }
  .logo { min-width: 0; flex: 1 1 auto; }
  .name-short { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .br-h1 { display: none; }
  .hero h1 { font-size: 27px; }
  .topbar-right { gap: 8px; flex-shrink: 0; }
  .user-meta { display: none; }
}
.flex { display: flex; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }

/* ============ 增强页脚（版权 / 法律声明） ============ */
.site-footer { background: #102a4c; color: #cbd5e1; padding: 30px 0 22px; margin-top: 24px; }
.site-footer .ft-row { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; line-height: 1.8; }
.site-footer .ft-agency { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.site-footer .ft-legal { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; color: #94a3b8; line-height: 1.9; }
.site-footer .ft-copy { margin-top: 12px; font-size: 12px; color: #94a3b8; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }

/* 后台侧边栏 Logo 图片 */
.sidebar .logo .brand-logo { height: 36px; width: auto; object-fit: contain; border-radius: 6px; }

/* Logo 上传预览 */
.logo-preview { display: flex; align-items: center; justify-content: center; min-height: 120px; padding: 14px; border: 1px dashed var(--border); border-radius: 8px; background: #fafbfc; }
.logo-preview img { max-height: 90px; max-width: 100%; object-fit: contain; border-radius: 6px; }

/* ============ 富文本编辑器 ============ */
.rte { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; }
.rte-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 8px 10px; background: #f8fafc; border-bottom: 1px solid var(--border); }
.rte-btn { min-width: 32px; height: 30px; padding: 0 7px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--text); cursor: pointer; font-size: 14px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.rte-btn:hover { background: #e8f0fc; border-color: #c9dcf5; }
.rte-select { height: 30px; border: 1px solid var(--border); border-radius: 6px; background: #fff; padding: 0 6px; font-size: 13px; cursor: pointer; }
.rte-sep { width: 1px; height: 20px; background: var(--border); margin: 0 4px; }
.rte-edit { min-height: 220px; max-height: 46vh; overflow: auto; padding: 14px 16px; outline: none; font-size: 14px; line-height: 1.8; }
.rte-edit:focus { box-shadow: inset 0 0 0 2px rgba(30,91,184,.15); }
.rte-full { margin-left: auto; }

/* 全屏编辑 */
.rte.rte-fullscreen { position: fixed; inset: 0; z-index: 2000; border-radius: 0; display: flex; flex-direction: column; }
.rte.rte-fullscreen .rte-toolbar { flex: 0 0 auto; }
.rte.rte-fullscreen .rte-edit { flex: 1 1 auto; max-height: none; }
body.rte-body-lock { overflow: hidden; }

/* 编辑器与详情公告共用的正文排版 */
.rte-edit p, .rich-content p { margin: 0 0 10px; }
.rte-edit h1, .rich-content h1 { font-size: 24px; margin: 16px 0 10px; }
.rte-edit h2, .rich-content h2 { font-size: 20px; margin: 14px 0 8px; }
.rte-edit h3, .rich-content h3 { font-size: 17px; margin: 12px 0 8px; }
.rte-edit h4, .rich-content h4 { font-size: 15px; margin: 10px 0 6px; }
.rte-edit ul, .rich-content ul { margin: 0 0 10px; padding-left: 24px; }
.rte-edit ol, .rich-content ol { margin: 0 0 10px; padding-left: 24px; }
.rte-edit li, .rich-content li { margin-bottom: 4px; }
.rte-edit blockquote, .rich-content blockquote { margin: 0 0 10px; padding: 8px 14px; border-left: 4px solid var(--primary); background: #f8fafc; color: var(--text-light); }
.rte-edit a, .rich-content a { color: var(--primary); text-decoration: underline; word-break: break-all; }
.rte-edit table, .rich-content table { border-collapse: collapse; width: 100%; margin: 0 0 12px; font-size: 13px; display: block; overflow-x: auto; }
.rte-edit th, .rte-edit td, .rich-content th, .rich-content td { border: 1px solid var(--border); padding: 7px 10px; text-align: left; vertical-align: top; }
.rte-edit th, .rich-content th { background: #f8fafc; font-weight: 600; }
.rte-edit img, .rich-content img { max-width: 100%; height: auto; border-radius: 6px; }
.rte-edit hr, .rich-content hr { border: none; border-top: 1px solid var(--border); margin: 14px 0; }

/* ============ 招标公告卡片 / PDF 查看 ============ */
.rich-content { font-size: 14px; line-height: 1.8; word-break: break-word; }
.announce-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.pdf-frame { width: 100%; height: 70vh; min-height: 420px; border: 1px solid var(--border); border-radius: 8px; background: #f8fafc; }
.pdf-frame-wrap { position: relative; }
.pdf-frame-wrap.pdf-fullscreen { position: fixed; inset: 0; z-index: 2000; background: #fff; padding: 12px; }
.pdf-frame-wrap.pdf-fullscreen .pdf-frame { height: 100%; min-height: 0; border-radius: 0; }
.announce-file-card { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: #fafbfc; }
.announce-file-card .file-ico { font-size: 38px; line-height: 1; }
.announce-file-card .file-meta { flex: 1; min-width: 0; }
.announce-file-card .file-name { font-weight: 600; word-break: break-all; }
.announce-file-card .file-sub { color: var(--text-light); font-size: 12px; margin-top: 2px; }
.mode-tabs { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.mode-tabs button { border: none; background: #fff; padding: 7px 14px; cursor: pointer; font-size: 13px; color: var(--text-light); }
.mode-tabs button.active { background: var(--primary); color: #fff; }

@media (max-width: 600px) {
  .rte-edit { min-height: 180px; padding: 12px; }
  .pdf-frame { min-height: 320px; height: 60vh; }
  .announce-file-card { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ============ 项目锁定标识 ============ */
.lock-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  white-space: nowrap;
}
.lock-tag.lock-super {
  color: #b45309;
  background: #fef3c7;
  border-color: #fde68a;
}

/* ============ 导出格式选择 ============ */
.export-format {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 6px 2px 4px;
}
.export-fmt-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.export-fmt-btn:hover:not(:disabled) {
  border-color: var(--primary);
  box-shadow: 0 8px 22px rgba(30, 91, 184, .14);
  transform: translateY(-2px);
}
.export-fmt-btn:active:not(:disabled) { transform: translateY(0); }
.export-fmt-btn:disabled { opacity: .5; cursor: not-allowed; }
.export-fmt-btn .ef-icon { font-size: 38px; line-height: 1; }
.export-fmt-btn .ef-name { font-size: 16px; font-weight: 700; color: var(--primary-dark); }
.export-fmt-btn .ef-desc { font-size: 12px; color: var(--text-light); text-align: center; }

@media (max-width: 600px) {
  .export-format { grid-template-columns: 1fr; gap: 12px; }
  .export-fmt-btn { padding: 18px 14px; }
}

/* ============ 硬件令牌办理页面 ============ */
.ht-page { max-width: 960px; margin: 0 auto; }
.ht-page .card-header { align-items: center; }
.dl-layout { display: flex; gap: 28px; align-items: stretch; }
.dl-info { flex: 1; min-width: 0; }
.dl-desc { margin: 0 0 14px; line-height: 1.8; color: var(--text); }
.dl-meta { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin: 0; }
.dl-meta li { font-size: 13px; color: var(--text); display: flex; gap: 8px; line-height: 1.5; }
.dl-meta .dl-k { flex-shrink: 0; color: var(--text-light); min-width: 56px; }
.dl-action { width: 240px; flex-shrink: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.dl-action .form-hint { text-align: center; margin: 0; line-height: 1.6; }

.dl-steps { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.dl-steps-title { font-weight: 700; margin-bottom: 14px; font-size: 14px; }
.steps-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; }
.steps-list li { display: flex; gap: 10px; align-items: flex-start; }
.step-no {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary-dark);
  display: grid; place-items: center; font-weight: 700; font-size: 13px;
}
.step-txt { font-size: 13px; line-height: 1.7; color: var(--text); min-width: 0; }

/* 右侧办理流程指引（静态标准流程，带竖向连接线） */
.flow-guide { list-style: none; margin: 0; }
.flow-guide li { position: relative; display: flex; gap: 10px; align-items: flex-start; padding-bottom: 16px; }
.flow-guide li:last-child { padding-bottom: 0; }
.flow-guide li:not(:last-child)::before {
  content: ''; position: absolute; left: 12px; top: 28px; bottom: 2px; width: 2px; background: var(--border);
}
.fg-dot {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary-dark);
  display: grid; place-items: center; font-weight: 700; font-size: 13px; z-index: 1;
}
.fg-txt { font-size: 13px; line-height: 1.5; padding-top: 3px; min-width: 0; }
.fg-txt b { font-weight: 600; }
.fg-txt small { display: block; color: var(--text-light); font-size: 12px; line-height: 1.5; margin-top: 1px; }

.ht-page .risk-box { margin: 18px 0 0; }
.ht-back { margin-top: 20px; display: flex; justify-content: center; }

@media (max-width: 900px) {
  .dl-layout { flex-direction: column; gap: 18px; }
  .dl-action { width: 100%; }
  .steps-list { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 600px) {
  .dl-meta { grid-template-columns: 1fr; }
  .ht-page .card-body { padding: 16px; }
}

/* ============ 访问分析 ============ */
.access-range { display: flex; gap: 6px; flex-wrap: wrap; }
.trend-legend { display: flex; gap: 18px; margin-bottom: 6px; font-size: 13px; color: var(--text-light); }
.trend-legend .lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.lg-pv { background: linear-gradient(180deg, #3b82f6, #1e5bb8); }
.lg-uv { background: #93c5fd; }

.bar-chart.dual { gap: 3px; overflow-x: auto; }
.bar-col.dual-col { min-width: 0; }
.bar-pair { flex: 1; display: flex; align-items: flex-end; gap: 3px; width: 100%; justify-content: center; }
.bar-pair .bar { width: 42%; max-width: 15px; min-height: 2px; }
.bar.pv { background: linear-gradient(180deg, #3b82f6, #1e5bb8); }
.bar.uv { background: #93c5fd; border-radius: 4px 4px 0 0; }

.delta { font-size: 12px; margin-left: 6px; font-weight: 600; }
.delta.up { color: #15803d; }
.delta.down { color: #dc2626; }

.v-mini { display: flex; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.v-mini > div { display: flex; align-items: center; gap: 8px; font-size: 14px; }

.path-code { font-family: Consolas, Menlo, monospace; font-size: 12px; background: #f3f4f6; padding: 2px 6px; border-radius: 4px; word-break: break-all; }
#access-log-tbody .path-code { display: inline-block; min-width: 190px; }

@media (max-width: 600px) {
  .access-range .btn { padding: 4px 8px; font-size: 12px; }
  .bar-pair .bar { max-width: 12px; }
}

/* ============ 缴费审核筛选 ============ */
.filter-bar .pay-date { width: 150px; min-width: 0; }
@media (max-width: 600px) {
  .filter-bar .pay-date { width: 100%; }
}

/* ============ 官网网页快照弹窗 ============ */
.snap-list { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow-y: auto; }
.snap-item { border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 12px; background: #fafafa; }
.snap-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.snap-kind { display: inline-block; font-size: 12px; font-weight: 600; color: #1e5bb8; background: #e8f0fe; border-radius: 4px; padding: 2px 8px; }
.snap-time { font-size: 12px; color: #9ca3af; }
.snap-url { font-size: 12.5px; color: #4b5563; word-break: break-all; margin-bottom: 8px; }
.snap-ops { display: flex; gap: 8px; }
.snap-ops .btn { padding: 3px 12px; }
.empty-tip { padding: 28px 16px; text-align: center; font-size: 13px; color: #6b7280; line-height: 1.8; }
@media (max-width: 600px) {
  .snap-meta { flex-direction: column; align-items: flex-start; }
  .snap-ops .btn { flex: 1; }
}
