body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: #0066cc;
}
a:hover {
    text-decoration: underline;
}

/* 1. Header */
header {
    background-color: #ffffff;
    border-bottom: 3px solid #cc0000;
    padding: 10px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #cc0000;
    padding-bottom: 10px;
}

.nav {
    flex-grow: 1;
    text-align: right;
}

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
}

.nav li {
    margin-left: 20px;
}

.nav a {
    color: #333;
    font-weight: bold;
    padding: 5px 0;
    display: block;
}

/* === MOBILE ADAPTATION FOR HEADER (MAX-WIDTH: 600PX) === */
@media (max-width: 600px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
        padding-bottom: 5px;
    }

    .nav {
        width: 100%;
        margin-top: 10px;
        text-align: center;
    }

    .nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        width: 100%;
    }

    .nav li {
        margin: 5px 5px;
        flex-basis: auto;
    }
}
/* ======================================================= */

/* 2. Main Layout (Grid Layout) */
.main-grid {
    display: grid;
    gap: 30px;
    margin-top: 30px;
}

/* === MOBILE ADAPTATION FOR MAIN GRID (MAX-WIDTH: 900PX) === */
@media (max-width: 900px) {
    .main-grid {
        grid-template-columns: 1fr; /* Tablet/Mobile: Stack Main Content and Sidebar */
    }
    .main-content {
        border-right: none;
        padding-right: 0;
    }
    .sidebar {
        padding-left: 0;
        margin-top: 20px;
    }
}
/* ======================================================= */




/* 4. Hero Feature Story */
.hero-feature {
    margin-bottom: 30px;
    background-color: #fff;
    padding: 15px;
    border: 1px solid #ddd;
}

.hero-feature img {
    width: 100%;
    /* === 新增/修改的图片控制样式 === */
    max-height: 400px; /* 控制图片的最大高度 */
    object-fit: cover; /* 确保图片覆盖区域，可能会裁剪 */
    /* aspect-ratio: 16 / 9; */ /* 更现代的宽高比控制，可选 */
    /* =============================== */
    height: auto;
    display: block;
    margin-bottom: 10px;
}

.hero-feature h2 {
    margin-top: 0;
    font-size: 28px;
    line-height: 1.3;
}

/* 5. News Cards/List */
.news-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Desktop: Two column news cards */
    gap: 20px;
    margin-top: 20px;
}

/* === MOBILE ADAPTATION FOR NEWS CARDS (MAX-WIDTH: 650PX) === */
@media (max-width: 650px) {
    .news-list-grid {
        grid-template-columns: 1fr; /* Mobile: Single column news cards */
    }
}
/* ======================================================= */

.news-card {
    background-color: #fff;
    padding: 15px;
    border: 1px solid #ddd;
}

.news-card h3 {
    margin-top: 0;
    font-size: 18px;
    margin-bottom: 5px;
}

.news-card img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.date {
    font-size: 0.85em;
    color: #999;
}

/* 6. Sidebar */
.sidebar {
    padding-left: 15px;
}

.sidebar-section {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.sidebar-section h3 {
    border-bottom: 2px solid #cc0000;
    padding-bottom: 5px;
    margin-top: 0;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    padding: 8px 0;
    border-bottom: 1px dotted #eee;
}

.sidebar-list li:last-child {
    border-bottom: none;
}

/* 7. Footer */
footer {
    margin-top: 40px;
    padding: 20px 0;
    background-color: #333;
    color: #fff;
    text-align: center;
    font-size: 0.9em;
}

footer a {
    color: #ccc;
}

.about-section {
    background: #667eea;
    color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--box-shadow);
}

.about-title {
    font-size: 28px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.about-icon {
    margin-right: 10px;
    width: 30px;
    height: 30px;
}

.about-content {
    font-size: 16px;
    line-height: 1.7;
}

.about-highlight {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 20px;
    margin: 5px 0;
}

/* 搜索框样式 */
.search-form {
    margin: auto;
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    padding: 4px 8px;
    border-radius: 3px;
    margin-left: 20px;
}

.search-form input[type="text"] {
    border: none;
    padding: 5px;
    outline: none;
    font-size: 0.9em;
    width: 257px;
}

.search-form button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 5px;
    color: #555;
    font-weight: bold;
}


