/* ====================== 全局变量与基础样式 ====================== */

/* 全局颜色变量定义 */
:root {
    --primary: #0084ff;         /* 主色调 */
    --primary-hover: #0066cc;   /* 主色调悬停状态 */
    --sidebar-bg: #f8f9fa;      /* 侧边栏背景 */
    --border-color: #e0e0e0;    /* 边框颜色 */
    --text-primary: #333;       /* 主要文字颜色 */
    --bg-primary: #fff;         /* 主要背景色 */
}

/* 暗黑模式变量覆盖 */
.dark-mode {
    --sidebar-bg: #2d2d2d;
    --border-color: #404040;
    --text-primary: #e5e5e5;
    --bg-primary: #18191a;
    --primary: #3a6df7;
}

/* 基础布局样式 */
.container {
    max-width: 80vw;
    padding: 20px 15px;
    overflow-x: hidden;
    margin: 0 auto;
}

/* ====================== 头部与导航 ====================== */

/* 页面头部样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    font-size: 32px;
    color: var(--primary);
}

/* 统计栏 */
.stats-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.backup-info {
    margin-left: 20px;
    font-size: 0.9em;
    color: var(--text-primary);
    opacity: 0.8;
}

.backup-info i {
    margin-right: 5px;
}


/* ====================== 侧边栏样式 ====================== */

/* 左右布局容器 */
.layout-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    margin-top: 20px;
}

/* 侧边栏主体样式 */
.sidebar {
    background: var(--sidebar-bg);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

/* 侧边栏模块样式 */
.sidebar-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-section h3 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
}

/* 侧边栏按钮 */
.btn-block {
    width: 100%;
    margin-bottom: 10px;
    justify-content: start;
}

/* 搜索框 */
.search-box {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.search-box select {
    flex: 0 0 auto;
    width: 110px;
    border: none;
    border-right: 1px solid var(--border-color);
    background: var(--sidebar-bg);
    padding: 8px 12px;
    border-radius: 4px;
}

.search-box input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: transparent;
}

.search-box input:focus {
    border: 1px solid #d9dcff;
}

/* 自定义焦点样式 */
input:focus-visible {
    outline: none;
    border: 2px solid #4a90e2;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
}


/* ====================== 主内容区域样式 ====================== */

.main-content {
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 操作按钮区域 */
.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* 筛选面板 */
.filter-panel {
    background-color: rgba(0,0,0,0.03);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.filter-control {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

/* 数据表格样式 */
.grid-header {
    display: grid;
    grid-template-columns: 40px 1.5fr 1fr 1fr 1.2fr 1.3fr 90px 120px 100px 80px;
    padding: 12px 15px;
    background: rgba(var(--primary), 0.08);
    font-weight: 500;
    gap: 15px;
}

.grid-row {
    display: grid;
    grid-template-columns: 40px 1.5fr 1fr 1fr 1.2fr 1.3fr 90px 120px 100px 80px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    gap: 15px;
    align-items: center;
}

.grid-row > div[data-label="到期时间"] {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* 特殊行样式 */
.new-row {
    border-left: 3px solid #28a745;
    border-radius: 12px;
}

.modified-row {
    border-left: 3px solid #0084ff;
    border-radius: 12px;
}

.dark-mode .new-row {
    border-left-color: #2c9043;
}

.dark-mode .modified-row {
    border-left-color: #3a6df7;
}

/* 无数据/加载状态 */
.no-data {
    text-align: center;
    padding: 20px;
    color: #888;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #0084ff;
}

/* 文件列表样式 */
#fileList {
    max-height: 60vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
}

.file-item {
    padding: 12px;
    margin: 8px 0;
    background: rgba(var(--primary), 0.05);
    border-radius: 6px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.file-item:hover {
    background-color: rgba(var(--primary), 0.1);
}

.file-item label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: var(--text-primary);
}

.file-item label::after {
    content: attr(data-time);
    margin-left: auto;
    font-size: 0.9em;
    color: var(--primary);
}

.file-item input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}


/* ====================== 表单控件样式 ====================== */

.form-group {
    display: grid;
    gap: 12px;
    margin: 15px 0;
}

.form-group label {
    font-weight: 500;
    color: var(--primary);
}

.form-control {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
}

/* 批次文本框 */
.batch-textarea {
    min-height: 200px;
    padding: 12px;
    border-radius: 4px;
    background: transparent;
    resize: vertical;
    font-family: monospace;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.batch-textarea:focus {
    border-color: #0084ff;
    outline: none;
}

.batch-example {
    font-size: 0.85em;
    color: #666;
    margin-top: 5px;
    padding: 10px;
    background: rgba(var(--primary), 0.05);
    border-radius: 4px;
    line-height: 1.6;
}

.batch-example code {
    background: rgba(0,0,0,0.05);
    padding: 2px 4px;
    border-radius: 3px;
}


/* ====================== 按钮样式 ====================== */

.btn {
    padding: 8px 16px;
    border: 1px solid #6c757d;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    font-size: 0.9rem;
    justify-content: center;
}

.btn-primary {
    background: #F0F0F0;
    color: #000000;
}

.btn-primary:hover {
    background: #e0e0e0;
}

.btn-danger {
    background: #F0F0F0;
    color: #000000;
}

.btn-danger:hover {
    background: #e0e0e0;
}

.btn-success {
    background: #28a745;
    color: #ffffff;
}

.btn-success:hover {
    background: #2c9043;
    color: #ffffff;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* 小尺寸按钮 */
.btn-sm {
    padding: 4px 8px;
    font-size: 0.85em;
}

/* 删除按钮样式 */
.batch-delete-btn {
    background: #ff4757;
    color: white;
    border: none;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    float: right;
    margin-left: 10px;
}

.batch-delete-btn:hover {
    background: #ff6b81;
}

/* 关闭按钮 */
.close-btn {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #777;
    padding: 5px;
}

.close-btn:hover {
    color: #333;
}


/* 所有模态框头部统一样式 */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.3em;
  color: #333;
}


/* 生成选项模态框特定样式 */
#generateOptionsModal .modal-content {
  max-width: 400px;
}

.generate-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}

.generate-options button {
  padding: 15px;
  font-size: 16px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
}


/* ====================== 分页样式 ====================== */

.pagination {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
}

.page-btn {
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: transparent;
    min-width: 32px;
}

.page-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: transparent;
}


/* ====================== 通知消息样式 ====================== */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    background: #e3ffe3;
    color: #28a745;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateX(120%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 2000;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1em;
    font-weight: 500;
    max-width: 400px;
    border-left: 4px solid #28a745;
}

.notification::before {
    content: "✓";
    font-size: 1.3em;
}

.notification.error {
    background: #ffe3e3;
    color: #dc3545;
    border-left-color: #dc3545;
}

.notification.error::before {
    content: "✗";
}

/* 错误消息 */
.error-message {
    color: white;
    margin-bottom: 1rem;
    font-size: 0.9em;
}

.batch-error-message {
    color: #d9534f;
    font-size: 0.9em;
    padding: 5px 10px;
    border-radius: 4px;
    background-color: #f8d7da;
    margin-left: 20px;
    max-width: 300px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ====================== 模态框样式 ====================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.active {
    display: flex !important;
}

.modal-content {
    background: var(--bg-primary);
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
}

/* 批次管理模态框特殊尺寸 */
#batchListModal > .modal-content {
    max-width: 900px !important;
    width: 90vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

#createBatchModal > .modal-content {
    max-width: 800px;
    width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

/* 模态框操作按钮布局 */
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}


/* ====================== 状态标签样式 ====================== */

.status-tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
    text-align: center;
    min-width: 60px;
}

/* 处理状态样式 */
.status-pending {
    background-color: #ff9800;
    color: white;
}

.status-processing {
    background-color: #2196f3;
    color: white;
}

.status-completed {
    background-color: #4caf50;
    color: white;
}

/* IP状态样式 */
.ip-status {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
    background: #e0e0e0;
    color: #555;
	margin-left: auto;
}

.ip-status.pending {
    background: #ffeaa7;
    color: #d35400;
}

.ip-status.processing {
    background: #d6eaf8;
    color: #2980b9;
}

.ip-status.completed {
    background: #d5f5e3;
    color: #27ae60;
}

/* 到期状态样式 */
.status-normal {
    background-color: #4caf50;
    color: white;
}

.status-soon {
    background-color: #ff9800;
    color: white;
}

.status-expired {
    background-color: #f44336;
    color: white;
}


/* ====================== 进度条样式 ====================== */

.progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--primary);
    border-radius: 10px;
    transition: width 0.3s;
}

.progress-bar span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    color: #fff;
    text-shadow: 0 0 2px rgba(0,0,0,0.5);
}

.progress-container {
    margin-bottom: 12px 0;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #7f8c8d;
}


/* ====================== 批次管理页面样式 ====================== */

.batch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.batch-table-container {
    max-height: 60vh;
    overflow-y: auto;
    margin-bottom: 15px;
}

.batch-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.batch-table th, .batch-table td {
    padding: 10px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.batch-table th {
    background-color: rgba(var(--primary), 0.1);
    position: sticky;
    top: 0;
}

/* 批次卡片样式 */
.batch-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    font-family: 'Inter', system-ui, sans-serif;
    max-width: 420px;
    margin: 16px;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.batch-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.batch-card-header {
    padding: 15px 10px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #e0e0e0;
}


.batch-card-header h3 {
    font-size: 18px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.batch-card-header h3 i {
    font-size: 16px;
}

.batch-card-header .batch-date {
    font-size: 13px;
    opacity: 0.9;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.batch-card-body {
    padding: 20px;
    background: #ffffff;
}

.batch-stat {
    flex: 1;
    text-align: center;
    padding: 16px 12px;
    border-radius: 10px;
    background: #f8fbff;
    border: 1px solid #f0f5ff;
}

.batch-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}


.batch-stat-label {
	margin-top: 5px;
    font-size: 14px;
    color: #6a7c9b;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

/* 状态标签容器 */
.batch-status-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
   /* box-shadow: 0 4px 8px rgba(0,0,0,0.1);*/
    transition: all 0.3s ease;
    transform: translateY(0);
}

.batch-status-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}


/* 图标样式 */
.batch-status-tag i {
    font-size: 24px;
	margin-bottom: 5px;
}

/* 状态颜色 */
.batch-status-tag.status-pending {
   /* background: linear-gradient(135deg, #FFA726, #FF7043);*/
    background: none;
    color: #FF7043;
    margin-bottom: 6px;
}

.batch-status-tag.status-processing {
    /*background: linear-gradient(135deg, #42A5F5, #29B6F6);*/
	background: none;
    color: #29B6F6;
    margin-bottom: 6px;        
}

.batch-status-tag.status-completed {
    /* background: linear-gradient(135deg, #66BB6A, #43A047);*/
	background: none;
    color: #43A047;
    margin-bottom: 6px;
}

/* 批次选择框 */
.batch-checkbox {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* 批次操作按钮 */
.batch-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}


.batch-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	margin-top: 15px;
}

.batch-action-btn {
    background: none;
    border: none;
    border-radius: 8px;
    width: 34px;
    height: 34px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6a7c9b;
    font-size: 15px;
}


.batch-action-btn:hover {
    background: rgba(98, 125, 255, 0.08);
    color: #627dff;
	transform: translateY(-2px);
}

.delete-btn {
    color: #2196f3 !important;
    background: rgba(255, 112, 150, 0.06);
}

.delete-btn:hover {
    background: rgba(255, 112, 150, 0.1) !important;
}

.batch-action-btn.delete-btn {
    background: #fff;
    color: #dc2626 !important;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.batch-action-btn i {
    display: block;
    font-size: 16px;
}

/* 批次网格布局 */
.batch-grid-container {
    flex: 1;
    overflow-y: auto;
    margin-top: 15px;
    padding: 0 10px 10px 0;
}

.batch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.batch-title {
    flex: 1;
    min-width: 0;
}

.batch-title h3 {
    margin: 0;
    font-size: 18px;
    color: #343a40;
    display: flex;
    align-items: center;
    gap: 10px;
}

.batch-title i {
    color: #627dff;
    font-size: 18px;
    background: rgba(98, 125, 255, 0.08);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}


.batch-date {
    padding: 14px 22px;
    color: #6a7c9b;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border-bottom: 1px solid #f8fbff;
}

.processing-stat {
    background: #f0f7ff;
    border-color: #d9e5ff;
}

.processing-stat .batch-stat-value {
    color: #627dff;
}

.batch-actions-grid .batch-action-btn {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    border-radius: 8px;
    padding: 12px 6px;
    background: #f8fbff;
    color: #0084ff;
    transition: all 0.2s ease;
    border: 1px solid #f0f5ff;
}

.batch-actions-grid .batch-action-btn:hover {
    background: #627dff;
    color: white;
}

.batch-actions-grid .batch-action-btn span {
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
}

.batch-actions-grid .batch-action-btn.generate-btn {
    background: #f6fffb !important;
    color: #1fc898 !important;
    border-color: #e1ffd5 !important;
}

.batch-actions-grid .batch-action-btn.generate-btn:hover {
    background: #1fc898 !important;
    color: white !important;
}

.batch-actions-grid .batch-action-btn i {
    font-size: 18px;
  /*  margin-bottom: 4px;*/
}

/* ====================== 创建批次页面样式 ====================== */

.create-batch-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.batch-form-section, .batch-ip-section {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.batch-ip-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* IP选择器区域 */
.batch-ip-selector {
    flex: 1;
    overflow: auto;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 10px;
}

.batch-ip-container {
    min-height: 100px;
    max-height: 300px;
    padding: 10px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.batch-ip-item {
    padding: 8px;
    border-bottom: 1px solid var(--border-color);
}

.batch-ip-item:last-child {
    border-bottom: none;
}

.batch-ip-item label {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* IP列表区域 */
.batch-ip-list {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    max-height: 400px;
    background: #fcfcfc;
}

.ip-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #f1f1f1;
}

.ip-item:last-child {
    border-bottom: none;
}

.ip-item input {
    margin-right: 12px;
}

.ip-address {
    font-weight: 500;
    flex: 1;
}

/* 筛选条件样式 */
.batch-filter {
    background-color: rgba(0,0,0,0.03);
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.filter-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.filter-row label {
    width: 60px;
    flex-shrink: 0;
}

/* 快速选择工具栏 */
.quick-select-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.quick-select-toolbar .btn-sm {
    padding: 5px 10px;
    font-size: 0.8em;
}

.custom-select {
    display: flex;
    gap: 5px;
}

.custom-select input {
    width: 60px;
    padding: 5px;
}

/* IP统计 */
.ip-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.ip-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-weight: 500;
}

.ip-stats span {
    color: var(--primary);
}

.quick-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.batch-stats {
    font-size: 0.9em;
    color: #666;
	display: flex;
	gap: 6px;
    justify-content: space-between;
}


.batch-stats .processing-stat {
    color: #2196f3;
    font-weight: bold;
}

/* 批次描述框 */
#batchDescription {
    max-height: 150px;
    resize: vertical;
}


/* ====================== 导出选项样式 ====================== */

.export-options {
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(var(--primary), 0.05);
    border-radius: 8px;
}

.export-options h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary);
}

.export-scope {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.export-scope label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.export-fields {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}

.export-fields label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
}

.batch-export-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(var(--primary), 0.08);
    border-radius: 6px;
    font-weight: 500;
}


/* ====================== 设置页面样式 ====================== */

.settings-tabs {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    padding: 8px 15px;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    position: relative;
    bottom: -1px;
}

.tab-btn.active {
    border-bottom: 2px solid var(--primary);
    font-weight: bold;
}

.tab-content {
    display: none;
    padding: 10px 0;
}

.tab-content.active {
    display: block;
}

.quick-actions-select {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 15px;
}

.quick-actions-select label {
    display: flex;
    align-items: center;
    padding: 5px;
}

.quick-actions-select input {
    margin-right: 8px;
}

.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

/* 确保设置窗口在最顶层 */
#settingsModal {
    z-index: 1001;
}

/* 其他模态框在设置窗口之上 */
#ossConfigModal, #backupConfirmModal, #deleteModal, #ossFileModal, 
#addModal, #batchAddModal, #batchListModal, #createBatchModal, 
#changeBatchStatusModal, #batchMarkModal, #exportModal {
    z-index: 1002;
}


/* ====================== 响应式设计 ====================== */

@media (max-width: 1200px) {
    .layout-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: 2;
        margin-top: 20px;
    }
    
    .grid-header,
    .grid-row {
        grid-template-columns: 30px 1fr 2fr;
    }
    
    .grid-header > div:nth-child(n+4),
    .grid-row > div:nth-child(n+4) {
        display: none;
    }
    
    .grid-row > div[data-label="到期时间"]::before {
        content: "到期时间：";
    }
    
    .grid-row > div[data-label="到期状态"]::before {
        content: "到期状态：";
    }
    
    .grid-row > div[data-label="处理状态"]::before {
        content: "处理状态：";
    }
    
    .grid-row > div {
        flex: 1 1 100%;
        display: flex;
        gap: 8px;
        padding: 4px 0;
    }
}

@media (max-width: 900px) {
    .create-batch-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .grid-header,
    .grid-row {
        grid-template-columns: 30px 1fr 2fr;
    }
    
    .grid-header > div:nth-child(n+4),
    .grid-row > div:nth-child(n+4) {
        display: none;
    }
    
    .grid-row > div[data-label="到期时间"]::before {
        content: "到期时间：";
    }
    
    .grid-row > div {
        flex: 1 1 100%;
        display: flex;
        gap: 8px;
        padding: 4px 0;
    }
}


/**************


水
岸东
方
阿斯 
蒂
发
生的
发
撒
的
发

萨达

**********************/

.batch-time-info {
    padding: 12px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #f0f2f5;
}

.time-display {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: #64748b;
}
.time-display {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: #64748b;
}


.time-item {
    display: flex;
    align-items: center;
    gap: 6px;
}


.time-item.completed i {
    color: #16a34a;
}





/* ====================== 空状态样式 ====================== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-primary);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin: 30px 0;
    height: 100%;
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.empty-state-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.empty-state-description {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 25px;
    max-width: 500px;
    line-height: 1.6;
}

/* 暗黑模式适配 */
.dark-mode .empty-state {
    background: #2d2d2d;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.dark-mode .empty-state-icon {
    color: #3a6df7;
}

.dark-mode .empty-state-description {
    color: #a0a0a0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .empty-state {
        padding: 20px 15px;
    }
    
    .empty-state-icon {
        font-size: 3rem;
    }
    
    .empty-state-title {
        font-size: 1.3rem;
    }
}
