/* 穿搭搭配师样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

header {
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

main {
    padding: 30px;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-weight: bold;
    color: #333;
    font-size: 1.1rem;
}

.input-group select {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s;
    min-height: 45px; /* 确保在移动设备上易于点击 */
}

.input-group select:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

#getOutfitBtn, #newOutfitBtn {
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
    min-height: 50px; /* 确保在移动设备上易于点击 */
}

#getOutfitBtn:hover, #newOutfitBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}

#getOutfitBtn:active, #newOutfitBtn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}

#getOutfitBtn::before, #newOutfitBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

#getOutfitBtn:hover::before, #newOutfitBtn:hover::before {
    left: 100%;
}

.result-section {
    margin-top: 30px;
}

.result-section h2 {
    color: #ff6b6b;
    margin-bottom: 20px;
    text-align: center;
}

.outfit-result {
    background: #fff9f9;
    padding: 25px;
    border-radius: 10px;
    border-left: 5px solid #ff6b6b;
    line-height: 1.6;
}

.outfit-result h3 {
    color: #ff6b6b;
    margin-bottom: 15px;
}

.outfit-result p {
    margin-bottom: 15px;
}

.outfit-result ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.outfit-result li {
    margin-bottom: 8px;
}

.color-sample {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    border: 1px solid #ccc;
}

.material-sample {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
    border: 1px solid #ccc;
}

footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        margin: 0;
        border-radius: 10px;
    }
    
    header {
        padding: 20px 15px;
    }
    
    header h1 {
        font-size: 2rem;
        margin-bottom: 8px;
    }
    
    header p {
        font-size: 1rem;
    }
    
    main {
        padding: 20px 15px;
    }
    
    .input-group label {
        font-size: 1rem;
    }
    
    .input-group select {
        padding: 12px;
        font-size: 1rem;
    }
    
    #getOutfitBtn, #newOutfitBtn {
        width: 100%;
        padding: 15px;
        font-size: 1.1rem;
        margin-top: 15px;
    }
    
    .outfit-result {
        padding: 20px 15px;
    }
    
    .result-section h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    header p {
        font-size: 0.9rem;
    }
    
    main {
        padding: 15px 10px;
    }
    
    .input-group label {
        font-size: 0.95rem;
    }
    
    .input-group select {
        padding: 10px;
        font-size: 0.95rem;
    }
    
    #getOutfitBtn, #newOutfitBtn {
        padding: 12px;
        font-size: 1rem;
    }
    
    .result-section h2 {
        font-size: 1.3rem;
    }
    
    .outfit-result {
        padding: 15px 10px;
    }
    
    .outfit-result h3 {
        font-size: 1.1rem;
    }
    
    footer {
        padding: 15px 10px;
        font-size: 0.8rem;
    }
}