:root {
    --gold: #b8860b;
    --dark: #191928;
    --text-gray: #555;
    --light-bg: #f7f5f0;
}

.page-gap {
    height: 120px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--dark);
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.section-title h2::after {
    content: "";
    width: 80px;
    height: 2px;
    background-color: var(--gold);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* ========= PC端 单列长条布局 ========= */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 60px;
}

.news-item {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 25px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    /* 滚动动画初始状态：右侧外面透明 */
    opacity: 0;
    transform: translateX(80px);
    transition: all 0.7s ease-out;
}

.news-item.show {
    opacity: 1;
    transform: translateX(0px);
}

.news-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 35px rgba(184, 134, 11, 0.15);
}

.news-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.news-content {
    padding: 25px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #999;
}

.news-tag {
    display: inline-block;
    font-size: 12px;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 2px 10px;
    border-radius: 3px;
}

.news-content h3 {
    font-size: 22px;
    color: var(--dark);
    margin-bottom: 15px;
    transition: color 0.3s;
    cursor: pointer;
}

.news-content h3:hover {
    color: var(--gold);
}

.news-desc {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    color: var(--gold);
    font-size: 14px;
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
    width: fit-content;
}

.read-more:hover {
    border-bottom: 1px solid var(--gold);
    letter-spacing: 1px;
}

/* ==========分页按钮样式========== */
.pagination {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.page-btn {
    padding: 8px 18px;
    border: 1px solid var(--gold);
    background: #fff;
    color: var(--gold);
    cursor: pointer;
    transition: 0.3s;
    border-radius: 4px;
}

.page-btn:hover {
    background: var(--gold);
    color: #fff;
}

.page-btn.active {
    background: var(--gold);
    color: #fff;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* 底部 */
footer {
    background: var(--dark);
    padding: 40px 20px;
    text-align: center;
    color: #fff;
}

/* ========= 移动端：双列卡片布局 ========= */
@media (max-width: 768px) {
    .page-gap {
        height: 90px;
    }

    .news-banner {
        height: 220px;
    }

    .banner-text h1 {
        font-size: 26px;
    }

    .banner-text p {
        font-size: 15px;
    }

    .container {
        padding: 40px 16px;
    }

    .section-title h2 {
        font-size: 24px;
    }

    /* 手机端改成网格2列 */
    .news-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    /* 卡片改为上下结构 */
    .news-item {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }

    .news-img {
        height: 180px;
    }

    .news-content {
        padding: 15px 12px;
        justify-content: flex-start;
    }

    .news-content h3 {
        font-size: 18px;
    }

    .news-desc {
        font-size: 14px;
    }
}