body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F8F9FB;
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #007dbc;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    background-color: #232f3e;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 15px 0 15px;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
}

.logo img {
    height: 30px;
    padding-bottom: 10px;
}

.user-info img {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background-color: #eee;
}

.navbar {
    background-color: #fff;
    padding: 10px 0;
    border-top: 1px solid #eee;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar ul {
    display: flex;
    gap: 30px;
}

.navbar li a {
    color: #666;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 5px 0;
    display: block;
}

.navbar li a.active,
.navbar li a:hover {
    color: #007dbc;
}

.navbar li a.active::after,
.navbar li a:hover::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 3px;
    background-color: #007dbc;
    border-radius: 2px;
}

.nav-icons {
    display: flex;
    gap: 20px;
}

.nav-icons a {
    color: #666;
    font-size: 18px;
}

.nav-icons a:hover {
    color: #007dbc;
}

.main-content {
    display: flex;
    gap: 30px;
    padding: 30px 0;
}

.content-left {
    flex: 2.5;
    min-width: 0;
}

.content-right {
    flex: 1;
    min-width: 280px;
}

.featured-news {
    background-color: #333;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    padding: 50px;
    color: #fff;
    min-height: 250px;
    display: flex;
    align-items: flex-end;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.featured-text {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.featured-text .category {
    color: #fff;
    border-radius: 5px;
    font-size: 0.85em;
    font-weight: bold;
    margin-bottom: 10px;
    display: inline-block;
}

.featured-text h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
    line-height: 1.2;
    color: #fff;
}

.featured-text p {
    font-size: 1.1em;
    color: #ccc;
    margin-bottom: 20px;
}

.read-more-btn {
    display: inline-block;
    background-color: #007dbc;
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.read-more-btn:hover {
    background-color: #007dbc;
    color: #fff;
}

.news-tabs {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 25px;
}

.tab-button {
    background: none;
    border: none;
    padding: 10px 0;
    margin-right: 30px;
    font-size: 1.1em;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}

.tab-button.active {
    color: #333;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 3px;
    background-color: #007dbc;
    border-radius: 2px;
}

.tab-button:hover:not(.active) {
    color: #555;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    padding: 20px;
    border: 1px solid #eee;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.news-card .card-thumb.article-thumb {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #f5f5f5;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.news-card .card-thumb.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.news-card .news-date {
    display: block;
    font-size: 0.85em;
    color: #999;
    margin-bottom: 5px;
}

.news-card .card-info h4 {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 5px;
}

.news-card .card-info h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    line-height: 1.3;
}

.news-card .card-info p {
    font-size: 0.95em;
    color: #666;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 15px;
}

.news-card .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
    color: #999;
}

.news-card .tag-market img {
    height: 20px;
    width: auto;
}

.sidebar-block {
    background-color: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sidebar-block:last-child {
    margin-bottom: 0;
}

.sidebar-block h4 {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.sidebar-block ul li {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    font-size: 0.9em;
    color: #555;
}

.sidebar-block ul li:last-child {
    border-bottom: none;
}

.sidebar-block .dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #007dbc;
    border-radius: 50%;
    margin-right: 10px;
}

.live-prices ul li span:last-child {
    font-weight: bold;
}

.live-prices .price-down {
    color: #dc3545;
}

.live-prices .price-up {
    color: #28a745;
}

.advertisement {
    text-align: center;
}

.advertisement .ad-placeholder {
    margin-bottom: 20px;
    border: 1px dashed #ddd;
    border-radius: 8px;
    padding: 10px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.advertisement .ad-placeholder img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ad-footer-logo img {
    height: 25px;
    margin-bottom: 10px;
}

.ad-footer-logo p {
    font-size: 0.8em;
    color: #888;
    margin: 0 0 15px 0;
}

.ad-social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.ad-social-icons a {
    color: #888;
    font-size: 1.2em;
}

.ad-social-icons a:hover {
    color: #007dbc;
}

.footer {
    background-color: #222;
    color: #ccc;
    padding: 40px 0;
    text-align: center;
}

.footer .footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 30px;
    margin-bottom: 10px;
}

.footer-logo p {
    font-size: 0.85em;
    color: #999;
    margin: 0;
}

.footer-social {
    margin-top: 20px;
    display: flex;
    gap: 20px;
}

.footer-social a {
    color: #999;
    font-size: 1.3em;
}

.footer-social a:hover {
    color: #007dbc;
}

.copyright {
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.8em;
    color: #777;
}

.list-page .page-title {
    background-color: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.list-page .page-title h2 {
    font-size: 2em;
    color: #333;
    margin: 0;
    text-align: left;
}

.news-list-full {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.news-list-full .news-card {
    border-bottom: 1px solid #eee;
    padding-bottom: 25px;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    border-left: none;
    padding-left: 0;
    padding-right: 0;
    box-shadow: none;
    transform: none;
}

.news-list-full .news-card:hover {
    transform: none;
    box-shadow: none;
}

.news-list-full .news-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-list-full .news-card .card-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    margin-right: 20px;
    margin-bottom: 0;
}

.news-list-full .news-card .card-info h3 {
    font-size: 1.3em;
}

.news-list-full .news-card .card-info p {
    -webkit-line-clamp: 3;
}

.lives-list-full {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.lives-list-full .live-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px dashed #eee;
}

.lives-list-full .live-item:last-child {
    border-bottom: none;
}

.lives-list-full .live-time {
    flex-shrink: 0;
    font-size: 0.9em;
    color: #888;
    margin-right: 20px;
    min-width: 120px;
    text-align: right;
    font-weight: 500;
}

.lives-list-full .live-item h3 {
    font-size: 1.1em;
    margin: 0;
    line-height: 1.5;
    color: #333;
}

.lives-list-full .live-item h3 a:hover {
    color: #007dbc;
    text-decoration: underline;
}

.pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination ul {
    display: inline-flex;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pagination li {
    border-right: 1px solid #eee;
}

.pagination li:last-child {
    border-right: none;
}

.pagination li a,
.pagination li span {
    display: block;
    padding: 10px 15px;
    color: #666;
    font-size: 1em;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.pagination li a:hover {
    background-color: #f5f5f5;
    color: #007dbc;
}

.pagination li span.thisclass,
.pagination li.active a {
    background-color: #007dbc;
    color: #fff;
    font-weight: bold;
}

.article-page .content-left {
    flex: 2.5;
}

.article-page .content-right {
    flex: 1;
}

.article-detail {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.article-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.article-title {
    font-size: 2.2em;
    line-height: 1.3;
    color: #333;
    margin-bottom: 15px;
}

.article-meta {
    font-size: 0.9em;
    color: #888;
    display: flex;
    gap: 20px;
}

.article-meta i {
    margin-right: 5px;
    color: #007dbc;
}

.article-body {
    font-size: 1.05em;
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
}

.article-body p {
    margin-bottom: 1em;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    display: block;
}

.article-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.95em;
    color: #666;
}

.article-tags i {
    color: #007dbc;
    margin-right: 8px;
}

.article-tags a {
    display: inline-block;
    background-color: #f0f0f0;
    color: #555;
    padding: 5px 12px;
    border-radius: 5px;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.article-tags a:hover {
    background-color: #007dbc;
    color: #fff;
}

.prev-next {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.95em;
}

.prev-next a {
    color: #007bff;
}

.prev-next a:hover {
    text-decoration: underline;
}

.related-articles {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.related-articles h3 {
    font-size: 1.6em;
    margin-bottom: 25px;
    color: #333;
}

.news-grid-related {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.news-grid-related .news-card {
    padding: 15px;
}

.news-grid-related .news-card .card-thumb {
    width: 40px;
    height: 40px;
}

.news-grid-related .news-card .card-thumb img {
    height: 25px;
    width: 25px;
}

.news-grid-related .news-card .card-info h3 {
    font-size: 1.1em;
    -webkit-line-clamp: 2;
}
.news-grid-related .news-card .card-info p {
    -webkit-line-clamp: 2;
    font-size: 0.9em;
}

@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }

    .content-left, .content-right {
        flex: auto;
        width: 100%;
        min-width: unset;
    }

    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .featured-news {
        padding: 40px;
        min-height: 220px;
    }

    .featured-text h2 {
        font-size: 2em;
    }

    .header .container {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 5px;
    }
    .header-right {
        align-self: flex-end;
        position: absolute;
        top: 20px;
        right: 15px;
    }
    .navbar .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .navbar ul {
        width: 100%;
        justify-content: space-around;
        gap: 0;
        margin-bottom: 10px;
    }
    .nav-icons {
        align-self: flex-end;
        width: 100%;
        justify-content: flex-end;
        padding-top: 10px;
        border-top: 1px solid #eee;
    }
}

@media (max-width: 768px) {
    .navbar ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .navbar li {
        margin: 0 10px 10px 10px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .featured-news {
        padding: 30px;
    }

    .featured-text h2 {
        font-size: 1.8em;
    }

    .news-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .news-card .card-thumb.article-thumb {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .lives-list-full .live-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .lives-list-full .live-time {
        margin-right: 0;
        margin-bottom: 5px;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    .featured-news {
        padding: 20px;
    }
    .featured-text h2 {
        font-size: 1.5em;
    }
    .read-more-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .news-tabs, .sidebar-block, .article-detail {
        padding: 20px;
    }
    .article-title {
        font-size: 1.8em;
    }
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
}
@media (min-width: 769px) {
    .news-grid .news-card {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }
    .news-grid .news-card .card-thumb.article-thumb {
        margin-right: 15px;
        margin-bottom: 0;
    }
}

.sidebar-lives-list li {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    font-size: 0.9em;
    color: #555;
}

.sidebar-lives-list li:last-child {
    border-bottom: none;
}

.sidebar-lives-list .live-time {
    flex-shrink: 0;
    font-weight: bold;
    color: #007dbc;
    margin-right: 10px;
    min-width: 45px;
    text-align: right;
}

.sidebar-lives-list li a {
    flex-grow: 1;
    color: #555;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sidebar-lives-list li a:hover {
    color: #007dbc;
    text-decoration: underline;
}

.sidebar-hot-articles li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    font-size: 0.9em;
    color: #555;
}

.sidebar-hot-articles li:last-child {
    border-bottom: none;
}

.sidebar-hot-articles .article-title-rank {
    flex-grow: 1;
    margin-right: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-hot-articles .article-title-rank a {
    color: #555;
}

.sidebar-hot-articles .article-title-rank a:hover {
    color: #007dbc;
    text-decoration: underline;
}

.sidebar-hot-articles .article-clicks {
    flex-shrink: 0;
    font-weight: bold;
    color: #888;
    font-size: 0.85em;
}

.trending-news ul li .dot {
    display: none;
}

.featured-news h2 a {
    color: #fff !important;
}
.featured-news h2 a:hover {
    color: #fff !important;
}