/* ==========================================================================
   招标信息发布与后台管理系统 · 设计系统 v2
   --------------------------------------------------------------------------
   定位：政企招标门户 —— 权威、克制、高可读，不做玻璃拟态与大面积渐变。
   色彩：深海军蓝主色 / 亮蓝交互色 / 金色仅作强调（占比 < 5%）。
   规范：8px 间距尺度、明确字号阶梯、所有交互元素可见 focus 环、
         尊重 prefers-reduced-motion、正文对比度 >= 4.5:1。
   注意：本文件只定义外观。所有 class 名与 DOM 挂载点保持与业务脚本一致。
   ========================================================================== */

:root {
  /* 品牌色（保留 #1554b5，与页面内联 SVG 图标描边一致） */
  --brand: #1554b5;
  --brand-dark: #0b3169;
  --brand-2: #3a7fd8;
  --brand-soft: #eaf1fc;
  --navy: #0a2347;
  --gold: #c8a15a;
  --gold-soft: #fbf5e9;

  /* 文字：比上一版更深，保证白底上的对比度 */
  --ink: #101c30;
  --ink-2: #33425c;
  --muted: #52617a;
  --line: #e3e9f2;
  --line-strong: #cfd9e8;
  --bg: #f6f8fc;
  --card: #ffffff;

  /* 语义色 */
  --ok: #0f8a4e;
  --warn: #a86700;
  --danger: #c93030;

  /* 形状与层次 */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow: 0 1px 2px rgba(16, 32, 64, 0.04), 0 1px 3px rgba(16, 32, 64, 0.05);
  --shadow-md: 0 6px 18px rgba(16, 32, 64, 0.09);
  --shadow-lg: 0 18px 40px rgba(16, 32, 64, 0.16);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 180ms;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

::selection { background: #cfe0fa; color: var(--navy); }

a { color: var(--brand); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--brand-dark); text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 12px; font-weight: 600; line-height: 1.4; letter-spacing: -0.2px; }
h1 { font-size: 28px; }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
h4 { font-size: 15px; }
p { margin: 0 0 10px; }
img { max-width: 100%; }

/* 键盘可达性：所有可交互元素统一可见焦点环，不移除 outline */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgba(58, 127, 216, 0.6);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 跳转到主内容：平时隐藏，键盘聚焦时浮出 */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: #fff;
  color: var(--brand-dark);
  border: 2px solid var(--brand);
  border-radius: var(--radius-xs);
  padding: 8px 16px;
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; text-decoration: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------------------------------- 顶部 ---------------------------------- */

.topbar {
  background: var(--navy);
  color: #c6d4ea;
  font-size: 13px;
  letter-spacing: 0.3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}
.topbar a { color: #c6d4ea; }
.topbar .dot { color: var(--gold); margin: 0 6px; }

.navbar {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(1.5) blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(16, 32, 64, 0.03);
}
.navbar .container {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}
.nav-wrap { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; }
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 700;
  color: var(--brand-dark);
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.brand:hover { text-decoration: none; color: var(--brand-dark); }
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--brand-2), var(--brand-dark));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 4px 12px rgba(21, 84, 181, 0.28);
  flex: none;
}

.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}
.nav-links a {
  position: relative;
  display: block;
  padding: 9px 14px;
  border-radius: var(--radius-xs);
  color: var(--ink-2);
  font-size: 15px;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms var(--ease);
}
.nav-links a:hover { background: var(--brand-soft); color: var(--brand-dark); text-decoration: none; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.nav-links a.active::after { transform: scaleX(1); }

.nav-user { display: flex; align-items: center; gap: 8px; font-size: 14px; flex: none; }
.nav-user .who { color: var(--muted); }
.nav-toggle { display: none; }

/* --------------------------------- 布局块 --------------------------------- */

main { padding: 24px 0 48px; min-height: 50vh; }

.page-head {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  margin-bottom: 20px;
}
.page-head h1 { margin-bottom: 4px; font-size: 26px; }
.crumb { font-size: 13px; color: var(--muted); }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--brand); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  margin-bottom: 18px;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.card-title h2, .card-title h3 {
  position: relative;
  padding-left: 14px;
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.1px;
}
.card-title h2::before, .card-title h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 17px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand-2), var(--brand-dark));
}
.card-title .more { font-size: 13px; color: var(--muted); white-space: nowrap; }
.card-title .more:hover { color: var(--brand); text-decoration: none; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.layout-main-side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }

/* --------------------------------- 首页 ----------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(110% 130% at 88% 8%, rgba(255, 255, 255, 0.15), transparent 55%),
    radial-gradient(80% 110% at 4% 98%, rgba(200, 161, 90, 0.24), transparent 62%),
    linear-gradient(135deg, #082246 0%, #123f88 55%, #2a72cc 100%);
  color: #fff;
  border-radius: 20px;
  padding: 46px 44px 40px;
  margin-bottom: 20px;
  box-shadow: 0 18px 40px rgba(10, 35, 71, 0.26);
}
/* 细网格纹理，纯 CSS，无外部图片 */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(80% 75% at 72% 20%, #000 15%, transparent 78%);
  -webkit-mask-image: radial-gradient(80% 75% at 72% 20%, #000 15%, transparent 78%);
}
/* 顶部一道金色强调线 */
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), rgba(200, 161, 90, 0.35) 32%, transparent 72%);
}
.hero > *:not(.hero-deco) { position: relative; z-index: 1; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #f4dda9;
  font-size: 13px;
  letter-spacing: 3px;
  padding: 5px 15px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero-brand {
  font-size: 38px;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
}
.hero-sub { font-size: 15px; line-height: 1.85; opacity: 0.92; margin-bottom: 24px; max-width: 620px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn {
  padding: 11px 24px;
  font-size: 15px;
  border-radius: 999px;
  font-weight: 600;
}
.hero-actions .btn-light { background: #fff; border-color: #fff; color: var(--brand-dark); }
.hero-actions .btn-light:hover { background: #edf3fd; border-color: #edf3fd; color: var(--brand-dark); }
.hero-actions .btn-ghost { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.hero-actions .btn-ghost:hover { background: rgba(255, 255, 255, 0.2); border-color: #fff; color: #fff; }

/* 右侧抽象图形：文件 + 核验印章，纯装饰 */
.hero-deco { position: absolute; right: 34px; top: 50%; transform: translateY(-50%); width: 290px; z-index: 0; }
.hero-deco svg { display: block; width: 100%; height: auto; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 30px;
  max-width: 560px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  overflow: hidden;
}
.hero-stats:empty { display: none; }
.hero-stats div {
  flex: 1 1 0;
  min-width: 110px;
  padding: 14px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}
.hero-stats div:last-child { border-right: none; }
.hero-stats div span { display: block; font-size: 12px; letter-spacing: 1px; opacity: 0.88; }
.hero-stats div strong {
  display: block;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.quick-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.quick-links a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 16px 20px;
  text-align: center;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease);
}
.quick-links a:hover {
  border-color: var(--brand-2);
  box-shadow: var(--shadow-md);
  color: var(--brand-dark);
  text-decoration: none;
}
.quick-links .ql-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  border: 1px solid #d9e5f8;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.quick-links a:hover .ql-icon { background: #dbe9ff; border-color: #bcd2f4; }
.quick-links small { display: block; font-weight: 400; color: var(--muted); margin-top: 4px; font-size: 13px; }

/* -------------------------------- 列表与项 --------------------------------- */

.list { list-style: none; margin: 0; padding: 0; }
.list-item {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 10px 14px 14px;
  border-bottom: 1px solid #eef2f8;
  border-radius: var(--radius-xs);
  transition: background var(--dur) var(--ease);
}
.list-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 2px;
  background: transparent;
  transition: background var(--dur) var(--ease);
}
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: #f8fbff; }
.list-item:hover::before { background: var(--brand-2); }
.list-item .li-main { flex: 1; min-width: 0; }
.list-item .li-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.list-item:hover .li-title { color: var(--brand-dark); }
.list-item .li-meta { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.9; }
.list-item .li-side { text-align: right; font-size: 13px; color: var(--muted); white-space: nowrap; padding-top: 2px; }

.proj-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.proj-card:hover { box-shadow: var(--shadow-md); border-color: #c3d5ef; }
.proj-card h3 { font-size: 17px; margin-bottom: 8px; }
.proj-card .pc-meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.proj-card .pc-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}

/* ---------------------------------- 徽标 ---------------------------------- */

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.b-signup { background: #e6f6ec; color: var(--ok); border-color: #bfe4cd; }
.b-closed { background: #f0f2f5; color: #5b6678; border-color: #dce1e8; }
.b-evaluating { background: #fdf3e3; color: var(--warn); border-color: #f0dcb8; }
.b-awarded { background: var(--brand-soft); color: var(--brand-dark); border-color: #c9d9f5; }
.b-online { background: #e6f6ec; color: var(--ok); border-color: #bfe4cd; }
.b-draft { background: #f0f2f5; color: #5b6678; border-color: #dce1e8; }
.b-pending { background: #fdf3e3; color: var(--warn); border-color: #f0dcb8; }
.b-disabled { background: #fdeaea; color: var(--danger); border-color: #f5c6c6; }
.b-active { background: #e6f6ec; color: var(--ok); border-color: #bfe4cd; }
.b-hist { background: #f2f0fa; color: #6151a0; border-color: #ddd6f0; }
.b-paid { background: #e6f6ec; color: var(--ok); border-color: #bfe4cd; }
.b-completed { background: var(--brand-soft); color: var(--brand-dark); border-color: #c9d9f5; }
.b-refunded { background: #f0f2f5; color: #5b6678; border-color: #dce1e8; }
.b-reviewing { background: #fdf3e3; color: var(--warn); border-color: #f0dcb8; }
.b-rejected { background: #fdeaea; color: var(--danger); border-color: #f5c6c6; }
.b-pending-pay { background: #fdeaea; color: var(--danger); border-color: #f5c6c6; }

.tag {
  display: inline-block;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 1px 7px;
  margin-right: 6px;
}
/* 外部交易中心项目标记：金色系，与常规状态区分 */
.tag-ext {
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #fdf8ee;
  border: 1px solid #ecd9ae;
  color: #7a5a12;
  vertical-align: middle;
}

/* ---------------------------------- 按钮 ---------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 17px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:hover { border-color: var(--brand); color: var(--brand-dark); background: #f8fbff; text-decoration: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, #2a6fd0, var(--brand));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 3px 10px rgba(21, 84, 181, 0.22);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1c5bbb, var(--brand-dark));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 5px 14px rgba(11, 49, 105, 0.3);
}
.btn-danger { background: #fff; border-color: #f0b9b9; color: var(--danger); }
.btn-danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-sm { padding: 5px 11px; min-height: 32px; font-size: 13px; }
.btn-block { width: 100%; }

/* --------------------------------- 表单 ----------------------------------- */

.field { margin-bottom: 14px; }
.field > label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--ink-2);
  font-weight: 500;
}
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
input[type="text"], input[type="password"], input[type="email"], input[type="number"],
input[type="date"], input[type="datetime-local"], input[type="tel"], select, textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
input::placeholder, textarea::placeholder { color: #8a97aa; }
textarea { min-height: 110px; resize: vertical; line-height: 1.8; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(21, 84, 181, 0.14);
}
input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--brand); }
.check-line { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin-bottom: 18px;
}
.filter-bar .field { margin-bottom: 0; }
.filter-bar .grow { flex: 1; min-width: 190px; }
.filter-bar .btn { min-height: 40px; }

/* --------------------------------- 表格 ----------------------------------- */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; border-radius: var(--radius-sm); overflow: hidden; }
table.table th, table.table td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
table.table th {
  background: #f2f6fc;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.4px;
  white-space: nowrap;
  border-bottom: 1px solid #dfe6f1;
}
table.table tbody tr { transition: background var(--dur) var(--ease); }
table.table tbody tr:hover { background: #f7faff; }
table.table tbody tr:last-child td { border-bottom: none; }
table.table td .ops { display: flex; gap: 6px; flex-wrap: wrap; }
.cell-ellipsis { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --------------------------------- 分页 ----------------------------------- */

.pager { display: flex; gap: 6px; justify-content: center; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.pager button {
  min-width: 36px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink-2);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.pager button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand-dark); }
.pager button.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.pager button:disabled { opacity: 0.45; cursor: not-allowed; }
.pager .total { color: var(--muted); font-size: 13px; margin-left: 8px; }

/* ------------------------------ 提示与空状态 ------------------------------- */

.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty .empty-icon { display: inline-flex; margin-bottom: 10px; opacity: 0.5; color: #9fb0c8; }
.empty .empty-icon svg { width: 38px; height: 38px; display: block; }
.alert {
  padding: 11px 15px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 14px;
  border: 1px solid transparent;
  line-height: 1.7;
}
.alert-info { background: var(--brand-soft); border-color: #c9d9f5; color: #123f7d; }
.alert-warn { background: #fdf3e3; border-color: #f0dcb8; color: #7a4f00; }
.alert-error { background: #fdeaea; border-color: #f5c6c6; color: #9c2626; }
.alert-ok { background: #e6f6ec; border-color: #bfe4cd; color: #0b6b3c; }
.alert-ext {
  background: #fdf8ee;
  border-color: #ecd9ae;
  border-left: 3px solid var(--gold);
  color: #6b4e12;
}
.alert-ext strong, .alert-ext b { color: #5a3f0c; }
.alert-ext p { margin: 4px 0; line-height: 1.8; }
.toast {
  position: fixed;
  left: 50%;
  top: 22px;
  transform: translateX(-50%);
  background: rgba(16, 28, 48, 0.95);
  color: #fff;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  z-index: 999;
  box-shadow: var(--shadow-lg);
}
.spinner { text-align: center; padding: 32px; color: var(--muted); }

/* --------------------------------- 详情页 --------------------------------- */

.detail-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  background: linear-gradient(180deg, #fbfcfe, #f4f8fd);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 18px;
}
.detail-meta div span { display: block; font-size: 12px; color: var(--muted); letter-spacing: 0.3px; }
.detail-meta div strong { font-size: 15px; font-weight: 600; color: var(--brand-dark); }
.article { line-height: 1.95; font-size: 15px; }
.article p { margin-bottom: 14px; }
.attachment-list { list-style: none; margin: 0; padding: 0; }
.attachment-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 9px;
  background: #fcfdff;
  flex-wrap: wrap;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.attachment-list li:hover { border-color: #c3d5ef; box-shadow: var(--shadow); }

/* ---------------------------------- 页脚 ---------------------------------- */

footer.site-footer {
  position: relative;
  background: linear-gradient(180deg, #17263d, #0d1726);
  color: #aab7ca;
  padding: 40px 0 20px;
  font-size: 13px;
  margin-top: 24px;
}
footer.site-footer::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), rgba(200, 161, 90, 0.25) 45%, transparent 80%);
}
footer.site-footer .f-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
footer.site-footer h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 14px;
  padding-left: 11px;
  border-left: 3px solid var(--gold);
}
footer.site-footer p { line-height: 1.9; }
footer.site-footer a { color: #aab7ca; }
footer.site-footer a:hover { color: #fff; }
footer.site-footer .bottom {
  border-top: 1px solid #26344a;
  margin-top: 24px;
  padding-top: 16px;
  text-align: center;
  color: #8492a8;
}

/* ============================== 后台管理样式 ============================== */

.admin-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.admin-side {
  background: linear-gradient(180deg, #17263d, #0e1828);
  color: #c3ccdb;
  padding: 20px 0;
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow-y: auto;
}
.admin-side .side-brand {
  padding: 0 20px 16px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid #2a3850;
  margin-bottom: 12px;
  line-height: 1.5;
}
.admin-side .side-brand small { display: block; font-size: 12px; font-weight: 400; color: #8b96a9; margin-top: 2px; }
.admin-nav { list-style: none; margin: 0; padding: 0; }
.admin-nav li a {
  display: block;
  padding: 10px 20px;
  color: #c3ccdb;
  font-size: 14px;
  border-left: 3px solid transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.admin-nav li a:hover { background: #22314a; color: #fff; text-decoration: none; }
.admin-nav li a.active {
  background: linear-gradient(90deg, rgba(58, 127, 216, 0.24), rgba(58, 127, 216, 0.03));
  color: #fff;
  border-left-color: var(--brand-2);
  font-weight: 600;
}
.admin-nav .nav-group { padding: 16px 20px 6px; font-size: 12px; color: #7d8aa0; letter-spacing: 1.2px; }

.admin-main { min-width: 0; background: var(--bg); }
.admin-topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 13px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 1px 6px rgba(16, 32, 64, 0.05);
}
.admin-topbar .who { font-size: 14px; color: var(--muted); }
.admin-body { padding: 22px; max-width: 1200px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.stat-card:hover { box-shadow: var(--shadow-md); border-color: #c3d5ef; }
.stat-card .num {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-card .label { font-size: 13px; color: var(--muted); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .grow { flex: 1; min-width: 180px; }
.toolbar input, .toolbar select { width: auto; min-width: 130px; }
.admin-only-mobile { display: none; }

/* 模态框 */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(12, 22, 38, 0.52);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 30px 12px;
  overflow-y: auto;
  z-index: 200;
  backdrop-filter: blur(2px);
}
.modal {
  background: #fff;
  border-radius: var(--radius);
  width: 100%;
  max-width: 720px;
  box-shadow: var(--shadow-lg);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.modal-head h3 { margin: 0; font-size: 18px; }
.modal-body { padding: 20px; max-height: 65dvh; overflow-y: auto; }
.modal-foot {
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.close-x {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  min-width: 32px;
  min-height: 32px;
  border-radius: var(--radius-xs);
}
.close-x:hover { color: var(--danger); background: #fdeaea; }

/* ========================= 付费报名下载 ========================== */

.steps { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.steps .step {
  flex: 1;
  min-width: 120px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 9px;
}
.steps .step .num {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #eef1f6;
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 12px;
  flex: none;
}
.steps .step.active { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-soft); font-weight: 600; }
.steps .step.active .num { background: var(--brand); color: #fff; }
.steps .step.done { border-color: #bfe4cd; color: var(--ok); }
.steps .step.done .num { background: var(--ok); color: #fff; }

.price { color: var(--danger); font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; }
.price-sm { color: var(--danger); font-weight: 600; }
.price-free { color: var(--ok); font-weight: 600; }

.pay-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 6px; }
.pay-method {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 15px;
  cursor: pointer;
  background: #fff;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.pay-method:hover { border-color: #b9cbe8; box-shadow: var(--shadow); }
.pay-method.selected { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 2px rgba(21, 84, 181, 0.1); }
.pay-method .pm-icon { font-size: 22px; line-height: 1; }
.pay-method .pm-name { font-weight: 600; font-size: 14px; }
.pay-method .pm-desc { font-size: 12px; color: var(--muted); margin-top: 4px; }
.pay-method input { display: none; }

.order-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.order-card .oc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 11px;
  margin-bottom: 11px;
}
.order-card .oc-no { font-size: 13px; color: var(--muted); }
.order-card .oc-title { font-weight: 600; font-size: 15px; }
.order-card .oc-meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.order-card .oc-ops { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }

.pay-box { text-align: center; padding: 26px 16px; }
.pay-box .amount { font-size: 32px; font-weight: 700; color: var(--danger); margin: 8px 0; font-variant-numeric: tabular-nums; }
.qr-box { display: inline-block; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.qr-box img { display: block; width: 200px; height: 200px; }
.bank-info { text-align: left; background: #f7f9fc; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 15px; }
.bank-info .row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.bank-info .row:last-child { border-bottom: none; }

/* 上传区 */
.upload-box {
  border: 1px dashed #c3cfe0;
  border-radius: var(--radius-sm);
  padding: 18px;
  text-align: center;
  background: #fafcff;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.upload-box.dragover { border-color: var(--brand); background: var(--brand-soft); }
.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0f4fa;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 6px 10px;
  font-size: 13px;
  margin-top: 10px;
}

/* 标签页（登录 / 注册切换） */
.tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.tab-btn {
  border: none;
  background: none;
  padding: 10px 8px;
  margin-bottom: -1px;
  font-size: 15px;
  font-family: inherit;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.tab-btn:hover { color: var(--brand); }
.tab-btn.active { color: var(--brand-dark); border-bottom-color: var(--brand); font-weight: 600; }

/* ============================== 响应式适配 ================================ */

@media (max-width: 1024px) {
  .grid-4, .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout-main-side { grid-template-columns: 1fr; }
  .detail-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-deco { width: 220px; right: 18px; opacity: 0.7; }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 40px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink-2);
    cursor: pointer;
    margin-left: auto;
  }
  .nav-toggle svg { width: 20px; height: 20px; display: block; }
  .navbar .container { flex-wrap: wrap; min-height: 62px; gap: 10px; }
  .navbar .nav-wrap {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-bottom: 12px;
  }
  .navbar.open .nav-wrap { display: flex; }
  .nav-links { flex-direction: column; gap: 0; width: 100%; }
  .nav-links a { padding: 11px 6px; border-bottom: 1px solid #f1f4f9; border-radius: 0; }
  .nav-links a::after { display: none; }
  .nav-user { width: 100%; justify-content: flex-start; flex-wrap: wrap; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .pay-methods { grid-template-columns: 1fr; }
  .steps .step { min-width: 100%; }
  .hero { padding: 30px 22px 26px; border-radius: 16px; }
  .hero-brand { font-size: 26px; letter-spacing: 0.5px; }
  .hero-sub { font-size: 14px; margin-bottom: 18px; }
  .hero-deco { display: none; }
  .hero-actions .btn { flex: 1 1 auto; }
  footer.site-footer .f-grid { grid-template-columns: 1fr; gap: 20px; }

  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: relative; height: auto; display: none; }
  .admin-shell.side-open .admin-side { display: block; }
  .admin-only-mobile { display: inline-flex; }
  .admin-topbar { padding: 11px 16px; }
  .admin-body { padding: 16px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-nav { display: flex; flex-wrap: wrap; }
  .admin-nav li { flex: 1 1 33%; }
  .admin-nav .nav-group { display: none; }
}

@media (max-width: 560px) {
  .container { padding: 0 14px; }
  h1 { font-size: 22px; }
  .page-head { padding: 16px 18px; }
  .page-head h1 { font-size: 22px; }
  .card { padding: 16px 16px; }
  .grid-4, .stat-grid { grid-template-columns: 1fr; }
  .detail-meta { grid-template-columns: 1fr; }
  .quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .quick-links a { padding: 16px 10px; font-size: 14px; }
  .quick-links .ql-icon { width: 42px; height: 42px; border-radius: 12px; margin-bottom: 8px; }
  .quick-links .ql-icon svg { width: 20px; height: 20px; }
  .hero-stats div { padding: 11px 10px; min-width: 0; }
  .hero-stats div span { font-size: 11px; letter-spacing: 0; }
  .hero-stats div strong { font-size: 22px; }
  .filter-bar { flex-direction: column; align-items: stretch; padding: 16px; }
  .filter-bar .grow { min-width: 0; }
  .proj-card { padding: 15px 16px; }
  .proj-card .pc-foot { flex-direction: column; align-items: flex-start; }
  .modal-body { max-height: none; }
  .list-item { padding-left: 10px; padding-right: 4px; }
  .list-item .li-side { font-size: 12px; }
}

/* 尊重系统的「减少动态效果」设置 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============== 资料中心（企业风采轮播 / 政策文件） ============== */

.tab-bar {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.tab {
  appearance: none;
  border: 0;
  background: none;
  padding: 12px 6px;
  margin-right: 22px;
  font-size: 16px;
  font-family: inherit;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: color var(--dur) var(--ease);
}
.tab::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms var(--ease);
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--brand-dark); font-weight: 600; }
.tab.active::after { transform: scaleX(1); }
.tab:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--radius-xs); }

/* 轮播 */
.carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
}
.carousel[hidden] { display: none; }
.car-track {
  display: flex;
  transition: transform 420ms var(--ease);
  will-change: transform;
}
.car-slide {
  flex: 0 0 100%;
  position: relative;
  margin: 0;
}
.car-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  background: var(--navy);
}
.car-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 20px 26px;
  color: #fff;
  font-size: 15px;
  line-height: 1.6;
  background: linear-gradient(180deg, rgba(6, 18, 38, 0) 0%, rgba(6, 18, 38, 0.78) 100%);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.car-cap .tag {
  color: #f4e8cf;
  border-color: rgba(244, 232, 207, 0.45);
  margin-right: 0;
}
.car-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.88);
  color: var(--navy);
  cursor: pointer;
  transition: background var(--dur) var(--ease), opacity var(--dur) var(--ease);
  z-index: 2;
}
.car-btn svg { width: 20px; height: 20px; }
.car-btn:hover { background: #fff; }
.car-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.car-btn[disabled] { opacity: 0; pointer-events: none; }
.car-prev { left: 14px; }
.car-next { right: 14px; }

.car-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.car-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width var(--dur) var(--ease), background var(--dur) var(--ease);
}
.car-dots button.active { width: 22px; border-radius: 5px; background: #fff; }
.car-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* 图片集 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.gallery-item {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--card);
  color: inherit;
  text-decoration: none;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.gallery-item:hover { box-shadow: var(--shadow-md); border-color: #c3d5ef; }
.gallery-item:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--brand-soft);
}
.gi-body { padding: 10px 12px 12px; }
.gi-title {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 43px;
}
.gi-meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* 政策文件列表 */
.policy-title { font-weight: 500; }
.policy-ext {
  display: inline-block;
  min-width: 44px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: var(--radius-xs);
  padding: 1px 6px;
  text-transform: uppercase;
}
.policy-ops { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .car-slide img { aspect-ratio: 16 / 9; }
  .car-cap { font-size: 14px; padding: 28px 16px 22px; }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .car-slide img { aspect-ratio: 4 / 3; }
  .car-btn { width: 34px; height: 34px; }
  .tab { font-size: 15px; margin-right: 16px; }
  .policy-ops .btn { padding: 4px 10px; }
}

/* 图片集里的占位/提示要跨满整行，不能挤在一个格子里 */
.gallery-grid > .empty,
.gallery-grid > .spinner,
.gallery-grid > .alert { grid-column: 1 / -1; }
