/* =======================================
   容器布局及左侧主内容
   ======================================= */
   .container.home-content {
    max-width: 1140px;  /* 最大宽度 */
    width: 100%;        /* 小屏幕自适应 */
    margin: 0 auto;     /* 居中 */
    padding: 30px 15px; /* 上下内边距 + 左右小间距 */
    display: flex;
    gap: 30px;          /* 左右列间距 */
    flex-wrap: wrap;
}

.main-content {
    flex: 7;
    min-width: 300px;  /* 小屏幕最小宽度 */
}

/* =======================================
   通用模块样式 (推荐产品、热门文章、旅游等)
   ======================================= */
.main-content .block {
    background: #fff; 
    border: 1px solid #ddd; 
    padding: 15px;
    margin-bottom: 20px; 
    border-radius: 10px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.08); 
    transition: transform 0.3s, box-shadow 0.3s;
}

.main-content .block:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

/* 模块标题样式 */
.main-content .block h2 {
    font-size: 20px;
    margin: 8px 0 12px 0;
    border-left: 4px solid #ff5722;
    padding-left: 12px;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 列表样式 (例如 Hot Products 的 ul/li) */
.main-content .block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-content .block ul li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.main-content .block ul li::before {
    content: '•';
    color: #ff5722;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
}

.main-content .block ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s, transform 0.3s;
}

.main-content .block ul li a:hover {
    color: #ff5722;
    transform: translateX(3px);
}

/* =======================================
   热门旅游内容 / 文章卡片 (travel-post)
   ======================================= */
.travel-post {
    margin-bottom: 40px;
    overflow: hidden;
}

.travel-post h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.travel-post .post-thumbnail {
    float: left;
    margin: 0 20px 10px 0;
    max-width: 40%;
    display: block;
}

.travel-post .post-content {
    /* 文字自然环绕图片 */
    overflow: hidden;
}

.travel-post .post-meta {
    font-size: 14px;
    color: #777;
    margin-top: 10px;
    clear: both;
    display: flex;       /* 横向排列 */
    gap: 15px;           /* 元素间距 */
    flex-wrap: wrap;     /* 小屏幕换行 */
}

.travel-post .post-meta span {
    display: flex;
    align-items: center;
}

.travel-post .post-meta i {
    margin-right: 5px;
    color: #ff5722;      /* 可以改成主题色 */
}



/* =======================================
   Tech 文章卡片 (tech-post)
   ======================================= */
   .tech-post {
    margin-bottom: 40px;
    overflow: hidden;
}

.tech-post h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.tech-post .post-thumbnail {
    float: left;
    margin: 0 20px 10px 0;
    max-width: 40%;
    display: block;
}

.tech-post .post-content {
    /* 文字自然环绕图片 */
    overflow: hidden;
}

.tech-post .post-meta {
    font-size: 14px;
    color: #777;
    margin-top: 10px;
    clear: both;
    display: flex;       /* 横向排列 */
    gap: 15px;           /* 元素间距 */
    flex-wrap: wrap;     /* 小屏幕换行 */
}

.tech-post .post-meta span {
    display: flex;
    align-items: center;
}

.tech-post .post-meta i {
    margin-right: 5px;
    color: #ff5722;      /* 图标颜色，主题色 */
}




/* =======================================
   Networking Hub 文章样式
   ======================================= */
   .network-post {
    margin-bottom: 40px;
    overflow: hidden;
}

.network-post h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.network-post .post-thumbnail {
    float: left;
    margin: 0 20px 10px 0;
    max-width: 40%;
    display: block;
}

.network-post .post-content {
    overflow: hidden; /* 文字环绕图片 */
}

.network-post .post-meta {
    font-size: 14px;
    color: #777;
    margin-top: 10px;
    clear: both;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.network-post .post-meta span {
    display: flex;
    align-items: center;
}

.network-post .post-meta i {
    margin-right: 5px;
    color: #ff5722; /* 主题色 */
}



/* =======================================
   产品网格 (Product Grid)
   ======================================= */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.product-card {
    flex: 1 1 calc(25% - 20px); /* 最多 4 个/行，自动换行 */
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    min-width: 200px; /* 小屏幕保证宽度 */
}

.product-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.product-card a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    display: block;
    margin-top: 5px;
    transition: color 0.3s;
}

.product-card a:hover {
    color: #ff5722;
}

/* =======================================
   显示更多 / 折叠按钮 (Show More / Collapse)
   ======================================= */
.hidden-article {
    display: none;
}

.article-toggle {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    justify-content: flex-end; /* 按钮靠右 */
}

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

.show-more-btn {
    background: #ff5722;
    color: white;
}

.show-more-btn:hover {
    background: #e64a19;
}

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

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

.hidden {
    display: none !important;
}
