
/* ==================== 全局重置与基础样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    font-size: 14px;
}

a {
    text-decoration: none;
    color: #1a73e8;
    transition: color 0.3s;
}

a:hover {
    color: #d9534f;
    text-decoration: underline;
}

/* ==================== 头部区域 ==================== */
.header {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

.header h1 {
    font-size: 1.8em;
    margin-bottom: 5px;
    color: #ffcc00;
}

.header .domain {
    font-size: 0.9em;
    color: #aaa;
}

/* ==================== 主体容器 ==================== */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

/* ==================== 图文资讯（横排5图） ==================== */
.news-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.gallery-item {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.gallery-item p {
    padding: 10px 8px;
    font-size: 0.85em;
    text-align: center;
    color: #333;
    line-height: 1.4;
    height: 60px;
    overflow: hidden;
}

/* ==================== 发布网链接区块（响应式网格） ==================== */
.topwz {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.topfy {
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.rboxi {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 10px;
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 8px;
}

.rboxi a {
    color: #333;
}

.newlis1 ul {
    list-style: none;
}

.newlis1 li {
    padding: 10px 0;
    border-bottom: 1px dotted #eee;
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.newlis1 li a {
    color: #333;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 10px;
}

.newlis1 li a:hover {
    color: #d9534f;
}

.newlis1 li .date {
    color: #999;
    font-size: 0.85em;
    white-space: nowrap;
}

/* ==================== 友情链接 ==================== */
.links {
    margin-top: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.links01 {
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1em;
}

.links02 a {
    margin-right: 15px;
    margin-bottom: 10px;
    display: inline-block;
    padding: 4px 10px;
    background: #f0f0f0;
    border-radius: 3px;
    color: #555;
    font-size: 0.9em;
}

.links02 a:hover {
    background: #e0e0e0;
    text-decoration: none;
}

/* ==================== 底部区域 ==================== */
.footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 30px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 0.85em;
}

.footer p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.footer a {
    color: #66afe9;
}

/* ==================== 手机端适配（媒体查询） ==================== */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.4em;
    }
    
    .container {
        padding: 0 10px;
    }
    
    /* 手机端图文资讯改为横向滚动或换行 */
    .news-gallery {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 10px;
    }
    
    .gallery-item img {
        height: 100px;
    }
    
    .gallery-item p {
        font-size: 0.8em;
        height: 50px;
    }
    
    .topwz {
        grid-template-columns: 1fr;
    }
    
    .newlis1 li {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .newlis1 li .date {
        margin-top: 4px;
    }
}