/* ================================================================
   数字经济应用场景征集平台 — 样式表
   ================================================================ */

:root {
  --c-primary: #1a4b8c;
  --c-primary-light: #e8f0fb;
  --c-primary-hover: #133a6e;
  --c-primary-deep: #0e2d54;
  --c-accent: #c4540a;
  --c-accent-light: #fef4ec;
  --c-bg: #f4f5f7;
  --c-white: #fff;
  --c-ink: #1d2129;
  --c-text: #374151;
  --c-muted: #6b7785;
  --c-border: #d5d8dd;
  --c-border-light: #e5e7eb;
  --c-success: #0d7a3f;
  --c-success-bg: #ecf8f1;
  --c-warning: #b45309;
  --c-warning-bg: #fef9ee;
  --c-danger: #b91c1c;
  --c-danger-bg: #fef2f2;
  --radius: 6px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 6px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.10);
  --sidebar-w: 240px;
  --topbar-h: 52px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary-hover); }
img { max-width: 100%; display: block; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ── 按钮 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 9px 18px;
  font-size: 13px; font-weight: 500; font-family: var(--font);
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: all .15s ease;
  white-space: nowrap; line-height: 1.5;
}
.btn-primary {
  background: var(--c-primary); color: #fff; border-color: var(--c-primary);
  box-shadow: 0 1px 3px rgba(26,75,140,0.2);
}
.btn-primary:hover { background: var(--c-primary-hover); border-color: var(--c-primary-hover); box-shadow: 0 2px 6px rgba(26,75,140,0.25); }
.btn-outline { background: var(--c-white); color: var(--c-text); border-color: var(--c-border); }
.btn-outline:hover { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-light); }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-lg { padding: 11px 28px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-text { background: none; border: none; color: var(--c-muted); cursor: pointer; font-size: 12px; font-family: var(--font); padding: 4px 0; }
.btn-text:hover { color: var(--c-primary); }
.btn-danger-sm { padding: 3px 8px; font-size: 11px; background: none; color: var(--c-danger); border: 1px solid currentColor; border-radius: var(--radius); cursor: pointer; font-family: var(--font); }
.btn-danger-sm:hover { background: var(--c-danger-bg); }

/* ── 表单 ── */
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label { font-size: 13px; font-weight: 500; color: var(--c-ink); }
.form-label .req { color: var(--c-danger); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 9px 12px;
  font-size: 14px; font-family: var(--font);
  border: 1px solid var(--c-border); border-radius: var(--radius);
  background: var(--c-white); color: var(--c-ink);
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(26,75,140,0.08);
}
.form-input::placeholder, .form-textarea::placeholder { color: #b0b6be; }
.form-textarea { resize: vertical; min-height: 110px; }
.form-hint { font-size: 12px; color: var(--c-muted); }
.form-row { display: grid; gap: 14px; }
.form-row-2 { grid-template-columns: 1fr 1fr; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-actions { display: flex; gap: 10px; padding-top: 8px; }

@media (max-width: 640px) {
  .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; }
}

/* ── 卡片 ── */
.card {
  background: var(--c-white); border: 1px solid var(--c-border-light);
  border-radius: var(--radius-lg); padding: 22px;
  box-shadow: var(--shadow-sm);
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--c-border-light);
}
.card-header h2 { font-size: 15px; font-weight: 600; color: var(--c-ink); }
.card + .card { margin-top: 14px; }

@media (max-width: 640px) {
  .card { padding: 16px; }
}

/* ── Flash 消息 ── */
.flash-stack { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.flash-msg {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-radius: var(--radius); font-size: 13px;
  border-left: 3px solid;
}
.flash-success { background: var(--c-success-bg); color: var(--c-success); border-left-color: var(--c-success); }
.flash-warning { background: var(--c-warning-bg); color: var(--c-warning); border-left-color: var(--c-warning); }
.flash-danger { background: var(--c-danger-bg); color: var(--c-danger); border-left-color: var(--c-danger); }
.flash-close { background: none; border: none; font-size: 16px; cursor: pointer; color: inherit; padding: 0 0 0 12px; line-height: 1; }

/* ── 标签 ── */
.tag {
  display: inline-flex; align-items: center;
  padding: 2px 8px; font-size: 11px; font-weight: 600;
  border-radius: 3px; white-space: nowrap; letter-spacing: 0.02em;
}
.tag-blue { background: var(--c-primary-light); color: var(--c-primary); }
.tag-green { background: var(--c-success-bg); color: var(--c-success); }
.tag-yellow { background: var(--c-warning-bg); color: var(--c-warning); }
.tag-red { background: var(--c-danger-bg); color: var(--c-danger); }
.tag-gray { background: #eef0f2; color: var(--c-muted); }

/* ================================================================
   公开前台 — 顶栏
   ================================================================ */
.pub-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--c-border-light);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.pub-header-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.pub-logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--c-ink); font-weight: 600; font-size: 14px;
}
.pub-logo:hover { color: var(--c-ink); }
.pub-logo-img { height: 30px; width: auto; }
.pub-logo-text { white-space: nowrap; }
.pub-nav { display: flex; align-items: center; gap: 2px; }
.pub-nav-link {
  padding: 6px 14px; font-size: 13px; font-weight: 500;
  color: var(--c-text); border-radius: var(--radius);
  transition: all .12s;
}
.pub-nav-link:hover { background: var(--c-bg); color: var(--c-primary); }
.pub-nav-accent {
  color: var(--c-primary); background: var(--c-primary-light);
  font-weight: 600;
}
.pub-nav-accent:hover { background: #d4e4f7; }
.pub-menu-btn { display: none; }

@media (max-width: 768px) {
  .pub-logo-text { font-size: 13px; }
  .pub-nav {
    display: none; position: absolute; top: 56px; left: 0; right: 0;
    flex-direction: column; background: var(--c-white);
    border-bottom: 1px solid var(--c-border-light); box-shadow: var(--shadow-lg);
    padding: 8px;
  }
  .pub-nav.open { display: flex; }
  .pub-nav-link { padding: 12px 16px; width: 100%; }
  .pub-menu-btn {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; padding: 8px; cursor: pointer;
  }
  .pub-menu-btn span {
    display: block; width: 20px; height: 2px;
    background: var(--c-ink); border-radius: 1px;
    transition: transform .2s, opacity .2s;
  }
  .pub-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .pub-menu-btn.open span:nth-child(2) { opacity: 0; }
  .pub-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 420px) {
  .pub-logo-text { display: none; }
  .pub-logo-img { height: 26px; }
  .pub-logo::after {
    content: "数字经济场景征集";
    font-size: 13px; font-weight: 600; color: var(--c-ink); white-space: nowrap;
  }
}

/* ── 公开前台主体 & 页脚 ── */
.pub-main { min-height: calc(100vh - 56px - 80px); }
.pub-footer {
  padding: 24px 0; border-top: 1px solid var(--c-border-light);
  background: var(--c-white);
}
.pub-footer-inner {
  display: flex; align-items: center; gap: 14px;
  justify-content: center;
}
.pub-footer-logo { height: 22px; width: auto; opacity: 0.5; }
.pub-footer-title { font-size: 13px; font-weight: 600; color: var(--c-ink); }
.pub-footer p { font-size: 12px; color: var(--c-muted); margin: 0; }

/* ── 首页 Hero ── */
.hero {
  background: linear-gradient(135deg, var(--c-primary-deep) 0%, var(--c-primary) 60%, #2563a8 100%);
  color: #fff; padding: 52px 0 68px; position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 80% 30%, rgba(255,255,255,0.06), transparent),
    radial-gradient(ellipse 300px 300px at 20% 80%, rgba(255,255,255,0.04), transparent);
  pointer-events: none;
}
.hero-inner { max-width: 1080px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
.hero-badge {
  display: inline-block; padding: 4px 12px; margin-bottom: 16px;
  font-size: 12px; font-weight: 500; border-radius: 3px;
  background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.1);
}
.hero h1 {
  font-size: 28px; font-weight: 700; line-height: 1.35;
  margin-bottom: 10px; max-width: 520px;
}
.hero p {
  font-size: 14px; color: rgba(255,255,255,0.75);
  max-width: 480px; margin-bottom: 28px; line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .btn-white {
  background: #fff; color: var(--c-primary); border-color: #fff;
  font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.hero .btn-white:hover { background: #f0f4ff; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.hero .btn-ghost {
  background: rgba(255,255,255,0.08); color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}
.hero .btn-ghost:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.4); }

@media (max-width: 640px) {
  .hero { padding: 36px 0 52px; }
  .hero h1 { font-size: 21px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

/* ── 首页统计卡片 ── */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  max-width: 1080px; margin: -30px auto 0; padding: 0 20px;
  position: relative; z-index: 2;
}
.stat-card {
  background: var(--c-white); border: 1px solid var(--c-border-light);
  border-radius: var(--radius-lg); padding: 18px;
  box-shadow: var(--shadow); text-align: center;
  transition: box-shadow .15s;
}
.stat-card:hover { box-shadow: var(--shadow-lg); }
.stat-num { display: block; font-size: 26px; font-weight: 700; color: var(--c-primary); line-height: 1.2; }
.stat-label { font-size: 12px; color: var(--c-muted); margin-top: 4px; display: block; }

@media (max-width: 640px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: -22px; }
  .stat-card { padding: 14px; }
  .stat-num { font-size: 22px; }
}

/* ── 首页内容区 ── */
.home-section { max-width: 1080px; margin: 28px auto 0; padding: 0 20px; }
.section-title {
  font-size: 16px; font-weight: 600; color: var(--c-ink);
  margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 2px solid var(--c-primary);
  display: inline-block;
}
.entry-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.entry-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px; background: var(--c-white);
  border: 1px solid var(--c-border-light); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); transition: all .15s;
  position: relative; overflow: hidden;
}
.entry-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 3px; height: 100%;
  background: var(--c-primary); opacity: 0; transition: opacity .15s;
}
.entry-card:hover { border-color: var(--c-primary); box-shadow: var(--shadow); }
.entry-card:hover::before { opacity: 1; }
.entry-card strong { font-size: 14px; color: var(--c-ink); }
.entry-card span { font-size: 12px; color: var(--c-muted); }

.latest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.latest-list { display: flex; flex-direction: column; }
.latest-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--c-border-light);
}
.latest-item:last-child { border-bottom: none; }
.latest-item-main { min-width: 0; }
.latest-item-main strong { display: block; font-size: 13px; color: var(--c-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.latest-item-main span { font-size: 12px; color: var(--c-muted); }

@media (max-width: 768px) {
  .entry-grid, .latest-grid { grid-template-columns: 1fr; }
}

/* ── 公开填报页 ── */
.submit-page { padding: 24px 0 48px; }
.submit-header { max-width: 720px; margin: 0 auto 20px; padding: 0 20px; }
.submit-header h1 { font-size: 20px; font-weight: 700; color: var(--c-ink); margin-bottom: 4px; }
.submit-header p { font-size: 13px; color: var(--c-muted); }

.submit-tabs {
  max-width: 720px; margin: 0 auto 16px; padding: 0 20px;
  display: flex; gap: 0; border-bottom: 2px solid var(--c-border-light);
}
.submit-tab {
  padding: 9px 22px; font-size: 13px; font-weight: 500;
  color: var(--c-muted); border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: color .12s, border-color .12s;
}
.submit-tab:hover { color: var(--c-text); }
.submit-tab.active { color: var(--c-primary); border-bottom-color: var(--c-primary); font-weight: 600; }

.submit-form { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.submit-form .card { margin-bottom: 14px; }

.submit-tips { max-width: 720px; margin: 0 auto 16px; padding: 0 20px; }
.tips-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tip-item {
  padding: 10px 12px; background: var(--c-white);
  border: 1px solid var(--c-border-light); border-radius: var(--radius);
  font-size: 12px; color: var(--c-text); line-height: 1.5;
}
.tip-item strong { display: block; font-size: 12px; color: var(--c-ink); margin-bottom: 2px; }

@media (max-width: 640px) {
  .submit-header h1 { font-size: 17px; }
  .submit-tab { padding: 9px 14px; font-size: 12px; }
  .tips-list { grid-template-columns: 1fr; }
}

/* ── 回执 ── */
.receipt-banner { max-width: 720px; margin: 0 auto 16px; padding: 0 20px; }
.receipt-box {
  padding: 14px 18px; background: var(--c-success-bg);
  border: 1px solid #b7e4c7; border-radius: var(--radius);
  border-left: 3px solid var(--c-success);
}
.receipt-box strong { display: block; font-size: 15px; color: var(--c-success); margin-bottom: 2px; }
.receipt-box p { font-size: 12px; color: var(--c-text); margin: 0; }

/* ── 登录页 ── */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: var(--c-bg);
}
.login-box { width: 100%; max-width: 380px; }
.login-box .card { padding: 32px 28px; box-shadow: var(--shadow); }
.login-logo { text-align: center; margin-bottom: 24px; }
.login-logo-img { height: 44px; width: auto; margin: 0 auto 14px; }
.login-logo h1 { font-size: 17px; font-weight: 600; color: var(--c-ink); margin-bottom: 2px; }
.login-logo p { font-size: 12px; color: var(--c-muted); }
.login-demo {
  margin-top: 16px; padding: 10px 12px;
  background: var(--c-bg); border-radius: var(--radius);
  font-size: 12px; color: var(--c-text); line-height: 1.7;
}
.login-demo strong { display: block; margin-bottom: 2px; color: var(--c-ink); font-size: 12px; }
.login-demo code { font-family: "SF Mono", Menlo, monospace; background: var(--c-white); padding: 1px 5px; border-radius: 3px; font-size: 12px; }

/* ================================================================
   管理后台 — 侧边栏
   ================================================================ */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w); background: var(--c-white);
  border-right: 1px solid var(--c-border-light);
  display: flex; flex-direction: column; z-index: 200;
  transition: transform .25s ease;
}
.sidebar-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--c-border-light);
  min-height: 52px;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 8px; color: var(--c-ink);
}
.sidebar-brand:hover { color: var(--c-ink); }
.sidebar-brand-img { height: 24px; width: auto; }
.sidebar-brand-text { font-size: 14px; font-weight: 700; }
.sidebar-close { display: none; background: none; border: none; font-size: 20px; cursor: pointer; color: var(--c-muted); padding: 0; line-height: 1; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.sidebar-link {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; font-size: 13px;
  color: var(--c-text); transition: all .1s;
  border-left: 2px solid transparent; margin: 1px 0;
}
.sidebar-link svg { flex-shrink: 0; opacity: 0.5; }
.sidebar-link:hover { background: var(--c-bg); color: var(--c-primary); border-left-color: var(--c-primary); }
.sidebar-link:hover svg { opacity: 1; }
.sidebar-divider {
  display: block; padding: 14px 16px 4px;
  font-size: 10px; font-weight: 700; color: var(--c-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.sidebar-footer {
  padding: 12px 16px; border-top: 1px solid var(--c-border-light);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.sidebar-user { display: flex; align-items: center; gap: 8px; }
.sidebar-user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--c-primary-light); color: var(--c-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.sidebar-user-name { display: block; font-size: 12px; font-weight: 600; color: var(--c-ink); line-height: 1.3; }
.sidebar-user-label { display: block; font-size: 10px; color: var(--c-muted); }
.sidebar-overlay { display: none; }

/* ── 主区域 ── */
.main-wrap {
  margin-left: var(--sidebar-w);
  min-height: 100vh; display: flex; flex-direction: column;
}
.topbar {
  position: sticky; top: 0; z-index: 100;
  height: var(--topbar-h); padding: 0 20px;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--c-border-light);
  display: flex; align-items: center; gap: 12px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.topbar-menu { display: none; }
.topbar-title { font-size: 14px; font-weight: 600; color: var(--c-ink); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.topbar-user { font-size: 12px; color: var(--c-muted); }

.main-content { flex: 1; padding: 20px; }

@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .sidebar-close { display: block; }
  .sidebar-overlay {
    display: block; position: fixed; inset: 0; z-index: 199;
    background: rgba(0,0,0,0.35); opacity: 0; pointer-events: none;
    transition: opacity .25s;
  }
  .sidebar-overlay.open { opacity: 1; pointer-events: auto; }
  .main-wrap { margin-left: 0; }
  .topbar-menu {
    display: flex; flex-direction: column; gap: 4px;
    background: none; border: none; padding: 4px; cursor: pointer;
  }
  .topbar-menu span { display: block; width: 18px; height: 2px; background: var(--c-ink); border-radius: 1px; }
}

@media (max-width: 640px) {
  .main-content { padding: 14px; }
}

/* ── 后台页头 ── */
.page-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
}
.page-head h1 { font-size: 18px; font-weight: 700; color: var(--c-ink); margin-bottom: 2px; }
.page-head p { font-size: 12px; color: var(--c-muted); margin: 0; }

@media (max-width: 640px) {
  .page-head { flex-direction: column; }
  .page-head h1 { font-size: 16px; }
}

/* ── 筛选栏 ── */
.filter-bar { display: grid; gap: 10px; align-items: end; }
.filter-6 { grid-template-columns: repeat(6, 1fr); }
.filter-bar .form-group { min-width: 0; }

@media (max-width: 1024px) { .filter-6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .filter-6 { grid-template-columns: 1fr; } }

/* ── 数据表格 ── */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  text-align: left; padding: 8px 10px;
  font-size: 11px; font-weight: 600; color: var(--c-muted);
  border-bottom: 2px solid var(--c-border);
  background: var(--c-bg); white-space: nowrap;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.data-table td { padding: 10px; border-bottom: 1px solid var(--c-border-light); vertical-align: top; }
.data-table tbody tr:hover { background: rgba(26,75,140,0.015); }
.cell-main { font-weight: 500; color: var(--c-ink); }
.cell-sub { font-size: 12px; color: var(--c-muted); }
.cell-review { min-width: 200px; }

.desktop-only { display: block; }
.mobile-list { display: none; }
@media (max-width: 768px) {
  .desktop-only { display: none; }
  .mobile-list { display: flex; flex-direction: column; gap: 10px; }
}

/* ── 移动端列表卡片 ── */
.m-record {
  padding: 14px; background: var(--c-white);
  border: 1px solid var(--c-border-light); border-radius: var(--radius);
}
.m-record-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.m-record-head strong { font-size: 14px; color: var(--c-ink); }
.m-record-meta { font-size: 12px; color: var(--c-muted); margin-bottom: 8px; }
.m-record-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.m-record-review {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--c-border-light); display: grid; gap: 6px;
}

/* ── 详情页 ── */
.detail-layout { display: grid; grid-template-columns: 300px 1fr; gap: 14px; }
.detail-sidebar { position: sticky; top: calc(var(--topbar-h) + 20px); align-self: start; }
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.dl-grid dt { font-size: 11px; color: var(--c-muted); margin-bottom: 1px; }
.dl-grid dd { font-size: 13px; color: var(--c-ink); font-weight: 500; }
.dl-span { grid-column: 1 / -1; }
.detail-block + .detail-block { margin-top: 16px; }
.detail-block h3 { font-size: 13px; font-weight: 600; color: var(--c-ink); margin-bottom: 6px; }
.detail-content {
  padding: 12px; background: var(--c-bg);
  border: 1px solid var(--c-border-light); border-radius: var(--radius);
  white-space: pre-wrap; font-size: 13px; line-height: 1.7;
}

@media (max-width: 768px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .dl-grid { grid-template-columns: 1fr; }
}

/* ── 附件 ── */
.att-list { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.att-row { display: flex; align-items: center; gap: 8px; }
.att-chip {
  display: inline-flex; flex-direction: column; padding: 6px 10px;
  background: var(--c-bg); border: 1px solid var(--c-border-light);
  border-radius: var(--radius); font-size: 12px; color: var(--c-primary);
}
.att-chip small { color: var(--c-muted); font-size: 11px; }

/* ── 审核日志 ── */
.audit-list { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.audit-entry {
  padding: 10px; background: var(--c-bg);
  border: 1px solid var(--c-border-light); border-radius: var(--radius);
  font-size: 12px;
}
.audit-entry-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 3px; }
.audit-entry-head strong { color: var(--c-ink); }
.audit-entry-head span { color: var(--c-muted); }
.audit-entry-body { color: var(--c-muted); }

/* ── 匹配页 ── */
.match-stack { display: flex; flex-direction: column; gap: 14px; }
.match-demand-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.match-results { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.match-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px; background: var(--c-bg); border: 1px solid var(--c-border-light); border-radius: var(--radius);
}
.match-item-info strong { font-size: 13px; color: var(--c-ink); }
.match-item-info span { font-size: 12px; color: var(--c-muted); display: block; }
.match-score { text-align: right; white-space: nowrap; }
.match-score strong { font-size: 15px; color: var(--c-primary); display: block; }
.match-score small { font-size: 11px; color: var(--c-muted); }
@media (max-width: 640px) {
  .match-item { flex-direction: column; align-items: flex-start; }
  .match-score { text-align: left; }
}

/* ── 分页 ── */
.pagination { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 16px; }
.page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px; padding: 0 8px;
  font-size: 13px; font-family: var(--font);
  border: 1px solid var(--c-border); border-radius: var(--radius);
  background: var(--c-white); color: var(--c-text); cursor: pointer;
  text-decoration: none; transition: all .1s;
}
.page-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.page-btn.active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; pointer-events: none; }
.page-btn.ellipsis { border: none; background: none; pointer-events: none; color: var(--c-muted); }

/* ── 空状态 ── */
.empty { padding: 28px; text-align: center; color: var(--c-muted); font-size: 13px; }

/* ── 文件上传 ── */
.file-input-wrap input[type="file"] {
  width: 100%; padding: 9px 12px;
  font-size: 13px; font-family: var(--font);
  border: 1px dashed var(--c-border); border-radius: var(--radius);
  background: var(--c-white); cursor: pointer;
}

/* ── 工具类 ── */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 14px; }
.mt-3 { margin-top: 20px; }
.mb-2 { margin-bottom: 14px; }
.mb-3 { margin-bottom: 20px; }
.text-muted { color: var(--c-muted); }
.text-sm { font-size: 12px; }
.text-center { text-align: center; }
.fw-600 { font-weight: 600; }
.gap-row { display: flex; flex-wrap: wrap; gap: 6px; }

.admin-stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 20px; }
.admin-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 768px) {
  .admin-stats-grid { grid-template-columns: repeat(2,1fr); }
  .admin-two-col { grid-template-columns: 1fr; }
}
