/* 窗帘展示页面专用样式 */

/* 页面头部 */
.curtains-header {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.curtains-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/curtain-pattern.png');
    background-size: 300px;
    opacity: 0.1;
    pointer-events: none;
}

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

.curtains-header p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.header-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.stat-item i {
    font-size: 36px;
    color: #3498db;
    background: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.stat-item:hover i {
    transform: translateY(-5px);
}

.stat-item span {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
}

/* 产品展示区域 */
.curtains-showcase {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* 窗帘产品网格 */
.curtains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.curtain-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.curtain-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.curtain-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    position: relative;
    overflow: hidden;
}

.curtain-image::after {
    content: attr(data-product-id);
    position: absolute;
    top: 15px;
    right: 15px;
    background: #3498db;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(52,152,219,0.3);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
}

.image-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #3498db;
    opacity: 0.7;
}

.curtain-info {
    padding: 25px;
}

.curtain-info h3 {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.curtain-info .product-code {
    color: #3498db;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
    display: block;
}

.curtain-specs {
    margin: 20px 0;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.spec-label {
    color: #666;
    font-size: 14px;
}

.spec-value {
    color: #2c3e50;
    font-weight: 500;
    font-size: 14px;
}

.curtain-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-detail {
    flex: 1;
    background: #3498db;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-detail:hover {
    background: #2980b9;
}

.btn-sample {
    flex: 1;
    background: white;
    color: #3498db;
    border: 2px solid #3498db;
    padding: 10px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-sample:hover {
    background: #3498db;
    color: white;
}

/* 尺寸对照表 */
.size-comparison {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 60px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.size-comparison h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.size-comparison h3 i {
    color: #3498db;
}

.comparison-table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table th {
    background: #3498db;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border: none;
}

.comparison-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

.comparison-table tr:nth-child(even) {
    background: #f8f9fa;
}

.comparison-table tr:hover {
    background: #e3f2fd;
}

.comparison-note {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.comparison-note p {
    color: #2c3e50;
    font-size: 14px;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.comparison-note i {
    color: #3498db;
    margin-top: 2px;
}

/* 交互功能区域 */
.interactive-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card.interactive {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    border-top: 4px solid #3498db;
}

.feature-card.interactive:hover {
    transform: translateY(-5px);
}

.feature-card.interactive i {
    font-size: 48px;
    color: #3498db;
    margin-bottom: 20px;
}

.feature-card.interactive h3 {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.feature-card.interactive p {
    color: #666;
    margin-bottom: 25px;
    font-size: 15px;
}

.btn-feature {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    max-width: 200px;
}

.btn-feature:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52,152,219,0.3);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #f0f0f0;
    background: #f8f9fa;
    border-radius: 15px 15px 0 0;
}

.modal-header h3 {
    font-size: 20px;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 i {
    color: #3498db;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 30px;
}

/* 计算器样式 */
.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: #2c3e50;
    font-size: 14px;
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
}

.btn-calculate {
    background: #3498db;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-calculate:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52,152,219,0.3);
}

.calculation-result {
    margin-top: 25px;
    padding: 20px;
    background: #e3f2fd;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    display: none;
}

.calculation-result.active {
    display: block;
}

.calculation-result h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 18px;
}

.calculation-result p {
    color: #333;
    margin: 5px 0;
    font-size: 15px;
}

/* 面料预览样式 */
.fabric-modal {
    max-width: 800px;
}

.fabric-preview-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.fabric-selector h4,
.lighting-controls h4,
.fabric-properties h4 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.fabric-options,
.lighting-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fabric-option,
.lighting-option {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s;
    text-align: left;
}

.fabric-option:hover,
.lighting-option:hover {
    border-color: #3498db;
    color: #3498db;
}

.fabric-option.active,
.lighting-option.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.fabric-sample {
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.fabric-texture {
    width: 100%;
    height: 100%;
    background-size: 200px;
}

.fabric-texture.cotton {
    background: linear-gradient(45deg, #f5f5f5 25%, #e8e8e8 25%, #e8e8e8 50%, #f5f5f5 50%, #f5f5f5 75%, #e8e8e8 75%);
    background-size: 40px 40px;
}

.fabric-texture.linen {
    background: linear-gradient(45deg, #f8f4e6 25%, #f0e8d0 25%, #f0e8d0 50%, #f8f4e6 50%, #f8f4e6 75%, #f0e8d0 75%);
    background-size: 60px 60px;
}

.fabric-texture.polyester {
    background: linear-gradient(45deg, #ffffff 25%, #f0f0f0 25%, #f0f0f0 50%, #ffffff 50%, #ffffff 75%, #f0f0f0 75%);
    background-size: 30px 30px;
}

.fabric-texture.velvet {
    background: linear-gradient(45deg, #8b0000 25%, #660000 25%, #660000 50%, #8b0000 50%, #8b0000 75%, #660000 75%);
    background-size: 50px 50px;
}

.fabric-texture.silk {
    background: linear-gradient(45deg, #fffacd 25%, #fff8dc 25%, #fff8dc 50%, #fffacd 50%, #fffacd 75%, #fff8dc 75%);
    background-size: 80px 80px;
}

.fabric-properties ul {
    list-style: none;
    padding: 0;
}

.fabric-properties li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fabric-properties li:last-child {
    border-bottom: none;
}

.fabric-properties li i {
    color: #3498db;
    width: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .curtains-header h1 {
        font-size: 36px;
    }
    
    .curtains-header p {
        font-size: 18px;
    }
    
    .header-stats {
        gap: 20px;
    }
    
    .stat-item i {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    
    .curtains-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .fabric-preview-container {
        grid-template-columns: 1fr;
    }
    
    .interactive-features {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10px;
        max-height: 85vh;
    }
}

@media (max-width: 480px) {
    .curtains-header h1 {
        font-size: 28px;
    }
    
    .curtains-header p {
        font-size: 16px;
    }
    
    .header-stats {
        gap: 15px;
    }
    
    .stat-item {
        width: calc(50% - 15px);
    }
    
    .stat-item i {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .curtain-card {
        margin: 0 10px;
    }
    
    .curtain-actions {
        flex-direction: column;
    }
    
    .btn-detail,
    .btn-sample {
        width: 100%;
    }
}

/* 计算提示样式 */
.calculation-tip {
    margin-top: 15px;
    padding: 10px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    font-size: 14px;
    color: #856404;
}

.calculation-tip i {
    color: #ffc107;
    margin-right: 8px;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.curtain-card {
    animation: fadeInUp 0.5s ease forwards;
}

/* 打印样式 */
@media print {
    .navbar,
    .curtain-actions,
    .interactive-features,
    .footer,
    .modal {
        display: none !important;
    }
    
    .curtains-header {
        background: white !important;
        color: black !important;
        padding: 20px 0 !important;
    }
    
    .curtains-header::before {
        display: none;
    }
    
    .curtain-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd;
    }
    
    .size-comparison {
        break-inside: avoid;
    }
}
