/* ===========================================================
   标标制作 · 官网统一组件样式（新增页面与原站页面共用）
   设计变量沿用站点主样式表 _next/static/chunks/*.css 的 :root
   --brand:#1a2744  --gold:#b8860b  --border:#e2e0dc  --muted:#f1f0ee
   =========================================================== */

/* ---------- 1. 顶部导航（桌面端） ---------- */
.wb-nav { gap: 0 !important; }
.wb-nav .wb-navlink {
  display: inline-block;
  white-space: nowrap;
  padding: 8px 6px;
  text-decoration: none;
}
@media (min-width: 1280px) {
  .wb-nav .wb-navlink { padding: 8px 12px; }
}

/* ---------- 2. 移动端折叠菜单 ---------- */
.wb-mnav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 64px;
  z-index: 49;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 14px 28px rgba(26, 39, 68, 0.10);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}
.wb-mnav.show { display: block; }
@media (min-width: 1024px) { .wb-mnav { display: none !important; } }
.wb-mnav a {
  display: block;
  padding: 13px 24px;
  font-size: 15px;
  color: var(--foreground);
  border-bottom: 1px solid var(--muted);
  text-decoration: none;
}
.wb-mnav a:hover { background: var(--muted); color: var(--brand); }
.wb-mnav a.wb-on { color: var(--brand); font-weight: 700; background: #f7f7f5; }
.wb-mnav .wb-mnav-phone {
  margin: 16px 24px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
}

/* ---------- 3. 通用徽标 ---------- */
.wb-badge {
  display: inline-block;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--brand);
  background: var(--muted);
  border: 1px solid var(--border);
  padding: 0 10px;
}
.wb-badge-pin { color: #9b2c2c; background: #fdf0ef; border-color: #f5cfcb; }

/* ---------- 4. 内容卡片（新闻列表 / 相关阅读） ---------- */
.wb-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.wb-card {
  position: relative;
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  padding: 26px 26px 22px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.wb-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .25s ease;
}
.wb-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(26, 39, 68, 0.10);
  border-color: var(--brand);
}
.wb-card:hover::before { transform: scaleY(1); }
.wb-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.55;
  margin: 12px 0 10px;
  transition: color .2s ease;
}
.wb-card:hover h3 { color: var(--gold); }
.wb-card .wb-sum {
  font-size: 14px;
  color: var(--muted-foreground);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 49px;
}
.wb-card .wb-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--muted);
  font-size: 13px;
  color: #9aa4b5;
}
.wb-card .wb-more {
  color: var(--brand);
  font-weight: 600;
  opacity: 0;
  transform: translateX(-6px);
  transition: all .25s ease;
}
.wb-card:hover .wb-more { opacity: 1; transform: none; }
.wb-empty { text-align: center; color: var(--muted-foreground); padding: 70px 20px; font-size: 15px; }

/* ---------- 5. 常见问题手风琴 ---------- */
.wb-faq { max-width: 900px; margin: 0 auto; }
.wb-faq details {
  background: #fff;
  border: 1px solid var(--border);
  margin-bottom: 12px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.wb-faq details:hover { border-color: var(--brand); box-shadow: 0 10px 24px rgba(26, 39, 68, 0.07); }
.wb-faq summary {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 700;
  color: var(--foreground);
}
.wb-faq summary::-webkit-details-marker { display: none; }
.wb-faq summary .wb-n {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--muted);
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}
.wb-faq summary .wb-ar {
  margin-left: auto;
  color: var(--gold);
  font-size: 17px;
  line-height: 1.3;
  transition: transform .25s ease;
}
.wb-faq details[open] summary { color: var(--brand); }
.wb-faq details[open] summary .wb-ar { transform: rotate(180deg); }
.wb-faq .wb-a {
  padding: 0 22px 20px 60px;
  font-size: 15px;
  line-height: 1.95;
  color: var(--foreground);
}
.wb-faq .wb-a a { color: var(--brand); font-weight: 600; border-bottom: 1px solid var(--gold); text-decoration: none; }

/* ---------- 6. 标书案例：筛选与图集 ---------- */
.wb-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.wb-chip {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--foreground);
  padding: 7px 18px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: all .22s ease;
}
.wb-chip:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.wb-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.wb-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 24px; }
.wb-case {
  background: #fff;
  border: 1px solid var(--border);
  cursor: zoom-in;
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.wb-case:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(26, 39, 68, 0.13); border-color: var(--brand); }
.wb-case .thumb { position: relative; overflow: hidden; background: var(--muted); }
.wb-case img { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s ease; }
.wb-case:hover img { transform: scale(1.04); }
.wb-case .zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(26, 39, 68, 0.82);
  color: #fff;
  font-size: 12.5px;
  padding: 4px 12px;
  opacity: 0;
  transform: translateY(6px);
  transition: all .25s ease;
}
.wb-case:hover .zoom { opacity: 1; transform: none; }
.wb-case .cap { padding: 18px 20px 20px; }
.wb-case h3 { font-size: 16.5px; font-weight: 700; color: var(--brand); }
.wb-case .row { display: flex; justify-content: space-between; align-items: center; margin-top: 9px; font-size: 13px; }
.wb-case .pages { color: #276749; font-weight: 600; }
.wb-case .cat { color: var(--gold); background: #f7f7f5; border: 1px solid var(--border); padding: 1px 10px; }
.wb-case .desc { font-size: 13.5px; color: var(--muted-foreground); line-height: 1.75; margin-top: 10px; }

/* 图片灯箱 */
.wb-lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.9);
}
.wb-lb.show { display: flex; }
.wb-lb img { max-width: min(1180px, 96vw); max-height: 90vh; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.wb-lb .x {
  position: fixed;
  right: 26px;
  top: 18px;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  opacity: .8;
  cursor: pointer;
  transition: all .2s ease;
}
.wb-lb .x:hover { opacity: 1; transform: rotate(90deg); }
.wb-lb .cap2 {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  background: rgba(26, 39, 68, 0.78);
  padding: 6px 18px;
}

/* ---------- 7. 文章正文 ---------- */
.wb-prose { max-width: 860px; }
.wb-prose p { font-size: 16px; line-height: 2; color: var(--foreground); margin-bottom: 16px; }

/* ---------- 8. 后台管理（复用同一外壳与配色） ---------- */
.wb-admin { padding: 28px 0 80px; }
.wb-admin .wb-ahead {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.wb-admin .wb-ahead h1 { font-size: 20px; font-weight: 700; color: var(--brand); }
.wb-admin .wb-ahead .sp { flex: 1; }
.wb-admin .wb-hbtn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--foreground);
  padding: 8px 16px;
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.wb-admin .wb-hbtn:hover { border-color: var(--brand); color: var(--brand); }
.wb-admin .grid2 { display: grid; grid-template-columns: 1fr 380px; gap: 22px; align-items: start; }
@media (max-width: 900px) { .wb-admin .grid2 { grid-template-columns: 1fr; } }
.wb-panel { background: #fff; border: 1px solid var(--border); padding: 24px; }
.wb-panel h2 {
  font-size: 16px;
  color: var(--brand);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--muted);
}
.wb-panel label { display: block; font-size: 13.5px; font-weight: 600; color: var(--foreground); margin-bottom: 6px; }
.wb-panel input, .wb-panel textarea, .wb-panel select {
  width: 100%;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--foreground);
  background: #fff;
  border: 1px solid var(--border);
  padding: 10px 12px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.wb-panel input:focus, .wb-panel textarea:focus, .wb-panel select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26, 39, 68, 0.10);
}
.wb-panel .field { margin-bottom: 14px; }
.wb-panel .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wb-panel textarea.body { min-height: 300px; resize: vertical; line-height: 1.75; }
.wb-panel .hint { font-size: 12.5px; color: #9aa4b5; margin-top: 5px; }
.wb-acts { display: flex; gap: 10px; margin-top: 18px; }
.wb-acts button { font-family: inherit; cursor: pointer; transition: all .22s ease; }
.wb-acts .primary { flex: 1; background: var(--brand); color: #fff; border: none; padding: 12px; font-size: 15px; font-weight: 700; }
.wb-acts .primary:hover { background: var(--brand-light); }
.wb-acts .ghost { background: #fff; border: 1px solid var(--border); color: var(--foreground); padding: 12px 18px; font-size: 14.5px; }
.wb-acts .ghost:hover { border-color: var(--gold); color: var(--gold); }
.wb-alist { display: flex; flex-direction: column; gap: 12px; max-height: 640px; overflow-y: auto; padding-right: 4px; }
.wb-item { border: 1px solid var(--border); padding: 14px 16px; transition: all .25s ease; }
.wb-item:hover { border-color: var(--brand); box-shadow: 0 8px 18px rgba(26, 39, 68, 0.08); }
.wb-item .t { font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wb-item .tag { font-size: 11.5px; padding: 1px 9px; font-weight: 600; }
.wb-item .tag.pub { color: #276749; background: #e9f7ee; }
.wb-item .tag.draft { color: #b07a1f; background: #fdf5e4; }
.wb-item .tag.pin { color: #9b2c2c; background: #fdf0ef; }
.wb-item .m { font-size: 12.5px; color: #9aa4b5; margin: 6px 0 10px; }
.wb-item .ops { display: flex; gap: 8px; flex-wrap: wrap; }
.wb-item .ops button {
  border: 1px solid var(--border);
  background: #fff;
  font-family: inherit;
  font-size: 12.5px;
  padding: 5px 12px;
  color: var(--foreground);
  cursor: pointer;
}
.wb-item .ops button:hover { border-color: var(--brand); color: var(--brand); }
.wb-item .ops .del:hover { border-color: #9b2c2c; color: #9b2c2c; }
.wb-toast {
  position: fixed;
  left: 50%;
  top: 84px;
  transform: translateX(-50%);
  background: #276749;
  color: #fff;
  padding: 11px 24px;
  font-size: 14.5px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
  z-index: 300;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.wb-toast.err { background: #9b2c2c; }
.wb-toast.show { opacity: 1; }
.wb-login { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 200px); padding: 40px 20px; }
.wb-login .box { background: #fff; border: 1px solid var(--border); padding: 40px 38px; width: 100%; max-width: 400px; }
.wb-login h1 { font-size: 21px; color: var(--brand); text-align: center; margin-bottom: 6px; }
.wb-login .sub { font-size: 13.5px; color: var(--muted-foreground); text-align: center; margin-bottom: 26px; }
.wb-login button { width: 100%; margin-top: 18px; background: var(--brand); color: #fff; border: none; padding: 12px; font-size: 15.5px; font-weight: 700; font-family: inherit; cursor: pointer; }
.wb-login button:hover { background: var(--brand-light); }
