/* ============================================
   远辰智联公告系统 - 前端样式
   配色: 蓝白为主 方形设计 政务感
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    color: #1a1a1a;
    background: #f0f2f5;
    line-height: 1.7;
    font-size: 15px;
}

a {
    color: #1a5fb4;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #0d3f7e;
}

/* ---- 顶部导航 ---- */
.top-bar {
    background: #003d7a;
    color: #fff;
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: rgba(255,255,255,0.75);
    font-size: 13px;
}

.top-bar a:hover {
    color: #fff;
}

.header {
    background: #fff;
    border-bottom: 3px solid #0a5eb8;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: #0a5eb8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}

.header-logo .logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #0a5eb8;
    letter-spacing: 1px;
}

.header-logo .logo-sub {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-list li a {
    display: block;
    padding: 0 24px;
    line-height: 68px;
    font-size: 15px;
    color: #333;
    font-weight: 500;
    position: relative;
    transition: background 0.2s, color 0.2s;
}

.nav-list li a:hover,
.nav-list li a.active {
    color: #0a5eb8;
    background: rgba(10,94,184,0.04);
}

.nav-list li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    background: #0a5eb8;
}

/* ---- Banner ---- */
.banner {
    background: linear-gradient(135deg, #003d7a 0%, #0a5eb8 55%, #2d8cf0 100%);
    color: #fff;
    padding: 56px 0 64px;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -60px;
    width: 320px;
    height: 320px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}

.banner::after {
    content: '';
    position: absolute;
    bottom: -120px;
    left: 10%;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.02);
    border-radius: 50%;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.banner h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.banner p {
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.88;
    max-width: 560px;
}

.banner-right {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 260px;
    height: 260px;
    background: rgba(255,255,255,0.06);
    border: 2px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-right-inner {
    width: 180px;
    height: 180px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: rgba(255,255,255,0.15);
    font-weight: 700;
    letter-spacing: 4px;
}

/* ---- 容器 ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- 主体布局(不对称) ---- */
.main-layout {
    display: flex;
    gap: 28px;
    padding: 36px 0;
    align-items: flex-start;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* ---- 公告卡片 ---- */
.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    padding-bottom: 14px;
    margin-bottom: 20px;
    border-left: 4px solid #0a5eb8;
    padding-left: 14px;
}

.announce-card {
    background: #fff;
    border: 1px solid #e4e7ed;
    margin-bottom: 14px;
    padding: 22px 24px;
    transition: box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
}

.announce-card:hover {
    border-color: #0a5eb8;
    box-shadow: 0 2px 12px rgba(10,94,184,0.08);
}

.announce-card .card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.announce-card .card-category {
    display: inline-block;
    padding: 2px 10px;
    font-size: 12px;
    background: #e8f1fb;
    color: #0a5eb8;
    font-weight: 500;
}

.announce-card .card-category.warn {
    background: #fef0e0;
    color: #c57316;
}

.announce-card .card-category.admin {
    background: #e6f7ef;
    color: #1a7f37;
}

.announce-card .card-time {
    font-size: 13px;
    color: #999;
}

.announce-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.5;
}

.announce-card h3:hover {
    color: #0a5eb8;
}

.announce-card .card-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- 侧边栏 ---- */
.sidebar-box {
    background: #fff;
    border: 1px solid #e4e7ed;
    margin-bottom: 20px;
}

.sidebar-box .sb-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    padding: 14px 18px;
    border-bottom: 1px solid #e4e7ed;
    background: #fafbfc;
}

.sidebar-box .sb-body {
    padding: 16px 18px;
}

.category-list {
    list-style: none;
}

.category-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f2f5;
    font-size: 14px;
    color: #333;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list li .cat-count {
    background: #e8f1fb;
    color: #0a5eb8;
    padding: 1px 10px;
    font-size: 12px;
    font-weight: 500;
}

/* ---- 分页 ---- */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    padding: 20px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    min-width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border: 1px solid #d9d9d9;
    background: #fff;
    color: #333;
    font-size: 14px;
    padding: 0 8px;
    transition: all 0.2s;
}

.pagination a:hover {
    border-color: #0a5eb8;
    color: #0a5eb8;
}

.pagination span.current {
    background: #0a5eb8;
    border-color: #0a5eb8;
    color: #fff;
}

/* ---- 公告详情 ---- */
.detail-wrap {
    background: #fff;
    border: 1px solid #e4e7ed;
    padding: 36px 40px;
}

.detail-wrap .detail-head {
    border-bottom: 1px solid #e4e7ed;
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.detail-wrap .detail-head h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
}

.detail-meta {
    display: flex;
    gap: 24px;
    font-size: 14px;
    color: #888;
}

.detail-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.detail-body {
font-size: 15px;
line-height: 2.2;
color: #333;
}

.detail-body p {
margin-bottom: 24px;
text-indent: 0;
}

.detail-body br {
display: block;
content: "";
margin-top: 12px;
}

.share-bar {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e4e7ed;
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-bar .share-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.share-bar input {
    flex: 1;
    height: 38px;
    border: 1px solid #d9d9d9;
    padding: 0 12px;
    font-size: 13px;
    color: #333;
    background: #fafbfc;
}

.share-bar button {
    height: 38px;
    padding: 0 20px;
    background: #0a5eb8;
    color: #fff;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.share-bar button:hover {
    background: #004d99;
}

/* ---- 页面内容 ---- */
.page-content {
    background: #fff;
    border: 1px solid #e4e7ed;
    padding: 36px 40px;
}

.page-content h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    padding-bottom: 20px;
    border-bottom: 2px solid #0a5eb8;
}

.page-content h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 28px 0 12px;
}

.page-content p {
    font-size: 15px;
    line-height: 2;
    color: #444;
    margin-bottom: 12px;
}

.page-content ul {
    padding-left: 24px;
    margin-bottom: 14px;
}

.page-content ul li {
    font-size: 15px;
    line-height: 2;
    color: #444;
}

/* ---- 底部 ---- */
.footer {
    background: #003d7a;
    color: rgba(255,255,255,0.7);
    padding: 32px 0;
    margin-top: 48px;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.footer .footer-main {
    font-size: 14px;
    line-height: 1.8;
}

.footer a {
    color: rgba(255,255,255,0.75);
}

.footer a:hover {
    color: #fff;
}

.footer .footer-divider {
    width: 1px;
    height: 12px;
    background: rgba(255,255,255,0.25);
    display: inline-block;
    margin: 0 8px;
    vertical-align: middle;
}

.footer-bottom {
    margin-top: 8px;
    font-size: 13px;
    opacity: 0.6;
}

/* ---- 返回按钮 ---- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #0a5eb8;
    margin-bottom: 16px;
    font-weight: 500;
}

.back-link:hover {
    color: #003d7a;
}

/* ---- 搜索框 ---- */
.search-bar {
    display: flex;
    margin-bottom: 20px;
}

.search-bar input {
    flex: 1;
    height: 42px;
    border: 1px solid #d9d9d9;
    border-right: none;
    padding: 0 14px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.search-bar input:focus {
    border-color: #0a5eb8;
}

.search-bar button {
    height: 42px;
    padding: 0 24px;
    background: #0a5eb8;
    color: #fff;
    border: 1px solid #0a5eb8;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-bar button:hover {
    background: #004d99;
}

/* ---- 筛选标签 ---- */
.filter-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #e4e7ed;
}

.filter-tabs a {
    display: block;
    padding: 10px 22px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}

.filter-tabs a:hover,
.filter-tabs a.active {
    color: #0a5eb8;
    border-bottom-color: #0a5eb8;
}

/* ---- 响应式 ---- */
@media (max-width: 900px) {
    .main-layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .banner-right {
        display: none;
    }
    .header .container {
        flex-direction: column;
        height: auto;
        padding: 12px 0;
    }
    .nav-list li a {
        line-height: 40px;
        padding: 0 14px;
        font-size: 14px;
    }
}
