/* ================= 全局重置与基础样式 ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f2f2f2;
}
img {
    max-width: 100%;
    height: auto;
    border: none;
    display: block;
}
a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #e74c3c;
}
ul, ol {
    list-style: none;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

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

/* ================= 头部导航 ================= */
.header {
    background-color: #1a1a1a;
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.logo img {
    height: 50px;
    display: block;
}
.nav ul {
    display: flex;
}
.nav li {
    margin-left: 20px;
}
.nav a {
    color: #fff;
    font-size: 16px;
    padding: 5px 10px;
}
.nav a:hover {
    color: #ffcc00;
}

/* ================= 广告位 ================= */
.tagads {
    margin: 15px auto;
    text-align: center;
}

/* ================= 主体内容 ================= */
.main {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}
.position {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.position a {
    color: #666;
}
.position a:hover {
    color: #e74c3c;
}

/* ================= 标签大图与提示 ================= */
.tag-top-banner {
    text-align: center;
    margin-bottom: 20px;
}
.tag-top-banner img {
    max-height: 200px;
    border-radius: 4px;
    margin: 0 auto;
}
.tag-hint {
    background: #f5f5f5;
    padding: 10px 15px;
    margin-bottom: 20px;
    border-left: 4px solid #e74c3c;
    font-size: 15px;
}
.tag-name {
    color: #e74c3c;
    font-weight: bold;
}

/* ================= 文章列表：一行2个图文卡片 ================= */
.article-list {
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}
.article-item {
    width: 50%;
    padding: 0 10px;
    margin-bottom: 20px;
    display: flex;
}
.article-card {
    display: flex;
    width: 100%;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 12px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.article-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.article-img {
    width: 160px;
    height: 110px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
    flex-shrink: 0;
}
.article-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.article-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    line-height: 1.4;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.article-title:hover {
    color: #e74c3c;
}
.article-desc {
    color: #777;
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.article-meta {
    color: #999;
    font-size: 12px;
    margin-top: auto;
}
.article-meta span {
    margin-right: 12px;
}

/* ================= 最新资讯8条 ================= */
.latest-news-box {
    margin: 30px 0 10px;
    padding: 20px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 5px;
}
.latest-news-box h4 {
    font-size: 17px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e74c3c;
    color: #333;
}
.latest-news-list li {
    padding: 9px 0;
    border-bottom: 1px dashed #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.latest-news-list li:last-child {
    border-bottom: none;
}
.latest-news-list .news-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}
.latest-news-list .news-title a:hover {
    color: #e74c3c;
}
.latest-news-list .news-date {
    color: #999;
    font-size: 12px;
    margin-left: 10px;
    flex-shrink: 0;
}

/* ================= 底部 ================= */
.footer {
    background: #1a1a1a;
    color: #ccc;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}
.footer p {
    font-size: 13px;
}
.footer a {
    color: #ccc;
}
.footer a:hover {
    color: #fff;
}

/* ================= 响应式设计 ================= */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        text-align: center;
    }
    .nav ul {
        margin-top: 15px;
        justify-content: center;
    }
    .nav li {
        margin: 0 10px;
    }
    .article-item {
        width: 100%;
    }
    .article-img {
        width: 120px;
        height: 90px;
    }
    .article-title {
        font-size: 15px;
    }
}