* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Roboto, 'Helvetica Neue', sans-serif;
    background: #fefaf7;
    color: #1e2a2e;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

:root {
    --primary: #b11f24;
    --primary-dark: #8b1a1e;
    --primary-soft: #fceae8;
    --gold: #d4a373;
    --gray-bg: #fef5f0;
    --card-bg: #ffffff;
    --border-light: #f0e4dc;
    --shadow-sm: 0 12px 30px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 20px 35px -12px rgba(0, 0, 0, 0.1);
    --radius-lg: 32px;
    --radius-md: 24px;
    --radius-sm: 18px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
}

/* 头部 */
.header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(177, 31, 36, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 18px 0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-img {
    height: 48px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    border-radius: 8px;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.3px;
}

.logo-text p {
    font-size: 0.8rem;
    color: #7f6b5e;
    margin-top: 2px;
}

.nav {
    display: flex;
    gap: 1.8rem;
    flex-wrap: wrap;
}

.nav a {
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 0;
    color: #3e2c24;
    border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* 主内容 */
main {
    flex: 1;
    margin: 48px 0 64px;
}

.dashboard {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 48px;
    align-items: start;
}

/* 卡片通用样式 */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    padding: 1.2rem 1.8rem;
    border-bottom: 2px solid var(--primary-soft);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    background: #fffdfb;
}

.card-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.3px;
}

.card-header h2:before {
    content: "◆";
    font-size: 1rem;
    margin-right: 10px;
    color: var(--primary);
    opacity: 0.8;
}

.more-link {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
    border-bottom: 1px dashed var(--primary);
}

/* 民盟之家 图文网格 */
.news-grid {
    padding: 28px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 28px;
    flex: 1;
}

.news-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    cursor: pointer;
    border: 1px solid #f3e6e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.news-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: 0 20px 25px -12px rgba(177, 31, 36, 0.12);
}

.news-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #eedfd7;
    transition: transform 0.4s;
}

.news-card:hover .news-img {
    transform: scale(1.02);
}

.news-info {
    padding: 20px;
}

.news-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #2c2a28;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-summary {
    font-size: 0.85rem;
    color: #7e6b5e;
    margin: 8px 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-date {
    font-size: 0.75rem;
    color: #b8a292;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 右侧堆叠 */
.right-stack {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* 统战动态列表 */
.dynamic-list {
    padding: 8px 24px 28px;
    flex: 1;
}

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #f2e4dd;
    transition: all 0.2s;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:hover {
    background: #fef7f2;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 20px;
    margin-left: -8px;
    margin-right: -8px;
}

.item-title {
    font-size: 0.98rem;
    font-weight: 500;
    color: #2c3e3a;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 18px;
}

.item-title:before {
    content: "●";
    color: var(--primary);
    font-size: 0.7rem;
    margin-right: 12px;
}

.item-date {
    font-size: 0.75rem;
    color: #b4a092;
    flex-shrink: 0;
}

/* AI 民盟 卡片 - 更优雅的设计 */
.ai-card {
    background: linear-gradient(145deg, #ffffff, #fffaf5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid #ffede3;
    overflow: hidden;
    transition: all 0.3s;
}

.ai-card:hover {
    box-shadow: var(--shadow-md);
}

.ai-header {
    background: linear-gradient(105deg, var(--primary) 0%, #c7553a 100%);
    padding: 32px 28px;
    text-align: center;
    color: white;
}

.ai-header h3 {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.ai-header p {
    opacity: 0.9;
    font-size: 0.9rem;
}

.ai-body {
    padding: 40px 28px 48px;
    text-align: center;
}

.ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--primary);
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    padding: 16px 38px;
    border-radius: 60px;
    box-shadow: 0 12px 25px -10px rgba(177, 31, 36, 0.5);
    transition: all 0.25s;
    border: none;
    cursor: pointer;
}

.ai-btn span {
    font-size: 1.6rem;
}

.ai-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
    box-shadow: 0 20px 30px -12px rgba(139, 26, 30, 0.6);
}

.ai-desc {
    font-size: 0.85rem;
    color: #9a7b6a;
    margin-top: 30px;
    border-top: 1px solid #f3e2d9;
    padding-top: 26px;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

/* 页脚 */
.footer {
    background: #2b2520;
    color: #d6ccc4;
    padding: 40px 0 32px;
    font-size: 0.85rem;
    border-top: 3px solid var(--primary);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    color: #e7cfc2;
}

.footer-links a:hover {
    color: white;
}



/* 动画 */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .ai-card {
    animation: fadeUp 0.5s ease-out;
}


/* 面包屑 */
.breadcrumb {
    margin: 32px 0 24px;
    font-size: 0.85rem;
    color: #9b8a7c;
}

.breadcrumb a {
    color: var(--primary);
}

.breadcrumb span {
    margin: 0 6px;
}

/* 主体布局 - 单栏全宽 */
.articles-layout {
    max-width: 1200px;
    margin: 20px auto 60px;
}

/* 文章列表区域 */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.article-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.article-inner {
    display: flex;
    gap: 24px;
    padding: 24px;
}

.article-img {
    flex-shrink: 0;
    width: 200px;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: #eedfd7;
}

.article-content {
    flex: 1;
}

.article-category {
    display: inline-block;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 30px;
    margin-bottom: 10px;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c2a28;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-title a:hover {
    color: var(--primary);
}

.article-summary {
    color: #6f5e55;
    font-size: 0.9rem;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 0.75rem;
    color: #b8a292;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 纯标题备用样式 */
.article-card-titleonly {
    padding: 20px 24px;
}

.article-card-titleonly .article-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
}


/* 分页组件样式（无外层边框，无激活外边框） */
.pagebar {
    font-size: 0.875rem;
    font-family: inherit;
    line-height: 1;
    color: #3e2c24;
    margin-top: 20px;
    margin-bottom: 40px;
    text-align: center;
    border: none;
    outline: none;
    background: transparent;
}

.pagebar .p_pages {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-left: 0;
    border: none;
    background: transparent;
}

.pagebar .p_fun_d,
.pagebar .p_no_d,
.pagebar .p_fun a,
.pagebar .p_no a,
.pagebar .p_goto a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 40px;
    border: 1px solid #f0e4dc;
    background-color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    color: #3e2c24;
    transition: all 0.2s ease;
    box-sizing: border-box;
    cursor: pointer;
    outline: none;
}

.pagebar a {
    text-decoration: none;
}

.pagebar .p_fun a:focus,
.pagebar .p_no a:focus,
.pagebar .p_goto a:focus,
.pagebar .p_fun_d:focus,
.pagebar .p_no_d:focus,
.pagebar .p_goto input:focus {
    outline: none;
    box-shadow: none;
}

.pagebar .p_fun a:hover,
.pagebar .p_no a:hover,
.pagebar .p_goto a:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(177, 31, 36, 0.15);
}

.pagebar .p_no_d {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    cursor: default;
    box-shadow: 0 2px 6px rgba(177, 31, 36, 0.2);
    outline: none;
}

.pagebar .p_fun_d {
    color: #c0bbb6;
    border-color: #efe0d8;
    background-color: #faf6f2;
    cursor: not-allowed;
}

.pagebar .p_dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 36px;
    padding: 0 4px;
    color: #9b8a7c;
    font-size: 1rem;
}

.pagebar .p_goto {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
}

.pagebar .p_goto input {
    width: 52px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid #f0e4dc;
    border-radius: 40px;
    background-color: #ffffff;
    font-family: inherit;
    font-size: 0.875rem;
    text-align: center;
    color: #2c2a28;
    transition: all 0.2s;
    box-sizing: border-box;
    outline: none;
}

.pagebar .p_goto input:hover,
.pagebar .p_goto input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(177, 31, 36, 0.1);
    outline: none;
}

.pagebar .p_goto a {
    margin-left: 0;
    min-width: 52px;
    background-color: #ffffff;
}

/* 纯文章列表（无图片） */
.articles-title-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 20px 0 60px;
}

.articles-title-list .article-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    overflow: hidden;
}
.articles-title-list .article-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.articles-title-list .article-content {
    padding: 24px 28px;
}
.articles-title-list .article-category {
    display: inline-block;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 30px;
    margin-bottom: 12px;
}
.articles-title-list .article-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c2a28;
    margin-bottom: 12px;
    line-height: 1.4;
}
.articles-title-list .article-title a:hover {
    color: var(--primary);
}
.articles-title-list .article-summary {
    color: #6f5e55;
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.articles-title-list .article-meta {
    display: flex;
    gap: 20px;
    font-size: 0.75rem;
    color: #b8a292;
}
.articles-title-list .article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 文章详情卡片 */
.article-detail {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    overflow: hidden;
    margin-bottom: 48px;
}
.article-detail:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.article-detail .article-header {
    padding: 32px 36px 20px;
    border-bottom: 1px solid #f3e6e0;
}

.article-detail .article-category {
    display: inline-block;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 30px;
    margin-bottom: 16px;
}

.article-detail .article-title {
    font-size: 2rem;
    font-weight: 800;
    color: #2c2a28;
    line-height: 1.3;
    margin-bottom: 20px;
}

.article-detail .article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 0.85rem;
    color: #b8a292;
    border-top: 1px solid #f3e6e0;
    padding-top: 20px;
}
.article-detail .article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-detail .article-content {
    padding: 36px;
    font-size: 1rem;
    color: #3e2c24;
}

.article-detail .article-content p {
    margin-bottom: 1.5em;
}

.article-detail .article-content h2 {
    font-size: 1.5rem;
    margin: 1.5em 0 0.8em;
    color: var(--primary);
    font-weight: 700;
}

.article-detail .article-content h3 {
    font-size: 1.25rem;
    margin: 1.2em 0 0.6em;
    color: #5a3e32;
}

.article-detail .article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 1.5em 0;
}

.article-detail .article-content ul, .article-detail .article-content ol {
    margin: 0 0 1.5em 2em;
}

.article-detail .article-content li {
    margin-bottom: 0.5em;
}

.article-detail .article-content blockquote {
    border-left: 4px solid var(--primary);
    background: #fef7f2;
    padding: 1em 1.5em;
    margin: 1.5em 0;
    font-style: italic;
    color: #5a4a3e;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* 上一篇/下一篇导航 - 无标题，简洁美化版 */
.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-top: 16px;
    padding: 24px 36px 32px;
    border-top: 1px solid #f0e4dc;
    background: #fffdfb;
}
.nav-previous,
.nav-next {
    flex: 1;
    min-width: 0;
}
.nav-previous a,
.nav-next a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 500;
    color: #5a4a3e;
    background: transparent;
    padding: 8px 0;
    transition: all 0.2s;
    border-radius: 40px;
}
.nav-previous a:hover,
.nav-next a:hover {
    color: var(--primary);
    gap: 14px;
}
.nav-previous a:hover {
    transform: translateX(-4px);
}
.nav-next a:hover {
    transform: translateX(4px);
}
.nav-next {
    text-align: right;
}
.nav-next a {
    flex-direction: row-reverse;
}
/* 箭头符号用 unicode，也可以换成 SVG，但简洁为主 */
.nav-arrow {
    font-size: 1.2rem;
    font-weight: 400;
}

/* ========= 响应式设计 ========= */
@media (max-width: 1100px) {
    .dashboard {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .container {
        padding: 0 28px;
    }
}

/* 手机端设计全面优化 */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    /* 头部紧凑精致 */
    .header-inner {
        flex-direction: column;
        gap: 12px;
        padding: 14px 0;
    }

    .logo-area {
        flex-direction: row;
        gap: 10px;
        width: 100%;
        justify-content: center;
    }

    .logo-img {
        height: 40px;
    }

    .logo-text h1 {
        font-size: 1.25rem;
    }

    .logo-text p {
        font-size: 0.7rem;
    }

    .nav {
        gap: 0.8rem;
        justify-content: center;
        width: 100%;
    }

    .nav a {
        font-size: 0.85rem;
        padding: 6px 14px;
        background: rgba(177, 31, 36, 0.05);
        border-radius: 40px;
        border: none;
    }

    .nav a.active,
    .nav a:hover {
        background: var(--primary);
        color: white;
    }

    /* 卡片圆角缩小，更精致 */
    .card, .ai-card {
        border-radius: 28px;
    }

    .card-header {
        padding: 1rem 1.4rem;
    }

    .card-header h2 {
        font-size: 1.35rem;
    }

    /* 图文卡片手机版改为1列，增加内部边距 */
    .news-grid {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 24px;
    }

    .news-img {
        height: 160px;
    }

    .news-info h3 {
        font-size: 1rem;
    }

    /* 统战动态列表：垂直更宽松 */
    .dynamic-list {
        padding: 0 20px 24px;
    }

    .list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 14px 0;
    }

    .item-title {
        white-space: normal;
        word-break: break-word;
    }

    .item-title:before {
        margin-right: 8px;
    }

    /* AI 区域手机版 */
    .ai-header {
        padding: 24px 20px;
    }

    .ai-header h3 {
        font-size: 1.5rem;
    }

    .ai-body {
        padding: 32px 20px 38px;
    }

    .ai-btn {
        padding: 12px 28px;
        font-size: 1rem;
    }

    .ai-btn span {
        font-size: 1.3rem;
    }

    .ai-desc {
        width: 95%;
        font-size: 0.8rem;
    }

    /* 页脚手机版居中 */
    .footer .container {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .footer-links {
        justify-content: center;
    }

    /*文章列表相关*/
    .article-inner {
        flex-direction: column;
        padding: 20px;
    }
    .article-img {
        width: 100%;
        height: 160px;
    }
    .articles-layout {
        padding: 0;
    }}

/* 小屏手机 (≤480px) 进一步优化 */
@media (max-width: 480px) {
    .logo-area {
        flex-direction: column;
        text-align: center;
    }

    .logo-img {
        height: 36px;
    }

    .logo-text h1 {
        font-size: 1.1rem;
    }

    .nav a {
        font-size: 0.8rem;
        padding: 5px 12px;
    }

    .card-header h2 {
        font-size: 1.2rem;
    }

    .news-img {
        height: 140px;
    }
    .article-title {
        font-size: 1rem;
    }
}