/* 首页特定样式 */

/* 英雄区 */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(31, 41, 55, 0.8), rgba(31, 41, 55, 0.9)),
                url('../images/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    padding-top: 80px; /* 为固定导航留出空间 */
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    color: #ccc;
}

.hero-subtitle span {
    color: var(--color-primary);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 关于我们模块 */
.about-section {
    padding: var(--spacing-lg) 0;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

@media (max-width: 992px) {
    .about-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-cards {
        grid-template-columns: 1fr;
    }
}

.about-card {
    text-align: center;
    padding: var(--spacing-md);
}

.about-card i {
    font-size: 48px;
    margin-bottom: 20px;
}

.about-card:nth-child(1) i {
    color: var(--color-primary);
}

.about-card:nth-child(2) i {
    color: var(--color-huawei-blue);
}

.about-card:nth-child(3) i {
    color: #10B981;
}

.about-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--color-secondary);
}

.about-card p {
    color: #666;
    line-height: 1.8;
}

/* 主营产品系列模块 */
.products-section {
    padding: var(--spacing-lg) 0;
    background-color: var(--color-light-gray);
}

.products-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

@media (max-width: 992px) {
    .products-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-cards {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background: var(--color-white);
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-white);
}

.product-card:nth-child(1) .product-logo {
    background-color: var(--color-primary);
}

.product-card:nth-child(2) .product-logo {
    background-color: var(--color-huawei-blue);
}

.product-card:nth-child(3) .product-logo {
    background-color: #000000;
}

.product-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--color-secondary);
}

.product-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-features {
    list-style: none;
}

.product-features li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #666;
}

.product-features li:last-child {
    border-bottom: none;
}

/* 企业礼品定制案例模块 */
.cases-section {
    padding: var(--spacing-lg) 0;
}

.case-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 24px;
    border: 2px solid var(--color-primary);
    background: transparent;
    color: var(--color-primary);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.filter-btn:not(.active) {
    background-color: var(--color-white);
    color: var(--color-secondary);
    border-color: #ddd;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

@media (max-width: 992px) {
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cases-grid {
        grid-template-columns: 1fr;
    }
}

.case-item {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.case-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.case-image {
    height: 200px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-item:hover .case-image img {
    transform: scale(1.05);
}

.case-content {
    padding: 20px;
}

.case-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--color-secondary);
}

.case-content p {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
}

.case-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.case-btn:hover {
    background-color: #e55c00;
}

/* 智能家居模块 */
.smart-home-section {
    padding: var(--spacing-lg) 0;
    background-color: var(--color-light-gray);
}

.smart-home-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

@media (max-width: 768px) {
    .smart-home-content {
        grid-template-columns: 1fr;
    }
}

.smart-home-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.smart-home-image img {
    width: 100%;
    height: auto;
    display: block;
}

.smart-home-features {
    list-style: none;
}

.smart-home-features li {
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    font-size: 18px;
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    gap: 15px;
}

.smart-home-features li:last-child {
    border-bottom: none;
}

.smart-home-features i {
    color: var(--color-primary);
    font-size: 20px;
}

/* 列表页样式 */
.list-section {
    padding: var(--spacing-lg) 0;
    min-height: 60vh;
}

.list-container {
    max-width: 1200px;
    margin: 0 auto;
}

.list-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .list-item {
        grid-template-columns: 1fr;
    }
}

.list-image {
    border-radius: 8px;
    overflow: hidden;
}

.list-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.list-item:hover .list-image img {
    transform: scale(1.05);
}

.list-content h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--color-secondary);
}

.list-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.list-more {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.list-more:hover {
    background-color: #e55c00;
}

/* 内容页样式 */
.content-section {
    padding: var(--spacing-lg) 0;
    min-height: 60vh;
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.content-container h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--color-secondary);
}

.content-container h2 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: var(--color-secondary);
}

.content-container p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: #666;
}

.content-container ul,
.content-container ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.content-container li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: var(--spacing-lg);
    padding: 20px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: var(--color-secondary);
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .active {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}
