/* =========================================================
   党建工作专栏 —— 版式来自 app/index.html 原型
   （红色云纹底 + 白色圆角卡片 + 横幅头图 + 红色导航条 + 7:3 双栏）
   全部样式限定在 .party-page 作用域内
   ========================================================= */

.party-page {
    --red-950: #4d0e12;
    --red-800: #8f1b20;
    --red-700: #a01d22;
    --red-600: #b52427;
    --gold: #d9b36a;
    --paper: #fbf8f4;
    --ink: #3f3c3a;
    --muted: #756f6c;
    --line: #e7e0da;
    --title: var(--red-800);
    box-sizing: border-box;
    padding: 30px 0 44px;
    color: var(--ink);
    background: var(--red-800) url(../images/party-bg.jpg) repeat;
    font: 16px/1.65 "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}
.party-page *, .party-page *::before, .party-page *::after { box-sizing: border-box; }
.party-page a { color: inherit; text-decoration: none; }
.party-page button { font: inherit; }
.party-page button, .party-page a { -webkit-tap-highlight-color: transparent; }

.party-page .shell {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    background: var(--paper);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 50px rgba(60, 10, 10, .28);
}

/* ---------- 横幅头图 ---------- */
.party-page .hero {
    position: relative;
    min-height: 348px;
    display: grid;
    place-items: center;
    text-align: center;
    isolation: isolate;
    background: #b91f24 url(../images/party-header-red.jpg) center / cover no-repeat;
}
.party-page .hero:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse at center, rgba(255, 240, 200, .3) 0%, rgba(255, 240, 200, .12) 42%, transparent 72%);
}
.party-page .hero-content { padding: 48px 20px 38px; }
.party-page .emblem {
    width: 58px;
    height: 58px;
    margin: 0 auto 8px;
    filter: drop-shadow(0 2px 1px rgba(60, 10, 10, .25));
}
.party-page .hero h1 {
    margin: 0;
    color: var(--red-800);
    font-family: "STKaiti", "KaiTi", "Noto Serif CJK SC", serif;
    font-size: clamp(32px, 4.2vw, 54px);
    line-height: 1.3;
    letter-spacing: .16em;
    text-shadow: 0 2px 0 rgba(255, 255, 255, .75);
}
.party-page .hero-sub {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 20px;
    color: var(--red-800);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: .24em;
}
.party-page .hero-sub:before, .party-page .hero-sub:after {
    content: "";
    width: 58px;
    height: 3px;
    background: currentColor;
}

/* ---------- 红色导航条 ---------- */
.party-page .navbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--red-800);
    color: var(--paper);
    min-height: 64px;
    box-shadow: 0 4px 0 rgba(217, 179, 106, .45);
}
.party-page .nav-list {
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}
.party-page .nav-list a {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 150px;
    min-height: 64px;
    padding: 0 28px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .08em;
    transition: background .2s, color .2s;
}
.party-page .nav-list a:hover { background: #6d151a; }
.party-page .nav-list a.active { background: var(--paper); color: var(--red-800); }
.party-page .nav-list a.active:after {
    content: "";
    position: absolute;
    left: 28px; right: 28px; bottom: 8px;
    height: 3px;
    background: var(--red-700);
}
.party-page .menu-toggle {
    display: none;
    min-height: 48px;
    padding: 8px 20px;
    border: 1px solid rgba(251, 248, 244, .45);
    background: transparent;
    color: inherit;
    cursor: pointer;
}

/* ---------- 主体 ---------- */
.party-page main { padding: 0 60px 44px; }
.party-page .breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 72px;
    color: var(--muted);
    font-size: 15px;
    border-bottom: 1px solid var(--line);
}
.party-page .breadcrumb svg { color: var(--red-700); }
.party-page .breadcrumb strong { color: var(--red-700); font-weight: 600; }
.party-page .breadcrumb a:hover { color: var(--red-700); }

.party-page .news-grid {
    display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    padding-top: 30px;
}
.party-page .section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 4px solid #dccbaa;
    min-height: 54px;
}
.party-page .section-heading h2 {
    align-self: stretch;
    display: flex;
    align-items: center;
    margin: -4px 0 0;
    padding: 0 24px;
    border-top: 6px solid var(--red-700);
    color: var(--red-800);
    font-size: 23px;
    line-height: 1;
    letter-spacing: 2px;
}
.party-page .more {
    flex: none;
    color: var(--muted);
    font-size: 14px;
    min-height: 44px;
    padding: 0 4px 0 16px;
    cursor: pointer;
    transition: color .2s;
}
.party-page .more:hover { color: var(--red-700); }

.party-page .news-list { list-style: none; margin: 4px 0 0; padding: 0; }
.party-page .news-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 48px;
    border-bottom: 1px dashed #e3d9d2;
}
.party-page .news-list li:before {
    content: "";
    flex: 0 0 5px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--red-700);
}
.party-page .news-list li a {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 10px 0;
    font-size: 16px;
    color: var(--ink);
    transition: color .2s;
}
.party-page .news-list li a:hover { color: var(--red-700); }
.party-page .news-date {
    flex: none;
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 13px;
}

/* 学习教育通栏 */
.party-page .study-full { margin-top: 36px; }
.party-page .news-list.cols2 { column-count: 2; column-gap: 48px; }
.party-page .news-list.cols2 li { break-inside: avoid; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .party-page { padding-top: 16px; }
    .party-page .nav-list a { min-width: 0; flex: 1; padding: 0 12px; font-size: 16px; }
    .party-page main { padding: 0 32px 36px; }
    .party-page .news-grid { gap: 30px; }
    .party-page .hero { min-height: 300px; }
    .party-page .news-list.cols2 { column-count: 1; }
    .party-page .news-date { display: none; }
}
@media (max-width: 640px) {
    .party-page { font-size: 15px; padding: 10px 0 24px; }
    .party-page .shell { width: calc(100% - 20px); border-radius: 10px; }
    .party-page .hero { min-height: 240px; background-position: 42% center; }
    .party-page .hero-content { padding: 30px 12px; }
    .party-page .emblem { width: 46px; height: 46px; }
    .party-page .hero h1 { font-size: 29px; letter-spacing: .08em; }
    .party-page .hero-sub { margin-top: 12px; font-size: 19px; gap: 12px; }
    .party-page .hero-sub:before, .party-page .hero-sub:after { width: 32px; }
    .party-page .navbar { justify-content: flex-end; padding: 8px 14px; min-height: 64px; }
    .party-page .menu-toggle { display: block; }
    .party-page .nav-list {
        display: none;
        position: absolute;
        top: 64px; left: 0; right: 0;
        z-index: 3;
        flex-direction: column;
        background: var(--red-800);
        box-shadow: 0 12px 20px rgba(40, 5, 5, .3);
    }
    .party-page .nav-list.open { display: flex; }
    .party-page .nav-list a { min-height: 52px; flex: none; }
    .party-page .nav-list a.active:after { display: none; }
    .party-page main { padding: 0 20px 28px; }
    .party-page .breadcrumb { min-height: 58px; }
    .party-page .news-grid { grid-template-columns: 1fr; gap: 26px; padding-top: 24px; }
    .party-page .section-heading h2 { font-size: 21px; padding: 0 16px; }
    .party-page .news-list li { min-height: 58px; }
    .party-page .news-list li a {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-height: 1.6;
    }
}
