* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    /* 设置背景图片 */
    background-image: url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=A%20beautiful%20landscape%20with%20northern%20lights%20in%20the%20sky%2C%20mountains%20reflected%20in%20a%20calm%20lake%2C%20night%20sky%20with%20stars%2C%20cinematic%20lighting&image_size=landscape_16_9');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* 星光效果 */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.star-sm {
    width: 1px;
    height: 1px;
    opacity: 0.6;
    animation-duration: 2s;
}

.star-md {
    width: 2px;
    height: 2px;
    opacity: 0.8;
    animation-duration: 3s;
}

.star-lg {
    width: 3px;
    height: 3px;
    opacity: 1;
    animation-duration: 4s;
    box-shadow: 0 0 15px rgba(255, 255, 255, 1);
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* 为每个星星随机定位和动画延迟 */
.star:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.star:nth-child(2) { top: 20%; left: 80%; animation-delay: 0.5s; }
.star:nth-child(3) { top: 30%; left: 50%; animation-delay: 1s; }
.star:nth-child(4) { top: 40%; left: 10%; animation-delay: 1.5s; }
.star:nth-child(5) { top: 50%; left: 90%; animation-delay: 2s; }
.star:nth-child(6) { top: 60%; left: 30%; animation-delay: 2.5s; }
.star:nth-child(7) { top: 70%; left: 70%; animation-delay: 3s; }
.star:nth-child(8) { top: 80%; left: 40%; animation-delay: 3.5s; }
.star:nth-child(9) { top: 15%; left: 60%; animation-delay: 0.2s; }
.star:nth-child(10) { top: 25%; left: 30%; animation-delay: 0.7s; }
.star:nth-child(11) { top: 35%; left: 85%; animation-delay: 1.2s; }
.star:nth-child(12) { top: 45%; left: 25%; animation-delay: 1.7s; }
.star:nth-child(13) { top: 55%; left: 65%; animation-delay: 2.2s; }
.star:nth-child(14) { top: 65%; left: 15%; animation-delay: 2.7s; }
.star:nth-child(15) { top: 75%; left: 85%; animation-delay: 3.2s; }
.star:nth-child(16) { top: 85%; left: 25%; animation-delay: 3.7s; }
.star:nth-child(17) { top: 5%; left: 5%; animation-delay: 0.9s; }
.star:nth-child(18) { top: 15%; left: 95%; animation-delay: 1.4s; }
.star:nth-child(19) { top: 85%; left: 5%; animation-delay: 1.9s; }
.star:nth-child(20) { top: 95%; left: 95%; animation-delay: 2.4s; }

/* 波浪效果 */
.waves {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    pointer-events: none;
    z-index: 0;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E") repeat-x;
    animation: wave 15s linear infinite;
}

.wave:nth-child(2) {
    bottom: 10px;
    opacity: 0.5;
    animation: wave 20s linear infinite reverse;
}

.wave:nth-child(3) {
    bottom: 20px;
    opacity: 0.3;
    animation: wave 25s linear infinite;
}

@keyframes wave {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.3), 0 0 100px rgba(102, 126, 234, 0.1);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: 
        glow 3s ease-in-out infinite alternate,
        hologramFloat 6s ease-in-out infinite,
        hologramSweep 4s ease-in-out infinite;
    overflow: hidden;
    will-change: transform, box-shadow;
    transform: translateZ(0); /* 触发GPU加速 */
}

/* 扫描线效果 */
.container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.05) 0px,
        rgba(0, 0, 0, 0.05) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 10;
    animation: scanlines 0.1s linear infinite;
}

@keyframes scanlines {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(2px);
    }
}

/* 全息投影浮动效果 */
@keyframes hologramFloat {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-5px);
    }
    75% {
        transform: translateY(5px);
    }
}

/* 全息投影扫描效果 */
@keyframes hologramSweep {
    0% {
        box-shadow: 
            0 20px 80px rgba(0, 0, 0, 0.3), 
            0 0 100px rgba(102, 126, 234, 0.1),
            inset 0 0 0px rgba(102, 126, 234, 0);
    }
    50% {
        box-shadow: 
            0 20px 80px rgba(0, 0, 0, 0.3), 
            0 0 120px rgba(102, 126, 234, 0.2),
            inset 0 0 100px rgba(102, 126, 234, 0.05);
    }
    100% {
        box-shadow: 
            0 20px 80px rgba(0, 0, 0, 0.3), 
            0 0 100px rgba(102, 126, 234, 0.1),
            inset 0 0 0px rgba(102, 126, 234, 0);
    }
}

/* 容器顶部装饰 */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    border-radius: 20px 20px 0 0;
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* 霓虹脉冲效果 */
@keyframes neonPulse {
    0%, 100% {
        filter: brightness(1);
        transform: scale(1);
    }
    50% {
        filter: brightness(1.2);
        transform: scale(1.02);
    }
}

@keyframes glow {
    from {
        box-shadow: 0 20px 80px rgba(0, 0, 0, 0.3), 0 0 100px rgba(102, 126, 234, 0.1);
    }
    to {
        box-shadow: 0 20px 80px rgba(0, 0, 0, 0.3), 0 0 150px rgba(102, 126, 234, 0.2), 0 0 50px rgba(0, 242, 254, 0.1);
    }
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 10px;
    font-size: 36px;
    font-family: "KaiTi", "STKaiti", "SimKai", "楷体", serif;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

@keyframes titleFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.description {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
    animation: fadeIn 1s ease-out 0.2s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.upload-section {
    text-align: center;
    margin: 40px 0;
}

#imageInput {
    display: none;
}

.upload-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.upload-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.upload-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.5), 0 0 20px rgba(118, 75, 162, 0.3);
}

.upload-btn:hover::before {
    opacity: 1;
}

.upload-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* 鼠标跟随发光效果 */
.upload-btn::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: -1;
}

.upload-btn:hover::after {
    opacity: 1;
    width: 200px;
    height: 200px;
}

.preview-section {
    margin: 40px 0;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.preview-section h2 {
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.preview-section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

#previewCanvas {
    max-width: 100%;
    border: 3px solid #e0e0e0;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

#previewCanvas:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.result-section {
    margin-top: 50px;
    animation: fadeInUp 0.8s ease-out;
}

.result-section h2 {
    text-align: center;
    margin-bottom: 35px;
    color: #333;
    font-size: 24px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    width: 100%;
}

.result-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.grid-item {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: visible;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    will-change: transform, box-shadow, border-color;
    transform: translateZ(0); /* 触发GPU加速 */
}

.grid-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25), 0 0 100px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
}

/* 网格项发光和全息效果 */
.grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.grid-item:hover::before {
    opacity: 1;
}

.grid-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.4) 0%, rgba(0, 242, 254, 0.2) 50%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    z-index: -1;
}

.grid-item:hover::after {
    width: 300px;
    height: 300px;
}

.grid-item canvas {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    z-index: 1;
}

.download-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    opacity: 1;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    z-index: 2;
}

.grid-item:hover .download-btn {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.download-btn:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* 图片选择复选框样式 */
.image-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    z-index: 2;
    accent-color: #667eea;
}

.download-all-btn {
    padding: 16px 45px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.download-all-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, rgba(102, 126, 234, 0.8) 50%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.download-all-btn:hover::before {
    width: 200px;
    height: 200px;
    opacity: 1;
}

.download-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
}

.feedback {
    margin-top: 25px;
    padding: 15px 25px;
    border-radius: 12px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feedback.show {
    opacity: 1;
    transform: translateY(0);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.feedback.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 2px solid #28a745;
}

.feedback.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 2px solid #dc3545;
}

.feedback.info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border: 2px solid #17a2b8;
}

.watermark-options {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    padding: 15px;
    background: white;
    border-radius: 10px;
    transition: all 0.3s;
    font-weight: 600;
}

.checkbox-label:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: translateX(5px);
}

.checkbox-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #667eea;
}

.watermark-settings {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

.setting-group {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.setting-group:last-child {
    margin-bottom: 0;
}

.setting-group label {
    min-width: 100px;
    font-size: 14px;
    color: #555;
}

.setting-group select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}

.setting-group input[type="range"] {
    flex: 1;
    cursor: pointer;
}

.setting-group span {
    min-width: 40px;
    font-weight: bold;
    color: #667eea;
}

.setting-group input[type="number"] {
    width: 100px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.setting-group span {
    font-size: 16px;
    color: #667eea;
}

.download-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.download-single-btn {
    padding: 16px 45px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
    position: relative;
    overflow: hidden;
}

.download-single-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, rgba(245, 87, 108, 0.8) 50%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.download-single-btn:hover::before {
    width: 200px;
    height: 200px;
    opacity: 1;
}

.download-single-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(245, 87, 108, 0.5);
}

.download-pack-btn {
    padding: 16px 45px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.4);
    position: relative;
    overflow: hidden;
}

.download-pack-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, rgba(0, 242, 254, 0.8) 50%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.download-pack-btn:hover::before {
    width: 200px;
    height: 200px;
    opacity: 1;
}

.download-pack-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.5);
}

.download-selected-btn {
    padding: 16px 45px;
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(250, 112, 154, 0.4);
    position: relative;
    overflow: hidden;
}

.download-selected-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, rgba(250, 112, 154, 0.8) 50%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.download-selected-btn:hover::before {
    width: 200px;
    height: 200px;
    opacity: 1;
}

.download-selected-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(250, 112, 154, 0.5);
}

.donate-section {
    text-align: center;
    margin: 20px 0;
}

.donate-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(102, 126, 234, 0.3) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to { 
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

.modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.9) 100%);
    margin: 5% auto;
    padding: 45px;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 100px rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

@keyframes slideUp {
    from {
        transform: translateY(100px) scale(0.9);
        opacity: 0;
        box-shadow: 0 0 0 rgba(0, 0, 0, 0.3);
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 100px rgba(102, 126, 234, 0.2);
    }
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    border-radius: 24px 24px 0 0;
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

.close {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.close:hover {
    color: #667eea;
    transform: rotate(90deg) scale(1.1);
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.modal-content h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 20px;
}

.modal-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.modal-description {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.payment-item {
    text-align: center;
}

.payment-item h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.qrcode-placeholder {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border: 2px dashed #ddd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.qrcode-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.qrcode-text {
    text-align: center;
    padding: 20px;
}

.qrcode-text p {
    margin: 10px 0;
    color: #666;
}

.other-methods {
    border-top: 2px solid #f0f0f0;
    padding-top: 30px;
    text-align: center;
}

.other-methods h3 {
    color: #333;
    margin-bottom: 20px;
}

.method-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.method-link {
    padding: 10px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: transform 0.2s;
    font-size: 14px;
}

.method-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.hint {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
}

@media (max-width: 600px) {
    .payment-methods {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 30px 20px;
        margin: 10% auto;
    }
    
    .method-links {
        flex-direction: column;
        align-items: center;
    }
}


.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.usage-display {
    padding: 10px 20px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    display: none;
}

.donate-section {
    display: flex;
    gap: 10px;
}

.upgrade-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.premium-features {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.premium-features h3 {
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 10px 0;
    color: #555;
    font-size: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.feature-list li:last-child {
    border-bottom: none;
}

.activation-section {
    text-align: center;
    margin-bottom: 30px;
}

.activation-section h3 {
    color: #333;
    margin-bottom: 15px;
}

.activation-input {
    width: 100%;
    max-width: 400px;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    margin-bottom: 15px;
    text-align: center;
    transition: border-color 0.3s;
}

.activation-input:focus {
    outline: none;
    border-color: #667eea;
}

.unlock-btn {
    padding: 12px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.unlock-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.purchase-section {
    border-top: 2px solid #f0f0f0;
    padding-top: 30px;
    text-align: center;
}

.purchase-section h3 {
    color: #333;
    margin-bottom: 10px;
}

.purchase-section p {
    color: #666;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .top-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .donate-section {
        flex-direction: column;
    }
    
    .usage-display {
        text-align: center;
    }
}


/* 管理员面板样式 */
.admin-panel {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
}

.admin-panel h2 {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.admin-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.admin-section h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 18px;
}

.admin-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.generated-code {
    flex: 1;
    min-width: 200px;
    padding: 12px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-family: monospace;
    color: #333;
}

.admin-btn {
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
}

.admin-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.admin-btn.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.admin-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.admin-btn.danger {
    background: #f5576c;
    color: white;
}

.admin-btn.danger:hover {
    background: #e04555;
}

.admin-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.admin-info p {
    margin: 8px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 600px) {
    .admin-controls {
        flex-direction: column;
    }
    
    .generated-code {
        width: 100%;
    }
}


/* 登录/注册按钮 */
.login-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, rgba(79, 172, 254, 0.8) 50%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.login-btn:hover::before {
    width: 200px;
    height: 200px;
    opacity: 1;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
}

.user-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.user-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, rgba(102, 126, 234, 0.8) 50%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.user-btn:hover::before {
    width: 200px;
    height: 200px;
    opacity: 1;
}

.user-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* 认证标签页 */
.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.auth-tab {
    flex: 1;
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    transition: all 0.3s;
}

.auth-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    font-weight: bold;
}

/* 表单样式 */
.auth-form {
    animation: fadeIn 0.3s;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.password-input-container {
    position: relative;
    width: 100%;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    padding-right: 60px;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.toggle-password:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-50%) scale(1.1);
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.form-group input:focus + label {
    color: #667eea;
    transform: translateY(-25px) scale(0.9);
    background: white;
    padding: 0 10px;
    margin-left: -10px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, rgba(102, 126, 234, 0.8) 50%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.submit-btn:hover::before {
    width: 200px;
    height: 200px;
    opacity: 1;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* 用户菜单样式 */
.user-menu-content {
    max-width: 400px;
}

.user-info-section {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    margin-bottom: 20px;
    color: white;
}

.user-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
}

.user-info-section h3 {
    margin-bottom: 5px;
    color: white;
}

.user-type {
    font-size: 14px;
    opacity: 0.9;
}

.user-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #667eea;
}

.user-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-action-btn {
    padding: 12px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.user-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.user-action-btn.danger {
    background: #f5576c;
}

.user-action-btn.danger:hover {
    background: #e04555;
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
}


/* 顶部栏 */
.top-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.user-section {
    display: flex;
    gap: 10px;
}

.login-btn, .register-btn {
    padding: 10px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.login-btn:hover, .register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.user-btn {
    padding: 10px 25px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.user-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover {
    color: #333;
}

.modal-content h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

/* 表单样式 */
.auth-form {
    animation: fadeIn 0.3s;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
}

.auth-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* 用户菜单样式 */
.user-menu-content {
    max-width: 400px;
}

.user-info-section {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    margin-bottom: 20px;
    color: white;
}

.user-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
}

.user-info-section h3 {
    margin-bottom: 5px;
    color: white;
}

.user-type {
    font-size: 14px;
    opacity: 0.9;
}

.user-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #667eea;
}

.user-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-action-btn {
    padding: 12px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.user-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.user-action-btn.danger {
    background: #f5576c;
}

.user-action-btn.danger:hover {
    background: #e04555;
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
}

/* 管理员面板样式 */
.admin-panel {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
}

.admin-panel h2 {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.admin-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.admin-section h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 18px;
}

.admin-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-btn {
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
}

.admin-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.admin-btn.danger {
    background: #f5576c;
    color: white;
}

.admin-btn.danger:hover {
    background: #e04555;
}

.admin-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
}

.admin-info p {
    margin: 8px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 600px) {
    .user-section {
        flex-direction: column;
    }
    
    .admin-controls {
        flex-direction: column;
    }
}


.login-hint {
    text-align: center;
    color: #667eea;
    font-size: 14px;
    margin-top: 15px;
    font-weight: 500;
}


/* 用户列表表格 */
.user-list-container {
    max-height: 400px;
    overflow-y: auto;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    overflow: hidden;
}

.user-table thead {
    background: rgba(102, 126, 234, 0.2);
    position: sticky;
    top: 0;
}

.user-table th {
    padding: 12px;
    text-align: left;
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid #667eea;
}

.user-table td {
    padding: 10px 12px;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
}

.user-table tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

.admin-btn-small {
    padding: 6px 15px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

.admin-btn-small:hover {
    background: #5568d3;
    transform: translateY(-1px);
}

/* 用户详情样式 */
.user-detail-content {
    padding: 20px 0;
}

.user-detail-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    gap: 10px;
}

.detail-label {
    font-weight: bold;
    color: #667eea;
    min-width: 100px;
}

.detail-value {
    flex: 1;
    color: #333;
}

.password-value {
    font-family: monospace;
    background: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 16px;
    letter-spacing: 2px;
}

.copy-btn {
    padding: 6px 15px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

.copy-btn:hover {
    background: #5568d3;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .user-table {
        font-size: 12px;
    }
    
    .user-table th,
    .user-table td {
        padding: 8px 6px;
    }
    
    .user-detail-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-label {
        min-width: auto;
    }
}


/* 拖拽上传区域优化 */
.drag-drop-area {
    border: 3px dashed #667eea;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(0, 242, 254, 0.05) 50%, rgba(118, 75, 162, 0.1) 100%);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.4s both, borderGlow 2s ease-in-out infinite alternate, hologramPulse 3s ease-in-out infinite;
    box-shadow: 0 0 50px rgba(102, 126, 234, 0.05), inset 0 0 50px rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    will-change: transform, border-color, box-shadow;
    transform: translateZ(0); /* 触发GPU加速 */
}

/* 全息投影效果 - 3D边框 */
.drag-drop-area::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 3px dashed rgba(0, 242, 254, 0.4);
    border-radius: 25px;
    opacity: 0.6;
    animation: borderRotate 8s linear infinite;
    pointer-events: none;
    z-index: -1;
}

/* 全息投影效果 - 内部光效 */
.drag-drop-area::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.8), rgba(102, 126, 234, 0.8), transparent);
    animation: scanLine 2s linear infinite, scanLine2 3s linear infinite 0.5s;
    pointer-events: none;
    z-index: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.drag-drop-area::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes borderGlow {
    from {
        border-color: #667eea;
        box-shadow: 0 0 50px rgba(102, 126, 234, 0.05), inset 0 0 50px rgba(255, 255, 255, 0.02);
    }
    to {
        border-color: #00f2fe;
        box-shadow: 0 0 70px rgba(0, 242, 254, 0.15), inset 0 0 50px rgba(255, 255, 255, 0.05);
    }
}

/* 扫描线效果 */
.drag-drop-area::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.8), transparent);
    animation: scanLine 2s linear infinite;
    z-index: 1;
}

@keyframes scanLine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* 第二条扫描线，垂直方向 */
@keyframes scanLine2 {
    0% {
        top: -100%;
        left: 0;
        width: 2px;
        height: 100%;
        background: linear-gradient(180deg, transparent, rgba(102, 126, 234, 0.8), rgba(0, 242, 254, 0.8), transparent);
    }
    100% {
        top: 100%;
        left: 0;
        width: 2px;
        height: 100%;
        background: linear-gradient(180deg, transparent, rgba(102, 126, 234, 0.8), rgba(0, 242, 254, 0.8), transparent);
    }
}

/* 3D边框旋转动画 */
@keyframes borderRotate {
    0% {
        transform: rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: rotate(180deg);
        opacity: 0.3;
    }
    100% {
        transform: rotate(360deg);
        opacity: 0.6;
    }
}

/* 全息投影脉冲效果 */
@keyframes hologramPulse {
    0%, 100% {
        box-shadow: 0 0 50px rgba(102, 126, 234, 0.05), inset 0 0 50px rgba(255, 255, 255, 0.02);
    }
    50% {
        box-shadow: 0 0 80px rgba(102, 126, 234, 0.15), inset 0 0 80px rgba(255, 255, 255, 0.05);
    }
}

.drag-drop-area:hover {
    border-color: #764ba2;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.drag-drop-area.drag-over {
    border-color: #f5576c;
    background: linear-gradient(135deg, rgba(245, 87, 108, 0.15) 0%, rgba(240, 147, 251, 0.15) 100%);
    border-width: 4px;
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(245, 87, 108, 0.3);
}

.drag-drop-content {
    /* 移除 pointer-events: none 以允许点击 */
}

.upload-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    color: #00f2fe;
    opacity: 0.9;
    animation: float 3s ease-in-out infinite, iconGlow 2s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 20px rgba(0, 242, 254, 0.5));
    transform-origin: center;
}

@keyframes iconGlow {
    from {
        color: #667eea;
        filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.5));
    }
    to {
        color: #00f2fe;
        filter: drop-shadow(0 0 30px rgba(0, 242, 254, 0.8));
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.drag-text {
    font-size: 20px;
    color: #667eea;
    margin: 10px 0;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.drag-text-or {
    font-size: 14px;
    color: #999;
    margin: 15px 0;
}

.login-tip {
    color: #ff6b6b;
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
    font-weight: 500;
}

.upload-btn {
    display: inline-block;
    padding: 14px 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    pointer-events: auto;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.upload-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.upload-btn:hover::before {
    width: 300px;
    height: 300px;
}

.upload-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

@media (max-width: 768px) {
    .container {
        padding: 25px;
        margin: 10px;
        /* 移动设备上禁用部分复杂动画以提高性能 */
        animation: glow 3s ease-in-out infinite alternate;
    }
    
    h1 {
        font-size: 28px;
    }
    
    .description {
        font-size: 14px;
    }
    
    .top-bar {
        padding: 12px 15px;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .download-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .download-single-btn,
    .download-all-btn,
    .download-pack-btn {
        width: 100%;
        padding: 14px 30px;
        font-size: 16px;
    }
    
    .drag-drop-area {
        padding: 40px 20px;
        /* 移动设备上简化拖拽区域动画 */
        animation: fadeInUp 0.8s ease-out 0.4s both;
    }
    
    .upload-icon {
        width: 60px;
        height: 60px;
    }
    
    .drag-text {
        font-size: 18px;
    }
    
    /* 移动设备上禁用部分复杂效果以提高性能 */
    .container::after {
        animation: none;
    }
    
    .drag-drop-area::before {
        animation: none;
        opacity: 0.3;
    }
    
    .drag-drop-area::after {
        animation: none;
    }
    
    .grid-item {
        will-change: transform;
    }
    
    /* 预览区域响应式设计 */
    .preview-section {
        margin: 30px 0;
    }
    
    .preview-section h2 {
        font-size: 20px;
    }
    
    #previewCanvas {
        max-width: 100%;
        height: auto;
    }
    
    /* 设置项响应式设计 */
    .setting-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .setting-group label {
        min-width: auto;
        width: 100%;
        font-weight: 600;
    }
    
    .setting-group select,
    .setting-group input[type="range"],
    .setting-group input[type="number"] {
        width: 100%;
    }
    
    /* 结果区域响应式设计 */
    .result-section {
        margin-top: 40px;
    }
    
    .result-section h2 {
        font-size: 20px;
        margin-bottom: 25px;
    }
    
    .setting-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .setting-group label {
        min-width: auto;
    }
    
    .setting-group select,
    .setting-group input[type="number"] {
        width: 100%;
    }
    
    .reload-btn {
        top: 15px;
        right: 15px;
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .user-info {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
    
    .points-display,
    .sign-in-btn,
    .logout-btn {
        font-size: 12px;
        padding: 8px 15px;
    }
    
    .welcome-text {
        font-size: 13px;
        width: 100%;
        text-align: center;
    }
}




.reload-btn {
    position: fixed;
    top: 25px;
    right: 25px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.reload-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.reload-btn:active {
    transform: translateY(-1px) scale(0.98);
}


/* 管理员登录按钮 */
.top-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.admin-section {
    display: flex;
    gap: 10px;
}

.admin-login-btn {
    padding: 10px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.admin-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.admin-logout-btn {
    padding: 10px 25px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.admin-logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

/* 管理员登录弹窗 */
.admin-login-content {
    max-width: 450px;
}

/* 管理员面板样式 */
.admin-panel {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 100px rgba(102, 126, 234, 0.2);
    animation: fadeInUp 0.5s ease-out;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-header h2 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.admin-logout-btn {
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.admin-logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 系统统计 */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-card .stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card .stat-value {
    font-size: 36px;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 管理标签页 */
.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.admin-tab {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.admin-tab:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.admin-tab.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-bottom-color: #00f2fe;
}

/* 标签页内容 */
.admin-tab-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.tab-content.active {
    display: block;
}

/* 管理员控件 */
.admin-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.admin-search {
    flex: 1;
    min-width: 200px;
    padding: 12px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.admin-search::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.admin-search:focus {
    outline: none;
    border-color: #00f2fe;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

.admin-btn {
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.admin-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 设置项 */
.settings-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.setting-item label {
    min-width: 120px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.setting-item input[type="text"],
.setting-item input[type="email"] {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.setting-item input[type="text"]:focus,
.setting-item input[type="email"]:focus {
    outline: none;
    border-color: #00f2fe;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

.setting-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #00f2fe;
}

.setting-item select {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.setting-item select:focus {
    outline: none;
    border-color: #00f2fe;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

.setting-item select option {
    background: #667eea;
    color: white;
}

/* 日志列表 */
.logs-list {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.log-item {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.log-item:hover {
    background: rgba(255, 255, 255, 0.05);
    padding-left: 20px;
}

.log-item:last-child {
    border-bottom: none;
}

.log-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-right: 15px;
}

.log-action {
    font-weight: 600;
    color: #00f2fe;
    margin-right: 15px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .admin-tabs {
        flex-direction: column;
    }
    
    .admin-tab {
        border-radius: 10px;
        border-bottom: 3px solid transparent;
    }
    
    .admin-controls {
        flex-direction: column;
    }
    
    .admin-search {
        width: 100%;
    }
    
    .setting-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .setting-item label {
        min-width: auto;
        margin-bottom: 5px;
    }
    
    .setting-item input[type="text"],
    .setting-item input[type="email"],
    .setting-item select {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .top-bar {
        justify-content: center;
    }
}


/* 用户登录注册系统样式 */
.user-section {
    display: flex;
    gap: 10px;
    margin-right: 15px;
}

.login-btn, .register-btn {
    padding: 10px 25px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.login-btn:hover, .register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.4);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 15px;
    animation: fadeInRight 0.8s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.welcome-text {
    color: #667eea;
    font-weight: 600;
    font-size: 15px;
    padding: 8px 16px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 20px;
    transition: all 0.3s;
}

.welcome-text:hover {
    background: rgba(102, 126, 234, 0.15);
    transform: scale(1.02);
}

.logout-btn {
    padding: 10px 22px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.logout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.5);
}

/* 登录要求界面 */
.login-required {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 20px;
    margin: 40px 0;
}

.lock-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.login-required h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 28px;
}

.login-required p {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

.login-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.primary-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.secondary-btn {
    padding: 15px 40px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 50px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
}

.secondary-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* 切换登录注册链接 */
.switch-auth {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

.switch-auth a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.switch-auth a:hover {
    text-decoration: underline;
}

/* 顶部栏样式优化 */
.top-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .login-required {
        padding: 60px 20px;
    }
    
    .lock-icon {
        font-size: 60px;
    }
    
    .login-required h2 {
        font-size: 24px;
    }
    
    .login-actions {
        flex-direction: column;
    }
    
    .primary-btn, .secondary-btn {
        width: 100%;
    }
    
    .top-bar {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .user-section, .user-info {
        margin-right: 0;
    }
}


/* 用户列表样式 */
.user-list-header {
    margin-bottom: 15px;
}

.user-list-header h4 {
    color: white;
    font-size: 16px;
    margin: 0;
}

.user-list-scroll {
    max-height: 500px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 10px;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.user-table thead {
    position: sticky;
    top: 0;
    background: #667eea;
    z-index: 10;
}

.user-table th {
    padding: 12px 8px;
    text-align: left;
    color: white;
    font-weight: 600;
    border-bottom: 2px solid #764ba2;
}

.user-table td {
    padding: 10px 8px;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
}

.user-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.1);
}

.user-table tbody tr:last-child td {
    border-bottom: none;
}

.password-display {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #667eea;
    border: 1px solid #ddd;
}

.admin-btn-small {
    padding: 6px 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

.admin-btn-small:hover {
    background: #5568d3;
    transform: translateY(-1px);
}

.admin-btn-small.danger {
    background: #f5576c;
}

.admin-btn-small.danger:hover {
    background: #e04555;
}

/* 滚动条美化 */
.user-list-scroll::-webkit-scrollbar {
    width: 8px;
}

.user-list-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.user-list-scroll::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.user-list-scroll::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}

@media (max-width: 768px) {
    .user-table {
        font-size: 12px;
    }
    
    .user-table th,
    .user-table td {
        padding: 8px 4px;
    }
    
    .password-display {
        font-size: 11px;
        padding: 2px 4px;
    }
    
    .user-list-scroll {
        max-height: 400px;
    }
}


/* 积分系统样式优化 */
.points-display {
    display: inline-block;
    padding: 10px 18px;
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    color: white;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 10px;
    box-shadow: 0 4px 15px rgba(255, 216, 155, 0.3);
    position: relative;
    overflow: hidden;
}

.points-display::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.points-display:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 216, 155, 0.5);
}

.sign-in-btn {
    padding: 10px 22px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    margin-right: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.sign-in-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.sign-in-btn:hover::before {
    width: 300px;
    height: 300px;
}

.sign-in-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.sign-in-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #95a5a6;
}

@media (max-width: 768px) {
    .user-info {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .points-display {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .sign-in-btn {
        font-size: 12px;
        padding: 6px 15px;
    }
}


/* 积分徽章样式 */
.points-badge {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}



/* 粒子画布 */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}


/* 功能切换标签 */
.feature-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    animation: fadeIn 0.8s ease-out 0.3s both;
}

.tab-btn {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* 文本拆分区域 */
.text-split-section {
    animation: fadeInUp 0.8s ease-out;
}

.text-input-area {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.text-input-area h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
}

.text-input {
    width: 100%;
    min-height: 200px;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s;
    line-height: 1.6;
}

.text-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.text-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.option-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.option-group label {
    font-size: 14px;
    color: #555;
    font-weight: 600;
    white-space: nowrap;
}

.option-select,
.option-input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.option-select:focus,
.option-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.save-key-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.save-key-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}






@media (max-width: 768px) {
    .feature-tabs {
        flex-direction: column;
        gap: 10px;
    }
    
    .tab-btn {
        width: 100%;
    }
    
    .text-options {
        grid-template-columns: 1fr;
    }
    
    .option-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .option-select,
    .option-input {
        width: 100%;
    }
    
    .text-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
    }
}



