@charset "utf-8";
/* LILONG */

/* ========== 全局样式重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;}

/* 主体红色基调 */
:root {
    --main-red: #c7000b;
    --light-red: #f8ecec;
    --dark-red: #a80009;
    --white: #ffffff;
    --gray: #333333;
    --light-gray: #f5f5f5;
    --border-gray: #e0e0e0;}

body {
    background-color: var(--light-gray);
    color: var(--gray);
    line-height: 1.6;
    scroll-behavior: smooth;}

/* ========== 顶部大图 ========== */
.header {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url(images/bg.jpg) center bottom / cover no-repeat;
    position: relative;}

.header img {
    max-height: 252px;
    max-width: 95%;}

.header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;}

/* ========== 导航栏 ========== */
.nav-wrapper {
    background-color: var(--dark-red);
    border-bottom: 3px solid var(--main-red);}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 20px;}

.nav a {
    flex: 1;
    text-align: center;
    color: var(--white);
    text-decoration: none;
    padding: 18px 20px;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;}

.nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--white);
    transition: width 0.3s;}

.nav a:hover {
    background-color: var(--main-red);}

.nav a:hover::after {
    width: 80%;}

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

/* ========== 焦点图轮播（首页） ========== */
.banner {
    max-width: calc(1200px - 10px);
    margin: 30px auto;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    width: calc(100% - 10px);
    aspect-ratio: 3 / 2;
    max-height: 500px;}

.focus-slider {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;}

.focus-item {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;}

/* 左侧图片区域 */
.focus-img {
    flex: 0 0 65%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;}

.focus-img img,
.focus-img a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;}

.focus-img a {
    display: block;
    width: 100%;
    height: 100%;}

/* 右侧内容区域 */
.focus-content {
    flex: 0 0 35%;
    padding: 30px;
    background-color: var(--main-red);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;}

.focus-section-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;}

.focus-section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 44px;
    height: 2px;
    background-color: var(--white);}

.focus-title {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.4;}

.focus-title a {
    color: var(--white);
    text-decoration: none;}

.focus-text {
    font-size: 15px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1;
    text-align: justify;}

.focus-more {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    align-self: flex-start;
    border: 1px solid var(--white);
    padding: 5px 15px;
    border-radius: 3px;
    transition: all 0.3s;}

.focus-more:hover {
    background-color: var(--white);
    color: var(--main-red);}

/* 左右切换箭头 */
.focus-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background-color: rgba(255,255,255,0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);}

.focus-arrow:hover {
    background-color: var(--main-red);
    color: var(--white);}

.focus-arrow.prev {
    left: 20px;}

.focus-arrow.next {
    right: 20px;}

.focus-arrow::before {
    content: "";
    width: 12px;
    height: 12px;
    border-top: 2px solid var(--main-red);
    border-left: 2px solid var(--main-red);
    transition: all 0.3s;}

.focus-arrow.prev::before {
    transform: rotate(-45deg);
    margin-left: 4px;}

.focus-arrow.next::before {
    transform: rotate(135deg);
    margin-right: 4px;}

.focus-arrow:hover::before {
    border-color: var(--white);}

/* ========== 容器：居中+自适应宽度 ========== */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 8px;}

/* ========== 板块标题 ========== */
.section-title {
    color: var(--main-red);
    font-size: 24px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--main-red);
    position: relative;}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--dark-red);}

/* ========== 列表页卡片（list.html） ========== */
.news-list {
    display: grid;
    /* 宽屏每行2个 */
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 40px;}

/* 移动端（≤1199px）每行1个 */
@media (max-width: 1199px) {
    .news-list {
        grid-template-columns: 1fr;}
}

.news-item {
    background: var(--white);
    padding: 25px;
    border-radius: 5px;
    border-left: 4px solid var(--main-red);
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-left-color: var(--dark-red);}

.news-item h3 {
    color: var(--main-red);
    font-size: 19px;
    margin-bottom: 15px;
    flex-shrink: 0;}

.news-item h3 a {
    color: var(--main-red);
    text-decoration: none;}

.news-item h3 a:hover {
    text-decoration: underline;}

.news-item p {
    font-size: 15px;
    color: #555;
    flex: 1;
    margin-bottom: 15px;}

.news-date {
    font-size: 13px;
    color: #888;
    text-align: right;
    flex-shrink: 0;
    padding-top: 10px;
    border-top: 1px dashed var(--border-gray);}

/* ========== 分页 ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 10px;}

.pagination #pageNumbers {
    display: flex;
    gap: 10px;}

.pagination a {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid var(--border-gray);
    background-color: var(--white);
    color: var(--gray);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;}

.pagination a:hover {
    background-color: var(--main-red);
    color: var(--white);
    border-color: var(--main-red);}

.pagination a.active {
    background-color: var(--main-red);
    color: var(--white);
    border-color: var(--main-red);}

.pagination a.disabled {
    opacity: 0.5;
    cursor: not-allowed;}

.pagination a.disabled:hover {
    background-color: var(--white);
    color: var(--gray);
    border-color: var(--border-gray);}

/* ========== 文章详情（view.html） ========== */
.article-container {
    background-color: var(--white);
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin-bottom: 40px;}

.article-title {
    color: var(--main-red);
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.3;}

.article-meta {
    color: #888;
    font-size: 14px;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-gray);}

.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--gray);}

.article-content p {
    margin-bottom: 20px;
    text-indent: 36px;
    text-align: justify;}

.article-content p img.img_vsb_content {
    text-indent: 0;
    margin-left: -2em;}

.article-content h2 {
    color: var(--main-red);
    font-size: 20px;
    margin: 30px 0 15px;
    font-weight: bold;
    text-indent: 36px;}

.article-content h3 {
    color: var(--gray);
    font-size: 18px;
    margin: 25px 0 12px;
    font-weight: bold;
    text-indent: 36px;}

.article-content ul,
.article-content ol {
    margin: 15px 0;
    padding-left: 36px;}

.article-content li {
    margin-bottom: 8px;}

/* 返回列表按钮 */
.back-button {
    display: block;
    padding: 6px 20px;
    background-color: var(--main-red);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    margin: 50px auto 10px;
    width: fit-content;}

.back-button:hover {
    background-color: var(--dark-red);}

/* ========== 底部 ========== */
.footer {
    background-color: var(--main-red);
    color: var(--white);
    text-align: center;
    padding: 30px;
    margin-top: 50px;
    border-top: 5px solid var(--dark-red);}

.footer p {
    font-size: 15px;
    line-height: 1.8;}

/* ========== 首页双栏目 ========== */
.columns-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;}

.column-panel {
    min-width: 0;
    overflow: hidden;
    background: var(--white);
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    padding: 20px 25px 30px 25px;}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--main-red);
    padding-bottom: 12px;
    margin-bottom: 8px;}

.panel-title {
    color: var(--main-red);
    font-size: 20px;
    position: relative;
    padding-left: 12px;}

.panel-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 18px;
    background-color: var(--main-red);
    border-radius: 2px;}

.panel-more {
    font-size: 13px;
    color: #888;
    text-decoration: none;
    transition: all 0.3s;}

.panel-more:hover {
    color: var(--main-red);}

.panel-list {
    list-style: none;}

.panel-list li {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-gray);
    font-size: 15px;}

.panel-list li:last-child {
    border-bottom: none;}

.panel-list li::before {
    content: "";
    flex-shrink: 0;
    width: 4px;
    height: 4px;
    background-color: var(--main-red);
    border-radius: 50%;
    margin-right: 10px;}

.item-title {
    flex: 1;
    min-width: 0;
    color: var(--gray);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s;}

.item-title:hover {
    color: var(--main-red);}

.item-date {
    flex-shrink: 0;
    margin-left: 15px;
    font-size: 13px;
    color: #888;}

/* ========== 代表之声 ========== */
.voices-panel {
    margin-top: 30px;}

.voices-slider {
    position: relative;
    margin-top: 15px;
    overflow: hidden;
    border-radius: 5px;
    background: var(--light-red);
    box-shadow: 0 2px 8px rgba(199,0,11,0.08);}

.voices-track {
    display: flex;
    transition: transform 0.6s ease;
    width: 100%;}

.voice-item {
    flex: 0 0 100%;
    padding: 45px 60px 45px 55px;
    color: var(--gray);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    position: relative;
    text-align: left;}

.voice-quote-mark {
    position: absolute;
    top: 8px;
    left: 25px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 90px;
    line-height: 1;
    color: rgba(199,0,11,0.22);
    user-select: none;
    pointer-events: none;}

.voice-text {
    font-size: 15px;
    line-height: 1.95;
    margin: 0 0 25px;
    color: var(--gray);
    text-align: left;
    text-indent: 2em;
    cursor: pointer;}

.voice-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;}

.voice-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(199,0,11,0.4);
    flex-shrink: 0;}

.voice-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;}

.voice-name {
    font-size: 16px;
    font-weight: bold;
    color: var(--main-red);}

.voice-title {
    font-size: 14px;
    color: var(--muted);
    padding-left: 10px;
    border-left: 1px solid var(--border-gray);}

.voices-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;}

.voice-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(199,0,11,0.35);
    cursor: pointer;
    transition: all 0.3s;}

.voice-dot:hover {
    background: rgba(199,0,11,0.6);}

.voice-dot.active {
    width: 22px;
    border-radius: 4px;
    background: var(--main-red);}

/* ========== 党员风采 ========== */
.members-panel {
    margin-top: 30px;}

.members-marquee {
    --card-w: 150px;
    --marquee-gap: 20px;
    padding-top: 15px;
    overflow: hidden;}

.member-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
    will-change: transform;}

.members-marquee:hover .member-track {
    animation-play-state: paused;}

.member-group {
    display: flex;
    gap: var(--marquee-gap);
    padding-right: var(--marquee-gap);}

.member-card {
    display: block;
    width: var(--card-w);
    flex-shrink: 0;
    text-decoration: none;}

.member-card img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s, box-shadow 0.3s;}

.member-card:hover img {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(199,0,11,0.25);}

.member-name {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 15px;
    color: var(--gray);
    transition: color 0.3s;}

.member-card:hover .member-name {
    color: var(--main-red);}

.member-honor {
    display: block;
    text-align: center;
    margin-top: 2px;
    font-size: 12px;
    color: #888;}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ========== 移动端适配 ========== */
@media (max-width: 768px) {
    /* 顶部与导航 */
    .header {
        height: 133px;}

    .header img {
        max-height: 88px;}

    .nav {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;}

    .nav::-webkit-scrollbar {
        display: none;}

    .nav a {
        flex: 0 0 auto;
        padding: 10px 14px;
        font-size: 14px;
        text-align: center;
        line-height: 1.3;
        white-space: nowrap;}

    /* 首页焦点图改为上下布局 */
    .focus-item {
        flex-direction: column;}

    .focus-img {
        flex: 0 0 80%;}

    .focus-content {
        flex: 0 0 20%;
        padding: 10px 15px;
        overflow: hidden;}

    .focus-section-title {
        display: none;}

    .focus-title {
        font-size: 14px;
        margin-top: 10px;
        margin-bottom: 12px;
        line-height: 1.3;}

    .focus-text {
        display: none;}

    .focus-more {
        display: none;}

    .focus-arrow {
        width: 35px;
        height: 35px;}

    /* 首页双栏目：单列显示，隐藏时间让标题多显示几个字 */
    .columns-wrapper {
        grid-template-columns: 1fr;}

    .item-date {
        display: none;}

    /* 党员风采卡片缩小 */
    .members-marquee {
        --card-w: 110px;
        --marquee-gap: 12px;}

    .member-name {
        font-size: 13px;
        margin-top: 6px;}

    /* 代表之声移动端 */
    .voice-item {
        padding: 35px 20px 38px 20px;}

    .voice-quote-mark {
        font-size: 56px;
        top: 4px;
        left: 10px;}

    .voice-text {
        font-size: 14px;
        line-height: 1.7;
        cursor: pointer;}

    .voice-avatar {
        width: 36px;
        height: 36px;}

    .voice-name {
        font-size: 14px;}

    .voice-title {
        font-size: 12px;}

    .voices-dots {
        bottom: 8px;}

    /* 列表页 */
    .section-title {
        font-size: 20px;}

    .news-item {
        padding: 20px;}

    .news-item h3 {
        font-size: 17px;}

    /* 详情页 */
    .article-container {
        padding: 20px 15px;}

    .article-title {
        font-size: 22px;}

    .article-content {
        font-size: 16px;}

    .article-content p {
        text-indent: 32px;}

    .article-content p img.img_vsb_content {
        width: 100%;}

    /* 底部 */
    .footer {
        margin-top: 30px;}
}
