/* 全局样式 - v2.0.1 - 用户管理模块优化版本 - 2025-01-13 15:30 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #374151;
    line-height: 1.6;
}

/* 登录页面样式 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    color: #3b82f6;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.login-header p {
    color: #6b7280;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.login-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.login-btn:hover {
    background-color: #2563eb;
}

.error-message {
    color: #ef4444;
    font-size: 0.9rem;
    margin-top: 1rem;
    text-align: center;
    display: none;
}

/* 主页面布局 */
.main-container {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏样式 */
.sidebar {
    width: 250px;
    background-color: #1f2937;
    color: white;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #374151;
}

.sidebar-header h2 {
    font-size: 1.25rem;
    color: #3b82f6;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    position: relative;
}

.nav-item:hover {
    background-color: #374151;
    color: white;
}

.nav-item.active {
    background-color: #3b82f6;
    color: white;
    border-left-color: #60a5fa;
}

.nav-icon {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* 二级菜单样式 */
.nav-item-group {
    display: flex;
    flex-direction: column;
}

.nav-parent {
    justify-content: space-between;
    cursor: pointer;
}

.nav-arrow {
    font-size: 0.75rem;
    transition: transform 0.2s;
    margin-left: auto;
}

.nav-parent.expanded .nav-arrow {
    transform: rotate(-180deg);
}

.nav-submenu {
    display: none;
    flex-direction: column;
    background-color: #111827;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out;
}

.nav-submenu.show {
    display: flex;
    max-height: 200px;
}

.nav-child {
    padding-left: 3rem;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
}

.nav-child:hover {
    background-color: #1f2937;
}

.nav-child.active {
    background-color: #2563eb;
    border-left-color: #60a5fa;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid #374151;
}

.logout-btn {
    width: 100%;
    padding: 0.5rem;
    background-color: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.logout-btn:hover {
    background-color: #dc2626;
}

/* 主内容区样式 */
.main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.page-header h1 {
    color: #1f2937;
    font-size: 1.5rem;
}

.page-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.page-actions input,
.page-actions select {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* 统计卡片样式 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 2rem;
    margin-right: 1rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #3b82f6;
}

.stat-label {
    color: #6b7280;
    font-size: 0.9rem;
}

/* 表格样式 */
.table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.data-table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.data-table tbody tr:hover {
    background-color: #f9fafb;
}

/* 按钮样式 */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background-color: #2563eb;
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

.btn-danger {
    background-color: #ef4444;
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

/* 状态标签样式 */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 套餐类型标签样式 */
.package-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.package-free {
    background-color: #f3f4f6;
    color: #4b5563;
}

.package-trial {
    background-color: #dbeafe;
    color: #1e40af;
}

.package-basic {
    background-color: #dcfce7;
    color: #166534;
}

.package-advanced {
    background-color: #fef3c7;
    color: #92400e;
}

.package-premium {
    background-color: #fae8ff;
    color: #86198f;
}

.status-available {
    background-color: #dcfce7;
    color: #166534;
}

.status-issued {
    background-color: #fef3c7;
    color: #92400e;
}

.status-used {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-expired {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-completed {
    background-color: #dcfce7;
    color: #166534;
}

.status-after_sale {
    background-color: #fef3c7;
    color: #92400e;
}

.status-refunded {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-high_active {
    background-color: #dcfce7;
    color: #166534;
}

.status-medium_active {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-low_active {
    background-color: #fef3c7;
    color: #92400e;
}

.status-dormant {
    background-color: #f3f4f6;
    color: #6b7280;
}

/* 备注输入框样式 */
.notes-input {
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.9rem;
    width: 100%;
    background-color: #ffffff;
    transition: border-color 0.2s ease;
}

.notes-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.notes-input:hover {
    border-color: #9ca3af;
}

/* 多选筛选器样式 */
.multi-select-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
}

.multi-select-container label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
}

.checkbox-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    font-weight: 400;
    color: #6b7280;
    cursor: pointer;
    white-space: nowrap;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
    cursor: pointer;
}

.checkbox-group label:hover {
    color: #374151;
}

.status-active {
    background-color: #dcfce7;
    color: #166534;
}

.status-inactive {
    background-color: #fef3c7;
    color: #92400e;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 2rem auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: calc(100vh - 4rem);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-header h2 {
    margin: 0;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
}

.close {
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: white;
}

.close:hover {
    color: #f3f4f6;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

/* 表单提示样式 */
.form-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #6b7280;
}

/* 表单输入框样式优化 - 已合并到上面的.form-group样式 */

/* 模态框样式优化 - 已合并到上面的.modal-content样式 */

/* 移除重复的modal-header定义，使用特定弹窗的样式 */

.close {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.close:hover {
    opacity: 1;
}

/* 表单布局优化 - 已合并到上面的.form-group和.form-actions样式 */
#addOrderForm {
    padding: 1.5rem;
}

/* 模态框表单样式优化 */
.modal-form {
    padding: 2rem;
}

.modal-form .form-group {
    margin-bottom: 2rem;
}

.modal-form .form-group:last-child {
    margin-bottom: 0;
}

.modal-form textarea {
    min-height: 100px;
    resize: vertical;
}

/* 图片网格样式 */
.image-grid-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.image-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.image-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.image-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.image-card-info {
    padding: 0.75rem;
}

.image-card-keyword {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
}

.image-card-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #6b7280;
}

.image-card-tags {
    margin-top: 0.5rem;
}

.image-tag {
    display: inline-block;
    background-color: #f3f4f6;
    color: #374151;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

/* 审核页面样式 */
.review-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

.review-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: #f9fafb;
    border-radius: 6px;
}

.review-controls label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
}

#selectedCount {
    color: #6b7280;
    font-size: 0.9rem;
}

/* 审核图片模态框样式 */
.review-content {
    padding: 1.5rem;
}

.image-preview {
    text-align: center;
    margin-bottom: 1rem;
}

.image-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.review-info {
    background-color: #f9fafb;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.review-info p {
    margin-bottom: 0.5rem;
    color: #374151;
}

.review-info p:last-child {
    margin-bottom: 0;
}

/* 申诉管理样式 */
.appeal-content {
    padding: 1.5rem;
}

.appeal-info {
    background-color: #f9fafb;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.appeal-info p {
    margin-bottom: 0.5rem;
    color: #374151;
}

.appeal-info p:last-child {
    margin-bottom: 0;
}

/* 统计页面样式 */
.stats-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stats-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.stats-section h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* 新增状态样式 */
.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

/* 按钮样式优化 */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    margin: 0 2px;
}

/* 用户管理操作列样式优化 */
.user-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.user-actions .btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    margin: 0;
    width: 100%;
    min-width: 90px;
    text-align: center;
    white-space: nowrap;
}

.user-actions .btn-icon {
    margin-right: 4px;
    font-size: 0.9rem;
}

/* 用户管理表格操作列宽度 */
#usersTable th:last-child,
#usersTable td:last-child {
    width: 120px;
    min-width: 120px;
}

/* btn-info 按钮样式（用于积分记录） */
.btn-info {
    background-color: #0ea5e9;
    color: white;
}

.btn-info:hover {
    background-color: #0284c7;
}

/* ==================== 积分记录弹窗样式 ==================== */

/* 弹窗标题组 */
.modal-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-title-group h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #1f2937;
}

.modal-title-group .phone-number {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: normal;
}

/* 积分统计摘要 */
.points-stats-summary {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 8px;
    border: 1px solid #bae6fd;
}

.points-stats-summary .stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.points-stats-summary .stat-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.points-stats-summary .stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #3b82f6;
}

.points-stats-summary .stat-value.activity {
    color: #10b981;
}

.points-stats-summary .stat-value.recharge {
    color: #f59e0b;
}

/* 积分记录内容区 */
.points-history-content {
    min-height: 200px;
}

/* 积分记录列表 */
.points-history-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 400px;
    overflow-y: auto;
    padding: 8px 4px 8px 0;
}

/* 单条积分记录卡片 */
.points-record-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 20px;
    transition: all 0.2s;
    margin-bottom: 4px;
}

.points-record-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

/* 记录头部 */
.record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.record-type {
    display: flex;
    align-items: center;
    gap: 6px;
}

.record-type .type-icon {
    font-size: 1.1rem;
}

.record-type .type-label {
    font-size: 0.9rem;
    font-weight: 600;
}

.record-type.activity .type-label {
    color: #10b981;
}

.record-type.recharge .type-label {
    color: #f59e0b;
}

.record-amount {
    font-size: 1.25rem;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 6px;
}

.record-amount.activity {
    color: #10b981;
    background-color: #d1fae5;
}

.record-amount.recharge {
    color: #f59e0b;
    background-color: #fef3c7;
}

/* 记录详情 */
.record-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    color: #6b7280;
}

.record-time,
.record-notes {
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-icon {
    font-size: 0.9rem;
}

.record-notes {
    padding: 6px 10px;
    background-color: #f9fafb;
    border-radius: 4px;
    color: #374151;
}

/* 加载指示器 */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    color: #6b7280;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 空状态 */
.empty-state,
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
}

.empty-icon,
.error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-title,
.error-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.empty-description,
.error-description {
    font-size: 0.9rem;
    color: #6b7280;
}

.error-icon {
    color: #ef4444;
    opacity: 0.8;
}

/* 积分记录弹窗特定样式 */
.points-history-modal {
    max-width: 650px;
    min-width: 500px;
}

.points-history-modal .modal-body {
    padding: 1.5rem;
}

/* 确保弹窗内容有足够的间距 */
.points-history-modal .modal-content {
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.points-history-modal .modal-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.points-history-modal .modal-footer {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid #e5e7eb;
}

/* 滚动条样式 */
.points-history-list::-webkit-scrollbar {
    width: 6px;
}

.points-history-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.points-history-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.points-history-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 如果仍然使用表格样式，确保有足够的间距 */
.points-history-modal .table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.points-history-modal .table th,
.points-history-modal .table td {
    padding: 16px 20px !important;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.points-history-modal .table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

.points-history-modal .table tbody tr {
    transition: background-color 0.2s;
}

.points-history-modal .table tbody tr:hover {
    background-color: #f9fafb;
}

.points-history-modal .table tbody tr:last-child td {
    border-bottom: none;
}

/* ==================== 发放积分弹窗样式 ==================== */

/* 发放积分弹窗特定样式 */
.grant-points-modal {
    max-width: 550px;
    min-width: 450px;
}

.grant-points-modal .modal-content {
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.grant-points-modal .modal-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.grant-points-modal .modal-body {
    padding: 1.5rem;
}

.grant-points-modal .modal-footer {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid #e5e7eb;
}

/* 弹窗副标题 */
.modal-subtitle {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: normal;
    margin-top: 4px;
}

/* 用户信息卡片 */
.user-info-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.user-info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(59, 130, 246, 0.1);
    border-bottom: 1px solid #bae6fd;
}

.user-info-icon {
    font-size: 1.1rem;
}

.user-info-title {
    font-weight: 600;
    color: #1e40af;
    font-size: 0.95rem;
}

.user-info-content {
    padding: 16px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.info-value {
    font-size: 0.9rem;
    color: #1f2937;
    font-weight: 600;
    background: white;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

/* 发放设置卡片 */
.grant-settings-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.grant-settings-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.grant-settings-icon {
    font-size: 1.1rem;
}

.grant-settings-title {
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.grant-settings-content {
    padding: 20px;
}

/* 表单标签优化 */
.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

.label-icon {
    font-size: 1rem;
}

/* 表单控件优化 */
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.readonly-field {
    background-color: #f9fafb;
    color: #6b7280;
    cursor: not-allowed;
}

.form-hint {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 6px;
    font-style: italic;
}

/* 按钮图标 */
.btn-icon {
    margin-right: 6px;
    font-size: 0.9rem;
}

/* ==================== 系统配置页面样式 ==================== */

/* 配置标签页 - 系统配置页面样式 v2.0 */
.config-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 2rem;
    padding: 0 4px;
}

.config-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    color: #6b7280;
    font-size: 0.95rem;
}

.config-tab:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
    color: #374151;
}

.config-tab.active {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.config-tab .tab-icon {
    font-size: 1.1rem;
}

/* 配置标签页内容 */
.config-tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.config-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 配置区域 */
.config-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

/* 配置头部 */
.config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e5e7eb;
}

.config-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #1f2937;
    font-weight: 600;
}

.config-header .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 8px;
    font-weight: 500;
}

/* 配置描述 */
.config-description {
    padding: 16px 24px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.config-description p {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 配置列表 */
.config-list {
    padding: 24px;
}

.config-list .data-table {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.config-list .data-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
    padding: 16px 20px;
    border-bottom: 2px solid #e5e7eb;
}

.config-list .data-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.config-list .data-table tbody tr:last-child td {
    border-bottom: none;
}

.config-list .data-table tbody tr:hover {
    background-color: #f9fafb;
}

/* 配置项操作按钮 */
.config-item-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.config-item-actions .btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
}

/* 加载状态 */
.loading-message {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 2rem;
}

/* 空状态 */
.empty-config-message {
    text-align: center;
    padding: 3rem 2rem;
    color: #6b7280;
}

.empty-config-message .empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-config-message .empty-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.empty-config-message .empty-description {
    font-size: 0.9rem;
    color: #6b7280;
}

/* 旧的句子内容样式 - 已删除，使用新的样式 */

.status-approved {
    background-color: #dcfce7;
    color: #166534;
}

.status-rejected {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-testing {
    background-color: #e0e7ff;
    color: #3730a3;
}

.status-disabled {
    background-color: #f3f4f6;
    color: #6b7280;
}

/* 成功按钮样式 */
.btn-success {
    background-color: #10b981;
    color: white;
}

.btn-success:hover {
    background-color: #059669;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
    }
    
    .sidebar-nav {
        display: flex;
        overflow-x: auto;
    }
    
    .nav-item {
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    
    .nav-item.active {
        border-left: none;
        border-bottom-color: #60a5fa;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .data-table {
        min-width: 800px;
    }
    
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .review-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .pagination-container {
        flex-direction: column;
        gap: 1rem;
    }

    .preview-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .import-container,
    .preview-container {
        padding: 1rem;
    }
}

/* 文章导入页面样式 */
.import-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

/* 模态框内的导入容器样式 */
.modal .import-container {
    max-width: none;
    margin: 0;
    padding: 1.5rem;
}

.import-form {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 模态框内的导入表单样式 */
.modal .import-form {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.form-section {
    margin-bottom: 0;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    color: #374151;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 733px;
    height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.upload-area:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.upload-area.dragover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.upload-text p {
    margin: 0.5rem 0;
    color: #6b7280;
}

.upload-hint {
    font-size: 0.9rem;
    color: #9ca3af;
}

.file-info {
    margin-top: 1rem;
    padding: 1rem;
    background: #f3f4f6;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.file-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.file-name {
    font-weight: 500;
    color: #374151;
}

.file-size {
    color: #6b7280;
    font-size: 0.9rem;
}

.remove-file {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
}

.remove-file:hover {
    background: #dc2626;
}

/* 导入页面专用checkbox样式 */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #374151;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.5rem;
}

.checkbox-label input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-description {
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* 解析预览页面样式 */
.preview-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.preview-info {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.preview-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sentences-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sentence-preview-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s, transform 0.2s;
    margin-bottom: 1.5rem;
    width: 100%;
}

.sentence-preview-card:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.sentence-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f3f4f6;
    width: 100%;
}

.sentence-number {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.sentence-actions {
    display: flex;
    gap: 0.75rem;
}

.sentence-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.sentence-field {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.sentence-field label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sentence-field label::before {
    content: '';
    width: 4px;
    height: 16px;
    background: #3b82f6;
    border-radius: 2px;
}

.sentence-field textarea {
    padding: 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1.1rem;
    resize: vertical;
    min-height: 100px;
    max-height: 500px;
    line-height: 1.7;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    overflow-y: auto;
    width: 100%;
    box-sizing: border-box;
}

.sentence-field textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.sentence-field textarea[readonly] {
    background-color: #f9fafb;
    color: #6b7280;
}

.sentence-confirm {
    display: flex;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 2px solid #f3f4f6;
    width: 100%;
}

.confirm-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.confirm-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.4);
}

.confirm-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 分页样式 */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    gap: 1rem;
}

.pagination-info {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.page-jump-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid #e5e7eb;
}

.page-jump-group span {
    color: #6b7280;
    font-size: 0.9rem;
}

.page-jump-group input {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    text-align: center;
    font-size: 0.9rem;
}

.page-jump-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.page-jump-group .btn {
    padding: 6px 12px;
}

.pagination-btn {
    background: white;
    border: 2px solid #e5e7eb;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 40px;
    text-align: center;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.pagination-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.pagination-btn:disabled {
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pagination-btn.prev,
.pagination-btn.next {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-color: #3b82f6;
    color: white;
    font-weight: 600;
}

.pagination-btn.prev:hover:not(:disabled),
.pagination-btn.next:hover:not(:disabled) {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

/* 预览页面操作按钮优化 - 已合并到上面的.preview-actions样式 */

.preview-actions .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.preview-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.preview-actions .btn-secondary {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    border-color: #6b7280;
    color: white;
}

.preview-actions .btn-secondary:hover {
    background: linear-gradient(135deg, #4b5563, #374151);
}

.preview-actions .btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #10b981;
    color: white;
}

.preview-actions .btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

/* 响应式设计补充 - 已合并到上面的@media规则 */

/* 句子素材库样式 */
.material-table {
    font-size: 0.9rem;
}

.material-table th,
.material-table td {
    padding: 12px 8px;
    vertical-align: top;
}

.material-table th:first-child,
.material-table td:first-child {
    width: 40px;
    text-align: center;
}

.material-table th:nth-child(2),
.material-table td:nth-child(2) {
    width: 120px;
    font-family: monospace;
    font-size: 0.8rem;
}

.material-table th:nth-child(3),
.material-table td:nth-child(3) {
    width: 300px;
}

.material-table th:nth-child(4),
.material-table td:nth-child(4) {
    width: 60px;
    text-align: center;
}

.material-table th:nth-child(5),
.material-table td:nth-child(5) {
    width: 120px;
}

.material-table th:nth-child(6),
.material-table td:nth-child(6) {
    width: 150px;
}

.material-table th:nth-child(7),
.material-table td:nth-child(7) {
    width: 120px;
    text-align: center;
}

/* 句子内容样式 */
.sentence-content {
    line-height: 1.4;
}

.sentence-english {
    color: #374151;
    margin-bottom: 4px;
}

.sentence-chinese {
    color: #6b7280;
    font-size: 0.85rem;
}

/* 音频状态样式 */
.audio-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 12px;
}

.audio-status.has-audio {
    background-color: #10b981;
    color: white;
}

.audio-status.no-audio {
    background-color: #ef4444;
    color: white;
}

/* 单词标签样式 */
.word-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.word-label {
    display: inline-block;
    padding: 2px 6px;
    background-color: #f3f4f6;
    color: #374151;
    border-radius: 3px;
    font-size: 0.7rem;
    border: 1px solid #d1d5db;
}

/* 图片网格样式 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    width: 140px;
}

.image-placeholder {
    width: 24px;
    height: 24px;
    background-color: #3b82f6;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
}

/* 操作按钮样式 */
.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.action-btn {
    background: none;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 2px 4px;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.action-btn:hover {
    background-color: #f3f4f6;
}

/* 筛选区域样式 */
.filter-section {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.filter-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    align-items: end;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 200px;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

.filter-icon {
    font-size: 14px;
}

.filter-group input,
.filter-group select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
}

.filter-checkboxes {
    display: flex;
    gap: 20px;
    align-items: center;
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

/* 分页搜索栏样式 */
.pagination-search-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.display-options {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6b7280;
    font-size: 0.9rem;
}

.display-options select {
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.9rem;
}

.quick-search {
    position: relative;
    display: flex;
    align-items: center;
}

.quick-search input {
    padding: 8px 35px 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    width: 200px;
}

.search-icon {
    position: absolute;
    right: 10px;
    color: #9ca3af;
    font-size: 14px;
}

/* 按钮图标样式 */
.btn-icon {
    margin-right: 5px;
}

/* 导入模态框样式 */
.import-content {
    padding: 20px;
}

.import-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    margin: 0 1rem;
}

/* Modal header中的标签页样式 */
.modal-header .import-tabs {
    margin: 0;
    border-bottom: none;
    flex: 1;
    display: flex;
    width: 100%;
}

.modal-header {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.modal-header .close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 0.9rem;
    color: #6b7280;
    transition: all 0.2s;
}

.tab-btn.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.tab-btn:hover {
    color: #374151;
}

.tab-button {
    padding: 12px 20px;
    background: #e5e7eb;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    color: #374151;
    transition: all 0.2s;
    flex: 1;
    text-align: center;
    margin-right: 2px;
    font-weight: 500;
}

.tab-button:last-child {
    margin-right: 3rem; /* 为关闭按钮预留空间 */
}

.tab-button:hover {
    color: #1f2937;
    background: #d1d5db;
}

.tab-button.active {
    color: #ffffff;
    background: #3b82f6;
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 素材库响应式设计 */
@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        gap: 10px;
    }

    .filter-group {
        min-width: auto;
        width: 100%;
    }

    .filter-actions {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

    .pagination-search-bar {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .quick-search input {
        width: 100%;
    }

    .image-grid {
        grid-template-columns: repeat(4, 1fr);
        width: 112px;
    }

    .material-table th:nth-child(3),
    .material-table td:nth-child(3) {
        width: 200px;
    }
}

/* 单词图片对应显示样式 */
.word-image-pairs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 100%;
}

.word-image-pair {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background-color: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.word-label {
    min-width: 80px;
    padding: 6px 12px;
    background-color: #3b82f6;
    color: white;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.word-images {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.word-image-item {
    position: relative;
}

.word-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #e2e8f0;
    transition: all 0.2s ease;
    cursor: pointer;
}

.word-image:hover {
    border-color: #3b82f6;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Rejected图片样式 */
.word-image-item.rejected {
    opacity: 0.5;
    position: relative;
}

.word-image-item.rejected .word-image {
    filter: grayscale(50%);
    border-color: #ef4444;
}

.word-image-item.rejected:hover {
    opacity: 0.8;
}

.rejected-mark {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 14px;
    background: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 1;
}

/* 图片悬停操作按钮 */
.image-overlay-actions {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 4px;
}

.word-image-item.rejected:hover .image-overlay-actions {
    opacity: 1;
}

.restore-btn {
    background: #22c55e;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.restore-btn:hover {
    background: #16a34a;
    transform: scale(1.05);
}

.no-content {
    color: #9ca3af;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* 编辑模态框中的rejected图片样式 */
.image-item-editor.rejected {
    opacity: 0.6;
    position: relative;
}

.image-item-editor.rejected img {
    filter: grayscale(50%);
    border: 2px solid #ef4444;
}

.image-status-badge {
    position: absolute;
    top: 2px;
    left: 2px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
}

.image-status-badge.rejected {
    background: rgba(239, 68, 68, 0.9);
}

.image-status-badge.pending-delete {
    background: rgba(251, 146, 60, 0.9);
}

/* 整个单词待删除的样式 */
.word-image-item-editor.word-pending-delete {
    opacity: 0.5;
    background: rgba(251, 146, 60, 0.1);
    border: 2px dashed #fb923c;
    border-radius: 4px;
    padding: 8px;
}

.word-image-item-editor.word-pending-delete .word-input {
    opacity: 0.6;
    text-decoration: line-through;
}

.word-image-item-editor.word-pending-delete .image-item-editor {
    opacity: 0.6;
    filter: grayscale(50%);
}

/* 图片统计信息样式 */
.image-stats {
    position: absolute;
    bottom: 2px;
    left: 2px;
    right: 2px;
    z-index: 1;
    pointer-events: none; /* 确保不干扰删除按钮的点击 */
}

/* 图片操作按钮样式 */
.image-actions {
    position: absolute;
    top: 2px;
    right: 2px;
    display: flex;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: auto; /* 修复：删除按钮应该始终可以点击 */
    z-index: 10; /* 确保删除按钮在最上层 */
}

.image-item-editor:hover .image-actions {
    opacity: 1;
}

.image-actions button {
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-image-btn {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

.remove-image-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.remove-image-btn.permanent {
    background: rgba(0, 0, 0, 0.8);
}

.remove-image-btn.permanent:hover {
    background: #000;
}

.restore-image-btn {
    background: rgba(34, 197, 94, 0.9);
    color: white;
}

.restore-image-btn:hover {
    background: #16a34a;
    transform: scale(1.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .word-image-pair {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .word-label {
        min-width: auto;
        width: 100%;
        text-align: left;
    }
    
    .word-images {
        width: 100%;
        justify-content: flex-start;
    }
    
    .word-image {
        width: 40px;
        height: 40px;
    }
}

/* 导入页面主题选择样式 */
.form-row {
    display: flex;
    gap: 10px;
    align-items: end;
}

.form-row .form-group {
    flex: 1;
}

.form-row .form-group:first-child {
    flex: 1.2;
}

.form-row select {
    width: 100%;
}

/* 主题管理模态框样式 */
.subject-management-modal .modal {
    max-height: 90vh;
}

.subject-management-modal .import-container {
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

.subject-management-modal .categories-list {
    max-height: calc(90vh - 200px);
    overflow-y: auto;
}

/* 主题管理模态框样式 */
.subject-categories-info {
    background-color: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 4px;
}

.subject-categories-info .info-text {
    color: #1e40af;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* 范围输入样式 */
.range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.range-inputs input {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    text-align: center;
}

.range-separator {
    color: #6b7280;
    font-size: 0.9rem;
}

/* 批量操作区域样式 */
.batch-operations-section {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: none;
}

.batch-operations-section.show {
    display: block;
}

.batch-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.selected-count {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 主题管理 - 分类列表样式 */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.category-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem;
    transition: box-shadow 0.2s;
}

.category-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

.category-name {
    font-weight: 600;
    font-size: 1rem;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-name::before {
    content: '📁';
    font-size: 1.2rem;
}

.subject-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.subject-item {
    background: #f3f4f6;
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
}

.subject-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.subject-name {
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

.subject-description {
    color: #6b7280;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-left: 0.5rem;
}

.subject-actions {
    display: flex;
    gap: 0.5rem;
}

.subject-delete-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
}

.subject-delete-btn:hover {
    background: #dc2626;
}

/* 主题状态样式 */
.subject-item.disabled {
    opacity: 0.6;
    background-color: #f9fafb;
    border-color: #e5e7eb;
}

.subject-item.disabled .subject-name {
    color: #9ca3af;
    text-decoration: line-through;
}

.subject-item.disabled .subject-description {
    color: #9ca3af;
}

/* 主题操作按钮样式 */
.subject-edit-btn,
.subject-status-btn {
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background-color: white;
    color: #374151;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.subject-edit-btn:hover {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.subject-status-btn {
    background-color: #10b981;
    color: white;
    border-color: #10b981;
}

.subject-status-btn:hover {
    background-color: #059669;
    border-color: #059669;
}

.subject-status-btn.disable {
    background-color: #ef4444;
    border-color: #ef4444;
}

.subject-status-btn.disable:hover {
    background-color: #dc2626;
    border-color: #dc2626;
}

/* 内联编辑样式 */
.subject-description.editing {
    background-color: white;
    border: 1px solid #3b82f6;
    border-radius: 4px;
    padding: 8px;
    min-height: 60px;
    resize: vertical;
}

.subject-description.editing:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* 编辑操作按钮 */
.edit-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.edit-save-btn,
.edit-cancel-btn {
    padding: 4px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.edit-save-btn {
    background-color: #10b981;
    color: white;
    border-color: #10b981;
}

.edit-save-btn:hover {
    background-color: #059669;
    border-color: #059669;
}

.edit-cancel-btn {
    background-color: #6b7280;
    color: white;
    border-color: #6b7280;
}

.edit-cancel-btn:hover {
    background-color: #4b5563;
    border-color: #4b5563;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .batch-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .range-inputs {
        flex-direction: column;
        gap: 4px;
    }
    
    .range-inputs input {
        width: 100%;
    }
    
    .categories-list {
        grid-template-columns: 1fr;
    }
}

/* 批量识别结果样式 */
.batch-results-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e9ecef;
}

.batch-results-summary {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #e3f2fd;
    border-radius: 6px;
    border-left: 4px solid #2196f3;
}

.batch-results-list {
    max-height: 400px;
    overflow-y: auto;
}

.batch-result-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background-color: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.batch-result-item:hover {
    border-color: #2196f3;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.1);
}

.batch-result-item.success {
    border-left: 4px solid #4caf50;
}

.batch-result-item.error {
    border-left: 4px solid #f44336;
}

.batch-result-info {
    flex: 1;
    margin-right: 15px;
}

.batch-result-filename {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.batch-result-details {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.batch-result-ctp {
    display: flex;
    gap: 8px;
    margin: 4px 0;
}

.ctp-tag {
    padding: 2px 6px;
    background-color: #e3f2fd;
    color: #1976d2;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.batch-result-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-icon {
    font-size: 18px;
}

.status-icon.success {
    color: #4caf50;
}

.status-icon.error {
    color: #f44336;
}

/* 空数据提示样式 */
.no-data-message {
    text-align: center;
    padding: 40px 20px;
    background-color: #fafafa;
    border-radius: 8px;
}

.no-data-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #666;
}

.no-data-icon {
    font-size: 48px;
    opacity: 0.6;
}

.no-data-text {
    font-size: 16px;
    font-weight: 500;
    color: #888;
}

/* 批量导入主题选择样式 */
.batch-subject-stats {
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.batch-subject-stats .stats-header {
    margin-bottom: 12px;
}

.batch-subject-stats .stats-title {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

.batch-subject-stats .stats-content {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.batch-subject-stats .stat-item {
    font-size: 14px;
    color: #6b7280;
}

.batch-subject-stats .stat-item strong {
    color: #3b82f6;
    margin: 0 2px;
}

.batch-subject-stats .stat-item.unselected strong {
    color: #ef4444;
}

/* 批量主题卡片容器 */
.batch-subject-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

/* 单个文章卡片 */
.batch-article-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.3s ease;
}

.batch-article-card.selected {
    border-color: #10b981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.batch-article-card.unselected {
    border-color: #ef4444;
}

/* 卡片标题区域 */
.batch-article-card .card-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

.batch-article-card .card-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.batch-article-card .card-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    flex: 1;
    word-break: break-word;
}

/* 卡片识别信息 */
.batch-article-card .card-info {
    background-color: #f9fafb;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #6b7280;
}

.batch-article-card .card-info .info-item {
    display: inline-block;
    margin-right: 12px;
}

.batch-article-card .card-info .info-item:last-child {
    margin-right: 0;
}

/* 卡片主题选择 */
.batch-article-card .card-subject {
    margin-top: 12px;
}

.batch-article-card .card-subject label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.batch-article-card .subject-selects {
    display: flex;
    gap: 8px;
}

.batch-article-card .subject-selects select {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: white;
    color: #374151;
    transition: border-color 0.2s;
}

.batch-article-card .subject-selects select:focus {
    outline: none;
    border-color: #3b82f6;
}

.batch-article-card .subject-selects select:disabled {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.batch-article-card .subject-selects select option:disabled {
    color: #9ca3af;
}

/* 卡片状态指示器 */
.batch-article-card .card-status {
    margin-top: 8px;
    font-size: 12px;
    text-align: right;
}

.batch-article-card.selected .card-status {
    color: #10b981;
}

.batch-article-card.unselected .card-status {
    color: #ef4444;
}

/* 响应式布局 - 当空间不足时改为单列 */
@media (max-width: 1200px) {
    .batch-subject-cards {
        grid-template-columns: 1fr;
    }
}

/* 编辑句子模态框样式 */
.edit-sentence-modal {
    max-width: 900px;
}

.limit-hint {
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: normal;
    margin-left: 8px;
}

.word-image-editor-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
    background: #f9fafb;
    border-radius: 8px;
}

.word-image-item-editor {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    position: relative;
}

.word-image-item-editor.error {
    border-color: #ef4444;
}

.word-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.word-input-group input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
}

.word-input-group input.error {
    border-color: #ef4444;
}

.word-error-msg {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 4px;
    display: none;
}

.word-error-msg.show {
    display: block;
}

.remove-word-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.remove-word-btn:hover {
    background: #dc2626;
}

.image-list-editor {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.image-item-editor {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
}

.image-item-editor img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.add-image-btn {
    width: 80px;
    height: 80px;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s;
}

.add-image-btn:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.add-image-btn span {
    font-size: 24px;
    color: #9ca3af;
}

.add-image-btn small {
    font-size: 11px;
    color: #6b7280;
}

.add-word-btn {
    width: 100%;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
}

.add-word-btn span {
    font-size: 20px;
}

.add-word-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 图片选择器模态框 */
.image-selector-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.image-selector-modal.show {
    display: flex;
}

.image-selector-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.image-selector-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
}

.image-selector-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.image-selector-tab.active {
    border-bottom-color: #3b82f6;
    color: #3b82f6;
    font-weight: 600;
}

.image-selector-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.image-grid-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.image-grid-item {
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
}

.image-grid-item:hover {
    border-color: #3b82f6;
}

.image-grid-item.selected {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.image-grid-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.image-selector-actions {
    padding: 16px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ==================== 配置管理页面样式 ==================== */

/* 配置标签页 */
.config-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0;
}

.config-tab {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 15px;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: -2px;
}

.config-tab:hover {
    color: #3b82f6;
    background-color: #f3f4f6;
}

.config-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    font-weight: 600;
}

.tab-icon {
    font-size: 18px;
}

/* 配置内容区 - 使用上面定义的样式 */

/* 删除重复的config-header定义 */

/* 删除重复的config-description定义 */

/* 删除重复的config-list定义 */
/* 删除重复的config-item-actions定义 */

.loading-message {
    text-align: center;
    padding: 40px !important;
    color: #9ca3af;
    font-style: italic;
}

.no-config-message {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.no-config-message .icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.no-config-message .text {
    font-size: 16px;
    margin-bottom: 8px;
}

.no-config-message .hint {
    font-size: 14px;
    color: #d1d5db;
}

/* 小号模态框 */
.modal-small {
    max-width: 500px !important;
}

/* 配置项编号列样式 */
.config-list .data-table td:first-child {
    text-align: center;
    color: #9ca3af;
    font-weight: 500;
}

/* 删除按钮样式 */
.btn-delete-config {
    background-color: #ef4444;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s;
}

.btn-delete-config:hover {
    background-color: #dc2626;
}

.btn-delete-config:disabled {
    background-color: #d1d5db;
    cursor: not-allowed;
}

/* 配置成功提示 */
.config-success-badge {
    display: inline-block;
    background: #d1fae5;
    color: #065f46;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .config-tabs {
        flex-direction: column;
        gap: 8px;
    }
    
    .config-tab {
        width: 100%;
        justify-content: center;
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .config-tab.active {
        border-bottom-color: transparent;
        border-left-color: #3b82f6;
    }
    
    .config-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .config-header button {
        width: 100%;
    }
}

/* 提示词管理样式 */
.prompt-content {
    max-width: 500px;
    font-size: 16px;
}

.prompt-preview {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #666;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prompt-preview:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.prompt-full {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #333;
    background: #fff;
    padding: 12px;
    border-radius: 4px;
    border: 2px solid #007bff;
    white-space: pre-wrap;
    word-break: break-all;
}

.style-tag {
    display: inline-block;
    padding: 4px 8px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
}

.action-buttons {
    white-space: nowrap;
}

.action-buttons .btn {
    margin: 0 2px;
    padding: 4px 8px;
    font-size: 12px;
}

/* 模态框样式增强 */
.modal-content.large {
    max-width: 800px;
    width: 90%;
}

.template-help {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 12px;
    margin-top: 8px;
    font-size: 13px;
    color: #6c757d;
}

.template-help code {
    background: #e9ecef;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #495057;
}

.template-display {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 16px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 200px;
    overflow-y: auto;
}

.preview-section {
    margin-bottom: 20px;
}

.preview-section h4 {
    color: #495057;
    margin-bottom: 10px;
    font-size: 16px;
}

.preview-result {
    background: #e8f5e8;
    border: 1px solid #28a745;
    border-radius: 4px;
    padding: 16px;
    margin-top: 16px;
}

.final-prompt {
    background: white;
    border: 1px solid #28a745;
    border-radius: 4px;
    padding: 12px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-all;
}

/* 提示词管理响应式 */
@media (max-width: 768px) {
    .modal-content.large {
        width: 95%;
        max-width: none;
    }
    
    .prompt-content {
        max-width: 200px;
    }
    
    .action-buttons .btn {
        display: block;
        margin: 2px 0;
        width: 100%;
    }
}