/*
Global News Today - CSS Stylesheet
Author: Web Developer
Version: 1.0
*/

/* CSS Variables for consistent theming */
:root {
    --primary-color: #1a73e8;
    --secondary-color: #ea4335;
    --accent-color: #34a853;
    --dark-text: #202124;
    --light-text: #5f6368;
    --border-color: #dadce0;
    --background-light: #f8f9fa;
    --background-dark: #202124;
    --white: #ffffff;
    --shadow: 0 2px 6px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 12px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 20px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo h1 a:hover {
    color: var(--secondary-color);
}

.header-search {
    flex: 1;
    max-width: 400px;
    display: flex;
    gap: 8px;
}

.header-search input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.header-search input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.header-search button {
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 24px;
    cursor: pointer;
    transition: var(--transition);
}

.header-search button:hover {
    background: #1557b0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-subscribe {
    padding: 10px 20px;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 24px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-subscribe:hover {
    background: #d33426;
    transform: translateY(-2px);
}

.mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark-text);
}

.nav-menu {
    
}

.nav-menu ul {
    display: flex;
    gap: 30px;
    padding: 12px 0;
}

.nav-menu a {
    font-weight: 500;
    color: var(--light-text);
    padding: 8px 0;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

/* Breaking News Banner */
.breaking-news {
    background: var(--dark-text);
    color: var(--white);
    padding: 12px 0;
    margin: 20px 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    overflow: hidden;
}

.breaking-news .label {
    background: var(--secondary-color);
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    white-space: nowrap;
    margin-left: 15px;
}

.ticker {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.ticker span {
    margin-right: 50px;
    animation: scroll 20s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.section-header h2 {
    font-size: 24px;
    color: var(--dark-text);
    font-weight: 700;
}

.view-all a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

.view-all a:hover {
    text-decoration: underline;
}

/* Featured Section */
.featured-section {
    margin: 30px 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 25px;
}

.featured-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.featured-card .card-image {
    height: 300px;
    background-size: cover;
    background-position: center;
    background-color: var(--background-light);
}

.featured-card .card-content {
    padding: 20px;
}

.category-tag {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.featured-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.featured-card h3 a:hover {
    color: var(--primary-color);
}

.featured-card p {
    color: var(--light-text);
    margin-bottom: 15px;
    font-size: 15px;
}

.card-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--light-text);
}

.card-meta i {
    margin-right: 4px;
}

/* News Grid (Homepage & Category) */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 20px 0;
}

.news-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.news-card .card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: var(--background-light);
}

.news-card .card-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card h4 {
    font-size: 16px;
    margin: 8px 0;
    line-height: 1.3;
    flex: 1;
}

.news-card h4 a:hover {
    color: var(--primary-color);
}

.news-card p {
    color: var(--light-text);
    font-size: 14px;
    margin-bottom: 10px;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color), #4285f4);
    color: var(--white);
    padding: 40px;
    border-radius: 12px;
    margin: 40px 0;
    text-align: center;
}

.newsletter-section h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.newsletter-section p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.newsletter-section form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-section input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
}

.newsletter-section button {
    padding: 12px 30px;
    background: var(--white);
    color: var(--primary-color);
    border: none;
    border-radius: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-section button:hover {
    background: var(--dark-text);
    color: var(--white);
}

/* Category Page Styles */
.category-header {
    background: var(--background-light);
    padding: 10px 0;
    margin-bottom: 10px;
    text-align: left;
}

.category-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--dark-text);
}

.category-header p {
    color: var(--light-text);
    font-size: 16px;
    margin-bottom: 15px;
}

.category-breadcrumb {
    font-size: 14px;
}

.category-breadcrumb a {
    color: var(--primary-color);
}

.category-breadcrumb span {
    color: var(--light-text);
}

.category-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.news-list-item {
    display: flex;
    gap: 20px;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-list-item:hover {
    box-shadow: var(--shadow-hover);
}

.item-image {
    flex: 0 0 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--background-light);
}

.item-content {
    padding: 20px;
    flex: 1;
}

.item-content h3 {
    font-size: 20px;
    margin: 8px 0;
    line-height: 1.3;
}

.item-content p {
    color: var(--light-text);
    margin: 10px 0;
    font-size: 14px;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.sidebar-widget h4 {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.trending-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--background-light);
}

.trending-list li:last-child {
    border-bottom: none;
}

.trending-list a {
    color: var(--light-text);
    font-size: 14px;
}

.trending-list a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.popular-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.popular-categories a {
    background: var(--background-light);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--light-text);
    transition: var(--transition);
}

.popular-categories a:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
}

.pagination button {
    padding: 10px 16px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.pagination button:hover:not(.disabled) {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination button.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Article Detail Styles */
.article-content {
    padding: 30px 0;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.article-main {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.article-header {
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
}

.article-breadcrumb {
    font-size: 14px;
    margin-bottom: 15px;
}

.article-breadcrumb a {
    color: var(--primary-color);
}

.article-title {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--dark-text);
    font-weight: 700;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--light-text);
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-image {
    height: 400px;
    background-size: cover;
    background-position: center;
    background-color: var(--background-light);
}

.article-body {
    padding: 30px;
    font-size: 16px;
    line-height: 1.8;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body .lead {
    font-size: 18px;
    font-weight: 500;
    color: var(--dark-text);
}

.article-body h2 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: var(--dark-text);
}

.article-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin: 25px 0;
    background: var(--background-light);
    font-style: italic;
    color: var(--dark-text);
}

.article-tags {
    padding: 20px 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.article-tags span {
    font-weight: 600;
    color: var(--light-text);
}

.article-tags a {
    background: var(--background-light);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--primary-color);
}

.article-tags a:hover {
    background: var(--primary-color);
    color: var(--white);
}

.article-actions {
    padding: 20px 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.article-actions button {
    padding: 10px 16px;
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-actions button:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Comments Section */
.comments-section {
    padding: 30px;
    border-top: 1px solid var(--border-color);
}

.comments-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.comment-form {
    margin-bottom: 30px;
}

.comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 10px;
}

.comment-form button {
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.comment-form button:hover {
    background: #1557b0;
}

.comment {
    padding: 15px;
    background: var(--background-light);
    border-radius: 8px;
    margin-bottom: 15px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.comment-header strong {
    color: var(--dark-text);
}

.comment-header span {
    color: var(--light-text);
}

/* Related Articles */
.related-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.related-item:last-child {
    border-bottom: none;
}

.related-image {
    flex: 0 0 80px;
    height: 60px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    background-color: var(--background-light);
}

.related-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    flex: 1;
}

.related-title:hover {
    color: var(--primary-color);
}

.author-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: var(--background-light);
}

.author-info strong {
    display: block;
    color: var(--dark-text);
}

.author-info p {
    font-size: 13px;
    color: var(--light-text);
}

/* Recommended Section */
.recommended-section {
    margin: 40px 0;
}

.recommended-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

/* Legal Pages */
.legal-content {
    padding: 40px 0;
    background: var(--background-light);
    min-height: calc(100vh - 400px);
}

.legal-header {
    text-align: center;
    margin-bottom: 40px;
}

.legal-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--dark-text);
}

.legal-header .last-updated {
    color: var(--light-text);
    font-size: 14px;
}

.legal-body {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
}

.legal-body section {
    margin-bottom: 40px;
}

.legal-body h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--dark-text);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
}

.legal-body h3 {
    font-size: 18px;
    margin: 20px 0 10px;
    color: var(--dark-text);
}

.legal-body p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.legal-body ul {
    margin: 15px 0;
    padding-left: 20px;
}

.legal-body ul li {
    list-style: disc;
    margin-bottom: 8px;
    line-height: 1.6;
}

.legal-body strong {
    color: var(--dark-text);
}

.contact-info {
    background: var(--background-light);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin-top: 15px;
}

.contact-info p {
    margin-bottom: 8px;
}

/* Footer */
.footer {
    background: var(--dark-text);
    color: var(--white);
    padding: 10px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.footer-section a:hover {
    color: var(--white);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    text-decoration: none;
    transform: translateY(-2px);
}

.footer-bottom {

    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}
@media screen and (min-width: 969px) {
    header .container{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    }
}
/* Responsive Design */
@media (max-width: 968px) {
    .header-top {
        flex-wrap: wrap;
    }

    .header-search {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
    }

    .mobile-menu {
        display: block;
    }

    .nav-menu {
        display: none;
        border-top: none;
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 0;
    }

    .nav-menu a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu a.active::after {
        display: none;
    }

    .featured-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .category-layout,
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-title {
        font-size: 24px;
    }

    .article-image {
        height: 250px;
    }

    .news-list-item {
        flex-direction: column;
    }

    .item-image {
        flex: 0 0 180px;
    }

    .legal-body {
        padding: 25px;
    }

    .legal-header h1 {
        font-size: 28px;
    }

    .article-actions {
        justify-content: center;
    }

    .newsletter-section form {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 15px;
    }

    .breaking-news {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .breaking-news .label {
        margin-left: 0;
    }

    .ticker span {
        animation: none;
        white-space: normal;
        display: block;
    }

    .section-header h2 {
        font-size: 20px;
    }

    .article-title {
        font-size: 20px;
    }

    .article-body {
        padding: 20px;
        font-size: 15px;
    }

    .article-meta {
        flex-direction: column;
        gap: 8px;
    }

    .article-actions {
        flex-direction: column;
    }

    .article-actions button {
        width: 100%;
        justify-content: center;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Accessibility Focus Styles */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .newsletter-section,
    .sidebar,
    .article-actions,
    .comments-section {
        display: none !important;
    }

    .article-content {
        padding: 0;
    }

    .article-main {
        box-shadow: none;
    }

    a {
        text-decoration: none;
        color: var(--dark-text);
    }
}
/* ==================== 新增样式：主页三种容器样式 ==================== */

/* 1. Hero Spotlight Container - 大图突出展示 */
.hero-spotlight {
    margin: 30px 0 40px 0;
}

.hero-spotlight h2 {
    font-size: 26px;
    margin-bottom: 20px;
    color: var(--dark-text);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-spotlight h2 i {
    color: #fbbc04;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.hero-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.hero-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    border-color: var(--primary-color);
}

.hero-card:first-child {
    background: linear-gradient(135deg, var(--primary-color), #4285f4);
    color: var(--white);
    border: none;
}

.hero-card:first-child .hero-content {
    color: var(--white);
}

.hero-card:first-child .category-tag {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
}

.hero-card:first-child h3 a {
    color: var(--white);
}

.hero-card:first-child .card-meta {
    color: rgba(255,255,255,0.9);
}

.hero-image {
    height: 320px;
    background-size: cover;
    background-position: center;
    background-color: var(--background-light);
}

.hero-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hero-card:first-child .hero-content h3 a:hover {
    color: #f0f0f0;
}

.hero-content h3 {
    font-size: 22px;
    margin: 12px 0;
    line-height: 1.3;
    font-weight: 700;
}

.hero-content h3 a:hover {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
    opacity: 0.95;
}

.hero-card .card-meta {
    font-size: 13px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* 2. Featured Grid Container - 中等卡片网格 */
.featured-grid-section {
    margin: 40px 0;
}

.featured-grid-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-text);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.featured-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.featured-card .card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: var(--background-light);
}

.featured-card .card-content {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 8px 0;
    line-height: 1.3;
    flex: 1;
}

.featured-card h4 a:hover {
    color: var(--primary-color);
}

.featured-card p {
    font-size: 13px;
    color: var(--light-text);
    margin-bottom: 12px;
    line-height: 1.5;
}

.featured-card .card-meta {
    font-size: 12px;
    color: var(--light-text);
}

/* 3. Latest News List Container - 紧凑列表 */
.latest-news-list {
    margin: 40px 0;
}

.latest-news-list h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-text);
}

.news-list-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.news-item-compact {
    background: var(--white);
    border-radius: 10px;
    padding: 18px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.news-item-compact:hover {
    border-color: var(--primary-color);
    background: var(--background-light);
    transform: translateX(5px);
}

.news-item-compact .item-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.3;
    min-width: 35px;
    text-align: center;
}

.news-item-compact .item-content {
    flex: 1;
}

.news-item-compact h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 4px 0;
    line-height: 1.3;
}

.news-item-compact h4 a:hover {
    color: var(--primary-color);
}

.news-item-compact .item-meta {
    font-size: 12px;
    color: var(--light-text);
    display: flex;
    gap: 15px;
    margin-top: 6px;
}

/* Category-specific tag colors */
.category-tag.category-technology { background: #1a73e8; }
.category-tag.category-business { background: #34a853; }
.category-tag.category-world { background: #ea4335; }
.category-tag.category-sports { background: #fbbc04; color: #333; }
.category-tag.category-entertainment { background: #9334e6; }

/* Category Quick Access */
.category-highlights h2 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-highlights h2 i {
    color: var(--accent-color);
}

.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.category-card {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.category-card i {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.category-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--dark-text);
    font-weight: 600;
}

.category-card p {
    font-size: 12px;
    color: var(--light-text);
}

/* Responsive adjustments for new layout */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-list-compact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .hero-image {
        height: 250px;
    }

    .hero-content h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .category-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-card .card-meta {
        flex-direction: column;
        gap: 8px;
    }
}

