* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    color: #333;
    background: #f5f5f5;
    overflow-x: hidden;
    position: relative;
}

/* 容器（页面内容区） */
.container {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 20px;
}

/* 英雄区（广告横幅） */
.hero-banner {
    background: url('../img/product-hero1.png') center center / cover no-repeat;
    padding: 60px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.hero-text p {
    font-size: 16px;
    opacity: 0.95;
    margin-bottom: 25px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-btn {
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.hero-btn-primary {
    background: white;
    color: #ff6b35;
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.hero-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.hero-btn-secondary:hover {
    background: white;
    color: #ff6b35;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 13px;
    opacity: 0.9;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-placeholder {
    width: 100%;
    max-width: 400px;
    height: 250px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-image-placeholder .icon {
    font-size: 80px;
    margin-bottom: 10px;
}

.hero-image-placeholder .text {
    font-size: 16px;
    font-weight: 600;
}

/* 面包屑导航 */
.breadcrumb {
    background: white;
    padding: 15px 0;
    border-bottom: 1px solid #e8e8e8;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #ff6b35;
}

.breadcrumb span {
    color: #999;
    margin: 0 8px;
}

/* 产品详情布局 */
.product-detail-section {
    padding: 30px 0;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
}

/* 左侧分类导航 */
.category-sidebar {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 20px;
    height: fit-content;
}

.category-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6b35;
}

.category-list {
    list-style: none;
}

.category-item {
    margin-bottom: 5px;
}

.category-link {
    display: block;
    padding: 10px 12px;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 14px;
}

.category-link:hover {
    background: rgba(255, 107, 53, 0.08);
    color: #ff6b35;
}

.category-link.active {
    background: rgba(255, 107, 53, 0.12);
    color: #ff6b35;
    font-weight: 600;
}

.category-count {
    float: right;
    font-size: 12px;
    color: #999;
}

/* 子分类列表 */
.sub-category-list {
    list-style: none;
    padding-left: 20px;
    margin-top: 4px;
    border-left: 2px solid #f0f0f0;
}

.sub-category-item {
    margin-bottom: 2px;
}

.sub-category-link {
    display: block;
    padding: 6px 10px;
    color: #888;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 13px;
}

.sub-category-link:hover {
    background: rgba(255, 107, 53, 0.06);
    color: #ff6b35;
}

.sub-category-link.active {
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
    font-weight: 500;
}

/* 右侧产品列表 */
.product-list-area {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e8e8e8;
    gap: 20px;
}

.header-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
}

.product-list-title {
    font-size: 20px;
    font-weight: 600;
}

.product-count {
    font-size: 14px;
    color: #999;
}

/* 搜索框样式 */
.search-box {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 450px;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.search-btn {
    padding: 10px 20px;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    white-space: nowrap;
}

.search-btn:hover {
    background: #ff8c5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.sort-options {
    display: flex;
    gap: 15px;
}

.sort-option {
    padding: 6px 12px;
    background: #f5f5f5;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.sort-option:hover,
.sort-option.active {
    background: #ff6b35;
    color: white;
}

/* 产品网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    transition: all 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.product-image {
    width: 100%;
    height: 300px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    overflow: hidden;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-price {
    color: #ff6b35;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.product-sales {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.product-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.product-tag {
    padding: 3px 8px;
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
    border-radius: 3px;
    font-size: 11px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding: 25px 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(.active):not([style*="cursor: default"]) {
    background: rgba(255, 107, 53, 0.1);
    border-color: #ff6b35;
    color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
}

.page-btn.active {
    background: #ff6b35;
    border-color: #ff6b35;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.pagination-info {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pagination-info span {
    font-size: 14px;
    color: #666;
}

.pagination-info strong {
    color: #ff6b35;
    font-weight: 600;
}

/* 底部 */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    text-align: center;
}

.footer p {
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }

    .product-detail-layout {
        grid-template-columns: 1fr;
    }

    .category-sidebar {
        position: static;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-list-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .header-left {
        flex-direction: column;
        gap: 12px;
    }

    .search-box {
        max-width: 100%;
        width: 100%;
    }

    .search-input {
        padding: 8px 12px;
        font-size: 13px;
    }

    .search-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    /* 移动端分页 */
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
        padding: 20px 15px;
        margin-top: 30px;
    }

    .page-btn {
        min-width: 35px;
        height: 35px;
        padding: 0 10px;
        font-size: 13px;
    }

    .pagination-info {
        margin-top: 15px;
        padding: 12px;
    }

    .pagination-info span {
        font-size: 13px;
    }
}
