html, body { background-color: #F9FAFC; }
:root {
    --primary: #165DFF; --primary-light: #E8F3FF; --dark: #1D2129; --gray: #4E5969;
    --light-gray: #C9CDD4; --bg-color: #F9FAFC; --white: #FFFFFF; --border: #E5E6EB;
    --tag-bg: #E8F3FF; --tag-color: #165DFF; --date-color: #969BA5;
}
body { background-color: var(--bg-color); color: var(--dark); line-height: 1.6; }
.container { width: 1200px; max-width: 100%; margin: 70px auto 0; padding: 20px; }
.main-layout { display: flex; gap: 24px; align-items: flex-start; }
.left-content {
    flex: 1; min-width: 0; background: #fff; padding: 24px; border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05); border: 1px solid var(--border);
}
.right-sidebar {
    width: 320px; display: flex; flex-direction: column; gap: 20px;
    background: #fff; padding: 20px; border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05); border: 1px solid var(--border); flex-shrink: 0;
}
.breadcrumb { font-size: 14px; color: var(--gray); margin-bottom: 24px; }
.breadcrumb a { color: var(--gray); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 8px; color: var(--light-gray); }
.card { padding: 0; box-shadow: none; border: none; }
.search-box { position: relative; }
.search-input { width: 100%; height: 44px; padding: 0 44px 0 16px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; outline: none; }
.search-input:focus { border-color: var(--primary); }
.search-btn { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #86909C; cursor: pointer; font-size: 16px; line-height: 1; }
.ad-item { border: 1px solid var(--border); padding: 15px; border-radius: 6px; background: #fff; }
.ad-item img { width: 100%; height: auto; display: block; border-radius: 4px; }
.tab-container { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; }
.tab-header { display: flex; background: var(--white); position: relative; border-bottom: 2px solid var(--border); }
.tab-item { flex: 1; padding: 14px; text-align: center; border: none; background: none; font-size: 15px; font-weight: 500; cursor: pointer; color: var(--gray); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.3s; }
.tab-item:hover, .tab-item.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { padding: 16px; }
.tab-list { display: none; list-style: none; padding: 0; margin: 0; }
.tab-list.active { display: block !important; }
.tab-list li { padding: 10px 0; border-bottom: 1px dashed var(--border); }
.tab-list li:last-child { border-bottom: none; }
.tab-list a { color: var(--dark); text-decoration: none; font-size: 14px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tab-list a:hover { color: var(--primary); }
.news-list { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.news-item { background: #F7F8FA; border-radius: 8px; padding: 20px; border: 1px solid var(--border); display: flex; gap: 16px; transition: transform .3s; width: 100%; }
.news-item.no-img .news-img { display: none; }
.news-item:hover { transform: translateY(-2px); }
.news-img { width: 220px; height: 140px; border-radius: 6px; object-fit: cover; background: var(--primary-light); flex-shrink: 0; }
.news-info { flex: 1; overflow: hidden; min-width: 0; display: flex; flex-direction: column; }
.news-title-wrap { margin-bottom: 0; }
.news-title { font-size: 18px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 8px; }
.news-title a { color: var(--dark); text-decoration: none; }
.news-title a:hover { color: var(--primary); }
.news-desc { font-size: 14px; color: var(--gray); line-height: 1.7; margin: 0 0 12px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; }
.news-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.news-tag { display: inline-block; padding: 4px 10px; background: var(--tag-bg); color: var(--tag-color); font-size: 12px; border-radius: 4px; text-decoration: none; }
.news-tag:hover { background: var(--primary); color: #fff; }
.news-date { font-size: 14px; color: var(--date-color); white-space: nowrap; }
.page-wrap { margin-top: 30px; width: 100%; }
.page-wrap .pagination { display: flex; justify-content: center; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.page-wrap .pagination li { margin: 0; }
.page-wrap .pagination li a, .page-wrap .pagination li.active a {
    display: block; min-width: 36px; height: 36px; line-height: 36px; text-align: center;
    border: 1px solid var(--border); border-radius: 4px; background: var(--white);
    color: var(--gray); font-size: 14px; text-decoration: none; padding: 0 12px;
}
.page-wrap .pagination li a:hover { border-color: var(--primary); color: var(--primary); }
.page-wrap .pagination li.active a { background: var(--primary); color: #fff; border-color: var(--primary); }
@media (max-width: 768px) {
    .container { width: 100%; max-width: 100%; padding: 8px; }
    .main-layout { display: block; gap: 0; }
    .left-content { width: 100%; padding: 16px; }
    .right-sidebar { display: none !important; }
    .news-item { width: 100% !important; max-width: 100% !important; padding: 10px; gap: 10px; overflow: hidden; margin: 0; align-items: stretch; }
    .news-img { width: 100px; height: 98px; flex-shrink: 0; }
    .news-title { font-size: 16px; margin-bottom: 0; }
    .news-desc { font-size: 13px; margin: 4px 0 4px; -webkit-line-clamp: 2; white-space: normal; }
    .news-tag { display: none; }
    .news-meta { gap: 0; }
    .news-date { font-size: 12px; }
    .page-wrap { margin-top: 20px; width: 100%; }
    .page-wrap .pagination li a, .page-wrap .pagination li.active a { min-width: 32px; height: 32px; line-height: 32px; font-size: 13px; }
}
