/* ==========================
   Networking Hub 样式 (更新)
   ========================== */

/* 整体容器 */
.container.networking-hub {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    padding: 30px 15px;
    display: flex;
    gap: 30px; /* 左右列间距 */
    flex-wrap: wrap;
}

/* 左侧主内容 */
.networking-content {
    flex: 7;
}

/* 子板块 */
.network-section {
    margin-bottom: 50px;
    padding: 10px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* 子板块标题 */
.network-section-title {
    position: relative;
    font-size: 24px;
    color: #333; 
    margin-bottom: 20px;
    padding-left: 15px;
}

/* 左侧竖线 */
.network-section-title::before {
    content: "|";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 24px;
    color: #E64A19; 
    line-height: 1;
}

/* 文章列表 */
.network-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 单篇文章 */
.network-post-item {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
    overflow: hidden; /* 清除浮动，文字环绕 */
}

/* 文章标题 */
.network-post-title a {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.network-post-title a:hover {
    color: #1DA1F2;
}

/* 缩略图，左浮动，文字环绕 */
.network-post-thumbnail {
    float: left;
    flex: 0 0 150px;
    max-width: 150px;
    margin-right: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.network-post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* 摘要文字，环绕缩略图 */
.network-post-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    overflow: hidden;
}

/* 元信息 */
.network-post-meta {
    clear: both; /* 防止浮动遮挡 */
    font-size: 12px;
    color: #888;
    margin-top: 8px;
}

.network-post-meta span {
    margin-right: 15px;
}

/* Show More / Collapse 按钮 */
.hidden-article {
    display: none;
}

.article-toggle {
    margin-top: 15px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.article-toggle .btn {
    padding: 10px 26px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.25s;
}

.article-toggle .show-more-btn {
    background: #E64A19;
    color: white;
}

.article-toggle .show-more-btn:hover {
    background: #c43f16;
}

.article-toggle .collapse-btn {
    background: #607d8b;
    color: white;
}

.article-toggle .collapse-btn:hover {
    background: #455a64;
}

.hidden {
    display: none !important;
}

/* 无文章提示 */
.network-no-posts {
    font-size: 14px;
    color: #999;
    text-align: center;
    padding: 15px 0;
    border: 1px dashed #ccc;
    border-radius: 5px;
}

/* ==========================
   响应式设计
   ========================== */
@media (max-width: 992px) {
    .container.networking-hub {
        flex-direction: column;
    }

    .networking-content {
        flex: 1;
    }

    .network-post-item {
        flex-direction: column;
        gap: 10px;
    }

    .network-post-thumbnail {
        float: none; /* 移除浮动，小屏幕缩略图在上方 */
        max-width: 100%;
        flex: 1 0 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .network-section-title {
        font-size: 20px;
    }

    .network-post-title a {
        font-size: 16px;
    }

    .network-post-excerpt {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .network-section {
        padding: 15px;
    }

    .network-post-meta {
        font-size: 11px;
    }

    .network-post-title a {
        font-size: 15px;
    }
}
