/* ============================================================
   AI 导航站 · 全局样式
   极简轻量风格 · 蓝青主色 · 全站响应式
   ============================================================ */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #06b6d4;
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #1e293b;
  --text-2: #64748b;
  --border: #e2e8f0;
  --danger: #ef4444;
  --success: #16a34a;
  --warning: #f59e0b;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-lg: 0 10px 25px rgba(15,23,42,.08);
}

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

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; color: var(--text); }
.logo:hover { color: var(--text); }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800;
}
.logo-text { white-space: nowrap; }
.header-search {
  flex: 1; max-width: 420px; display: flex;
  border: 1px solid var(--border); border-radius: 999px;
  overflow: hidden; background: #fff;
}
.header-search input {
  flex: 1; border: none; outline: none; padding: 8px 16px; font-size: 14px;
}
.header-search button {
  border: none; background: transparent; color: var(--primary);
  padding: 0 18px; cursor: pointer; font-size: 14px; font-weight: 600;
}
.site-nav { display: flex; gap: 4px; }
.site-nav a {
  padding: 8px 12px; border-radius: 8px; color: var(--text-2); font-size: 14px; font-weight: 500;
}
.site-nav a:hover { color: var(--primary); background: var(--primary-light); }
.site-nav a.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }
.header-user { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 18px; border-radius: 8px; border: none; cursor: pointer;
  font-size: 14px; font-weight: 600; transition: .15s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--text-2); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--primary); border-color: var(--primary); }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-outline { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-block { width: 100%; }

/* 用户下拉 */
.user-dropdown { position: relative; }
.user-btn {
  background: var(--primary-light); color: var(--primary);
  border: none; padding: 7px 14px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 14px;
}
.caret { font-size: 11px; margin-left: 4px; }
.dropdown-menu {
  display: none; position: absolute; right: 0; top: 44px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow-lg); min-width: 140px; overflow: hidden;
}
.dropdown-menu.show { display: block; }
.dropdown-menu a { display: block; padding: 10px 16px; color: var(--text); font-size: 14px; }
.dropdown-menu a:hover { background: var(--bg); color: var(--primary); }
.dropdown-menu .admin-link { color: var(--warning); font-weight: 600; }

/* ---------- Flash ---------- */
.flash-wrap { position: fixed; top: 72px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.flash {
  background: #fff; border-radius: 10px; padding: 10px 16px; font-size: 14px;
  box-shadow: var(--shadow-lg); border-left: 4px solid var(--primary); max-width: 360px;
}
.flash-success { border-left-color: var(--success); }
.flash-danger { border-left-color: var(--danger); }
.flash-warning { border-left-color: var(--warning); }
.flash-close { float: right; cursor: pointer; color: var(--text-2); margin-left: 12px; }

/* ---------- 通用区块 ---------- */
.main-wrap { padding: 24px 20px 48px; min-height: 60vh; }
.section { margin-bottom: 28px; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.section-title { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.section-title::before {
  content: ""; width: 4px; height: 18px; background: linear-gradient(var(--primary), var(--accent));
  border-radius: 2px;
}
.section-more { font-size: 13px; color: var(--text-2); }
.section-more:hover { color: var(--primary); }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.card-pad { padding: 20px; }

/* ---------- Banner ---------- */
.banner {
  border-radius: 16px; padding: 36px 32px; color: #fff; margin-bottom: 28px;
  background: linear-gradient(120deg, #1e3a8a 0%, #2563eb 55%, #06b6d4 100%);
  position: relative; overflow: hidden;
}
.banner::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  border-radius: 50%; background: rgba(255,255,255,.08);
}
.banner h1 { font-size: 30px; font-weight: 800; margin-bottom: 8px; }
.banner p { font-size: 15px; opacity: .92; max-width: 640px; }
.banner-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.banner-actions a {
  padding: 10px 22px; border-radius: 999px; font-weight: 600; font-size: 14px;
  background: #fff; color: var(--primary-dark);
}
.banner-actions a:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.banner-ticker {
  margin-top: 18px; display: flex; gap: 8px; align-items: center;
  background: rgba(0,0,0,.18); border-radius: 999px; padding: 8px 16px; font-size: 13px;
  max-width: 720px; overflow: hidden; white-space: nowrap;
}
.ticker-label { font-weight: 700; flex-shrink: 0; }
.ticker-text { overflow: hidden; }
.ticker-text span { display: inline-block; padding-right: 40px; animation: ticker 30s linear infinite; }
@keyframes ticker { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* ---------- 首页分类快捷入口 ---------- */
.cat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; transition: .2s; display: block; color: var(--text);
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary); color: var(--text); }
.cat-card .cat-ico {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 12px;
}
.cat-card h3 { font-size: 17px; margin-bottom: 6px; }
.cat-card p { color: var(--text-2); font-size: 13px; margin-bottom: 10px; }
.cat-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-tags span {
  font-size: 12px; background: var(--bg); color: var(--text-2);
  padding: 2px 8px; border-radius: 999px;
}
.ico-blue { background: var(--primary-light); }
.ico-green { background: #dcfce7; }
.ico-orange { background: #ffedd5; }

/* ---------- 统计条 ---------- */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px;
}
.stat-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; text-align: center;
}
.stat-item .num { font-size: 26px; font-weight: 800; color: var(--primary); }
.stat-item .label { font-size: 13px; color: var(--text-2); margin-top: 2px; }

/* ---------- 首页双列 ---------- */
.home-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.home-grid .col { display: flex; flex-direction: column; gap: 20px; }

/* ---------- 列表 / 卡片 ---------- */
.grid-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-list.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-list.cols-2 { grid-template-columns: repeat(2, 1fr); }

.item-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; transition: .15s; display: flex; flex-direction: column; gap: 8px;
}
.item-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--primary); }
.item-card .item-title { font-size: 15px; font-weight: 700; color: var(--text); }
.item-card .item-title:hover { color: var(--primary); }
.item-card .item-desc { font-size: 13px; color: var(--text-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.item-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.tag {
  display: inline-block; font-size: 12px; background: var(--bg);
  color: var(--text-2); padding: 2px 9px; border-radius: 999px; border: 1px solid transparent;
}
.tag-blue { background: var(--primary-light); color: var(--primary); }
.tag-green { background: #dcfce7; color: #15803d; }
.tag-orange { background: #ffedd5; color: #c2410c; }
.tag-red { background: #fee2e2; color: #b91c1c; }
.tag-purple { background: #ede9fe; color: #6d28d9; }
.tag-pending { background: #fef9c3; color: #a16207; }
.tag-ok { background: #dcfce7; color: #15803d; }

.badge {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.badge-hot { background: #fee2e2; color: #b91c1c; }
.badge-new { background: #dcfce7; color: #15803d; }

/* ---------- 排行榜 ---------- */
.rank-list { list-style: none; }
.rank-list li { padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.rank-list li:last-child { border-bottom: none; }
.rank-num {
  display: inline-flex; width: 20px; height: 20px; border-radius: 6px;
  background: var(--bg); color: var(--text-2); align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; margin-right: 8px;
}
.rank-list li:nth-child(1) .rank-num { background: #fee2e2; color: #dc2626; }
.rank-list li:nth-child(2) .rank-num { background: #ffedd5; color: #ea580c; }
.rank-list li:nth-child(3) .rank-num { background: #fef9c3; color: #ca8a04; }

/* ---------- 标签云 ---------- */
.tagcloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tagcloud a {
  font-size: 14px; background: var(--card); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 16px; color: var(--text-2); transition: .15s;
}
.tagcloud a:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-light); }
.tagcloud a.tag-lg { font-size: 16px; color: var(--primary); }
.tagcloud a.tag-sm { font-size: 12px; }

/* ---------- 筛选面板 ---------- */
.filter-panel {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 18px;
}
.filter-row { display: flex; align-items: flex-start; margin-bottom: 12px; }
.filter-row:last-child { margin-bottom: 0; }
.filter-label {
  flex-shrink: 0; width: 72px; font-size: 13px; color: var(--text-2);
  padding-top: 5px; font-weight: 600;
}
.filter-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-opts label {
  font-size: 13px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--border);
  cursor: pointer; color: var(--text-2); background: #fff; transition: .15s;
}
.filter-opts input { display: none; }
.filter-opts label:has(input:checked) {
  background: var(--primary); border-color: var(--primary); color: #fff;
}
.filter-actions { display: flex; gap: 10px; margin-top: 14px; padding-left: 72px; }

.toolbar {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}
.toolbar .sort-tabs { display: flex; gap: 6px; margin-left: auto; }
.toolbar .sort-tabs a {
  padding: 6px 14px; border-radius: 8px; font-size: 13px; color: var(--text-2);
  background: #fff; border: 1px solid var(--border);
}
.toolbar .sort-tabs a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.toolbar .count { font-size: 13px; color: var(--text-2); }

/* ---------- 分页 ---------- */
.pagination { display: flex; justify-content: center; gap: 6px; margin: 28px 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; background: #fff; border: 1px solid var(--border); font-size: 14px; color: var(--text-2);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .disabled { opacity: .4; }

/* ---------- 详情页 ---------- */
.detail-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
.detail-title { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.detail-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--text-2); font-size: 13px; margin-bottom: 18px; }
.detail-field { margin-bottom: 16px; }
.detail-field .f-label { font-size: 13px; color: var(--text-2); font-weight: 600; margin-bottom: 4px; }
.detail-field .f-value { font-size: 14px; white-space: pre-line; }
.detail-stats { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.stat-chip {
  background: var(--bg); border-radius: 10px; padding: 8px 16px; text-align: center;
}
.stat-chip .n { font-size: 18px; font-weight: 800; color: var(--primary); }
.stat-chip .t { font-size: 12px; color: var(--text-2); }

/* ---------- 社区 ---------- */
.board-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.board-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; display: block; color: var(--text); transition: .15s;
}
.board-card:hover { box-shadow: var(--shadow-lg); border-color: var(--primary); transform: translateY(-2px); color: var(--text); }
.board-card h3 { font-size: 17px; margin-bottom: 6px; }
.board-card p { color: var(--text-2); font-size: 13px; }
.board-card .bcount { margin-top: 10px; font-size: 12px; color: var(--primary); font-weight: 600; }

.post-row {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 12px; display: flex; gap: 14px; align-items: flex-start;
}
.post-row:hover { box-shadow: var(--shadow); }
.post-row .post-main { flex: 1; }
.post-row .post-title { font-size: 15px; font-weight: 700; color: var(--text); }
.post-row .post-title:hover { color: var(--primary); }
.post-row .post-excerpt { font-size: 13px; color: var(--text-2); margin-top: 4px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.post-row .post-foot { display: flex; gap: 14px; font-size: 12px; color: var(--text-2); margin-top: 8px; flex-wrap: wrap; }
.post-side { text-align: center; min-width: 60px; }
.post-side .n { font-size: 16px; font-weight: 800; color: var(--text); }
.post-side .t { font-size: 12px; color: var(--text-2); }
.post-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.post-actions .btn { padding: 6px 16px; font-size: 13px; }
.action-btn {
  border: 1px solid var(--border); background: #fff; border-radius: 8px;
  padding: 6px 14px; font-size: 13px; color: var(--text-2); cursor: pointer;
}
.action-btn.active { color: var(--danger); border-color: #fecaca; background: #fef2f2; }
.action-btn:hover { border-color: var(--primary); color: var(--primary); }

/* 评论 */
.comment-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.comment-item:last-child { border-bottom: none; }
.comment-head { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; font-size: 13px; }
.comment-author { font-weight: 700; color: var(--text); }
.comment-time { color: var(--text-2); font-size: 12px; }
.comment-body { font-size: 14px; white-space: pre-line; }
.comment-accepted { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: 14px; margin-bottom: 12px; }
.best-tag { color: var(--success); font-size: 12px; font-weight: 700; }
.comment-reply { margin-top: 8px; }
.comment-sub { margin-left: 36px; padding: 12px; background: var(--bg); border-radius: 8px; margin-top: 8px; }

/* ---------- 表单 ---------- */
.auth-card { max-width: 420px; margin: 40px auto; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 32px; box-shadow: var(--shadow-lg); }
.auth-card h2 { text-align: center; margin-bottom: 6px; }
.auth-card .sub { text-align: center; color: var(--text-2); font-size: 13px; margin-bottom: 22px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; outline: none; transition: .15s; background: #fff;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
textarea.form-control { min-height: 120px; resize: vertical; }
.form-help { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.auth-foot { text-align: center; font-size: 13px; color: var(--text-2); margin-top: 16px; }

/* ---------- 后台 ---------- */
.admin-layout { display: grid; grid-template-columns: 210px 1fr; gap: 24px; align-items: start; }
.admin-side { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; position: sticky; top: 80px; }
.admin-side a { display: block; padding: 9px 14px; border-radius: 8px; color: var(--text-2); font-size: 14px; margin-bottom: 2px; }
.admin-side a:hover { background: var(--bg); color: var(--primary); }
.admin-side a.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.admin-main { min-width: 0; }
.admin-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.admin-toolbar .spacer { flex: 1; }

.table-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table th { background: #f8fafc; font-size: 13px; color: var(--text-2); font-weight: 600; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #f8fafc; }
.data-table td .desc { white-space: normal; max-width: 360px; color: var(--text-2); font-size: 13px; }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-cards .card { padding: 18px; }
.stat-cards .num { font-size: 28px; font-weight: 800; color: var(--primary); }
.stat-cards .label { font-size: 13px; color: var(--text-2); }

.admin-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-tabs a { padding: 7px 16px; border-radius: 8px; font-size: 13px; color: var(--text-2); background: #fff; border: 1px solid var(--border); }
.admin-tabs a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- 搜索页 ---------- */
.search-result { margin-bottom: 24px; }
.search-result h3 { font-size: 16px; margin-bottom: 10px; }
.search-empty { text-align: center; padding: 60px 0; color: var(--text-2); }

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 50px 20px; color: var(--text-2); background: #fff; border: 1px dashed var(--border); border-radius: var(--radius); }

/* ---------- 页脚 ---------- */
.site-footer { background: #0f172a; color: #94a3b8; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding: 40px 20px; }
.footer-grid-2col { grid-template-columns: 2fr 1fr; gap: 40px; }
.footer-col h4 { color: #e2e8f0; font-size: 15px; margin-bottom: 12px; }
.footer-col p { font-size: 13px; margin-bottom: 8px; line-height: 1.6; }
.footer-col a { display: block; color: #94a3b8; font-size: 13px; margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1e293b; padding: 16px 0; font-size: 12px; }

/* 品牌列样式 */
.footer-brand-title { font-size: 20px !important; font-weight: 700; color: #fff !important; margin-bottom: 16px !important; }
.footer-brand-slogan { color: #cbd5e1 !important; font-size: 14px !important; margin-bottom: 10px !important; }
.footer-brand-desc { color: #64748b !important; font-size: 13px !important; line-height: 1.7 !important; }

/* 导航列样式 */
.footer-nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.footer-nav-links a { margin-bottom: 4px; padding: 4px 0; }

/* 页脚响应式 */
@media (max-width: 992px) {
  .footer-grid-2col { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .footer-grid, .footer-grid-2col { grid-template-columns: 1fr; gap: 24px; padding: 28px 16px; }
  .footer-brand-title { font-size: 18px !important; }
  .footer-nav-links { grid-template-columns: 1fr 1fr; gap: 6px 12px; }
  .footer-bottom { padding: 14px 16px; font-size: 11px; text-align: center; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .grid-list, .grid-list.cols-4, .cat-cards, .board-grid { grid-template-columns: repeat(2, 1fr); }
  .home-grid, .admin-layout { grid-template-columns: 1fr; }
  .admin-side { position: static; display: flex; overflow-x: auto; gap: 6px; }
  .admin-side a { white-space: nowrap; }
  .header-search { display: none; }
  .site-nav { display: none; }
}
@media (max-width: 640px) {
  .grid-list, .grid-list.cols-4, .grid-list.cols-2, .cat-cards, .board-grid, .stat-cards, .stat-strip { grid-template-columns: 1fr; }
  .banner { padding: 24px 20px; }
  .banner h1 { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .filter-actions { padding-left: 0; }
  .detail-card { padding: 18px; }
}

/* ================================================================ V2 样式 */
:root {
  --primary: #2563eb; --primary-dark: #1d4ed8; --primary-light: #dbeafe;
  --accent: #f59e0b; --success: #10b981; --warning: #f59e0b; --danger: #ef4444;
  --bg: #f8fafc; --card: #ffffff; --border: #e2e8f0; --text: #1e293b;
  --text-muted: #64748b; --shadow: 0 1px 3px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.1);
}

/* V2 Hero */
.v2-hero { position:relative; background:linear-gradient(135deg,#1e3a8a 0%,#3b82f6 50%,#06b6d4 100%); color:#fff; padding:60px 0; overflow:hidden; }
.v2-hero-bg { position:absolute; inset:0; background:radial-gradient(circle at 20% 50%,rgba(255,255,255,.1) 0%,transparent 50%),radial-gradient(circle at 80% 20%,rgba(255,255,255,.08) 0%,transparent 40%); }
.v2-hero-inner { position:relative; display:grid; grid-template-columns:1.5fr 1fr; gap:40px; align-items:center; }
.v2-hero-badge { display:inline-block; background:rgba(255,255,255,.15); padding:6px 16px; border-radius:20px; font-size:14px; margin-bottom:16px; backdrop-filter:blur(10px); }
.v2-hero-text h1 { font-size:42px; line-height:1.2; margin:0 0 16px; font-weight:800; }
.gradient-text { background:linear-gradient(90deg,#fbbf24,#f97316,#ef4444); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.v2-hero-desc { font-size:17px; opacity:.9; margin-bottom:28px; line-height:1.7; }
.v2-hero-actions { display:flex; gap:12px; flex-wrap:wrap; }
.v2-hero-stats { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.stat-card { background:rgba(255,255,255,.12); backdrop-filter:blur(10px); border-radius:12px; padding:20px; text-align:center; border:1px solid rgba(255,255,255,.15); }
.stat-num { font-size:32px; font-weight:800; }
.stat-label { font-size:13px; opacity:.8; margin-top:4px; }

/* V2 Section */
.v2-section { padding:48px 0; }
.v2-section-alt { background:#f1f5f9; }
.section-head { text-align:center; margin-bottom:32px; }
.section-head h2 { font-size:28px; margin:0 0 8px; color:var(--text); }
.section-head p { color:var(--text-muted); font-size:15px; margin:0; }

/* 四大入口 */
.v2-entries { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.entry-card { display:block; background:var(--card); border-radius:14px; padding:28px 24px; box-shadow:var(--shadow); transition:all .25s; border:1px solid var(--border); text-decoration:none; color:inherit; position:relative; overflow:hidden; }
.entry-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg); }
.entry-icon { font-size:36px; margin-bottom:14px; }
.entry-card h3 { font-size:18px; margin:0 0 8px; color:var(--text); }
.entry-card p { font-size:13px; color:var(--text-muted); line-height:1.6; margin:0 0 12px; }
.entry-arrow { color:var(--primary); font-size:14px; font-weight:600; }

/* 行业分类 */
.industry-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:14px; }
.industry-card { display:block; background:var(--card); border-radius:10px; padding:20px 16px; text-align:center; box-shadow:var(--shadow); transition:all .2s; text-decoration:none; color:inherit; border:1px solid var(--border); }
.industry-card:hover { transform:translateY(-2px); box-shadow:var(--shadow-lg); border-color:var(--primary); }
.industry-icon { font-size:28px; margin-bottom:8px; }
.industry-name { font-size:14px; font-weight:600; color:var(--text); }
.industry-count { font-size:12px; color:var(--text-muted); margin-top:4px; }

/* 双栏 */
.two-col { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.col-block { background:var(--card); border-radius:12px; padding:24px; box-shadow:var(--shadow); border:1px solid var(--border); }
.block-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; }
.block-head h3 { font-size:18px; margin:0; }
.more-link { color:var(--primary); font-size:13px; text-decoration:none; }

/* Agent mini list */
.agent-mini-list { display:flex; flex-direction:column; gap:10px; }
.agent-mini-item { display:flex; justify-content:space-between; align-items:center; padding:12px; border-radius:8px; transition:background .2s; text-decoration:none; color:inherit; }
.agent-mini-item:hover { background:#f8fafc; }
.agent-mini-name { font-weight:600; font-size:14px; color:var(--text); }
.agent-mini-desc { font-size:12px; color:var(--text-muted); margin-top:2px; }
.agent-mini-meta { display:flex; gap:8px; align-items:center; flex-shrink:0; }
.mini-tag { background:#f1f5f9; padding:2px 8px; border-radius:4px; font-size:11px; color:var(--text-muted); }
.mini-star { font-size:12px; color:var(--accent); }
.tag-paid { background:#fef3c7; color:#92400e; padding:1px 6px; border-radius:4px; font-size:11px; }
.tag-free { background:#d1fae5; color:#065f46; padding:1px 6px; border-radius:4px; font-size:11px; }

/* 榜单 */
.rank-list { display:flex; flex-direction:column; gap:8px; }
.rank-item { display:flex; align-items:center; gap:12px; padding:10px 12px; border-radius:8px; text-decoration:none; color:inherit; transition:background .2s; }
.rank-item:hover { background:#f8fafc; }
.rank-num { width:24px; height:24px; border-radius:6px; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:13px; background:#e2e8f0; color:var(--text-muted); flex-shrink:0; }
.rank-1 { background:#fbbf24; color:#fff; }
.rank-2 { background:#94a3b8; color:#fff; }
.rank-3 { background:#cd7f32; color:#fff; }
.rank-info { flex:1; min-width:0; }
.rank-name { font-weight:600; font-size:14px; }
.rank-desc { font-size:12px; color:var(--text-muted); }
.rank-star { font-size:13px; color:var(--accent); font-weight:600; flex-shrink:0; }

/* 需求卡片网格 */
.demand-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.demand-card { display:block; background:var(--card); border-radius:12px; padding:20px; box-shadow:var(--shadow); border:1px solid var(--border); text-decoration:none; color:inherit; transition:all .25s; }
.demand-card:hover { transform:translateY(-3px); box-shadow:var(--shadow-lg); border-color:var(--primary); }
.demand-card-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.demand-industry { font-size:12px; color:var(--primary); background:var(--primary-light); padding:3px 8px; border-radius:4px; }
.demand-budget { font-weight:700; color:var(--accent); font-size:15px; }
.demand-title { font-size:16px; margin:0 0 8px; color:var(--text); line-height:1.4; }
.demand-desc { font-size:13px; color:var(--text-muted); line-height:1.6; margin:0 0 14px; min-height:40px; }
.demand-card-foot { display:flex; gap:12px; font-size:12px; color:var(--text-muted); flex-wrap:wrap; padding-top:12px; border-top:1px solid var(--border); }
.demand-status { padding:2px 8px; border-radius:4px; font-size:11px; font-weight:600; }
.status-pending { background:#fef3c7; color:#92400e; }
.status-approved { background:#d1fae5; color:#065f46; }
.status-rejected { background:#fee2e2; color:#991b1b; }
.status-in_progress { background:#dbeafe; color:#1e40af; }
.status-completed { background:#e0e7ff; color:#3730a3; }

/* 需求列表 */
.demand-list { display:flex; flex-direction:column; gap:14px; }
.demand-item { background:var(--card); border-radius:12px; padding:22px; box-shadow:var(--shadow); border:1px solid var(--border); }
.demand-item-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.demand-item-tags { display:flex; gap:8px; align-items:center; }
.demand-item h3 { margin:0 0 8px; font-size:18px; }
.demand-item h3 a { color:var(--text); text-decoration:none; }
.demand-item h3 a:hover { color:var(--primary); }
.demand-item-desc { font-size:14px; color:var(--text-muted); line-height:1.6; margin:0 0 14px; }
.demand-item-foot { display:flex; gap:16px; align-items:center; font-size:13px; color:var(--text-muted); flex-wrap:wrap; }

/* CTA */
.v2-cta { background:linear-gradient(135deg,#1e3a8a,#3b82f6); color:#fff; padding:48px 0; margin-top:20px; }
.v2-cta-inner { display:flex; justify-content:space-between; align-items:center; gap:30px; }
.v2-cta-text h2 { font-size:26px; margin:0 0 8px; }
.v2-cta-text p { opacity:.85; margin:0; }
.v2-cta-actions { display:flex; gap:12px; flex-shrink:0; }

/* Agent 卡片网格 V2 */
.agent-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:20px; }
.agent-card-v2 { background:var(--card); border-radius:12px; padding:22px; box-shadow:var(--shadow); border:1px solid var(--border); display:flex; flex-direction:column; transition:all .25s; }
.agent-card-v2:hover { transform:translateY(-3px); box-shadow:var(--shadow-lg); }
.agent-card-head { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:10px; gap:8px; }
.agent-card-head h3 { margin:0; font-size:17px; }
.agent-card-head h3 a { color:var(--text); text-decoration:none; }
.agent-card-badges { display:flex; gap:6px; flex-wrap:wrap; flex-shrink:0; }
.badge { padding:3px 8px; border-radius:5px; font-size:11px; font-weight:600; white-space:nowrap; }
.badge-free { background:#d1fae5; color:#065f46; }
.badge-paid { background:#fef3c7; color:#92400e; }
.badge-industry { background:#dbeafe; color:#1e40af; }
.badge-license { background:#f1f5f9; color:var(--text-muted); }
.badge-private { background:#fce7f3; color:#9d174d; }
.agent-card-desc { font-size:13px; color:var(--text-muted); line-height:1.6; margin:0 0 14px; flex:1; min-height:40px; }
.agent-card-ratings { display:flex; gap:16px; margin-bottom:12px; padding:10px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.rating-item { display:flex; flex-direction:column; gap:2px; }
.rating-label { font-size:11px; color:var(--text-muted); }
.rating-stars { font-size:13px; color:var(--accent); letter-spacing:1px; }
.agent-card-meta { display:flex; gap:12px; font-size:12px; color:var(--text-muted); margin-bottom:14px; flex-wrap:wrap; }
.agent-card-foot { display:flex; gap:8px; }

/* 页面头部 */
.page-head { margin-bottom:24px; }
.page-head h1 { font-size:28px; margin:0 0 6px; }
.page-head p { color:var(--text-muted); margin:0; }
.page-head-row { display:flex; justify-content:space-between; align-items:center; gap:20px; }

/* 筛选面板 */
.filter-panel { background:var(--card); border-radius:12px; padding:18px 22px; box-shadow:var(--shadow); border:1px solid var(--border); margin-bottom:20px; }
.filter-row { display:flex; align-items:flex-start; gap:14px; margin-bottom:12px; }
.filter-row:last-child { margin-bottom:0; }
.filter-label { font-size:13px; color:var(--text-muted); font-weight:600; min-width:60px; padding-top:4px; flex-shrink:0; }
.filter-tags { display:flex; flex-wrap:wrap; gap:8px; flex:1; }
.filter-tag { padding:5px 14px; border-radius:6px; font-size:13px; background:#f1f5f9; color:var(--text-muted); text-decoration:none; transition:all .2s; border:1px solid transparent; }
.filter-tag:hover { background:#e2e8f0; }
.filter-tag.active { background:var(--primary); color:#fff; }

/* 列表工具栏 */
.list-toolbar { display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; gap:16px; flex-wrap:wrap; }
.sort-tabs { display:flex; gap:4px; background:#f1f5f9; padding:4px; border-radius:8px; }
.sort-tabs a { padding:6px 16px; border-radius:6px; font-size:13px; color:var(--text-muted); text-decoration:none; transition:all .2s; }
.sort-tabs a.active { background:#fff; color:var(--primary); font-weight:600; box-shadow:var(--shadow); }
.list-search { display:flex; gap:0; }
.list-search input { padding:8px 14px; border:1px solid var(--border); border-radius:8px 0 0 8px; font-size:13px; width:220px; outline:none; }
.list-search input:focus { border-color:var(--primary); }
.list-search button { padding:8px 18px; background:var(--primary); color:#fff; border:none; border-radius:0 8px 8px 0; font-size:13px; cursor:pointer; }

/* 详情页 */
.detail-page { margin-top:-1px; }
.detail-hero { background:linear-gradient(135deg,#f8fafc,#eef2ff); padding:32px 0; border-bottom:1px solid var(--border); margin-bottom:28px; }
.detail-hero-inner { display:grid; grid-template-columns:2fr 1fr; gap:30px; align-items:start; }
.detail-badges { display:flex; gap:8px; margin-bottom:14px; flex-wrap:wrap; }
.detail-hero h1 { font-size:30px; margin:0 0 12px; line-height:1.3; }
.detail-intro { font-size:15px; color:var(--text-muted); line-height:1.7; margin:0 0 20px; }
.detail-actions { display:flex; gap:10px; flex-wrap:wrap; }
.detail-stats { background:var(--card); border-radius:12px; padding:20px; box-shadow:var(--shadow); border:1px solid var(--border); }
.stat-row { display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px solid var(--border); font-size:14px; }
.stat-row:last-child { border-bottom:none; }
.stat-row span { color:var(--text-muted); }
.stat-row strong { color:var(--text); }
.detail-meta-row { display:flex; gap:20px; align-items:center; margin-bottom:18px; flex-wrap:wrap; font-size:14px; color:var(--text-muted); }
.demand-budget-lg { font-size:20px; font-weight:800; color:var(--accent); }
.detail-layout { display:grid; grid-template-columns:2fr 1fr; gap:28px; align-items:start; }
.detail-section { background:var(--card); border-radius:12px; padding:24px; box-shadow:var(--shadow); border:1px solid var(--border); margin-bottom:20px; }
.detail-section h2 { font-size:18px; margin:0 0 16px; padding-bottom:10px; border-bottom:2px solid var(--primary-light); }
.feature-list { padding-left:20px; margin:0; }
.feature-list li { padding:6px 0; font-size:14px; line-height:1.6; }
.code-block { background:#1e293b; color:#e2e8f0; padding:18px; border-radius:8px; font-family:monospace; font-size:13px; line-height:1.7; white-space:pre-wrap; overflow-x:auto; }
.error-block { background:#fef2f2; border-left:4px solid var(--danger); padding:16px 18px; border-radius:0 8px 8px 0; font-size:13px; line-height:1.8; white-space:pre-wrap; }
.demand-content { font-size:14px; line-height:1.8; color:var(--text); }
.related-list { display:flex; flex-direction:column; gap:8px; }
.related-item { display:flex; justify-content:space-between; align-items:center; padding:10px 12px; border-radius:8px; text-decoration:none; color:inherit; transition:background .2s; }
.related-item:hover { background:#f8fafc; }
.related-title { font-size:14px; font-weight:500; }
.related-meta { font-size:12px; color:var(--text-muted); flex-shrink:0; }
.detail-sidebar { position:sticky; top:20px; }
.sidebar-card { background:var(--card); border-radius:12px; padding:20px; box-shadow:var(--shadow); border:1px solid var(--border); margin-bottom:18px; }
.sidebar-card h3 { font-size:15px; margin:0 0 14px; padding-bottom:10px; border-bottom:1px solid var(--border); }
.eval-row { display:flex; justify-content:space-between; align-items:center; padding:7px 0; font-size:13px; }
.eval-row span:first-child { color:var(--text-muted); }
.eval-stars { color:var(--accent); font-size:13px; letter-spacing:1px; }
.eval-value { font-size:12px; color:var(--text); max-width:60%; text-align:right; }
.sidebar-list { display:flex; flex-direction:column; gap:6px; }
.sidebar-item { display:flex; justify-content:space-between; align-items:center; padding:8px 10px; border-radius:6px; text-decoration:none; color:inherit; transition:background .2s; }
.sidebar-item:hover { background:#f8fafc; }
.sidebar-name { font-size:13px; font-weight:500; }
.sidebar-meta { font-size:12px; color:var(--text-muted); flex-shrink:0; }
.notice-list { padding-left:18px; margin:0; font-size:13px; line-height:1.8; color:var(--text-muted); }

/* 表单 */
.form-wrap { max-width:760px; margin:0 auto; }
.form-card { background:var(--card); border-radius:12px; padding:30px; box-shadow:var(--shadow); border:1px solid var(--border); }
.form-group { margin-bottom:18px; }
.form-group label { display:block; font-size:14px; font-weight:600; margin-bottom:6px; color:var(--text); }
.form-group input, .form-group select, .form-group textarea { width:100%; padding:10px 14px; border:1px solid var(--border); border-radius:8px; font-size:14px; outline:none; transition:border-color .2s; box-sizing:border-box; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color:var(--primary); box-shadow:0 0 0 3px rgba(37,99,235,.1); }
.form-group textarea { resize:vertical; min-height:120px; font-family:inherit; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.required { color:var(--danger); }
.checkbox-group { padding-top:28px; }
.checkbox-label { display:flex; align-items:center; gap:8px; font-size:14px; cursor:pointer; }
.checkbox-label input { width:auto; }
.form-actions { display:flex; gap:12px; margin-top:24px; padding-top:20px; border-top:1px solid var(--border); }
.demand-summary { background:#eff6ff; border:1px solid #bfdbfe; border-radius:10px; padding:18px; margin-bottom:20px; }
.demand-summary h3 { margin:0 0 8px; font-size:16px; }
.demand-summary-desc { font-size:13px; color:var(--text-muted); margin:8px 0 0; }

/* 投标 */
.bid-list { display:flex; flex-direction:column; gap:14px; }
.bid-item { background:#f8fafc; border-radius:10px; padding:18px; border:1px solid var(--border); }
.bid-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; flex-wrap:wrap; gap:10px; }
.bid-developer { display:flex; align-items:center; gap:10px; text-decoration:none; color:inherit; font-weight:600; font-size:14px; }
.bid-avatar { width:32px; height:32px; border-radius:50%; background:var(--primary); color:#fff; display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:700; }
.verified-badge { background:var(--success); color:#fff; font-size:10px; padding:1px 6px; border-radius:4px; }
.bid-meta { display:flex; gap:12px; align-items:center; font-size:13px; }
.bid-price { font-weight:700; color:var(--accent); font-size:16px; }
.bid-status { padding:2px 8px; border-radius:4px; font-size:11px; font-weight:600; }
.bid-pending { background:#fef3c7; color:#92400e; }
.bid-accepted { background:#d1fae5; color:#065f46; }
.bid-rejected { background:#fee2e2; color:#991b1b; }
.bid-proposal { font-size:14px; line-height:1.7; color:var(--text); margin-bottom:8px; }
.bid-time { font-size:12px; color:var(--text-muted); }
.bid-demand-title { font-weight:600; font-size:15px; color:var(--text); text-decoration:none; }
.bid-demand-title:hover { color:var(--primary); }
.bid-meta-row { display:flex; gap:16px; font-size:13px; color:var(--text-muted); margin-top:6px; }

/* Tab 导航 */
.tab-nav { display:flex; gap:4px; border-bottom:2px solid var(--border); margin-bottom:24px; }
.tab-nav a { padding:10px 22px; font-size:14px; color:var(--text-muted); text-decoration:none; border-bottom:2px solid transparent; margin-bottom:-2px; transition:all .2s; }
.tab-nav a.active { color:var(--primary); border-bottom-color:var(--primary); font-weight:600; }

/* 开发者主页 */
.developer-hero { background:linear-gradient(135deg,#1e3a8a,#3b82f6); color:#fff; padding:40px 0; border-radius:0 0 16px 16px; margin-bottom:28px; }
.developer-hero .container { display:flex; gap:30px; align-items:center; }
.developer-avatar { width:100px; height:100px; border-radius:50%; background:rgba(255,255,255,.2); display:flex; align-items:center; justify-content:center; font-size:40px; font-weight:800; flex-shrink:0; border:3px solid rgba(255,255,255,.3); }
.developer-info { flex:1; }
.developer-name-row { display:flex; align-items:center; gap:12px; margin-bottom:6px; }
.developer-name-row h1 { margin:0; font-size:28px; }
.verified-badge-lg { background:var(--success); color:#fff; font-size:12px; padding:3px 10px; border-radius:6px; font-weight:600; }
.developer-title { font-size:16px; opacity:.9; margin:0 0 8px; }
.developer-bio { font-size:14px; opacity:.8; line-height:1.6; margin:0 0 18px; max-width:600px; }
.developer-stats { display:flex; gap:30px; margin-bottom:18px; }
.dev-stat { text-align:center; }
.dev-stat strong { display:block; font-size:24px; font-weight:800; }
.dev-stat span { font-size:12px; opacity:.7; }
.developer-actions { display:flex; gap:10px; flex-wrap:wrap; }
.dev-section { background:var(--card); border-radius:12px; padding:24px; box-shadow:var(--shadow); border:1px solid var(--border); margin-bottom:20px; }
.dev-section h2 { font-size:18px; margin:0 0 16px; }
.skill-tags { display:flex; flex-wrap:wrap; gap:8px; }
.skill-tag { background:var(--primary-light); color:var(--primary); padding:6px 14px; border-radius:20px; font-size:13px; font-weight:500; }
.dev-two-col { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.text-muted { color:var(--text-muted); }

/* 后台扩展 */
.admin-page-head { margin-bottom:20px; }
.admin-page-head h1 { font-size:22px; margin:0 0 12px; }
.admin-tabs { display:flex; gap:6px; }
.admin-tabs a { padding:6px 16px; border-radius:6px; font-size:13px; background:#f1f5f9; color:var(--text-muted); text-decoration:none; }
.admin-tabs a.active { background:var(--primary); color:#fff; }
.admin-stat-row { display:flex; gap:16px; margin-top:14px; }
.admin-stat-card { background:#f8fafc; padding:14px 22px; border-radius:8px; text-align:center; }
.admin-stat-card span { display:block; font-size:12px; color:var(--text-muted); }
.admin-stat-card strong { font-size:22px; color:var(--primary); }
.admin-form-card { background:var(--card); border-radius:10px; padding:20px; margin-bottom:20px; border:1px solid var(--border); }
.admin-form-card h3 { font-size:15px; margin:0 0 12px; }
.admin-inline-form { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.admin-inline-form input { padding:7px 12px; border:1px solid var(--border); border-radius:6px; font-size:13px; }
.admin-actions { display:flex; gap:6px; }
.empty-cell { text-align:center; color:var(--text-muted); padding:30px; }
.order-status { padding:2px 8px; border-radius:4px; font-size:11px; font-weight:600; }
.order-paid { background:#d1fae5; color:#065f46; }
.order-pending { background:#fef3c7; color:#92400e; }
.order-refunded { background:#fee2e2; color:#991b1b; }

/* 帖子/模型 mini */
.post-mini-list, .model-mini-list { display:flex; flex-direction:column; gap:8px; }
.post-mini-item, .model-mini-item { display:block; padding:12px; border-radius:8px; text-decoration:none; color:inherit; transition:background .2s; }
.post-mini-item:hover, .model-mini-item:hover { background:#f8fafc; }
.post-mini-title, .model-mini-name { font-size:14px; font-weight:500; margin-bottom:4px; }
.post-mini-meta, .model-mini-vendor { font-size:12px; color:var(--text-muted); display:flex; gap:12px; }
.model-mini-tags { display:flex; gap:6px; margin-top:4px; }

/* 空状态 */
.empty-state { text-align:center; padding:40px 20px; color:var(--text-muted); }
.empty-state.small { padding:20px; }
.empty-state p { margin-bottom:14px; }
.btn-disabled { background:#e2e8f0; color:var(--text-muted); cursor:not-allowed; pointer-events:none; }
.btn-lg { padding:10px 24px; font-size:15px; }
.btn-sm { padding:5px 12px; font-size:12px; }
.btn-success { background:var(--success); color:#fff; border:none; }
.btn-warning { background:var(--warning); color:#fff; border:none; }
.btn-danger { background:var(--danger); color:#fff; border:none; }

/* 响应式 */
@media (max-width:900px) {
  .v2-hero-inner { grid-template-columns:1fr; }
  .v2-entries { grid-template-columns:repeat(2,1fr); }
  .industry-grid { grid-template-columns:repeat(3,1fr); }
  .two-col, .detail-layout, .dev-two-col { grid-template-columns:1fr; }
  .agent-grid, .demand-grid { grid-template-columns:1fr; }
  .form-row { grid-template-columns:1fr; }
  .v2-cta-inner { flex-direction:column; text-align:center; }
  .developer-hero .container { flex-direction:column; text-align:center; }
  .developer-stats { justify-content:center; }
  .developer-actions { justify-content:center; }
}

/* ================================================================
   V4: 后台布局优化 - 确保内容完整显示
   ================================================================ */

/* 后台整体布局 - 确保内容区有足够宽度 */
.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

/* 后台侧边栏 - 固定宽度，不挤压内容区 */
.admin-side {
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

/* 后台内容区 - 确保不被截断，支持横向滚动 */
.admin-main {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

/* 表格容器 - 确保横向滚动正常工作 */
.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

/* 表格 - 优化长文本显示 */
table.data-table {
  width: 100%;
  min-width: 800px;
  table-layout: auto;
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

/* 名称列允许换行 */
.data-table td:nth-child(2) {
  white-space: normal;
  word-break: break-word;
  max-width: 400px;
}

/* 分类列允许换行 */
.data-table td:nth-child(3) {
  white-space: normal;
  word-break: break-word;
  max-width: 200px;
}

/* 操作列不换行 */
.data-table td:last-child {
  white-space: nowrap;
  min-width: 120px;
}

/* 卡片内边距优化 */
.card-pad {
  padding: 16px 20px;
}

/*  section标题优化 */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

/* 统计卡片优化 */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

/* 响应式：小屏幕侧边栏在上 */
@media (max-width: 900px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-side {
    width: 100%;
    max-width: 100%;
    position: static;
    display: flex;
    overflow-x: auto;
    gap: 6px;
    padding: 10px;
  }
  .admin-side a {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* 确保后台页面容器不限制宽度 */
.container {
  width: 100%;
  max-width: 100%;
  padding: 0 20px;
}

/* 后台页面body优化 */
body:has(.admin-layout) {
  overflow-x: hidden;
}
