/* ===================== 千渠 QianQu · 暗色仪表盘主题 ===================== */
:root {
  --bg-primary: #0f1117;
  --bg-secondary: #1a1d27;
  --bg-card: #1e2130;
  --bg-card-hover: #252839;
  --bg-input: #2a2d3a;
  --border: #2e3140;
  --border-light: #3a3d4f;
  --text-primary: #e8eaf0;
  --text-secondary: #8b8fa3;
  --text-muted: #5c5f73;
  --accent: #4f8cff;
  --accent-light: #7aa7ff;
  --green: #10b981;
  --red: #ef4444;
  --orange: #f59e0b;
  --radius: 12px;
  --radius-sm: 8px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
          'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-light); }

/* ---------- 应用框架：左侧导航 + 主内容 ---------- */
.app { display: flex; min-height: 100vh; }
.app-guest { display: block; }
.app-guest .main-area { width: 100%; max-width: none; }
.sidebar {
  width: 234px; flex-shrink: 0;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.sidebar .brand {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 20px; border-bottom: 1px solid var(--border);
}
.brand-logo {
  width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), #7c5cff);
  color: #fff; font-weight: 700; font-size: 16px;
}
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: .5px; }
.brand-name small { color: var(--text-muted); font-weight: 500; font-size: 12px; }
.sidenav {
  flex: 1; overflow-y: auto; padding: 12px;
  display: flex; flex-direction: column; gap: 3px;
}
.sidenav a {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 13.5px; font-weight: 500;
  transition: all .15s ease; white-space: nowrap;
}
.sidenav a:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.sidenav a.active { background: rgba(79,140,255,.14); color: var(--accent); font-weight: 600; }
.nav-divider { height: 1px; background: var(--border); margin: 8px 10px; }
.side-foot {
  padding: 14px 16px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
}
.side-user { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-primary); }
.side-username { font-weight: 600; }
.side-link {
  font-size: 12.5px; color: var(--text-secondary); text-decoration: none;
  padding: 7px 10px; border-radius: var(--radius-sm); transition: all .15s;
}
.side-link:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.side-link.logout { color: var(--red); }
.side-link.logout:hover { background: rgba(239,68,68,.12); }
.badge-admin {
  margin-left: 0; padding: 1px 7px; border-radius: 20px; font-style: normal;
  font-size: 11px; background: rgba(245,158,11,.16); color: var(--orange);
}
.main-area { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* ---------- 右侧二级导航条（领取情况/发布归档/接口文档） ---------- */
.sub-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  display: flex;
  align-items: center;
  height: 68px; /* 与左侧 .sidebar .brand 区域高度对齐（18+32+18=68） */
}
.sub-nav {
  display: flex;
  gap: 4px;
  height: 100%;
  align-items: center;
}
.sub-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  height: 38px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all .15s ease;
  white-space: nowrap;
}
.sub-nav a:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}
.sub-nav a.active {
  background: rgba(79,140,255,.12);
  color: var(--accent);
  font-weight: 600;
}

/* ---------- 容器 ---------- */
.container { max-width: 1440px; margin: 0 auto; width: 100%; padding: 26px 28px 60px; }

/* ---------- 页面标题 ---------- */
.page-head { margin-bottom: 22px; }
.page-head h1 { font-size: 22px; margin: 0 0 4px; }
.page-head p { color: var(--text-secondary); margin: 0; font-size: 13px; }
.gradient-text {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.card-title { font-size: 14px; font-weight: 600; margin: 0 0 16px; color: var(--text-primary); }
.card-grid { display: grid; gap: 18px; }

/* ---------- 统计卡片 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px; text-align: center;
}
.stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .6px; }
.stat-value { font-size: 26px; font-weight: 700; margin-top: 6px; }
.stat-value.green { color: var(--green); }
.stat-value.red { color: var(--red); }
.stat-value.orange { color: var(--orange); }
.stat-value.accent { color: var(--accent); }
.stat-sub { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  padding: 9px 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--font);
  transition: all .15s ease; text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #3d7bf0; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(79,140,255,.35); color:#fff; }
.btn-ghost { background: var(--bg-input); color: var(--text-primary); border-color: var(--border-light); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger { background: rgba(239,68,68,.14); color: var(--red); border-color: rgba(239,68,68,.3); }
.btn-danger:hover { background: rgba(239,68,68,.24); }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-block { width: 100%; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  text-align: left; padding: 12px 16px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .5px; font-size: 11px; font-weight: 600;
  background: var(--bg-secondary); border-bottom: 1px solid var(--border);
}
tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
tbody tr:hover { background: var(--bg-card-hover); }
tbody tr:last-child td { border-bottom: none; }

/* ---------- 徽标 / 标签 ---------- */
.badge { padding: 2px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.badge.green { background: rgba(16,185,129,.16); color: var(--green); }
.badge.red { background: rgba(239,68,68,.16); color: var(--red); }
.badge.orange { background: rgba(245,158,11,.16); color: var(--orange); }
.badge.gray { background: rgba(139,143,163,.16); color: var(--text-secondary); }
.badge.blue { background: rgba(79,140,255,.16); color: var(--accent); }

/* 文案 / 平台管理页辅助样式 */
.req { color: var(--red); }
.hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.hint a { color: var(--accent); }
.filter-bar { display: flex; gap: 10px; align-items: center; margin: 16px 0; flex-wrap: wrap; }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 18px; }
/* 用户授权：项目多选框列表 */
.check-list { display: flex; flex-direction: column; gap: 8px; max-height: 280px; overflow: auto;
  border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; background: var(--bg-input); }
.check-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-primary);
  cursor: pointer; }
.check-item input { width: 15px; height: 15px; accent-color: var(--accent); }
.color-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
td.actions { white-space: nowrap; }
td.actions form, td.actions a { margin-right: 6px; }

/* 分页控件 */
.pager { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 14px 16px; border-top: 1px solid var(--border); }
.pager-info { font-size: 12px; color: var(--text-muted); }
.pager-ctrl { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pg-btn { display: inline-flex; align-items: center; min-width: 32px; height: 32px; padding: 0 10px;
  justify-content: center; font-size: 12px; color: var(--text-secondary);
  background: var(--bg-input); border: 1px solid var(--border-light); border-radius: 8px;
  text-decoration: none; transition: all .15s; }
.pg-btn:hover:not(.disabled):not(.active) { color: var(--text-primary); border-color: var(--accent); }
.pg-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); cursor: default; }
.pg-btn.disabled { opacity: .4; pointer-events: none; cursor: not-allowed; }
.pg-ellipsis { color: var(--text-muted); padding: 0 2px; font-size: 12px; }

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600;
  background: var(--bg-input); border: 1px solid var(--border-light);
}

/* ---------- 表单 ---------- */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; }
.form-input {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm);
  background: var(--bg-input); border: 1px solid var(--border-light);
  color: var(--text-primary); font-size: 14px; font-family: var(--font);
}
.form-input:focus { outline: none; border-color: var(--accent); }

/* ---------- 认证卡片（居中） ---------- */
.auth-wrap { min-height: calc(100vh - 60px); display: grid; place-items: center; padding: 24px; }
.auth-card { width: 100%; max-width: 480px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.auth-card h2 { margin: 0 0 4px; font-size: 20px; }
.auth-card .sub { color: var(--text-secondary); font-size: 13px; margin: 0 0 24px; }
.auth-foot { margin-top: 18px; text-align: center; font-size: 13px; color: var(--text-secondary); }

/* ---------- 登录页：隐藏侧边栏，全屏居中 ---------- */
.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 24px;
}
.auth-page .auth-wrap {
  min-height: auto;
}

/* 登录页隐藏二级导航，全屏居中（访客侧栏不再由模板渲染） */
.login-page .app { display: block; }
.login-page .main-area { max-width: none; }
.login-page .main-area > .sub-header { display: none; }
.login-page .main-area > .container { max-width: none; padding: 0; }

/* ---------- 任务池卡片 ---------- */
.task-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.task-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 12px; transition: all .15s ease;
}
.task-card:hover { border-color: var(--border-light); transform: translateY(-2px); }
.task-card .tc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.task-card .tc-title { font-weight: 600; font-size: 15px; line-height: 1.4; }
.task-card .tc-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.task-card .tc-text { color: var(--text-secondary); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.task-card .tc-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
/* 领取按钮禁用态（点击后/已领取） */
.btn-claim:disabled { opacity: .45; cursor: not-allowed; background: var(--bg-input); color: var(--text-secondary); border-color: var(--border-light) }
.reward { font-size: 12px; color: var(--orange); }

/* ---------- 内容详情 ---------- */
.detail-media { margin: 18px 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #000; }
.detail-media img, .detail-media video { width: 100%; max-height: 460px; object-fit: contain; display: block; }

/* 多图网格（任务详情素材） */
.detail-media-grid { margin: 18px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.media-cell { position: relative; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-primary); }
.media-cell img { width: 100%; height: 150px; object-fit: cover; display: block; }
.media-cell .copy-btn-sm { position: absolute; right: 6px; bottom: 6px; }

/* 复制工具条 */
.copy-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 13px; font-size: 12.5px; border-radius: var(--radius-sm);
  background: var(--bg-input); color: var(--text-primary);
  border: 1px solid var(--border-light); cursor: pointer; transition: all .15s;
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.copy-btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.copy-btn-primary:hover { background: #3f7cf0; color: #fff; }
/* 已提交/已完成：操作按钮禁用态 */
.copy-btn.btn-disabled,
.copy-btn.btn-disabled:hover { opacity: .45; cursor: not-allowed; background: var(--bg-input); color: var(--text-secondary); border-color: var(--border-light); transform: none; box-shadow: none; }
.copy-btn-primary.btn-disabled,
.copy-btn-primary.btn-disabled:hover { background: var(--bg-input); color: var(--text-secondary); border-color: var(--border-light); }
.copy-btn-sm { padding: 4px 9px; font-size: 11px; background: rgba(15,17,23,.82); border-color: transparent; color: #fff; }
.copy-btn-sm:hover { background: var(--accent); color: #fff; }

/* Toast 复制反馈 */
.toast {
  position: fixed; left: 50%; bottom: 38px;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-card-hover); color: var(--text-primary);
  border: 1px solid var(--border-light); border-radius: 10px;
  padding: 10px 18px; font-size: 13px; z-index: 9999;
  box-shadow: 0 8px 28px rgba(0,0,0,.45); opacity: 0; pointer-events: none;
  transition: opacity .28s, transform .28s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 10px 16px; font-size: 13px; }
.kv dt { color: var(--text-muted); }
.kv dd { margin: 0; color: var(--text-primary); white-space: pre-wrap; }

/* ---------- 布局辅助 ---------- */
.row { display: flex; gap: 18px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mt { margin-top: 18px; }
.mt-lg { margin-top: 28px; }
.chart-box { position: relative; height: 300px; }
.chart-box.sm { height: 240px; }
.empty { text-align: center; color: var(--text-muted); padding: 48px 0; }

/* ---------- Flash ---------- */
.flash-wrap { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.flash { padding: 11px 16px; border-radius: var(--radius-sm); font-size: 13px; border: 1px solid transparent; }
.flash-success { background: rgba(16,185,129,.12); color: var(--green); border-color: rgba(16,185,129,.3); }
.flash-error { background: rgba(239,68,68,.12); color: var(--red); border-color: rgba(239,68,68,.3); }
.flash-info { background: rgba(79,140,255,.12); color: var(--accent); border-color: rgba(79,140,255,.3); }

/* ---------- 预览：九宫格 / 话题标签 ---------- */
.pv-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:0 12px 10px;}
.pv-cell{aspect-ratio:1/1;background:var(--bg-input);border-radius:6px;overflow:hidden;}
.pv-cell img{width:100%;height:100%;object-fit:cover;display:block;}
.pv-tags{display:flex;flex-wrap:wrap;gap:6px;padding:0 12px 10px;}
.pv-tag{background:rgba(79,140,255,.12);color:var(--accent);border:1px solid rgba(79,140,255,.3);
  border-radius:20px;padding:2px 10px;font-size:12px;}

/* ---------- 文案表单实时预览布局 ---------- */
.form-preview-layout { display:grid; grid-template-columns:minmax(0,1fr) 380px; gap:20px; align-items:start; margin-top:16px; }
.form-col { max-width:none; }
.preview-col { position:sticky; top:20px; padding:16px; }
.preview-col-head { font-size:13px; font-weight:600; color:var(--text-secondary); margin-bottom:12px; text-transform:uppercase; letter-spacing:.5px; }
.live-stage { min-height:200px; }
.live-stage .pv-card { max-width:100%; margin:0 auto; }
@media (max-width:1000px){ .form-preview-layout{ grid-template-columns:1fr; } .preview-col{ position:static; } }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .topnav { display: none; }
}

/* ===================== 平台效果预览弹窗 ===================== */
.pv-modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
.pv-modal.open { display: flex; }
.pv-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.62); backdrop-filter: blur(2px); }
.pv-dialog {
  position: relative; width: 100%; max-width: 920px; max-height: 92vh;
  display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius); box-shadow: 0 24px 80px rgba(0,0,0,.55);
}
.pv-dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.pv-dialog-head > span { font-weight: 600; }
.pv-close { background: none; border: none; color: var(--text-secondary); font-size: 22px; cursor: pointer; line-height: 1; }
.pv-close:hover { color: var(--text-primary); }
.pv-nav { display: flex; align-items: center; gap: 8px; }
.pv-nav-btn { background: var(--bg-input); border: 1px solid var(--border-light); color: var(--text-secondary); font-size: 12px; padding: 5px 12px; border-radius: 8px; cursor: pointer; transition: all .15s; }
.pv-nav-btn:hover:not(:disabled) { color: var(--text-primary); border-color: var(--accent); }
.pv-nav-btn:disabled { opacity: .4; cursor: not-allowed; }
.pv-pos { font-size: 12px; color: var(--text-muted); min-width: 46px; text-align: center; }
.pv-body { display: flex; gap: 20px; padding: 20px; overflow: auto; }
.pv-stage {
  flex: 0 0 auto; display: flex; align-items: flex-start; justify-content: center;
  min-width: 360px; background: var(--bg-primary);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 22px;
}
.pv-side { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 14px; }
.pv-meta { font-size: 13px; color: var(--text-secondary); line-height: 2; }
.pv-meta b { color: var(--text-primary); font-weight: 600; }
.pv-toggle { font-size: 12px; color: var(--text-secondary); display: flex; flex-direction: column; gap: 6px; }
.pv-toggle label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.pv-note { font-size: 12px; color: var(--text-muted); line-height: 1.6; border-top: 1px dashed var(--border); padding-top: 12px; }

/* 平台卡片基础（模拟各平台原生浅色 UI，所见即所得） */
.pv-card { width: 320px; background: #fff; color: #1a1a1a; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.35); font-size: 13px; line-height: 1.6; }
.pv-card * { box-sizing: border-box; }
.pv-brand { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 13px; }
.pv-brand-ic { font-size: 16px; }
.pv-brand b { font-weight: 700; }
.pv-cover { width: 100%; background: #e9ecf1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pv-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-cover-ph { padding: 40px 12px; color: #9aa0aa; font-size: 13px; text-align: center; }
.pv-title { font-weight: 700; font-size: 15px; line-height: 1.4; padding: 10px 12px 0; }
.pv-text { color: #444; padding: 6px 12px; white-space: pre-wrap; word-break: break-word; }
.pv-topics { color: #3a6ea5; padding: 0 12px 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.pv-topic { color: #3a6ea5; font-weight: 600; }
.pv-badge { display: inline-block; padding: 1px 8px; border-radius: 20px; font-size: 11px; font-weight: 700; margin-left: auto; }
.pv-badge.live { background: rgba(16,185,129,.16); color: #0a9b6e; }
.pv-badge.draft { background: rgba(139,143,163,.2); color: #6b7080; }

/* 小红书 */
.pv-xhs .pv-brand { color: #ff2442; }
.pv-xhs .pv-cover { aspect-ratio: 3 / 4; }
.pv-xhs .pv-xhs-foot { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px 12px; color: #999; font-size: 12px; border-top: 1px solid #f0f0f0; margin-top: 6px; }
.pv-xhs .pv-author { color: #333; }

/* 抖音 */
.pv-douyin { background: #000; color: #fff; }
.pv-douyin .pv-cover { aspect-ratio: 9 / 16; position: relative; background: #111; }
.pv-douyin .pv-cover img { height: 100%; }
.pv-douyin .pv-dy-side { position: absolute; right: 10px; bottom: 64px; display: flex; flex-direction: column; gap: 16px; font-size: 18px; text-align: center; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.pv-douyin .pv-title { color: #fff; padding-top: 10px; }
.pv-douyin .pv-text { color: #ddd; }
.pv-douyin .pv-topics { color: #fe2c55; }
.pv-douyin .pv-topic { color: #ff5c8a; }

/* 淘宝闪购 */
.pv-taobao .pv-brand { color: #ff5000; }
.pv-taobao .pv-tb-flash { background: #ff5000; color: #fff; border-radius: 4px; font-size: 11px; padding: 1px 6px; font-weight: 700; }
.pv-taobao .pv-cover { aspect-ratio: 1 / 1; }
.pv-taobao .pv-tb-price { color: #ff5000; font-weight: 800; font-size: 18px; padding: 4px 12px 0; }
.pv-taobao .pv-tb-buy { display: block; width: calc(100% - 24px); margin: 10px 12px 14px; padding: 10px; border: none; border-radius: 20px; background: linear-gradient(90deg,#ff9000,#ff5000); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }

/* 大众点评 */
.pv-dianping .pv-brand { color: #ff6633; }
.pv-dianping .pv-cover { aspect-ratio: 16 / 9; }
.pv-dianping .pv-dp-rate { color: #ff6633; padding: 6px 12px 0; font-size: 13px; }
.pv-dianping .pv-dp-rate span { color: #ffb000; font-weight: 700; }

/* 携程 */
.pv-ctrip .pv-brand { color: #0086f6; }
.pv-ctrip .pv-ct-tag { background: #e6f1ff; color: #0086f6; border-radius: 4px; font-size: 11px; padding: 1px 6px; font-weight: 700; }
.pv-ctrip .pv-cover { aspect-ratio: 16 / 9; }
.pv-ctrip .pv-ct-author { color: #0086f6; padding: 0 12px 12px; font-size: 12px; }

/* 通用（未匹配到具体平台） */
.pv-generic { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border-light); }
.pv-generic .pv-brand { color: var(--accent); }
.pv-generic .pv-text { color: var(--text-secondary); }
.pv-generic .pv-cover { background: var(--bg-input); }
.pv-generic .pv-topics, .pv-generic .pv-topic { color: var(--accent-light); }

@media (max-width: 760px) {
  .pv-body { flex-direction: column; }
  .pv-stage { min-width: 0; width: 100%; }
  .pv-card { width: 100%; max-width: 360px; margin: 0 auto; }
}

/* ---------- 归档筛选栏 ---------- */
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-bar select {
  min-width: 140px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  transition: all .18s ease;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238b8fa3' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}
.filter-bar select:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(79,140,255,.12);
}
.filter-bar select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,140,255,.18);
}
.filter-bar select option {
  background: var(--bg-card);
  color: var(--text-primary);
}
.filter-bar .btn-filter {
  padding: 9px 22px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.filter-bar .btn-filter.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
}
.filter-bar .btn-filter.btn-primary:hover {
  background: #3d7bf0;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(79,140,255,.35);
}
.filter-bar .btn-filter.btn-ghost {
  background: var(--bg-input);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}
.filter-bar .btn-filter.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
/* 筛选结果计数 */
.filter-result-count {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
  padding: 6px 0;
}
/* 归档操作列 */
.archive-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.archive-actions .btn-confirm {
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  background: rgba(16,185,129,.12);
  color: var(--green);
  border: 1px solid rgba(16,185,129,.28);
  cursor: pointer;
  transition: all .15s ease;
}
.archive-actions .btn-confirm:hover {
  background: rgba(16,185,129,.22);
  border-color: rgba(16,185,129,.45);
  transform: translateY(-1px);
}
.archive-actions .btn-confirm:disabled {
  opacity: .4;
  cursor: not-allowed;
  transform: none;
}
