/* ============================================================
 * 招标项目管理系统 — 政务网风格样式
 * 博衡咨询品牌主题：深藏青蓝 + 香槟金 / 信息密度高 / 传统门户 + 现代质感
 * 注：变量名沿用 --gov-blue 以兼容历史引用，实际值为品牌蓝色系
 * ============================================================ */

:root {
  --gov-blue:        #12305f;   /* 主品牌藏青（导航高亮/按钮/链接） */
  --gov-blue-dark:   #0b2249;   /* 深海蓝 */
  --gov-blue-light:  #e9eff8;   /* 浅蓝底 */
  --gov-blue-hover:  #1a447e;
  --gov-red:         #1a447e;   /* 品牌强调蓝（标题竖线/强调） */
  --gold:            #9c7434;   /* 香槟金 */
  --text-main:       #111b30;
  --text-sub:        #39465e;
  --text-light:      #6b7689;
  --border:          #e3e8f0;
  --border-light:    #eef2f7;
  --bg-page:         #f4f6fa;
  --bg-card:         #ffffff;
  --sidebar-w:       232px;
  --header-h:        60px;
  /* —— 设计系统 Token（与 design-system.html 对齐）—— */
  --navy-900:        #071733;   /* 深海蓝（页脚/深色底） */
  --navy-800:        #0b2249;   /* 品牌藏青深 */
  --navy-700:        #12305f;   /* 主品牌藏青 */
  --navy-600:        #1a447e;   /* 交互蓝 */
  --navy-500:        #265aa0;   /* 链接蓝 */
  --navy-100:        #e9eff8;   /* 浅蓝底 */
  --ink-900:         #111b30;   /* 正文深色 */
  --ink-700:         #39465e;   /* 次要文字 */
  --ink-500:         #6b7689;   /* 辅助文字 */
  --font-serif:      "Noto Serif SC","Songti SC","STSong","SimSun",serif;
  --font-sans:       "PingFang SC","Microsoft YaHei","Hiragino Sans GB",system-ui,sans-serif;
  --gold-500:        #c9a961;   /* 香槟金主色 */
  --gold-400:        #dec081;   /* 浅金（深色底文字） */
  --gold-100:        #f6efdc;   /* 金底色 */
  --gold-600:        #9c7434;   /* 深金（金色文字） */
  --sh-1:            0 1px 3px rgba(11,34,73,.06);   /* 轻微浮起 */
  --sh-2:            0 6px 20px rgba(11,34,73,.09);  /* 卡片悬停 */
  --sh-3:            0 16px 44px rgba(11,34,73,.16); /* 弹窗浮层 */
  --ease:            cubic-bezier(.22,1,.36,1);      /* 指数缓动 */
  --shadow:          var(--sh-1);
  --shadow-lg:       var(--sh-3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  font-size: 14px;
  color: var(--text-main);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gov-blue); text-decoration: none; }
a:hover { color: var(--gov-blue-hover); }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; outline: none; }
button { cursor: pointer; }

/* ============ 通用组件 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 16px; border: 1px solid var(--border);
  border-radius: 4px; background: #fff; color: var(--text-main);
  font-size: 13px; transition: all .18s; white-space: nowrap;
}
.btn:hover { border-color: var(--gov-blue); color: var(--gov-blue); }
.btn-primary { background: var(--gov-blue); border-color: var(--gov-blue); color: #fff; }
.btn-primary:hover { background: var(--gov-blue-hover); border-color: var(--gov-blue-hover); color: #fff; }
.btn-danger { background: #fff; border-color: #e0b4b4; color: #c8161d; }
.btn-danger:hover { background: #c8161d; border-color: #c8161d; color: #fff; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--gov-blue); }
.btn-ghost:hover { background: var(--gov-blue-light); }
.btn-block { width: 100%; }

.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px;
  border-radius: 3px; font-size: 12px; font-weight: 500;
}
.tag-success { background: #e6f4ea; color: #137333; }
.tag-warning { background: #fef3e0; color: #b06000; }
.tag-danger  { background: #fce8e8; color: #c8161d; }
.tag-info    { background: var(--gov-blue-light); color: var(--gov-blue); }
.tag-gray    { background: #f1f3f4; color: #5f6368; }

.card { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 6px; box-shadow: var(--shadow); }

.loading { text-align: center; padding: 40px; color: var(--text-light); }

/* ============ 登录页 ============ */
.login-page {
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 12% 8%, rgba(18,48,95,.92), transparent 60%),
    radial-gradient(1000px 600px at 95% 90%, rgba(15,63,122,.85), transparent 55%),
    linear-gradient(135deg, #071733 0%, #12305f 50%, #0b2249 100%);
  position: relative; overflow: hidden; display: flex; flex-direction: column;
}
.login-page::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px; pointer-events: none;
}
.login-top {
  position: relative; z-index: 2; height: 78px; display: flex; align-items: center;
  padding: 0 48px; color: #fff;
}
.login-logo { display: flex; align-items: center; gap: 12px; }
.login-logo .emblem {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.4);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.login-logo h1 { font-size: 20px; font-weight: 600; letter-spacing: 1px; }
.login-logo p { font-size: 12px; color: rgba(255,255,255,.7); margin-top: 2px; letter-spacing: 3px; }

.login-body {
  position: relative; z-index: 2; flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 80px;
  padding: 0 48px 60px;
}
.login-intro { color: #fff; max-width: 480px; }
.login-intro h2 { font-size: 40px; line-height: 1.35; font-weight: 700; margin-bottom: 22px; }
.login-intro h2 span { color: #dec081; }
.login-intro .sub { font-size: 16px; color: rgba(255,255,255,.82); line-height: 2; margin-bottom: 32px; }
.login-features { display: flex; gap: 28px; }
.login-features div { display: flex; align-items: center; gap: 9px; font-size: 13px; color: rgba(255,255,255,.85); }
.login-features i { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 16px; }

.login-card {
  width: 400px; background: #fff; border-radius: 10px; box-shadow: 0 20px 70px rgba(0,0,0,.28);
  padding: 34px 34px 28px; flex-shrink: 0;
}
.login-card h3 { font-size: 22px; margin-bottom: 6px; color: var(--text-main); }
.login-card .tip { color: var(--text-light); font-size: 13px; margin-bottom: 26px; }
.login-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.login-tabs button {
  flex: 1; height: 40px; background: none; border: none; color: var(--text-sub);
  font-size: 14px; position: relative;
}
.login-tabs button.active { color: var(--gov-blue); font-weight: 600; }
.login-tabs button.active::after {
  content: ''; position: absolute; bottom: -1px; left: 20%; right: 20%; height: 2px; background: var(--gov-blue);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-sub); margin-bottom: 7px; }
.input-wrap { position: relative; }
.input-wrap .ico {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-light); font-size: 15px;
}
.input-wrap input {
  width: 100%; height: 44px; padding: 0 12px 0 38px;
  border: 1px solid var(--border); border-radius: 5px; background: #fafbfd; transition: all .18s;
}
.input-wrap input:focus { border-color: var(--gov-blue); background: #fff; box-shadow: 0 0 0 3px rgba(18,48,95,.10); }
.login-btn {
  width: 100%; height: 44px; border: none; border-radius: 5px; margin-top: 6px;
  background: linear-gradient(135deg, var(--gov-blue-hover), var(--gov-blue));
  color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 2px; transition: all .2s;
}
.login-btn:hover { box-shadow: 0 6px 18px rgba(18,48,95,.35); }
.login-quick { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--border); }
.login-quick p { font-size: 12px; color: var(--text-light); margin-bottom: 10px; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick-btn {
  height: 34px; border: 1px solid var(--border); border-radius: 4px; background: #fff;
  font-size: 12px; color: var(--text-sub); transition: all .15s;
}
.quick-btn:hover { border-color: var(--gov-blue); color: var(--gov-blue); background: var(--gov-blue-light); }
.quick-btn .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; }
.login-footer {
  position: relative; z-index: 2; text-align: center; color: rgba(255,255,255,.6);
  font-size: 12px; padding-bottom: 18px;
}

/* ============ 应用框架 ============ */
.app { display: none; min-height: 100vh; }
.app.show { display: block; }

.topbar {
  height: var(--header-h); background: var(--gov-blue); color: #fff;
  display: flex; align-items: center; padding: 0 24px; position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  box-shadow: 0 1px 6px rgba(0,0,0,.15);
}
.topbar .brand { display: flex; align-items: center; gap: 10px; width: var(--sidebar-w); flex-shrink: 0; }
.topbar .brand .emblem {
  width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.16);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.topbar .brand b { font-size: 16px; letter-spacing: .5px; }
.topbar .topnav { display: flex; gap: 4px; flex: 1; }
.topbar .topnav a {
  color: rgba(255,255,255,.85); padding: 8px 16px; border-radius: 4px; font-size: 14px; transition: all .15s;
}
.topbar .topnav a:hover, .topbar .topnav a.active { background: rgba(255,255,255,.14); color: #fff; }
.topbar .right { display: flex; align-items: center; gap: 16px; }
.topbar .role-badge {
  padding: 4px 10px; border-radius: 12px; background: rgba(255,255,255,.15);
  font-size: 12px; border: 1px solid rgba(255,255,255,.25);
}
.topbar .user-info { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.topbar .avatar {
  width: 30px; height: 30px; border-radius: 50%; background: #dec081; color: #7a5a00;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px;
}
.topbar .user-info span { font-size: 13px; }

.layout { display: flex; padding-top: var(--header-h); min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0; background: #fff; border-right: 1px solid var(--border);
  position: fixed; top: var(--header-h); bottom: 0; left: 0; overflow-y: auto; z-index: 90;
}
.sidebar .menu-group { padding: 12px 0 4px; }
.sidebar .menu-title {
  padding: 8px 22px; font-size: 11px; color: var(--text-light); letter-spacing: 1px; font-weight: 600;
}
.sidebar .menu-item {
  display: flex; align-items: center; gap: 11px; height: 42px; padding: 0 22px;
  color: var(--text-sub); font-size: 14px; cursor: pointer; transition: all .15s; position: relative;
}
.sidebar .menu-item:hover { background: var(--gov-blue-light); color: var(--gov-blue); }
.sidebar .menu-item.active { background: var(--gov-blue-light); color: var(--gov-blue); font-weight: 600; }
.sidebar .menu-item.active::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; background: var(--gov-blue); border-radius: 0 3px 3px 0;
}
.sidebar .menu-item .mi { width: 18px; text-align: center; font-size: 15px; }
.sidebar .menu-item .arrow { margin-left: auto; font-size: 10px; color: var(--text-light); transition: transform .2s; }
.sidebar .menu-item.open .arrow { transform: rotate(90deg); }
.sidebar .submenu { overflow: hidden; max-height: 0; transition: max-height .25s; }
.sidebar .submenu.show { max-height: 400px; }
.sidebar .submenu .menu-item { padding-left: 51px; height: 38px; font-size: 13px; }

.main { flex: 1; margin-left: var(--sidebar-w); min-height: calc(100vh - var(--header-h)); }
.breadcrumb {
  height: 48px; display: flex; align-items: center; padding: 0 28px; background: #fff;
  border-bottom: 1px solid var(--border-light); font-size: 13px; color: var(--text-light);
}
.breadcrumb b { color: var(--text-main); font-weight: 500; }
.breadcrumb .sep { margin: 0 8px; color: #c4ccd6; }
.content { padding: 22px 28px 40px; }

.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.page-head h2 { font-size: 20px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.page-head h2::before { content: ''; width: 4px; height: 18px; background: var(--gov-blue); border-radius: 2px; }
.page-head .desc { font-size: 13px; color: var(--text-light); margin-top: 4px; }
.page-head .actions { display: flex; gap: 8px; }

/* ============ 表格 ============ */
.table-wrap { background: #fff; border: 1px solid var(--border-light); border-radius: 6px; box-shadow: var(--shadow); overflow: hidden; }
.toolbar {
  padding: 14px 18px; border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.toolbar .search { display: flex; align-items: center; gap: 6px; }
.toolbar input, .toolbar select {
  height: 34px; border: 1px solid var(--border); border-radius: 4px; padding: 0 10px; background: #fff; color: var(--text-main);
}
.toolbar input:focus, .toolbar select:focus { border-color: var(--gov-blue); }
.toolbar .spacer { flex: 1; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table thead th {
  background: #f7f9fc; color: var(--text-sub); font-weight: 600; text-align: left;
  padding: 11px 14px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.data-table tbody td { padding: 12px 14px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.data-table tbody tr:hover { background: #f9fbfe; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table .link { color: var(--gov-blue); cursor: pointer; }
.data-table .link:hover { text-decoration: underline; }
.data-table .cell-title { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.data-table .muted { color: var(--text-light); font-size: 12px; }
.pagination {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; border-top: 1px solid var(--border-light); font-size: 12px; color: var(--text-light);
}
.pagination .pages { display: flex; gap: 5px; }
.pagination .pages button {
  min-width: 28px; height: 28px; border: 1px solid var(--border); background: #fff; border-radius: 3px; color: var(--text-sub);
}
.pagination .pages button.active { background: var(--gov-blue); border-color: var(--gov-blue); color: #fff; }

/* ============ 统计卡片 ============ */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card { background: #fff; border: 1px solid var(--border-light); border-radius: 6px; padding: 18px 20px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat-card .label { font-size: 13px; color: var(--text-sub); }
.stat-card .value { font-size: 30px; font-weight: 700; margin: 8px 0 4px; color: var(--text-main); }
.stat-card .foot { font-size: 12px; color: var(--text-light); }
.stat-card .ic { position: absolute; right: 16px; top: 16px; width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 19px; opacity: .85; }
.stat-card.c1 .ic { background: #e8f1fc; color: #1a5fb4; }
.stat-card.c2 .ic { background: #e6f4ea; color: #137333; }
.stat-card.c3 .ic { background: #fef3e0; color: #b06000; }
.stat-card.c4 .ic { background: #f3e8fd; color: #7627bb; }

/* ============ 门户首页（参考招标代理机构官网版式） ============ */
.portal { display: none; background: #f4f5f7; }
.portal.show { display: block; }
.portal-header { background: #fff; }
.portal-topbar { height: 34px; background: var(--gov-blue); color: #fff; font-size: 13px; }
.portal-topbar .inner { max-width: 1180px; margin: 0 auto; height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }
.portal-topbar span:last-child { display: flex; gap: 18px; }
.portal-topbar a { color: #fff; opacity: .9; }
.portal-topbar a:hover { opacity: 1; text-decoration: underline; }
.portal-main-head { max-width: 1180px; margin: 0 auto; height: 146px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }
.portal-brand { display: flex; align-items: center; gap: 18px; cursor: pointer; }
.portal-brand .brand-title h1 { font-size: 28px; }
.portal-brand .brand-title p { font-size: 11px; }
.portal-head-right { text-align: right; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.portal-head-slogan {
  font-size: 15px; color: var(--gov-blue); letter-spacing: 4px; font-weight: 600;
  padding-right: 12px; border-right: 3px solid var(--gov-red);
}
.portal-brand .emblem {
  width: 64px; height: 52px; border-radius: 0; background: none; position: relative; flex-shrink: 0;
}
.portal-brand .emblem::before {
  content: ''; position: absolute; left: 0; top: 0; width: 37px; height: 52px; background: #12305f;
  clip-path: polygon(0 0, 100% 0, 100% 42%, 0 100%);
}
.portal-brand .emblem::after {
  content: ''; position: absolute; right: 0; top: 0; width: 37px; height: 52px; background: var(--gov-blue);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 58%);
}
.portal-brand .emblem i {
  position: absolute; z-index: 2; left: 24px; top: 17px; width: 16px; height: 16px;
  background: #fff; transform: rotate(45deg); box-shadow: 0 0 0 3px rgba(255,255,255,.25);
}
.portal-brand h1 { font-size: 26px; color: #0b2249; letter-spacing: 1px; font-weight: 700; }
.portal-brand p { font-size: 10px; color: #8a94a3; letter-spacing: 1.6px; margin-top: 4px; }
.portal-date { font-size: 12px; color: var(--text-light); }
.portal-nav { border-bottom: 2px solid var(--gov-red); background: #fff; }
.portal-nav .inner { max-width: 1180px; margin: 0 auto; display: flex; padding: 0 20px; }
.portal-nav a {
  color: var(--gov-blue); padding: 0 18px; height: 42px; display: flex; align-items: center;
  font-size: 14px; white-space: nowrap; position: relative;
}
.portal-nav a:hover { color: var(--gov-red); }
.portal-nav a.active { font-weight: 700; color: var(--gov-red); }
.portal-nav a.active::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: -2px; height: 2px; background: var(--gov-red); }
.portal-hero {
  height: 360px; position: relative; background: #12305f url('../assets/portal-banner.svg') center center / cover no-repeat;
}
.portal-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,60,110,.25), rgba(10,60,110,0) 55%); pointer-events: none; }
.portal-hero-inner { max-width: 1180px; height: 100%; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: flex-end; position: relative; z-index: 2; }
.hero-copy { width: 100%; text-align: center; color: #fff; text-shadow: 0 2px 12px rgba(0,42,85,.25); }
.hero-copy h2 { font-size: 42px; font-weight: 500; letter-spacing: 6px; line-height: 1.5; }
.hero-copy p { font-size: 42px; font-weight: 500; letter-spacing: 6px; line-height: 1.5; }
.hero-dots { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dots button { width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(255,255,255,.9); background: rgba(255,255,255,.35); padding: 0; }
.hero-dots button.active { background: #fff; }

/* Banner 下方统一服务区：登录卡片紧跟横幅 */
/* 客户 LOGO 图片（白底，深色背景处加白色底板） */
.logo-img { display: block; height: 44px; width: auto; object-fit: contain; }
.login-logo .logo-img { height: 46px; background: #fff; border-radius: 4px; padding: 3px 6px; }
.logo-divider { width: 1px; height: 34px; background: rgba(255,255,255,.3); margin: 0 4px; }
.topbar .brand .logo-img { height: 30px; background: #fff; border-radius: 3px; padding: 2px 4px; }
.portal-brand .logo-img { height: 118px; }

.portal-entry { background: #fff; border-bottom: 1px solid #e5e7eb; padding: 20px 0; }
.portal-entry .inner { max-width: 1180px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1.08fr 1fr; gap: 20px; align-items: stretch; }
.portal-entry-side { display: flex; flex-direction: column; gap: 14px; }
.portal-entry-main > .portal-box { height: 100%; }
.portal-qual-strip { flex: 1; display: flex; flex-direction: column; }
.portal-qual-strip .box-body { flex: 1; display: flex; align-items: center; }
.portal-entry .portal-login-compact .box-head {
  height: 42px; padding: 0 16px; background: linear-gradient(90deg, var(--gov-blue-dark), var(--gov-blue));
  border-bottom: none;
}
.portal-entry .portal-login-compact .box-head h3 { color: #fff; font-size: 15px; }
.portal-entry .portal-login-compact .box-head h3::before { background: #dec081; height: 16px; }
.portal-entry .portal-login-compact .login-state {
  color: rgba(255,255,255,.95); font-size: 11px; border: 1px solid rgba(255,255,255,.45);
  border-radius: 10px; padding: 2px 9px;
}
.portal-login-compact .pl-tabs { padding: 0 16px; }
.portal-login-compact .pl-tabs button { height: 38px; font-size: 13px; }
.portal-login-compact #plPwdForm,
.portal-login-compact #plSmsForm { padding: 14px 16px 0; }
.portal-login-compact .pl-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.portal-login-compact .pl-field { height: 40px; margin-bottom: 0; background: #fbfcfe; }
.portal-login-compact .pl-field .ico { width: 18px; color: var(--gov-blue); }
.portal-login-compact .pl-field input { font-size: 13px; }
.portal-login-compact .pl-code { height: 28px; top: 6px; right: 5px; font-size: 11px; }
.portal-login-compact .pl-login-row { display: flex; align-items: center; gap: 12px; margin: 14px 16px 0; }
.portal-login-compact .pl-login-btn {
  flex: 1.5; height: 46px; margin: 0;
  font-size: 17px; font-weight: 600; letter-spacing: 8px; border-radius: 4px;
  background: linear-gradient(90deg, #12305f, #265aa0); box-shadow: 0 3px 12px rgba(18,48,95,.3);
}
.portal-login-compact .pl-login-btn:hover { background: linear-gradient(90deg, #0b2249, #12305f); }
.portal-login-compact .pl-register-btn {
  flex: 1; height: 46px; border: 1px solid var(--gov-blue); border-radius: 4px;
  background: #f5f9ff; color: var(--text-sub); font-size: 12px; white-space: nowrap;
  transition: all .18s;
}
.portal-login-compact .pl-register-btn b { color: var(--gov-blue); font-weight: 600; }
.portal-login-compact .pl-register-btn:hover { background: var(--gov-blue-light); border-color: var(--gov-blue-dark); }
.portal-login-compact .pl-login-extra { text-align: center; margin-top: 9px; }
.portal-login-compact .pl-login-extra a { font-size: 12px; color: var(--text-light); }
.portal-login-compact .pl-login-extra a:hover { color: var(--gov-red); text-decoration: underline; }
.portal-login-compact .pl-quick.compact {
  margin-top: 14px; padding: 12px 16px 14px; background: #f7f9fc; border-top: 1px solid var(--border-light);
}
.portal-login-compact .pl-quick-title { margin-bottom: 10px; font-size: 11px; }
.portal-login-compact .pl-quick-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
.portal-login-compact .pl-quick-grid button {
  height: 38px; gap: 8px; font-size: 12px; white-space: nowrap; justify-content: flex-start;
  padding: 0 10px; border-color: #dfe5ee; background: #fff; color: var(--text-main);
}
.portal-login-compact .pl-quick-grid button:hover { border-color: var(--gov-blue); color: var(--gov-blue); background: var(--gov-blue-light); }
.qbadge {
  width: 24px; height: 24px; border-radius: 5px; color: #fff; font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.qb-admin { background: #12305f; }
.qb-manager { background: #137333; }
.qb-owner { background: #b06000; }
.qb-supplier { background: #7627bb; }
.portal-login-compact .pl-reg { margin: 0; font-size: 12px; line-height: 1.5; }
.portal-login-compact .pl-reg a { color: var(--gov-blue); font-weight: 600; }
.portal-login-compact .pl-reg a:hover { text-decoration: underline; }
.portal-logined .logined-body.compact { padding: 18px 14px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.portal-logined .logined-body.compact .logined-user { margin-bottom: 0; flex: 1; }
.portal-logined .logined-body.compact .pl-login-btn { width: 160px; margin: 0; }
.portal-logined .logined-body.compact .pl-reg { width: 100%; text-align: right; margin-top: -6px; }
.qual-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.qual-mini .qual-img { height: 72px; border-width: 1px; }
.qual-mini .qual-icon { font-size: 19px; }
.qual-mini .qual-cap { font-size: 10px; margin-top: 3px; letter-spacing: 1px; }
.qual-mini .qual-seal { width: 22px; height: 22px; right: 6px; bottom: 5px; font-size: 6px; }
.qual-mini .qual-name {
  font-size: 11px; margin-top: 5px; line-height: 1.35; height: 30px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.portal-quick-strip { margin-top: 0; gap: 10px; grid-template-columns: repeat(4, 1fr); }
.portal-quick-strip .q { padding: 10px 4px; display: flex; flex-direction: column; align-items: center; }
.portal-quick-strip .q .qi { width: 30px; height: 30px; margin-bottom: 5px; font-size: 14px; }
.portal-quick-strip .q span { font-size: 12px; white-space: nowrap; }
.portal-section-title { display: flex; align-items: baseline; gap: 12px; margin: 22px 0 12px; }
.portal-section-title h2 { font-size: 18px; color: #24344a; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.portal-section-title h2::before { content: ''; width: 4px; height: 17px; background: var(--gov-red); border-radius: 2px; }
.portal-section-title span { font-size: 12px; color: var(--text-light); }

.portal-body { max-width: 1180px; margin: 0 auto; padding: 4px 20px 50px; }
.portal-board-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; align-items: start; }
.portal-board-grid-4 { grid-template-columns: repeat(4, 1fr); }
.portal-board-grid-sub { grid-template-columns: 1fr 1fr; }
.portal-service-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; margin-bottom: 20px; }
.portal-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.portal-box { background: #fff; border: 1px solid #e5e7eb; border-radius: 3px; box-shadow: 0 1px 3px rgba(15,45,80,.05); }
.portal-box .box-head {
  height: 42px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; border-bottom: 1px solid #eee; background: #fafafa;
}
.portal-box .box-head h3 { font-size: 15px; color: #24344a; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.portal-box .box-head h3::before { content: ''; width: 3px; height: 15px; background: var(--gov-red); border-radius: 2px; }
.portal-box .box-head a { font-size: 12px; color: #7b8491; display: flex; align-items: center; gap: 3px; }
.portal-box .box-head a:hover { color: var(--gov-red); }
.more-arrow { font-size: 10px; color: var(--gov-blue); }
.head-note { font-size: 12px; color: var(--text-light); }
.portal-box .box-body { padding: 8px 16px 14px; }
.portal-list li {
  display: flex; align-items: center; padding: 0 6px; height: 34px; border-bottom: 1px solid #f2f3f5; font-size: 13px; gap: 8px;
}
.portal-list li:last-child { border-bottom: none; }
.portal-list li .list-arrow { color: var(--gov-red); font-size: 16px; line-height: 1; flex-shrink: 0; }
.portal-list li .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gov-red); flex-shrink: 0; }
.portal-list li .txt { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #3d4654; cursor: pointer; }
.portal-list li .txt:hover { color: var(--gov-blue); text-decoration: underline; }
.portal-list li .date { color: #a2a8b0; font-size: 12px; flex-shrink: 0; }
.portal-list li.top .txt { color: var(--gov-red); font-weight: 600; }
.portal-list li.top .dot { background: var(--gov-red); }
.portal-board-list li { height: 32px; }
.portal-page-list li { height: 38px; font-size: 14px; }
.portal-list-search { display: flex; gap: 8px; padding: 8px 0 12px; border-bottom: 1px solid var(--border-light); margin-bottom: 6px; }
.portal-list-search input { flex: 1; height: 34px; border: 1px solid var(--border); border-radius: 3px; padding: 0 10px; font-size: 13px; }
.portal-list-search input:focus { border-color: var(--gov-blue); }
.portal-list-search button { height: 34px; padding: 0 18px; border: none; background: var(--gov-blue); color: #fff; border-radius: 3px; font-size: 13px; }
.portal-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 20px; }
.portal-quick .q {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 3px; padding: 16px 8px; text-align: center; cursor: pointer; transition: all .18s;
}
.portal-quick .q:hover { transform: translateY(-3px); border-color: var(--gov-blue); box-shadow: var(--shadow); }
.portal-quick .q .qi { width: 40px; height: 40px; margin: 0 auto 8px; border-radius: 50%; background: var(--gov-blue-light); color: var(--gov-blue); display: flex; align-items: center; justify-content: center; font-size: 17px; }
.portal-quick .q span { font-size: 13px; }
.portal-foot { text-align: center; padding: 24px 0; font-size: 12px; color: #8a94a3; border-top: 1px solid #e2e5e9; margin-top: 30px; }

/* 门户内页组件 */
/* 内页专题横幅 */
.inner-banner { height: 160px; position: relative; overflow: hidden; display: flex; align-items: center; color: #fff; }
.bid-banner { background: linear-gradient(120deg, #071733 0%, #12305f 55%, #265aa0 100%); }
.bid-banner::after {
  content: ''; position: absolute; right: 6%; top: -60px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.14), rgba(255,255,255,0) 70%);
}
.bid-banner::before {
  content: ''; position: absolute; right: 18%; bottom: -80px; width: 200px; height: 200px; border-radius: 50%;
  border: 30px solid rgba(255,255,255,.05);
}
.inner-banner .ib-inner { max-width: 1180px; margin: 0 auto; padding: 0 40px; position: relative; z-index: 2; width: 100%; }
.inner-banner .ib-inner h2 { font-size: 30px; letter-spacing: 4px; text-shadow: 0 2px 8px rgba(0,0,0,.15); }
.inner-banner .ib-inner p { font-size: 14px; margin-top: 10px; color: rgba(255,255,255,.88); letter-spacing: 2px; }
/* 内页左右布局 */
.inner-layout { max-width: 1180px; margin: 20px auto 0; padding: 0 20px; display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: start; }
.inner-side { background: #fff; border: 1px solid var(--border-light); border-radius: 3px; overflow: hidden; }
.inner-side .is-head {
  height: 54px; background: var(--gov-blue); color: #fff; font-size: 17px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; letter-spacing: 2px;
}
.inner-side a {
  display: block; height: 46px; line-height: 46px; padding: 0 20px; font-size: 14px; color: #4a5566;
  border-bottom: 1px solid #f0f1f3; position: relative;
}
.inner-side a:last-child { border-bottom: none; }
.inner-side a:hover { color: var(--gov-blue); background: #f5f9ff; }
.inner-side a.active { color: var(--gov-blue); font-weight: 600; background: #f5f9ff; }
.inner-side a.active::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gov-red); }
.inner-side a.active::after { content: '›'; position: absolute; right: 18px; color: var(--gov-blue); font-size: 18px; }
.inner-main { min-width: 0; }
.inner-crumb { font-size: 12px; color: #9aa3af; margin-bottom: 12px; }
.inner-title { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--border-light); margin-bottom: 14px; }
.inner-title h3 { font-size: 20px; color: var(--gov-blue-dark); position: relative; padding-left: 12px; }
.inner-title h3::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; background: var(--gov-red); border-radius: 2px; }
.inner-title span { font-size: 12px; color: var(--text-light); }
.inner-honesty {
  display: flex; align-items: center; justify-content: center; gap: 14px; height: 46px; margin-bottom: 16px;
  background: linear-gradient(90deg, #0b2249, #265aa0); border-radius: 3px; color: #f6efdc;
  font-size: 17px; letter-spacing: 3px; font-weight: 600;
}
.inner-honesty i { font-style: normal; opacity: .7; }
.inner-box { background: #fff; border: 1px solid var(--border-light); border-radius: 3px; margin-bottom: 16px; }
.inner-box .box-head { height: 42px; padding: 0 16px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }
.inner-box .box-head h3 { font-size: 15px; color: var(--text-main); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.inner-box .box-head h3::before { content: ''; width: 3px; height: 15px; background: var(--gov-red); border-radius: 2px; }
.inner-box .box-head .head-note, .inner-box .box-head .login-state { font-size: 12px; color: var(--text-light); }
.inner-box .box-body { padding: 14px 16px 16px; }
.inner-box .bid-steps { margin-bottom: 0; }
.inner-list li { height: 40px; font-size: 14px; border-bottom: 1px dashed #e8eaed; }
.inner-list li:last-child { border-bottom: none; }
.login-state { font-size: 12px; color: var(--text-light); }
.portal-logined .logined-body { padding: 22px 18px; }
.logined-user { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.logined-user .lu-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--gov-blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.logined-user b { display: block; font-size: 15px; color: var(--text-main); }
.logined-user span { display: block; font-size: 12px; color: var(--text-light); margin-top: 3px; }
.bid-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.bid-steps > div { background: #f7f9fc; border: 1px solid var(--border-light); border-radius: 4px; padding: 14px; text-align: center; }
.bid-steps b { display: block; width: 26px; height: 26px; margin: 0 auto 8px; border-radius: 50%; background: var(--gov-blue); color: #fff; line-height: 26px; }
.bid-steps span { display: block; font-size: 14px; font-weight: 600; color: var(--text-main); }
.bid-steps small { display: block; font-size: 11px; color: var(--text-light); margin-top: 4px; }
.portal-subtitle { font-size: 14px; color: var(--text-main); margin: 12px 0 4px; }
.portal-action-row { display: flex; gap: 10px; margin-top: 18px; justify-content: flex-end; }
.portal-download-list li { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--border-light); }
.portal-download-list li:last-child { border-bottom: none; }
.dl-ico { width: 38px; height: 38px; border-radius: 4px; background: #e8f1fc; color: var(--gov-blue); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.dl-main { flex: 1; }
.dl-main b { display: block; font-size: 14px; color: var(--text-main); }
.dl-main span { display: block; font-size: 12px; color: var(--text-light); margin-top: 3px; }
.portal-join p { font-size: 14px; color: var(--text-sub); line-height: 2; }
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.join-grid > div { border: 1px solid var(--border-light); border-radius: 4px; padding: 14px; background: #fafbfc; }
.join-grid b { display: block; font-size: 14px; color: var(--text-main); }
.join-grid span { display: block; font-size: 12px; color: var(--text-light); margin-top: 6px; line-height: 1.7; }

@media (max-width: 900px) {
  .portal-main-head { height: 84px; }
  .portal-brand .logo-img { height: 58px; }
  .portal-brand .brand-title h1 { font-size: 19px; }
  .portal-head-slogan { display: none; }
  .portal-brand p, .portal-date { display: none; }
  .portal-nav .inner { overflow-x: auto; padding: 0 10px; }
  .portal-nav a { padding: 0 12px; font-size: 13px; }
  .portal-hero { height: 260px; }
  .hero-copy { width: 100%; padding: 0 20px; }
  .hero-copy h2, .hero-copy p { font-size: 26px; letter-spacing: 3px; }
  .portal-entry .inner { grid-template-columns: 1fr; }
  .portal-login-compact .pl-form-row { grid-template-columns: 1fr; gap: 8px; }
  .portal-login-compact .pl-quick-grid { grid-template-columns: repeat(2, 1fr); }
  .qual-strip { grid-template-columns: repeat(2, 1fr); }
  .portal-quick-strip .q span { white-space: normal; }
  .portal-board-grid, .portal-board-grid-4, .portal-info-grid { grid-template-columns: 1fr; }
  .bid-steps, .join-grid { grid-template-columns: 1fr 1fr; }
  .inner-layout { grid-template-columns: 1fr; }
  .inner-side { display: flex; flex-wrap: wrap; }
  .inner-side .is-head { width: 100%; height: 44px; }
  .inner-side a { flex: 1; min-width: 110px; text-align: center; padding: 0 8px; }
  .inner-banner .ib-inner h2 { font-size: 22px; }
}

/* ============ 工作台 ============ */
.workbench-welcome {
  background: linear-gradient(120deg, var(--gov-blue), #0b2249); color: #fff;
  border-radius: 8px; padding: 26px 30px; margin-bottom: 20px; position: relative; overflow: hidden;
}
.workbench-welcome::after { content: ''; position: absolute; right: -40px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.06); }
.workbench-welcome h2 { font-size: 23px; margin-bottom: 6px; }
.workbench-welcome p { color: rgba(255,255,255,.8); font-size: 13px; }
.wb-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
.wb-box { background: #fff; border: 1px solid var(--border-light); border-radius: 6px; box-shadow: var(--shadow); }
.wb-box .box-head { padding: 14px 18px; border-bottom: 1px solid var(--border-light); display: flex; justify-content: space-between; align-items: center; }
.wb-box .box-head h3 { font-size: 15px; }
.wb-box .box-body { padding: 14px 18px; }

/* ============ 项目详情 ============ */
.detail-card { background: #fff; border: 1px solid var(--border-light); border-radius: 6px; box-shadow: var(--shadow); margin-bottom: 18px; }
.detail-card .dc-head { padding: 16px 22px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }
.detail-card .dc-head h3 { font-size: 16px; display: flex; align-items: center; gap: 10px; }
.detail-card .dc-body { padding: 20px 22px; }
.detail-hero { background: linear-gradient(120deg, #fff, #f4f8fd); }
.detail-hero h1 { font-size: 22px; margin-bottom: 8px; }
.detail-hero .meta { display: flex; gap: 24px; flex-wrap: wrap; font-size: 13px; color: var(--text-sub); }
.detail-hero .meta b { color: var(--text-main); }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 24px; }
.info-item { display: flex; flex-direction: column; gap: 4px; }
.info-item .k { font-size: 12px; color: var(--text-light); }
.info-item .v { font-size: 14px; color: var(--text-main); }
.info-item .v.hl { color: var(--gov-blue); font-weight: 600; }

.timeline { padding: 8px 0; }
.tl-item { display: flex; gap: 16px; position: relative; padding-bottom: 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ''; position: absolute; left: 13px; top: 28px; bottom: -4px; width: 2px; background: var(--border); }
.tl-item:last-child::before { display: none; }
.tl-item.done::before { background: var(--gov-blue); }
.tl-dot { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; background: #f1f3f4; color: var(--text-light); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border); z-index: 2; }
.tl-item.done .tl-dot { background: var(--gov-blue); color: #fff; box-shadow: 0 0 0 1px var(--gov-blue); }
.tl-item.current .tl-dot { background: #dec081; color: #6b4e00; box-shadow: 0 0 0 2px #f6efdc; }
.tl-content { flex: 1; padding-top: 3px; }
.tl-content .tl-title { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.tl-content .tl-time { font-size: 12px; color: var(--text-sub); margin-top: 5px; }
.tl-content .tl-note { font-size: 12px; color: var(--text-light); margin-top: 3px; }

.tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 18px; gap: 4px; }
.tabs button { padding: 10px 18px; background: none; border: none; color: var(--text-sub); font-size: 14px; position: relative; }
.tabs button.active { color: var(--gov-blue); font-weight: 600; }
.tabs button.active::after { content: ''; position: absolute; bottom: -1px; left: 12px; right: 12px; height: 2px; background: var(--gov-blue); }

/* ============ 弹窗 ============ */
.modal-mask { position: fixed; inset: 0; background: rgba(15,30,50,.5); z-index: 500; display: none; align-items: flex-start; justify-content: center; padding: 6vh 20px 20px; overflow-y: auto; }
.modal-mask.show { display: flex; }
.modal { width: 560px; max-width: 100%; background: #fff; border-radius: 8px; box-shadow: var(--shadow-lg); animation: modalIn .2s ease; }
.modal.wide { width: 760px; }
@keyframes modalIn { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { padding: 18px 24px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }
.modal-head h3 { font-size: 17px; }
.modal-head .close { background: none; border: none; font-size: 20px; color: var(--text-light); line-height: 1; }
.modal-head .close:hover { color: var(--text-main); }
.modal-body { padding: 22px 24px; }
.modal-foot { padding: 14px 24px; border-top: 1px solid var(--border-light); display: flex; justify-content: flex-end; gap: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-item { display: flex; flex-direction: column; gap: 6px; }
.form-item.full { grid-column: 1 / -1; }
.form-item label { font-size: 13px; color: var(--text-sub); }
.form-item label .req { color: var(--gov-red); margin-right: 2px; }
.form-item input, .form-item select, .form-item textarea {
  height: 38px; border: 1px solid var(--border); border-radius: 4px; padding: 0 11px; background: #fff; color: var(--text-main);
}
.form-item textarea { height: 84px; padding: 9px 11px; resize: vertical; }
.form-item input:focus, .form-item select:focus, .form-item textarea:focus { border-color: var(--gov-blue); box-shadow: 0 0 0 3px rgba(18,48,95,.08); }
.form-item input[readonly] { background: #f7f9fc; color: var(--text-light); }

/* ============ 提示 ============ */
.toast {
  position: fixed; top: 76px; left: 50%; transform: translateX(-50%) translateY(-20px);
  background: #323c4a; color: #fff; padding: 11px 22px; border-radius: 5px; font-size: 13px;
  z-index: 999; opacity: 0; transition: all .25s; box-shadow: var(--shadow-lg); pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { background: #137333; }
.toast.err { background: #c8161d; }

.empty { text-align: center; padding: 50px 20px; color: var(--text-light); }
.empty .e-ico { font-size: 40px; opacity: .4; margin-bottom: 10px; }

.badge-count { display: inline-flex; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gov-red); color: #fff; font-size: 11px; align-items: center; justify-content: center; margin-left: 6px; }

@media (max-width: 1100px) {
  .topbar .brand { width: auto; min-width: 160px; }
  .topbar .topnav a { padding: 8px 10px; font-size: 13px; white-space: nowrap; }
  .topbar .right .role-badge { display: none; }
}

@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .portal-grid, .wb-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .login-body { flex-direction: column; gap: 24px; padding-top: 24px; padding-bottom: 30px; align-items: center; }
  .login-intro { display: block; max-width: 480px; width: 100%; text-align: center; }
  .login-intro h2 { font-size: 26px; }
  .login-intro .sub { display: none; }
  .login-features { justify-content: center; }
  .topbar .topnav { display: none; }
  .sidebar { width: 200px; }
  .main { margin-left: 200px; }
}

/* ============ 资质图片展示（V1.1 新增） ============ */
.qual-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.qual-item { cursor: pointer; transition: transform .18s; }
.qual-item:hover { transform: translateY(-3px); }
.qual-img {
  height: 108px; border-radius: 5px; position: relative; overflow: hidden;
  border: 2px solid #d4b96a; background: linear-gradient(150deg, #fdfaf0, #f5ecd2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.qual-img::before {
  content: ''; position: absolute; inset: 5px; border: 1px solid rgba(156,116,52,.35); border-radius: 2px; pointer-events: none;
}
.qual-img.q-license { background: linear-gradient(150deg, #f7fbf7, #e7f1e7); border-color: #8fb58f; }
.qual-img.q-cert    { background: linear-gradient(150deg, #f7f9fd, #e5edf8); border-color: #8fa9cf; }
.qual-img.q-iso     { background: linear-gradient(150deg, #fbf8fd, #efe7f6); border-color: #b49acf; }
.qual-img.q-honor   { background: linear-gradient(150deg, #fdfaf0, #f5ecd2); border-color: #d4b96a; }
.qual-icon { font-size: 26px; font-weight: 700; color: #8a6d1f; letter-spacing: 1px; }
.q-license .qual-icon { color: #4a7a4a; }
.q-cert .qual-icon { color: #4a6fa5; }
.q-iso .qual-icon { color: #7a4fa5; }
.qual-cap { font-size: 11px; color: var(--text-sub); margin-top: 5px; letter-spacing: 2px; }
.qual-seal {
  position: absolute; right: 10px; bottom: 8px; width: 30px; height: 30px; border: 2px solid rgba(200,22,29,.45);
  border-radius: 50%; color: rgba(200,22,29,.45); font-size: 8px; display: flex; align-items: center; justify-content: center;
  transform: rotate(-15deg);
}
.qual-seal::after { content: '章'; }
.qual-name { font-size: 12px; color: var(--text-main); text-align: center; margin-top: 8px; line-height: 1.4; }

@media (max-width: 900px) {
  .qual-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 登录页资质展示区 */
.login-quals { margin-top: 26px; }
.login-quals h4 { font-size: 12px; color: rgba(255,255,255,.7); letter-spacing: 2px; margin-bottom: 12px; font-weight: 400; }
.login-quals .qual-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
.login-quals .qual-img { height: 84px; }
.login-quals .qual-icon { font-size: 21px; }
.login-quals .qual-name { font-size: 11px; color: rgba(255,255,255,.85); }

/* ============ 门户首页登录卡片 ============ */
.portal-login-card:not(.portal-login-compact) .box-head h3::before { background: var(--gov-red); }
.pl-tabs { display: flex; border-bottom: 1px solid var(--border-light); padding: 0 18px; }
.pl-tabs button {
  flex: 1; height: 40px; background: none; border: none; color: var(--text-sub);
  font-size: 14px; position: relative;
}
.pl-tabs button.active { color: var(--gov-blue); font-weight: 600; }
.pl-tabs button.active::after {
  content: ''; position: absolute; left: 25%; right: 25%; bottom: 0; height: 2px; background: var(--gov-blue);
}
.portal-login-card #plPwdForm,
.portal-login-card #plSmsForm { padding: 16px 18px 0; }
.pl-field {
  display: flex; align-items: center; height: 40px; border: 1px solid var(--border);
  border-radius: 4px; margin-bottom: 12px; padding: 0 10px; position: relative; transition: border-color .18s;
}
.pl-field:focus-within { border-color: var(--gov-blue); }
.pl-field .ico { color: var(--text-light); font-size: 13px; width: 20px; text-align: center; }
.pl-field input { flex: 1; height: 100%; border: none; font-size: 13px; color: var(--text-main); background: transparent; }
.pl-field input::placeholder { color: var(--text-light); }
.pl-code {
  position: absolute; right: 5px; top: 5px; height: 28px; padding: 0 10px;
  border: 1px solid var(--gov-blue); color: var(--gov-blue); background: #fff;
  border-radius: 3px; font-size: 12px;
}
.pl-code:hover { background: var(--gov-blue-light); }
.pl-login-btn {
  display: block; width: calc(100% - 36px); margin: 4px 18px 0; height: 42px;
  background: var(--gov-blue); color: #fff; border: none; border-radius: 4px;
  font-size: 16px; letter-spacing: 6px; transition: background .18s;
}
.pl-login-btn:hover { background: var(--gov-blue-hover); }
.pl-quick { padding: 14px 18px 18px; }
.pl-quick-title { font-size: 12px; color: var(--text-light); text-align: center; margin-bottom: 10px; position: relative; }
.pl-quick-title::before, .pl-quick-title::after {
  content: ''; position: absolute; top: 50%; width: 22%; height: 1px; background: var(--border-light);
}
.pl-quick-title::before { left: 0; }
.pl-quick-title::after { right: 0; }
.pl-quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pl-quick-grid button {
  height: 34px; border: 1px solid var(--border); background: #fff; border-radius: 4px;
  font-size: 12px; color: var(--text-sub); display: flex; align-items: center;
  justify-content: center; gap: 6px; transition: all .18s;
}
.pl-quick-grid button:hover { border-color: var(--gov-blue); color: var(--gov-blue); background: var(--gov-blue-light); }
.pl-quick-grid .dot { width: 7px; height: 7px; border-radius: 50%; }
.pl-reg { text-align: center; margin-top: 12px; font-size: 12px; }

/* ============================================================
 * 首页改版（参考优胜招标 fjyszb.com）：资质大图横幅 + 左登录右新闻 + 招标中/采购Tab
 * ============================================================ */
.portal-search { display: flex; align-items: center; }
.portal-search input { width: 260px; height: 38px; border: 1px solid var(--border); border-radius: 2px 0 0 2px; padding: 0 12px; font-size: 13px; outline: none; }
.portal-search input:focus { border-color: var(--gov-blue); }
.portal-search button { height: 38px; padding: 0 20px; border: none; background: var(--gov-blue); color: #fff; font-size: 14px; border-radius: 0 2px 2px 0; cursor: pointer; }
.portal-search button:hover { background: var(--gov-blue-dark); }

/* 资质证书大图横幅（自动轮播滚动） */
.qual-banner { height: 240px; background: linear-gradient(180deg, #f4f7fb, #eef2f7); border-bottom: 3px solid var(--gov-blue); overflow: hidden; position: relative; }
.qb-track { display: flex; gap: 18px; align-items: center; height: 100%; width: max-content; padding: 0 20px; animation: qbscroll 26s linear infinite; }
.qual-banner:hover .qb-track { animation-play-state: paused; }
@keyframes qbscroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.qb-track .cert-slide { width: 300px; height: 196px; flex-shrink: 0; background: #fff; border: 1px solid #dbe3ec; border-radius: 4px; box-shadow: 0 3px 14px rgba(30,50,80,.1); padding: 10px; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.qb-track .cert-slide:hover { transform: translateY(-4px); box-shadow: 0 8px 22px rgba(30,50,80,.2); }
.qb-track .cert-slide .qual-img { width: 100%; height: 100%; }
.qb-label { position: absolute; left: 20px; top: 12px; font-size: 11px; letter-spacing: 2px; color: var(--text-light); background: rgba(255,255,255,.85); padding: 3px 10px; border-radius: 10px; }

/* 首页主体：左登录 + 右新闻 */
.home-body { padding-top: 20px; }
.home-top-grid { display: grid; grid-template-columns: 320px 1fr; gap: 20px; align-items: stretch; }
.home-login-wrap { min-width: 0; }
.home-news-wrap { min-width: 0; }
.home-login { height: 100%; }
.home-login .home-login-head {
  height: 46px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(90deg, var(--gov-blue-dark), var(--gov-blue)); border-bottom: none;
}
.home-login .home-login-head h3 { color: #fff; font-size: 16px; font-weight: 600; position: relative; padding-left: 12px; }
.home-login .home-login-head h3::before { content: ''; position: absolute; left: 0; top: 3px; bottom: 3px; width: 3px; background: #dec081; border-radius: 2px; }
.home-login .home-login-head span { color: rgba(255,255,255,.75); font-size: 10px; letter-spacing: 1px; }
.home-login .pl-tabs { padding: 0 18px; }
.home-login .pl-tabs button { height: 40px; font-size: 13px; }
.home-login #plPwdForm, .home-login #plSmsForm { padding: 16px 18px 0; }
.home-login #plPwdForm .pl-field, .home-login #plSmsForm .pl-field { height: 42px; margin-bottom: 12px; }
.home-login .pl-role-select {
  width: 100%; height: 100%; border: 1px solid var(--border); background: #fff; border-radius: 3px;
  padding: 0 10px; font-size: 13px; color: var(--text-main); outline: none; cursor: pointer;
}
.home-login .pl-role-select:focus { border-color: var(--gov-blue); }
.home-login .pl-login-row { margin: 4px 18px 0; }
.home-login .pl-login-btn { width: 100%; height: 44px; font-size: 16px; letter-spacing: 8px; }
.home-login .pl-login-extra { display: flex; justify-content: space-between; padding: 10px 18px 4px; }
.home-login .pl-login-extra a { font-size: 12px; color: var(--gov-blue); }
.home-login .pl-login-extra a:hover { text-decoration: underline; }
.home-login .pl-quick.compact { padding: 10px 18px 16px; margin-top: 4px; border-top: 1px dashed var(--border-light); }
.home-login .logined-body.compact { padding: 24px 18px; }
.home-login .logined-body.compact .pl-login-btn { width: 100%; margin: 16px 0 0; }
.home-news { height: 100%; }
.home-news .box-body { padding: 8px 18px 12px; }
.home-news .portal-list li { height: 38px; font-size: 13px; }

/* 招标中 / 政府采购 双栏 */
.home-mid-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.home-board .box-body { padding: 6px 16px 12px; }
.home-board .portal-list li { height: 36px; font-size: 13px; }
.gov-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border-light); margin-bottom: 6px; }
.gov-tabs button { height: 34px; padding: 0 12px; border: none; background: transparent; color: var(--text-sub); font-size: 13px; cursor: pointer; position: relative; }
.gov-tabs button.active { color: var(--gov-blue); font-weight: 600; }
.gov-tabs button.active::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--gov-blue); }
.empty-li { color: var(--text-light); justify-content: center; }

/* ===== 网上竞价卡片（参考 fjyszb.com：红标题块 + 三角 + 子Tab + 更多 + 虚线列表） ===== */
.home-bid-card { grid-column: 1 / -1; }
.ref-card-head { display: flex; align-items: stretch; background: #f6f6f6; height: 40px; position: relative; overflow: hidden; }
.ref-card-title {
  background: var(--gov-red); color: #fff; font-size: 17px; font-weight: 600;
  height: 40px; min-width: 120px; display: flex; align-items: center; justify-content: center; letter-spacing: 1px; flex-shrink: 0;
}
.ref-card-triangle { width: 0; height: 0; border-top: 20px solid transparent; border-bottom: 20px solid transparent; border-left: 12px solid var(--gov-red); flex-shrink: 0; }
.ref-card-tabs { display: flex; align-items: stretch; flex: 1; overflow: hidden; }
.ref-card-tabs button {
  border: none; border-top: 3px solid transparent; background: transparent; color: var(--text-sub);
  font-size: 13px; font-weight: 600; padding: 0 14px; cursor: pointer; white-space: nowrap; box-sizing: border-box;
}
.ref-card-tabs button:hover { color: var(--gov-red); }
.ref-card-tabs button.active { background: #fff; color: var(--gov-red); border-top-color: var(--gov-red); }
.ref-card-more { position: absolute; right: 12px; top: 0; height: 40px; line-height: 40px; font-size: 12px; color: #7b8491; background: #f6f6f6; padding-left: 10px; }
.ref-card-more:hover { color: var(--gov-red); }
.ref-card-list { padding-top: 4px; }
.ref-card-list li { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 4px; border-bottom: 1px dashed #e8eaed; font-size: 13px; }
.ref-card-list li:last-child { border-bottom: none; }
.ref-card-list .ref-tag { background: #265aa0; color: #fff; font-size: 11px; line-height: 18px; padding: 0 6px; border-radius: 2px; flex-shrink: 0; }
.ref-card-list .ref-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #3d4654; cursor: pointer; }
.ref-card-list .ref-txt:hover { color: var(--gov-red); text-decoration: underline; }
.ref-card-list .ref-date { color: #a2a8b0; font-size: 12px; width: 82px; text-align: right; flex-shrink: 0; }
.ref-card-inner .box-body { padding: 8px 16px 14px; }
.inner-ref-list li { min-height: 40px; font-size: 14px; }

/* 内页分页器（参考站列表底部分页） */
.inner-pager { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 18px 0 6px; flex-wrap: wrap; }
.inner-pager a {
  min-width: 30px; height: 30px; padding: 0 9px; border: 1px solid var(--border); border-radius: 3px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: var(--text-sub); background: #fff;
}
.inner-pager a:hover { border-color: var(--gov-blue); color: var(--gov-blue); }
.inner-pager a.on { background: var(--gov-blue); border-color: var(--gov-blue); color: #fff; font-weight: 600; }
.inner-pager span { color: var(--text-light); padding: 0 2px; }
/* 去掉横幅后内页顶部留白 */
.inner-layout { margin-top: 24px; }

/* ============================================================
 * 设计系统落地层（Design System Application Layer）
 * 依据 design-system.html 规范：宋体标题 + 黑体正文 / 2·5·10 圆角三档
 * / 三级蓝调阴影 / 藏青为主·描金为辅 / 指数缓动交互
 * 以覆盖方式统一视觉，不改变任何 DOM 结构与交互逻辑
 * ============================================================ */

/* ---- A. 字体层级：标题宋体（权威气质），正文黑体（高辨识） ---- */
.login-intro h2,
.portal-brand .brand-title h1,
.portal-brand h1,
.hero-copy h2, .hero-copy p,
.inner-banner .ib-inner h2,
.page-head h2,
.inner-title h3,
.portal-section-title h2,
.modal-head h3,
.workbench-welcome h2,
.detail-hero h1,
.bp-caption b {
  font-family: var(--font-serif);
  letter-spacing: .5px;
}
.stat-card .value { font-family: var(--font-serif); letter-spacing: 0; }

/* ---- B. 圆角三档：2px 标签 / 5px 控件 / 10px 卡片弹层 ---- */
.btn, .quick-btn, .toolbar input, .toolbar select,
.form-item input, .form-item select, .form-item textarea,
.pl-field, .input-wrap input, .portal-search input,
.portal-list-search input, .inner-pager a, .pagination .pages button {
  border-radius: 5px;
}
.tag, .badge, .badge-count, .ref-tag, .qbadge, .dl-ico { border-radius: 2px; }
.card, .table-wrap, .stat-card, .wb-box, .detail-card, .inner-box,
.portal-box, .inner-side, .modal, .login-card, .join-grid > div,
.qb-track .cert-slide {
  border-radius: 10px;
}
/* 门户列表卡片信息密度高，采用适中的 8px */
.portal-box { border-radius: 8px; }

/* ---- C. 三级蓝调阴影 + 悬停抬升 ---- */
.table-wrap, .stat-card, .wb-box, .detail-card { box-shadow: var(--sh-1); }
.portal-box, .inner-box { box-shadow: var(--sh-1); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.stat-card { transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.stat-card:hover, .portal-box:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.modal, .login-card { box-shadow: var(--sh-3); }

/* ---- D. 描金点缀：藏青为主，金色点睛（克制使用） ---- */
/* 顶栏 / 门户导航底部 2px 金色描边 */
.topbar { box-shadow: 0 1px 0 var(--gold-500), 0 2px 8px rgba(11,34,73,.18); }
.portal-nav { box-shadow: inset 0 -2px 0 rgba(201,169,97,.85); }
/* 分区与页面主标题竖线描金 */
.portal-section-title h2::before,
.page-head h2::before { background: linear-gradient(180deg, var(--gold-400), var(--gold-600)); }
/* 统计卡首项图标用金色强调，其余保持语义色 */
.stat-card.c1 .ic { background: var(--gold-100); color: var(--gold-600); }
/* 页面主标题旁辅助英文/编号使用深金 */
.page-head .desc { letter-spacing: .2px; }

/* ---- E. 交互细节：指数缓动 / 焦点可辨 / 按钮层次 ---- */
.btn, .toolbar input, .toolbar select, .form-item input, .form-item select,
.pl-field, .portal-nav a, .sidebar .menu-item, .inner-side a,
.portal-quick .q, .pl-quick-grid button {
  transition: all .25s var(--ease);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--sh-2); }
.btn:active { transform: translateY(0); }
/* 键盘焦点：3px 品牌蓝外发光，WCAG 可辨 */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(38,90,160,.28);
}

/* ---- F. 产品级细节：选中态 / 滚动条 / 表格节奏 ---- */
::selection { background: rgba(201,169,97,.35); color: var(--ink-900); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--bg-page); }
::-webkit-scrollbar-thumb { background: #c4cedd; border-radius: 5px; border: 2px solid var(--bg-page); }
::-webkit-scrollbar-thumb:hover { background: var(--navy-500); }
.data-table tbody td { padding: 13px 14px; }
.data-table tbody tr { transition: background .2s var(--ease); }
.data-table thead th { background: var(--navy-100); color: var(--navy-800); }

/* ---- G. 登录页：描金点缀强化品牌质感 ---- */
.login-intro h2 span { color: var(--gold-400); }
.login-intro .login-quals h4 { color: var(--gold-400); letter-spacing: 3px; }
.login-card { border-top: 3px solid var(--gold-500); }
.login-btn { background: linear-gradient(135deg, var(--navy-700), var(--navy-500)); }

/* ---- H. 门户首页：登录卡与横幅的品牌化收口 ---- */
.home-login .home-login-head h3::before,
.portal-entry .portal-login-compact .box-head h3::before { background: var(--gold-400); }
.home-news .box-head, .home-board .box-head { background: linear-gradient(90deg, var(--navy-100), #fff); }
.qual-banner { border-bottom-color: var(--gold-500); }

/* ---- I. 响应式下收起部分抬升动效，保证稳定 ---- */
@media (max-width: 900px) {
  .stat-card:hover, .portal-box:hover { transform: none; }
}

/* ============ 用户业务表单（注册/报名/我的报名） ============ */
.form-box { padding: 0; }
.form-tip { background:var(--gold-100); color:var(--navy-800); padding:12px 22px; font-size:13px; border-bottom:1px solid var(--gold-400); }
.req { color:#c8161d; }
.biz-form { padding:24px 40px 30px; max-width:720px; }
.form-row { display:flex; align-items:center; margin-bottom:18px; }
.form-row label { width:180px; flex-shrink:0; text-align:right; padding-right:18px; color:var(--ink-700); font-size:14px; }
.form-row input,.form-row select,.form-row textarea { flex:1; padding:11px 14px; border:1px solid var(--border); border-radius:5px; font-size:14px; font-family:var(--font-sans); outline:0; }
.form-row input:focus,.form-row select:focus,.form-row textarea:focus { border-color:var(--navy-600); box-shadow:0 0 0 3px rgba(38,90,160,.1); }
.form-actions { display:flex; align-items:center; gap:20px; padding-left:180px; margin-top:26px; }
.submit-btn { background:linear-gradient(90deg,var(--navy-700),var(--navy-500)); color:#fff; border:0; border-radius:5px; padding:12px 32px; font-size:15px; cursor:pointer; }
.submit-btn:hover { background:var(--navy-600); }
.cancel-btn { color:var(--ink-500); font-size:14px; }
.project-mini { display:flex; gap:30px; padding:14px 40px; background:var(--bg-page); color:var(--ink-500); font-size:13px; border-bottom:1px solid var(--border); }
.query-form { display:flex; gap:10px; padding:18px 22px; border-bottom:1px solid var(--border); }
.query-form input { padding:9px 14px; border:1px solid var(--border); border-radius:5px; width:260px; outline:0; }
.query-form button { background:var(--navy-700); color:#fff; border:0; border-radius:5px; padding:9px 22px; cursor:pointer; }
.st-pass { color:#1d9e75; } .st-reject { color:#c8161d; } .st-wait { color:var(--gold-600); }
.empty-tip { text-align:center; color:var(--ink-500); padding:40px; font-size:14px; }

/* ============ FastAdmin 分页与公告详情补充 ============ */
.inner-pager .pagination { display:flex; gap:6px; align-items:center; justify-content:center; flex-wrap:wrap; list-style:none; }
.inner-pager .pagination li { margin:0; }
.inner-pager .pagination li a,
.inner-pager .pagination li span {
  display:inline-block; min-width:32px; height:30px; line-height:28px; padding:0 9px; text-align:center;
  border:1px solid var(--border); border-radius:5px; color:var(--text-sub); background:#fff; font-size:13px;
}
.inner-pager .pagination li.active a,
.inner-pager .pagination li.active span { background:var(--navy-700); border-color:var(--navy-700); color:#fff; font-weight:600; }
.inner-pager .pagination li.disabled span { color:#b6bec9; }
.inner-pager .pagination li a:hover { border-color:var(--navy-600); color:var(--navy-700); }
.empty-li { justify-content:center; color:var(--text-light); padding:24px 0; }
.detail-action { margin-top:24px; padding-top:18px; border-top:1px solid var(--border-light); }
