/* ===== TK标题改写模块样式 ===== */

.tktitle-page {
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  padding-bottom: 40px;
}

/* 顶部提示 */
.tktitle-tip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(99,102,241,.06), rgba(139,92,246,.06));
  border: 1px solid rgba(99,102,241,.15);
  border-radius: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* 上传区域 */
.tktitle-upload-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
}

.tktitle-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tktitle-dropzone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: rgba(99,102,241,.02);
}

.tktitle-dropzone:hover,
.tktitle-dropzone.drag-over {
  border-color: var(--primary);
  background: rgba(99,102,241,.06);
}

.tktitle-dropzone-icon {
  font-size: 36px;
  margin-bottom: 10px;
}

.tktitle-dropzone-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.tktitle-dropzone-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.tktitle-file-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(46,204,113,.06);
  border: 1px solid rgba(46,204,113,.15);
  border-radius: 10px;
  margin-top: 14px;
}

.tktitle-file-name {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}

.tktitle-file-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.tktitle-file-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color .2s;
}

.tktitle-file-remove:hover {
  color: var(--red);
}

/* 操作栏 */
.tktitle-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.tktitle-actions .btn {
  min-width: 140px;
}

/* 进度条 */
.tktitle-progress-wrap {
  margin-bottom: 24px;
}

.tktitle-progress-bar-bg {
  width: 100%;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.tktitle-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--purple));
  border-radius: 4px;
  transition: width .3s;
  width: 0%;
}

.tktitle-progress-text {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}

/* 结果表格 */
.tktitle-result-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
}

.tktitle-table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}

.tktitle-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.tktitle-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.tktitle-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  color: var(--text-primary);
  vertical-align: top;
}

.tktitle-table tr:hover td {
  background: rgba(99,102,241,.03);
}

.tktitle-table .col-index {
  width: 50px;
  color: var(--text-muted);
  text-align: center;
}

.tktitle-table .col-shop {
  width: 120px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tktitle-table .col-title {
  min-width: 200px;
  line-height: 1.5;
}

.tktitle-table .col-new {
  min-width: 200px;
  line-height: 1.5;
}

.tktitle-table .col-status {
  width: 80px;
  text-align: center;
}

.tktitle-status-done {
  color: var(--green);
  font-weight: 500;
  font-size: 12px;
}

.tktitle-status-wait {
  color: var(--text-muted);
  font-size: 12px;
}

.tktitle-status-fail {
  color: var(--orange);
  font-size: 12px;
}

.tktitle-status-running {
  color: var(--primary);
  font-size: 12px;
}

/* 空状态 */
.tktitle-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

.tktitle-empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
}
