/* ========== 文章模块专属样式 ========== */
/* 版本：1.0 */
/* 用途：文章列表页、详情页等文章模块专用样式 */

/* ========== 面包屑导航样式 ========== */
.article-breadcrumb {
    font-size: 14px;
    color: #6A7F99;
    margin-bottom: 10px;
    margin-top: 10px;
    padding-bottom: 1px;
    border-bottom: 1px solid #E0E6ED;
}
.article-breadcrumb ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.article-breadcrumb li {
    display: inline-flex;
    align-items: center;
    color: #6A7F99;
    font-size: 14px;
}
.article-breadcrumb li:not(:last-child)::after {
    content: '/';
    margin: 0 8px;
    color: #B0C4DE;
}
.article-breadcrumb li a {
    color: #1B4F93;
    text-decoration: none;
}
.article-breadcrumb li a:hover {
    text-decoration: underline;
}
.article-breadcrumb li.active {
    color: #5E718D;
}

/* ========== 文章标题 ========== */
.article-title {
    font-size: 28px;
    font-weight: 700;
    color: #0B2540;
    margin-bottom: 16px;
    line-height: 1.4;
}

/* ========== 文章元信息 ========== */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid #E0E6ED;
    color: #6A7F99;
    font-size: 14px;
}

/* ========== 文章正文 ========== */
.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #1A2B3C;
}
.article-content p {
    margin-bottom: 1em;
}
.article-content h2 {
    font-size: 22px;
    margin: 24px 0 16px;
    color: #0B2540;
    padding-left: 12px;
    border-left: 4px solid #1B4F93;
}
.article-content h3 {
    font-size: 18px;
    margin: 20px 0 12px;
    color: #0B2540;
}
.article-content img {
    max-width: 100%;
    height: auto;
    margin: 16px 0;
    border-radius: 8px;
}
.article-content table {
    width: 100%;
    overflow-x: auto;
    display: block;
    border-collapse: collapse;
    margin: 16px 0;
}
.article-content th,
.article-content td {
    border: 1px solid #E0E6ED;
    padding: 8px 12px;
}
.article-content th {
    background: #F8FAFD;
    font-weight: 600;
}
.article-content ul,
.article-content ol {
    margin: 12px 0 12px 24px;
}
.article-content li {
    margin: 6px 0;
}
.article-content blockquote {
    margin: 16px 0;
    padding: 12px 20px;
    background: #F8FAFD;
    border-left: 4px solid #1B4F93;
    color: #5E718D;
}

/* 文章封面图 */
.article-cover {
    text-align: center;
    margin-bottom: 24px;
}
.article-cover img {
    max-width: 100%;
    border-radius: 12px;
}

/* ========== 文章分页 ========== */
.article-pagination {
    margin: 24px 0;
    text-align: center;
}

/* ========== 文章标签 ========== */
.article-tags {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #E0E6ED;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.tag-item {
    display: inline-block;
    background: #F0F4FA;
    color: #1B4F93;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s;
}
.tag-item:hover {
    background: #1B4F93;
    color: white;
}

/* ========== 文章操作按钮 ========== */
.article-actions {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #E0E6ED;
    display: flex;
    gap: 12px;
}

/* ========== 相关文章列表 ========== */
.related-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.related-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #EDF2F7;
}
.related-list li:last-child {
    border-bottom: none;
}
.related-list li .title {
    color: #1A2B3C;
    text-decoration: none;
    flex: 1;
    font-weight: 500;
}
.related-list li .title:hover {
    color: #1B4F93;
}
.related-list li .date {
    font-size: 12px;
    color: #8899AA;
}

/* ========== 热门文章列表 ========== */
.hot-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.hot-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #EDF2F7;
}
.hot-list li:last-child {
    border-bottom: none;
}
.hot-list li .title {
    color: #1A2B3C;
    text-decoration: none;
    flex: 1;
}
.hot-list li .title:hover {
    color: #1B4F93;
}
.hot-list li .views {
    font-size: 12px;
    color: #8899AA;
}

/* ========== 相关机构卡片 ========== */
.related-org {
    background: #F8FAFD;
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
    display: flex;
    gap: 16px;
}
.org-avatar {
    width: 100px;
    height: 100px;
    background: #F0F4FA;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    font-size: 40px;
}
.org-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.org-info {
    flex: 1;
}
.org-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}
.org-name a {
    color: #1B4F93;
    text-decoration: none;
}
.org-name a:hover {
    text-decoration: underline;
}
.org-name small {
    font-size: 12px;
    font-weight: normal;
    color: #8899AA;
}
.org-info p {
    font-size: 13px;
    color: #5E718D;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .related-org {
        flex-direction: column;
        text-align: center;
    }
    .org-avatar {
        margin: 0 auto;
    }
}

/* ========== 广告位占位 ========== */
.ad-placeholder {
    background: #F8FAFD;
    border-radius: 12px;
    padding: 20px 20px;
    text-align: center;
    color: #8899AA;
    border: 1px dashed #CDD9E8;
}

/* ========== 响应式调整 ========== */
@media (max-width: 768px) {
    .article-title {
        font-size: 22px;
    }
    .article-meta {
        gap: 12px;
        font-size: 12px;
    }
    .article-content {
        font-size: 15px;
    }
    .article-content h2 {
        font-size: 18px;
    }
    .related-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .hot-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .related-org {
        flex-direction: column;
        text-align: center;
    }
}

/* ========== 页面布局样式（追加） ========== */

/* 左右两栏布局 */
.two-columns {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}
.main-content {
    flex: 1;
    min-width: 0;
}
.sidebar {
    width: 380px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 文章卡片 */
.article-card {
    background: white;
    border-radius: 16px;
    padding: 2px 28px;
    border: 1px solid #E9EDF2;
}
.article-card + .article-card {
    margin-top: 24px;
}

/* 通栏广告 - 滚动固定 */
.ad-banner-top {
    margin-bottom: 24px;
    margin-top: 10px;
    position: sticky;
    top: 64px;  /* 头部导航栏高度，滚动时紧贴导航栏下方 */
    z-index: 999;
    background: transparent;
}
.ad-banner-top .ad-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 20px 32px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    overflow: hidden;
}
.ad-banner-top .ad-card * {
    max-width: 100%;
}

/* 相关推荐上方的广告位 */
.ad-middle {
    margin: 24px 0;
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A24 100%);
    border-radius: 12px;
    padding: 20px 24px;
    color: white;
}
.ad-middle .ad-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

/* 广告卡片 */
.ad-card {
    background: white;
    border-radius: 16px;
    padding: 24px 28px;
    border: 1px solid #E9EDF2;
}
.ad-card .ad-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #8899AA;
    background: #F8FAFD;
    border-radius: 12px;
}

/* 右侧边栏底部的广告卡片 - 滚动固定 */
.sidebar .ad-card:last-child {
    position: sticky;
    top: 80px;  /* 距离顶部80px时固定 */
}

/* 政务服务中心卡片 */
.gov-center-card {
    background: white;
    border-radius: 16px;
    padding: 24px 28px;
    border: 1px solid #E9EDF2;
}
.gov-center-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #E0E6ED;
}
.gov-center-header h3 {
    font-size: 18px;
    color: #1B4F93;
    margin: 0;
}
.gov-center-header h3::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 20px;
    background: #1B4F93;
    margin-right: 12px;
    border-radius: 4px;
}
.gov-more-link {
    color: #1B4F93;
    font-size: 14px;
    text-decoration: none;
}
.gov-more-link:hover {
    text-decoration: underline;
}
.gov-center-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.gov-center-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #EDF2F7;
}
.gov-center-item:last-child {
    border-bottom: none;
}
.gov-center-avatar {
    width: 80px;
    height: 80px;
    background: #F0F4FA;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    font-size: 32px;
}
.gov-center-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gov-center-info {
    flex: 1;
}
.gov-center-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 6px;
}
.gov-center-name a {
    color: #1A2B3C;
    text-decoration: none;
}
.gov-center-name a:hover {
    color: #1B4F93;
}
.gov-center-desc {
    font-size: 12px;
    color: #5E718D;
    line-height: 1.5;
}

/* 办事大厅卡片 */
.hall-card {
    background: white;
    border-radius: 16px;
    padding: 24px 28px;
    border: 1px solid #E9EDF2;
}
.hall-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #E0E6ED;
}
.hall-header h3 {
    font-size: 18px;
    color: #1B4F93;
    margin: 0;
}
.hall-header h3::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 20px;
    background: #1B4F93;
    margin-right: 12px;
    border-radius: 4px;
}
.hall-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.hall-list li {
    padding: 12px 0;
    border-bottom: 1px solid #EDF2F7;
}
.hall-list li:last-child {
    border-bottom: none;
}
.hall-list li a {
    color: #1A2B3C;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    font-weight: 500;
}
.hall-list li a:hover {
    color: #1B4F93;
}
.hall-list li a span:last-child {
    color: #1B4F93;
}

/* 热门文章卡片 */
.hot-card {
    background: white;
    border-radius: 16px;
    padding: 24px 28px;
    border: 1px solid #E9EDF2;
}
.hot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #E0E6ED;
}
.hot-header h3 {
    font-size: 18px;
    color: #1B4F93;
    margin: 0;
}
.hot-header h3::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 20px;
    background: #1B4F93;
    margin-right: 12px;
    border-radius: 4px;
}
.hot-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.hot-list li {
    padding: 12px 0;
    border-bottom: 1px solid #EDF2F7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hot-list li:last-child {
    border-bottom: none;
}
.hot-list li a {
    color: #1A2B3C;
    text-decoration: none;
    flex: 1;
    font-weight: 500;
}
.hot-list li a:hover {
    color: #1B4F93;
}
.hot-list li span {
    font-size: 12px;
    color: #8899AA;
}

/* 评论区域 */
.comment-section {
    background: white;
    border-radius: 16px;
    padding: 24px 28px;
    border: 1px solid #E9EDF2;
    margin-top: 24px;
}
.comment-header {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #E0E6ED;
}
.comment-header h3 {
    font-size: 18px;
    color: #1B4F93;
    margin: 0;
}
.comment-header h3::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 20px;
    background: #1B4F93;
    margin-right: 12px;
    border-radius: 4px;
}

/* 响应式补充 */
@media (max-width: 768px) {
    .two-columns {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .article-card {
        padding: 20px;
    }
    .gov-center-item {
        flex-direction: column;
        text-align: center;
    }
    .gov-center-avatar {
        margin: 0 auto;
    }
    .ad-banner-top .ad-card {
        flex-direction: column;
        text-align: center;
    }
    .ad-middle .ad-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ========== 头部导航样式 ========== */
.gov-navbar {
    background: linear-gradient(135deg, #1B4F93 0%, #2A6CB8 100%);
    color: white;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}
.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 20px;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.site-logo img {
    height: 42px;
}
.site-name {
    font-size: 20px;
    font-weight: 700;
}
.site-city {
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid rgba(255,255,255,0.3);
    font-size: 14px;
}
.city-name {
    color: rgba(255,255,255,0.9);
}
.city-switch {
    color: rgba(255,255,255,0.7);
    margin-left: 6px;
    text-decoration: none;
}
.city-switch:hover {
    color: white;
}
.site-nav {
    flex: 1;
}
.site-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 6px;
}
.site-nav li a {
    color: rgba(255,255,255,0.9);
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s;
}
.site-nav li a:hover,
.site-nav li a.active {
    background: rgba(255,255,255,0.18);
    color: white;
}
.user-area {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}
.search-area form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.15);
    border-radius: 30px;
    padding: 4px 12px;
}
.search-area input {
    background: transparent;
    border: none;
    padding: 6px 8px;
    color: white;
    outline: none;
    width: 140px;
}
.search-area input::placeholder {
    color: rgba(255,255,255,0.7);
}
.search-area button {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
}
.user-dropdown {
    position: relative;
}
.user-name {
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 30px;
    display: inline-block;
}
.user-name:hover {
    background: rgba(255,255,255,0.15);
}
.dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 140px;
    display: none;
    z-index: 1000;
}
.user-dropdown:hover .dropdown-content {
    display: block;
}
.dropdown-content a {
    display: block;
    padding: 10px 16px;
    color: #1A2B3C;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px solid #EDF2F7;
}
.dropdown-content a:last-child {
    border-bottom: none;
}
.dropdown-content a:hover {
    background: #F0F6FF;
    color: #1B4F93;
}
.user-links {
    display: flex;
    gap: 12px;
}
.user-links a {
    color: white;
    padding: 6px 16px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 30px;
    text-decoration: none;
}
.user-links a:hover {
    background: white;
    color: #1B4F93;
}

/* 城市下拉菜单 */
.city-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.city-dropdown-inner {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80%;
    overflow: auto;
    padding: 20px;
}
.city-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #E0E6ED;
    margin-bottom: 16px;
}
.close-city {
    font-size: 24px;
    color: #8899AA;
    cursor: pointer;
    text-decoration: none;
}
.city-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.city-list li a {
    display: block;
    padding: 8px 12px;
    background: #F8FAFD;
    border-radius: 8px;
    color: #1A2B3C;
    text-align: center;
    text-decoration: none;
}
.city-list li a:hover {
    background: #1B4F93;
    color: white;
}

/* 响应式 */
@media (max-width: 768px) {
    .gov-navbar { padding: 0 16px; }
    .site-name { display: none; }
    .site-city { display: none; }
    .search-area input { width: 100px; }
    .city-list { grid-template-columns: repeat(3, 1fr); }
}

/* ========== 页脚样式 ========== */
.gov-footer {
    background: #1A2B3C;
    color: #8899AA;
    padding: 30px 20px 20px;
    margin-top: 40px;
}
.gov-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}
.gov-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 16px;
}
.gov-footer-links a {
    color: #B0C4DE;
    text-decoration: none;
    padding: 0 8px;
}
.gov-footer-links a:hover {
    color: white;
}
.gov-footer-links span {
    color: #4A657D;
}
.gov-footer-info {
    margin-bottom: 12px;
}
.sep {
    margin: 0 12px;
    color: #4A657D;
}
.gov-footer-disclaimer {
    font-size: 12px;
}
/* ========== 列表页独有样式 ========== */

/* 分类导航 */
.category-nav {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    border: 1px solid #E9EDF2;
}

.category-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-nav ul li a {
    display: inline-block;
    padding: 6px 18px;
    background: #F0F4FA;
    color: #1B4F93;
    border-radius: 30px;
    font-size: 14px;
    text-decoration: none;
}

.category-nav ul li a:hover,
.category-nav ul li a.active {
    background: #1B4F93;
    color: white;
}

/* 文章分组区域 */
.article-section {
    margin-bottom: 32px;
}

/* 文章网格 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* 文章卡片（详情页已有部分样式，补充列表页需要的） */
.article-card .thumb {
    display: block;
    height: 160px;
    background: #F0F4FA center/cover no-repeat;
}

.article-card .info {
    padding: 16px;
}

.article-card .info h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card .info h3 a {
    color: #1A2B3C;
    text-decoration: none;
}

.article-card .info .meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #8899AA;
    margin-bottom: 8px;
}

.article-card .info .desc {
    font-size: 13px;
    color: #6A7F99;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 卡片悬停效果 */
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #1B4F93 !important;
}

/* 热门文章列表（详情页已有 .hot-list，补充内部样式） */
.hot-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #EDF2F7;
}

.hot-list li:last-child {
    border-bottom: none;
}

.hot-list li a {
    color: #1A2B3C;
    text-decoration: none;
    flex: 1;
    font-size: 14px;
}

.hot-list li a:hover {
    color: #1B4F93;
}

.hot-list li span {
    font-size: 12px;
    color: #8899AA;
}

/* 响应式 */
@media (max-width: 768px) {
    .article-grid {
        grid-template-columns: 1fr;
    }
    .sidebar {
        width: 100%;
        margin-top: 20px;
    }
}