/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #000;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ASCII艺术字样式 */
.ascii-art-container {
    text-align: center;
    margin: 20px 0 40px;
    padding: 20px;
    background: rgba(20, 20, 20, 0.8);
    border-radius: 15px;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.ascii-art-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff3366, #33ccff, #ffcc00);
}

.ascii-art {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #33ccff;
    text-shadow: 0 0 10px rgba(51, 204, 255, 0.7);
    margin: 0 auto;
    line-height: 1.4;
    letter-spacing: 1px;
}

.birthday-text {
    font-family: 'Pacifico', cursive;
    font-size: 3rem;
    color: #ff3366;
    margin-top: 15px;
    text-shadow: 0 0 15px rgba(255, 51, 102, 0.8);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* 控制面板样式 */
.control-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.upload-section, .settings-section, .info-section {
    background: rgba(30, 30, 30, 0.9);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #444;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.upload-section:hover, .settings-section:hover, .info-section:hover {
    transform: translateY(-5px);
}

.upload-section h2, .settings-section h2, .info-section h2 {
    color: #33ccff;
    margin-bottom: 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-area {
    border: 3px dashed #555;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(40, 40, 40, 0.6);
}

.upload-area:hover {
    border-color: #33ccff;
    background: rgba(51, 204, 255, 0.1);
}

.upload-icon {
    font-size: 3rem;
    color: #888;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.upload-area:hover .upload-icon {
    color: #33ccff;
}

.upload-hint {
    font-size: 0.9rem;
    color: #aaa;
    margin-top: 5px;
}

/* 按钮样式 */
.btn {
    background: linear-gradient(135deg, #ff3366, #ff6699);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
}

.btn:hover {
    background: linear-gradient(135deg, #ff0040, #ff3366);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 51, 102, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #33ccff, #6699ff);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #00aaff, #3366ff);
    box-shadow: 0 5px 15px rgba(51, 204, 255, 0.4);
}

.btn-reset {
    background: linear-gradient(135deg, #666, #999);
}

.btn-reset:hover {
    background: linear-gradient(135deg, #555, #777);
    box-shadow: 0 5px 15px rgba(102, 102, 102, 0.4);
}

/* 滑块样式 */
.slider-container {
    margin-bottom: 20px;
}

.slider-container label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #ddd;
    font-size: 0.95rem;
}

.slider-container span {
    color: #33ccff;
    font-weight: bold;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #444;
    outline: none;
    appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #33ccff;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(51, 204, 255, 0.8);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #33ccff;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(51, 204, 255, 0.8);
}

/* 复选框样式 */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #33ccff;
    cursor: pointer;
}

.checkbox-container label {
    color: #ddd;
    cursor: pointer;
    font-size: 0.95rem;
}

/* 信息区域样式 */
.info-section ul {
    list-style-type: none;
    margin-bottom: 25px;
}

.info-section li {
    padding: 8px 0;
    border-bottom: 1px solid #444;
    color: #ccc;
    display: flex;
    align-items: center;
}

.info-section li:before {
    content: '✓';
    color: #33ccff;
    margin-right: 10px;
    font-weight: bold;
}

.birthday-message {
    background: rgba(255, 51, 102, 0.1);
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #ff3366;
    display: flex;
    align-items: center;
    gap: 15px;
}

.birthday-message i {
    font-size: 2rem;
    color: #ff3366;
}

.birthday-message p {
    color: #ffccdd;
    font-style: italic;
    line-height: 1.5;
}

/* 画布容器样式 */
.canvas-container {
    position: relative;
    width: 100%;
    height: 600px;
    margin-bottom: 40px;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid #333;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

#particle-canvas {
    width: 100%;
    height: 100%;
    background: #000;
    display: block;
}

.canvas-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #888;
    font-size: 1.2rem;
    transition: opacity 0.5s ease;
}

.canvas-overlay i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #555;
}

.canvas-overlay .hint {
    font-size: 1rem;
    color: #666;
    margin-top: 10px;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 25px;
    background: rgba(20, 20, 20, 0.9);
    border-radius: 15px;
    border-top: 1px solid #333;
    margin-top: 20px;
}

footer p {
    color: #aaa;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-icons {
    font-size: 1.5rem;
    color: #ff3366;
    letter-spacing: 15px;
}

.footer-icons i {
    animation: float 3s ease-in-out infinite;
}

.footer-icons i:nth-child(2) {
    animation-delay: 0.5s;
}

.footer-icons i:nth-child(3) {
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .control-panel {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .control-panel {
        grid-template-columns: 1fr;
    }
    
    .ascii-art {
        font-size: 10px;
    }
    
    .birthday-text {
        font-size: 2.2rem;
    }
    
    .canvas-container {
        height: 400px;
    }
    
    .upload-section, .settings-section, .info-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .ascii-art {
        font-size: 8px;
    }
    
    .birthday-text {
        font-size: 1.8rem;
    }
    
    .canvas-container {
        height: 300px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
