/* 媒体发布平台 —— 视觉与橡媒官网（xiangmei/index.html）同源：白底 · #2563EB 品牌渐变 · 圆角卡片 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --brand: #2563EB;
  --brand-d: #1D4ED8;
  --ink: #0F172A;
  --ink-2: #334155;
  --ink-3: #64748B;
  --line: #E5E9F0;
  --bg: #FFFFFF;
  --bg-2: #F8FAFC;
  --bg-dark: #0B1220;
  --radius: 16px;
  --max: 1100px;
  --shadow: 0 12px 32px rgba(15,23,42,.08);
  --grad: linear-gradient(135deg, #1E40AF 0%, #2563EB 32%, #0EA5E9 64%, #22D3EE 100%);
  /* 状态色 */
  --ok: #16A34A;
  --warn: #D97706;
  --err: #DC2626;
  --mono: "Cascadia Code", "Consolas", monospace;
}
html { scroll-behavior: smooth; }
body { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink); background: var(--bg-2); line-height: 1.7; -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 24px 24px 80px; }

/* ===== NAV（与官网同款） ===== */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 22px; color: var(--ink); }
.brand-logo { width: 30px; height: 30px; border-radius: 8px; object-fit: contain; }
.brand-tag {
  display: inline-block; font-size: 10px; font-weight: 900; color: #fff; background: var(--grad);
  border-radius: 999px; padding: 3px 8px; letter-spacing: .03em; line-height: 1.2;
  box-shadow: 0 2px 6px rgba(37,99,235,.3); transform: translateY(-9px); margin-left: 2px; white-space: nowrap;
}
.nav-right { display: flex; align-items: center; gap: 14px; }
.bal-pill { font-size: 13.5px; color: var(--ink-2); background: rgba(37,99,235,.06);
  border: 1px solid rgba(37,99,235,.18); border-radius: 999px; padding: 7px 16px; white-space: nowrap; }
.bal-pill b { font-family: var(--mono); color: var(--brand-d); font-size: 15px; margin-left: 4px; }
.who { font-size: 13px; color: var(--ink-3); white-space: nowrap; }

/* ===== 按钮（与官网同款） ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer; transition: .18s; border: none; font-family: inherit; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(37,99,235,.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(37,99,235,.34); }
.btn-ghost { background: #fff; color: var(--brand-d); border: 1.5px solid var(--brand); }
.btn-ghost:hover { background: rgba(37,99,235,.06); }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn:disabled { opacity: .45; cursor: default; transform: none !important; }
.btn.danger { background: #fff; color: var(--err); border: 1.5px solid var(--err); }
.btn.danger:hover { background: rgba(220,38,38,.06); }
.btn.ok { background: #fff; color: var(--ok); border: 1.5px solid var(--ok); }
.btn.ok:hover { background: rgba(22,163,74,.07); }
.btn.ok.solid, .btn.danger.solid { color: #fff; }
.btn.ok.solid { background: var(--ok); border-color: var(--ok); }
.btn.danger.solid { background: var(--err); border-color: var(--err); }
.btn-link { background: none; border: 0; color: var(--ink-3); cursor: pointer; font-size: 12.5px; font-family: inherit; }
.btn-link:hover { color: var(--brand); }

/* ===== 面板 / 卡片 ===== */
.panel, .toolbar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.tabs { display: inline-flex; background: var(--bg-2); border-radius: 11px; padding: 4px; border: 1px solid var(--line); }
.tab {
  border: 0; background: transparent; color: var(--ink-3); cursor: pointer;
  padding: 8px 22px; border-radius: 8px; font-size: 14px; font-family: inherit; transition: .18s;
}
.tab:hover { color: var(--brand-d); }
.tab.on { background: var(--grad); color: #fff; font-weight: 700; box-shadow: 0 4px 14px rgba(37,99,235,.35); }
.tab .badge { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 5px; border-radius: 9px; background: var(--err); color: #fff; font-size: 10px; line-height: 17px; font-family: var(--mono); }
.pane { display: none; }
.pane.on { display: block; animation: fadeUp .3s ease; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ===== 表单 ===== */
input, select, textarea {
  background: #fff; border: 1.5px solid var(--line); border-radius: 10px;
  color: var(--ink); padding: 10px 13px; font-size: 14px; font-family: inherit; outline: none; transition: .18s;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
select { cursor: pointer; }
textarea { width: 100%; resize: vertical; line-height: 1.7; }
label.f { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin: 14px 0 6px; }
label.f:first-child { margin-top: 0; }

/* ===== 芯片筛选 ===== */
#chip-panel { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 6px; }
.chip-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; padding: 7px 0; }
.chip-label { width: 78px; flex-shrink: 0; font-size: 13px; color: var(--ink-3); padding-top: 4px; }
.chip {
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  color: var(--ink-2); font-size: 12.5px; padding: 3px 14px; cursor: pointer;
  font-family: inherit; transition: .15s; line-height: 1.6;
}
.chip:hover { color: var(--brand); border-color: var(--brand); }
.chip.on { background: var(--grad); border-color: transparent; color: #fff; font-weight: 700; box-shadow: 0 4px 12px rgba(37,99,235,.3); }

/* ===== 结果条 ===== */
.result-bar { display: flex; justify-content: space-between; align-items: center; margin: 4px 2px 12px; }
.result-bar .n { font-size: 14px; color: var(--ink-2); }
.result-bar .n b { color: var(--brand-d); font-family: var(--mono); font-size: 17px; }
.page-size { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-3); }

/* ===== 表格 ===== */
.table-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: auto; max-height: calc(100vh - 320px); box-shadow: var(--shadow);
}
table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 900px; }
thead th {
  position: sticky; top: 0; background: var(--bg-2); z-index: 2;
  text-align: left; padding: 12px 14px; font-size: 12px; font-weight: 700;
  color: var(--ink-3); letter-spacing: .05em; border-bottom: 1px solid var(--line); white-space: nowrap;
}
tbody td { padding: 11px 14px; border-bottom: 1px solid #EEF2F7; white-space: nowrap; max-width: 280px; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
tbody tr { transition: .14s; }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover, tbody tr:hover { background: rgba(37,99,235,.05); }
.price { font-family: var(--mono); color: var(--brand-d); font-weight: 700; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.name-cell { color: var(--ink); font-weight: 700; }
.tag { display: inline-block; background: rgba(37,99,235,.08); color: var(--brand-d); border-radius: 999px; padding: 2px 10px; font-size: 11.5px; font-weight: 600; margin-right: 4px; }
.url { color: var(--ink-3); font-family: var(--mono); font-size: 11.5px; }
.url:hover { color: var(--brand); }
.empty { padding: 60px; text-align: center; color: var(--ink-3); font-size: 14px; }

/* ===== 状态徽章 ===== */
.st { display: inline-block; border-radius: 999px; padding: 2.5px 11px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.st.待处理, .st.待确认 { background: rgba(217,119,6,.1); color: var(--warn); }
.st.处理中 { background: rgba(37,99,235,.1); color: var(--brand-d); }
.st.已完成, .st.已到账 { background: rgba(22,163,74,.1); color: var(--ok); }
.st.已退回, .st.已拒绝 { background: rgba(220,38,38,.08); color: var(--err); }

/* ===== 分页 ===== */
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 16px; }
.pager button {
  background: #fff; border: 1.5px solid var(--line); color: var(--ink-2);
  border-radius: 10px; padding: 7px 16px; font-size: 13px; cursor: pointer; font-family: var(--mono); transition: .15s;
}
.pager button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.pager button:disabled { opacity: .35; cursor: default; }
.pager .pg { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.pager .pg b { color: var(--brand-d); }

/* ===== 弹窗 ===== */
.mask { position: fixed; inset: 0; background: rgba(15,23,42,.45); backdrop-filter: blur(4px); display: none; place-items: center; z-index: 60; }
.mask.show { display: grid; }
.modal {
  background: #fff; border-radius: 20px; box-shadow: 0 24px 64px rgba(15,23,42,.25);
  width: min(620px, 94vw); max-height: 82vh; overflow: auto; animation: fadeUp .25s ease;
}
.modal.wide { width: min(780px, 94vw); }
.modal-h { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2; border-radius: 20px 20px 0 0; }
.modal-h h3 { color: var(--ink); font-size: 17px; }
.modal-h button { background: none; border: 0; color: var(--ink-3); font-size: 20px; cursor: pointer; line-height: 1; }
.modal-h button:hover { color: var(--ink); }
.modal-b { padding: 18px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.kv { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.kv.full { grid-column: 1 / -1; }
.kv .k { font-size: 12px; font-weight: 700; color: var(--ink-3); margin-bottom: 3px; }
.kv .v { font-size: 14px; color: var(--ink); word-break: break-all; white-space: normal; line-height: 1.6; }
.kv .v a { color: var(--brand-d); }
.kv .v a:hover { text-decoration: underline; }

/* ===== 浮动清单栏 ===== */
.cart-bar {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  background: #fff; border: 1px solid rgba(37,99,235,.25); border-radius: 16px;
  padding: 12px 20px; display: flex; align-items: center; gap: 16px; z-index: 40;
  box-shadow: 0 16px 44px rgba(15,23,42,.18), 0 0 0 4px rgba(37,99,235,.08);
  animation: fadeUp .3s ease;
}
.cart-bar .info { font-size: 14px; color: var(--ink-2); }
.cart-bar .info b { font-family: var(--mono); color: var(--brand-d); font-size: 16px; }

/* ===== toast ===== */
.toast {
  position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 70;
  background: #fff; border: 1px solid rgba(37,99,235,.3); border-radius: 12px;
  padding: 11px 22px; font-size: 14px; color: var(--ink);
  box-shadow: 0 12px 36px rgba(15,23,42,.16); animation: fadeUp .25s ease; max-width: 80vw;
}
.toast.err { border-color: rgba(220,38,38,.4); color: var(--err); }

/* ===== 登录页（官网 hero 同款浅蓝渐变顶） ===== */
.auth-page { min-height: 100vh; background: linear-gradient(180deg, #EEF4FF 0%, #F7FAFF 30%, var(--bg-2) 100%); }
.auth-box { width: min(430px, 92vw); margin: 0 auto; padding-top: 9vh; position: relative; animation: fadeUp .4s ease; }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; font-size: 28px; margin-bottom: 6px; }
.auth-brand img { width: 38px; height: 38px; border-radius: 10px; }
.auth-brand .brand-tag { transform: translateY(-10px); }
.auth-sub { text-align: center; font-size: 14px; color: var(--ink-3); margin-bottom: 26px; }
.auth-box .panel { padding: 30px 32px; margin-bottom: 0; }
.auth-tabs { display: flex; gap: 4px; margin-bottom: 20px; }
.auth-tabs .tab { flex: 1; text-align: center; padding: 10px 0; border-radius: 8px; font-size: 14.5px; }
.auth-box input { width: 100%; margin-bottom: 14px; padding: 12px 14px; }
.err-msg { color: var(--err); font-size: 13px; min-height: 18px; margin: -6px 0 10px; }
.auth-tip { font-size: 12.5px; color: var(--ink-3); text-align: center; margin-top: 18px; line-height: 1.8; }
.auth-tip b { color: var(--brand-d); }
.auth-foot { text-align: center; font-size: 12px; color: #94A3B8; margin-top: 24px; }

/* 钱包余额大卡 */
.balance-card { background: var(--grad); color: #fff; border-radius: 18px; padding: 22px 28px; box-shadow: 0 14px 36px rgba(37,99,235,.3); min-width: 220px; }
.balance-card .n { font-family: var(--mono); font-size: 34px; font-weight: 700; line-height: 1.15; }
.balance-card .l { font-size: 12.5px; opacity: .92; margin-top: 2px; }

/* ===== 铃铛 / 通知下拉 ===== */
.bell { position: relative; background: none; border: 0; cursor: pointer; font-size: 18px; padding: 6px 8px; border-radius: 10px; transition: .15s; line-height: 1; }
.bell:hover { background: rgba(37,99,235,.08); }
.bell-badge {
  position: absolute; top: -2px; right: -4px; min-width: 17px; height: 17px;
  background: var(--err); color: #fff; border-radius: 999px; font-size: 10px;
  font-weight: 700; line-height: 17px; text-align: center; padding: 0 4px; font-family: var(--mono);
}
.notif-pop {
  position: fixed; top: 68px; right: max(24px, calc((100vw - var(--max)) / 2)); z-index: 55;
  width: min(360px, 92vw); max-height: 65vh; overflow: hidden; display: none;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15,23,42,.2); flex-direction: column;
}
.notif-pop.show { display: flex; }
.notif-h { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-weight: 800; font-size: 14px; border-bottom: 1px solid var(--line); }
.notif-list { overflow-y: auto; }
.notif-item { padding: 11px 16px; border-bottom: 1px solid #EEF2F7; cursor: pointer; transition: .12s; }
.notif-item:hover { background: var(--bg-2); }
.notif-item.unread { background: rgba(37,99,235,.05); }
.notif-item.unread .nt::before { content: "●"; color: var(--brand); font-size: 9px; margin-right: 6px; vertical-align: 2px; }
.notif-item .nt { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.notif-item .nb { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; line-height: 1.5; }
.notif-item .nd { font-size: 11px; color: #94A3B8; margin-top: 3px; }

/* ===== 文件上传 ===== */
.file-input { font-size: 13px; color: var(--ink-2); }
.file-input::file-selector-button {
  margin-right: 12px; border: 1.5px solid var(--brand); color: var(--brand-d);
  background: #fff; border-radius: 8px; padding: 7px 16px; font-size: 13px; cursor: pointer; font-family: inherit; transition: .15s;
}
.file-input::file-selector-button:hover { background: rgba(37,99,235,.06); }
.att-list { font-size: 13px; color: var(--ink-2); margin-top: 6px; }

/* ===== GEO 检测结果 ===== */
.geo-box {
  margin-top: 12px; border: 1px solid rgba(37,99,235,.25); border-radius: 14px;
  padding: 16px 20px; background: rgba(37,99,235,.04); animation: fadeUp .25s ease;
}
.geo-score {
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-family: var(--mono);
  font-size: 24px; font-weight: 800; box-shadow: 0 8px 20px rgba(37,99,235,.35);
}

/* GEO 逐行审查：默认单栏，检测后正文右侧对照面板；发布区加宽 */
.wrap:has(#pane-publish.on) { max-width: 1480px; }
.content-review-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: stretch; }
.content-review-grid.review-on { grid-template-columns: minmax(0, 1fr) minmax(320px, 40%); }
.cr-left { display: flex; flex-direction: column; min-width: 0; }
.cr-left textarea { flex: 1; }
.editor-bar { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.editor-bar button {
  border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 4px 12px;
  font-size: 12.5px; color: var(--ink-2); cursor: pointer; font-family: inherit; transition: .15s;
}
.editor-bar button:hover { border-color: var(--brand); color: var(--brand-d); background: rgba(37,99,235,.04); }
.editor-bar button[data-ed="clear"] { color: var(--err); }
.editor-bar button[data-ed="b"] { font-weight: 800; }
#ed-count { margin-left: auto; font-size: 12px; color: #94A3B8; font-family: var(--mono); }
.geo-fix {
  margin: -2px 0 8px 42px; padding: 6px 12px; font-size: 12px; line-height: 1.8;
  color: var(--ink-2); background: var(--bg-2); border: 1px dashed var(--line); border-radius: 8px;
  word-break: break-all;
}
.gf-label { color: var(--brand-d); font-weight: 700; margin-right: 8px; white-space: nowrap; }
.btn-link.rep { margin-left: 10px; color: var(--brand-d); font-weight: 700; white-space: nowrap; }
.btn-link.rep:disabled { color: var(--ok); cursor: default; }
.geo-lines-pane { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; display: flex; flex-direction: column; min-height: 0; }
.glp-tip { margin: auto; text-align: center; font-size: 12.5px; color: #94A3B8; line-height: 2; padding: 20px; }
.glp-head { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px 7px; border-bottom: 1px solid var(--line); background: var(--bg-2); flex-shrink: 0; }
.glp-head span { font-size: 11.5px; color: var(--ink-3); font-family: var(--mono); }
.geo-lines { flex: 1; min-height: 0; overflow-y: auto; }
@media (max-width: 1100px) {
  .content-review-grid.review-on { grid-template-columns: 1fr; }
  .geo-lines-pane { max-height: 320px; }
}

/* 逐行审查（类代码审查） */
.geo-line {
  display: flex; align-items: baseline; gap: 12px; padding: 7px 14px;
  font-size: 13px; border-left: 3px solid transparent; border-bottom: 1px solid #EEF2F7;
}
.geo-line:last-child { border-bottom: 0; }
.geo-line:hover { background: var(--bg-2); }
.geo-line.ok { border-left-color: var(--ok); background: rgba(22,163,74,.04); }
.geo-line.warn { border-left-color: var(--warn); background: rgba(217,119,6,.05); }
.geo-line.err { border-left-color: var(--err); background: rgba(220,38,38,.05); }
.geo-ln { flex-shrink: 0; width: 26px; color: #94A3B8; font-size: 11.5px; text-align: right; user-select: none; }
.geo-text { flex: 1; color: var(--ink-2); word-break: break-all; }
.geo-note { flex-shrink: 0; max-width: 46%; font-size: 12px; text-align: right; color: var(--ink-3); }
.geo-note.已到账 { color: var(--ok); }
.geo-note.待处理 { color: var(--warn); }
.geo-note.已退回 { color: var(--err); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media(max-width: 768px){
  .brand { font-size: 18px; }
  .brand .brand-tag { transform: translateY(-7px); font-size: 9px; padding: 2px 6px; }
  .who { display: none; }
  .modal-b { grid-template-columns: 1fr; }
  table { min-width: 760px; }
}
