/* 新闻详情页样式 - 全新设计 */

/* 蓝色背景容器 */
.detail-page-wrapper {
    background: rgba(245, 248, 250, 1);
    /* min-height: 100vh; */
    height: 100%;
    padding: 40px 20px;
    position: relative;
}

/* 党群之窗来源的橙色主题样式 */
/* 导航栏样式 */
.dqzc-source .navbar {
    background: linear-gradient(135deg, #FF8C00 0%, #FF7F00 50%, #FF6347 100%) !important;
    box-shadow: 0 2px 10px rgba(255, 140, 0, 0.3) !important;
}

.dqzc-source .navbar .nav-item > a {
    color: white !important;
}

.dqzc-source .navbar .nav-item:hover > a,
.dqzc-source .navbar .nav-item.active > a {
    color: #FFE4B5 !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.dqzc-source .navbar .nav-item.active::after {
    background-color: #945800;
}

.dqzc-source .navbar .nav-item:hover::after {
    background-color: #945800;
}

.dqzc-source .navbar .submenu-link {
    color: #333 !important;
}

.dqzc-source .navbar .submenu-link:hover {
    background: #FF8C00 !important;
    color: white !important;
}

.dqzc-source .navbar .search-input {
    background: #B96E00 !important;
    color: rgba(245, 245, 245, 1) !important;
}

.dqzc-source .navbar .search-input::placeholder {
    color: rgba(245, 245, 245, 1) !important;
}

.dqzc-source .navbar .search-container {
    background-color: #B96E00;
    border: 2px solid #945800
}

.dqzc-source .navbar .search-input:focus {
    outline: none !important;
}

.dqzc-source .navbar .search-icon::before {
    border-color: white !important;
}

.dqzc-source .navbar .search-icon:hover::before {
    border-color: #FFE4B5 !important;
}

.dqzc-source .navbar .nav-item > a::after {
    background: #FFE4B5 !important;
}

.dqzc-source .navbar .nav-item:hover > a::after,
.dqzc-source .navbar .nav-item.active > a::after {
    background: #FFE4B5 !important;
    transform: scaleX(1) !important;
}

.dqzc-source .navbar .has-submenu > a::before {
    border-top-color: white !important;
}

.dqzc-source .navbar .has-submenu:hover > a::before,
.dqzc-source .navbar .has-submenu.active > a::before {
    border-top-color: #FFE4B5 !important;
}

.dqzc-source .navbar .submenu {
    border-top: 2px solid #FF8C00 !important;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.2) !important;
}

/* 返回按钮和卡片样式 */
.dqzc-source .back-button {
    background: #FF8C00;
}

.dqzc-source .back-button:hover {
    background: #FF7F00;
}

.dqzc-source .back-button::before {
    border-right-color: #FF8C00;
}

.dqzc-source .back-button:hover::before {
    border-right-color: #FF7F00;
}

.dqzc-source .nav-card:hover {
    background: #FF8C00;
    border-color: #FF8C00;
}

.dqzc-source .nav-card:hover::before {
    border-right-color: #FF8C00;
}

/* 党群之窗详情页浏览量图标 - 橙色 */
.dqzc-source .detail-views::before {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FF8C00"><path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"/></svg>') no-repeat center center !important;
    background-size: contain !important;
}

/* 返回按钮容器 */
.back-button-container {
    max-width: 1520px;
    margin: 0 auto 30px auto;
}

.back-button {
    display: flex;
    align-items: center;
    background: rgba(28, 142, 199, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.back-button:hover {
    /* background: rgba(255, 255, 255, 0.3);
    color:rgba(28, 142, 199, 1); */
    transform: translateX(-5px);
}

.back-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    position: relative;
}

.back-icon::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-top: 2px solid white;
    border-left: 2px solid white;
    transform: rotate(-45deg);
    top: 50%;
    left: 50%;
    margin-top: -6px;
    margin-left: -6px;
}

/* 主内容卡片 */
.detail-main-card {
    max-width: 1520px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}


/* 卡片头部 */
.card-header {
    padding: 40px 40px 30px 40px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.4;
}

.detail-meta {
    display: flex;
    gap: 40px;
    color: #666;
    font-size: 16px;
    justify-content: center;
}

.detail-date,
.detail-views {
    display: flex;
    align-items: center;
}

.detail-views::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%231C8EC7"><path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"/></svg>') no-repeat center center;
    background-size: contain;
}

/* 卡片内容 */
.card-content {
    padding: 30px 40px;
    line-height: 1.8;
}

.card-content p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #333;
    text-align: justify;
    line-height: 1.8;
}

.content-image {
    margin: 30px 0;
    text-align: center;
}

.content-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* 上一篇下一篇卡片 */
.prev-next-cards {
    display: flex;
    gap: 20px;
    max-width: 1520px;
    margin: 0 auto;
    padding: 30px 0px 40px 0px;
}

.nav-card {
    flex: 1;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-card:hover {
    background: #1C8EC7;
    border-color: #1C8EC7;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(28, 142, 199, 0.2);
}

.nav-card:hover .nav-card-label,
.nav-card:hover .nav-card-title {
    color: white;
}

.nav-card:hover .nav-arrow {
    color: white;
}

.nav-card-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    width: 50px;
    line-height: 20px;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-card-title {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
    margin: 0 10px;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-arrow {
    font-size: 20px;
    color: #666;
    transition: color 0.3s ease;
    font-weight: bold;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    line-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.prev-card {
    flex-direction: row;
}

.next-card {
    flex-direction: row;
}


/* 响应式设计 */
@media (max-width: 768px) {
    .hero-banner {
        height: 200px;
    }

    .hero-overlay {
        padding: 25px 40px;
    }

    .hero-title {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .detail-page-wrapper {
        padding: 20px 15px;
    }

    .back-button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .detail-main-card {
        border-radius: 15px;
    }

    .card-header {
        padding: 30px 25px 20px 25px;
    }

    .detail-title {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .detail-meta {
        flex-direction: column;
        gap: 10px;
        font-size: 14px;
    }

    .card-content {
        padding: 20px 25px;
    }

    .card-content p {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .prev-next-cards {
        flex-direction: column;
        padding: 20px 25px 30px 25px;
        gap: 15px;
    }

    .nav-card {
        padding: 0 15px;
        height: 50px;
    }

    .nav-card-label {
        width: 45px;
        font-size: 13px;
    }

    .nav-card-title {
        font-size: 15px;
        margin: 0 8px;
    }

    .nav-arrow {
        font-size: 18px;
        width: 18px;
    }
}

@media (max-width: 480px) {
    .detail-page-wrapper {
        padding: 15px 10px;
    }

    .card-header {
        padding: 25px 20px 15px 20px;
    }

    .detail-title {
        font-size: 20px;
    }

    .card-content {
        padding: 15px 20px;
    }

    .card-content p {
        font-size: 14px;
    }

    .prev-next-cards {
        padding: 15px 20px 25px 20px;
    }

    .nav-card {
        padding: 0 12px;
        height: 45px;
    }

    .nav-card-label {
        width: 40px;
        font-size: 12px;
    }

    .nav-card-title {
        font-size: 14px;
        margin: 0 6px;
    }

    .nav-arrow {
        font-size: 16px;
        width: 16px;
    }
}