/* 作者：json */

/* 头部样式 - 与其他页面相同 */
.header {
    background-color: var(--light-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

/* 导航菜单样式 - 与其他页面相同 */
.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 1.5rem;
}

.main-nav a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a.active {
    color: var(--primary-color);
}

/* 移动端菜单按钮 - 与其他页面相同 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin-bottom: 5px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 横幅样式 */
.banner-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-top: 70px;
}

.banner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/轮播1.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
    z-index: -1;
}

.banner-content {
    text-align: center;
    color: #fff;
    padding: 0 20px;
    max-width: 800px;
    z-index: 1;
}

.banner-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-content p {
    font-size: 20px;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 案例内容区域 */
.cases-content {
    padding: 40px 0;
}

/* 案例筛选按钮 */
.cases-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 1px solid var(--border-color);
    padding: 6px 18px;
    margin: 0 8px 8px;
    border-radius: 30px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    background-color: rgba(var(--primary-color-rgb), 0.1);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 案例项目样式 */
.case-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.case-item {
    display: flex;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.case-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.case-info {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.case-image {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.case-item:hover .case-image img {
    transform: scale(1.05);
}

.case-info h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.case-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 14px;
}

.case-category {
    color: var(--primary-color);
    font-weight: 500;
}

.case-date {
    color: #777;
}

.case-description {
    margin-bottom: 15px;
    line-height: 1.5;
    color: var(--text-dark);
}

.case-highlights {
    margin-bottom: 18px;
    padding-left: 18px;
}

.case-highlights li {
    margin-bottom: 6px;
    position: relative;
    color: var(--text-dark);
}

.case-highlights li::before {
    content: "";
    position: absolute;
    left: -18px;
    top: 7px;
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.case-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
    margin-top: auto;
    align-self: flex-start;
}

.case-btn:hover {
    background-color: var(--secondary-color);
}

/* 分页控件 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.page-btn {
    background-color: #f5f5f5;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.page-btn:hover {
    background-color: #e0e0e0;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-number {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: none;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s;
}

.page-number:hover {
    background-color: #f5f5f5;
}

.page-number.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
}

.page-jump {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.jump-input {
    width: 50px;
    height: 35px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    text-align: center;
    margin: 0 5px;
}

.jump-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-left: 5px;
}

.jump-btn:hover {
    background-color: var(--secondary-color);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .case-item {
        flex-direction: column;
    }
    
    .case-image {
        max-width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .banner-container {
        height: 300px;
    }
    
    .banner-content h1 {
        font-size: 32px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .case-info {
        padding: 20px;
    }
    
    .case-info h3 {
        font-size: 20px;
    }
    
    .page-jump {
        margin-top: 15px;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .cases-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 80%;
        margin: 5px 0;
    }
}

/* 案例内容区域样式 */
.cases-content {
    padding: 3rem 0;
    background-color: var(--light-color);
    border-radius: 8px;
    margin-top: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.cases-content h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
}

/* 案例卡片样式 - 为未来内容准备 */
.case-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.case-card {
    background-color: var(--light-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.case-card-image {
    width: 100%;
    height: 200px;
    background-color: var(--light-blue);
    position: relative;
    overflow: hidden;
}

.case-card-content {
    padding: 1.5rem;
}

.case-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.case-card .industry {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.case-card p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.case-card .btn {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: inline-block;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.case-card .btn:hover {
    background-color: var(--accent-color);
}

/* 案例筛选区域 - 为未来内容准备 */
.case-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    background-color: var(--light-blue);
    color: var(--primary-color);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--light-color);
}

/* 页脚样式 - 与其他页面相同 */
.footer {
    background-color: var(--accent-color);
    color: var(--light-color);
    padding: 2rem 0;
}

.footer-content {
    text-align: center;
}

.copyright p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 响应式设计 - 与其他页面相同 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        padding: 1rem 0;
    }

    .logo {
        margin-bottom: 1rem;
    }

    .main-nav {
        width: 100%;
        display: none;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        text-align: center;
    }

    .main-nav li {
        margin: 0;
        padding: 0.8rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .case-cards {
        grid-template-columns: 1fr;
    }
    
    .case-filter {
        flex-direction: column;
        align-items: center;
    }
}