:root {
    --primary-color: #00d4ff;
    --primary-hover: #00b8e6;
    --secondary-color: #0099cc;
    --success-color: #00ff88;
    --error-color: #ff3366;
    --warning-color: #ffaa00;
    --bg-color: #0a0a0a;
    --card-bg: #1a1a1a;
    --card-hover: #222222;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: #333333;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.7), 0 4px 6px -2px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 
                 'Microsoft YaHei', sans-serif;
    background: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 2rem 1rem;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 153, 204, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

/* Header */
header {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.header-content {
    position: relative;
    z-index: 1;
}

.header-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.user-info {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.user-info span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--primary-color);
    border-radius: 0.4rem;
    transition: all 0.3s ease;
}

.btn-link:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.quota-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 0.4rem;
    font-size: 0.9rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--primary-color);
    font-weight: 600;
}

.quota-badge.unlimited {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.3);
    color: var(--success-color);
}

.quota-badge.low {
    background: rgba(255, 170, 0, 0.1);
    border-color: rgba(255, 170, 0, 0.3);
    color: var(--warning-color);
    animation: pulse 2s infinite;
}

.quota-badge.empty {
    background: rgba(255, 51, 102, 0.1);
    border-color: rgba(255, 51, 102, 0.3);
    color: var(--error-color);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Main Content */
main {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

/* Upload Section */
.upload-section {
    text-align: center;
}

.upload-area {
    border: 3px dashed var(--border-color);
    border-radius: 1rem;
    padding: 3rem 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upload-area:hover::before,
.upload-area.dragover::before {
    opacity: 1;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(0, 212, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.upload-area h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.upload-area p {
    color: var(--text-secondary);
    margin: 1rem 0;
    position: relative;
    z-index: 1;
}

.file-hint {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #000000;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5), var(--shadow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    margin-left: 1rem;
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

/* Options */
.options {
    margin-top: 2rem;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
}

.checkbox-label input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    margin-right: 0.75rem;
    cursor: pointer;
}

/* Result Section */
.result-section {
    animation: fadeIn 0.5s ease;
}

.result-card {
    text-align: center;
}

.result-header {
    margin-bottom: 2rem;
}

.result-icon {
    display: inline-block;
    width: 4rem;
    height: 4rem;
    line-height: 4rem;
    border-radius: 50%;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.result-icon.success {
    background: rgba(0, 255, 136, 0.15);
    color: var(--success-color);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
    border: 2px solid rgba(0, 255, 136, 0.3);
}

.result-icon.error {
    background: rgba(255, 51, 102, 0.15);
    color: var(--error-color);
    box-shadow: 0 0 30px rgba(255, 51, 102, 0.3);
    border: 2px solid rgba(255, 51, 102, 0.3);
}

.result-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.result-content {
    margin-bottom: 2rem;
}

#resultMessage {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.stat-item {
    padding: 1rem 2rem;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.stat-value {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

.repair-log {
    margin-top: 2rem;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
}

.repair-log::-webkit-scrollbar {
    width: 8px;
}

.repair-log::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.repair-log::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.repair-log::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

.repair-log h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.repair-log ul {
    list-style: none;
}

.repair-log li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.repair-log li:last-child {
    border-bottom: none;
}

.result-actions {
    margin-top: 2rem;
}

/* Loading Section */
.loading-section {
    text-align: center;
    padding: 3rem 0;
    animation: fadeIn 0.5s ease;
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-color);
    border-right-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.loading-section p {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.loading-hint {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Footer */
footer {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.info-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.info-section ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-section li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.warning {
    background: rgba(255, 170, 0, 0.1);
    border-left: 4px solid var(--warning-color);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(255, 170, 0, 0.2);
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.1);
}

.warning strong {
    color: var(--warning-color);
    display: block;
    margin-bottom: 0.5rem;
}

.warning ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.warning li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.disclaimer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.disclaimer p {
    margin-bottom: 0.3rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
    
    header,
    main,
    footer {
        padding: 1.5rem;
    }
    
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .btn-secondary {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* 视频区域样式 */
.video-section {
    margin-top: 30px;
    padding: 25px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.video-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.video-container {
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.video-container iframe {
    display: block;
    width: 100%;
    min-height: 500px;
    border: none;
}

/* 购买信息样式 */
.purchase-info {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(0, 212, 255, 0.05) 100%);
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-glow);
    text-align: center;
}

.purchase-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.purchase-info p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 1rem;
}

.purchase-link {
    display: inline-block;
    margin-top: 10px;
}

.purchase-link a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--primary-color);
    color: var(--bg-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

.purchase-link a:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.6);
}

.purchase-link .shop-icon {
    font-size: 1.5rem;
}

.purchase-link .shop-url {
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .purchase-link a {
        font-size: 1rem;
        padding: 12px 25px;
    }
    
    .purchase-link .shop-icon {
        font-size: 1.2rem;
    }
}

