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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

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

/* 微信登录遮罩层样式 */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.login-overlay.hidden {
    display: none;
}

.login-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.5s ease;
}

.login-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.login-container h2 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.login-container > p {
    color: #666;
    margin-bottom: 20px;
}

.login-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: left;
}

.login-info p {
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
}

.login-info ul {
    list-style: none;
    padding: 0;
}

.login-info li {
    color: #666;
    padding: 5px 0;
    font-size: 0.95rem;
}

.btn-wechat-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: linear-gradient(135deg, #07c160 0%, #05a050 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.btn-wechat-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(7, 193, 96, 0.4);
}

.wechat-icon {
    font-size: 1.5rem;
}

.login-note {
    color: #999;
    font-size: 0.85rem;
}

/* 用户信息栏样式 */
.user-info-bar {
    background: linear-gradient(135deg, #07c160 0%, #05a050 100%);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.user-info-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
}

.user-nickname {
    color: white;
    font-weight: 500;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
    color: white;
    text-align: center;
    padding: 3rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 主要内容区域 */
.main {
    padding: 3rem 0;
    flex: 1;
}

/* 进度条样式 */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ddd;
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    background: white;
    padding: 0 10px;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ddd;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.progress-step.active .step-number {
    background: #8b4513;
    color: white;
    transform: scale(1.1);
}

.progress-step.completed .step-number {
    background: #4CAF50;
    color: white;
}

.step-title {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    transition: color 0.3s ease;
}

.progress-step.active .step-title {
    color: #8b4513;
    font-weight: 600;
}

.progress-step.completed .step-title {
    color: #4CAF50;
}

/* 步骤内容样式 */
.step-content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: none;
    animation: fadeIn 0.5s ease;
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-content h2 {
    text-align: center;
    color: #8b4513;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 600;
}

/* 网格布局样式 */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-section {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
}

.form-section h2 {
    color: #8b4513;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
}

/* 形状选择器样式 */
.shape-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.shape-option {
    text-align: center;
    cursor: pointer;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #fff;
}

.shape-option:hover {
    border-color: #8b4513;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.2);
}

.shape-option.selected {
    border-color: #8b4513;
    background: #f4e4c1;
    transform: scale(1.05);
}

.shape-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.shape-option span {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
    display: block;
}

/* 尺寸选择器样式 */
.size-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.8rem;
}

.size-option {
    text-align: center;
    cursor: pointer;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fff;
}

.size-option:hover {
    border-color: #8b4513;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.2);
}

.size-option.selected {
    border-color: #8b4513;
    background: #f4e4c1;
    transform: scale(1.02);
}

.size-preview {
    font-size: 1.2rem;
    font-weight: bold;
    color: #8b4513;
    margin-bottom: 0.3rem;
}

.size-name {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
}

.size-detail {
    font-size: 0.8rem;
    color: #666;
}

/* 材质选择器样式 */
.material-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.material-option {
    text-align: center;
    cursor: pointer;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #fff;
}

.material-option:hover {
    border-color: #8b4513;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.2);
}

.material-option.selected {
    border-color: #8b4513;
    background: #f4e4c1;
    transform: scale(1.02);
}

.material-option.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #ccc;
    background: #f5f5f5;
    color: #999;
}

.material-option.disabled:hover {
    border-color: #ccc;
    transform: none;
    box-shadow: none;
}

.material-option.disabled .material-name,
.material-option.disabled .material-desc {
    color: #999;
}

.material-image {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.material-name {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.material-desc {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.3;
}

/* 定制选项样式 */
.customization-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.radio-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
}

.radio-option input[type="radio"] {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-text {
    color: #333;
}

.special-requirements {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.special-requirements:focus {
    outline: none;
    border-color: #8b4513;
}

/* 价格总结面板样式 */
.price-summary-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 2px solid #dee2e6;
}

.selected-shape-icon {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    border: 2px solid #8b4513;
    min-height: 150px;
}

.selected-shape-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.shape-placeholder-text {
    font-size: 14px;
    color: #8b4513;
}

.price-display {
    flex: 1;
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    border: 2px solid #8b4513;
}

.price-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.price-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.price-value {
    font-size: 2rem;
    font-weight: bold;
    color: #8b4513;
}

/* 下一步按钮样式 */
.next-step-section {
    text-align: center;
    margin-top: 2rem;
}

.btn-next {
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
    color: white;
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 250px;
}

.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

/* 按钮组样式 */
.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-prev,
.btn-submit {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.btn-prev {
    background: #6c757d;
    color: white;
}

.btn-prev:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-submit {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

/* 收货信息表单样式 */
.shipping-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b4513;
}

/* 订单总结样式 */
.order-summary {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 2px solid #ddd;
}

.order-summary h3 {
    color: #8b4513;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.summary-item:last-child,
.summary-item.total {
    border-bottom: none;
}

.summary-item.total {
    border-top: 2px solid #8b4513;
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-weight: bold;
}

.summary-label {
    color: #666;
    font-weight: 500;
}

.summary-value {
    color: #333;
    font-weight: 500;
}

.total-price {
    color: #8b4513;
    font-size: 1.2rem;
    font-weight: bold;
}

/* 感谢页面样式 */
.thank-you-content {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: none;
    animation: fadeInUp 0.6s ease;
    max-width: 800px;
    margin: 0 auto;
}

.thank-you-content.active {
    display: block;
}

.thank-you-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.thank-you-content h2 {
    color: #8b4513;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.thank-you-message {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.order-confirmation {
    text-align: left;
    background: #f9f9f9;
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
}

.order-confirmation p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1.5rem;
}

.next-steps h3 {
    color: #8b4513;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.next-steps ul {
    list-style: none;
    padding-left: 0;
}

.next-steps li {
    padding: 0.5rem 0;
    font-size: 1rem;
    color: #333;
    display: flex;
    align-items: center;
}

.order-details {
    background: white;
    border: 2px solid #8b4513;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.order-details h3 {
    color: #8b4513;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.detail-item:last-child,
.detail-item.total {
    border-bottom: none;
}

.detail-item.total {
    border-top: 2px solid #8b4513;
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-weight: bold;
}

.detail-label {
    color: #666;
    font-weight: 500;
}

.detail-value {
    color: #333;
    font-weight: 500;
}

.thank-you-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-new-order,
.btn-contact {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.btn-new-order {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.btn-new-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.btn-contact {
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
    color: white;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

/* 工作坊报名横幅样式 */
.workshop-banner {
    background: linear-gradient(135deg, #2c1810 0%, #4a2c1a 100%);
    padding: 2rem 0;
    text-align: center;
    margin-top: 2rem;
}

.btn-workshop {
    display: inline-block;
    background: linear-gradient(135deg, #d4a574 0%, #c9956b 100%);
    color: #2c1810;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(212, 165, 116, 0.4);
}

.btn-workshop:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.5);
    background: linear-gradient(135deg, #e0b584 0%, #d4a574 100%);
}

/* 页脚样式 */
.footer {
    background: #f5f5f5;
    color: #333;
    text-align: center;
    padding: 2rem 0;
    margin-top: 0;
    border-top: 1px solid #ddd;
}

.footer a:hover {
    text-decoration: underline !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .progress-bar {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .progress-step {
        flex: 1;
        min-width: 80px;
    }
    
    .step-title {
        font-size: 0.8rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .shape-selector {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.8rem;
    }
    
    .size-selector {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .material-selector {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .price-summary-panel {
        flex-direction: column;
        gap: 1rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn-next,
    .btn-prev,
    .btn-submit {
        width: 100%;
    }
    
    .btn-workshop {
        width: 90%;
        font-size: 1.1rem;
        padding: 1rem 2rem;
    }

    /* 登录弹窗响应式 */
    .login-container {
        padding: 30px 20px;
    }

    .login-icon {
        font-size: 3rem;
    }

    .login-container h2 {
        font-size: 1.5rem;
    }

    .user-info-content {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .step-content {
        padding: 1.5rem;
    }
    
    .form-section {
        padding: 1rem;
    }
    
    .shape-selector {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .size-selector,
    .material-selector {
        grid-template-columns: 1fr;
    }
    
    .shape-img {
        width: 60px;
        height: 60px;
    }
    
    .material-image {
        font-size: 2rem;
    }
    
    .selected-shape-img {
        width: 80px;
        height: 80px;
    }
}
