/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 顶部标题 */
.header {
    background-color: #FF9F43;
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 28px;
    font-weight: bold;
}

/* 衣服选择区 */
.clothes-section {
    margin-bottom: 30px;
}

.clothes-container {
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.clothes-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: #FF9F43 #f1f1f1;
}

.clothes-scroll::-webkit-scrollbar {
    height: 6px;
}

.clothes-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.clothes-scroll::-webkit-scrollbar-thumb {
    background: #FF9F43;
    border-radius: 10px;
}

.clothes-item {
    flex: 0 0 auto;
    width: 100px;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.clothes-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clothes-item.selected {
    border: 3px solid red;
    transform: scale(1.05);
}

/* 操作按钮 */
.button-section {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.button-section button {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

#selectImageBtn {
    background-color: #FF9F43;
    color: white;
}

#tryOnBtn {
    background-color: #ccc;
    color: white;
    cursor: not-allowed;
}

#tryOnBtn.enabled {
    background-color: #27AE60;
    cursor: pointer;
}

.button-section button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 试衣结果展示区 */
.result-section {
    margin-bottom: 30px;
}

.result-container {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#loading {
    font-size: 18px;
    color: #FF9F43;
    font-weight: bold;
}

#resultImage {
    max-width: 100%;
    max-height: 400px;
    border-radius: 10px;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.result-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.result-buttons button {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

#shareBtn {
    background-color: #3498DB;
    color: white;
}

#downloadBtn {
    background-color: #27AE60;
    color: white;
}

.result-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 附近店铺 */
.stores-section {
    margin-bottom: 30px;
}

.stores-title {
    color: #FF9F43;
    margin-bottom: 15px;
    font-size: 20px;
}

.stores-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.store-card {
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.store-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.store-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.store-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.store-address, .store-whatsapp {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
}

.store-whatsapp a {
    color: #25D366;
    text-decoration: none;
    font-weight: bold;
}

.store-whatsapp a:hover {
    text-decoration: underline;
}

/* 销售团队联系方式 */
.contact-section {
    background-color: #FF9F43;
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-section h2 {
    margin-bottom: 20px;
    font-size: 20px;
}

.whatsapp-contact a {
    display: inline-block;
    background-color: white;
    color: #25D366;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
}

.whatsapp-contact a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header h1 {
        font-size: 24px;
    }

    .clothes-item {
        width: 80px;
        height: 120px;
    }

    .button-section button {
        padding: 12px;
        font-size: 14px;
    }

    .result-container {
        padding: 20px;
        min-height: 250px;
    }

    .result-buttons button {
        padding: 12px;
        font-size: 14px;
    }

    .contact-section {
        padding: 20px;
    }

    .contact-section h2 {
        font-size: 18px;
    }

    .whatsapp-contact a {
        padding: 12px 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 20px;
    }

    .clothes-item {
        width: 70px;
        height: 105px;
    }

    .button-section {
        flex-direction: column;
    }

    .result-buttons {
        flex-direction: column;
    }

    .store-card {
        padding: 15px;
    }

    .store-name {
        font-size: 16px;
    }

    .store-address, .store-whatsapp {
        font-size: 12px;
    }
}