/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}


/* 按钮样式 */
button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* 容器 */
.container-box2 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 头部横幅 */
.hero-banner {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    background-image: url(../images/shangcheng/shangcheng_1_1.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 主要内容区域 */
.main-content {
    padding: 2rem 0;
}

/* 标题样式 */
.section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: bold;
    text-align: left;
    margin-bottom: 2rem;
    margin-top: 4rem;
}

.section-title:first-child {
    margin-top: 2rem;
}

/* 通用产品网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 4rem;
}

/* 简单产品卡片 */
.simple-card {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.simple-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.copy-btn {
    background-color: #9AFF00;
    color: #000;
    font-weight: bold;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.copy-btn:hover {
    background-color: #8AEF00;
}

/* 精选商品样式 */
.featured-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.featured-card {
    background-color: #F9F9F9;
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 600px;
}

.featured-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.product-info {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    width: 600px;
}

.product-image {
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    max-width: 300px;
}

.product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-category {
    color: #666;
    font-size: 0.875rem;
    margin: 0;
}

.product-title {
    font-size: clamp(1rem, 2.5vw, 1.375rem);
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    margin: 0;
}

.product-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: 1rem;
}

.price-tag {
    background-color: #9AFF00;
    font-weight: bold;
    font-size: 1.125rem;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    color: #000;
}

.view-all {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.875rem;
}

.arrow-btn {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-btn img {
    width: 100%;
    height: 100%;
}

/* 分隔线 */
.divider {
    margin: 2rem 0;
    text-align: center;
}

.divider img {
    width: 100%;
    max-width: 1200px;
    height: auto;
}

/* 标准产品网格 */
.product-grid-standard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.standard-product-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.standard-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image-container {
    background-color: #F3F3F3;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 280px;
}

.product-image-container .product-image {
    object-fit: cover;
    border-radius: 8px;
}

.product-info-container {
    background-color: #F9F9F9;
    padding: 1.5rem;
}

.product-name {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    height: 59px;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.125rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

/* 中间横幅 */
.middle-banner {
    width: 100%;
    height: 300px;
    background-image: url(../images/shangcheng/shangcheng_36_36.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    margin: 3rem 0;
}

.featured-products {
    display: inline-flex;
    overflow-y: hidden;
    overflow-x: scroll;
    width: 100%;
}

/* 响应式设计 - 平板 */
@media (max-width: 768px) {
    .featured-products {
        display: block;
        overflow-y: auto;
        overflow-x: auto;
        width: 100%;
    }

    .featured-card {
        width: 100%;
        margin: 10px 0;
    }

    .product-details {
        margin: 0 auto;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-banner {
        height: 50vh;
        min-height: 300px;
    }
    
    .main-content {
        padding: 1.5rem 0;
    }
    
    .section-title {
        margin-top: 3rem;
        margin-bottom: 1.5rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 0.75rem;
    }
    
    .featured-products {
        grid-template-columns: 1fr;
    }
    
    .featured-card {
        padding: 1.5rem;
    }
    
    .product-info {
        gap: 1.5rem;
    }
    
    .product-image {
        width: 100%;
        align-self: center;
    }
    
    .product-actions {
        align-items: stretch;
        gap: 1rem;
    }
    
    .price-tag {
        text-align: center;
    }
    
    .view-all {
        justify-content: center;
    }
    
    .product-grid-standard {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .middle-banner {
        height: 200px;
        margin: 2rem 0;
    }
}

/* 响应式设计 - 手机 */
@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero-banner {
        height: 40vh;
        min-height: 250px;
    }
    
    .main-content {
        padding: 1rem 0;
    }
    
    .section-title {
        margin-top: 2rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 0.5rem;
    }
    
    .simple-card {
        height: 150px;
        padding: 0.75rem;
    }
    
    .copy-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .featured-card {
        padding: 1rem;
    }
    
    .product-info {
        gap: 1rem;
    }
    
    .product-title {
        font-size: 1rem;
    }
    
    .product-grid-standard {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 0.75rem;
    }
    
    .product-image-container {
        height: 220px;
        padding: 1.5rem;
    }
    
    .product-image-container .product-image {
        width: 120px;
        height: 160px;
    }
    
    .product-info-container {
        padding: 1rem;
    }
    
    .product-name {
        font-size: 0.875rem;
    }
    
    .product-price {
        font-size: 1rem;
    }
    
    .middle-banner {
        height: 150px;
        margin: 1.5rem 0;
    }
}

/* 大屏幕优化 */
@media (min-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .featured-products {
        grid-template-columns: repeat(auto-fit, minmax(700px, 1fr));
    }
    
    .product-grid-standard {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 超大屏幕优化 */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-banner {
        height: 70vh;
    }
    
    .featured-products {
        grid-template-columns: repeat(auto-fit, minmax(800px, 1fr));
    }
}

/* 打印样式 */
@media print {
    .hero-banner {
        height: 200px;
        background: #f5f5f5;
    }
    
    .main-content {
        padding: 1rem 0;
    }
    
    .product-grid,
    .product-grid-standard {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .simple-card,
    .standard-product-card {
        break-inside: avoid;
    }
}

/* 可访问性增强 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .simple-card,
    .featured-card,
    .standard-product-card {
        border: 2px solid #000;
    }
    
    .copy-btn,
    .price-tag {
        border: 2px solid #000;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    .featured-card {
        background-color: #2a2a2a;
    }
    
    .product-info-container {
        background-color: #2a2a2a;
    }
    
    .product-image-container {
        background-color: #333;
    }
    
    .product-category {
        color: #aaa;
    }
    
    .product-title,
    .product-name,
    .product-price {
        color: #e0e0e0;
    }
    
    .view-all {
        color: #aaa;
    }
} 

