/* 全局样式 */
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
}

#app {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 头部样式 */
.header {
    background-color: #0078d4;
    color: white;
    padding: 10px 20px;
}

.header h1 {
    font-size: 18px;
    margin: 0;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

/* 分节样式 */
.section {
    margin-bottom: 20px;
    background-color: #f8f8f8;
    border-radius: 4px;
    padding: 10px;
}

.section h2 {
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

/* 表单元素 */
.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 状态组 */
.status-group {
    background-color: #f0f8ff;
    padding: 10px;
    border-radius: 4px;
    border-left: 4px solid #0078d4;
}

/* 按钮样式 */
.primary-button {
    background-color: #0078d4;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    margin-right: 10px;
}

.primary-button:hover {
    background-color: #106ebe;
}

.primary-button:disabled {
    background-color: #c8c8c8;
    cursor: not-allowed;
}

.secondary-button {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    margin-top: 8px;
}

.secondary-button:hover {
    background-color: #e6e6e6;
}

/* 未登录禁用态卡片样式 */
.card.disabled {
    opacity: 0.6;
    pointer-events: auto !important;
}
.card.disabled .card-content,
.card.disabled .action-buttons,
.card.disabled .setting-item {
    pointer-events: none;
}
.card .card-content { position: relative; }
.card.disabled .login-overlay { pointer-events: auto; }

/* 未登录遮罩用于捕获点击并提示登录 */
.login-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    cursor: pointer;
    z-index: 10;
}

/* 信息框 */
.info-box {
    margin-top: 5px;
    padding: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

#selected-image-info:empty:before {
    content: "未选择图片";
    color: #999;
}

#selected-image-info:contains("已选择图片") {
    background-color: #e6ffed;
    color: #1a8754;
    border-left: 3px solid #1a8754;
}

/* 状态框 */
.status-box {
    padding: 10px;
    background-color: #e6f7ff;
    border-radius: 4px;
    margin-bottom: 10px;
    border-left: 4px solid #0078d4;
}

/* 添加错误状态样式 */
.status-box.error {
    background-color: #fff2f0;
    border-left-color: #ff4d4f;
}

/* 进度条 */
.progress-container {
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #0078d4;
    width: 0%;
    transition: width 0.3s ease;
}

/* 步骤样式 */
.steps p {
    margin: 10px 0 5px 0;
    font-weight: 500;
    color: #333;
}

/* 提示框 */
.notice-box {
    padding: 12px;
    background-color: #fffbe6;
    border-left: 4px solid #faad14;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

.notice-box ol {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.notice-box ol li {
    margin-bottom: 3px;
}

/* 提示文本 */
.hint-text {
    color: #666;
    font-size: 12px;
    margin-top: 4px;
    font-style: italic;
}

/* 调试区域样式 */
.debug-section {
    border-top: 2px dotted #ccc;
    margin-top: 20px;
    background-color: #f5f5f5;
}

.debug-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.debug-button {
    background-color: #d4380d;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    margin-left: 5px;
}

.debug-button:hover {
    background-color: #a8071a;
}

.debug-content {
    max-height: 300px;
    overflow-y: auto;
    background-color: #1e1e1e;
    border-radius: 4px;
    padding: 8px;
}

.debug-info {
    font-family: Consolas, Monaco, 'Andale Mono', monospace;
    font-size: 12px;
    color: #d4d4d4;
    white-space: pre-wrap;
    margin: 0;
}

/* 调试设置面板样式 */
#debug-settings-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    z-index: 1000;
    width: 300px;
}

#debug-settings-panel h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

#debug-settings-panel div {
    margin-bottom: 10px;
}

#debug-settings-panel label {
    display: block;
    margin-bottom: 5px;
}

#debug-settings-panel input[type="text"] {
    width: 100%;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 2px;
}

#debug-settings-panel input[type="checkbox"] {
    margin-right: 5px;
}

#debug-settings-panel button {
    background-color: #0078d4;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    margin-right: 8px;
}

#debug-settings-panel button:hover {
    background-color: #106ebe;
}

#debug-settings-panel button#close-debug-settings {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

#debug-settings-panel button#close-debug-settings:hover {
    background-color: #e6e6e6;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .header h1 {
        font-size: 16px;
    }
    
    .section h2 {
        font-size: 14px;
    }
    
    .primary-button {
        padding: 6px 12px;
        font-size: 14px;
    }
}

/* 设置区域样式 */
.settings-section {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: #f0f0f0;
    border-bottom: 1px solid #ddd;
}

.settings-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.icon-button {
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 4px;
    border-radius: 4px;
}

.icon-button:hover {
    background-color: #e0e0e0;
}

.settings-content {
    padding: 10px;
    background-color: #fff;
}

.settings-content.hidden {
    display: none;
}

.setting-item {
    margin-bottom: 10px;
}

.setting-item label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
}

.setting-description {
    font-size: 12px;
    color: #666;
    margin-left: 5px;
}

.api-status-container {
    display: flex;
    align-items: center;
    margin-top: 10px;
    padding: 8px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

#api-status {
    margin: 0 10px;
    font-weight: 500;
}

#api-status.success {
    color: #52c41a;
}

#api-status.error {
    color: #f5222d;
}

.small-button {
    background-color: #f0f0f0;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
}

.small-button:hover {
    background-color: #e6e6e6;
}

/* 复选框样式 */
input[type="checkbox"] {
    margin-right: 5px;
    vertical-align: middle;
}

.translate-control {
    background-color: #faf5e6;
    border: 1px solid #e8d4a0;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 12px;
}

/* 母版管理相关样式 */
.master-report {
    font-size: 13px;
    line-height: 1.6;
}

.master-report .summary {
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.master-report .master-item {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.master-report .master-item:last-child {
    border-bottom: none;
}

.master-report ul {
    list-style: none;
    padding-left: 20px;
    margin: 5px 0;
}

.master-report li {
    padding: 2px 0;
}

#master-info {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 12px;
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
}

#master-info::-webkit-scrollbar {
    width: 8px;
}

#master-info::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#master-info::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

#master-info::-webkit-scrollbar-thumb:hover {
    background: #555;
} 

/* SVG图表插入样式 */
#svg-code-input {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    resize: vertical;
    white-space: pre;
    word-wrap: normal;
    overflow-wrap: normal;
    tab-size: 2;
}

#svg-preview-container {
    overflow: auto;
    position: relative;
}

#svg-preview-container svg {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

#svg-preview-container p {
    margin: 0;
    padding: 20px;
    text-align: center;
}

/* 图表插入卡片特定样式 */
#chart-insert-card .setting-item {
    margin-bottom: 20px;
}

#chart-insert-card .action-buttons {
    margin-top: 16px;
}

#chart-insert-card .secondary-button i,
#chart-insert-card .primary-button i {
    margin-right: 8px;
}

/* 语义编辑功能样式 */
.semantic-edit-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.input-group label {
    font-weight: 500;
    color: #333;
}

.input-group textarea {
    font-family: inherit;
    transition: border-color 0.3s;
}

.input-group textarea:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.2);
}

.hint-text {
    font-style: italic;
}

.progress-container {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0078d4, #106ebe);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.progress-time {
    font-size: 12px;
    color: #666;
}

/* 图库相关样式 */
.view-container {
    padding: 20px;
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.view-header h3 {
    margin: 0;
    color: #333;
}

/* 面包屑与标题 */
.breadcrumb-title { display:flex; flex-direction:column; gap:4px; }
.breadcrumb { font-size:12px; color:#666; }
.view-title { margin:0; font-size:18px; color:#333; }
.view-actions { display:flex; align-items:center; gap:8px; }

/* 顶部标签样式（轻量覆盖内联）*/
.app-tabs .app-tab {
    background: #f5f5f5;
    color: #555;
}
.app-tabs .app-tab.active {
    background: #eef5ff;
    color: #1976d2;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.stat-value {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

/* 新双行工具栏 */
.gallery-toolbar { position: sticky; top: 8px; z-index: 2; display: flex; flex-direction: column; gap: 8px; }
.gallery-toolbar .toolbar-row { display:flex; justify-content: space-between; align-items: center; background:#fff; border:1px solid #ddd; border-radius:6px; padding:8px 12px; }
.gallery-toolbar .row-1 .left, .gallery-toolbar .row-1 .right { display:flex; align-items:center; gap:8px; }
.gallery-toolbar .row-2 .filters { display:flex; align-items:center; gap:12px; flex-wrap: wrap; }
.gallery-toolbar .filter-item { display:flex; align-items:center; gap:6px; }
.gallery-toolbar .filter-item.search input { width: 160px; padding:6px 10px; border:1px solid #ddd; border-radius:4px; font-size:13px; }
.gallery-toolbar .filter-item select { padding:6px 10px; border:1px solid #ddd; border-radius:4px; font-size:13px; }
.gallery-toolbar .auto-refresh { display:flex; align-items:center; gap:6px; }

.control-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-group label {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.control-group select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.gallery-section {
    margin-bottom: 30px;
}

.gallery-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.tasks-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-card {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    transition: box-shadow 0.2s ease;
}

.task-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.task-id {
    font-family: monospace;
    font-size: 12px;
    color: #666;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
}

.task-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-processing {
    background: #d1ecf1;
    color: #0c5460;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-failed {
    background: #f8d7da;
    color: #721c24;
}

.task-prompt {
    margin: 8px 0;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.task-progress {
    margin: 10px 0;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #007bff;
    transition: width 0.3s ease;
}

.task-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.task-action-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.task-action-btn:hover {
    background: #f8f9fa;
}

.task-action-btn.primary {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.task-action-btn.primary:hover {
    background: #0056b3;
}

.task-action-btn.danger {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

.task-action-btn.danger:hover {
    background: #c82333;
}

.images-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.image-card {
    border: 1px solid #eaecef;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    position: relative;
}

/* 统一列表下进行中的图片：灰度 + 轻微透明 */
.image-card.is-processing img.result-image,
.image-card.not-completed img.result-image {
    filter: grayscale(100%);
    opacity: 0.75;
}

/* 状态徽标 */
.image-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 6px;
    font-size: 11px;
    border-radius: 10px;
    color: #fff;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(2px);
}
.image-badge.status-processing { background: #ff9800; }
.image-badge.status-pending { background: #6c757d; }

.image-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

img.result-image,
.image-thumbnail {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: transparent; /* 透明背景，支持PNG透明通道 */
    display: block;
}

/* 为JPEG图片设置默认背景色 */
img.result-image[src*=".jpg"],
img.result-image[src*=".jpeg"],
img.result-image[src^="data:image/jpeg"] {
    background: #f8f9fa;
}

/* 骨架屏：当为占位符SVG时显示闪动效果 */
@keyframes gallery-shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
img.result-image[src^="data:image/svg+xml"] {
    background: linear-gradient(90deg, #f2f3f5 25%, #e9ecef 37%, #f2f3f5 63%);
    background-size: 400% 100%;
    animation: gallery-shimmer 1.4s ease infinite;
}

/* 统一空态样式 */
.empty-state { text-align:center; padding: 28px 12px; color:#666; }
.empty-illustration { font-size: 40px; margin-bottom: 8px; }
.empty-title { font-size: 16px; color:#333; margin-bottom: 6px; }
.empty-desc { font-size: 12px; color:#888; margin-bottom: 10px; }

/* 骨架卡样式（任务/图片） */
@keyframes skeleton-shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.skeleton .skeleton-line,
.skeleton .skeleton-thumb {
    background: linear-gradient(90deg, #f2f3f5 25%, #e9ecef 37%, #f2f3f5 63%);
    background-size: 400% 100%;
    animation: skeleton-shimmer 1.4s ease infinite;
}
.task-card.skeleton { padding: 15px; border: 1px solid #eee; border-radius: 8px; background:#fff; }
.task-card.skeleton .skeleton-line { height: 12px; border-radius: 6px; margin: 8px 0; }
.image-card.skeleton { height: 240px; display:flex; flex-direction:column; border: 1px solid #eee; border-radius: 12px; background:#fff; overflow:hidden; }
.image-card.skeleton .skeleton-thumb { flex:1; }
.image-card.skeleton .skeleton-info { padding: 10px; }
.image-card.skeleton .skeleton-line { height: 10px; border-radius: 6px; margin: 6px 0; }

.image-info {
    padding: 12px;
}

.image-prompt {
    font-size: 13px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.image-meta {
    font-size: 11px;
    color: #666;
    margin-bottom: 10px;
}

.image-actions {
    display: flex;
    gap: 8px;
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.2s ease;
}

.image-card:hover .image-actions,
.image-card:focus-within .image-actions { opacity: 1; transform: translateY(0); }

.image-action-btn {
    flex: 1;
    padding: 8px 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.image-action-btn:hover {
    background: #f8f9fa;
}

.image-action-btn.primary {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.image-action-btn.primary:hover {
    background: #0056b3;
}

.loading-indicator {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
}

/* 统一图库操作按钮（与现有 .action-btn 适配） */
.action-btn {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: rgba(255,255,255,0.92);
    color: #333;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    backdrop-filter: saturate(140%) blur(4px);
}
.action-btn:hover { background: #ffffff; transform: translateY(-1px); }
.action-btn.insert-btn { background: #1976d2; color: #fff; border-color: #1976d2; }
.action-btn.insert-btn:hover { background: #1565c0; }
.action-btn.danger { background: #ef4444; color: #fff; border-color: #ef4444; }
.action-btn.danger:hover { background: #dc2626; }
.action-btn i { margin-right: 6px; }

/* 选择复选框（卡片左上） */
.image-select-label {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    background: rgba(255,255,255,0.9);
    border-radius: 6px;
    padding: 4px 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.image-card[aria-selected="true"] {
    outline: 2px solid #1976d2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.15);
}
.image-card--pending-delete { opacity: 0.5; }

/* 粘性底部工具条 */
#bulk-action-bar {
    position: sticky;
    bottom: 8px;
    z-index: 3;
    display: none;
    margin-top: 12px;
}
#bulk-action-bar .bulk-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    backdrop-filter: saturate(140%) blur(6px);
}
#bulk-action-bar #bulk-selected-count { font-size: 13px; color: #333; }
#bulk-action-bar .bulk-actions { display: flex; gap: 8px; }

/* 撤销 Toast */
#gallery-toast {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    z-index: 9999;
    display: none;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    background: #333;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.pagination-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    font-size: 13px;
    color: #666;
}

/* 弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 80%;
    overflow: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h4 {
    margin: 0;
    color: #333;
}

.close-btn {
    border: none;
    background: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding: 4px;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.insert-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.insert-option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.insert-option-btn:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.insert-option-btn i {
    font-size: 24px;
    color: #007bff;
    margin-bottom: 8px;
}

.insert-option-btn span {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.insert-option-btn small {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-controls {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .images-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .pagination-container {
        flex-direction: column;
        gap: 12px;
    }
}

/* 微信登录按钮样式 */
.wechat-button {
    background: #07c160;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wechat-button:hover {
    background: #06ad56;
}

.wechat-button:active {
    background: #059a4d;
}

.wechat-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 微信二维码容器样式 */
#wechat-qr-container {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}

#wechat-qr-code {
    background: white;
    border-radius: 4px;
    overflow: hidden;
}

#wechat-qr-code img {
    max-width: 100%;
    height: auto;
}

/* 微信登录处理界面样式 */
.wechat-processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wechat-processing-modal {
    background: white;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.wechat-processing-modal h3 {
    margin: 0 0 12px 0;
    color: #333;
}

.wechat-processing-modal p {
    margin: 0 0 16px 0;
    color: #666;
    font-size: 14px;
}

.wechat-processing-modal .spinner {
    font-size: 32px;
    color: #07c160;
    margin-bottom: 16px;
}

.wechat-processing-modal .success-icon {
    font-size: 32px;
    color: #07c160;
    margin-bottom: 16px;
}

.wechat-processing-modal .error-icon {
    font-size: 32px;
    color: #d32f2f;
    margin-bottom: 16px;
}

.wechat-processing-modal .button-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

.wechat-processing-modal .form-group {
    margin-bottom: 16px;
    text-align: left;
}

.wechat-processing-modal .form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: #333;
}

.wechat-processing-modal .form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.wechat-processing-modal .form-group input:focus {
    outline: none;
    border-color: #07c160;
    box-shadow: 0 0 0 2px rgba(7, 193, 96, 0.2);
}