/* style.css */

/* ===== CSS 变量 ===== */
:root {
  --black: #0A0A0A;
  --white: #F5F5F0;
  --blue: #2D5BE3;
  --blue-light: #EEF2FF;
  --gray: #888;
  --gray-light: #E8E8E4;
  --border: #DDDDD8;
  --red: #D94040;
  --green: #1A7A4A;
  --yellow: #B07D00;
  --yellow-bg: #FFFBEA;
  --orange: #D4651A;
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', 'PingFang SC', 'Helvetica Neue', system-ui, sans-serif;
  --radius: 6px;
}

/* ===== 基础重置 ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  background: var(--white);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
}

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
}

textarea {
  font-family: var(--font);
  resize: none;
  outline: none;
}

/* ===== 工具类 ===== */
.hidden {
  display: none !important;
}

/* ===== 选择页 ===== */
#page-select {
  display: flex;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* 四角标 */
.corner-mark {
  position: absolute;
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 600;
  z-index: 20;
  pointer-events: none;
}
.corner-tl {
  top: 18px;
  left: 20px;
  color: rgba(245, 245, 240, 0.4);
}
.corner-tr {
  top: 18px;
  right: 20px;
  color: rgba(10, 10, 10, 0.3);
}

.split {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 80px 64px 52px;
  cursor: pointer;
  transition: flex var(--transition);
  overflow: hidden;
  user-select: none;
  position: relative;
}

/* 右侧内容全部右对齐 */
.split-right {
  align-items: flex-end;
  text-align: right;
}

/* 网格背景 — 格子 80px，比原来疏一倍 */
.split-left {
  background-color: var(--black);
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(255,255,255,0.045) 79px, rgba(255,255,255,0.045) 80px),
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(255,255,255,0.045) 79px, rgba(255,255,255,0.045) 80px);
  color: var(--white);
  border-right: 1px solid #1a1a1a;
}

.split-right {
  align-items: flex-end;
  text-align: right;
  background-color: var(--white);
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(0,0,0,0.038) 79px, rgba(0,0,0,0.038) 80px),
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(0,0,0,0.038) 79px, rgba(0,0,0,0.038) 80px);
  color: var(--black);
  border-left: 1px solid var(--border);
}

.split-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  opacity: 0.35;
  margin-bottom: 20px;
  font-weight: 600;
}

.split-title {
  font-size: clamp(100px, 16vw, 220px);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  white-space: nowrap;
}

.split-caption {
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 600;
  opacity: 0.3;
  margin-bottom: 32px;
}

.split-desc {
  font-size: 13px;
  line-height: 1.75;
  opacity: 0.55;
  margin-bottom: 32px;
  max-width: 240px;
}

/* 右侧说明文案右对齐 */
.split-right .split-desc {
  text-align: right;
}

.split-cta {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition);
  cursor: pointer;
  font-family: var(--font);
}

.split-cta-filled {
  background: var(--blue);
  color: #fff;
  border: none;
}

.split-cta-outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--black);
}

/* 顶部品牌区 */
.select-brand {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
  z-index: 30;
  pointer-events: none;
}

.select-brand-dot {
  width: 14px;
  height: 14px;
  background: var(--blue);
  flex-shrink: 0;
}

.select-brand-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--gray);
  opacity: 0.7;
}

.split:hover .split-cta {
  opacity: 1;
  transform: translateY(0);
}

/* Flex 伸缩 */
#page-select:has(.split-left:hover) .split-left  { flex: 1.22; }
#page-select:has(.split-left:hover) .split-right { flex: 0.78; }
#page-select:has(.split-right:hover) .split-right { flex: 1.22; }
#page-select:has(.split-right:hover) .split-left  { flex: 0.78; }

/* 底部居中提示 */
.select-hint {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.18em;
  opacity: 0.25;
  color: var(--black);
  pointer-events: none;
  white-space: nowrap;
}

/* ===== 工具页 ===== */
#page-tool {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* 顶部导航栏 */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  flex-shrink: 0;
  gap: 16px;
  z-index: 10;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-back {
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity var(--transition);
  letter-spacing: -0.01em;
}
.nav-back:hover { opacity: 1; }

/* 导航品牌 */
.nav-brand-dot {
  width: 10px;
  height: 10px;
  background: var(--blue);
  flex-shrink: 0;
  display: inline-block;
}

.nav-brand-name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--black);
}

.nav-beta {
  font-size: 9px;
  letter-spacing: 0.12em;
  opacity: 0.3;
  font-weight: 700;
  margin-top: 1px;
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--gray-light);
  border-radius: 20px;
  padding: 3px;
}

.tab-btn {
  padding: 4px 16px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.tab-btn.active {
  background: var(--black);
  color: var(--white);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-version {
  font-size: 10px;
  letter-spacing: 0.06em;
  opacity: 0.3;
  font-weight: 500;
}

/* 设置按钮 */
.btn-settings {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gray-light);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--gray);
  transition: background var(--transition), color var(--transition);
}
.btn-settings:hover {
  background: var(--black);
  color: var(--white);
}

/* 绿点：已配置 Key */
.settings-dot {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  border: 1.5px solid var(--white);
  display: none;
}
.settings-dot.active {
  display: block;
}

/* 主内容区 */
.main-content {
  flex: 1;
  overflow-y: auto;
  scroll-behavior: smooth;
}

/* ===== 输入区 ===== */
.input-section {
  display: flex;
  flex-direction: column;
  padding: 0 0 0;
  border-bottom: 1px solid var(--border);
  min-height: calc(100vh - 48px);
}

/* 标题区 */
.input-hero {
  padding: 40px 48px 24px;
  border-bottom: 1px solid var(--border);
}

.input-hero-step {
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 700;
  opacity: 0.35;
  margin-bottom: 8px;
  font-family: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;
}

.input-hero-title {
  font-size: clamp(56px, 7vw, 88px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--black);
  margin-bottom: 16px;
}

.input-hero-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--black);
  opacity: 0.55;
  max-width: 560px;
}

/* 输入主体 */
.input-body {
  display: flex;
  flex: 1;
  min-height: 0;
}

/* 左侧辅助标尺 */
.input-ruler {
  width: 48px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  gap: 8px;
}

.ruler-label {
  font-size: 9px;
  letter-spacing: 0.18em;
  font-weight: 700;
  opacity: 0.3;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.ruler-divider {
  width: 1px;
  flex: 1;
  background: var(--blue);
  opacity: 0.25;
  min-height: 20px;
  max-height: 60px;
}

.ruler-rows {
  font-size: 9px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--blue);
  opacity: 0.55;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.input-row {
  display: grid;
  grid-template-columns: 62% 38%;
  gap: 0;
  flex: 1;
  min-height: 0;
}

.input-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--border);
}
.input-col:last-child {
  border-right: none;
}

/* field 标题栏 */
.field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.field-tag {
  font-size: 9px;
  letter-spacing: 0.16em;
  font-weight: 700;
  opacity: 0.3;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.field-name {
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--black);
  opacity: 0.75;
}

.field-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.field-count {
  font-size: 10px;
  opacity: 0.4;
  font-variant-numeric: tabular-nums;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.field-count.warn { color: var(--yellow); opacity: 1; }
.field-count.error { color: var(--red); opacity: 1; }

.field-sep {
  font-size: 10px;
  opacity: 0.25;
  letter-spacing: 0.04em;
}

/* 底部操作区 */
.input-footer {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 16px 0 0;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.input-footer-left {
  display: flex;
  align-items: center;
  padding-left: 48px; /* 与标尺等宽对齐 */
  padding-right: 20px;
  border-right: 1px solid var(--border);
  height: 100%;
}

.input-footer-center {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
}

.footer-scroll-hint {
  font-size: 10px;
  letter-spacing: 0.08em;
  opacity: 0.25;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  white-space: nowrap;
}

.input-footer-right {
  display: flex;
  align-items: center;
}

.section-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 700;
  opacity: 0.4;
  margin-bottom: 12px;
}

.textarea-main {
  flex: 1;
  width: 100%;
  min-height: 0;
  padding: 16px 18px;
  border: none;
  border-radius: 0;
  background: var(--white);
  font-size: 14px;
  line-height: 1.75;
  color: var(--black);
  transition: background var(--transition);
  overflow-y: auto;
  resize: none;
}

.textarea-main:focus {
  outline: none;
  background: #FAFAF8;
}

.textarea-main::placeholder {
  color: #BBBBAA;
  line-height: 1.75;
}

/* 按钮行（旧，保留兼容） */
.btn-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.btn-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-row-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ready-indicator {
  font-size: 11px;
  opacity: 0.45;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.ready-indicator.has-data {
  opacity: 0.7;
  color: var(--black);
}

/* ===== 按钮样式 ===== */
.btn-ghost {
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  background: transparent;
  transition: border-color var(--transition), background var(--transition);
  white-space: nowrap;
}

.btn-ghost:hover {
  border-color: var(--black);
  background: var(--gray-light);
}

.btn-primary {
  padding: 8px 24px;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: opacity var(--transition);
  white-space: nowrap;
}

.btn-primary:hover {
  opacity: 0.82;
}

.btn-primary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* 分析按钮：更突出 */
.btn-analyze {
  height: 56px;
  padding: 0 32px;
  font-size: 14px;
  border-radius: 0;
  letter-spacing: 0.03em;
}

.btn-sm {
  padding: 5px 12px;
  font-size: 12px;
}

.btn-danger {
  color: var(--red);
  border-color: var(--red);
}

.btn-danger:hover {
  background: rgba(217, 64, 64, 0.08);
  border-color: var(--red);
}

/* ===== 输出区 ===== */
.output-section {
  min-height: calc(100vh - 48px);
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* 空态 */
.state-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 48px;
}

.empty-hint {
  text-align: center;
}

.empty-hint-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 700;
  opacity: 0.25;
  margin-bottom: 12px;
}

.empty-hint-text {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.8;
}

/* 加载中 */
.state-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 48px;
}

.loading-inner {
  text-align: center;
}

.loading-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#loading-text {
  font-size: 14px;
  color: var(--gray);
  letter-spacing: 0.02em;
}

/* 进度条容器 */
.progress-container {
  margin-top: 24px;
  width: 400px;
}

.progress-bar {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0;
  height: 32px;
  overflow: hidden;
  margin-bottom: 12px;
}

/* 连续填充条（主体） */
.progress-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: #4169E1;
  transition: width 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
  z-index: 1;
  overflow: hidden;
}

/* 脉冲效果（从左到右的光波） */
.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    left: -100%;
  }
  100% {
    left: 200%;
  }
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--gray);
}

.progress-percent {
  font-weight: 600;
  color: var(--blue);
  font-size: 14px;
}

.progress-eta {
  font-size: 12px;
  color: var(--gray);
}

/* 结果区 */
.state-result {
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.result-layout {
  display: flex;
  flex: 1;
  min-height: 0;
}

/* 左侧辅助标尺（结果区） */
.result-ruler {
  width: 48px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  gap: 8px;
}

.result-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* 标题区 */
.result-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}

.result-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-section-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gray);
  opacity: 0.55;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  margin-bottom: 4px;
}

.result-title {
  font-size: clamp(56px, 7vw, 88px);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--black);
  line-height: 0.9;
}

.result-desc {
  font-size: 13px;
  color: #666;
  margin-top: 6px;
  letter-spacing: 0.01em;
}

.result-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

/* 主按钮 */
.btn-primary {
  background: var(--black);
  color: #fff;
  border: 1.5px solid var(--black);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: opacity var(--transition);
  white-space: nowrap;
}
.btn-primary:hover { opacity: 0.75; }

/* ===== 表格 ===== */
.table-wrapper {
  overflow-x: auto;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

#result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

#result-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
}

#result-table thead th {
  padding: 12px 20px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.45;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

#result-table tbody tr {
  border-bottom: 1px solid var(--gray-light);
  transition: background var(--transition);
}

#result-table tbody tr:hover {
  background: #F0F4FF;
}

#result-table tbody td {
  padding: 18px 20px;
  vertical-align: top;
  line-height: 1.6;
}

/* L1=No 行灰显 */
.row-no-match td {
  color: var(--gray);
  opacity: 0.7;
}

/* 序号列 */
.td-index {
  font-size: 11px;
  opacity: 0.4;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ===== 新列类型 ===== */

/* name-v2: 岗位名称 + 公司 sub */
.name-v2-main {
  font-weight: 600;
  font-size: 13px;
  display: block;
  min-width: 120px;
  max-width: 200px;
}
.name-v2-sub {
  font-size: 11px;
  color: var(--gray);
  opacity: 0.75;
  display: block;
  margin-top: 2px;
  font-weight: 400;
}

/* score-v2: 大号有色数字 + 匹配标签 + 关键词 */
.score-v2-wrap {
  white-space: nowrap;
  min-width: 120px;
}
.score-v2-top {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 6px;
}
.score-v2-slash {
  font-size: 13px;
  font-weight: 400;
  color: var(--gray);
  opacity: 0.6;
  align-self: flex-end;
  padding-bottom: 2px;
}
.score-v2-num {
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.score-v2-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 1px 6px;
  border-radius: 3px;
}
.score-v2-kw {
  font-size: 10px;
  color: var(--gray);
  opacity: 0.7;
}
.score-v2-na {
  font-size: 11px;
  color: var(--gray);
  opacity: 0.5;
}

/* score 颜色 — 高分蓝，其余黑/灰 */
.score-orange { color: var(--blue); }
.score-orange .score-v2-badge { background: var(--blue-light); color: var(--blue); }
.score-green  { color: var(--black); }
.score-green .score-v2-badge  { background: var(--gray-light); color: var(--black); }
.score-blue   { color: var(--blue); }
.score-blue .score-v2-badge   { background: var(--blue-light); color: var(--blue); }
.score-gray   { color: var(--gray); }
.score-gray .score-v2-badge   { background: var(--gray-light); color: var(--gray); }

/* 旧 score 兼容 */
.score-high { color: var(--green); }
.score-mid  { color: var(--yellow); }
.score-low  { color: var(--red); }

/* dimension: 核心维度单行 */
.td-dimension {
  font-size: 12px;
  color: var(--gray);
  min-width: 140px;
  max-width: 220px;
}

/* req-dots: X/N + 方块 */
.req-dots-wrap {
  white-space: nowrap;
  min-width: 80px;
}
.req-dots-count {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.6;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.req-dots-row {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
}
.req-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}
.req-dot-matched { background: var(--green); opacity: 0.8; }
.req-dot-unmatched { background: var(--gray-light); }
/* No 行全灰 */
.row-no-match .req-dot-matched { background: var(--gray-light); opacity: 1; }

/* action-v2: 深入方框按钮 */
.btn-detail-v2 {
  font-size: 12px;
  font-weight: 600;
  color: var(--black);
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--transition), background var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-detail-v2:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
}

/* Tag 标签 — 风险点/能力改成文本列表 */
.td-tags {
  min-width: 120px;
  max-width: 220px;
}

.tag {
  display: block;
  font-size: 12px;
  color: var(--black);
  line-height: 1.7;
  padding: 0;
  background: none;
  border-radius: 0;
  margin: 0;
  white-space: normal;
}
.tag::before {
  content: '·  ';
  color: var(--gray);
}

.btn-detail-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.empty-val {
  color: var(--gray);
  opacity: 0.4;
}

/* role: 岗位定位单行描述 */
.td-role {
  font-size: 12px;
  color: var(--gray);
  min-width: 140px;
  max-width: 240px;
  line-height: 1.55;
  display: block;
}

/* hard-reqs: 硬门槛 bullet list */
.td-hard-reqs {
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 140px;
  max-width: 240px;
}
.td-hard-reqs li {
  font-size: 12px;
  line-height: 1.6;
  color: var(--black);
  padding-left: 10px;
  position: relative;
}
.td-hard-reqs li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--gray);
}
.td-hard-reqs .td-more {
  color: var(--gray);
  opacity: 0.6;
  font-size: 11px;
}

/* ability: 能力 tag 列表 */
.td-ability {
  min-width: 120px;
  max-width: 220px;
}

/* text: 纯文本列 */
.td-text {
  font-size: 12px;
  color: var(--black);
  min-width: 100px;
  max-width: 180px;
  display: block;
}

/* ===== 抽屉 ===== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.38);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.drawer-overlay.drawer-open {
  opacity: 1;
  visibility: visible;
}

#drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 42vw;
  min-width: 480px;
  max-width: 760px;
  height: 100vh;
  background: #FAFAF8;
  border-left: 1px solid var(--border);
  z-index: 1000;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--transition), visibility var(--transition);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#drawer.drawer-open {
  transform: translateX(0);
  visibility: visible;
}

/* 抽屉 header */
.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: #FAFAF8;
}

.drawer-header-left {
  flex: 1;
  min-width: 0;
}

.drawer-dive-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--blue);
  opacity: 0.75;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.drawer-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--black);
}

.drawer-subtitle {
  font-size: 12px;
  color: var(--gray);
  margin-top: 4px;
}

/* 关闭按钮：圆形描边 */
.drawer-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--gray);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 16px;
  margin-top: 2px;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.drawer-close-btn:hover {
  border-color: var(--black);
  color: var(--black);
  background: var(--gray-light);
}

/* 兼容旧 settings 关闭按钮 */
.drawer-close {
  font-size: 16px;
  color: var(--gray);
  padding: 4px 8px;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
  margin-left: 12px;
}
.drawer-close:hover {
  background: var(--gray-light);
  color: var(--black);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 24px 40px;
}

/* ===== 总分卡片 ===== */
.dc-score-card {
  display: flex;
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 28px;
  align-items: flex-start;
}

.dc-score-left {
  flex-shrink: 0;
  text-align: center;
  min-width: 90px;
}

.dc-score-num {
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.dc-score-sub {
  font-size: 10px;
  color: var(--gray);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

.dc-score-right {
  flex: 1;
  min-width: 0;
}

.dc-score-dimension {
  font-size: 13px;
  color: var(--black);
  line-height: 1.55;
  margin-bottom: 6px;
  font-weight: 500;
}

.dc-score-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

/* 分项评分条 */
.dc-bars {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.dc-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dc-bar-name {
  font-size: 10px;
  color: var(--gray);
  min-width: 90px;
  flex-shrink: 0;
  letter-spacing: 0.01em;
}

.dc-bar-track {
  flex: 1;
  height: 3px;
  background: var(--gray-light);
  border-radius: 2px;
  overflow: hidden;
}

.dc-bar-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.dc-bar-val {
  font-size: 10px;
  font-weight: 700;
  color: var(--blue);
  min-width: 22px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ===== A-E 分区 ===== */
.dc-section {
  margin-bottom: 24px;
}

.dc-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.dc-section-letter {
  font-size: 11px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 0.06em;
  flex-shrink: 0;
  opacity: 0.7;
}

.dc-section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.dc-section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.dc-section-body {
  padding-left: 0;
}

/* bullet list */
.dc-bullet {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dc-bullet li {
  font-size: 13px;
  line-height: 1.65;
  color: var(--black);
  padding-left: 14px;
  position: relative;
}

.dc-bullet li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

/* 链接框 */
.dc-link-box {
  display: inline-block;
  font-size: 12px;
  color: var(--blue);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 12px;
  word-break: break-all;
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition);
  max-width: 100%;
}
.dc-link-box:hover {
  border-color: var(--blue);
  background: var(--blue-light);
}

/* 无链接占位 */
.dc-no-link {
  font-size: 12px;
  color: var(--gray);
  opacity: 0.6;
  font-style: italic;
}

/* 空值 */
.dc-empty {
  font-size: 12px;
  color: var(--gray);
  opacity: 0.4;
}

/* 初步判断 */
.dc-judgment {
  font-size: 13px;
  line-height: 1.7;
  color: var(--black);
  background: var(--blue-light);
  border-radius: var(--radius);
  padding: 12px 16px;
  border-left: 3px solid var(--blue);
}

/* ===== 旧 drawer section 兼容保留 ===== */
.drawer-section {
  margin-bottom: 20px;
}

.drawer-section-title {
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 700;
  opacity: 0.4;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.drawer-section-content {
  font-size: 13px;
  line-height: 1.7;
  color: var(--black);
}

.drawer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.drawer-judgment-old {
  background: #F8F8F4;
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.7;
  border-left: 3px solid var(--blue);
}

.drawer-nextsteps {
  background: var(--blue-light);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.7;
  border-left: 3px solid var(--blue);
  color: var(--black);
}

/* ===== 设置 Modal ===== */
.settings-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.45);
  z-index: 1100;
}

.settings-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  max-width: 94vw;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  z-index: 1200;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
}

.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.settings-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.settings-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 700;
  opacity: 0.5;
  text-transform: uppercase;
}

.settings-input {
  font-family: var(--font);
  font-size: 13px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--black);
  outline: none;
  transition: border-color var(--transition);
}

.settings-input:focus {
  border-color: var(--black);
}

.settings-hint {
  font-size: 11px;
  color: var(--gray);
  opacity: 0.75;
  line-height: 1.5;
}

.settings-save {
  align-self: flex-end;
  margin-top: 4px;
}

/* ===== Toast ===== */
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--black);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 2000;
  white-space: nowrap;
}

#toast.toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== 警告提示 ===== */
.warn-banner {
  background: var(--yellow-bg);
  border: 1px solid #E8D080;
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 12px;
  color: var(--yellow);
  margin-top: 8px;
}

/* ===== 响应式（仅限桌面端 DEMO）===== */
@media (max-width: 768px) {
  .input-row {
    grid-template-columns: 1fr;
  }

  .split-title {
    font-size: 60px;
  }

  #drawer {
    width: 100vw;
    max-width: 100vw;
  }

  .settings-modal {
    width: 94vw;
  }
}
