/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* 导航栏 */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
}

.nav-brand a {
    text-decoration: none;
    color: inherit;
}

.brand-icon {
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #e94560;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    color: #fff;
    border-color: #e94560;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d63a52, #e94560);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.btn-outline {
    background: transparent;
    color: #e94560;
    border-color: #e94560;
}

.btn-outline:hover {
    background: #e94560;
    color: #fff;
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

/* 头部区域 */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 120px 0;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.hero-desc {
    font-size: 1.1rem;
    opacity: 0.7;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* 功能介绍 */
.features {
    padding: 80px 0;
    background: #fff;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 60px;
    color: #1a1a2e;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    margin: 15px auto 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: 12px;
    background: #f8f9fa;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* 使用方法 */
.how-it-works {
    padding: 80px 0;
    background: #f8f9fa;
}

.steps {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.step {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.step p {
    color: #666;
}

/* 个人信息表单 */
.profile-section {
    padding: 60px 0;
    min-height: calc(100vh - 200px);
}

.page-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.page-desc {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}

.profile-form {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #e94560;
}

.form-hint {
    font-size: 0.85rem;
    color: #999;
    margin-top: 5px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* 头像上传 */
.avatar-upload {
    text-align: center;
}

.avatar-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    overflow: hidden;
    border: 3px solid #e94560;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    font-size: 3rem;
    color: #ccc;
}

.avatar-input {
    display: block;
    margin: 0 auto;
}

/* 复选框组 */
.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    background: #f8f9fa;
    transition: background 0.3s;
}

.checkbox-label:hover {
    background: #e8e8e8;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* 表单操作 */
.form-actions {
    text-align: center;
    margin-top: 30px;
}

/* 闪装模式 */
.tryon-section {
    padding: 60px 0;
    min-height: calc(100vh - 200px);
}

.user-info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.user-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e94560;
}

.user-details p {
    color: #555;
    line-height: 1.8;
}

/* 季节选择 */
.season-selector {
    margin-bottom: 40px;
}

.season-grid {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
}

.season-card {
    background: #fff;
    padding: 20px 30px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 3px solid transparent;
    min-width: 120px;
}

.season-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.season-card.active {
    border: 3px solid #e94560;
    background: #ffe8ec;
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.2);
}

.season-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.season-card h3 {
    font-size: 1.1rem;
    color: #1a1a2e;
    margin: 0;
}

/* 风格选择 */
.style-selector {
    margin-bottom: 40px;
}

.style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.style-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 3px solid transparent;
}

.style-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: #e94560;
}

.style-card.active {
    border-color: #e94560;
    background: linear-gradient(135deg, #fff5f7, #fff);
}

.style-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.style-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.style-card p {
    color: #666;
    font-size: 0.95rem;
}

/* 进入闪装模式按钮 */
.tryon-button-wrapper {
    text-align: center;
    margin: 40px 0;
}

#startTryonBtn {
    padding: 18px 48px;
    font-size: 1.2rem;
    font-weight: 600;
}

/* 搭配方案选择 */
.outfit-selection {
    margin: 40px 0;
}

.section-desc {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 1rem;
}

.outfit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.outfit-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 3px solid transparent;
    text-align: center;
}

.outfit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #e94560;
}

.outfit-card.active {
    border: 3px solid #e94560;
    background: linear-gradient(135deg, #fff5f7, #fff);
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.2);
}

.outfit-card-header {
    margin-bottom: 15px;
}

.outfit-card-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.outfit-card-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-season {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-style {
    background: #e3f2fd;
    color: #1565c0;
}

.outfit-card-body {
    margin: 15px 0;
}

.outfit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.outfit-item:last-child {
    border-bottom: none;
}

.outfit-item-icon {
    font-size: 1.2rem;
}

.outfit-item-label {
    font-size: 0.9rem;
    color: #666;
    min-width: 50px;
    text-align: left;
}

.outfit-item-value {
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
}

.outfit-card-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.outfit-card-desc {
    font-size: 0.85rem;
    color: #999;
    line-height: 1.5;
}

.outfit-card-action {
    margin-top: 15px;
}

.btn-select-outfit {
    padding: 10px 24px;
    font-size: 0.95rem;
}

/* 结果展示 */
.result-section {
    margin-top: 40px;
}

.result-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 600px;
    margin: 0 auto;
}

.result-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-card img {
    width: 100%;
    height: auto;
    display: block;
}

.result-loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top-color: #e94560;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* 页脚 */
.footer {
    background: #1a1a2e;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.footer p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .style-grid {
        grid-template-columns: 1fr;
    }

    .season-grid {
        flex-direction: row;
        gap: 10px;
    }

    .season-card {
        min-width: 80px;
        padding: 15px 20px;
    }

    .result-actions {
        flex-direction: column;
        align-items: center;
    }

    .user-info-card {
        flex-direction: column;
        text-align: center;
    }
}
