/* ========== 新闻列表页完整样式 ========== */

/* ========== 顶部横幅 ========== */
.simple-banner {
    position: relative;
    width: 100%;
    height: 36vh;
    background: linear-gradient(rgba(0,0,0,0.48), rgba(0,0,0,0.48)), url('') center/cover no-repeat;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    color: #fff;
    padding-left: max(20px, calc((100% - 1600px)/2));
}
.banner-text h1 {
    font-size: 36px;
    margin-bottom: 12px;
    font-weight: 700;
}
.banner-text p {
    font-size: 17px;
    opacity: 0.95;
    max-width: 600px;
}

.btn-main {
    padding: 11px 28px;
    font-weight: 600;
}

/* ========== 最新消息滑动区块 ========== */
.latest-news-carousel {
    max-width: var(--content-max-width);
    margin: 40px auto 0;
    padding: 0 20px;
}
.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.carousel-header h2 {
    font-size: 24px;
}
.carousel-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar {
    display: none;
}
.carousel-track:active {
    cursor: grabbing;
}
.news-mini-card {
    flex: 0 0 calc((100% - 48px) / 4);
    scroll-snap-align: start;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #fff;
    transition: var(--transition-normal);
}
.news-mini-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.news-mini-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.news-mini-body {
    padding: 14px;
}
.news-mini-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}
.news-mini-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-mini-title a:hover {
    color: var(--main-color);
}
.carousel-nav {
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}
.carousel-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #555;
    flex-shrink: 0;
}
.carousel-btn:hover {
    border-color: var(--main-color);
    color: var(--main-color);
}
.carousel-scrollbar {
    flex: 1;
    height: 2px;
    background: #eee;
    border-radius: 1px;
    position: relative;
    cursor: pointer;
}
.carousel-scrollbar-thumb {
    position: absolute;
    top: -1px;
    left: 0;
    height: 4px;
    width: 60px;
    background: var(--main-color);
    border-radius: 2px;
    cursor: grab;
    transition: background 0.2s;
}
.carousel-scrollbar-thumb:hover {
    background: var(--main-dark);
}
.carousel-scrollbar-thumb:active {
    cursor: grabbing;
}

/* ========== 主容器 ========== */
.news-list-container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 50px 20px 70px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}
.blog-sidebar {
    order: 1;
}
.main-content-area {
    order: 2;
}

/* ========== 左侧侧边栏 ========== */
.blog-sidebar {
    position: sticky;
    top: 20px;
}
.sidebar-block {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}
.sidebar-block:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.sidebar-title {
    background: #fafafa;
    color: #222;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: 0.5px;
    border-left: 4px solid var(--main-color);
    border-bottom: 1px solid #e0e0e0;
}
.accordion-arrow {
    display: none;
    font-size: 14px;
    transition: transform 0.3s;
}
.sidebar-body {
    padding: 14px 20px;
}
.sidebar-category-list {
    list-style: none;
}
.sidebar-category-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.sidebar-category-list li:last-child {
    border-bottom: none;
}
.sidebar-category-list a {
    color: #444;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    transition: 0.2s;
}
.sidebar-category-list a:hover {
    color: var(--main-color);
    padding-left: 4px;
}
.subscribe-form {
    display: flex;
    gap: 8px;
    flex-direction: column;
}
.subscribe-form input {
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    width: 100%;
}
.subscribe-form input:focus {
    outline: none;
    border-color: var(--main-color);
}
.subscribe-form .btn-main {
    width: 100%;
    text-align: center;
}

/* ========== 右侧文章区 ========== */
.main-content-area {
    min-width: 0;
}
.news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.news-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition-normal);
    background: #fff;
}
.news-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #ddd;
}
.news-thumb {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.news-content {
    flex: 1;
    min-width: 0;
}
.news-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 4px;
}
.news-title {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-title a:hover {
    color: var(--main-color);
}
.news-excerpt {
    font-size: 14px;
    color: #606060;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-readmore {
    font-size: 14px;
    color: var(--main-color);
    font-weight: 500;
    white-space: nowrap;
    align-self: center;
}
.news-readmore:hover {
    text-decoration: underline;
}
.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
}
.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: var(--btn-radius);
    cursor: pointer;
    text-decoration: none;
    color: #333;
    transition: 0.2s;
    background: #fff;
}
.page-btn.active {
    background: var(--main-color);
    border-color: var(--main-color);
    color: #fff;
}
.page-btn:hover:not(.active) {
    border-color: var(--main-color);
    color: var(--main-color);
}

/* ========== 底部咨询栏 ========== */
.inquiry-bar {
    background: #fff;
    text-align: center;
    padding: 50px 20px;
    border-top: 1px solid var(--border-color);
}
.inquiry-bar h3 {
    font-size: 24px;
    margin-bottom: 10px;
}
.inquiry-bar p {
    margin-bottom: 22px;
    color: #666;
}

/* ========== 响应式适配 ========== */
@media (max-width: 1024px) {
    .news-list-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-top: 0;
    }
    .blog-sidebar {
        order: 0;
        position: static;
        margin-bottom: 20px;
        display: flex;
        flex-direction: column;
    }
    .main-content-area {
        order: 1;
    }
    .sidebar-block {
        background: #fff;
        border-radius: 8px;
        margin-bottom: 10px;
        border: 1px solid #e0e0e0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        overflow: visible;
    }
    .sidebar-title {
        cursor: pointer;
        border-bottom: 1px solid #e0e0e0;
    }
    .accordion-arrow {
        display: inline-block;
        transition: transform 0.3s;
    }
    .sidebar-block.collapsed .accordion-arrow {
        transform: rotate(-90deg);
    }
    .sidebar-body {
        max-height: 0;
        overflow: hidden;
        padding: 0 18px;
        transition: max-height 0.32s ease, padding 0.32s ease;
    }
    .sidebar-block.open .sidebar-body {
        max-height: 500px;
        padding: 14px 18px;
    }
    .news-item {
        flex-wrap: wrap;
    }
    .news-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
    .news-readmore {
        align-self: flex-start;
    }
    .news-mini-card {
        flex: 0 0 100%;
    }
    .carousel-nav {
        display: flex;
    }
}
@media (max-width: 640px) {
    .news-title {
        font-size: 16px;
    }
    .simple-banner {
        height: 30vh;
    }
    .banner-text h1 {
        font-size: 26px;
    }
    .news-list-container {
        padding: 30px 15px 50px;
    }
    .carousel-header h2 {
        font-size: 20px;
    }
    .news-mini-card {
        flex: 0 0 100%;
    }
    .carousel-nav {
        gap: 6px;
    }
    .carousel-btn {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
    .carousel-scrollbar {
        height: 2px;
    }
    .carousel-scrollbar-thumb {
        height: 4px;
        top: -1px;
    }
}