:root {
    --bg-color: #F4F6F9;
    --card-bg: #FFFFFF;
    --text-main: #333333;
    --text-gray: #666666;
    
    --brand-dark: #205FEC;
    --brand-mid: #3075EE;
    --brand-light: #88BDF3;
    
    --border-color: #E1E4E8;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; }
body { background-color: var(--bg-color); color: var(--text-main); font-size: 14px; line-height: 1.6; }
a { text-decoration: none; color: var(--text-main); transition: 0.3s; }
ul, li { list-style: none; }
img { max-width: 100%; display: block; }

.container { width: 1200px; margin: 0 auto; padding: 0 15px; }
.flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

.btn { padding: 8px 20px; border-radius: 4px; font-weight: bold; cursor: pointer; border: none; transition: 0.3s; }
.btn-orange { background-color: var(--brand-mid); color: #fff; }
.btn-orange:hover { background-color: var(--brand-dark); }
.btn-outline { border: 1px solid var(--border-color); background: transparent; color: var(--text-gray); }
.btn-outline:hover { border-color: var(--brand-dark); color: var(--brand-dark); }

header { background-color: #fff; border-bottom: 1px solid var(--border-color); padding: 15px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }

.logo { display: flex; align-items: center; max-width: 200px; }
.logo a { display: block; border: none; }
.logo img { height: 38px; width: auto; object-fit: contain; display: block; }

.nav-links a { margin: 0 15px; font-size: 15px; font-weight: 500; color: var(--text-main); }
.nav-links a:hover { color: var(--brand-mid); }
.header-actions input { background: #f0f2f5; border: 1px solid #ddd; color: #333; padding: 6px 12px; border-radius: 4px; margin-right: 10px; outline: none; }
.header-actions input:focus { border-color: var(--brand-mid); }

.sub-nav { padding: 20px 0; background-color: var(--bg-color); }
.filter-tabs { background: #fff; display: inline-flex; padding: 5px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.03); }
.filter-tabs a { padding: 8px 24px; color: var(--text-gray); border-radius: 6px; font-weight: 500; }
.filter-tabs a.active, .filter-tabs a:hover { background: var(--brand-mid); color: #fff; }

.main-layout { display: grid; grid-template-columns: 800px 380px; gap: 20px; margin-bottom: 40px; }

.content-filter-box { background: var(--card-bg); padding: 20px; border-radius: 12px; margin-bottom: 20px; border: 1px solid var(--border-color); }
.filter-row { display: flex; align-items: center; margin-bottom: 15px; }
.filter-label { color: var(--text-main); width: 80px; font-weight: bold; }
.filter-tags a { display: inline-block; padding: 4px 12px; background: #f0f2f5; border-radius: 20px; margin-right: 8px; font-size: 12px; color: var(--text-gray); transition: 0.3s; }
.filter-tags a:hover, .filter-tags a.active { background: var(--brand-light); color: #fff; }

.article-card { background: var(--card-bg); border-radius: 12px; padding: 20px; display: flex; gap: 20px; margin-bottom: 20px; transition: transform 0.2s, box-shadow 0.2s; border: 1px solid var(--border-color); }
.article-card:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(32, 95, 236, 0.1); border-color: var(--brand-light); }
.card-thumb { width: 240px; height: 135px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: #f0f0f0; display: flex; align-items: center; justify-content: center; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-content { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.card-title { font-size: 18px; font-weight: bold; margin-bottom: 8px; color: var(--text-main); }
.card-title:hover { color: var(--brand-mid); }
.card-desc { color: var(--text-gray); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 10px; }
.card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.author-info { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-gray); }
.author-avatar { width: 24px; height: 24px; border-radius: 50%; background: #eee; }
.view-btn { background: #f0f7ff; color: var(--brand-dark); padding: 6px 16px; border-radius: 20px; font-size: 12px; font-weight: bold; }
.view-btn:hover { background: var(--brand-dark); color: #fff; }

.pagination { 
    display: flex; 
    justify-content: center; 
    align-items: center;
    gap: 8px; 
    margin-top: 40px; 
    padding-bottom: 20px;
    flex-wrap: wrap;
}

.pagination li { 
    list-style: none; 
    display: inline-block;
}

.pagination li a, 
.pagination li.thisclass { 
    display: inline-block; 
    padding: 8px 14px;
    min-width: 36px;
    text-align: center; 
    background: #fff; 
    border: 1px solid #ddd; 
    border-radius: 4px; 
    color: #555; 
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    transition: all 0.3s;
    cursor: pointer;
}

.pagination li a:hover { 
    background: var(--brand-mid); 
    color: #fff; 
    border-color: var(--brand-mid); 
    text-decoration: none;
}

.pagination li.thisclass { 
    background: var(--brand-mid); 
    color: #fff; 
    border-color: var(--brand-mid); 
    font-weight: bold;
}

.pagination li span.pageinfo {
    border: none;
    background: transparent;
    color: #999;
}

.sidebar-card { background: var(--card-bg); border-radius: 12px; padding: 20px; margin-bottom: 20px; border: 1px solid var(--border-color); box-shadow: 0 2px 5px rgba(0,0,0,0.02); }

.promo-card {
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-mid) 100%);
    color: #fff !important;
    padding: 25px;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(32, 95, 236, 0.3);
}

.promo-card h3 { font-size: 20px; font-weight: 800; line-height: 1.4; margin-bottom: 10px; color: #fff; z-index: 2; position: relative; }
.promo-card h3 a { color: #fff !important; }

.promo-card p { font-size: 13px; color: rgba(255,255,255,0.9); margin-bottom: 15px; line-height: 1.5; z-index: 2; position: relative; }

.promo-divider { height: 1px; background: rgba(255,255,255,0.3); margin: 15px 0; width: 100%; }

.promo-meta { display: flex; justify-content: space-between; font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.9); margin-bottom: 20px; }

.promo-btn { background: #fff; color: var(--brand-dark) !important; display: block; width: 100%; text-align: center; padding: 12px 0; border-radius: 6px; font-weight: bold; font-size: 14px; transition: 0.3s; z-index: 2; position: relative; }
.promo-btn:hover { background: #f0f0f0; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

.trending-item { display: flex; gap: 10px; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #eee; }
.trending-item:last-child { border-bottom: none; margin-bottom: 0; }
.trending-thumb { width: 80px; height: 50px; border-radius: 4px; overflow: hidden; background: #eee; flex-shrink: 0; }
.trending-info h4 { font-size: 13px; line-height: 1.4; margin-bottom: 5px; color: var(--text-main); font-weight: 600; }
.trending-info h4:hover { color: var(--brand-mid); }
.tag-badge { background: var(--brand-light); color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: bold; }

.timeline-wrap { border-left: 2px solid var(--border-color); }
.live-item::before { background: var(--brand-mid); border: 2px solid #fff; }
.live-time { color: var(--brand-mid); }
.live-content h3 a { color: var(--text-main); }
.live-content p { color: var(--text-gray); }

.article-content-box { background: #fff; border: 1px solid var(--border-color); }
.article-header h1 { color: #000; }
.article-body { color: #333; }

footer {
    background-color: #fff;
    border-top: 1px solid var(--border-color);
    padding-top: 60px;
    margin-top: 60px;
    color: var(--text-main);
    font-size: 14px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
    padding-right: 20px;
}

.footer-col.brand-col {
    flex: 1.5;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 800;
    color: #000;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: var(--text-gray);
    transition: 0.3s;
    font-size: 14px;
}
.footer-links a:hover {
    color: var(--brand-mid);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f7fa;
    color: var(--text-gray);
    transition: 0.3s;
}
.social-icons a:hover {
    background: var(--brand-mid);
    color: #fff;
    transform: translateY(-3px);
}

.social-icons svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-sub-box p {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 15px;
    line-height: 1.5;
}
.sub-input-group {
    display: flex;
    gap: 10px;
}
.sub-input-group input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
}
.sub-input-group button {
    background: var(--brand-mid);
    color: #fff;
    border: none;
    padding: 0 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}
.sub-input-group button:hover {
    background: var(--brand-dark);
}

.footer-bottom {
    border-top: 1px solid #eee;
    padding: 20px 0;
    text-align: center;
    color: #999;
    font-size: 12px;
}

.white-panel {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    margin-bottom: 30px;
}

.article-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-info {
    color: #666;
    font-size: 13px;
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333333 !important;
}
.article-body p {
    margin-bottom: 20px;
}
.article-body img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
    display: block;
}

.timeline-wrap {
    position: relative;
    padding-left: 20px;
    border-left: 2px solid #eee;
}
.live-item {
    margin-bottom: 30px;
    padding-left: 20px;
    position: relative;
}
.live-item::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 6px;
    width: 12px;
    height: 12px;
    background: var(--brand-mid);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #eee;
}
.live-time {
    color: var(--brand-mid);
    font-weight: bold;
    margin-bottom: 5px;
}
.live-content h3 a {
    color: #222;
    font-weight: bold;
}
.live-content h3 a:hover {
    color: var(--brand-mid);
}
.live-content p {
    color: #555;
}

@media screen and (max-width: 768px) {

    .container {
        width: 100%;
        padding: 0 15px; 
    }

    header .container {
        flex-direction: column; 
        gap: 15px;
    }

    .logo {
        max-width: 100%;
        justify-content: center; 
        margin-bottom: 10px;
    }

    .nav-links {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
        text-align: center;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-links a {
        margin: 0 10px;
        display: inline-block;
    }

    .header-actions {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .header-actions input {
        width: 100%; 
        margin-right: 0;
        margin-bottom: 10px;
    }

    .main-layout {
        display: flex;
        flex-direction: column; 
        grid-template-columns: 1fr; 
        gap: 30px;
    }

    .article-card {
        flex-direction: column;
        padding: 15px;
        height: auto;
    }

    .card-thumb {
        width: 100%;
        height: 180px; 
        margin-bottom: 15px;
    }

    .card-content {
        width: 100%;
    }

    .card-title {
        font-size: 16px;
    }

    .filter-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-label {
        margin-bottom: 8px;
    }
    
    .filter-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .filter-tags a {
        margin-right: 0;
        margin-bottom: 5px;
    }

    .white-panel {
        padding: 20px; 
    }

    .article-header h1 {
        font-size: 22px; 
        line-height: 1.4;
    }

    .article-body {
        font-size: 16px;
        word-wrap: break-word; 
    }
    
    .article-body img {
        height: auto; 
        max-width: 100% !important; 
    }

    .footer-container {
        flex-direction: column;
    }

    .footer-col {
        width: 100%;
        margin-bottom: 30px;
        padding-right: 0;
    }
    
    .sub-input-group {
        flex-direction: column;
    }
    
    .sub-input-group button {
        margin-top: 10px;
        width: 100%;
        padding: 10px 0;
    }
}