* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-tertiary: #0f3460;
    --bg-card: #1e272e;
    --bg-card-hover: #2c3e50;
    --bg-hover: rgba(0, 217, 255, 0.1);
    --bg-active: rgba(0, 217, 255, 0.2);
    --border-color: #2d3436;
    --border-light: #34495e;
    --border-accent: #00d9ff;
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --text-muted: #6b7280;
    --text-inverse: #1a1a2e;
    --accent-primary: #00d9ff;
    --accent-secondary: #0099cc;
    --accent-danger: #ff6b6b;
    --accent-danger-dark: #ee5a5a;
    --accent-purple: #9b59b6;
    --accent-purple-dark: #8e44ad;
    --accent-gold: #ffd700;
    --accent-gold-dark: #ffb700;
    --accent-success: #27ae60;
    --accent-warning: #f39c12;
    --nav-width: 60px;
    --gradient-primary: linear-gradient(135deg, #00d9ff 0%, #0099cc 100%);
    --gradient-primary-hover: linear-gradient(135deg, #00e5ff 0%, #00aae6 100%);
    --gradient-secondary: linear-gradient(135deg, #1e272e 0%, #2c3e50 100%);
    --gradient-danger: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    --gradient-purple: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    --gradient-title: linear-gradient(135deg, #00d9ff 0%, #ff6b6b 100%);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-accent: rgba(0, 217, 255, 0.4);
    --shadow-danger: rgba(255, 107, 107, 0.4);
}

html[data-theme="dark"] {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-tertiary: #0f3460;
    --bg-card: #1e272e;
    --bg-card-hover: #2c3e50;
    --bg-hover: rgba(0, 217, 255, 0.1);
    --bg-active: rgba(0, 217, 255, 0.2);
    --border-color: #2d3436;
    --border-light: #34495e;
    --border-accent: #00d9ff;
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --text-muted: #6b7280;
    --text-inverse: #1a1a2e;
    --accent-primary: #00d9ff;
    --accent-secondary: #0099cc;
    --accent-danger: #ff6b6b;
    --accent-danger-dark: #ee5a5a;
    --accent-purple: #9b59b6;
    --accent-purple-dark: #8e44ad;
    --accent-gold: #ffd700;
    --accent-gold-dark: #ffb700;
    --accent-success: #27ae60;
    --accent-warning: #f39c12;
    --gradient-primary: linear-gradient(135deg, #00d9ff 0%, #0099cc 100%);
    --gradient-secondary: linear-gradient(135deg, #1e272e 0%, #2c3e50 100%);
    --gradient-danger: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    --gradient-purple: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    --gradient-title: linear-gradient(135deg, #00d9ff 0%, #ff6b6b 100%);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-accent: rgba(0, 217, 255, 0.4);
    --shadow-danger: rgba(255, 107, 107, 0.4);
}

html[data-theme="light"] {
    --bg-primary: #f0f2f5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e8ecf1;
    --bg-card: #ffffff;
    --bg-card-hover: #f5f7fa;
    --bg-hover: rgba(0, 102, 153, 0.08);
    --bg-active: rgba(0, 102, 153, 0.15);
    --border-color: #d1d5db;
    --border-light: #e5e7eb;
    --border-accent: #006699;
    --text-primary: #1a1a2e;
    --text-secondary: #374151;
    --text-muted: #6b7280;
    --text-inverse: #ffffff;
    --accent-primary: #0088cc;
    --accent-secondary: #006699;
    --accent-danger: #dc2626;
    --accent-danger-dark: #b91c1c;
    --accent-purple: #7c3aed;
    --accent-purple-dark: #6d28d9;
    --accent-gold: #f59e0b;
    --accent-gold-dark: #d97706;
    --accent-success: #059669;
    --accent-warning: #d97706;
    --gradient-primary: linear-gradient(135deg, #0088cc 0%, #006699 100%);
    --gradient-primary-hover: linear-gradient(135deg, #00a3dd 0%, #007ab3 100%);
    --gradient-secondary: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    --gradient-danger: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    --gradient-purple: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-title: linear-gradient(135deg, #0088cc 0%, #dc2626 100%);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-accent: rgba(0, 136, 204, 0.3);
    --shadow-danger: rgba(220, 38, 38, 0.3);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    position: relative;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
    position: relative;
    z-index: 5;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    position: relative;
    z-index: 10;
}

.marquee-container {
    position: absolute;
    left: 100px;
    right: 280px;
    overflow: hidden;
    padding: 3px 0;
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
    pointer-events: none;
}

.marquee-content {
    display: flex;
    animation: marquee 30s linear infinite;
}

.marquee-content span {
    display: inline-block;
    white-space: nowrap;
    padding: 0 40px;
    color: var(--text-secondary);
    font-size: 12px;
}

@keyframes marquee {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

.logo-placeholder {
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo-placeholder:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px var(--shadow-accent);
}

.logo-icon {
    font-size: 24px;
}

.logo-text {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-primary);
}

.nav-center {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item .icon {
    font-size: 14px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 100;
}

.btn {
    padding: 6px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-danger);
    color: var(--text-inverse);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-danger);
}

.btn-customer {
    background: var(--gradient-purple);
    color: var(--text-inverse);
}

.btn-customer:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.4);
}

.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    transform: scale(1.1);
}

.theme-icon {
    transition: transform 0.3s ease;
}

.theme-toggle:active .theme-icon {
    transform: rotate(180deg);
}

/* 积分显示样式 */
.score-display {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.score-display:hover {
    border-color: var(--accent-primary);
    background: var(--bg-card-hover);
}

.score-icon {
    font-size: 16px;
}

.score-label {
    font-size: 12px;
    color: var(--text-muted);
}

.score-value {
    font-size: 16px;
    font-weight: bold;
    color: var(--accent-warning);
}

.btn-success {
    background: var(--gradient-primary);
    color: var(--text-inverse);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-accent);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
}

.badge-vip {
    background: var(--gradient-gold);
    color: var(--text-inverse);
}

.badge-svip {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: var(--text-inverse);
}

.user-name {
    color: var(--text-secondary);
    font-size: 14px;
}

.notification {
    background-color: var(--accent-danger);
    color: var(--text-inverse);
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.side-nav {
    width: 60px;
    background-color: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px 0;
    border-right: 1px solid var(--border-color);
}

.nav-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.nav-section.bottom {
    margin-top: auto;
}

.side-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 5px;
    width: 100%;
    border-radius: 0;
    color: var(--text-muted);
}

.side-nav .nav-item .nav-icon {
    font-size: 18px;
}

.side-nav .nav-item span:not(.nav-icon) {
    font-size: 10px;
}

.side-nav .nav-item:hover {
    background-color: var(--bg-hover);
    color: var(--accent-primary);
}

.side-nav .nav-item.active {
    background-color: var(--bg-active);
    color: var(--accent-primary);
    border-left: 3px solid var(--accent-primary);
}

.content-area {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: var(--bg-primary);
}

.workshop-header {
    text-align: center;
    margin-bottom: 30px;
}

.workshop-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.title-icon {
    font-size: 48px;
}

.title-text {
    font-size: 36px;
    font-weight: bold;
    background: var(--gradient-title);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.workshop-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.tab {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.tab:hover {
    color: var(--text-primary);
}

.tab.active {
    background: var(--gradient-primary);
    color: var(--text-inverse);
}

.input-panel {
    background: var(--gradient-secondary);
    border-radius: 12px;
    padding: 20px;
    margin: 0 auto 30px auto;
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 40px var(--shadow-color);
    width: 60%;
}

.input-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.add-icon {
    width: 28px;
    height: 28px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: var(--text-inverse);
}

.input-label {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
}

.select-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.select-group label {
    font-size: 12px;
    color: var(--text-muted);
}

.custom-select {
    padding: 10px 24px 10px 12px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px 16px;
}

.custom-select:hover {
    border-color: var(--accent-primary);
}

.custom-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px var(--shadow-accent);
}

.custom-select option {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.input-material-container {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.input-material-container:hover {
    border-color: var(--accent-primary);
}

.input-container {
    position: relative;
    margin-bottom: 15px;
}

.input-container {
    position: relative;
}

.prompt-input {
    width: 100%;
    height: 180px;
    background-color: transparent;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 15px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    resize: none;
    transition: all 0.3s ease;
    z-index: 1;
    caret-color: var(--accent-primary);
    box-sizing: border-box;
}

.prompt-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px var(--shadow-accent);
}

.prompt-input::placeholder {
    color: var(--text-muted);
}

.material-preview-area {
    margin-top: 15px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.preview-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.preview-count {
    font-size: 12px;
    color: var(--text-muted);
    background-color: var(--bg-secondary);
    padding: 4px 10px;
    border-radius: 12px;
}

.material-list {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    min-height: 70px;
    padding: 15px;
    background-color: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border-light);
    align-items: flex-start;
    transition: all 0.3s ease;
}

.material-item {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.material-item:hover {
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

.material-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.material-item .media-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
}

.material-item .delete-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 18px;
    height: 18px;
    background-color: var(--accent-danger);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: white;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.material-item:hover .delete-btn {
    opacity: 1;
}

.material-item .delete-btn:hover {
    background-color: var(--accent-danger-dark);
}

.material-item .media-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 2px 4px;
    font-size: 10px;
    color: white;
    text-align: center;
}

.material-item .material-tag {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 217, 255, 0.9);
    padding: 1px 4px;
    font-size: 10px;
    color: #1a1a2e;
    font-weight: 600;
    border-radius: 0 0 4px 0;
    z-index: 5;
    pointer-events: none;
}

.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 60px;
    color: var(--text-muted);
}

.preview-icon {
    font-size: 20px;
}

.preview-text {
    font-size: 12px;
}

.upload-placeholder {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background-color: var(--shadow-color);
    border-radius: 8px;
    border: 2px dashed var(--border-light);
}

.upload-icon {
    width: 40px;
    height: 40px;
    background-color: var(--accent-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-inverse);
}

.upload-text {
    font-size: 12px;
    color: var(--text-muted);
}



.input-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: var(--bg-hover);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background-color: var(--bg-hover);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.action-btn i,
.action-btn .action-icon {
    font-size: 14px;
}

.upload-btn {
    width: 44px;
    height: 40px;
    padding: 0;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-sizing: border-box;
}

.upload-btn:hover {
    border-color: var(--accent-primary);
}

.upload-btn:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px var(--shadow-accent);
}

.select-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.submit-area {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.cost-info {
    font-size: 14px;
    color: var(--accent-warning);
    font-weight: 500;
}

.cost-score {
    font-weight: bold;
    font-size: 16px;
}

.cost-score .normal-price {
    color: #FF6B6B;
}

.cost-score .vip-price {
    color: #FFD700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
    font-size: 1.5em;
}

.cost-score .price-divider {
    color: #6B7280;
    margin: 0 2px;
}

.cost-score .vip-tag {
    display: inline-block;
    padding: 0 4px;
    margin-left: 2px;
    font-size: 10px;
    font-weight: 600;
    color: #FFD700;
    background: rgba(255, 215, 0, 0.15);
    border-radius: 3px;
    text-transform: lowercase;
}

.submit-btn {
    padding: 14px 40px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    color: var(--text-inverse);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-accent);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-accent);
    background: var(--gradient-primary-hover);
}

.submit-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px var(--shadow-accent);
}

.history-panel {
    background: var(--gradient-secondary);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 40px var(--shadow-color);
    position: relative;
    margin-top: 30px;
}

.history-section {
    margin-bottom: 20px;
}

.history-section:last-child {
    margin-bottom: 0;
}

.history-content {
    min-height: 100px;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.history-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.history-count {
    font-size: 12px;
    color: var(--text-muted);
}

.history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 0;
    gap: 10px;
}

.empty-icon {
    font-size: 36px;
}

.empty-text {
    font-size: 13px;
    color: var(--text-muted);
}

.history-item {
    position: relative;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid var(--border-light);
}

.history-item img {
    width: 100%;
    height: auto;
    display: block;
}

.history-item .item-time {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.history-error {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.generation-status {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    width: 90%;
    max-width: 400px;
}

.generation-status-content {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 40px var(--shadow-color);
}

.generation-status .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.generation-status .status-text {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.generation-status .timer-text {
    font-size: 12px;
    color: var(--text-muted);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.user-avatar {
    position: absolute;
    right: 20px;
    bottom: 20px;
}

.user-avatar img,
.avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--gradient-secondary);
}

@media (max-width: 768px) {
    .top-nav {
        flex-direction: column;
        gap: 10px;
    }

    .nav-center {
        justify-content: center;
    }

    .side-nav {
        width: 50px;
    }
}

.material-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 60%;
    margin: 0 auto;
}

.material-category {
    background: var(--gradient-secondary);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-light);
}

.category-title {
    font-size: 18px;
    color: var(--accent-primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.material-placeholder {
    font-size: 32px;
}

.agent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 60%;
    margin: 0 auto;
}

.agent-card {
    background: var(--gradient-secondary);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid var(--border-light);
    text-align: center;
    transition: all 0.3s ease;
}

.agent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-accent);
    border-color: var(--accent-primary);
}

.agent-avatar {
    font-size: 48px;
    margin-bottom: 15px;
}

.agent-name {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.agent-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.agent-btn {
    padding: 10px 25px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 20px;
    color: var(--text-inverse);
    cursor: pointer;
    transition: all 0.3s ease;
}

.agent-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px var(--shadow-accent);
}

.profile-container {
    width: 60%;
    margin: 0 auto;
}

.profile-header-card {
    background: var(--gradient-secondary);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-icon {
    font-size: 40px;
}

.profile-name {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.profile-stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-primary);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.profile-menu {
    background: var(--gradient-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: var(--bg-hover);
}

.menu-item-danger {
    color: var(--accent-danger);
}

.menu-item-danger:hover {
    background: var(--bg-hover);
    color: var(--accent-danger-dark);
}

.menu-icon {
    font-size: 20px;
}

.menu-text {
    flex: 1;
    color: var(--text-secondary);
}

.menu-arrow {
    font-size: 20px;
    color: var(--text-muted);
}

.recharge-container {
    width: 60%;
    margin: 0 auto;
}

.recharge-balance {
    background: var(--gradient-secondary);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid var(--border-light);
    text-align: center;
    margin-bottom: 25px;
}

.balance-label {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.balance-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--accent-primary);
}

.section-title {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.package-card {
    background: var(--gradient-secondary);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-light);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.package-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

.package-card.popular {
    border-color: var(--accent-danger);
    position: relative;
}

.package-card.selected {
    border-color: var(--accent-primary);
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px var(--shadow-accent);
}

.package-card.selected .package-points,
.package-card.selected .package-price {
    color: var(--text-inverse);
}

.package-points {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-primary);
    margin-bottom: 8px;
}

.package-price {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.package-tag {
    font-size: 12px;
    color: var(--text-muted);
}

/* 选项卡样式 */
.tab-container {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    background: var(--bg-secondary);
    padding: 5px;
    border-radius: 10px;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--gradient-primary);
    color: var(--text-inverse);
    box-shadow: 0 2px 10px var(--shadow-accent);
}

.tab-icon {
    font-size: 16px;
}

/* 当前VIP信息 */
.vip-current-info {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--gradient-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.vip-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.vip-info-label {
    font-size: 12px;
    color: var(--text-muted);
}

.vip-info-value {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-primary);
}

.vip-gold {
    color: #FFD700 !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5) !important;
}

/* VIP套餐网格 */
.vip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.vip-card {
    background: var(--gradient-secondary);
    border-radius: 15px;
    padding: 25px;
    border: 2px solid var(--border-light);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vip-card:hover:not(.disabled) {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
}

.vip-card.selected {
    border-color: var(--accent-primary);
    background: var(--gradient-primary);
    box-shadow: 0 6px 20px var(--shadow-accent);
}

.vip-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--bg-secondary);
}

.vip-card.popular {
    border-color: var(--accent-danger);
    position: relative;
}

.vip-card.popular::before {
    content: 'HOT';
    position: absolute;
    top: 10px;
    right: -35px;
    background: var(--accent-danger);
    color: var(--text-inverse);
    font-size: 10px;
    padding: 3px 20px;
    transform: rotate(45deg);
}

.vip-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    color: var(--text-inverse);
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.vip-badge.svip {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.vip-badge.annual {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.vip-duration {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.vip-price {
    font-size: 32px;
    font-weight: bold;
    color: var(--accent-primary);
    margin-bottom: 10px;
}

.vip-card.selected .vip-price {
    color: var(--text-inverse);
}

.vip-gift {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    font-size: 12px;
    color: #b8860b;
    margin-bottom: 15px;
}

.vip-card.selected .vip-gift {
    background: rgba(255, 215, 0, 0.3);
}

.vip-benefits {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.benefit-item {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.vip-card.selected .benefit-item {
    color: var(--text-inverse);
}

.vip-disabled {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-inverse);
    padding: 10px 30px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.recharge-methods {
    margin-bottom: 25px;
}

.method-options {
    display: flex;
    gap: 15px;
}

.method-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: var(--gradient-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.method-option:hover {
    border-color: var(--accent-primary);
}

.method-option.selected {
    border-color: var(--accent-primary);
    background: var(--bg-hover);
}

.method-option input {
    display: none;
}

.method-icon {
    font-size: 20px;
}

.recharge-btn {
    width: 100%;
    padding: 15px;
    background: var(--gradient-danger);
    border: none;
    border-radius: 8px;
    color: var(--text-inverse);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.recharge-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--shadow-danger);
}

.service-container {
    width: 60%;
    margin: 0 auto;
}

.service-card {
    background: var(--gradient-secondary);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border-light);
    text-align: center;
}

.qrcode-section {
    margin-bottom: 25px;
}

.qrcode-placeholder {
    width: 200px;
    height: 200px;
    margin: 0 auto 15px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.qrcode-icon {
    font-size: 80px;
    z-index: 2;
}

.qrcode-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
        linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
        linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    opacity: 0.3;
}

.qrcode-hint {
    font-size: 16px;
    color: var(--text-secondary);
}

.service-info {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-light);
}

.service-title {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.service-time {
    font-size: 14px;
    color: var(--text-muted);
}

.service-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.service-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    background: var(--bg-hover);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-option:hover {
    background: var(--bg-hover);
}

.option-icon {
    font-size: 24px;
}

.option-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.faq-section {
    text-align: left;
}

.faq-title {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.faq-list {
    background: var(--bg-hover);
    border-radius: 8px;
    overflow: hidden;
}

.faq-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item:hover {
    background: var(--bg-hover);
}

.faq-item span:first-child {
    color: var(--text-secondary);
}

.faq-arrow {
    font-size: 18px;
    color: var(--text-muted);
}

a.logo-container,
a.user-info {
    text-decoration: none;
}

@media (max-width: 768px) {
    .side-nav .nav-item span {
        display: none;
    }

    .title-text {
        font-size: 24px;
    }

    .input-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .action-buttons {
        justify-content: center;
    }

    .submit-area {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .content-area {
        padding: 10px;
    }

    .workshop-tabs {
        gap: 15px;
    }

    .tab {
        padding: 6px 12px;
        font-size: 14px;
    }

    .action-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

.user-menu {
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.user-info:hover {
    background: var(--bg-hover);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: 0 8px 24px var(--shadow-color);
    min-width: 140px;
    z-index: 10000;
    overflow: hidden;
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
    cursor: pointer;
}

.dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--accent-primary);
}

.login-container {
    max-width: 400px;
    margin: 60px auto;
    padding: 20px;
}

.login-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.login-tab {
    flex: 1;
    padding: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.login-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.login-form {
    display: none;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
}

.login-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.login-container .submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    color: var(--text-inverse);
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.login-container .submit-btn:hover {
    background: var(--gradient-primary-hover);
}

.login-container .submit-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

/* 视频日志列表样式 */
.video-logs-content {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-light) var(--bg-secondary);
}

.video-logs-content::-webkit-scrollbar {
    height: 6px;
}

.video-logs-content::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.video-logs-content::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 3px;
}

.video-logs-content::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

.video-log-item {
    flex-shrink: 0;
    width: 240px;
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.video-log-item:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 15px var(--shadow-accent);
}

.video-log-preview {
    position: relative;
    width: 100%;
    height: 135px;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

.video-log-preview.has-video:hover .video-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-log-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.video-log-preview.has-video .video-play-btn {
    opacity: 0.8;
}

.video-log-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.video-log-placeholder-icon {
    font-size: 32px;
}

.video-log-placeholder-text {
    font-size: 12px;
}

.video-log-duration {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
}

.video-log-elapsed {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(0, 217, 255, 0.8);
    color: var(--text-inverse);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
}

.video-log-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.video-log-estimated-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(79, 172, 254, 0.15);
    color: #4facfe;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    margin-top: auto;
}

.video-log-delete-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
}

.video-log-action-delete {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(255, 87, 87, 0.15);
    color: #ff5757;
    border-radius: 4px;
    font-size: 11px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.video-log-action-delete:hover {
    background: rgba(255, 87, 87, 0.3);
    transform: scale(1.05);
}

.video-log-action-delete .action-icon {
    font-size: 12px;
}

.video-log-task-id {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.video-log-task-id-label {
    font-size: 11px;
    color: var(--text-muted);
}

.video-log-task-id-value {
    font-size: 12px;
    color: var(--accent-primary);
    font-family: 'Monaco', 'Consolas', monospace;
    font-weight: 500;
}

.video-log-status {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
    display: inline-block;
    width: fit-content;
}

/* =====================================================
   充值中心临时禁用按钮样式
   ===================================================== */

.recharge-btn.temporarily-disabled,
.recharge-btn:disabled.temporarily-disabled {
    position: relative !important;
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    background: #6c757d !important;
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%) !important;
    color: #ffffff !important;
    border-color: #5a6268 !important;
    box-shadow: none !important;
    pointer-events: none !important;
}

.recharge-btn.temporarily-disabled::after {
    content: "维护中，暂不可用";
    display: block;
    font-size: 12px;
    margin-top: 4px;
    opacity: 0.9;
}

/* 套餐卡片禁用样式 */
.package-card.temporarily-disabled,
.vip-card.temporarily-disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* 导航充值按钮禁用样式 */
.btn-primary.temporarily-disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.video-log-status-pending {
    background: rgba(243, 156, 18, 0.2);
    color: var(--accent-warning);
}

.video-log-status-success {
    background: rgba(39, 174, 96, 0.2);
    color: var(--accent-success);
}

.video-log-status-failed {
    background: rgba(255, 107, 107, 0.2);
    color: var(--accent-danger);
}

.video-log-status-cancelled {
    background: rgba(107, 114, 128, 0.2);
    color: var(--text-muted);
}

.video-log-prompt {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-log-error-tip {
    font-size: 11px;
    color: var(--accent-danger);
    margin-top: 4px;
}

/* 视频日志操作链接 */
.video-log-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.video-log-action-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-log-action-link:hover {
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    text-decoration: none;
}

.video-log-action-refresh:hover {
    color: var(--accent-primary);
}

.video-log-action-cancel:hover {
    color: var(--accent-danger);
}

.video-log-action-link .action-icon {
    font-size: 12px;
}

.video-log-action-link .action-text {
    font-size: 12px;
}

.video-log-action-refresh.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

.video-log-action-refresh.loading .action-icon {
    animation: spin 1s linear infinite;
}

/* 视频日志加载状态 */
.video-logs-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    width: 100%;
}

.video-logs-load-more {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    cursor: pointer;
    color: var(--accent-primary);
    font-size: 14px;
    transition: color 0.3s ease;
}

.video-logs-load-more:hover {
    color: var(--accent-secondary);
}

/* 视频日志分页 */
.video-logs-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
}

.pagination-info {
    font-size: 13px;
    color: var(--text-muted);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    padding: 6px 14px;
    background: var(--bg-hover);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(.disabled) {
    background: var(--bg-active);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-pages {
    display: flex;
    gap: 4px;
}

.pagination-page {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-hover);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-page:hover:not(.active) {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.pagination-page.active {
    background: var(--gradient-primary);
    border-color: var(--accent-primary);
    color: var(--text-inverse);
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--text-muted);
    font-size: 13px;
}

.pagination-size {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.pagination-size-select {
    padding: 4px 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 12px;
    cursor: pointer;
}

.pagination-size-select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* 视频播放模态框 */
.video-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.video-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-content {
    position: relative;
    background: var(--bg-card);
    margin: auto;
    padding: 20px;
    border-radius: 12px;
    max-width: 90%;
    max-height: 90%;
    width: auto;
    display: flex;
    flex-direction: column;
}

.video-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: var(--text-muted);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}

.video-modal-close:hover {
    color: var(--text-primary);
}

.modal-video {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 8px;
}

.video-modal-info {
    margin-top: 15px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.video-modal-task-id {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.video-modal-task-id span:first-child {
    color: var(--text-muted);
    font-size: 13px;
}

.video-modal-task-id span:nth-child(2) {
    color: var(--accent-primary);
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
}

.video-modal-prompt {
    color: var(--text-secondary);
    font-size: 13px;
}

.btn-copy {
    padding: 4px 10px;
    background: var(--bg-hover);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: var(--bg-active);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-copy.copied {
    background: rgba(39, 174, 96, 0.2);
    border-color: var(--accent-success);
    color: var(--accent-success);
}

/* 日志容器切换 */
.logs-container {
    display: none;
}

.logs-container.active {
    display: block;
}

.logs-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 10px;
}

.logs-empty-icon {
    font-size: 48px;
}

.logs-empty-text {
    font-size: 14px;
    color: var(--text-muted);
}