/* 党建网站样式文件 */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, "system-ui", "segoe ui", Roboto, Helvetica, Arial, sans-serif, "apple color emoji", "segoe ui emoji", "segoe ui symbol";
    background: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
    line-height: 1.6;
    min-width: 1195px; /* 确保整个页面最小宽度不小于container */
    margin: 0;
    padding: 0;
}

.container {
    width: 1195px;
    margin: 0 auto;
    padding: 0 10px;
    min-width: 1195px; /* 确保最小宽度不小于container宽度 */
}

/* Top Banner - Full Screen Width */
.top-banner {
    width: 100%;
    height: 460px;
    background-image: url('../images/dj-top.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.top-banner-text-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.top-banner-text {
    max-width: 60%;
    max-height: 60%;
    z-index: 1;
}

/* Navigation Wrapper - Full Width Background */
.nav-wrapper {
    width: 100%;
    background: rgb(186, 31, 36);
    height: 64px;
}

/* Navigation Menu - Container Width */
.nav-menu {
    width: 100%;
    max-width: 1195px;
    height: 64px;
    margin: 0 auto;
    padding: 0 20px;
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    gap: 5px;
}

.nav-menu li {
    position: relative;
    display: flex;
    height: 44px;
    flex: 1;
    justify-content: center;
    align-items: center;
    max-width: 170px;
    min-width: 100px;
}

.nav-menu li.on,
.nav-menu li:hover {
    background: rgb(155, 18, 22);
    height: 44px;
    border-radius: 3px;
}

.nav-menu a {
    display: block;
    color: rgb(255, 255, 255);
    text-decoration: none;
    padding: 0 16px;
    font-size: 16px;
    font-weight: 400;
    line-height: 44px;
    height: 44px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Header Section */
.header-section {
    background: rgb(255, 255, 255);
}

/* Content Section */
.content-section {
    background-image: url('../images/image-bg.png');
    background-repeat: no-repeat;
    background-position: 50% 100%;
    background-color: rgb(255, 255, 255);
    padding-bottom: 50px; /* 为底部背景图留出空间 */
    padding-top: 30px; /* 增加与导航栏的间距 */
    background-size: cover;
}

/* Footer Section */
.footer-section {
    background: rgb(187, 31, 36);
    color: rgb(0, 0, 0);
    padding: 30px 20px;
    text-align: center;
    color: white;
}

.footer-section p {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgb(0, 0, 0);
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

/* Section Styles */
.section {
    /* margin-bottom: 30px; */
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgb(186, 31, 36);
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    color: rgb(186, 31, 36);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    background-image: url('../images/icon-dh.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 23px;
    height: 23px;
    display: inline-block;
    flex-shrink: 0;
}

.more-link {
    color: rgb(186, 31, 36);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
}

.more-link:hover {
    text-decoration: underline;
}

/* 党建动态特殊布局 - 左右分列 */
.dynamic-layout {
    display: flex;
    padding: 0;
    align-items: center;
}

.dynamic-image {
    flex: 0 0 327px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
}

.dynamic-image img {
    width: 100%;
    display: block;
    flex: 1;
}

.dynamic-image-title {
    width: 100%;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee; 
    color: #333;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    margin-top: 0;
    flex-shrink: 0;
}

.dynamic-list {
    flex: 1;
    padding: 5px 0 15px 20px; /* 减少上下padding，让布局更紧凑 */
}

/* News List Styles */
.news-list {
    list-style: none;
}

.news-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.news-item.new-tag-item {
    align-items: flex-start;
}

/* 新闻日期容器 */
.news-date-container {
    position: relative;
    display: flex;
    align-items: center;
}

.section-1-list .news-title-container a {
    max-width: 301px;
    margin-right: 0px;
}
.section-2-list .news-title-container a {
    max-width: 410px;
}
/* NEW标签样式 - 文字右侧 */
.news-item.new-tag-item .news-title-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 20px;
    min-width: 0;
}

.news-item.new-tag-item .news-title-container a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
    display: inline-block;
}

.news-item.new-tag-item .new-tag {
    color: rgb(255, 59, 48);
    font-size: 10px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(255, 59, 48, 0.6);
    animation: glowPulse 1.5s ease-in-out infinite alternate, bounce 2s ease-in-out infinite;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.news-item.new-tag-item .new-tag:hover {
    transform: scale(1.2) rotate(-5deg);
    color: rgb(255, 87, 51);
    text-shadow: 0 0 12px rgba(255, 59, 48, 0.9);
}

@keyframes glowPulse {
    0% {
        opacity: 0.7;
        text-shadow: 0 0 4px rgba(255, 59, 48, 0.4);
    }
    100% {
        opacity: 1;
        text-shadow: 0 0 12px rgba(255, 59, 48, 0.8);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-2px);
    }
    60% {
        transform: translateY(-1px);
    }
}

.news-item:last-child {
    border-bottom: none;
}

.news-item a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-size: 16px;
    line-height: 1.5;
    flex: 1;
    margin-right: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    min-width: 0;
}

.news-item a:hover {
    color: rgb(186, 31, 36);
    text-decoration: underline;
}

.news-date {
    color: rgb(186, 31, 36);
    font-size: 14px;
    white-space: nowrap;
    font-weight: 500;
}

/* Grid Layout for News Cards */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.news-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.news-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.news-card-content {
    padding: 20px;
}

.news-card-title {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 10px;
    color: rgb(0, 0, 0);
    font-weight: 500;
}

.news-card-title a {
    color: inherit;
    text-decoration: none;
}

.news-card-title a:hover {
    color: rgb(186, 31, 36);
    text-decoration: underline;
}

.news-card-date {
    color: rgb(186, 31, 36);
    font-size: 14px;
    font-weight: 500;
}

/* Sub-section Styles */
.subsection {
    margin-bottom: 40px;
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    border: 1px solid #f0f0f0;
}

.subsection:last-child {
    margin-bottom: 0;
}

.subsection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgb(186, 31, 36);
}

.subsection-title {
    font-size: 20px;
    font-weight: bold;
    color: rgb(186, 31, 36);
}

/* 工作室概况全新设计 - 参考截图的简洁风格 */
.branch-overview {
    background: #fff;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
}

.branch-overview-content {
    padding: 20px;
}

.branch-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.branch-info-card {
    background: rgb(249, 250, 251);
    border-radius: 8px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.branch-info-card:hover {
    background: rgb(246, 248, 250);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.branch-info-card-label {
    font-size: 14px;
    color: rgb(186, 31, 36);
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.branch-info-card-content {
    font-size: 15px;
    color: rgb(31, 41, 55);
    font-weight: 500;
}

/* 特色卡片样式 */
.branch-feature-card {
    background: linear-gradient(135deg, rgba(186, 31, 36, 0.05), rgba(159, 14, 19, 0.08));
    border: 1px solid rgba(186, 31, 36, 0.15);
}

.branch-feature-card .branch-info-card-content {
    color: rgb(186, 31, 36);
    font-weight: 600;
}

.branch-feature-card .branch-info-card-label {
    color: rgb(186, 31, 36);
    font-weight: 600;
}

/* 工作室概况样式 - 参考截图的四个块状设计 */
.branch-overview-content {
    padding: 0;
}

/* 工作室名称块 */
.branch-name-section {
    background: rgb(186, 31, 36);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 5px;
}

.branch-name-title {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: white;
    text-align: center;
    line-height: 1.4;
}

/* 工作室概况块 */
.branch-overview-section {
    background: rgb(249, 250, 251);
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    padding: 0;
    margin-bottom: 15px;
}

.section-subtitle {
    background: linear-gradient(135deg, rgba(186, 31, 36, 0.08), rgba(159, 14, 19, 0.12));
    margin: 0;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 600;
    color: rgb(186, 31, 36);
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
}

.section-subtitle::before {
    content: '';
    width: 4px;
    height: 14px;
    background: rgb(186, 31, 36);
    margin-right: 8px;
    border-radius: 2px;
}

.section-content {
    padding: 15px;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0 0 8px 8px;
}

.section-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: rgb(51, 51, 51);
    text-align: justify;
    text-indent: 2em;
}

/* Two Column Layout for Branch Info and Major Construction */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Three Column Layout */
.three-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

/* Main 2×2 Grid Container for Homepage */
.homepage-grid {
    display: grid;
    grid-template-columns: 750px 445px;
    grid-template-rows: auto auto;
    gap: 30px;
}

/* Grid Cell Position Classes */
.grid-top-left {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.grid-top-right {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.grid-bottom-left {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.grid-bottom-right {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

/* Horizontal Layout for Profile Photo and Text */
.section-content.horizontal-layout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 15px;
}

.profile-photo-container {
    flex-shrink: 0;
    margin: 0;
    text-align: center;
}

.profile-photo {
    max-width: 150px;
    max-height: 190px;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    object-fit: cover;
    border: 1px solid #e5e7eb;
}

.horizontal-layout .profile-description {
    flex: 1;
    margin: 0;
    line-height: 2;
    text-align: justify;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

/* Content Adjustments for Right Column (445px) */
.grid-top-right .branch-overview-content,
.grid-top-right .studio-overview-content {
    padding: 15px 16px;
}

.grid-top-right .studio-overview-content p {
    font-size: 14px;
    line-height: 1.5;
}


.grid-bottom-right .news-list {
    font-size: 14px;
}

.grid-bottom-right .news-title a {
    font-size: 13px;
    line-height: 1.4;
}

.grid-bottom-right .news-date {
    font-size: 12px;
}

/* Adjustments for Wide Columns (896px) */
.grid-top-left .dynamic-layout {
    /* min-height: 450px; */
}

.grid-bottom-left .carousel-title {
    font-size: 13px;
    line-height: 1.4;
}

.column {
    background: #fff;
}

/* 成果展示 - 图片滚动跑马灯 */
.achievement-carousel {
    margin-bottom: 30px;
    background: #fff;
    padding: 25px;
    border: 1px solid #f0f0f0;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 20px;
    animation: none; /* 静态展示，不需要动画 */
    padding: 10px 0;
}

.carousel-item {
    flex: 0 0 calc(20% - 16px); /* 5张图片平均分配宽度，减去gap */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-image-container, .imgscroll2_td  {
    padding:0 10px;
    width: 100%;
    height: 148px; /* 设置最大高度容器 */
    overflow: hidden;
    background: #f8f9fa;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.carousel-image-container:hover, .imgscroll2_td:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.carousel-image, .imgscroll2_td img {
    object-fit: contain;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-title, .imgscroll2_td span:not(.imgscroll2_img ) {
    text-align: center;
    font-size: 14px;
    color: rgb(51, 51, 51);
    line-height: 40px;
    height: 40px;
    width: 208px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.imgscroll2_td a{
    text-decoration: none;
}

/* 列表页面样式 - 重命名类名避免冲突 */

/* Page Title Section */
.page-title-section {
    background: white;
    padding: 30px 0;
    border-bottom: 1px solid rgb(229, 231, 235);
}

.page-title {
    font-size: 28px;
    font-weight: bold;
    color: rgb(186, 31, 36);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgb(107, 114, 128);
}

.breadcrumb a {
    color: rgb(107, 114, 128);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: rgb(186, 31, 36);
}

.breadcrumb-separator {
    color: rgb(156, 163, 175);
}

/* List Section - Dynamic */
.list-section-dynamic {
    background: white;
    margin-top: 30px;
    border-radius: 8px;
    border: 1px solid rgb(229, 231, 235);
    overflow: hidden;
}

.list-header-dynamic {
    background: linear-gradient(135deg, rgba(186, 31, 36, 0.05), rgba(159, 14, 19, 0.08));
    padding: 20px 25px;
    border-bottom: 1px solid rgb(229, 231, 235);
}

.list-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-title {
    font-size: 20px;
    font-weight: 600;
    color: rgb(31, 41, 55);
}

.list-count {
    color: rgb(186, 31, 36);
    font-size: 14px;
    font-weight: 500;
}

/* List Items - Dynamic */
.list-item-dynamic {
    padding: 20px 25px;
    border-bottom: 1px solid rgb(238, 238, 238);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: background-color 0.3s ease;
}

.list-item-dynamic:hover {
    background: rgb(249, 250, 251);
}

.list-item-dynamic:last-child {
    border-bottom: none;
}

.list-item-dynamic-content {
    flex: 1;
    margin-right: 20px;
}

.list-item-dynamic-title {
    font-size: 16px;
    font-weight: 500;
    color: rgb(0, 0, 0);
    margin-bottom: 8px;
    line-height: 1.5;
}

.list-item-dynamic-title a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    transition: color 0.3s ease;
}

.list-item-dynamic-title a:hover {
    color: rgb(186, 31, 36);
    text-decoration: underline;
}

.list-item-dynamic-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: rgb(107, 114, 128);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.list-item-dynamic-sidebar {
    display: flex;
    align-items: center;
}

/* 列表页面的NEW标签样式 - 复用首页样式 */
.list-item-dynamic.new-tag-item {
    align-items: flex-start;
}

/* 列表页面的NEW标签容器样式 */
.list-item-dynamic.new-tag-item .news-title-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    margin-right: 20px;
}

.list-item-dynamic.new-tag-item .news-title-container a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
    max-width: 970px;
}

.list-item-dynamic.new-tag-item .new-tag {
    color: rgb(255, 59, 48);
    font-size: 10px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(255, 59, 48, 0.6);
    animation: glowPulse 1.5s ease-in-out infinite alternate, bounce 2s ease-in-out infinite;
    flex-shrink: 0;
    margin-left: 8px;
}

.list-item-dynamic.new-tag-item .new-tag:hover {
    transform: scale(1.2) rotate(-5deg);
    color: rgb(255, 87, 51);
    text-shadow: 0 0 12px rgba(255, 59, 48, 0.9);
}

/* Pagination Section - Dynamic */
.pagination-section-dynamic {
    background: white;
    margin-top: 30px;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid rgb(229, 231, 235);
}

.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pagination-info {
    color: rgb(107, 114, 128);
    font-size: 14px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid rgb(229, 231, 235);
    background: white;
    color: rgb(55, 65, 81);
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.page-btn:hover {
    background: rgb(246, 248, 250);
    border-color: rgb(186, 31, 36);
    color: rgb(186, 31, 36);
}

.page-btn.active {
    background: rgb(186, 31, 36);
    border-color: rgb(186, 31, 36);
    color: white;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-btn:disabled:hover {
    background: white;
    border-color: rgb(229, 231, 235);
    color: rgb(55, 65, 81);
}

/* ========================================
   党员风采图片列表页面样式 - tupian_liebiao.html
   ======================================== */

/* Page Title Section - 图片页面标题区域 */
.img-page-title-section {
    background: white;
    padding-bottom: 30px;
    border-bottom: 1px solid rgb(229, 231, 235);
}

.img-page-title {
    font-size: 24px;
    font-weight: bold;
    color: rgb(186, 31, 36);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.img-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgb(107, 114, 128);
}

.img-breadcrumb a {
    color: rgb(107, 114, 128);
    text-decoration: none;
    transition: color 0.3s ease;
}

.img-breadcrumb a:hover {
    color: rgb(186, 31, 36);
}

.img-breadcrumb-separator {
    color: rgb(156, 163, 175);
}

/* Image Grid Section - 图片网格区域 */
.img-grid-section {
    background: white;
    margin-top: 30px;
    border-radius: 8px;
    border: 1px solid rgb(229, 231, 235);
    overflow: hidden;
}

.img-grid-header {
    background: linear-gradient(135deg, rgba(186, 31, 36, 0.05), rgba(159, 14, 19, 0.08));
    padding: 20px 25px;
    border-bottom: 1px solid rgb(229, 231, 235);
}

.img-grid-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.img-grid-title {
    font-size: 20px;
    font-weight: 600;
    color: rgb(31, 41, 55);
}

.img-grid-count {
    color: rgb(186, 31, 36);
    font-size: 14px;
    font-weight: 500;
}

/* Image Grid - 图片网格布局 */
.img-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    padding: 30px;
}

.img-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.img-item:hover {
    transform: translateY(-3px);
}

.img-container {
    width: 200px;
    height: 301px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: rgb(240, 240, 240);
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-container:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.img-person-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.img-person-name {
    margin-top: 12px;
    font-size: 16px;
    font-weight: 500;
    color: rgb(31, 41, 55);
    text-align: center;
    line-height: 1.4;
}

/* Pagination Section - 图片页面分页区域 */
.img-pagination-section {
    background: white;
    margin-top: 30px;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid rgb(229, 231, 235);
}

.img-pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.img-pagination-info {
    color: rgb(107, 114, 128);
    font-size: 14px;
}

.img-pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.img-page-btn {
    padding: 8px 12px;
    border: 1px solid rgb(229, 231, 235);
    background: white;
    color: rgb(55, 65, 81);
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.img-page-btn:hover {
    background: rgb(246, 248, 250);
    border-color: rgb(186, 31, 36);
    color: rgb(186, 31, 36);
}

.img-page-btn.active {
    background: rgb(186, 31, 36);
    border-color: rgb(186, 31, 36);
    color: white;
}

.img-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.img-page-btn:disabled:hover {
    background: white;
    border-color: rgb(229, 231, 235);
    color: rgb(55, 65, 81);
}

/* ========================================
   详情页面样式 - xiangqing.html
   ======================================== */

/* Article Container - 详情页面文章容器 */
.detail-article-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Article Title - 文章标题 */
.detail-article-title {
    font-size: 28px;
    font-weight: bold;
    color: rgb(0, 0, 0);
    margin-bottom: 15px;
    text-align: center;
    line-height: 1.4;
}

/* Article Meta - 文章元信息 */
.detail-article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgb(229, 231, 235);
    font-size: 14px;
    color: rgb(55, 65, 81);
    margin-bottom: 20px;
}

.detail-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.detail-meta-label {
    color: rgb(186, 31, 36);
    font-weight: 500;
}

/* Content Sections - 内容区域 */
.detail-content-section {
    margin-bottom: 25px;
}

.detail-content-section:last-child {
    margin-bottom: 0;
}

/* Section Title - 小节标题 */
.detail-section-title {
    font-size: 20px;
    font-weight: 600;
    color: rgb(186, 31, 36);
    margin-bottom: 12px;
    border-left: 4px solid rgb(186, 31, 36);
    padding-left: 10px;
}

/* Content Text - 内容文本 */
.detail-content-text {
    font-size: 16px;
    line-height: 1.8;
    color: rgb(31, 41, 55);
    text-align: justify;
}

.detail-content-text p {
    margin-bottom: 15px;
    text-indent: 2em;
}
.detail-content-text img {
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.detail-content-text p:last-child {
    margin-bottom: 0;
}

/* Highlight Box - 高亮框 */
.detail-highlight-box {
    background: rgb(249, 250, 251);
    border: 1px solid rgb(229, 231, 235);
    border-left: 4px solid rgb(186, 31, 36);
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.detail-highlight-text {
    color: rgb(31, 41, 55);
    font-size: 16px;
    line-height: 1.8;
}

/* Image Gallery - 图片画廊 */
.detail-image-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.detail-gallery-item {
    background: rgb(249, 250, 251);
    border: 1px solid rgb(229, 231, 235);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.detail-gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.detail-gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: rgb(240, 240, 240);
}

.detail-gallery-caption {
    padding: 12px;
    font-size: 14px;
    color: rgb(55, 65, 81);
    text-align: center;
}

/* Info Cards - 信息卡片 */
.detail-info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.detail-info-card {
    background: rgb(249, 250, 251);
    border: 1px solid rgb(229, 231, 235);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.detail-info-card:hover {
    background: rgb(246, 248, 250);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.detail-info-card-number {
    font-size: 24px;
    font-weight: bold;
    color: rgb(186, 31, 36);
    margin-bottom: 5px;
}

.detail-info-card-label {
    font-size: 14px;
    color: rgb(186, 31, 36);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   SYSTEM PAGINATION CONTROL STYLES
   Compatible with wp_paging system
   ======================================== */

/* Main pagination container */
#wp_paging_w5 {
    margin: 30px 0;
    padding: 20px;
    background: rgb(255, 255, 255);
    border-top: 1px solid rgb(240, 240, 240);
}

.wp_paging {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

/* Pagination info section */
.wp_paging .pages_count {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: rgb(55, 65, 81);
}

.wp_paging .per_page,
.wp_paging .all_count {
    display: flex;
    align-items: center;
    gap: 5px;
}

.wp_paging .per_count,
.wp_paging .all_count {
    font-weight: 600;
    color: rgb(186, 31, 36);
    font-style: normal;
}

/* Page navigation buttons */
.wp_paging .page_nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wp_paging .page_nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: rgb(249, 250, 251);
    border: 1px solid rgb(229, 231, 235);
    border-radius: 6px;
    color: rgb(55, 65, 81);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 80px;
}

.wp_paging .page_nav a:hover {
    background: rgb(186, 31, 36);
    border-color: rgb(186, 31, 36);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(186, 31, 36, 0.2);
}

.wp_paging .page_nav a:active {
    background: rgb(159, 14, 19);
    border-color: rgb(159, 14, 19);
    transform: translateY(0);
}

/* Disabled state for navigation buttons */
.wp_paging .page_nav a[disabled],
.wp_paging .page_nav a.disabled {
    background: rgb(246, 248, 250);
    border-color: rgb(229, 231, 235);
    color: rgb(156, 163, 175);
    cursor: not-allowed;
    opacity: 0.6;
}

.wp_paging .page_nav a[disabled]:hover,
.wp_paging .page_nav a.disabled:hover {
    background: rgb(246, 248, 250);
    border-color: rgb(229, 231, 235);
    color: rgb(156, 163, 175);
    transform: none;
    box-shadow: none;
}

/* Page jump section */
.wp_paging .page_jump {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgb(55, 65, 81);
}

.wp_paging .page_jump .pages {
    display: flex;
    align-items: center;
    gap: 5px;
}

.wp_paging .curr_page,
.wp_paging .all_pages {
    font-weight: 600;
    color: rgb(186, 31, 36);
    font-style: normal;
}

/* Page number input */
.wp_paging .pageNum {
    width: 50px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid rgb(229, 231, 235);
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    background: rgb(255, 255, 255);
}

.wp_paging .pageNum:focus {
    outline: none;
    border-color: rgb(186, 31, 36);
    box-shadow: 0 0 0 3px rgba(186, 31, 36, 0.1);
}

.wp_paging .pageNum:hover {
    border-color: rgb(186, 31, 36);
}

/* Jump button */
.wp_paging .pagingJump {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background: rgb(186, 31, 36);
    border: none;
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 60px;
}

.wp_paging .pagingJump:hover {
    background: rgb(159, 14, 19);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(186, 31, 36, 0.2);
}

.wp_paging .pagingJump:active {
    background: rgb(155, 18, 22);
    transform: translateY(0);
}

/* Responsive adjustments for different screen sizes */
@media (max-width: 1195px) {
    .wp_paging {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .wp_paging .pages_count,
    .wp_paging .page_nav,
    .wp_paging .page_jump {
        justify-content: center;
    }

    .wp_paging .page_nav {
        flex-wrap: wrap;
        gap: 6px;
    }

    .wp_paging .page_nav a {
        min-width: 70px;
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* Clearfix for the wp_paging container */
.clearfix::before,
.clearfix::after {
    content: "";
    display: table;
}

.clearfix::after {
    clear: both;
}

/* Enhanced visual hierarchy */
.wp_paging .pages_count span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Add subtle animation for better user experience */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.wp_paging .page_nav a:not([disabled]):not(.disabled):hover {
    animation: pulse 1.5s ease-in-out infinite;
}

#wp_column_article {
    padding: 20px 25px;
}
.dtjt9_div_text {
    bottom: -6px;
}
.dtjt9_div_img .number{
    right: 0px;
    bottom: 35px;
}

.dtjt9_div_img .number .nomal,.dtjt9_div_img .number .current {
    font-size: 10px;
    line-height: 14px;
}
