﻿
h1 {
    text-align: center;
    font-size: 24px;
    color: #333;
    margin:20px 0px;
}
.container {
    max-width: 768px;
    margin: auto;
}

/* 搜索框样式 */
.search-container {
    display: flex;
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: white;
}

    .search-container:focus-within {
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
    }

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 15px;
    color: #999;
    pointer-events: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 16px;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.search-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: none;
    font-size: 16px;
    background: transparent;
}

    .search-input:focus {
        outline: none;
    }

.search-button {
    padding: 0 20px;
    background: #1e88e5;
    color: white;
    border: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

    .search-button:hover {
        background: #1565c0;
    }

/* 新闻列表样式 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
    .news-item a {
        text-decoration: none;
        /* 其他链接样式 */
        color: inherit; /* 可选：继承父元素颜色 */
    }
    .news-item a:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
    }

.news-content {
    display: flex;
    padding: 15px;
}

.news-text {
    flex: 1;
}

.news-thumbnail {
    width: 100px;
    height: 80px;
    border-radius: 4px;
    object-fit: cover;
    margin-left: 15px;
    margin-top: 20px;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-title1 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 8px;
    color: #999;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-summary {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.news-source {
    margin-right: 15px;
}

.news-time {
    display: flex;
    align-items: center;
}

    .news-time::before {
        content: "·";
        margin: 0 5px;
    }


/* 展会、专家区块基础样式 */
.experts-section {
    font-family: 'Segoe UI', Roboto, 'PingFang SC', sans-serif;
    padding: 0px;
    margin-bottom: 20px;
    border-radius: 8px; /* 圆角，可根据需要调整大小 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 投影效果 */
}
/* 专家网格布局 */
.experts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px 15px;
    padding: 5px 5px;
    margin-top: 5px 5px;
}

/* 专家卡片样式 */
.expert-card {
    background: #fff;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

    .expert-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

.expert-link {
    text-decoration: none;
    color: inherit;
    display: block;
    text-align: center;
}

.expert-avatar-container {
    width: 90%;
    aspect-ratio: 1/1; /* 保持1:1正方形 */
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto 12px;
    border: 2px solid #f0f0f0;
    transition: border-color 0.3s;
}

.expert-card:hover .expert-avatar-container {
    border-color: #1e88e5;
}

.expert-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expert-name {
    font-size:14px;
    color: #333;
    margin: 0 0 4px;
    font-weight: 500;
    transition: color 0.2s;
}

.expert-title {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    line-height: 1;
}

.expert-card:hover .expert-name {
    color: #1e88e5;
}
/* 标题栏样式 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline; /* 基线对齐（标题和链接文字底部平齐） */
    border-bottom: 1px solid #eee;
    padding-left:10px; 
    background: linear-gradient(to right, #f8fafc 0%, #f1f5f9 100%);
}

.more-link {
    color: #666;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
    padding: 2px 8px;
    border-radius: 3px;
}

    .more-link:hover {
        color: #1e88e5;
        background-color: rgba(30, 136, 229, 0.1);
    }
/* 展会、专家区块基础样式 */




/* 响应式调整 */
@media (max-width: 480px) {
    .news-content {
        flex-direction: column;
    }

    .news-thumbnail {
        width: 100%;
        height: auto;
        max-height: 150px;
        margin-left: 0;
        margin-top: 10px;
        border: 1px solid #ccc; /* 添加1像素宽的灰色实线边框 */
    }
}
