/* 叙光AI工具大全 - 共用样式 */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --xg-ink: #172033;
  --xg-muted: #657084;
  --xg-bg: #f4f1ea;
  --xg-panel: rgba(255,255,255,.86);
  --xg-line: rgba(30,41,59,.12);
  --xg-primary: #285f74;
  --xg-primary-strong: #173b4d;
  --xg-accent: #d59d54;
  --xg-accent-soft: #fff3df;
  --xg-blue-soft: #e8f2f4;
  --xg-shadow: 0 18px 45px rgba(39, 50, 67, .08);
}
body {
  font-family: -apple-system, "Microsoft YaHei", "PingFang SC", sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(213,157,84,.18), transparent 30%),
    linear-gradient(180deg, #f8f5ef 0%, #f1f5f6 100%);
  color: var(--xg-ink);
}

/* 顶栏 */
.topbar {
  background: rgba(255,255,255,.78);
  color: var(--xg-ink);
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 0 rgba(15,23,42,.08);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar h1 { font-size: 18px; font-weight: 700; letter-spacing: .2px; }
.topbar .right { font-size: 13px; display: flex; align-items: center; gap: 14px; }
.topbar .quota-pill { background: var(--xg-blue-soft); color: var(--xg-primary-strong); padding: 5px 12px; border-radius: 999px; font-size: 12px; }
.topbar button { background: var(--xg-primary); color: white; border: none; padding: 7px 14px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.topbar button:hover { background: var(--xg-primary-strong); }

/* 主体布局 */
.layout { display: flex; min-height: calc(100vh - 58px); }
.sidebar {
  width: 236px;
  background: rgba(255,255,255,.72);
  border-right: 1px solid var(--xg-line);
  padding: 18px 10px;
  flex-shrink: 0;
  backdrop-filter: blur(16px);
}
.sidebar .cat { font-size: 11px; color: #8a7355; padding: 14px 12px 7px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.sidebar .tool-item {
  display: flex;
  align-items: center;
  padding: 11px 12px;
  cursor: pointer;
  font-size: 14px;
  color: #314155;
  border-left: 3px solid transparent;
  border-radius: 10px;
  transition: all 0.15s;
}
.sidebar .tool-item:hover { background: rgba(40,95,116,.08); }
.sidebar .tool-item.active { background: linear-gradient(135deg, rgba(40,95,116,.13), rgba(213,157,84,.16)); color: var(--xg-primary-strong); border-left-color: var(--xg-accent); font-weight: 700; }
.sidebar .tool-item .icon { font-size: 18px; margin-right: 10px; }
.sidebar .tool-item.locked { color: #9ca3af; }
.sidebar .tool-item.locked .icon { filter: grayscale(1); opacity: 0.6; }
.sidebar .tool-item .lock-badge { margin-left: auto; font-size: 12px; }
.content { flex: 1; padding: 28px; overflow-x: hidden; }

/* 卡片/通用 */
.card { background: var(--xg-panel); border: 1px solid var(--xg-line); border-radius: 14px; padding: 22px; box-shadow: var(--xg-shadow); margin-bottom: 18px; }
.card h2 { font-size: 16px; margin-bottom: 14px; color: var(--xg-primary); }
.tool-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; padding: 8px 4px; }
.tool-header .info { flex: 1; }
.tool-header h1 { font-size: 24px; color: var(--xg-ink); margin-bottom: 5px; }
.tool-header .desc { font-size: 13px; color: var(--xg-muted); }
.tool-header .quota-info { background: var(--xg-accent-soft); color: #9a5e17; padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }

textarea, input[type=text], input[type=password] { width: 100%; padding: 11px 13px; border: 1px solid rgba(30,41,59,.16); border-radius: 9px; font-size: 14px; font-family: inherit; background: rgba(255,255,255,.86); color: var(--xg-ink); }
textarea:focus, input[type=text]:focus, input[type=password]:focus { outline: none; border-color: var(--xg-primary); box-shadow: 0 0 0 3px rgba(40,95,116,.12); }
textarea { min-height: 110px; resize: vertical; }
button.primary { background: linear-gradient(135deg, var(--xg-primary), var(--xg-primary-strong)); color: white; border: none; padding: 10px 22px; border-radius: 9px; cursor: pointer; font-size: 14px; transition: background 0.2s, transform .15s; }
button.primary:hover { transform: translateY(-1px); }
button.primary:disabled { background: #9ca3af; cursor: not-allowed; }
button.secondary { background: var(--xg-blue-soft); color: var(--xg-primary-strong); border: none; padding: 10px 22px; border-radius: 9px; cursor: pointer; font-size: 14px; }
button.secondary:hover { background: #d9ebef; }
button.purple { background: var(--xg-accent); color: #fff; border: none; padding: 10px 22px; border-radius: 9px; cursor: pointer; font-size: 14px; }
button.purple:hover { background: #bf8439; }

.upload-zone { border: 2px dashed #c7d2fe; border-radius: 8px; padding: 30px; text-align: center; cursor: pointer; transition: all 0.2s; }
.upload-zone:hover { background: #eef2ff; }
.upload-zone.drag { background: #e0e7ff; border-color: #4f46e5; }
.file-list { margin-top: 12px; max-height: 180px; overflow-y: auto; }
.file-item { padding: 6px 10px; background: #f3f4f6; border-radius: 4px; margin-bottom: 4px; font-size: 13px; display: flex; justify-content: space-between; }
.file-item .remove { color: #ef4444; cursor: pointer; }

table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13px; }
th, td { padding: 10px 8px; text-align: left; border-bottom: 1px solid #e5e7eb; }
th { background: #f9fafb; font-weight: 600; color: #6b7280; }

.score { font-weight: bold; padding: 2px 8px; border-radius: 4px; display: inline-block; min-width: 32px; text-align: center; }
.score-high { background: #d1fae5; color: #065f46; }
.score-mid { background: #fef3c7; color: #92400e; }
.score-low { background: #fee2e2; color: #991b1b; }
.tag { display: inline-block; background: #fee2e2; color: #991b1b; padding: 2px 8px; border-radius: 10px; font-size: 11px; margin-right: 4px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; margin-left: 6px; }
.pill-rec-strong { background: #d1fae5; color: #065f46; }
.pill-rec-yes { background: #dbeafe; color: #1e40af; }
.pill-rec-maybe { background: #fef3c7; color: #92400e; }
.pill-rec-no { background: #fee2e2; color: #991b1b; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; background: #dbeafe; color: #1e40af; }
.hidden { display: none !important; }
.err { color: #dc2626; font-size: 13px; margin-top: 8px; }
.progress { background: #e5e7eb; height: 6px; border-radius: 3px; overflow: hidden; margin-top: 8px; }
.progress-bar { background: var(--xg-primary); height: 100%; transition: width 0.3s; }
.footer-tip { font-size: 12px; color: #6b7280; margin-top: 6px; }

/* 登录页 */
#loginView {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(14,31,43,.72), rgba(14,31,43,.24) 47%, rgba(255,255,255,.18)),
    url("assets/login-bg-v2.png") center / cover no-repeat;
  display: grid;
  place-items: center;
  padding: 42px;
}
.login-page {
  width: min(1120px, 100%);
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 420px;
  align-items: stretch;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(3, 10, 20, .28);
  backdrop-filter: blur(12px);
}
.login-brand {
  color: #fff;
  padding: 70px 64px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, rgba(15,23,42,.06), rgba(15,23,42,.42));
}
.brand-kicker { font-size: 12px; letter-spacing: 2.2px; color: #f4d39c; font-weight: 800; margin-bottom: 16px; }
.login-brand h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: .5px; margin-bottom: 18px; }
.login-brand p { max-width: 560px; font-size: 17px; line-height: 1.8; color: rgba(255,255,255,.86); }
.brand-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.brand-points span { padding: 8px 13px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(255,255,255,.12); font-size: 13px; }
.login-card {
  background: rgba(255,255,255,.88);
  padding: 54px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid rgba(255,255,255,.34);
}
.login-card-head { margin-bottom: 24px; }
.login-card h2 { font-size: 28px; color: var(--xg-ink); margin-bottom: 8px; }
.login-page .sub { color: var(--xg-muted); font-size: 13px; }
.login-page input { margin-bottom: 12px; height: 46px; }
.login-page button { width: 100%; height: 46px; margin-top: 4px; }

/* 锁定弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; z-index: 200; }
.modal { background: white; border-radius: 12px; padding: 30px; max-width: 400px; text-align: center; }
.modal .icon { font-size: 48px; margin-bottom: 12px; }
.modal h3 { color: #4f46e5; margin-bottom: 8px; }
.modal p { color: #6b7280; font-size: 14px; line-height: 1.7; margin-bottom: 18px; }
.modal .actions { display: flex; gap: 10px; justify-content: center; }

/* 简历筛选详情面板 */
.detail-row { background: #fafbff; }
.detail-box { padding: 16px 20px; border-left: 3px solid #4f46e5; margin: 8px 0; }
.detail-box h3 { font-size: 14px; color: #4f46e5; margin-bottom: 10px; }
.dim-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0 14px; }
.dim-card { background: white; border: 1px solid #e5e7eb; border-radius: 6px; padding: 10px 12px; }
.dim-name { font-size: 12px; color: #6b7280; margin-bottom: 4px; display: flex; justify-content: space-between; }
.dim-bar { background: #e5e7eb; height: 6px; border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.dim-bar-fill { height: 100%; background: linear-gradient(90deg, #4f46e5, #7c3aed); transition: width 0.4s; }
.dim-comment { font-size: 12px; color: #4b5563; line-height: 1.5; }
.dim-score { font-weight: 600; color: #1f2937; }
.deep-section { background: white; border-radius: 6px; padding: 12px 14px; margin-bottom: 10px; border: 1px solid #e5e7eb; }
.deep-section .label { font-size: 12px; color: #6b7280; font-weight: 600; margin-bottom: 6px; }
.deep-section .content { font-size: 13px; line-height: 1.7; color: #1f2937; }
.salary-box { display: inline-block; background: linear-gradient(135deg, #fef3c7, #fde68a); padding: 6px 14px; border-radius: 6px; font-weight: 600; color: #92400e; margin-right: 12px; }
.iq-list { display: grid; gap: 8px; }
.iq-item { background: white; border-left: 3px solid #7c3aed; padding: 8px 12px; border-radius: 4px; }
.iq-cat { font-size: 11px; color: #7c3aed; font-weight: 600; margin-bottom: 4px; }
.iq-q { font-size: 13px; color: #1f2937; line-height: 1.6; }
.toggle-btn { background: #eef2ff; color: #4f46e5; border: none; padding: 4px 12px; border-radius: 4px; font-size: 12px; cursor: pointer; }
.toggle-btn:hover { background: #e0e7ff; }
.hl-list { list-style: none; padding: 0; }
.hl-list li { padding: 4px 0 4px 20px; position: relative; font-size: 13px; line-height: 1.6; }
.hl-list.good li::before { content: "✓"; position: absolute; left: 0; color: #10b981; font-weight: bold; }
.hl-list.bad li::before { content: "!"; position: absolute; left: 0; color: #ef4444; font-weight: bold; }
.decision-box { background: linear-gradient(135deg, #4f46e5, #7c3aed); color: white; padding: 14px 18px; border-radius: 8px; }
.decision-box .label { color: #c7d2fe; font-size: 12px; margin-bottom: 6px; }
.decision-box .content { font-size: 14px; line-height: 1.7; }

/* 简历优化样式 */
.opt-hero { background: linear-gradient(135deg, #4f46e5, #7c3aed); color: white; padding: 24px 28px; border-radius: 12px; margin-bottom: 18px; }
.opt-hero .row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.opt-hero .score-block { text-align: center; }
.opt-hero .score-num { font-size: 48px; font-weight: 800; line-height: 1; }
.opt-hero .score-label { font-size: 12px; opacity: 0.9; margin-top: 4px; }
.opt-hero .verdict { display: inline-block; background: rgba(255,255,255,0.2); padding: 5px 14px; border-radius: 14px; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.opt-hero .diag { font-size: 17px; line-height: 1.5; margin-bottom: 6px; font-weight: 600; }
.opt-hero .pass { font-size: 13px; opacity: 0.95; }
.opt-hero .pass strong { font-size: 18px; margin-left: 6px; }

.kw-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.kw-good { background: #d1fae5; color: #065f46; padding: 3px 10px; border-radius: 10px; font-size: 12px; }
.kw-miss { background: #fee2e2; color: #991b1b; padding: 3px 10px; border-radius: 10px; font-size: 12px; }

.rewrite-card { background: white; border: 1px solid #e5e7eb; border-radius: 8px; padding: 14px 16px; margin-bottom: 10px; }
.rewrite-card .section { font-size: 12px; color: #7c3aed; font-weight: 600; margin-bottom: 6px; }
.rewrite-card .original { background: #fef2f2; border-left: 3px solid #ef4444; padding: 6px 10px; font-size: 13px; color: #7f1d1d; margin-bottom: 6px; border-radius: 0 4px 4px 0; }
.rewrite-card .issue { font-size: 12px; color: #991b1b; margin-bottom: 8px; }
.rewrite-card .suggested { background: #f0fdf4; border-left: 3px solid #10b981; padding: 8px 12px; font-size: 13px; color: #065f46; margin-bottom: 6px; border-radius: 0 4px 4px 0; line-height: 1.6; }
.rewrite-card .tip { font-size: 11px; color: #6b7280; }

.rewritten-summary { background: linear-gradient(135deg, #ecfdf5, #d1fae5); padding: 14px 18px; border-radius: 8px; font-size: 14px; line-height: 1.8; color: #065f46; border-left: 4px solid #10b981; }
.rewritten-exp { background: #f9fafb; border-radius: 8px; padding: 14px 16px; margin-bottom: 10px; }
.rewritten-exp .role { font-weight: 600; color: #4f46e5; margin-bottom: 8px; }
.rewritten-exp ul { padding-left: 20px; }
.rewritten-exp li { font-size: 13px; line-height: 1.7; color: #1f2937; margin-bottom: 4px; }

.iq-pred { background: #faf5ff; border-left: 3px solid #7c3aed; padding: 12px 14px; border-radius: 0 6px 6px 0; margin-bottom: 8px; }
.iq-pred .cat { font-size: 11px; color: #7c3aed; font-weight: 600; margin-bottom: 4px; }
.iq-pred .q { font-size: 13.5px; color: #1f2937; font-weight: 600; line-height: 1.6; margin-bottom: 6px; }
.iq-pred .trap { font-size: 12px; color: #991b1b; margin-bottom: 6px; }
.iq-pred .ans { font-size: 12.5px; color: #4b5563; line-height: 1.7; background: white; padding: 8px 10px; border-radius: 4px; }

.action-list { list-style: none; padding: 0; counter-reset: action; }
.action-list li { counter-increment: action; padding: 10px 12px 10px 40px; background: white; border: 1px solid #e5e7eb; border-radius: 6px; margin-bottom: 6px; font-size: 13.5px; line-height: 1.6; position: relative; }
.action-list li::before { content: counter(action); position: absolute; left: 12px; top: 10px; background: #4f46e5; color: white; width: 20px; height: 20px; border-radius: 50%; text-align: center; font-size: 12px; font-weight: 700; line-height: 20px; }

.encourage { background: linear-gradient(135deg, #fef3c7, #fde68a); padding: 14px 18px; border-radius: 8px; font-size: 13.5px; line-height: 1.8; color: #92400e; border-left: 4px solid #f59e0b; }

@media (max-width: 768px) { .dim-grid { grid-template-columns: repeat(2, 1fr); } .sidebar { width: 60px; } .sidebar .tool-item .name { display: none; } .sidebar .cat { display: none; } }


/* ============== 小红书工具样式 ============== */
.xhs-style-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.xhs-style-card { border: 2px solid #e5e7eb; border-radius: 8px; padding: 12px 14px; cursor: pointer; transition: all 0.15s; background: white; }
.xhs-style-card:hover { border-color: #fda4af; background: #fff1f2; }
.xhs-style-card.active { border-color: #e11d48; background: #fff1f2; box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1); }
.xhs-style-card .name { font-size: 15px; font-weight: 600; color: #1f2937; margin-bottom: 4px; }
.xhs-style-card.active .name { color: #e11d48; }
.xhs-style-card .desc { font-size: 12px; color: #6b7280; line-height: 1.5; }

/* Hero */
.xhs-hero { background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%); border-radius: 12px; padding: 22px 24px; margin-bottom: 18px; border: 1px solid #fecdd3; }
.xhs-hero .row { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.xhs-hero .hero-main { flex: 1; }
.xhs-hero .hero-summary { font-size: 16px; font-weight: 600; color: #881337; margin-bottom: 12px; line-height: 1.5; }
.xhs-hero .hero-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.xhs-hero .meta-item { background: rgba(255,255,255,0.7); padding: 5px 12px; border-radius: 12px; font-size: 12.5px; color: #4b5563; }
.xhs-hero .meta-item strong { color: #e11d48; }
.xhs-hero .hero-style { background: #e11d48; color: white; padding: 12px 18px; border-radius: 8px; text-align: center; flex-shrink: 0; }
.xhs-hero .hero-style .style-label { font-size: 11px; opacity: 0.85; }
.xhs-hero .hero-style .style-name { font-size: 18px; font-weight: 700; margin-top: 2px; }

/* 标题候选 */
.xhs-titles-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.xhs-title-card { background: #fafafa; border: 1px solid #e5e7eb; border-radius: 8px; padding: 14px 16px; display: flex; align-items: center; gap: 14px; transition: all 0.15s; }
.xhs-title-card:hover { background: #fff1f2; border-color: #fda4af; }
.xhs-title-card .num { background: #e11d48; color: white; width: 28px; height: 28px; border-radius: 50%; text-align: center; line-height: 28px; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.xhs-title-card .title-text { flex: 1; font-size: 15px; font-weight: 600; color: #1f2937; line-height: 1.5; }
.xhs-title-card .hook-type { font-size: 11px; color: #9ca3af; padding: 2px 8px; background: #f3f4f6; border-radius: 10px; flex-shrink: 0; }
.xhs-copy-btn { background: #e11d48; color: white; border: none; padding: 6px 14px; border-radius: 6px; cursor: pointer; font-size: 12px; flex-shrink: 0; transition: background 0.15s; }
.xhs-copy-btn:hover { background: #be123c; }
.xhs-copy-btn.small { padding: 4px 10px; font-size: 11px; }
.xhs-copy-btn.copied { background: #10b981; }

/* 正文 */
.xhs-body { background: #fafafa; border-left: 3px solid #e11d48; padding: 16px 18px; font-size: 14px; line-height: 1.85; color: #1f2937; white-space: pre-wrap; word-wrap: break-word; font-family: inherit; max-height: 500px; overflow-y: auto; border-radius: 0 6px 6px 0; }

/* 结构拆解 */
.xhs-struct-list { background: #f9fafb; border-radius: 6px; padding: 10px; }
.xhs-struct-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid #e5e7eb; }
.xhs-struct-item:last-child { border-bottom: none; }
.xhs-struct-item .num { background: #e11d48; color: white; width: 22px; height: 22px; border-radius: 50%; text-align: center; line-height: 22px; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.xhs-struct-item .section { font-size: 13px; font-weight: 600; color: #1f2937; }
.xhs-struct-item .purpose { font-size: 12px; color: #6b7280; margin-top: 2px; }

/* 标签 */
.xhs-tags-row { display: flex; flex-wrap: wrap; gap: 6px; }
.xhs-tag { display: inline-block; background: #fff1f2; color: #e11d48; padding: 4px 12px; border-radius: 14px; font-size: 12.5px; cursor: pointer; transition: all 0.15s; border: 1px solid #fecdd3; }
.xhs-tag:hover { background: #e11d48; color: white; }
.xhs-tag-strategy { background: #f9fafb; padding: 12px; border-radius: 6px; font-size: 12.5px; color: #4b5563; }
.xhs-tag-strategy strong { color: #e11d48; margin-right: 4px; }

/* 配图 */
.xhs-covers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.xhs-cover-card { background: linear-gradient(180deg, #fff1f2 0%, white 30%); border: 1px solid #fecdd3; border-radius: 8px; padding: 14px; }
.xhs-cover-card .cover-type { display: inline-block; background: #e11d48; color: white; padding: 3px 12px; border-radius: 10px; font-size: 11px; font-weight: 600; margin-bottom: 10px; }
.xhs-cover-card > div + div { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #fecdd3; }
.xhs-cover-card .cover-scene, .xhs-cover-card .cover-text, .xhs-cover-card .cover-tip { font-size: 12.5px; color: #4b5563; line-height: 1.6; }
.xhs-cover-card strong { color: #881337; font-size: 11.5px; }

/* 评论回复 */
.xhs-replies-grid { display: grid; gap: 10px; }
.xhs-reply-card { background: #fafafa; border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px 14px; position: relative; }
.xhs-reply-card .scenario { font-size: 13px; font-weight: 600; color: #4f46e5; margin-bottom: 6px; }
.xhs-reply-card .reply { font-size: 13px; color: #1f2937; line-height: 1.6; padding-right: 60px; }
.xhs-reply-card .xhs-copy-btn { position: absolute; top: 12px; right: 12px; }

/* 列表通用 */
.xhs-list { padding-left: 22px; font-size: 13.5px; color: #1f2937; line-height: 1.8; }
.xhs-list li { margin-bottom: 4px; }
.xhs-list.checklist { list-style: none; padding: 0; counter-reset: chk; }
.xhs-list.checklist li { counter-increment: chk; padding: 8px 12px 8px 36px; background: #fafafa; border: 1px solid #e5e7eb; border-radius: 6px; margin-bottom: 6px; position: relative; }
.xhs-list.checklist li::before { content: counter(chk); position: absolute; left: 10px; top: 8px; background: #10b981; color: white; width: 20px; height: 20px; border-radius: 50%; text-align: center; font-size: 12px; font-weight: 700; line-height: 20px; }

/* 风险卡片 */
.xhs-risks-card { background: #fffbeb !important; border: 1px solid #fde68a; }
.xhs-risks-card h2 { color: #b45309 !important; }


/* ============== 朋友圈文案工具样式 ============== */
.mc-scene-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.mc-scene-card { border: 2px solid #e5e7eb; border-radius: 8px; padding: 10px 12px; cursor: pointer; transition: all 0.15s; background: white; }
.mc-scene-card:hover { border-color: #5eead4; background: #f0fdfa; }
.mc-scene-card.active { border-color: #14b8a6; background: #ccfbf1; box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15); }
.mc-scene-card .name { font-size: 14px; font-weight: 600; color: #1f2937; margin-bottom: 2px; }
.mc-scene-card.active .name { color: #0f766e; }
.mc-scene-card .desc { font-size: 11.5px; color: #6b7280; }

.mc-tone-row { display: flex; flex-wrap: wrap; gap: 8px; }
.mc-tone-pill { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1.5px solid #e5e7eb; border-radius: 999px; cursor: pointer; transition: all 0.15s; background: white; }
.mc-tone-pill:hover { border-color: #14b8a6; }
.mc-tone-pill.active { border-color: #14b8a6; background: #ccfbf1; }
.mc-tone-pill .pill-name { font-size: 13px; font-weight: 600; color: #1f2937; }
.mc-tone-pill.active .pill-name { color: #0f766e; }
.mc-tone-pill .pill-desc { font-size: 11.5px; color: #9ca3af; }

/* Hero */
.mc-hero { background: linear-gradient(135deg, #ecfeff 0%, #ccfbf1 100%); border-radius: 12px; padding: 22px 24px; margin-bottom: 18px; border: 1px solid #99f6e4; }
.mc-hero .row { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.mc-hero .hero-main { flex: 1; }
.mc-hero .hero-summary { font-size: 16px; font-weight: 600; color: #134e4a; margin-bottom: 12px; line-height: 1.5; }
.mc-hero .hero-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.mc-hero .meta-pill { background: rgba(255,255,255,0.8); padding: 5px 12px; border-radius: 12px; font-size: 12px; color: #115e59; }
.mc-hero .hero-count { background: #14b8a6; color: white; padding: 14px 20px; border-radius: 10px; text-align: center; flex-shrink: 0; }
.mc-hero .cnt-num { font-size: 30px; font-weight: 700; line-height: 1; }
.mc-hero .cnt-label { font-size: 11px; opacity: 0.9; margin-top: 2px; }

/* 6 条文案卡片 */
.mc-posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; }
.mc-post-card { background: white; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; transition: all 0.2s; display: flex; flex-direction: column; }
.mc-post-card:hover { box-shadow: 0 4px 12px rgba(20, 184, 166, 0.15); transform: translateY(-2px); }
.mc-post-head { padding: 10px 14px; background: #f9fafb; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.mc-post-badge { color: white; padding: 3px 10px; border-radius: 10px; font-size: 11.5px; font-weight: 600; }
.mc-post-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; color: #6b7280; }
.mc-post-meta span { background: white; padding: 2px 8px; border-radius: 8px; border: 1px solid #e5e7eb; }
.mc-post-meta .mc-warn { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.mc-post-body { padding: 14px 16px; flex: 1; background: linear-gradient(180deg, #fafafa 0%, white 100%); }
.mc-post-content { font-size: 14px; line-height: 1.75; color: #1f2937; white-space: pre-wrap; word-wrap: break-word; font-family: inherit; margin: 0; }
.mc-post-foot { padding: 10px 14px 12px; border-top: 1px solid #f3f4f6; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.mc-post-tip { flex: 1; font-size: 11.5px; color: #6b7280; line-height: 1.6; }
.mc-post-tip strong { color: #0f766e; font-weight: 600; }
.mc-copy-btn { background: #14b8a6; color: white; border: none; padding: 8px 14px; border-radius: 6px; cursor: pointer; font-size: 12.5px; font-weight: 600; flex-shrink: 0; transition: background 0.15s; }
.mc-copy-btn:hover { background: #0d9488; }
.mc-copy-btn.copied { background: #10b981; }

/* 私聊回复 */
.mc-replies-grid { display: grid; gap: 10px; }
.mc-reply-card { background: #fafafa; border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px 14px; position: relative; }
.mc-reply-card .trigger { font-size: 13px; font-weight: 600; color: #14b8a6; margin-bottom: 6px; }
.mc-reply-card .reply { font-size: 13px; color: #1f2937; line-height: 1.6; padding-right: 60px; white-space: pre-wrap; }
.mc-copy-mini { position: absolute; top: 12px; right: 12px; background: #14b8a6; color: white; border: none; padding: 4px 10px; border-radius: 6px; cursor: pointer; font-size: 11px; }
.mc-copy-mini:hover { background: #0d9488; }
.mc-copy-mini.copied { background: #10b981; }

/* 一天节奏 */
.mc-rhythm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.mc-rhythm-card { background: white; border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; }
.mc-rhythm-card .rhythm-time { background: #14b8a6; color: white; padding: 6px 10px; border-radius: 6px; font-size: 11.5px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.mc-rhythm-card .rhythm-info { flex: 1; }
.mc-rhythm-card .rhythm-type { font-size: 13px; font-weight: 600; color: #1f2937; }
.mc-rhythm-card .rhythm-purpose { font-size: 12px; color: #6b7280; margin-top: 2px; line-height: 1.5; }
.mc-rhythm-card .rhythm-freq { font-size: 11px; color: #14b8a6; margin-top: 4px; }

/* 避雷词 */
.mc-risk-card { background: #fef2f2 !important; border: 1px solid #fecaca; }
.mc-risk-card h2 { color: #dc2626 !important; }
.mc-risky-grid { display: grid; gap: 6px; }
.mc-risky-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: white; border-radius: 6px; font-size: 13px; flex-wrap: wrap; }
.risky-bad { background: #fee2e2; color: #991b1b; padding: 3px 10px; border-radius: 6px; font-weight: 600; text-decoration: line-through; }
.risky-arrow { color: #6b7280; font-weight: 600; }
.risky-good { background: #d1fae5; color: #065f46; padding: 3px 10px; border-radius: 6px; font-weight: 600; }
.risky-reason { font-size: 12px; color: #6b7280; flex: 1; min-width: 140px; }

/* 列表 */
.mc-list { padding-left: 22px; font-size: 13.5px; color: #1f2937; line-height: 1.8; }
.mc-list li { margin-bottom: 4px; }

/* ==================== 简历表格生成（resume_extract） ==================== */

.re-header h1 { color: #4f46e5; }

/* 步骤卡 */
.re-step { padding: 18px 22px; }
.re-step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.re-step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white; font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(79,70,229,.3);
  flex-shrink: 0;
}
.re-step-sub { font-size: 12.5px; color: #6b7280; margin-top: 3px; }
.re-handle-hint { color: #4f46e5; font-weight: 700; }

/* 模板卡片网格 */
.re-tpl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.re-tpl-card {
  background: white; border: 2px solid #e5e7eb; border-radius: 12px;
  padding: 16px 14px; cursor: pointer; transition: all .18s ease;
  text-align: center; position: relative;
}
.re-tpl-card:hover {
  border-color: #a5b4fc;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(79,70,229,.15);
}
.re-tpl-card.active {
  border-color: #4f46e5;
  background: linear-gradient(135deg, #eef2ff, #ffffff);
  box-shadow: 0 4px 14px rgba(79,70,229,.2);
}
.re-tpl-card.active::after {
  content: "✓"; position: absolute; top: 8px; right: 10px;
  width: 22px; height: 22px; background: #4f46e5; color: white;
  border-radius: 50%; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.re-tpl-icon { font-size: 32px; line-height: 1; margin-bottom: 8px; }
.re-tpl-name { font-weight: 700; color: #1f2937; font-size: 14px; }
.re-tpl-desc { font-size: 12px; color: #6b7280; margin-top: 4px; min-height: 32px; }
.re-tpl-cnt {
  display: inline-block; margin-top: 8px;
  padding: 2px 10px; background: #f3f4f6;
  border-radius: 10px; font-size: 11px; color: #4b5563;
}
.re-tpl-blank { background: #fafafa; border-style: dashed; }
.re-tpl-loading, .re-tpl-error { grid-column: 1 / -1; color: #9ca3af; padding: 20px; text-align: center; }

/* 字段数量徽章 */
.re-field-count {
  padding: 4px 12px; background: #eef2ff; color: #4f46e5;
  border-radius: 12px; font-size: 13px; font-weight: 600;
  flex-shrink: 0;
}
.re-field-count.warn { background: #fef3c7; color: #b45309; }
.re-field-count.full { background: #fee2e2; color: #991b1b; }

/* 字段卡片 */
.re-fields { display: flex; flex-direction: column; gap: 8px; }
.re-field-card {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; background: white;
  border: 1px solid #e5e7eb; border-radius: 10px;
  transition: all .15s ease; cursor: default;
}
.re-field-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 2px 8px rgba(79,70,229,.08);
}
.re-field-card.dragging { opacity: .4; }
.re-field-card.drag-over { border-color: #4f46e5; border-style: dashed; background: #eef2ff; }

.re-handle {
  cursor: grab; user-select: none;
  color: #cbd5e1; font-size: 18px; font-weight: 700;
  padding: 0 4px; flex-shrink: 0;
}
.re-handle:hover { color: #4f46e5; }
.re-handle:active { cursor: grabbing; }

.re-field-idx {
  width: 22px; height: 22px; border-radius: 50%;
  background: #eef2ff; color: #4f46e5;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.re-field-body { flex: 1; min-width: 0; }
.re-field-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.re-field-key { font-weight: 600; font-size: 14.5px; color: #1f2937; }
.re-field-desc {
  font-size: 12.5px; color: #6b7280; line-height: 1.5;
  word-break: break-word;
}

/* 类型 chip */
.re-type-chip {
  display: inline-block;
  padding: 2px 9px; border-radius: 10px;
  font-size: 11px; font-weight: 600;
  white-space: nowrap;
}
.re-type-chip.t-text   { background: #dbeafe; color: #1e40af; }
.re-type-chip.t-enum   { background: #ede9fe; color: #6b21a8; }
.re-type-chip.t-number { background: #ffedd5; color: #9a3412; }
.re-type-chip.t-date   { background: #d1fae5; color: #065f46; }

.re-field-actions { display: flex; gap: 4px; flex-shrink: 0; }
.re-icon-btn {
  width: 30px; height: 30px; border: none;
  background: transparent; border-radius: 6px;
  cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #6b7280; transition: all .12s;
}
.re-icon-btn:hover { background: #f3f4f6; color: #4f46e5; }
.re-icon-del:hover { background: #fee2e2; color: #dc2626; }

.re-empty {
  padding: 36px 20px; text-align: center;
  border: 2px dashed #e5e7eb; border-radius: 10px;
  background: #fafafa;
}

.re-add-btn {
  margin-top: 12px; width: 100%;
  padding: 12px; background: white;
  border: 2px dashed #c7d2fe; color: #4f46e5;
  border-radius: 10px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .15s;
}
.re-add-btn:hover {
  background: #eef2ff; border-color: #4f46e5;
  border-style: solid;
}

/* 字段编辑弹窗 */
.re-edit-modal { max-width: 500px; padding: 24px; }
.re-edit-modal h3 { margin: 0 0 16px 0; color: #1f2937; }
.re-form-label {
  display: block; font-size: 13px; font-weight: 600;
  color: #374151; margin: 12px 0 6px 0;
}
.re-hint { font-weight: 400; color: #9ca3af; font-size: 12px; }
.re-edit-modal input[type=text],
.re-edit-modal textarea {
  width: 100%; box-sizing: border-box;
  padding: 9px 12px; border: 1px solid #d1d5db; border-radius: 6px;
  font-size: 14px; font-family: inherit;
}
.re-edit-modal input[type=text]:focus,
.re-edit-modal textarea:focus {
  outline: none; border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79,70,229,.1);
}
.re-edit-modal textarea { resize: vertical; min-height: 60px; }

.re-type-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.re-type-row label {
  display: flex; align-items: center; gap: 6px;
  cursor: pointer; padding: 4px 8px; border-radius: 6px;
}
.re-type-row label:hover { background: #f9fafb; }

/* JD 折叠 */
.re-jd-toggle { margin-bottom: 12px; }
.re-jd-toggle summary {
  cursor: pointer; padding: 8px 12px;
  background: #f9fafb; border-radius: 6px;
  font-size: 13px; color: #4f46e5; font-weight: 600;
}
.re-jd-toggle summary:hover { background: #f3f4f6; }
.re-jd-input {
  width: 100%; box-sizing: border-box;
  margin-top: 8px; padding: 10px; border: 1px solid #d1d5db;
  border-radius: 6px; font-family: inherit; font-size: 13px;
  min-height: 80px; resize: vertical;
}

/* 上传区 */
.re-drop { border-radius: 12px; }

/* 文件列表 */
.re-file-item { gap: 10px; }
.re-file-tag {
  padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}
.re-file-tag.f-pdf   { background: #fee2e2; color: #991b1b; }
.re-file-tag.f-docx  { background: #dbeafe; color: #1e40af; }
.re-file-tag.f-img   { background: #ede9fe; color: #6b21a8; }
.re-file-tag.f-txt   { background: #f3f4f6; color: #374151; }
.re-file-tag.f-other { background: #f3f4f6; color: #6b7280; }
.re-file-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.re-cost-text { color: #4f46e5; font-weight: 600; }
.re-cost-vision { color: #7c3aed; }

/* 开始按钮 */
.re-go-btn { padding: 10px 22px; font-size: 14px; flex-shrink: 0; }
.re-export-btn { padding: 9px 20px; font-size: 14px; flex-shrink: 0; }

/* 结果表 */
.re-table-wrap {
  overflow-x: auto; border-radius: 8px;
  border: 1px solid #e5e7eb;
}
.re-table {
  width: 100%; border-collapse: collapse;
  font-size: 13px;
}
.re-table th {
  background: #f9fafb; color: #374151;
  padding: 10px 12px; text-align: left;
  font-weight: 600; border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}
.re-table td {
  padding: 10px 12px; border-bottom: 1px solid #f3f4f6;
  vertical-align: top;
}
.re-table tr:last-child td { border-bottom: none; }
.re-table tr:hover td { background: #fafafa; }

.re-th-fixed {
  position: sticky; left: 0; background: white !important;
  border-right: 1px solid #e5e7eb;
  min-width: 180px;
}
.re-table tr:hover .re-th-fixed { background: #fafafa !important; }
.re-cell-name { font-weight: 600; color: #1f2937; font-size: 14px; }
.re-cell-file { font-size: 11px; color: #9ca3af; margin-top: 2px; word-break: break-all; }

.re-mode-chip {
  display: inline-block; margin-top: 4px;
  padding: 1px 8px; border-radius: 8px;
  font-size: 10px; font-weight: 600;
}
.re-mode-chip.vision { background: #ede9fe; color: #6b21a8; }
.re-mode-chip.text   { background: #d1fae5; color: #065f46; }

.re-miss { color: #cbd5e1; font-style: italic; }
.re-err { color: #dc2626; font-size: 12.5px; }

/* ==================== resume_extract UI refresh v2 ==================== */

/* —— 顶部 Hero —— */
.re-header {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%);
  color: white; border-radius: 16px;
  padding: 26px 32px; margin-bottom: 22px;
  position: relative; overflow: hidden;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.25);
  border: none;
}
.re-header::before {
  content: ""; position: absolute; top: -40px; right: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
}
.re-header::after {
  content: ""; position: absolute; bottom: -60px; right: 80px;
  width: 140px; height: 140px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}
.re-header .info { position: relative; z-index: 1; flex: 1; }
.re-header h1 {
  font-size: 26px !important;
  color: white !important;
  margin-bottom: 6px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.re-header .desc {
  font-size: 13.5px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}
.re-header .quota-info {
  background: rgba(255,255,255,0.2) !important;
  color: white !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 10px 18px !important;
  font-size: 13px !important;
  font-weight: 600;
  position: relative; z-index: 1;
}

/* —— 步骤卡（重写）—— */
.re-step {
  padding: 22px 26px !important;
  border-radius: 14px !important;
  margin-bottom: 18px;
  background: white;
  border: 1px solid #f1f3f9;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: box-shadow .2s;
}
.re-step:hover {
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
}
.re-step-head {
  gap: 16px !important;
  margin-bottom: 18px !important;
  padding-bottom: 16px;
  border-bottom: 1px dashed #e5e7eb;
}
.re-step-num {
  width: 44px !important; height: 44px !important;
  font-size: 18px !important;
  background: linear-gradient(135deg, #818cf8, #6366f1 50%, #4f46e5) !important;
  box-shadow: 0 6px 16px rgba(79,70,229,.35) !important;
  border: 3px solid white;
  position: relative;
}
.re-step-num::before {
  content: ""; position: absolute; inset: -6px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(124,58,237,0.15));
  z-index: -1;
}
.re-step-head h2 {
  font-size: 17px !important;
  color: #0f172a !important;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.re-step-sub {
  font-size: 13px !important; color: #64748b !important;
  margin-top: 4px !important;
}

/* —— 模板卡 (per-template tint) —— */
.re-tpl-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
  gap: 14px !important;
}
.re-tpl-card {
  padding: 20px 16px !important;
  border-radius: 14px !important;
  border: 2px solid #f1f5f9 !important;
  background: #fafbfc !important;
  transition: all .22s cubic-bezier(.34,1.56,.64,1) !important;
}
.re-tpl-card[data-id="basic"] { background: linear-gradient(160deg, #eff6ff 0%, #fafbfc 70%) !important; }
.re-tpl-card[data-id="hr"]    { background: linear-gradient(160deg, #f3e8ff 0%, #fafbfc 70%) !important; }
.re-tpl-card[data-id="tech"]  { background: linear-gradient(160deg, #ecfdf5 0%, #fafbfc 70%) !important; }
.re-tpl-card[data-id="__blank__"] { background: repeating-linear-gradient(45deg, #fafbfc 0px, #fafbfc 10px, #f3f4f6 10px, #f3f4f6 11px) !important; }

.re-tpl-card:hover {
  transform: translateY(-4px) !important;
  border-color: #c7d2fe !important;
  box-shadow: 0 12px 28px rgba(79,70,229,.18) !important;
}
.re-tpl-card.active {
  border-color: #4f46e5 !important;
  background: linear-gradient(135deg, #eef2ff 0%, white 100%) !important;
  box-shadow: 0 8px 24px rgba(79,70,229,.28) !important;
}
.re-tpl-card.active::after {
  background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
  box-shadow: 0 2px 8px rgba(79,70,229,.4) !important;
  width: 24px !important; height: 24px !important;
}

.re-tpl-icon {
  font-size: 40px !important;
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255,255,255,0.7);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
  margin-bottom: 10px !important;
}
.re-tpl-name {
  font-size: 15px !important;
  color: #0f172a !important;
  margin-bottom: 4px;
}
.re-tpl-desc {
  color: #64748b !important;
  font-size: 12.5px !important;
  line-height: 1.55;
}
.re-tpl-cnt {
  background: rgba(255,255,255,0.85) !important;
  color: #4f46e5 !important;
  font-weight: 600;
  border: 1px solid #e0e7ff;
  margin-top: 10px !important;
}

/* —— 字段数量徽章 —— */
.re-field-count {
  padding: 6px 14px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff) !important;
  border: 1px solid #c7d2fe;
}

/* —— 字段卡（左侧彩色 stripe）—— */
.re-fields { gap: 10px !important; }
.re-field-card {
  position: relative;
  padding: 14px 16px 14px 22px !important;
  border-radius: 12px !important;
  background: white;
  border: 1px solid #eef0f5 !important;
  box-shadow: 0 1px 2px rgba(15,23,42,.03);
  overflow: hidden;
}
.re-field-card::before {
  content: ""; position: absolute;
  left: 0; top: 0; bottom: 0; width: 4px;
  background: #c7d2fe;
  transition: background .15s;
}
.re-field-card:has(.t-text)::before   { background: linear-gradient(180deg, #60a5fa, #3b82f6); }
.re-field-card:has(.t-enum)::before   { background: linear-gradient(180deg, #c084fc, #a855f7); }
.re-field-card:has(.t-number)::before { background: linear-gradient(180deg, #fb923c, #f97316); }
.re-field-card:has(.t-date)::before   { background: linear-gradient(180deg, #4ade80, #22c55e); }

.re-field-card:hover {
  border-color: #c7d2fe !important;
  box-shadow: 0 4px 14px rgba(79,70,229,.08) !important;
  transform: translateX(2px);
}
.re-field-card.drag-over {
  border-color: #4f46e5 !important;
  border-style: solid !important;
  background: linear-gradient(135deg, #eef2ff, #f8fafc) !important;
  border-left: 4px solid #4f46e5 !important;
}

.re-handle {
  font-size: 16px !important;
  letter-spacing: -2px;
  color: #cbd5e1 !important;
  transition: color .15s;
}
.re-field-card:hover .re-handle { color: #6366f1 !important; }

.re-field-idx {
  width: 26px !important; height: 26px !important;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff) !important;
  border: 1px solid #c7d2fe;
  font-size: 12px !important;
}

.re-field-key { font-size: 15px !important; }
.re-field-desc { font-size: 12.5px !important; line-height: 1.55; }

.re-type-chip {
  padding: 3px 11px !important;
  border-radius: 12px !important;
  font-size: 11px !important;
  letter-spacing: 0.3px;
}
.re-type-chip::before {
  content: "●"; margin-right: 4px; font-size: 8px;
  vertical-align: middle;
}

.re-icon-btn {
  width: 32px !important; height: 32px !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
}
.re-icon-btn:hover {
  background: #eef2ff !important;
  transform: scale(1.05);
}
.re-icon-del:hover {
  background: #fee2e2 !important;
}

/* —— 空状态 —— */
.re-empty {
  padding: 50px 20px !important;
  border-radius: 14px !important;
  border: 2px dashed #e5e7eb !important;
  background: linear-gradient(135deg, #fafbff, #ffffff) !important;
}

/* —— 新增字段按钮 —— */
.re-add-btn {
  margin-top: 14px !important;
  padding: 14px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #fafbff, #f3f4ff) !important;
  border: 2px dashed #c7d2fe !important;
  font-size: 14.5px !important;
  letter-spacing: 0.3px;
}
.re-add-btn:hover {
  background: linear-gradient(135deg, #eef2ff, #e0e7ff) !important;
  border-color: #4f46e5 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79,70,229,.15);
}

/* —— JD 折叠 —— */
.re-jd-toggle summary {
  padding: 10px 14px !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, #eef2ff, #fafbff) !important;
  border: 1px solid #e0e7ff;
}
.re-jd-input {
  border-radius: 8px !important;
  border: 1px solid #e0e7ff !important;
  background: #fafbff;
}
.re-jd-input:focus {
  outline: none;
  border-color: #6366f1 !important;
  background: white;
  box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}

/* —— 上传区 —— */
.re-drop {
  border: 2px dashed #c7d2fe !important;
  background: linear-gradient(135deg, #fafbff 0%, #f8fafc 100%);
  padding: 40px 30px !important;
  border-radius: 14px !important;
  transition: all .22s !important;
}
.re-drop:hover {
  background: linear-gradient(135deg, #eef2ff 0%, #fafbff 100%) !important;
  border-color: #818cf8 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79,70,229,.12);
}
.re-drop.drag {
  border-color: #4f46e5 !important;
  background: linear-gradient(135deg, #e0e7ff, #eef2ff) !important;
  border-style: solid !important;
}

/* —— 文件项 —— */
.re-file-item {
  padding: 10px 14px !important;
  background: white !important;
  border: 1px solid #eef0f5 !important;
  border-radius: 10px !important;
  margin-bottom: 6px;
  transition: all .15s;
}
.re-file-item:hover {
  border-color: #c7d2fe !important;
  box-shadow: 0 2px 8px rgba(79,70,229,.08);
}
.re-file-tag {
  padding: 3px 10px !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  letter-spacing: 0.3px;
}
.re-file-item .remove {
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border-radius: 50%;
  font-size: 18px; transition: all .15s;
}
.re-file-item .remove:hover {
  background: #fee2e2;
}

/* —— Cost hint —— */
#re_cost_hint {
  padding: 10px 14px;
  background: linear-gradient(135deg, #eef2ff, #fafbff);
  border-radius: 8px;
  border: 1px solid #e0e7ff;
  margin-top: 6px;
}
#re_cost_hint b { color: #4f46e5; font-size: 15px; padding: 0 2px; }

/* —— 主按钮（开始抽取 / 导出）—— */
.re-go-btn, .re-export-btn {
  background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
  padding: 12px 26px !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  box-shadow: 0 6px 16px rgba(79,70,229,.3) !important;
  transition: all .18s !important;
  letter-spacing: 0.5px;
}
.re-go-btn:hover, .re-export-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(79,70,229,.4) !important;
}
.re-go-btn:active, .re-export-btn:active {
  transform: translateY(0);
}
.re-go-btn:disabled {
  background: #cbd5e1 !important;
  box-shadow: none !important;
  transform: none !important;
}

/* —— 进度条 —— */
#re_pwrap {
  height: 10px !important;
  border-radius: 5px !important;
  background: #eef2ff !important;
  margin-top: 14px !important;
  overflow: hidden;
}
#re_pbar {
  background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899) !important;
  background-size: 200% 100% !important;
  animation: re-shimmer 2s linear infinite;
  border-radius: 5px;
}
@keyframes re-shimmer {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

/* —— 结果统计 —— */
#re_result_stat {
  padding: 8px 14px;
  background: linear-gradient(135deg, #f0fdf4, #fafbff);
  border-radius: 8px;
  border: 1px solid #e0e7ff;
  font-size: 13px;
}
#re_result_stat b { font-size: 15px; padding: 0 3px; }

/* —— 结果表格 —— */
.re-table-wrap {
  border-radius: 12px !important;
  border: 1px solid #eef0f5 !important;
  box-shadow: inset 0 0 0 1px white;
}
.re-table th {
  background: linear-gradient(180deg, #fafbff, #f3f4f6) !important;
  color: #4b5563 !important;
  padding: 13px 14px !important;
  font-size: 12.5px !important;
  letter-spacing: 0.3px;
  border-bottom: 2px solid #e0e7ff !important;
}
.re-table td {
  padding: 12px 14px !important;
  font-size: 13.5px;
}
.re-table tr:nth-child(even) td { background: #fafbff; }
.re-table tr:nth-child(even) td.re-th-fixed { background: #fafbff !important; }
.re-table tr:hover td { background: #eef2ff !important; }
.re-table tr:hover td.re-th-fixed { background: #eef2ff !important; }

.re-th-fixed {
  border-right: 2px solid #e0e7ff !important;
  min-width: 200px !important;
}
.re-cell-name { font-size: 14.5px !important; color: #0f172a !important; }

.re-mode-chip {
  padding: 2px 9px !important;
  font-size: 10.5px !important;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* —— 字段编辑弹窗（更精致）—— */
.re-edit-modal {
  max-width: 520px !important;
  padding: 28px !important;
  border-radius: 16px !important;
  box-shadow: 0 25px 50px rgba(0,0,0,.25);
}
.re-edit-modal h3 {
  font-size: 18px !important;
  color: #0f172a !important;
  margin-bottom: 18px !important;
  padding-bottom: 14px;
  border-bottom: 1px dashed #e5e7eb;
}
.re-form-label {
  font-size: 13.5px !important;
  margin: 14px 0 8px 0 !important;
  color: #1f2937 !important;
}
.re-edit-modal input[type=text],
.re-edit-modal textarea {
  padding: 11px 14px !important;
  border-radius: 8px !important;
  border: 1px solid #e0e7ff !important;
  background: #fafbff;
}
.re-edit-modal input[type=text]:focus,
.re-edit-modal textarea:focus {
  background: white !important;
}
.re-type-row {
  gap: 10px !important;
  background: #fafbff;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e0e7ff;
}
.re-type-row label {
  padding: 6px 12px !important;
  border-radius: 8px !important;
  background: white;
  border: 1px solid transparent;
  transition: all .15s;
}
.re-type-row label:has(input:checked) {
  border-color: #4f46e5;
  background: #eef2ff;
  box-shadow: 0 2px 8px rgba(79,70,229,.15);
}
.re-type-row input[type=radio] { accent-color: #4f46e5; }
.re-edit-modal .actions button {
  padding: 10px 22px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}

/* —— 模板加载/错误 —— */
.re-tpl-loading {
  background: repeating-linear-gradient(
    90deg,
    #f3f4f6 0px, #f3f4f6 40px,
    #fafbff 40px, #fafbff 80px
  );
  background-size: 80px 100%;
  animation: re-skel 1.2s linear infinite;
  border-radius: 12px;
  border: 1px solid transparent !important;
  color: transparent !important;
  min-height: 100px;
}
@keyframes re-skel {
  0% { background-position: 0 0; }
  100% { background-position: 80px 0; }
}

/* ============================================================
   resume_extract  v3：表格化重构（rex-*）
   说明：把字段编辑器从"竖排卡片"改为"真表格"，模板改为顶部 pill，
        文件列表也改为表格，3 段式工作流更清爽
   ============================================================ */

/* —— 顶部头 + 流程指示条 —— */
.rex-header {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  color: #fff;
  padding: 22px 28px;
  border-radius: 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 8px 24px -8px rgba(99, 102, 241, .35);
  position: relative;
  overflow: hidden;
}
.rex-header::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%);
  pointer-events: none;
}
.rex-header .info { flex: 1; position: relative; z-index: 1; }
.rex-header h1 {
  color: #fff !important;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px 0;
  letter-spacing: .3px;
}
.rex-header .desc {
  font-size: 13px;
  opacity: .92;
  line-height: 1.5;
}
.rex-header .quota-info {
  background: rgba(255,255,255,.22);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.rex-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 14px;
  overflow-x: auto;
  box-shadow: 0 1px 3px rgba(0,0,0,.03);
}
.rex-flow-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #9ca3af;
  font-size: 13px;
  transition: all .25s;
  white-space: nowrap;
}
.rex-flow-step.done {
  background: linear-gradient(135deg, #ede9fe, #e0e7ff);
  color: #4338ca;
  font-weight: 600;
}
.rex-flow-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: inherit;
  border: 1.5px solid currentColor;
}
.rex-flow-step.done .rex-flow-num {
  background: #4f46e5;
  color: #fff;
  border-color: #4f46e5;
}
.rex-flow-arrow {
  color: #d1d5db;
  font-size: 18px;
  font-weight: 300;
  flex-shrink: 0;
}

/* —— 通用 section —— */
.rex-section {
  margin-bottom: 14px;
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid #ececf3;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, .04);
}
.rex-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.rex-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 240px;
}
.rex-section-title h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
}
.rex-num-badge {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 10px -3px rgba(99,102,241,.5);
}
.rex-tip {
  font-size: 12.5px;
  color: #9ca3af;
  font-weight: 400;
}

/* —— 模板 pill 横条 —— */
.rex-tpl-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.rex-tpl-label {
  font-size: 12px;
  color: #6b7280;
  margin-right: 2px;
}
.rex-tpl-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: #f3f4f6;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12.5px;
  color: #374151;
  cursor: pointer;
  transition: all .15s;
}
.rex-tpl-pill:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4338ca;
}
.rex-tpl-pill.active {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 10px -3px rgba(79, 70, 229, .5);
}
.rex-tpl-pill-icon { font-size: 14px; }
.rex-tpl-clear {
  margin-left: 6px;
  background: #fff;
  color: #9ca3af;
  border: 1px solid #e5e7eb;
}
.rex-tpl-clear:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}
.rex-tpl-loading, .rex-tpl-error { font-size: 12px; color: #9ca3af; }

/* —— 字段表格 —— */
.rex-field-table-wrap {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.rex-field-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.rex-field-table thead th {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 12.5px;
  color: #4b5563;
}
.rex-th-hint {
  font-weight: 400;
  color: #9ca3af;
  font-size: 11.5px;
  margin-left: 4px;
}
.rex-field-table tbody td {
  border-bottom: 1px solid #f3f4f6;
  padding: 6px 8px;
  vertical-align: middle;
}
.rex-field-table tbody tr:last-child td { border-bottom: none; }
.rex-field-table tbody tr:hover td { background: #fafbff; }

.rex-field-row.dragging { opacity: .35; }
.rex-field-row.drag-over td {
  background: #eef2ff !important;
  box-shadow: inset 0 2px 0 0 #4f46e5;
}

.rex-cell-idx {
  text-align: center;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 600;
}
.rex-cell-handle {
  text-align: center;
  width: 38px;
}
.rex-handle {
  color: #cbd5e1;
  cursor: grab;
  font-size: 14px;
  user-select: none;
  padding: 4px;
  display: inline-block;
}
.rex-field-row:hover .rex-handle { color: #6366f1; }
.rex-handle:active { cursor: grabbing; }

.rex-inline-input {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: #1f2937;
  transition: all .12s;
  font-family: inherit;
}
.rex-inline-input::placeholder { color: #cbd5e1; }
.rex-inline-input:hover { background: #f9fafb; }
.rex-inline-input:focus {
  outline: none;
  background: #fff;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .12);
}
.rex-input-key { font-weight: 600; }

.rex-inline-select {
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all .12s;
  text-align: center;
  text-align-last: center;
}
.rex-inline-select:hover { border-color: #6366f1; }
.rex-inline-select:focus { outline: none; box-shadow: 0 0 0 3px rgba(99,102,241,.15); border-color: #6366f1; }
.rex-select-type.rex-type-text   { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.rex-select-type.rex-type-enum   { background: #ede9fe; color: #6b21a8; border-color: #ddd6fe; }
.rex-select-type.rex-type-number { background: #ffedd5; color: #9a3412; border-color: #fed7aa; }
.rex-select-type.rex-type-date   { background: #d1fae5; color: #065f46; border-color: #a7f3d0; }

.rex-cell-act { text-align: center; }
.rex-row-del {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  font-size: 14px;
  transition: all .12s;
  padding: 0;
}
.rex-row-del:hover {
  background: #fef2f2;
  color: #dc2626;
}

.rex-empty-row td { padding: 0 !important; }
.rex-empty-cell {
  padding: 32px 16px;
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
}
.rex-empty-cell-icon {
  display: block;
  font-size: 36px;
  opacity: .4;
  margin-bottom: 8px;
}

.rex-field-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 12px;
}
.rex-add-btn {
  background: #fff;
  border: 1.5px dashed #c7d2fe;
  color: #4f46e5;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
}
.rex-add-btn:hover {
  background: #eef2ff;
  border-color: #4f46e5;
  border-style: solid;
}
.rex-field-count {
  font-size: 12px;
  color: #9ca3af;
  padding: 4px 10px;
  background: #f9fafb;
  border-radius: 999px;
}
.rex-field-count.warn { background: #fef3c7; color: #b45309; }
.rex-field-count.full { background: #fee2e2; color: #991b1b; }

/* —— 上传 row + 文件表格 —— */
.rex-upload-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
  margin-bottom: 12px;
}
@media (max-width: 880px) {
  .rex-upload-row { grid-template-columns: 1fr; }
}
.rex-drop {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  background: linear-gradient(180deg, #fafbfc 0%, #f8fafc 100%);
}
.rex-drop:hover { border-color: #6366f1; background: #eef2ff; }
.rex-drop.drag { border-color: #4f46e5; background: #ddd6fe; transform: scale(1.01); }
.rex-drop-icon { font-size: 28px; }
.rex-drop-main {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}
.rex-drop-sub {
  margin-top: 10px;
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}
.rex-cost-chip {
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 500;
}
.rex-cost-chip.text   { background: #d1fae5; color: #065f46; }
.rex-cost-chip.vision { background: #ede9fe; color: #6b21a8; }

.rex-jd-box {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.rex-jd-box summary {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 13px;
  color: #4b5563;
  font-weight: 500;
  user-select: none;
  list-style: none;
  background: #fafbfc;
  transition: background .12s;
}
.rex-jd-box summary::-webkit-details-marker { display: none; }
.rex-jd-box summary:hover { background: #f3f4f6; }
.rex-jd-box[open] summary { border-bottom: 1px solid #e5e7eb; background: #eef2ff; color: #4338ca; }
.rex-jd-input {
  width: 100%;
  min-height: 90px;
  padding: 12px 14px;
  border: none;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  background: #fff;
  color: #1f2937;
  box-sizing: border-box;
}
.rex-jd-input:focus { outline: none; }

.rex-cost-pill {
  font-size: 12.5px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #9ca3af;
  font-weight: 500;
}
.rex-cost-pill.active {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
}
.rex-cost-pill.active b { color: #b45309; font-size: 14px; }

.rex-file-table-wrap {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.rex-file-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.rex-file-table thead th {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  padding: 9px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  color: #6b7280;
}
.rex-file-table tbody td {
  border-bottom: 1px solid #f3f4f6;
  padding: 8px 12px;
}
.rex-file-table tbody tr:last-child td { border-bottom: none; }
.rex-file-table tbody tr:hover td { background: #fafbff; }
.rex-file-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.rex-file-tag.f-pdf   { background: #fee2e2; color: #991b1b; }
.rex-file-tag.f-docx  { background: #dbeafe; color: #1e40af; }
.rex-file-tag.f-img   { background: #ede9fe; color: #6b21a8; }
.rex-file-tag.f-txt   { background: #f3f4f6; color: #374151; }
.rex-file-tag.f-other { background: #f3f4f6; color: #6b7280; }
.rex-file-name {
  font-size: 13px;
  color: #1f2937;
  word-break: break-all;
}
.rex-file-size {
  color: #9ca3af;
  font-size: 12px;
}
.rex-mode-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}
.rex-mode-pill.text   { background: #d1fae5; color: #065f46; }
.rex-mode-pill.vision { background: #ede9fe; color: #6b21a8; }
.rex-file-del {
  width: 26px; height: 26px;
  border: none;
  background: transparent;
  color: #cbd5e1;
  cursor: pointer;
  border-radius: 6px;
  font-size: 13px;
  transition: all .12s;
}
.rex-file-del:hover { background: #fef2f2; color: #dc2626; }

/* —— 执行 + 结果 —— */
.rex-go-group {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.rex-go-btn, .rex-export-btn {
  padding: 10px 22px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
  border: none !important;
  color: #fff !important;
  cursor: pointer;
  transition: all .15s !important;
  box-shadow: 0 4px 12px -3px rgba(79, 70, 229, .5);
}
.rex-go-btn:hover, .rex-export-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -3px rgba(79, 70, 229, .55);
}
.rex-go-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none !important;
}
.rex-export-btn {
  background: linear-gradient(135deg, #16a34a, #059669) !important;
  box-shadow: 0 4px 12px -3px rgba(22, 163, 74, .5);
}
.rex-export-btn:hover {
  box-shadow: 0 6px 16px -3px rgba(22, 163, 74, .55);
}

.rex-result-summary {
  display: flex;
  gap: 8px;
  margin: 10px 0 12px 0;
  flex-wrap: wrap;
}
.rex-stat {
  padding: 5px 12px;
  background: #f9fafb;
  border-radius: 999px;
  font-size: 12.5px;
  color: #6b7280;
}
.rex-stat.ok   { background: #d1fae5; color: #065f46; }
.rex-stat.err  { background: #fee2e2; color: #991b1b; }
.rex-stat.cost { background: #fef3c7; color: #92400e; }
.rex-stat b { font-size: 13.5px; }

.rex-empty-results {
  text-align: center;
  padding: 36px 16px;
  color: #cbd5e1;
}
.rex-empty-icon {
  font-size: 42px;
  opacity: .35;
  margin-bottom: 6px;
}
.rex-empty-sub {
  font-size: 12px;
  margin-top: 4px;
  color: #cbd5e1;
}

.rex-table-wrap {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow-x: auto;
  background: #fff;
  max-height: 600px;
  overflow-y: auto;
}
.rex-result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 600px;
}
.rex-result-table thead th {
  background: #f9fafb;
  border-bottom: 2px solid #e5e7eb;
  padding: 10px 12px;
  text-align: left;
  font-weight: 700;
  color: #374151;
  font-size: 12.5px;
  position: sticky;
  top: 0;
  z-index: 2;
}
.rex-result-table tbody td {
  border-bottom: 1px solid #f3f4f6;
  padding: 10px 12px;
  vertical-align: middle;
  color: #374151;
}
.rex-result-table tbody tr:nth-child(even) td { background: #fafbff; }
.rex-result-table tbody tr:last-child td { border-bottom: none; }
.rex-result-table tbody tr:hover td { background: #eef2ff !important; }
.rex-th-fixed {
  background: #fafbfc !important;
  border-right: 2px solid #e5e7eb;
  min-width: 150px;
  position: sticky;
  left: 0;
  z-index: 1;
}
.rex-result-table thead .rex-th-fixed { z-index: 3; }
.rex-cell-name { font-weight: 600; color: #0f172a; font-size: 14px; }
.rex-cell-file { font-size: 11px; color: #9ca3af; margin-top: 2px; word-break: break-all; }
.rex-miss { color: #cbd5e1; font-style: italic; }
.rex-err { color: #dc2626; font-size: 12.5px; }

/* ============================================================
 *  抖音短视频脚本 douyin_script (dy-*)
 *  品牌色：#000 + #fe2c55（抖音红）
 * ============================================================ */
.dy-track-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 720px) { .dy-track-grid { grid-template-columns: repeat(2, 1fr); } }
.dy-track-card {
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.15s;
  background: #fff;
}
.dy-track-card:hover { border-color: #fda4af; background: #fff1f2; }
.dy-track-card.active {
  border-color: #fe2c55;
  background: #fff1f3;
  box-shadow: 0 0 0 3px rgba(254, 44, 85, 0.12);
}
.dy-track-card .name { font-size: 15px; font-weight: 600; color: #1f2937; margin-bottom: 4px; }
.dy-track-card.active .name { color: #fe2c55; }
.dy-track-card .desc { font-size: 12px; color: #6b7280; line-height: 1.5; }

.dy-dur-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 720px) { .dy-dur-grid { grid-template-columns: repeat(2, 1fr); } }
.dy-dur-card {
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.15s;
  background: #fff;
  text-align: center;
}
.dy-dur-card:hover { border-color: #fda4af; background: #fff1f2; }
.dy-dur-card.active {
  border-color: #fe2c55;
  background: #fff1f3;
  box-shadow: 0 0 0 3px rgba(254, 44, 85, 0.12);
}
.dy-dur-card .name {
  font-size: 18px; font-weight: 700; color: #1f2937; margin-bottom: 2px;
  font-variant-numeric: tabular-nums;
}
.dy-dur-card.active .name { color: #fe2c55; }
.dy-dur-card .desc { font-size: 11.5px; color: #6b7280; }

/* Hero 概览（黑色+品牌色） */
.dy-hero {
  background: linear-gradient(135deg, #1f1f1f 0%, #2d0a18 100%);
  color: #fff;
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.dy-hero .row { display: flex; gap: 18px; align-items: flex-start; }
.dy-hero .hero-main { flex: 1; }
.dy-hero .hero-summary { font-size: 17px; font-weight: 600; margin-bottom: 10px; line-height: 1.5; }
.dy-hero .hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.85);
}
.dy-hero .meta-item strong { color: #fe2c55; }
.dy-hero .hero-badge {
  flex-shrink: 0;
  text-align: center;
  background: rgba(254, 44, 85, 0.18);
  border: 1px solid rgba(254, 44, 85, 0.4);
  padding: 10px 16px;
  border-radius: 10px;
  min-width: 88px;
}
.dy-hero .badge-label { font-size: 13px; font-weight: 600; color: #fe2c55; margin-bottom: 2px; }
.dy-hero .badge-dur { font-size: 18px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.dy-hero .hero-rhythm {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 12.5px;
  color: rgba(255,255,255,0.85);
}
.dy-hero .hero-rhythm strong { color: #fe2c55; }

/* 钩子卡片 */
.dy-hooks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 900px) { .dy-hooks-grid { grid-template-columns: 1fr; } }
.dy-hook-card {
  position: relative;
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px 16px 50px 16px;
  min-height: 140px;
}
.dy-hook-card.recommended {
  background: #fff1f3;
  border-color: #fe2c55;
  box-shadow: 0 4px 12px rgba(254, 44, 85, 0.12);
}
.dy-hook-card .recommended-badge {
  position: absolute;
  top: -10px; right: 12px;
  background: #fe2c55;
  color: #fff;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 4px;
  font-weight: 600;
}
.dy-hook-card .hook-num {
  display: inline-block;
  background: #1f1f1f;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.dy-hook-card .hook-text {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.5;
  margin-bottom: 10px;
}
.dy-hook-card .hook-meta {
  font-size: 11.5px;
  color: #6b7280;
  line-height: 1.7;
}
.dy-hook-card .hook-meta strong { color: #4b5563; font-weight: 600; }
.dy-hook-card .dy-copy-btn {
  position: absolute;
  bottom: 12px; right: 12px;
}

/* 复制按钮（通用） */
.dy-copy-btn {
  background: #fe2c55;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 500;
  transition: opacity 0.15s;
}
.dy-copy-btn:hover { opacity: 0.85; }
.dy-copy-btn.copied { background: #10b981; }
.dy-copy-btn.small { padding: 3px 8px; font-size: 11px; }

/* 分镜表 */
.dy-shots-wrap {
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}
.dy-shots-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 720px;
}
.dy-shots-table thead {
  background: #1f1f1f;
  color: #fff;
}
.dy-shots-table thead th {
  text-align: left;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.dy-shots-table tbody tr { border-bottom: 1px solid #f3f4f6; }
.dy-shots-table tbody tr:nth-child(even) { background: #fafafa; }
.dy-shots-table tbody tr:hover { background: #fff1f3; }
.dy-shots-table td { padding: 10px 12px; vertical-align: top; line-height: 1.5; }
.dy-shots-table .shot-no { font-weight: 700; color: #fe2c55; text-align: center; width: 36px; font-variant-numeric: tabular-nums; }
.dy-shots-table .shot-dur { color: #6b7280; text-align: center; width: 50px; font-variant-numeric: tabular-nums; }
.dy-shots-table .shot-scene { color: #1f2937; min-width: 180px; }
.dy-shots-table .shot-dialogue { color: #4f46e5; min-width: 160px; font-style: italic; }
.dy-shots-table .shot-subtitle { color: #b45309; min-width: 120px; font-weight: 600; }
.dy-shots-table .shot-camera { color: #6b7280; white-space: nowrap; font-size: 12px; }

/* 口播稿 */
.dy-voiceover {
  background: #1f1f1f;
  color: #f3f4f6;
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.8;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 360px;
  overflow-y: auto;
  margin: 0;
}

/* 标题列表 */
.dy-titles-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.dy-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 10px 14px;
}
.dy-title-row:hover { background: #fff1f3; border-color: #fda4af; }
.dy-title-row .num {
  background: #fe2c55;
  color: #fff;
  width: 22px; height: 22px;
  border-radius: 50%;
  text-align: center;
  line-height: 22px;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.dy-title-row .title-text { flex: 1; font-size: 14px; color: #1f2937; line-height: 1.5; }

/* 封面建议 */
.dy-cover-suggest {
  background: linear-gradient(135deg, #fff1f3 0%, #fef3c7 100%);
  border: 1px dashed #fe2c55;
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}
.dy-cover-suggest .cover-label { font-size: 12px; color: #6b7280; white-space: nowrap; }
.dy-cover-suggest .cover-text {
  flex: 1;
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  text-align: center;
  letter-spacing: 1px;
}

/* BGM */
.dy-bgm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 720px) { .dy-bgm-grid { grid-template-columns: 1fr; } }
.dy-bgm-card {
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 14px;
}
.dy-bgm-card .bgm-mood { font-size: 14px; font-weight: 600; color: #fe2c55; margin-bottom: 4px; }
.dy-bgm-card .bgm-style { font-size: 13px; color: #4b5563; margin-bottom: 4px; }
.dy-bgm-card .bgm-examples { font-size: 12px; color: #6b7280; line-height: 1.5; }

/* 拍摄准备 */
.dy-prep-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 720px) { .dy-prep-grid { grid-template-columns: 1fr; } }
.dy-prep-grid .prep-item {
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 14px;
}
.dy-prep-grid .prep-label { font-size: 12px; color: #fe2c55; font-weight: 600; margin-bottom: 6px; }
.dy-prep-grid .prep-content { font-size: 13px; color: #1f2937; line-height: 1.6; }

/* 回复卡片 */
.dy-replies-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 900px) { .dy-replies-grid { grid-template-columns: 1fr; } }
.dy-reply-card {
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 14px;
  position: relative;
}
.dy-reply-card .scenario { font-size: 12px; color: #6b7280; margin-bottom: 6px; font-weight: 500; }
.dy-reply-card .reply { font-size: 13px; color: #1f2937; line-height: 1.6; margin-bottom: 8px; }

/* 列表 */
.dy-list { padding-left: 22px; margin: 0; }
.dy-list li { font-size: 13px; line-height: 1.7; color: #4b5563; margin-bottom: 4px; }
.dy-list.checklist li { list-style: none; padding-left: 4px; position: relative; }
.dy-list.checklist li::before { content: "□"; color: #fe2c55; font-weight: 700; margin-right: 6px; }

.dy-risks-card { background: #fff7ed; border: 1px solid #fed7aa; }
.dy-risks-card h2 { color: #c2410c !important; }

/* ============================================================
   周报 / 月报 / 述职报告（work_report） - wr-*
   主色：稳重蓝 #0f4c81 + 商务灰 #475569
   ============================================================ */

/* 报告类型 4 卡 */
.wr-type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 6px; }
.wr-type-card {
  border: 2px solid #e5e7eb; border-radius: 10px; padding: 14px 12px;
  cursor: pointer; transition: all .15s; background: #fff;
  display: flex; flex-direction: column; gap: 6px;
}
.wr-type-card:hover { border-color: var(--xg-accent); transform: translateY(-1px); }
.wr-type-card.active {
  border-color: var(--xg-primary); background: linear-gradient(135deg, #eef7f6 0%, #fff3df 100%);
  box-shadow: 0 2px 8px rgba(40,95,116,.15);
}
.wr-type-card .icon { font-size: 24px; }
.wr-type-card .name { font-size: 15px; font-weight: 700; color: #1e293b; }
.wr-type-card .desc { font-size: 12px; color: #64748b; line-height: 1.5; }

/* 文风 3 卡 */
.wr-tone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 6px; }
.wr-tone-card {
  border: 2px solid #e5e7eb; border-radius: 8px; padding: 12px;
  cursor: pointer; transition: all .15s; background: #fff;
}
.wr-tone-card:hover { border-color: var(--xg-accent); }
.wr-tone-card.active { border-color: var(--xg-primary); background: #eef7f6; }
.wr-tone-card .name { font-size: 14px; font-weight: 600; color: #1e293b; margin-bottom: 4px; }
.wr-tone-card .desc { font-size: 12px; color: #64748b; line-height: 1.5; }

/* 周期 + 岗位 双输入 */
.wr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wr-row input { width: 100%; }

/* Hero */
.wr-hero {
  background: linear-gradient(135deg, var(--xg-primary-strong) 0%, var(--xg-primary) 72%, #a9763f 100%);
  color: #fff; padding: 24px 24px 20px; border-radius: 14px;
  margin-bottom: 18px; box-shadow: 0 6px 20px rgba(15,76,129,.25);
}
.wr-hero .wr-title { font-size: 22px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.wr-hero .wr-summary { font-size: 14px; opacity: .92; line-height: 1.7; }
.wr-hero .wr-oneliner {
  margin-top: 14px; padding: 12px 14px; background: rgba(255,255,255,.12);
  border-left: 3px solid #fbbf24; border-radius: 6px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
}
.wr-hero .ol-label { font-size: 12px; font-weight: 700; color: #fbbf24; flex-shrink: 0; }
.wr-hero .ol-text { font-size: 14px; flex: 1; min-width: 200px; }

/* 亮点徽章 */
.wr-highlights-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.wr-highlight-card {
  background: #f8fafc; border: 1px solid #e2e8f0; border-left: 4px solid var(--xg-primary);
  border-radius: 8px; padding: 14px 16px;
}
.wr-highlight-card .label { font-size: 12px; color: #64748b; margin-bottom: 4px; font-weight: 600; }
.wr-highlight-card .value { font-size: 17px; font-weight: 700; color: var(--xg-primary); line-height: 1.4; }

/* 段落 */
.wr-sections { display: flex; flex-direction: column; gap: 16px; }
.wr-section { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 18px 20px; }
.wr-section .sec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px dashed #e5e7eb; }
.wr-section .sec-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; background: var(--xg-primary); color: #fff;
  font-size: 13px; font-weight: 700; border-radius: 6px; flex-shrink: 0;
}
.wr-section .sec-heading { font-size: 16px; font-weight: 700; color: #1e293b; }
.wr-section .sec-body { font-size: 14px; line-height: 1.8; color: #374151; white-space: pre-wrap; word-break: break-word; }
.wr-section .sec-data {
  margin-top: 12px; padding: 10px 14px; background: #fffbeb;
  border-left: 3px solid #fbbf24; border-radius: 4px;
}
.wr-section .sec-data .data-label { font-size: 12px; font-weight: 700; color: #b45309; margin-bottom: 4px; }
.wr-section .sec-data ul { margin: 0; padding-left: 18px; }
.wr-section .sec-data li { font-size: 13px; color: #78350f; line-height: 1.6; }

/* 全文 */
.wr-fulltext {
  background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 8px;
  padding: 18px 22px; font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 14px; line-height: 1.9; color: #1e293b;
  white-space: pre-wrap; word-break: break-word;
  max-height: 600px; overflow-y: auto;
}

/* 复制按钮 */
.wr-copy-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px 10px; font-size: 12px; background: #fff; color: var(--xg-primary);
  border: 1px solid rgba(255,255,255,.4); border-radius: 4px; cursor: pointer;
}
.wr-copy-btn.small { padding: 3px 8px; font-size: 11px; }
.wr-copy-btn.copied { background: #10b981; color: #fff; border-color: #10b981; }

/* 列表 */
.wr-list { padding-left: 22px; margin: 0; }
.wr-list li { font-size: 14px; line-height: 1.8; color: #374151; margin-bottom: 4px; }
.wr-list.checklist li { list-style: none; padding-left: 4px; position: relative; }
.wr-list.checklist li::before { content: "▶"; color: var(--xg-primary); font-weight: 700; margin-right: 6px; font-size: 11px; }

.wr-data-card { background: #ecfeff; border: 1px solid #a5f3fc; }
.wr-data-card h2 { color: #0e7490 !important; }
.wr-risks-card { background: #fff7ed; border: 1px solid #fed7aa; }
.wr-risks-card h2 { color: #c2410c !important; }

/* ============================================================
   AI 智能起名（ai_naming） - nm-*
   主色：国学红 #b91c1c + 国学金 #d4a72c
   ============================================================ */

/* 类型 4 卡 */
.nm-type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 6px; }
.nm-type-card {
  border: 2px solid #e5e7eb; border-radius: 10px; padding: 16px 12px;
  cursor: pointer; transition: all .15s; background: #fff; text-align: center;
}
.nm-type-card:hover { border-color: #fca5a5; transform: translateY(-1px); }
.nm-type-card.active {
  border-color: #b91c1c; background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  box-shadow: 0 2px 8px rgba(185,28,28,.15);
}
.nm-type-card .icon { font-size: 28px; margin-bottom: 6px; }
.nm-type-card .name { font-size: 15px; font-weight: 700; color: #1e293b; }
.nm-type-card .count { font-size: 11px; color: #b91c1c; font-weight: 600; margin: 3px 0; }
.nm-type-card .desc { font-size: 12px; color: #64748b; line-height: 1.5; }

/* 风格 5 卡 */
.nm-style-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 6px; }
.nm-style-card {
  border: 2px solid #e5e7eb; border-radius: 8px; padding: 11px 8px;
  cursor: pointer; transition: all .15s; background: #fff; text-align: center;
}
.nm-style-card:hover { border-color: #fca5a5; }
.nm-style-card.active { border-color: #b91c1c; background: #fef2f2; }
.nm-style-card .name { font-size: 13px; font-weight: 600; color: #1e293b; margin-bottom: 4px; }
.nm-style-card .desc { font-size: 11px; color: #64748b; line-height: 1.4; }

/* 基础信息 */
.nm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nm-row input { width: 100%; }

/* Hero */
.nm-hero {
  background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 50%, #d4a72c 100%);
  color: #fff; padding: 24px; border-radius: 14px;
  margin-bottom: 18px; box-shadow: 0 6px 20px rgba(185,28,28,.25);
}
.nm-hero-summary { font-size: 16px; font-weight: 600; line-height: 1.6; margin-bottom: 14px; }
.nm-hero-principles { padding: 12px 14px; background: rgba(255,255,255,.12); border-radius: 6px; }
.nm-hero-principles .principles-label { font-size: 12px; font-weight: 700; color: #fef3c7; margin-bottom: 6px; }
.nm-hero-principles ul { margin: 0; padding-left: 20px; }

@media (max-width: 1100px) {
  .login-page { grid-template-columns: 1fr; min-height: auto; }
  .login-brand { min-height: 340px; padding: 48px; }
  .login-card { border-left: 0; border-top: 1px solid rgba(255,255,255,.34); }
  .wr-type-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  #loginView { padding: 18px; }
  .login-brand { padding: 36px 28px; min-height: 320px; }
  .login-card { padding: 34px 26px; }
  .layout { display: block; }
  .sidebar {
    width: 100%;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--xg-line);
    padding: 10px;
  }
  .sidebar .cat { display: none; }
  .sidebar .tool-item { min-width: max-content; border-left: 0; border-bottom: 3px solid transparent; }
  .sidebar .tool-item .name { display: inline; }
  .sidebar .tool-item.active { border-left-color: transparent; border-bottom-color: var(--xg-accent); }
  .content { padding: 16px; }
  .tool-header { flex-direction: column; gap: 10px; }
  .wr-type-grid, .wr-tone-grid, .wr-row { grid-template-columns: 1fr; }
}
.nm-hero-principles li { font-size: 13px; line-height: 1.7; opacity: .95; }

/* 强推 3 选 */
.nm-top-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.nm-top-card {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #d4a72c; border-radius: 12px; padding: 18px 16px 14px;
  text-align: center; position: relative;
  box-shadow: 0 4px 12px rgba(212,167,44,.2);
}
.nm-top-card .top-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: #b91c1c; color: #fff; padding: 3px 12px; font-size: 11px;
  font-weight: 700; border-radius: 12px; white-space: nowrap;
}
.nm-top-card .top-name {
  font-size: 28px; font-weight: 800; color: #7f1d1d;
  margin: 10px 0 8px; font-family: "STKaiti", "KaiTi", "Microsoft YaHei", serif;
  letter-spacing: 2px;
}
.nm-top-card .top-why { font-size: 12px; color: #78350f; line-height: 1.6; margin-bottom: 10px; }

/* 候选列表 */
.nm-cand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.nm-cand-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 14px 16px; transition: all .15s;
}
.nm-cand-card:hover { border-color: #fca5a5; box-shadow: 0 2px 8px rgba(0,0,0,.06); transform: translateY(-1px); }
.nm-cand-card.highlighted { border-color: #d4a72c; background: #fffbeb; }
.nm-cand-card .cand-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px dashed #e5e7eb; }
.nm-cand-card .cand-num { font-size: 11px; color: #9ca3af; font-weight: 700; flex-shrink: 0; }
.nm-cand-card .cand-name {
  font-size: 22px; font-weight: 700; color: #7f1d1d;
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei", serif; letter-spacing: 1px;
}
.nm-cand-card .cand-pinyin { font-size: 12px; color: #6b7280; font-style: italic; }
.nm-cand-card .cand-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.nm-cand-card .cand-score { color: #d4a72c; font-size: 14px; letter-spacing: 1px; }
.nm-cand-card .cand-tag {
  display: inline-block; padding: 2px 8px; font-size: 11px;
  background: #fee2e2; color: #991b1b; border-radius: 10px;
}
.nm-cand-card .cand-meaning { font-size: 13px; color: #374151; line-height: 1.6; margin-bottom: 4px; }
.nm-cand-card .cand-wuxing { font-size: 12px; color: #0e7490; line-height: 1.5; margin-bottom: 4px; }
.nm-cand-card .cand-risk {
  font-size: 12px; color: #b45309; line-height: 1.5; margin-bottom: 6px;
  padding: 4px 8px; background: #fffbeb; border-left: 2px solid #fbbf24; border-radius: 3px;
}

/* 复制按钮 */
.nm-copy-btn {
  padding: 5px 12px; font-size: 12px; background: #b91c1c; color: #fff;
  border: none; border-radius: 4px; cursor: pointer; transition: all .15s;
}
.nm-copy-btn:hover { background: #991b1b; }
.nm-copy-btn.small { padding: 3px 10px; font-size: 11px; }
.nm-copy-btn.copied { background: #10b981 !important; }
.nm-top-card .nm-copy-btn { background: #7f1d1d; }
.nm-top-card .nm-copy-btn:hover { background: #b91c1c; }

/* 场景建议 */
.nm-scene-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.nm-scene-card {
  background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px;
  padding: 14px 16px;
}
.nm-scene-card .scene-label { font-size: 13px; font-weight: 700; color: #991b1b; margin-bottom: 6px; }
.nm-scene-card .scene-text { font-size: 13px; color: #374151; line-height: 1.7; white-space: pre-wrap; }

/* 列表 */
.nm-list { padding-left: 22px; margin: 0; }
.nm-list li { font-size: 14px; line-height: 1.8; color: #374151; margin-bottom: 4px; }
.nm-list.checklist li { list-style: none; padding-left: 4px; position: relative; }
.nm-list.checklist li::before { content: "✓"; color: #b91c1c; font-weight: 700; margin-right: 6px; }

.nm-next-card { background: #fef2f2; border: 1px solid #fecaca; }
.nm-next-card h2 { color: #991b1b !important; }

/* 响应式 */
@media (max-width: 900px) {
  .wr-type-grid, .wr-tone-grid { grid-template-columns: repeat(2, 1fr); }
  .wr-row, .nm-row { grid-template-columns: 1fr; }
  .nm-type-grid { grid-template-columns: repeat(2, 1fr); }
  .nm-style-grid { grid-template-columns: repeat(2, 1fr); }
  .nm-top-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   求职 Hub（resume_optimize + interview_mock 共用入口）
   ============================================================ */
.hub-header {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff; padding: 22px 24px 18px; border-radius: 14px;
  margin-bottom: 16px;
}
.hub-header h1 { margin: 0 0 6px; font-size: 24px; font-weight: 700; }
.hub-header .desc { font-size: 13px; opacity: .9; }

.hub-tabs {
  display: flex; gap: 8px; margin-bottom: 18px;
  border-bottom: 2px solid #e5e7eb; padding-bottom: 0;
}
.hub-tab {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 22px 14px; cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  font-weight: 600; color: #6b7280; transition: all .15s;
  border-radius: 8px 8px 0 0;
}
.hub-tab:hover { background: #f8fafc; color: #1f2937; }
.hub-tab.active {
  color: #4f46e5; border-bottom-color: #4f46e5;
  background: linear-gradient(180deg, #eef2ff 0%, #fff 100%);
}
.hub-tab.locked { opacity: .72; }
.hub-tab .ic { font-size: 18px; }
.hub-tab .label { font-size: 15px; }
.hub-tab .quota {
  font-size: 11px; padding: 2px 8px; border-radius: 10px;
  background: #f1f5f9; color: #475569; font-weight: 500;
}
.hub-tab.active .quota { background: #4f46e5; color: #fff; }
.hub-tab.locked .quota { background: #fef3c7; color: #92400e; }

.hub-locked-card {
  text-align: center; padding: 50px 30px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #fbbf24;
}
.hub-locked-card .lk-icon { font-size: 56px; margin-bottom: 14px; }
.hub-locked-card h2 { color: #92400e !important; margin: 8px 0 12px; }
.hub-locked-card p { color: #78350f; font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.hub-locked-card button { padding: 12px 28px; font-size: 15px; }

/* ============================================================
   面试模拟（interview_mock） - im-*
   主色：教练蓝紫 #4f46e5 + 强调橙 #ea580c
   ============================================================ */

/* 轮次 4 卡 */
.im-round-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 6px; }
.im-round-card {
  border: 2px solid #e5e7eb; border-radius: 10px; padding: 14px 12px;
  cursor: pointer; transition: all .15s; background: #fff; text-align: center;
}
.im-round-card:hover { border-color: #c7d2fe; transform: translateY(-1px); }
.im-round-card.active {
  border-color: #4f46e5; background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  box-shadow: 0 2px 8px rgba(79,70,229,.15);
}
.im-round-card .icon { font-size: 24px; margin-bottom: 4px; }
.im-round-card .label { font-size: 14px; font-weight: 700; color: #1e293b; }
.im-round-card .desc { font-size: 11px; color: #64748b; line-height: 1.5; margin-top: 4px; }

/* 等级 chip */
.im-level-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.im-level-card {
  padding: 8px 16px; border: 2px solid #e5e7eb; border-radius: 20px;
  cursor: pointer; font-size: 13px; color: #4b5563; background: #fff;
  transition: all .15s;
}
.im-level-card:hover { border-color: #c7d2fe; }
.im-level-card.active { background: #4f46e5; color: #fff; border-color: #4f46e5; }

/* 双输入行 */
.im-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.im-row input { width: 100%; }

/* Hero */
.im-hero {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ea580c 100%);
  color: #fff; padding: 22px; border-radius: 14px; margin-bottom: 18px;
  box-shadow: 0 6px 20px rgba(79,70,229,.25);
}
.im-summary { font-size: 16px; font-weight: 600; line-height: 1.6; margin-bottom: 14px; }
.im-strategy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.im-strategy .strat-item {
  background: rgba(255,255,255,.12); border-radius: 8px; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.im-strategy .strat-item b { font-size: 12px; font-weight: 700; opacity: .95; color: #fde68a; }
.im-strategy .strat-item span { font-size: 12px; line-height: 1.6; opacity: .92; }

/* 题目卡 */
.im-q-list { display: flex; flex-direction: column; gap: 14px; }
.im-q-card {
  background: #fff; border: 1px solid #e5e7eb; border-left: 4px solid #4f46e5;
  border-radius: 8px; padding: 16px 18px; transition: box-shadow .15s;
}
.im-q-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.im-q-card .q-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
  padding-bottom: 8px; border-bottom: 1px dashed #e5e7eb;
}
.im-q-card .q-no {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 28px; padding: 0 8px;
  background: #4f46e5; color: #fff; font-size: 12px; font-weight: 700;
  border-radius: 6px;
}
.im-q-card .q-cat {
  display: inline-block; padding: 3px 10px; font-size: 11px;
  background: #fef3c7; color: #92400e; border-radius: 10px; font-weight: 600;
}
.im-q-card .q-text {
  font-size: 15px; font-weight: 600; color: #1e293b; line-height: 1.6;
  margin-bottom: 10px;
}
.im-q-card .q-intent,
.im-q-card .q-framework,
.im-q-card .q-followup {
  font-size: 12px; color: #475569; line-height: 1.6; margin-bottom: 4px;
}
.im-q-card .q-intent b { color: #0e7490; }
.im-q-card .q-framework b { color: #6d28d9; }
.im-q-card .q-followup b { color: #be185d; }
.im-q-card .q-answer-block {
  margin: 10px 0 8px; padding: 12px 14px; background: #f0fdf4;
  border-left: 3px solid #16a34a; border-radius: 6px; position: relative;
}
.im-q-card .ans-label { font-size: 12px; font-weight: 700; color: #15803d; margin-bottom: 6px; }
.im-q-card .ans-text { font-size: 13px; line-height: 1.8; color: #14532d; white-space: pre-wrap; }
.im-q-card .q-traps {
  margin-top: 10px; padding: 10px 14px; background: #fff7ed;
  border-left: 3px solid #ea580c; border-radius: 6px;
}
.im-q-card .q-traps .traps-label { font-size: 12px; font-weight: 700; color: #c2410c; margin-bottom: 4px; }
.im-q-card .q-traps ul { margin: 0; padding-left: 18px; }
.im-q-card .q-traps li { font-size: 12px; color: #9a3412; line-height: 1.6; margin-bottom: 2px; }

/* 反问列表 */
.im-yq-list { display: flex; flex-direction: column; gap: 8px; }
.im-yq-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: #f8fafc; border-radius: 6px;
  border-left: 3px solid #6d28d9;
}
.im-yq-row .num {
  width: 22px; height: 22px; background: #6d28d9; color: #fff;
  font-size: 11px; font-weight: 700; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.im-yq-row .text { flex: 1; font-size: 13px; line-height: 1.6; color: #1e293b; }

/* 复制按钮 */
.im-copy-btn {
  padding: 5px 12px; font-size: 12px; background: #4f46e5; color: #fff;
  border: none; border-radius: 4px; cursor: pointer; transition: all .15s;
}
.im-copy-btn:hover { background: #4338ca; }
.im-copy-btn.small { padding: 3px 10px; font-size: 11px; }
.im-copy-btn.copied { background: #10b981 !important; }
.im-q-card .im-copy-btn { margin-top: 8px; }

/* 谈判要点 */
.im-nego {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #fbbf24; border-radius: 8px;
  padding: 14px 18px; font-size: 13px; line-height: 1.8; color: #78350f;
}

/* 评分标准三栏 */
.im-rubric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.im-rubric-grid .rubric-item {
  padding: 14px 16px; border-radius: 8px; border-left: 4px solid;
}
.im-rubric-grid .expert    { background: #f0fdf4; border-left-color: #16a34a; }
.im-rubric-grid .competent { background: #eff6ff; border-left-color: #2563eb; }
.im-rubric-grid .below     { background: #fef2f2; border-left-color: #dc2626; }
.im-rubric-grid .rb-label  { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.im-rubric-grid .expert    .rb-label { color: #15803d; }
.im-rubric-grid .competent .rb-label { color: #1d4ed8; }
.im-rubric-grid .below     .rb-label { color: #b91c1c; }
.im-rubric-grid .rb-text { font-size: 12px; line-height: 1.6; color: #374151; }

/* 红旗卡片 */
.im-redflag-card { background: #fff7ed; border: 1px solid #fed7aa; }
.im-redflag-card h2 { color: #c2410c !important; }

/* 列表 */
.im-list { padding-left: 22px; margin: 0; }
.im-list li { font-size: 14px; line-height: 1.8; color: #374151; margin-bottom: 4px; }
.im-list.checklist li { list-style: none; padding-left: 4px; position: relative; }
.im-list.checklist li::before { content: "□"; color: #4f46e5; font-weight: 700; margin-right: 6px; }

/* 响应式 */
@media (max-width: 900px) {
  .hub-tabs { gap: 2px; }
  .hub-tab { padding: 10px 12px; }
  .hub-tab .label { font-size: 13px; }
  .hub-tab .quota { font-size: 10px; padding: 1px 6px; }
  .im-round-grid { grid-template-columns: repeat(2, 1fr); }
  .im-row { grid-template-columns: 1fr; }
  .im-strategy { grid-template-columns: 1fr; }
  .im-rubric-grid { grid-template-columns: 1fr; }
}
