/* 麦朵尔 MindDuo GEO 进展看板 Design System */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --bg: #f5f7fa;
  --panel: #ffffff;
  --ink: #111c2a;
  --muted: #6e7c8c;
  --line: #e4e9f0;
  --nav: #111c2a; /* 官网深邃午夜蓝 */
  --green: #16a36a; /* 麦朵尔 生机森绿 */
  --orange: #e58a2a; /* MindDuo 暖光琥珀橙 */
  --purple: #8b65d7; /* 麦朵尔 × MindDuo 战略罗兰紫 */
  --blue: #3d6ee8; /* 明基 科技蓝 */
  --teal: #29a7a7; /* BenQ 湖青色 */
  --red: #e4554f;
  --shadow: 0 1px 3px rgba(17, 28, 42, 0.05), 0 8px 24px -4px rgba(17, 28, 42, 0.04);
  --shadow-hover: 0 4px 16px rgba(17, 28, 42, 0.08);
  --radius: 8px;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  color: var(--ink);
  background: var(--bg);
  margin: 0;
}

.brand-logo .logo-text {
  display: block;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.brand-logo small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.panel, .card, .headline, .bind-card, .evidence-card {
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card.clickable:hover, .bind-card.clickable:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

/* Tooltip for upcoming features */
.nav a.dim {
  position: relative;
  cursor: help !important;
}

.nav a.dim::after {
  content: "规划中";
  font-size: 9px;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Dropzone & Upload Styles */
.upload-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 40px 24px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 20px;
}

.upload-dropzone.dragover {
  border-color: var(--green);
  background: #f0fdf4;
}

.upload-dropzone .icon {
  font-size: 42px;
  margin-bottom: 12px;
}

.upload-dropzone h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: var(--ink);
}

.upload-dropzone p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.upload-result {
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.upload-result.error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.upload-table th {
  background: #f8fafc;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #1e293b;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  font-size: 13px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.25s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

:root{--bg:#f5f7fa;--panel:#fff;--ink:#15202b;--muted:#73808c;--line:#e7ebef;--nav:#111923;--green:#16a36a;--red:#e4554f;--blue:#3d6ee8;--cyan:#29a7a7;--orange:#e58a2a;--purple:#8b65d7;--shadow:0 10px 26px rgba(20,31,45,.07)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,"PingFang SC","Microsoft YaHei",Arial,sans-serif}.shell{display:grid;grid-template-columns:230px 1fr;min-height:100vh}aside{background:var(--nav);color:#fff;padding:28px 18px;position:sticky;top:0;height:100vh}.brand-logo{font-size:19px;font-weight:750;margin:0 10px 28px}.brand-logo small{display:block;font-size:11px;font-weight:500;color:#8ea0b4;margin-top:6px}.nav-title{font-size:10px;color:#718195;text-transform:uppercase;letter-spacing:1.3px;margin:24px 10px 8px}.nav a{display:block;color:#aebac8;text-decoration:none;padding:11px 12px;border-radius:9px;font-size:14px;margin:4px 0;cursor:pointer}.nav a.active{background:#1d2a38;color:#fff;font-weight:650}.nav a.dim{opacity:.46;cursor:default}.scope{position:absolute;left:18px;right:18px;bottom:24px;padding:14px;border:1px solid #2a3949;border-radius:12px;color:#8fa1b5;font-size:11px;line-height:1.6}.scope b{color:#d9e3ed}main{padding:30px 34px 48px;max-width:1520px;width:100%;margin:0 auto}.view{display:none}.view.active{display:block}.topbar{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:24px}.kicker{font-size:12px;color:var(--blue);font-weight:700;letter-spacing:.8px;text-transform:uppercase}.title{font-size:29px;font-weight:800;letter-spacing:-.5px;margin:6px 0 8px}.subtitle{font-size:13px;color:var(--muted);line-height:1.6}.stamp{background:#eef2f6;border:1px solid #e2e7ec;border-radius:10px;padding:9px 12px;color:#65717d;font-size:12px;white-space:nowrap}.headline{background:linear-gradient(120deg,#fff,#f8fbff);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:16px;padding:22px 24px;margin-bottom:18px;display:flex;justify-content:space-between;gap:24px;align-items:center}.headline h2{font-size:19px;margin:0 0 6px}.headline p{margin:0;color:var(--muted);font-size:13px;line-height:1.65}.headline .big{font-size:30px;font-weight:800;text-align:right}.headline .big span{font-size:12px;color:var(--muted);font-weight:500;display:block;margin-top:3px}.neg{color:var(--red)!important}.pos{color:var(--green)!important}.neutral{color:var(--muted)!important}.grid4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}.grid2{display:grid;grid-template-columns:1.45fr .95fr;gap:18px;margin-bottom:18px}.grid2.equal{grid-template-columns:1fr 1fr}.card{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:18px;box-shadow:0 4px 12px rgba(23,35,48,.035)}.clickable{cursor:pointer;transition:.15s}.clickable:hover{transform:translateY(-1px);box-shadow:0 10px 22px rgba(23,35,48,.09);border-color:#d5ddeb}.metric-label{font-size:12px;color:var(--muted);margin-bottom:12px}.metric{font-size:28px;font-weight:800;letter-spacing:-.5px}.metric-sub{font-size:12px;color:var(--muted);margin-top:8px}.delta{font-size:12px;font-weight:700;margin-left:6px}.view-link{font-size:10px;color:#5a74a8;margin-top:10px}.chip{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;background:#f0f3f7;color:#64717e;font-size:11px}.panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;box-shadow:0 5px 14px rgba(25,38,53,.04)}.panel h3{font-size:15px;margin:0}.panel-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:18px}.panel-sub{font-size:11px;color:var(--muted);margin-top:5px;line-height:1.55}.toggle{display:flex;gap:6px;flex-wrap:wrap}.toggle button{border:1px solid #dfe5eb;background:#fff;border-radius:999px;padding:6px 10px;font-size:11px;color:#667380;cursor:pointer}.toggle button.on{background:#182434;color:#fff;border-color:#182434}.chart{width:100%;height:300px}.axis{stroke:#dfe5eb;stroke-width:1}.axis-text{font-size:10px;fill:#8a96a1}.legend{display:flex;gap:16px;flex-wrap:wrap;margin-top:8px;font-size:11px;color:#62707e}.dot{width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:5px}.compare-row{display:grid;grid-template-columns:150px 1fr 60px 58px;gap:10px;align-items:center;margin:13px 0}.compare-name{font-size:12px;font-weight:650}.bar-wrap{height:22px;background:#f1f4f7;border-radius:7px;position:relative;overflow:hidden}.bar-base,.bar-now{position:absolute;left:0;border-radius:7px}.bar-base{top:4px;height:5px;background:#c8d0d8}.bar-now{bottom:4px;height:8px;background:#2e6be5}.compare-now{text-align:right;font-size:12px;font-weight:750}.compare-delta{text-align:right;font-size:11px;font-weight:700}.bind{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.bind-card{border:1px solid var(--line);border-radius:12px;padding:15px}.bind-name{font-size:12px;color:var(--muted)}.bind-value{font-size:23px;font-weight:800;margin:7px 0}.bind-track{height:6px;background:#edf1f5;border-radius:99px;overflow:hidden}.bind-fill{height:100%;background:#2e6be5;border-radius:99px}.bind-note{font-size:11px;color:var(--muted);margin-top:9px}.callout{margin-top:16px;border-left:3px solid #2e6be5;background:#f7f9fc;border-radius:8px;padding:13px 14px;font-size:12px;line-height:1.65;color:#53616e}.table{width:100%;border-collapse:collapse;font-size:12px}.table th{font-size:10px;text-transform:uppercase;letter-spacing:.5px;color:#87939f;font-weight:650;text-align:right;padding:8px 10px;border-bottom:1px solid var(--line);background:#fff}.table th:first-child,.table td:first-child{text-align:left}.table td{text-align:right;padding:12px 10px;border-bottom:1px solid #eff2f5}.table tr:last-child td{border-bottom:0}.table .strong{font-weight:750}.table-wrap{overflow:auto;max-height:620px}.footer-note{font-size:11px;color:#86929e;line-height:1.7;margin-top:14px}.date-range{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.date-range label{font-size:10px;color:#84909c}.date-range input,.filters select,.filters input{border:1px solid #dce3e9;background:#fff;color:#40505f;border-radius:8px;padding:7px 9px;font-size:11px;outline:none}.date-range input:focus,.filters select:focus,.filters input:focus{border-color:#9db4df;box-shadow:0 0 0 3px rgba(61,110,232,.08)}.range-caption{font-size:11px;color:#6f7d89;background:#f5f7fa;padding:6px 9px;border-radius:8px}.matrix{overflow:auto}.matrix table{min-width:930px}.matrix td.current{font-weight:800}.matrix .mini{display:block;font-size:10px;color:#8a96a1;margin-top:3px}.matrix th.entity{text-align:center}.matrix td{text-align:center}.matrix td:first-child{text-align:left}.tag-main-row{cursor:pointer}.tag-main-row:hover{background:#fafcff}.expand-btn{border:0;background:transparent;color:#687581;width:24px;height:24px;border-radius:6px;cursor:pointer;margin-right:4px;font-size:12px}.expand-btn:hover{background:#edf2f8}.expand-btn.open{transform:rotate(90deg)}.prompt-detail-row{display:none}.prompt-detail-row.open{display:table-row}.prompt-detail-cell{background:#f8fafc!important;padding:8px 10px 16px!important}.prompt-table{width:100%;border-collapse:collapse;background:white;border:1px solid #e8edf2;border-radius:10px;overflow:hidden}.prompt-table th,.prompt-table td{padding:9px 10px;border-bottom:1px solid #eef2f5;font-size:11px;text-align:center}.prompt-table th:first-child,.prompt-table td:first-child{text-align:left}.prompt-table tr:last-child td{border-bottom:0}.prompt-link{color:#365eaa;font-weight:650;cursor:pointer;text-decoration:none}.prompt-link:hover{text-decoration:underline}.rate-link{color:#365eaa;cursor:pointer;font-weight:700}.rate-link:hover{text-decoration:underline}.sample{display:inline-block;margin-left:6px;font-weight:500;font-size:10px;color:#8b97a3}.filters{display:grid;grid-template-columns:repeat(6,minmax(120px,1fr));gap:10px;margin-bottom:14px}.filters .wide{grid-column:span 2}.filter-label{display:block;font-size:10px;color:#87939f;margin-bottom:5px}.evidence-summary{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:12px 0;font-size:11px;color:#6f7c89}.evidence-card{border:1px solid var(--line);border-radius:14px;background:#fff;margin:12px 0;overflow:hidden}.evidence-head{padding:14px 16px;display:flex;justify-content:space-between;gap:15px;align-items:flex-start;cursor:pointer}.evidence-head:hover{background:#fbfcfd}.ev-title{font-size:13px;font-weight:750;line-height:1.45}.ev-meta{font-size:10px;color:#81909d;margin-top:6px;line-height:1.6}.ev-brands{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}.ev-brand{background:#eef3fa;color:#536c91;border-radius:999px;padding:4px 7px;font-size:10px;white-space:nowrap}.evidence-body{display:none;border-top:1px solid #edf1f4;padding:16px}.evidence-card.open .evidence-body{display:block}.answer-box{white-space:pre-wrap;font-size:12px;line-height:1.75;color:#344452;background:#f8fafb;border-radius:10px;padding:14px;max-height:470px;overflow:auto}.refs-title{font-size:11px;font-weight:750;margin:16px 0 8px}.ref-item{padding:9px 0;border-bottom:1px solid #eef1f4;font-size:11px;line-height:1.5}.ref-item:last-child{border-bottom:0}.ref-item a{color:#3d67b0;text-decoration:none}.ref-item a:hover{text-decoration:underline}.ref-media{color:#87939f;margin-left:6px}.empty{padding:28px;text-align:center;color:#8b97a3;font-size:12px}.pager{display:flex;gap:6px;justify-content:center;margin-top:16px}.pager button{border:1px solid #dce3e9;background:#fff;border-radius:7px;padding:6px 9px;font-size:11px;color:#61707d;cursor:pointer}.pager button.on{background:#1b2735;color:white;border-color:#1b2735}.rank-row{display:grid;grid-template-columns:150px 1fr 56px 58px;gap:10px;align-items:center;margin:11px 0}.rank-bar{height:9px;border-radius:99px;background:#edf1f5;overflow:hidden}.rank-fill{height:100%;border-radius:99px;background:#536f9f}.ref-brand-list{display:flex;gap:7px;flex-wrap:wrap}.ref-brand-list button{border:1px solid #dfe5eb;background:#fff;border-radius:9px;padding:8px 10px;font-size:11px;color:#667380;cursor:pointer;text-align:left}.ref-brand-list button.on{background:#182434;color:#fff;border-color:#182434}.media-row{display:grid;grid-template-columns:110px 1fr 40px;gap:10px;align-items:center;margin:12px 0}.media-name{font-size:12px}.media-track{height:10px;background:#edf1f5;border-radius:99px;overflow:hidden}.media-fill{height:100%;background:#3d6ee8;border-radius:99px}.media-count{text-align:right;font-weight:750;font-size:12px}.ref-count-row{display:grid;grid-template-columns:150px 1fr 52px;gap:10px;align-items:center;margin:11px 0}.ref-count-track{height:11px;background:#edf1f5;border-radius:99px;overflow:hidden}.ref-count-fill{height:100%;background:#7d8fab;border-radius:99px}.period-note{padding:10px 12px;border-radius:10px;background:#f7f9fc;color:#687581;font-size:11px;line-height:1.6;margin-top:12px}
/* 移动端/窄屏 (<1100px) 顶部导航栏与抽屉菜单 */
.mobile-header {
  display: none;
}
.drawer-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 16, 26, 0.6);
  backdrop-filter: blur(2px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.drawer-backdrop.open {
  display: block;
  opacity: 1;
}

@media(max-width:1100px){
  .shell{grid-template-columns:1fr;padding-top:54px;}
  aside{
    position: fixed;
    top: 0;
    left: -280px;
    width: 270px;
    height: 100vh;
    z-index: 999;
    box-shadow: 4px 0 24px rgba(0,0,0,0.25);
    overflow-y: auto;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    display: block !important;
  }
  aside.drawer-open {
    transform: translateX(280px);
  }
  aside .scope {
    position: static;
    margin-top: 24px;
    margin-bottom: 24px;
  }
  .mobile-header {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 54px;
    background: #111923;
    color: #fff;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 990;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  }
  .mobile-menu-btn {
    background: transparent;
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
  }
  .mobile-menu-btn:hover, .mobile-menu-btn:active {
    background: rgba(255,255,255,0.12);
  }
  .mobile-header-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #fff;
  }
  .mobile-header-back-m {
    font-size: 12px;
    color: #4ade80;
    text-decoration: none;
    font-weight: 600;
    background: rgba(22, 163, 106, 0.15);
    padding: 5px 9px;
    border-radius: 6px;
  }
  .grid4,.grid3{grid-template-columns:repeat(2,1fr)}
  .grid2,.grid2.equal{grid-template-columns:1fr}
  main{padding:20px 16px}
  .bind{grid-template-columns:1fr 1fr}
  .filters{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:640px){.grid4,.grid3{grid-template-columns:1fr}.bind{grid-template-columns:1fr}.topbar,.headline{display:block}.stamp{margin-top:12px;display:inline-block}.headline .big{text-align:left;margin-top:14px}.compare-row,.rank-row{grid-template-columns:112px 1fr 50px}.compare-delta,.rank-row .compare-delta{display:none}.filters{grid-template-columns:1fr}.filters .wide{grid-column:span 1}.date-range{margin-top:10px}}

/* Table Header Sorting Styles */
th.sortable {
  cursor: pointer !important;
  user-select: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
th.sortable:hover {
  background-color: #f1f5f9 !important;
  color: var(--blue) !important;
}
th.sortable .sort-arrow {
  display: inline-block;
  margin-left: 5px;
  font-size: 11px;
  color: #94a3b8;
  vertical-align: middle;
}
th.sortable.sorted .sort-arrow {
  color: var(--blue);
  font-weight: 700;
}

/* UI Helper Buttons */
.btn {
  border: 1px solid #dce3e9;
  background: #fff;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12px;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-sm {
  padding: 5px 10px;
  font-size: 11px;
  border-radius: 6px;
}
.btn-secondary {
  background: #f1f5f9;
  color: #475569;
  border-color: #e2e8f0;
}
.btn-secondary:hover {
  background: #e2e8f0;
  color: #1e293b;
}
.btn-ghost {
  background: transparent;
  border-color: #e2e8f0;
  color: var(--blue);
}
.btn-ghost:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

/* Reference Detail Badges & Typography */
.badge-brand {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  margin: 2px 3px 2px 0;
}
.badge-subtle {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  margin: 2px 3px 2px 0;
}
.badge-media {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.platform-pill {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
  margin-top: 3px;
}
.ref-url-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #2563eb;
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 6px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  transition: all 0.15s ease;
}
.ref-url-link:hover {
  background: #dbeafe;
  color: #1d4ed8;
  text-decoration: underline;
}
.ref-table-title {
  font-size: 12px;
  color: #1e293b;
  font-weight: 550;
  line-height: 1.5;
  max-width: 420px;
  word-break: break-word;
  text-align: left;
}
.ref-jump-kw {
  color: #1e293b;
  text-decoration: none;
  font-weight: 600;
}
.ref-jump-kw:hover {
  color: var(--blue);
  text-decoration: underline;
}
.pager-info {
  display: flex;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  margin-right: 12px;
}
.pager-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pager-current {
  padding: 4px 10px;
  background: var(--nav);
  color: white;
  font-weight: 600;
  border-radius: 6px;
  font-size: 11px;
}

/* Longevity & Presets Styles */
.btn-preset {
  border: 1px solid #dce3e9;
  background: #ffffff;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 11px;
  color: #55697d;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-preset:hover {
  background: #eef3f8;
  color: var(--ink);
  border-color: #cbd5e1;
}
.btn-preset.active {
  background: var(--nav);
  color: #ffffff;
  border-color: var(--nav);
}

.compare-row.is-core-maido {
  background: #f0fdf4 !important;
  border-left: 3.5px solid var(--green);
  padding: 8px 12px;
  border-radius: 8px;
  margin: 7px 0;
  box-shadow: 0 1px 3px rgba(22, 163, 106, 0.08);
}
.compare-row.is-core-mindduo {
  background: #fffbeb !important;
  border-left: 3.5px solid var(--orange);
  padding: 8px 12px;
  border-radius: 8px;
  margin: 7px 0;
  box-shadow: 0 1px 3px rgba(229, 138, 42, 0.08);
}
.compare-row.is-core-benq {
  background: #f0f7ff !important;
  border-left: 3.5px solid var(--blue);
  padding: 8px 12px;
  border-radius: 8px;
  margin: 7px 0;
}

#comp-ranking .compare-row {
  grid-template-columns: 140px 1fr 50px 52px 90px;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  transition: all 0.15s ease;
}
#comp-ranking .compare-row:hover {
  background: #f8fafc;
}


.badge-longevity {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}
.badge-evergreen {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.badge-medium {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}
.badge-ephemeral {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.media-longevity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.media-longevity-card {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.media-longevity-card:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}
.media-longevity-card.active {
  background: #eff6ff;
  border-color: #93c5fd;
}
.media-longevity-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 6px;
}
.media-longevity-fill {
  height: 100%;
  background: var(--green);
  border-radius: 999px;
}

/* Competitor Enhanced Brand Toggles & Trend Indicators */
.comp-brand-pills button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  background: #ffffff;
  border: 1px solid #dfe5eb;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  margin: 3px 2px;
}
.comp-brand-pills button:hover {
  background: #f3f4f6;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}
.comp-brand-pills button.on {
  background: var(--nav);
  color: #ffffff;
  border-color: var(--nav);
  box-shadow: 0 2px 6px rgba(17, 28, 42, 0.2);
}
.comp-brand-pills button .pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.comp-brand-pills button .pill-rate {
  font-size: 10px;
  opacity: 0.75;
  font-weight: 500;
}
.comp-brand-pills button.on .pill-rate {
  opacity: 0.95;
  color: #f1f5f9;
}

.compare-row.is-active-trend {
  box-shadow: 0 0 0 2px rgba(61, 110, 232, 0.45);
  background: #f8fbff;
}
.compare-row .btn-trend-toggle {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid #dce3e9;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.compare-row .btn-trend-toggle:hover {
  background: #eff6ff;
  color: var(--blue);
  border-color: #bfdbfe;
}
.compare-row .btn-trend-toggle.on {
  background: var(--nav);
  color: #ffffff;
  border-color: var(--nav);
}

/* Evidence View Enhancements */
.evidence-summary-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.evidence-hint {
  color: var(--muted);
  font-size: 11px;
}
.evidence-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.ev-main-info {
  flex: 1;
  min-width: 0;
}
.ev-head-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.ev-card-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.ev-card-actions .btn {
  padding: 3px 8px;
  font-size: 11px;
  background: #f8fafc;
}
.ev-card-actions .btn:hover {
  background: #eff6ff;
}
.ev-body-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px dashed #e2e8f0;
}
.ev-body-badge {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}
.ev-body-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.ev-body-actions .btn {
  padding: 3px 8px;
  font-size: 11px;
}

/* AI Media Preferences Styles */
.ai-profile-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--blue);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}
.ai-profile-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.ai-card-kimi { border-left-color: #3b82f6; }
.ai-card-deepseek { border-left-color: #0284c7; }
.ai-card-qwen { border-left-color: #8b5cf6; }
.ai-card-doubao { border-left-color: #10b981; }

.ai-profile-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.ai-profile-name {
  font-size: 14px;
  font-weight: 750;
  color: var(--ink);
}
.ai-profile-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
  padding: 10px;
  background: #f8fafc;
  border-radius: 8px;
}
.ai-stat-box {
  text-align: center;
}
.ai-stat-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}
.ai-stat-label {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.ai-top-media-tag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #eff6ff;
  color: #1e40af;
  margin-top: 8px;
}
.ai-top-media-tag b {
  color: #1d4ed8;
}

/* Matrix Table Styling */
.table td.matrix-cell-clickable {
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  text-align: center;
}
.table td.matrix-cell-clickable:hover {
  background: #f1f5f9;
  box-shadow: inset 0 0 0 1.5px var(--blue);
}
.matrix-cell-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.matrix-cell-count {
  font-weight: 750;
  font-size: 12px;
}
.matrix-cell-rate {
  font-size: 10px;
  color: var(--muted);
}
.affinity-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  margin-top: 2px;
  letter-spacing: 0.2px;
}
.affinity-high {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.affinity-normal {
  background: #f1f5f9;
  color: #475569;
}
.affinity-low {
  background: #f8fafc;
  color: #94a3b8;
}

/* Deepdive Section */
.ai-deepdive-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 24px;
}
@media (max-width: 1000px) {
  .ai-deepdive-grid {
    grid-template-columns: 1fr;
  }
}
.ai-rank-item {
  display: grid;
  grid-template-columns: 24px 100px 1fr 48px 48px 60px;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12px;
}
.ai-rank-item:hover {
  background: #f8fafc;
}
.ai-rank-num {
  font-weight: 800;
  color: var(--muted);
  font-size: 11px;
}
.ai-rank-bar {
  height: 8px;
  background: #f1f5f9;
  border-radius: 99px;
  overflow: hidden;
}
.ai-rank-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 99px;
}

.ai-article-card {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 10px;
  background: #ffffff;
  transition: all 0.15s ease;
}
.ai-article-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.ai-art-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.ai-art-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
  text-decoration: none;
}
.ai-art-title:hover {
  color: var(--blue);
  text-decoration: underline;
}
.ai-art-cite-count {
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 750;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.ai-art-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
}

/* 新增：统计口径切换胶囊 */
.scope-toggle-wrap { display: inline-flex; align-items: center; gap: 6px; background: #edf2f7; padding: 3px 5px; border-radius: 999px; }
.scope-btn { border: 0; background: transparent; padding: 6px 13px; font-size: 11px; font-weight: 600; color: #4a5568; border-radius: 999px; cursor: pointer; transition: all .15s ease; }
.scope-btn.active { background: #1a202c; color: #ffffff; box-shadow: 0 2px 6px rgba(0,0,0,0.15); }
.scope-btn:hover:not(.active) { color: #1a202c; }

/* 新增：型号透视卡片网格 */
.model-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.model-card { background: #ffffff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; position: relative; overflow: hidden; }
.model-card.clickable:hover { border-color: var(--blue); }
.model-card .badge { display: inline-block; font-size: 10px; padding: 2px 6px; border-radius: 4px; margin-bottom: 6px; font-weight: 600; }
.badge-target { background: #e8f7ee; color: #16a36a; }
.badge-noise { background: #feecef; color: #e4554f; }
.badge-mixed { background: #fef7e6; color: #d97706; }
.model-name { font-size: 13px; font-weight: 700; color: var(--ink); }
.model-count { font-size: 22px; font-weight: 800; margin: 6px 0; }
.model-sub { font-size: 11px; color: var(--muted); }

.noise-alert { background: #fff5f5; border-left: 3px solid #e53e3e; padding: 12px 16px; border-radius: 8px; font-size: 11px; color: #742a2a; margin-top: 16px; line-height: 1.6; }
.noise-alert b { color: #9b2c2c; }

.model-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font-size: 10px; margin: 2px; }
.pill-target { background: #e6fffa; color: #047857; border: 1px solid #a7f3d0; font-weight: 600; }
.pill-noise { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; font-weight: 600; text-decoration: line-through; }
.pill-mixed { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }

/* 有效提及判定规则说明卡片 */
.rule-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 16px; margin-top: 14px; }
.rule-card { background: #ffffff; border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; }
.rule-card.valid { border-left: 4px solid var(--green); }
.rule-card.invalid { border-left: 4px solid #ef4444; }
.rule-card-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.rule-card-title h4 { font-size: 13px; font-weight: 700; margin: 0; color: var(--ink); }
.rule-card-desc { font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 12px; }
.rule-example-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; padding: 10px 12px; font-size: 12px; line-height: 1.5; margin-bottom: 12px; }
.rule-example-meta { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.rule-example-content { color: #334155; }
.rule-example-content mark.target { background: #bbf7d0; color: #166534; padding: 1px 4px; border-radius: 3px; font-weight: 600; }
.rule-example-content mark.noise { background: #fecdd3; color: #9f1239; padding: 1px 4px; border-radius: 3px; font-weight: 600; }
/* ========================================================
   GEO Content Production & Project Settings Workbench V1
   ======================================================== */

/* Metric Cards & Progress */
.metric-main { display: flex; align-items: flex-end; gap: 7px; margin-bottom: 11px; }
.metric-value { font-size: 29px; font-weight: 790; line-height: 1; letter-spacing: -0.5px; }
.metric-unit { color: #8a939f; font-size: 11px; padding-bottom: 3px; }
.metric-meta { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; gap: 8px; }
.delta.pos { color: var(--green); font-weight: 700; }
.delta.neg { color: var(--red); font-weight: 700; }
.delta.warn-color { color: var(--orange); font-weight: 700; }
.progress { height: 7px; background: #eef1f4; border-radius: 99px; overflow: hidden; margin: 10px 0 8px; }
.progress > span { height: 100%; display: block; border-radius: 99px; }
.progress > span.green { background: var(--green); }
.progress > span.blue { background: var(--blue); }
.progress > span.orange { background: var(--orange); }
.progress > span.purple { background: var(--purple); }

/* Funnel */
.funnel { display: grid; grid-template-columns: 1fr 34px 1fr 34px 1fr; gap: 10px; align-items: center; padding: 8px 0 2px; }
.stage { border: 1px solid var(--line); background: #fbfcfd; border-radius: 12px; padding: 14px; min-height: 128px; }
.stage-name { font-size: 11px; color: var(--muted); margin-bottom: 7px; font-weight: 650; }
.stage-num { font-size: 26px; font-weight: 800; margin-bottom: 5px; }
.stage small { font-size: 10px; color: var(--muted); }
.arrow { color: #a3acb7; font-size: 22px; text-align: center; }
.mini-split { display: flex; gap: 7px; margin-top: 10px; flex-wrap: wrap; }
.pill { padding: 4px 7px; border-radius: 7px; background: #f0f3f6; font-size: 10px; color: #5e6875; }
.pill.warn { background: #fff4e8; color: #b76918; }
.pill.bad { background: #fff0ef; color: #b94642; }
.pill.good { background: #eaf8f2; color: #177a57; }

/* Weekly Chart */
.chart-box { height: 230px; display: flex; align-items: flex-end; gap: 16px; padding: 10px 5px 0; border-bottom: 1px solid var(--line); }
.week { flex: 1; min-width: 60px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; }
.bars { height: 185px; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 6px; }
.bar { width: 14px; border-radius: 5px 5px 2px 2px; position: relative; min-height: 4px; }
.bar.green { background: var(--green); }
.bar.blue { background: var(--blue); }
.bar.purple { background: var(--purple); }
.bar:hover::after {
  content: attr(data-value);
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  background: #202832;
  color: white;
  padding: 3px 5px;
  border-radius: 5px;
  white-space: nowrap;
  z-index: 10;
}
.week-label { font-size: 10px; color: #7d8794; }

/* Reason Breakdown */
.reason { margin-bottom: 14px; }
.reason-top { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 6px; }
.reason-top b { font-weight: 650; }
.reason-track { height: 8px; background: #eff2f5; border-radius: 99px; overflow: hidden; }
.reason-track span { display: block; height: 100%; background: #97a2ae; border-radius: 99px; }

/* Platforms */
.platforms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.platform { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #fbfcfd; }
.platform .n { font-size: 20px; font-weight: 760; margin: 5px 0 2px; }
.platform small { font-size: 10px; color: var(--muted); }

/* Content Table & Status */
.content-title { font-weight: 650; color: #202935; max-width: 320px; word-break: break-word; }
.prompt { color: #66717f; max-width: 240px; line-height: 1.5; font-size: 11px; }
.status { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 4px 8px; font-size: 10px; font-weight: 650; white-space: nowrap; }
.status.pass { background: #eaf8f2; color: #167a56; }
.status.review { background: #edf3ff; color: #365fb9; }
.status.revise { background: #fff2e4; color: #ac651d; }
.status.pub { background: #f0edff; color: #6651b3; }
.status.draft { background: #f0f2f4; color: #68727e; }
.link-btn { border: 1px solid var(--line); background: white; border-radius: 6px; padding: 4px 8px; font-size: 11px; cursor: pointer; color: #52606e; display: inline-flex; align-items: center; }
.link-btn:hover { border-color: #bdc5ce; background: #f8f9fa; }

/* Modals & Overlays */
.modal { position: fixed; inset: 0; background: rgba(17, 24, 33, 0.5); display: none; align-items: center; justify-content: center; padding: 24px; z-index: 1000; }
.modal.show { display: flex; }
.modal-card { width: min(840px, 95vw); max-height: 90vh; overflow-y: auto; background: white; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,0.25); padding: 22px; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 17px; }
.close { border: 0; background: #f0f2f4; border-radius: 8px; width: 30px; height: 30px; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.close:hover { background: #e2e8f0; color: var(--ink); }

/* Audit 5 Dimensions Grid */
.audit { margin-top: 10px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.audit > div { border: 1px solid var(--line); border-radius: 8px; padding: 10px; font-size: 10px; background: #fbfcfd; }
.audit b { display: block; margin-bottom: 4px; font-size: 11px; color: var(--ink); }
.audit .ok { color: var(--green); font-weight: 700; }
.audit .fail { color: var(--red); font-weight: 700; }

/* Project Settings Workbench */
.field { margin-bottom: 12px; }
.field label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 5px; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; padding: 8px 10px; border: 1px solid #d7dce3; border-radius: 7px; background: #fff; font: inherit; font-size: 12px; box-sizing: border-box; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.batchbar { display: flex; align-items: center; gap: 8px; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 8px; padding: 8px 12px; margin: 10px 0; }
.prompt-table tbody tr:hover { background: #fafcff; }
.prompt-text { font-weight: 500; max-width: 440px; font-size: 12px; }
.btn-primary { background: var(--blue); color: white; border: 0; border-radius: 7px; padding: 7px 14px; font-weight: 600; cursor: pointer; font-size: 12px; }
.btn-primary:hover { background: #1d4ed8; }
.btn-plain { background: white; border: 1px solid var(--line); border-radius: 7px; padding: 6px 12px; font-size: 12px; cursor: pointer; color: #344054; }
.btn-plain:hover { background: #f8f9fa; border-color: #bdc5ce; }
.btn-ghost { background: #eef2ff; color: #2445a8; border: 0; border-radius: 7px; padding: 6px 12px; font-size: 12px; cursor: pointer; }
.btn-ghost:hover { background: #e0e7ff; }
.ok { color: var(--green); font-weight: 600; }
.warn { color: #b7791f; font-weight: 600; }
.risk { color: var(--red); font-weight: 600; }

/* ── 创作闭环专属样式 ─────────────────────────────────────────────────── */
.badge-create { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; font-weight: 600; padding: 2px 7px; border-radius: 4px; font-size: 11px; }
.badge-publish { background: #dbeafe; color: #1d4ed8; border: 1px solid #93c5fd; font-weight: 600; padding: 2px 7px; border-radius: 4px; font-size: 11px; }
.badge-wait { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; font-weight: 600; padding: 2px 7px; border-radius: 4px; font-size: 11px; }
.badge-diagnose { background: #ffedd5; color: #c2410c; border: 1px solid #fdba74; font-weight: 600; padding: 2px 7px; border-radius: 4px; font-size: 11px; }
.badge-hold { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; font-weight: 600; padding: 2px 7px; border-radius: 4px; font-size: 11px; }
.badge-blocked { background: #e2e8f0; color: #94a3b8; border: 1px solid #cbd5e1; font-weight: 600; padding: 2px 7px; border-radius: 4px; font-size: 11px; text-decoration: line-through; }
.badge-rank { background: #1e293b; color: #ffffff; font-weight: 700; padding: 2px 7px; border-radius: 4px; font-size: 11px; }
.badge-today { background: #ecfdf5; color: #047857; border: 1px solid #6ee7b7; font-weight: 700; padding: 2px 6px; border-radius: 4px; font-size: 11px; }

.batch-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; margin-top: 8px; }
.batch-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 1px 3px rgba(0,0,0,0.03); transition: transform .15s ease, box-shadow .15s ease; }
.batch-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); border-color: #cbd5e1; }
.batch-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.batch-prompt-title { margin: 6px 0 12px 0; font-size: 15px; font-weight: 700; color: var(--text); cursor: pointer; line-height: 1.4; }
.batch-prompt-title:hover { color: var(--blue); text-decoration: underline; }

.batch-metrics-row { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; background: #f8fafc; padding: 10px; border-radius: 8px; margin-bottom: 12px; }
.metric-cell small { display: block; font-size: 10px; color: var(--muted); margin-bottom: 2px; }
.metric-cell div { font-size: 12px; color: var(--text); }
.metric-cell span { font-size: 11px; font-weight: 700; }

.batch-reason-box { background: #f8fafc; border-left: 3px solid var(--blue); padding: 8px 10px; font-size: 12px; line-height: 1.5; color: #475569; margin-bottom: 12px; border-radius: 0 6px 6px 0; }
.batch-card-actions { display: flex; gap: 8px; justify-content: flex-end; }

.unselected-explain-container { display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow-y: auto; }
.unselected-item { display: flex; align-items: center; justify-content: space-between; background: #f8fafc; border: 1px solid #e2e8f0; padding: 8px 12px; border-radius: 6px; }

.creation-table th, .creation-table td { padding: 9px 10px; font-size: 12px; vertical-align: middle; }
.creation-state-btn { border: 0; background: transparent; padding: 5px 11px; font-size: 11px; font-weight: 600; color: #64748b; border-radius: 999px; cursor: pointer; }
.creation-state-btn.active { background: #1e293b; color: #ffffff; }

.row-highlight { background-color: #f0fdf4 !important; }
.text-red { color: #dc2626 !important; }
.text-green { color: #16a36a !important; }

/* 抽屉 Drawer */
.drawer { position: fixed; top: 0; right: -620px; width: 600px; height: 100vh; background: #ffffff; box-shadow: -4px 0 24px rgba(0,0,0,0.15); z-index: 1000; transition: right .3s ease; overflow-y: auto; padding: 24px; }
.drawer.open { right: 0; }

/* 模态框 Modal */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(15, 23, 42, 0.6); z-index: 1100; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(2px); }
.modal-box { background: #ffffff; border-radius: 12px; width: 720px; max-width: 90vw; max-height: 88vh; overflow-y: auto; padding: 24px; box-shadow: 0 20px 40px rgba(0,0,0,0.25); }
.input-text, .input-select { border: 1px solid #cbd5e1; border-radius: 6px; padding: 7px 10px; font-size: 13px; outline: none; transition: border-color .15s ease; }
.input-text:focus, .input-select:focus { border-color: var(--blue); }

/* Source Intelligence & Post-Publication Workbench Styles */
.clickable-sub {
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background-color 0.15s;
}
.clickable-sub:hover {
  background-color: rgba(226, 232, 240, 0.7);
  text-decoration: underline;
}
.hover-card:hover {
  border-color: var(--blue) !important;
  background: #f8fafc !important;
}
.hover-row:hover {
  background: #f8fafc !important;
}
.si-scope-btn.btn-primary, .si-time-btn.btn-primary {
  background: var(--blue) !important;
  color: white !important;
}

/* 链接录入与展示样式 */
.link-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
}
.link-tab-btn:hover {
  color: var(--text);
}
.link-tab-btn.active {
  color: var(--blue, #2563eb);
  border-bottom-color: var(--blue, #2563eb);
}

.prompt-link-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 8px;
  transition: border-color .2s;
}
.prompt-link-row:hover {
  border-color: #cbd5e1;
}




.grid5{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:18px}
@media(max-width:1380px){.grid5{grid-template-columns:repeat(3,1fr)}}
@media(max-width:1100px){.grid5{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.grid5{grid-template-columns:1fr}}

.card-target-union {
  background: linear-gradient(180deg, #fffdf5 0%, #ffffff 100%) !important;
  border: 1.5px solid #fde047 !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.08) !important;
  position: relative;
  overflow: hidden;
}
.card-target-union:hover {
  border-color: #f59e0b !important;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.16) !important;
}
.card-target-union::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #f59e0b, #e58a2a);
}
