:root {
  --primary: #185fa5;
  --primary-dark: #0c447c;
  --primary-light: #e6f1fb;
  --teal: #0f6e56;
  --teal-light: #e1f5ee;
  --red: #a32d2d;
  --red-light: #fcebeb;
  --amber: #854f0b;
  --amber-light: #faeeda;
  --bg: #f5f7fa;
  --card: #ffffff;
  --border: #e3e8ef;
  --text: #1f2937;
  --text-2: #4b5563;
  --text-3: #8a94a3;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(16, 42, 76, 0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 14px; }
img { max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.logo { display: flex; align-items: baseline; gap: 10px; flex-shrink: 0; }
.logo .logo-name { font-size: 22px; font-weight: 700; color: var(--primary-dark); letter-spacing: 1px; }
.logo .logo-slogan { font-size: 12px; color: var(--text-3); }
/* v1.8: 导航独立成第二行,彻底解决 9 个板块被压缩截断的问题 */
.main-nav {
  display: flex;
  gap: 3px;
  order: 10;
  flex-basis: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
}
.main-nav a {
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-2);
  white-space: nowrap;
}
.main-nav a:hover { background: var(--primary-light); color: var(--primary); }
.main-nav a.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-search { display: flex; align-items: center; }
.header-search input {
  width: 150px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  outline: none;
  font-size: 13px;
}
.header-search input:focus { border-color: var(--primary); }
.header-search button {
  padding: 6px 12px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
}
.user-area { position: relative; }
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 13px;
  color: var(--text-2);
}
.user-chip:hover { border-color: var(--primary); }
.user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  min-width: 150px;
  padding: 6px;
  display: none;
  z-index: 60;
}
.user-menu.open { display: block; }
.user-menu a, .user-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: none;
  background: none;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-2);
}
.user-menu a:hover, .user-menu button:hover { background: var(--bg); color: var(--primary); }
.btn-login {
  padding: 6px 16px;
  border-radius: 8px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
}
.btn-login:hover { background: var(--primary-dark); }

/* ---------- Announcement ---------- */
.announce {
  background: var(--amber-light);
  color: var(--amber);
  font-size: 13px;
  padding: 8px 0;
}
.announce .container { display: flex; align-items: center; gap: 8px; }
.announce .ann-tag { background: var(--amber); color: #fff; border-radius: 4px; padding: 0 6px; font-size: 12px; flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 46px 0 42px;
  text-align: center;
}
.hero h1 { font-size: 30px; letter-spacing: 2px; }
.hero p { margin-top: 8px; font-size: 14px; opacity: 0.85; }
.hero-search {
  margin: 24px auto 0;
  max-width: 520px;
  display: flex;
}
.hero-search input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 10px 0 0 10px;
  outline: none;
  font-size: 14px;
}
.hero-search button {
  padding: 0 26px;
  border: none;
  border-radius: 0 10px 10px 0;
  background: #0f2f52;
  color: #fff;
  font-size: 14px;
}
.hero-search button:hover { background: #0a2440; }

/* ---------- Sections ---------- */
.section { padding: 26px 0 6px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.section-head h2 { font-size: 19px; color: var(--primary-dark); }
.section-head h2::before { content: ""; display: inline-block; width: 4px; height: 16px; background: var(--primary); border-radius: 2px; margin-right: 8px; vertical-align: -2px; }
.section-head .more { font-size: 13px; color: var(--text-3); }
.section-head .more:hover { color: var(--primary); }

/* Category cards */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow);
  transition: transform 0.15s, border-color 0.15s;
}
.cat-card:hover { transform: translateY(-2px); border-color: var(--primary); }
.cat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cat-card h3 { font-size: 15px; color: var(--text); }
.cat-card p { font-size: 12.5px; color: var(--text-3); margin-top: 3px; line-height: 1.55; }
.cat-card .cat-count { margin-top: 6px; font-size: 12px; color: var(--primary); }

/* Two column layout */
.layout-main { display: grid; grid-template-columns: 1fr 320px; gap: 22px; padding: 10px 0 40px; }
.card-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Article list */
.art-item { padding: 16px 18px; border-bottom: 1px solid var(--border); }
.art-item:last-child { border-bottom: none; }
.art-item h3 { font-size: 15.5px; font-weight: 600; color: var(--text); line-height: 1.5; }
.art-item h3 a:hover { color: var(--primary); }
.art-item .art-brief { font-size: 13px; color: var(--text-3); margin-top: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; font-size: 12px; color: var(--text-3); align-items: center; }
.chip {
  display: inline-block;
  padding: 1px 8px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 20px;
  font-size: 12px;
}
.pin-badge { background: var(--red-light); color: var(--red); border-radius: 4px; padding: 0 6px; font-size: 12px; }

/* Hot list */
.hot-list { padding: 8px 4px; }
.hot-item { display: flex; gap: 10px; padding: 9px 14px; align-items: baseline; }
.hot-item:hover { background: var(--bg); }
.hot-rank { width: 20px; height: 20px; border-radius: 5px; background: var(--bg); color: var(--text-3); font-size: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 600; }
.hot-item:nth-child(1) .hot-rank, .hot-item:nth-child(2) .hot-rank, .hot-item:nth-child(3) .hot-rank { background: var(--primary); color: #fff; }
.hot-item h4 { font-size: 13.5px; font-weight: 500; color: var(--text-2); line-height: 1.5; }
.hot-item h4 a:hover { color: var(--primary); }
.hot-item .hot-views { margin-left: auto; font-size: 12px; color: var(--text-3); flex-shrink: 0; }
.panel-title { padding: 14px 18px 8px; font-size: 15px; font-weight: 600; color: var(--primary-dark); }

/* ---------- List page ---------- */
.list-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0 14px; }
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.cat-tabs a { padding: 5px 14px; border-radius: 20px; border: 1px solid var(--border); background: #fff; font-size: 13px; color: var(--text-2); }
.cat-tabs a.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.sort-select { padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text-2); outline: none; }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 20px 0 40px; font-size: 13px; color: var(--text-3); }
.pager button { padding: 6px 16px; border: 1px solid var(--border); background: #fff; border-radius: 8px; color: var(--text-2); }
.pager button:disabled { opacity: 0.4; cursor: not-allowed; }
.pager button:not(:disabled):hover { border-color: var(--primary); color: var(--primary); }

/* ---------- Article page ---------- */
.article-wrap { padding: 26px 0 40px; }
.breadcrumb { font-size: 13px; color: var(--text-3); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--primary); }
.article-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 40px; }
.article-card h1 { font-size: 24px; line-height: 1.5; color: var(--text); }
/* v2.2c 企业风采：正文标题右侧企业名片框（大字号 + logo，后台可编辑） */
.art-head-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.art-head-row h1 { flex: 1 1 auto; min-width: 0; }
.head-box {
  flex-shrink: 0; min-width: 240px;
  display: inline-flex; align-items: center; gap: 12px;
  max-width: 340px; padding: 12px 16px;
  border: 1.5px solid #f2d9b8; border-radius: 14px;
  background: linear-gradient(135deg, #fffaf2, #fff5e6);
  box-shadow: 0 4px 14px rgba(176, 117, 43, 0.14);
}
.head-box .hb-img { max-height: 60px; max-width: 130px; object-fit: contain; }
.head-box .hb-text {
  font-size: 20px; font-weight: 700; color: #b0752b; line-height: 1.35;
}
@media (max-width: 720px) {
  .art-head-row h1 { flex-basis: 100%; }
  .head-box { align-self: flex-start; max-width: 100%; padding: 10px 14px; gap: 10px; }
  .head-box .hb-img { max-height: 44px; max-width: 100px; }
  .head-box .hb-text { font-size: 16px; }
}
.article-head-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-3); align-items: center; }
.preface {
  margin: 20px 0;
  padding: 14px 18px;
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 10px 10px 0;
  color: var(--text-2);
  font-size: 14px;
}
.preface .pf-tag { color: var(--primary); font-weight: 600; margin-right: 6px; }
.article-content { font-size: 15.5px; color: var(--text); line-height: 1.9; word-break: break-word; }
.article-content p { margin: 14px 0; }
.article-content h3 { margin: 22px 0 10px; font-size: 17px; color: var(--primary-dark); }
.article-content strong { color: var(--primary-dark); }
.article-content ul, .article-content ol { margin: 12px 0 12px 24px; }
.article-content table { border-collapse: collapse; margin: 16px 0; width: 100%; font-size: 14px; }
.article-content th, .article-content td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.article-content th { background: var(--bg); color: var(--text-2); }
.article-content .art-note { background: var(--bg); border-radius: 8px; padding: 10px 14px; color: var(--text-3); font-size: 13px; }
.article-content img { border-radius: 8px; }
.article-content blockquote { border-left: 4px solid var(--border); padding-left: 14px; color: var(--text-3); margin: 14px 0; }

.action-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.act-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 20px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 14px;
  color: var(--text-2);
  transition: all 0.15s;
}
.act-btn:hover { border-color: var(--primary); color: var(--primary); }
.act-btn.actived { background: var(--red-light); border-color: var(--red); color: var(--red); }
.act-btn.actived.fav-btn { background: var(--amber-light); border-color: var(--amber); color: var(--amber); }
.act-btn svg { width: 16px; height: 16px; }
.share-tip { font-size: 12.5px; color: var(--text-3); margin-left: auto; }

/* Comments */
.comment-section { margin-top: 22px; }
.comment-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 26px; }
.comment-box h3 { font-size: 16px; color: var(--primary-dark); margin-bottom: 14px; }
.comment-form textarea {
  width: 100%;
  min-height: 84px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  resize: vertical;
  outline: none;
}
.comment-form textarea:focus { border-color: var(--primary); }
.comment-form-row { display: flex; gap: 10px; margin-top: 10px; align-items: center; flex-wrap: wrap; }
.comment-form-row input {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 180px;
  outline: none;
}
.btn-primary { padding: 8px 24px; border: none; border-radius: 8px; background: var(--primary); color: #fff; font-size: 14px; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.login-hint { background: var(--bg); border-radius: 10px; padding: 14px; text-align: center; color: var(--text-3); font-size: 13.5px; }
.login-hint a { color: var(--primary); font-weight: 600; }
.comment-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--border); }
.comment-item:last-child { border-bottom: none; }
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  flex-shrink: 0;
}
.comment-body { flex: 1; }
.comment-body .c-head { font-size: 13px; color: var(--text-2); display: flex; gap: 10px; align-items: center; }
.comment-body .c-head .c-time { color: var(--text-3); font-size: 12px; }
.comment-body p { font-size: 14px; color: var(--text); margin-top: 4px; }
.c-del { border: none; background: none; color: var(--text-3); font-size: 12px; padding: 0; }
.c-del:hover { color: var(--red); }

/* ---------- Login page ---------- */
.auth-wrap { max-width: 420px; margin: 46px auto 60px; padding: 0 20px; }
.auth-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 30px 30px 26px; }
.auth-card h2 { text-align: center; font-size: 21px; color: var(--primary-dark); margin-bottom: 4px; }
.auth-sub { text-align: center; font-size: 13px; color: var(--text-3); margin-bottom: 20px; }
.auth-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.auth-tabs button {
  flex: 1;
  padding: 10px 0;
  border: none;
  background: none;
  font-size: 14px;
  color: var(--text-3);
  border-bottom: 2px solid transparent;
}
.auth-tabs button.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--primary); }
.otp-row { display: flex; gap: 10px; }
.otp-row input { flex: 1; }
.otp-row button {
  padding: 0 14px;
  border: 1px solid var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 8px;
  font-size: 13px;
  white-space: nowrap;
}
.otp-row button:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-submit { width: 100%; padding: 11px 0; border: none; border-radius: 9px; background: var(--primary); color: #fff; font-size: 15px; margin-top: 6px; }
.auth-submit:hover { background: var(--primary-dark); }
.auth-msg { margin-top: 12px; font-size: 13px; min-height: 20px; }
.auth-msg.err { color: var(--red); }
.auth-msg.ok { color: var(--teal); }
.auth-foot { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-3); }
.auth-foot a { color: var(--primary); }

/* ---------- Admin ---------- */
.admin-layout { display: grid; grid-template-columns: 210px 1fr; gap: 20px; padding: 22px 0 46px; align-items: start; }
.admin-side { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; position: sticky; top: 84px; }
.admin-side .a-user { padding: 10px 12px 14px; border-bottom: 1px solid var(--border); margin-bottom: 10px; font-size: 13px; color: var(--text-2); }
.admin-side .a-user strong { display: block; color: var(--text); font-size: 14px; margin-bottom: 2px; }
.admin-side button.a-tab {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border: none;
  background: none;
  border-radius: 9px;
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 2px;
}
.admin-side button.a-tab:hover { background: var(--bg); }
.admin-side button.a-tab.active { background: var(--primary); color: #fff; font-weight: 600; }
.admin-main { min-width: 0; }
.admin-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; margin-bottom: 18px; }
.admin-panel h2 { font-size: 17px; color: var(--primary-dark); margin-bottom: 16px; }
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 20px; }
.stat-cell { background: var(--bg); border-radius: 10px; padding: 14px 12px; text-align: center; }
.stat-cell b { display: block; font-size: 22px; color: var(--primary-dark); }
.stat-cell span { font-size: 12px; color: var(--text-3); }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; align-items: center; }
.admin-toolbar input, .admin-toolbar select { padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; outline: none; background: #fff; }
.btn { padding: 7px 16px; border-radius: 8px; border: 1px solid var(--border); background: #fff; font-size: 13px; color: var(--text-2); }
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { border-color: var(--red); color: var(--red); }
.btn-danger:hover { background: var(--red-light); border-color: var(--red); color: var(--red); }
.btn-sm { padding: 3px 10px; font-size: 12px; border-radius: 6px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { border-bottom: 1px solid var(--border); padding: 9px 8px; text-align: left; vertical-align: middle; }
.tbl th { color: var(--text-3); font-weight: 500; white-space: nowrap; }
.tbl tr:hover td { background: #fafbfd; }
.tbl .t-title { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: var(--text); }
.tbl a.t-title:hover { color: var(--primary); }
.status-tag { padding: 1px 8px; border-radius: 4px; font-size: 12px; }
.status-published { background: var(--teal-light); color: var(--teal); }
.status-draft { background: var(--bg); color: var(--text-3); }
.status-hidden { background: var(--red-light); color: var(--red); }

/* modal */
.modal-mask { position: fixed; inset: 0; background: rgba(15, 30, 50, 0.45); display: none; align-items: flex-start; justify-content: center; z-index: 100; padding: 40px 16px; overflow-y: auto; }
.modal-mask.open { display: flex; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 720px; padding: 26px 28px; }
.modal h3 { font-size: 17px; color: var(--primary-dark); margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.form-grid .span2 { grid-column: span 2; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.modal-foot .btn-save { padding: 8px 26px; border: none; border-radius: 8px; background: var(--primary); color: #fff; font-size: 14px; }
.modal-foot .btn-save:hover { background: var(--primary-dark); }
.field-err { color: var(--red); font-size: 12.5px; margin-top: 8px; min-height: 16px; }

/* gate & misc */
.gate-box { max-width: 440px; margin: 70px auto; text-align: center; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 40px 30px; box-shadow: var(--shadow); }
.gate-box h2 { color: var(--primary-dark); margin-bottom: 10px; font-size: 20px; }
.gate-box p { color: var(--text-3); font-size: 14px; margin-bottom: 20px; }
.invite-form { display: flex; gap: 10px; justify-content: center; }
.invite-form input { flex: 1; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; outline: none; text-align: center; letter-spacing: 1px; }
.empty-tip { text-align: center; color: var(--text-3); font-size: 13.5px; padding: 34px 0; }
.loading-tip { text-align: center; color: var(--text-3); font-size: 13.5px; padding: 30px 0; }

/* toast */
.toast {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(20, 34, 56, 0.92);
  color: #fff;
  padding: 9px 20px;
  border-radius: 9px;
  font-size: 13.5px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s;
  z-index: 200;
  max-width: 80vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: rgba(140, 30, 30, 0.95); }
.toast.ok { background: rgba(13, 92, 72, 0.95); }

/* footer */
.site-footer { background: #14243c; color: #8fa0b8; margin-top: 30px; }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 26px 20px; display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; justify-content: space-between; font-size: 13px; }
.site-footer a { color: #b9c6d8; }
.site-footer a:hover { color: #fff; }
.footer-brand { font-size: 15px; color: #e8eef6; font-weight: 600; }

@media (max-width: 900px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .layout-main { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { position: static; }
  .article-card { padding: 24px 20px; }
  .logo .logo-slogan { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span2 { grid-column: span 1; }
}
@media (max-width: 560px) {
  .cat-grid { grid-template-columns: 1fr; }
  .header-search { display: none; }
  .hero h1 { font-size: 24px; }
}

/* ============ v1.1 满版首页 ============ */
.hero.slim { padding: 30px 0 26px; }
.hero.slim h1 { font-size: 26px; }
.hero.slim .hero-search { margin-top: 18px; }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 18px 0 2px; }
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
}
.stat-ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.stat-card b { display: block; font-size: 20px; color: var(--primary-dark); line-height: 1.25; }
.stat-card span { font-size: 12px; color: var(--text-3); }

.art-item.with-thumb { display: flex; gap: 14px; align-items: flex-start; }
.art-thumb {
  width: 104px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg);
  border: 1px solid var(--border);
}

.brief-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: 6px; }
.brief-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px 20px 10px;
}
.brief-card .b-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0 10px;
  border-bottom: 1px solid var(--border);
}
.brief-card .b-head .b-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brief-card .b-head h3 { font-size: 14.5px; color: var(--primary-dark); flex: 1; }
.brief-card .b-head a { font-size: 12px; color: var(--text-3); }
.brief-card .b-head a:hover { color: var(--primary); }
.brief-item { padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.brief-item:last-child { border-bottom: none; }
.brief-item a { color: var(--text-2); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brief-item a:hover { color: var(--primary); }
.brief-item .b-meta { font-size: 11.5px; color: var(--text-3); margin-top: 1px; }

.cmt-mini { padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.cmt-mini:last-child { border-bottom: none; }
.cmt-mini .c-who { color: var(--primary-dark); font-weight: 600; }
.cmt-mini p { color: var(--text-2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmt-mini .c-src { color: var(--text-3); font-size: 12px; }

.home-layout { display: grid; grid-template-columns: 1fr 320px; gap: 22px; padding: 8px 0 26px; align-items: start; }
.list-layout { display: grid; grid-template-columns: 1fr 320px; gap: 22px; padding-bottom: 26px; align-items: start; }

@media (max-width: 900px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .brief-grid { grid-template-columns: repeat(2, 1fr); }
  .home-layout, .list-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .brief-grid { grid-template-columns: 1fr; }
}

/* ============ v1.1 补充 ============ */
.art-item.with-thumb .art-main { flex: 1; min-width: 0; }
.side-stack { display: flex; flex-direction: column; gap: 18px; }
.side-panel .section-head { padding: 14px 16px 10px; }
/* v1.8 侧栏内容区左右留白：会议节点(brief-item) / 最新评论(cmt-mini) 原本贴边 */
.side-panel .brief-item, .side-panel .cmt-mini, .side-panel .empty-tip { padding-left: 16px; padding-right: 16px; }
.side-panel .hot-list { padding: 8px 2px; }

/* ============ v1.2 视觉升级：色调 / 图标 / 小功能 ============ */
body {
  background:
    radial-gradient(1000px 460px at 88% -120px, rgba(15, 110, 86, 0.09), transparent 62%),
    radial-gradient(1200px 520px at -8% -140px, rgba(24, 95, 165, 0.12), transparent 60%),
    repeating-linear-gradient(90deg, rgba(24, 95, 165, 0.028) 0 1px, transparent 1px 64px),
    var(--bg);
}
.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--teal) 42%, #6d5bd0 72%, var(--red));
}
.admin-body .site-header::before { background: linear-gradient(90deg, #b45309, #d97706, #f59e0b); }

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(130deg, #0c447c 0%, #1a66b0 52%, #0f6e56 100%);
}
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; }
.hero::before {
  width: 340px; height: 340px; left: -90px; top: -160px;
  background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.16), transparent 65%);
}
.hero::after {
  width: 460px; height: 460px; right: -130px; bottom: -240px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.12), transparent 60%);
}
.hero .container { position: relative; z-index: 1; }
.hero-search input { box-shadow: 0 6px 22px rgba(6, 32, 63, 0.25); }
.hero-search button { background: linear-gradient(135deg, #0d5c43, #0f6e56); }
.hero-search button:hover { background: #0b4a37; }

.announce { background: linear-gradient(90deg, #faeeda, #fdf6e8); }

.logo { align-items: center; }
.logo-mark { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 2px 8px rgba(10, 35, 70, 0.22); flex-shrink: 0; }
.admin-badge {
  font-size: 11px; color: #fff;
  background: linear-gradient(135deg, #d97706, #b45309);
  border-radius: 5px; padding: 2px 7px; letter-spacing: 1px; flex-shrink: 0;
}

.section-head h2::before { background: linear-gradient(180deg, var(--primary), var(--teal)); }
.card-panel, .cat-card, .stat-card, .brief-card, .article-card, .comment-box, .admin-panel, .auth-card, .gate-box {
  box-shadow: 0 6px 20px rgba(16, 42, 76, 0.06);
}
.cat-card:hover, .stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(16, 42, 76, 0.10);
  border-color: #c9dcf2;
}

/* 板块图标（duotone SVG，按板块着色） */
.cat-ico {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; flex-shrink: 0;
  width: var(--ico-size, 44px); height: var(--ico-size, 44px);
}
.cat-ico svg { width: calc(var(--ico-size, 44px) * 0.56); height: calc(var(--ico-size, 44px) * 0.56); }
.cat-ico-zhengce { background: var(--primary-light); color: var(--primary); }
.cat-ico-shichang { background: var(--teal-light); color: var(--teal); }
.cat-ico-shendu { background: #efecfb; color: #6d5bd0; }
.cat-ico-shuju { background: #fdf1de; color: #b45309; }
.cat-ico-fagui { background: var(--red-light); color: var(--red); }
.cat-ico-huiyi { background: #e0f5fa; color: #0e7490; }
.side-cat-row a { display: flex; align-items: center; gap: 8px; }
.side-cat-row .cat-ico { border-radius: 7px; }
.side-cat-row .cat-ico svg { width: 13px; height: 13px; }

/* 统计卡彩色图标 */
.stat-ico.i-blue { background: var(--primary-light); color: var(--primary); }
.stat-ico.i-teal { background: var(--teal-light); color: var(--teal); }
.stat-ico.i-amber { background: #fdf1de; color: #b45309; }
.stat-ico.i-rose { background: var(--red-light); color: var(--red); }
.stat-ico svg { width: 20px; height: 20px; }

/* 分类彩色 chip */
.chip.chip-zhengce { background: var(--primary-light); color: var(--primary); }
.chip.chip-shichang { background: var(--teal-light); color: var(--teal); }
.chip.chip-shendu { background: #efecfb; color: #6d5bd0; }
.chip.chip-shuju { background: #fdf1de; color: #b45309; }
.chip.chip-fagui { background: var(--red-light); color: var(--red); }
.chip.chip-huiyi { background: #e0f5fa; color: #0e7490; }
.chip.chip-jiedu { background: #f1edfb; color: #7c5cd6; }
.cat-ico-jiedu { background: #f1edfb; color: #7c5cd6; }
.cat-ico-qita { background: #edf1f5; color: #64748b; }

/* 小提示条 */
.tip-bar {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(90deg, #eaf3fc, #e8f6f1);
  border: 1px dashed #bcd4ea;
  color: var(--text-2);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 13px;
  margin-bottom: 14px;
}
.tip-bar svg { width: 16px; height: 16px; color: var(--amber); flex-shrink: 0; }

/* 阅读进度条 */
.read-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--primary), var(--teal));
  z-index: 80;
  transition: width 0.1s linear;
}

/* 返回顶部 */
#backTop {
  position: fixed; right: 22px; bottom: 30px;
  width: 42px; height: 42px; border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--primary), #0d5c8a);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(16, 42, 76, 0.28);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: all 0.25s;
  z-index: 90;
}
#backTop.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
#backTop svg { width: 18px; height: 18px; }

/* footer 小 Logo */
.footer-brand-row { display: flex; align-items: center; gap: 8px; }
.f-logo { width: 22px; height: 22px; border-radius: 6px; }

/* 登录页 Logo */
.auth-logo {
  display: block; width: 52px; height: 52px; border-radius: 13px;
  margin: 0 auto 10px;
  box-shadow: 0 6px 18px rgba(16, 42, 76, 0.18);
}

/* 文章页转引信息样式（导入内容的合规区块） */
.article-content .art-source {
  background: var(--bg);
  border-left: 4px solid var(--teal);
  border-radius: 0 8px 8px 0;
  padding: 8px 14px;
  color: var(--text-2);
  font-size: 13.5px;
  margin: 0 0 14px;
}
.article-content .art-compliance {
  background: #fdf6e8;
  border: 1px dashed #e7c98a;
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--amber);
  font-size: 12.5px;
}
.article-content .art-origin { font-size: 14px; }
.article-content .art-origin a { color: var(--primary); font-weight: 600; }
.article-content .art-origin a:hover { text-decoration: underline; }

/* ============================================================
 * v1.3 网站导航 / 企业风采 / 首页快捷入口 / 细节修复
 * ============================================================ */

/* --- 顶部主导航：滚动条隐藏 + 顺滑 --- */
.main-nav { scrollbar-width: none; -ms-overflow-style: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { white-space: nowrap; flex-shrink: 0; }

/* --- 底部分隔点 --- */
.f-sep { color: var(--text-3); margin: 0 2px; }

/* --- 首页快捷入口 --- */
.quick-entries {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0 6px;
}
.qe-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(16, 42, 76, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.qe-card::after {
  content: "";
  position: absolute;
  right: -34px; top: -34px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.qe-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(16, 42, 76, 0.24); }
.qe-nav { background: linear-gradient(120deg, #1b6ab5, #0c447c); }
.qe-comp { background: linear-gradient(120deg, #12846a, #0a5341); }
.qe-ico {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  display: flex; align-items: center; justify-content: center;
}
.qe-ico svg { width: 25px; height: 25px; }
.qe-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qe-text b { font-size: 16.5px; letter-spacing: 1px; }
.qe-text i { font-style: normal; font-size: 12.5px; opacity: 0.85; }
.qe-go {
  margin-left: auto;
  font-size: 26px; font-weight: 300;
  opacity: 0.75; line-height: 1;
  position: relative; z-index: 1;
}

/* --- 导航页 / 企业页 共用：分组标题 --- */
.nav-group { margin: 26px 0 8px; scroll-margin-top: 84px; }
.nav-group-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--ng-deep, var(--primary));
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.ng-index {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px;
  background: var(--ng-acc, var(--primary-light));
  color: var(--ng-deep, var(--primary));
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
}
.ng-titles h2 { font-size: 18px; color: var(--ng-deep, var(--primary-dark)); }
.ng-titles p { font-size: 12.5px; color: var(--text-3); margin-top: 1px; }

/* 分组配色 */
.g-gov      { --ng-deep: #185fa5; --ng-acc: #e3eefb; }
.g-assoc    { --ng-deep: #0f6e56; --ng-acc: #dff3ec; }
.g-data     { --ng-deep: #4a52c4; --ng-acc: #e7e9fb; }
.g-media    { --ng-deep: #a8442e; --ng-acc: #fbe9e3; }
.g-edu      { --ng-deep: #7a3fa0; --ng-acc: #f3e8fa; }
.g-intl     { --ng-deep: #0e7c9c; --ng-acc: #e0f2f8; }
.g-service  { --ng-deep: #b04a12; --ng-acc: #fcecdf; }
.g-device   { --ng-deep: #33707f; --ng-acc: #e4f1f4; }
.g-domestic { --ng-deep: #185fa5; --ng-acc: #e3eefb; }
.g-global   { --ng-deep: #0f6e56; --ng-acc: #dff3ec; }

/* --- 导航页快速跳转条 --- */
.nav-quickbar { margin-top: 18px; padding: 16px 18px; }
.nav-quick-head { font-size: 13.5px; color: var(--text-2); margin-bottom: 12px; }
.nav-quick-head b { color: var(--primary); }
.nav-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.nav-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  background: var(--ng-acc, var(--primary-light));
  color: var(--ng-deep, var(--primary));
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nav-chip:hover { transform: translateY(-2px); box-shadow: 0 5px 12px rgba(16, 42, 76, 0.14); }
.nav-chip i {
  font-style: normal;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--ng-deep, var(--primary));
  color: #fff; font-size: 11px;
  display: inline-flex; align-items: center; justify-content: center;
}
.nav-chip em { font-style: normal; font-weight: 400; opacity: 0.75; font-size: 12px; }

/* --- 导航卡片网格 --- */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.nav-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.nav-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(16, 42, 76, 0.12);
  border-color: var(--ng-deep, var(--primary));
}
.nc-no {
  grid-row: 1 / span 2;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--ng-acc, var(--primary-light));
  color: var(--ng-deep, var(--primary));
  font-size: 12.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.nc-name { font-size: 14.5px; font-weight: 600; color: var(--text); }
.nc-host { grid-column: 2; font-size: 11.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-go { grid-row: 1 / span 2; font-size: 15px; color: var(--text-3); opacity: 0; transition: opacity 0.15s ease; }
.nav-card:hover .nc-go { opacity: 1; color: var(--ng-deep, var(--primary)); }

.nav-disclaimer {
  margin: 18px 0 26px;
  padding: 13px 16px;
  font-size: 13px;
  color: var(--text-2);
  background: #f8fafc;
  border: 1px dashed var(--border);
}
.nav-disclaimer b { color: var(--primary); margin-right: 6px; }

/* --- 企业风采 --- */
.comp-note { font-size: 13px; color: var(--text-2); }
.comp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}
.comp-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px 16px 13px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.comp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(16, 42, 76, 0.13);
  border-color: var(--ng-deep, var(--primary));
}
.comp-top { display: flex; align-items: center; gap: 11px; }
.comp-logo {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: #fff;
  object-fit: contain;
  padding: 4px;
}
.comp-names { min-width: 0; }
.comp-names h3 { font-size: 15.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.comp-names span { font-size: 11.5px; color: var(--text-3); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.comp-intro { font-size: 13px; color: var(--text-2); line-height: 1.65; flex: 1; }
/* v2.3 企业卡片：名称下方图片框（后台可配，靠左显示） */
.comp-pic {
  align-self: flex-start;
  margin: 12px 0 0; max-width: 240px;
  border: 1px solid var(--border); border-radius: 10px;
  background: #fff; padding: 8px 8px 6px;
  box-shadow: 0 3px 10px rgba(16, 42, 76, 0.05);
}
.comp-pic img { display: block; max-width: 100%; max-height: 130px; object-fit: contain; border-radius: 6px; }
.comp-pic figcaption {
  margin-top: 6px; font-size: 12px; color: var(--text-3); text-align: left;
  border-top: 1px dashed var(--border); padding-top: 5px;
}
.comp-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ng-deep, var(--primary));
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ng-acc, var(--primary-light));
}
.comp-link:hover { filter: brightness(0.96); }

/* --- 响应式 --- */
@media (max-width: 760px) {
  .quick-entries { grid-template-columns: 1fr; }
  .qe-text i { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .comp-grid { grid-template-columns: 1fr; }
  .logo .logo-slogan { display: none; }
}

/* ==================== v1.4 政策双维度检索 ==================== */
.gov-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 14px 0 4px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(24, 95, 165, 0.06), rgba(13, 148, 136, 0.05));
  border: 1px solid var(--border);
  border-radius: 12px;
}
.gov-filters .gf-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
}
.gov-filters .gf-label svg { width: 16px; height: 16px; }
.gov-filters .gf-item { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.gov-filters .gf-item select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg, #fff);
  color: var(--text-1);
  font-size: 13px;
  max-width: 200px;
  cursor: pointer;
}
.gov-filters .gf-item select:focus { outline: 2px solid rgba(24, 95, 165, 0.25); border-color: var(--primary); }
.gov-filters .gf-reset {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.gov-filters .gf-reset:hover { color: var(--primary); border-color: var(--primary); }
.chip-agency {
  background: rgba(24, 95, 165, 0.09);
  color: var(--primary);
}

/* ==================== v1.4 企业风采长文 ==================== */
.comp-card.comp-expandable { display: flex; flex-direction: column; }
.comp-long { margin-top: 6px; padding: 14px 15px; background: var(--bg-soft, rgba(24, 95, 165, 0.04)); border-radius: 10px; overflow: hidden; }
.comp-long p { font-size: 13.5px; line-height: 1.85; color: var(--text-1); margin: 0 0 10px; text-align: justify; }
.comp-long p:last-child { margin-bottom: 0; }
.comp-actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.comp-actions .comp-link { align-self: auto; }
.comp-toggle {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  background: transparent;
  border: 1px solid rgba(24, 95, 165, 0.35);
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.comp-toggle:hover { background: rgba(24, 95, 165, 0.08); }
.comp-toggle.open { color: var(--text-2); border-color: var(--border); }

/* ==================== v1.4 网站导航：图标+悬浮网址 ==================== */
.nav-card { align-items: center; }
.nav-card .nc-ico {
  position: relative;
  width: 30px; height: 30px;
  flex: 0 0 30px;
  border-radius: 8px;
  background: rgba(24, 95, 165, 0.06);
  overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  margin-right: 2px;
}
.nav-card .nc-ico img { width: 22px; height: 22px; object-fit: contain; border-radius: 4px; }
.nav-card .nc-ico i {
  font-style: normal;
  font-size: 14px; font-weight: 700; color: var(--primary);
}
.nav-card .nc-ico.ico-none i { display: inline-block; }
/* 悬浮序号 → 显示完整网址 tooltip */
.nav-card .nc-no { position: relative; }
.nav-card .nc-no::after {
  content: attr(data-url);
  position: absolute;
  left: 0; bottom: calc(100% + 8px);
  background: #12324f;
  color: #fff;
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 9px;
  border-radius: 6px;
  white-space: nowrap;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: all 0.15s ease;
  pointer-events: none;
  z-index: 30;
  box-shadow: 0 4px 14px rgba(15, 40, 70, 0.25);
}
.nav-card .nc-no::before {
  content: "";
  position: absolute;
  left: 10px; bottom: calc(100% + 3px);
  border: 5px solid transparent;
  border-top-color: #12324f;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: all 0.15s ease;
  pointer-events: none;
  z-index: 31;
}
.nav-card:hover .nc-no::after,
.nav-card .nc-no:hover::after { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-card:hover .nc-no::before,
.nav-card .nc-no:hover::before { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- 会员系统 v1.6 ---------- */
.u-avatar { border-radius: 50%; object-fit: cover; display: inline-block; vertical-align: middle; background: var(--bg); flex-shrink: 0; }
.u-avatar-txt { display: inline-flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, var(--primary), var(--teal)); font-weight: 600; }
.user-chip .u-avatar { margin-right: 7px; }
.user-chip .uname { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: middle; }
.lvl-badge { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 1.7; vertical-align: middle; }
.lvl-normal { background: #eef2f6; color: #64748b; }
.lvl-premium { background: linear-gradient(135deg, #b07909, #d9a521); color: #fff; box-shadow: 0 1px 2px rgba(176, 121, 9, 0.35); }
.lvl-expired { background: #f1ece1; color: #a08a55; }

/* 个人中心 */
.profile-wrap { max-width: 1000px; margin: 26px auto 40px; padding: 0 20px; display: grid; grid-template-columns: 290px 1fr; gap: 20px; align-items: start; }
.pf-side { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 22px; text-align: center; box-shadow: var(--shadow); }
.pf-avatar-wrap { position: relative; width: 104px; height: 104px; margin: 0 auto 12px; }
.pf-avatar-wrap .u-avatar { width: 104px !important; height: 104px !important; font-size: 40px !important; }
.pf-avatar-edit { position: absolute; right: -2px; bottom: -2px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; box-shadow: var(--shadow); }
.pf-avatar-edit:hover { background: var(--primary-dark); }
.pf-name { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.pf-mail { font-size: 12.5px; color: var(--text-3); word-break: break-all; margin-bottom: 10px; }
.pf-meta { text-align: left; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border); font-size: 12.5px; color: var(--text-3); display: grid; gap: 6px; }
.pf-meta b { color: var(--text-2); font-weight: 600; }
.pf-admin-tip { margin-top: 14px; background: var(--amber-light); color: var(--amber); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; }
.pf-admin-tip a { text-decoration: underline; }
.pf-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); margin-bottom: 18px; }
.pf-card h3 { font-size: 15.5px; color: var(--primary-dark); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.pf-card .pf-hint { font-size: 12px; color: var(--text-3); margin: -6px 0 12px; }
.pf-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.pf-actions { display: flex; gap: 10px; margin-top: 4px; }
.btn-primary2 { padding: 8px 26px; border: none; border-radius: 8px; background: var(--primary); color: #fff; font-size: 14px; }
.btn-primary2:hover { background: var(--primary-dark); }
.btn-primary2:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-ghost2 { padding: 8px 20px; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--text-2); font-size: 14px; }
.btn-ghost2:hover { border-color: var(--primary); color: var(--primary); }
@media (max-width: 860px) { .profile-wrap { grid-template-columns: 1fr; } }

/* 后台会员管理 */
.m-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.mb-avatar-cell { display: flex; align-items: center; gap: 8px; }
.mb-note { font-size: 12px; color: var(--text-3); }
.invite-card { background: var(--primary-light); border: 1px dashed var(--primary); border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; }
.invite-card h4 { font-size: 14px; color: var(--primary-dark); margin-bottom: 8px; }
.invite-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.invite-row input, .invite-row select { padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13.5px; }
.invite-tip { font-size: 12.5px; color: var(--text-2); margin-top: 8px; }
.mb-avatar-prev { display: flex; align-items: center; gap: 14px; grid-column: span 2; }
.mb-avatar-prev .u-avatar { width: 64px !important; height: 64px !important; font-size: 26px !important; }
.c-head .lvl-badge { margin: 0 8px; }
img.avatar { object-fit: cover; }
.qe { cursor: pointer; border-bottom: 1px dashed var(--text-3); padding-bottom: 1px; }
.qe:hover { color: var(--primary); border-bottom-color: var(--primary); }

/* ============ v2.2 两级管理员 · 勾选式权限 ============ */
.perm-grid { display: flex; flex-direction: column; gap: 12px; }
.perm-group b { display: block; font-size: 12.5px; color: var(--text-3); margin-bottom: 7px; font-weight: 600; }
.perm-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px 10px; }
.perm-item { display: flex; align-items: center; gap: 6px; font-weight: 400; font-size: 13px; cursor: pointer; user-select: none; }
.perm-item input[type="checkbox"] { width: 15px; height: 15px; cursor: pointer; }
@media (max-width: 640px) { .perm-items { grid-template-columns: repeat(2, 1fr); } }

/* ============ v1.9 企业风采集（高级会员专栏） ============ */
.cat-ico-fengcai { background: #fdf3e0; color: #b8791a; }
/* 列表标题后的 VIP 小徽章 */
.vip-tag {
  display: inline-block; vertical-align: 2px; margin-left: 7px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 1px; line-height: 1;
  color: #b8791a; background: linear-gradient(135deg, #fdf3e0, #f9e2b3);
  border: 1px solid #ecd39f; border-radius: 4px; padding: 2.5px 5px;
}
/* 列表页专栏提示条 */
.premium-notice {
  display: flex; align-items: center; gap: 9px;
  margin: 14px 0 0; padding: 11px 16px;
  background: linear-gradient(90deg, #fdf3e0, #fdfaf2);
  border: 1px solid #ecd39f; border-radius: 10px;
  font-size: 13px; color: #8a5a12;
}
.premium-notice svg { width: 19px; height: 19px; flex-shrink: 0; color: #b8791a; }
/* 文章详情页：锁定提示卡片 */
.gate-card {
  margin: 26px auto 10px; max-width: 560px; text-align: center;
  border: 1px dashed #ecd39f; border-radius: 14px;
  background: linear-gradient(160deg, #fdfaf2, #fdf3e0);
  padding: 34px 28px 26px;
}
.gate-card .gate-ico { display: flex; justify-content: center; margin-bottom: 12px; }
.gate-card .gate-ico .cat-ico { --ico-size: 56px; border-radius: 15px; background: #f9e2b3; color: #b8791a; }
.gate-card h2 { font-size: 20px; color: #7a4d0c; margin-bottom: 10px; }
.gate-card p { font-size: 14px; color: var(--text-2); line-height: 1.75; }
.gate-card .gate-actions { display: flex; justify-content: center; gap: 12px; margin: 18px 0 14px; flex-wrap: wrap; }
.gate-card .gate-note { font-size: 12.5px; color: var(--text-3); }
/* 文章页幽灵按钮 */
.btn-ghost {
  padding: 8px 20px; border-radius: 8px; border: 1px solid var(--border);
  background: #fff; color: var(--text-2); font-size: 14px; display: inline-block;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
/* 文章页图片框（企业风采集：企业标识 + 图片名称） */
.pic-box {
  margin: 20px auto 22px; max-width: 620px; text-align: center;
  border: 1px solid var(--border); border-radius: 12px;
  background: #fff; padding: 16px 16px 12px;
  box-shadow: 0 4px 14px rgba(16, 42, 76, 0.06);
}
.pic-box img { max-width: 100%; max-height: 320px; object-fit: contain; }
.pic-box figcaption { margin-top: 10px; font-size: 12.5px; color: var(--text-3); border-top: 1px dashed var(--border); padding-top: 9px; }
/* 文章页尾部注释 */
.tail-note {
  margin-top: 22px; padding: 13px 16px;
  background: var(--bg); border-left: 3px solid var(--border);
  border-radius: 0 9px 9px 0; font-size: 13px; color: var(--text-3); line-height: 1.7;
}
.tail-note .tn-tag { color: var(--text-2); font-weight: 600; margin-right: 7px; }

/* ============ v1.9c 后台独立编辑体系 ============ */
/* 文章管理：板块快捷切换条（每个板块一个入口） */
.cat-quickbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.cqb-item {
  padding: 6px 14px; border: 1px solid var(--border); border-radius: 18px;
  background: #fff; color: var(--text-2); font-size: 13px; cursor: pointer;
  transition: all 0.12s;
}
.cqb-item:hover { border-color: var(--primary); color: var(--primary); }
.cqb-item.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
/* 弹窗表单分组标题 */
.form-sep {
  grid-column: 1 / -1;
  font-size: 12.5px; font-weight: 700; letter-spacing: 1px;
  color: var(--primary-dark);
  border-bottom: 1px dashed var(--border);
  padding: 10px 0 6px; margin-top: 6px;
}

/* v1.9e：侧栏「企业风采专栏」子入口（文章管理的板块直达） */
.admin-side button.a-tab-sub {
  padding-left: 30px;
  font-size: 13px;
  color: var(--text-2);
}
.admin-side button.a-tab-sub::before {
  content: "└ ";
  color: var(--text-3);
}
