/* ============================================
   公告发布系统 - 前台样式 v2（政务大气风）
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --blue: #1d4f9e;
    --blue-dark: #163d7a;
    --blue-deep: #0f2b57;
    --gold: #c9a15c;
    --bg: #f3f4f6;
    --line: #e9e9e9;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部细条 ---------- */
.topline { background: var(--blue-deep); color: rgba(255,255,255,.72); font-size: 12px; letter-spacing: 1px; }
.topline .wrap { display: flex; justify-content: space-between; padding-top: 7px; padding-bottom: 7px; }

/* ---------- 主横幅 ---------- */
.site-header {
    background: linear-gradient(120deg, var(--blue-deep) 0%, var(--blue-dark) 45%, var(--blue) 100%);
    color: #fff;
    padding: 26px 0;
    position: relative;
    overflow: hidden;
}
.site-header::before {
    content: ""; position: absolute; right: -80px; top: -140px;
    width: 340px; height: 340px; border-radius: 50%;
    background: rgba(255,255,255,.055);
}
.site-header::after {
    content: ""; position: absolute; left: -50px; bottom: -120px;
    width: 260px; height: 260px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.10);
}
.header-inner { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-title { font-size: 30px; font-weight: 700; letter-spacing: 3px; text-shadow: 0 2px 8px rgba(0,0,0,.25); display: flex; align-items: center; }
.site-title a { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 13px; }
.logo-mark {
    width: 46px; height: 46px; border-radius: 11px; flex: none;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.site-sub {
    margin-top: 10px; margin-left: 59px; font-size: 12.5px; letter-spacing: 2.5px; opacity: .85;
    display: inline-flex; align-items: center; gap: 10px;
}
.site-sub::before { content: ""; width: 24px; height: 2px; background: var(--gold); }
.header-date { text-align: right; position: relative; z-index: 1; }
.header-date strong { display: block; font-size: 26px; font-weight: 600; letter-spacing: 2px; line-height: 1.2; }
.header-date span { font-size: 13px; opacity: .85; letter-spacing: 4px; }

/* ---------- Hero 轮播 ---------- */
.wrap-zone { padding: 0 20px; }
.hero { margin-top: 22px; }
.hero-box {
    position: relative; height: 210px; border-radius: 12px; overflow: hidden;
    box-shadow: 0 10px 28px rgba(29,79,158,.16);
}
.slide {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; justify-content: center;
    padding: 0 60px;
    color: #fff;
    opacity: 0; visibility: hidden; transform: scale(1.03);
    transition: opacity .8s ease, transform .8s ease, visibility .8s;
}
.slide.on { opacity: 1; visibility: visible; transform: scale(1); }
.slide .slide-num {
    position: absolute; right: 34px; bottom: -18px;
    font-size: 110px; font-weight: 800; line-height: 1;
    color: rgba(255,255,255,.08); letter-spacing: -4px;
}
.slide h3 { font-size: 27px; letter-spacing: 6px; font-weight: 700; text-shadow: 0 2px 10px rgba(0,0,0,.2); }
.slide p { margin-top: 12px; font-size: 14px; letter-spacing: 2px; opacity: .88; }
.slide::after {
    content: ""; position: absolute; left: 60px; top: 0; bottom: 0; margin: auto;
    height: 3px; width: 46px; background: var(--gold);
}
.slide:nth-child(1) {     background: linear-gradient(115deg, #0f2b57 0%, #17418a 60%, #2563ab 100%); }
.slide:nth-child(2) { background: linear-gradient(115deg, #31445e 0%, #4a6285 60%, #64809f 100%); }
.slide:nth-child(3) { background: linear-gradient(115deg, #7a5418 0%, #a3761f 60%, #c9a15c 100%); }
.hero-dots { position: absolute; right: 26px; top: 22px; display: flex; gap: 8px; z-index: 2; }
.hero-dots .dot {
    width: 22px; height: 5px; border-radius: 3px; cursor: pointer;
    background: rgba(255,255,255,.35); transition: all .3s;
}
.hero-dots .dot.on { background: #fff; }

/* ---------- 栏目卡片 ---------- */
.cat-zone { margin-top: 20px; position: relative; z-index: 5; }
.cat-nav-inner { display: flex; gap: 14px; flex-wrap: wrap; }
.cat-btn {
    flex: 1; min-width: 220px;
    display: flex; align-items: center; gap: 13px;
    background: #fff;
    padding: 17px 18px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    text-decoration: none;
    color: #333;
    transition: all .18s ease;
    border-top: 3px solid var(--gold);
}
.cat-btn .ico {
    width: 42px; height: 42px; flex: none; border-radius: 9px;
    background: #eef3fb; color: #1d4f9e;
    display: flex; align-items: center; justify-content: center;
    transition: all .18s;
}
.cat-btn .ico svg { width: 22px; height: 22px; }
.cat-btn .txt { flex: 1; min-width: 0; }
.cat-btn .name { font-size: 16px; font-weight: 600; letter-spacing: 1px; display: block; transition: color .15s; }
.cat-btn .cnt { font-size: 12px; color: #999; display: block; margin-top: 3px; }
.cat-btn .go { width: 26px; height: 26px; border-radius: 50%; flex: none;
    border: 1px solid #eee; color: #bbb;
    display: flex; align-items: center; justify-content: center; transition: all .18s; }
.cat-btn .go svg { width: 14px; height: 14px; }
.cat-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(29,79,158,.14); }
.cat-btn:hover .name { color: var(--blue); }
.cat-btn:hover .go { background: var(--blue); border-color: var(--blue); color: #fff; }
.cat-btn.active {
    background: linear-gradient(120deg, var(--blue-dark), var(--blue));
    border-top-color: var(--gold);
    color: #fff;
    box-shadow: 0 8px 22px rgba(29,79,158,.28);
}
.cat-btn.active .name { color: #fff; }
.cat-btn.active .cnt { color: rgba(255,255,255,.75); }
.cat-btn.active .ico { background: rgba(255,255,255,.15); color: #fff; }
.cat-btn.active .go { border-color: rgba(255,255,255,.4); color: rgba(255,255,255,.85); }

/* ---------- 内容卡片 ---------- */
.main-card {
    background: #fff;
    margin-top: 20px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
    padding: 8px 30px 28px;
    flex: 1;
}

/* 区块标题条 */
.sec-head {
    display: flex; align-items: center; gap: 12px;
    padding: 20px 0 16px;
    border-bottom: 2px solid var(--blue);
    margin-bottom: 6px;
}
.sec-head .bar { width: 6px; height: 20px; background: var(--blue); border-radius: 2px; }
.sec-head h2 { font-size: 19px; color: #222; letter-spacing: 1px; }
.sec-head .more { margin-left: auto; font-size: 13px; color: #999; }
.sec-head .more em { font-style: normal; color: var(--blue); font-weight: 600; }

/* ---------- 列表（日期块卡片式） ---------- */
.notice-list { list-style: none; }
.notice-list li { border-bottom: 1px dashed var(--line); }
.notice-list li:last-child { border-bottom: none; }
.notice-list a {
    display: flex; align-items: center; gap: 18px;
    padding: 17px 6px;
    text-decoration: none; color: #333;
    transition: background .15s ease;
}
.notice-list a:hover { background: #f5f8fc; }
.date-block {
    flex: none; width: 64px; padding: 9px 0 8px;
    border-radius: 8px;
    background: #f2f6fc;
    border: 1px solid #dbe6f5;
    text-align: center;
    transition: all .18s;
}
.date-block b { display: block; font-size: 23px; font-weight: 700; color: var(--blue); line-height: 1.1; }
.date-block i { display: block; font-style: normal; font-size: 11px; color: #8fa3c4; margin-top: 3px; letter-spacing: .5px; }
.notice-list a:hover .date-block { background: var(--blue); border-color: var(--blue); }
.notice-list a:hover .date-block b { color: #fff; }
.notice-list a:hover .date-block i { color: rgba(255,255,255,.75); }
.n-main { flex: 1; min-width: 0; }
.n-title {
    display: block; font-size: 15.5px; font-weight: 500; color: #333;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .15s;
}
.notice-list a:hover .n-title { color: var(--blue); }
.n-sum {
    display: block; margin-top: 5px; font-size: 12.5px; color: #a0a0a0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.n-right { flex: none; display: flex; align-items: center; gap: 10px; }
.n-time { color: #bbb; font-size: 12.5px; }
.n-arrow { width: 15px; height: 15px; color: #ccc; transition: all .15s; }
.notice-list a:hover .n-arrow { color: var(--blue); transform: translateX(3px); }

.empty { text-align: center; color: #999; padding: 70px 0; font-size: 15px; }
.empty svg { width: 48px; height: 48px; color: #ddd; display: block; margin: 0 auto 14px; }

/* ---------- 分页 ---------- */
.pager { margin-top: 24px; text-align: center; font-size: 14px; }
.pager a, .pager .cur {
    display: inline-block; min-width: 36px; padding: 7px 12px; margin: 0 3px;
    border: 1px solid #ddd; border-radius: 6px; color: #555; text-decoration: none;
    background: #fff; transition: all .15s;
}
.pager a:hover { border-color: var(--blue); color: var(--blue); }
.pager .cur { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }
.pg-info { display: none; color: #999; font-size: 13px; padding: 0 6px; }

/* ---------- 详情 ---------- */
.crumbs { font-size: 13px; color: #999; padding: 18px 0 4px; }
.crumbs a { color: var(--blue); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.detail { padding: 6px 14px 0; }
.detail-title {
    font-size: 25px; text-align: center; color: #222; line-height: 1.55;
    padding: 18px 16px 0;
}
.detail-meta {
    margin-top: 20px; padding-bottom: 18px;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap;
    padding-top: 15px; font-size: 13px; color: #888;
}
.detail-meta .cat-chip { color: var(--blue); background: #eef4fc; border: 1px solid #d5e2f4;
    border-radius: 20px; padding: 3px 14px; font-size: 12.5px; letter-spacing: 1px; }
.meta-item { display: inline-flex; align-items: center; gap: 6px; }
.meta-item svg { width: 14px; height: 14px; color: #bbb; }
.detail-body {
    padding: 30px 22px 20px; font-size: 16px; line-height: 2.05; color: #383838;
    word-break: break-word; text-align: justify;
}
.detail-foot { margin-top: 10px; }
.foot-line { height: 1px; background: var(--line); margin-bottom: 20px; }
.back-btn {
    display: inline-block; padding: 10px 24px; border: 1px solid #ddd; border-radius: 6px;
    color: #666; text-decoration: none; font-size: 14px; transition: all .15s; background: #fff;
}
.back-btn:hover { border-color: var(--blue); color: var(--blue); box-shadow: 0 3px 10px rgba(29,79,158,.12); }

/* ---------- 页脚 ---------- */
.site-footer { background: #232329; color: #8e8e95; font-size: 13px; margin-top: auto; }
.site-footer .f-grid {
    display: flex; gap: 40px; flex-wrap: wrap;
    padding: 30px 0 24px;
}
.site-footer .f-col { flex: 1; min-width: 220px; }
.site-footer .f-name { color: #e3e3e8; font-size: 16.5px; letter-spacing: 2px; font-weight: 600;
    display: flex; align-items: center; gap: 10px; }
.site-footer .f-name::before { content: ""; width: 4px; height: 16px; background: var(--blue); border-radius: 2px; }
.site-footer .f-sub { margin: 10px 0 0 14px; font-size: 12px; letter-spacing: 2px; color: #6d6d76; }
.site-footer .f-biz { margin: 12px 0 0 14px; font-size: 12px; color: #7c7c85; line-height: 1.9; }
.f-col-title { color: #c9c9d0; font-size: 14px; font-weight: 600; letter-spacing: 2px; margin-bottom: 13px; }
.site-footer .f-col:nth-child(2) a {
    display: block; color: #8e8e95; font-size: 13px; padding: 4px 0; transition: color .15s;
}
.site-footer .f-col:nth-child(2) a:hover { color: #fff; }
.site-footer .f-contact span { display: block; color: #8e8e95; font-size: 12.5px; line-height: 2.1;
    padding-left: 14px; position: relative; }
.site-footer .f-contact span::before { content: "·"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.site-footer .f-copy { border-top: 1px solid #303038; padding: 14px 0; text-align: center; font-size: 12px; color: #6d6d76; }
.site-footer .f-copy a.icp { color: inherit; text-decoration: none; margin-left: 10px; }
.site-footer .f-copy a.icp:hover { color: #fff; text-decoration: underline; }

/* ---------- 手机适配 ---------- */
@media (max-width: 680px) {
    .topline .wrap span:last-child { display: none; }
    .site-title { font-size: 22px; }
    .logo-mark { width: 38px; height: 38px; border-radius: 9px; }
    .site-sub { margin-left: 51px; letter-spacing: 1.5px; }
    .header-date strong { font-size: 20px; }
    .header-date span { letter-spacing: 2px; }
    .hero-box { height: 160px; }
    .slide { padding: 0 30px; }
    .slide h3 { font-size: 20px; letter-spacing: 3px; }
    .slide p { font-size: 12px; letter-spacing: 1px; }
    .slide .slide-num { font-size: 72px; }
    .slide::after { left: 30px; }
    .hero-dots { right: 16px; top: 14px; }
    .cat-btn { min-width: 100%; }
    .cat-btn .ico { width: 38px; height: 38px; }
    .cat-btn .ico svg { width: 20px; height: 20px; }
    .main-card { padding: 4px 16px 20px; border-radius: 10px; }
    .sec-head { padding: 16px 0 13px; }
    .sec-head h2 { font-size: 17px; }
    .notice-list a { gap: 12px; padding: 14px 4px; }
    .date-block { width: 56px; }
    .date-block b { font-size: 19px; }
    .n-sum {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        white-space: normal;
        line-height: 1.6;
    }
    .n-title { font-size: 14.5px; white-space: normal; }
    .n-right { display: none; }
    .detail { padding: 0; }
    .detail-title { font-size: 19px; }
    .detail-body { padding: 22px 4px 14px; font-size: 15px; overflow-x: auto; }
    .detail-meta { gap: 10px; padding-top: 12px; }
    /* 分页简化：只留 上一页 / X/Y / 下一页 */
    .pg-num { display: none; }
    .pg-info { display: inline-block; }
    .pager a, .pager .cur { padding: 9px 18px; }
    /* 触控目标 */
    .back-btn { padding: 12px 26px; }
    /* 页脚堆叠 */
    .site-footer .f-grid { gap: 24px; }
    .site-footer .f-col { min-width: 100%; }
    /* 安全区（iPhone 底部） */
    .site-footer .f-copy { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
}

/* ---------- 平板 ---------- */
@media (min-width: 681px) and (max-width: 1000px) {
    .cat-btn { min-width: calc(50% - 7px); }
    .hero-box { height: 190px; }
}
