/* 1. 核心变量与全局重置 */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-sub: #64748b;
    --border: #e2e8f0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

/* 2. 顶部导航栏 */
header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 32px; height: 32px;
    background: var(--primary);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 18px;
}

.nav-actions button {
    padding: 8px 16px;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.nav-actions button:hover {
    background: var(--primary);
    color: white;
}

/* 3. 主内容区容器 */
.container {
    /*max-width: 1200px;*/
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* 4. 标题通用样式 */
.section-title {
    font-size: 1.5em;
    font-weight: 700;
    margin: 10px 0 0 20px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary);
    border-radius: 2px;
}

/* 5. Hub 枢纽布局 (上半部分) */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 10px 20px 20px 20px;
    white-space: pre-wrap;
}

.hub-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.bm-card {
    background: var(--card-bg);
    padding: 24px 24px 16px 24px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-decoration: none;
    color: inherit;
}


.hub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.1);
    border-color: var(--primary);
}

.bm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.1);
    border-color: var(--primary);
}



.hub-icon {
    width: 48px; height: 48px;
    background: #eff6ff;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    color: var(--primary);
}

.hub-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.bm-card h1 {
    display: flex;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #3E3E3E;
    line-height: 2.8;
    text-shadow:
            -1px -1px 0 #FFF,   /* 左上 */
            1px -1px 0 #FFF,   /* 右上 */
            -1px  1px 0 #FFF,   /* 左下 */
            1px  1px 0 #FFF;   /* 右下 */
}



.bm-card h2 {
    display: flex;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #3E3E3E;
    line-height: 1.4;
    text-shadow:
            -1px -1px 0 #FFF,   /* 左上 */
            1px -1px 0 #FFF,   /* 右上 */
            -1px  1px 0 #FFF,   /* 左下 */
            1px  1px 0 #FFF;   /* 右下 */
}



.hub-card p {
    font-size: 0.9rem;
    color: var(--text-sub);
    line-height: 1.2;
}

.bm-card p {
    display: flex;
    justify-content: right;
    font-size: 0.9rem;
    color: #3E3E3E;
    line-height: 2;
    font-weight: 500;
}




.hub-tag {
    font-size: 0.75rem;
    color: var(--primary);
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 4px;
    align-self: flex-start;
    font-weight: 600;
}


/* 6. 新闻列表 (下半部分) */
.news-section { margin-top: 10px; }

.news-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.news-tab {
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s;
    color: var(--text-sub);
}

.news-tab.active, .news-tab:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 10px 20px 0 20px;
}

.news-item {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
    display: flex;
    gap: 20px;
    transition: 0.2s;
    cursor: pointer;
}
.foot {
    margin: 0 auto;
    text-align: center;
    color: #64748b;
    padding: 20px;
    font-size: 0.9rem;
}
.news-item:hover { border-color: var(--primary); }

.news-content { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.news-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.news-excerpt { font-size: 0.9rem; color: var(--text-sub); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.news-meta {
    display: flex; gap: 16px; font-size: 0.8rem; color: var(--text-sub); margin-top: 12px;
}

.news-thumb {
    /*width: 180px; height: 120px;*/
    /*background: #e2e8f0;*/
    border-radius: 8px;
    flex-shrink: 0;
    /*background-image: linear-gradient(45deg, #e2e8f0 25%, #f1f5f9 25%, #f1f5f9 50%, #e2e8f0 50%, #e2e8f0 75%, #f1f5f9 75%, #f1f5f9 100%);*/
    background-size: 20px 20px;
}
.news-thumb img{
    border-radius: 8px;
}
/* 7. 移动端响应式适配 */
@media (max-width: 768px) {
    .news-item { flex-direction: column-reverse; }
    .news-thumb {
        /*width: 100%; height: 160px; */
    }
    .news-list {
        gap: 10px;
    }

    .news-thumb img{
        width: 100%;
        max-width: 240px;
        height: auto;
    }
}