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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    overflow: hidden;
    color: #fff;
}

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

#header {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 30px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#header h1 {
    font-size: 28px;
    background: linear-gradient(90deg, #ff6b6b, #f9ca24, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

#main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

#canvas-container {
    flex: 1;
    position: relative;
    background: radial-gradient(circle at center, #2a2a4a 0%, #1a1a2e 100%);
}

#scene-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

#loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #4ecdc4;
    z-index: 100;
    display: none;
}

#loading.show {
    display: block;
}

#controls-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    z-index: 10;
}

#clothing-panel {
    width: 320px;
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    overflow-y: auto;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

#clothing-panel h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #f9ca24;
    text-align: center;
}

.clothing-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.clothing-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.clothing-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-5px);
}

.clothing-card.active {
    border-color: #4ecdc4;
    background: rgba(78, 205, 196, 0.2);
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.3);
}

.clothing-icon {
    font-size: 48px;
    margin-bottom: 8px;
    display: block;
}

.clothing-name {
    font-size: 16px;
    font-weight: 500;
}

.clothing-price {
    font-size: 14px;
    color: #4ecdc4;
    margin-top: 4px;
}

#color-picker {
    margin-bottom: 25px;
}

#color-picker h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #fff;
}

#color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.color-btn {
    width: 40px;
    height: 40px;
    border: 3px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.color-btn:hover {
    transform: scale(1.15);
}

.color-btn.active {
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

#action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

#action-buttons button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #45b7d1, #4ecdc4);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

#action-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(69, 183, 209, 0.4);
}

#action-buttons button:active {
    transform: translateY(0);
}

#btn-automode.active {
    background: linear-gradient(135deg, #f9ca24, #ff6b6b);
}

#preview-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

#preview-info p {
    font-size: 14px;
    margin: 5px 0;
    color: rgba(255, 255, 255, 0.8);
}

#preview-info span {
    color: #f9ca24;
    font-weight: 500;
}

#info-panel {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#info-panel h3 {
    font-size: 14px;
    color: #4ecdc4;
    margin-bottom: 10px;
}

#info-panel ul {
    list-style: none;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

#info-panel li {
    padding: 4px 0;
    position: relative;
    padding-left: 20px;
}

#info-panel li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #4ecdc4;
}

/* 滚动条美化 */
#clothing-panel::-webkit-scrollbar {
    width: 6px;
}

#clothing-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

#clothing-panel::-webkit-scrollbar-thumb {
    background: rgba(78, 205, 196, 0.5);
    border-radius: 3px;
}

#clothing-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(78, 205, 196, 0.8);
}

/* 背景动画粒子 */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(78, 205, 196, 0.5);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}
