* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", sans-serif;
    line-height: 1.8;
    color: #333;
    background: #f5f5f5;
    min-height: 100vh;
}

.red-header {
    width: 100%;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-banner {
    width: 100%;
    height: auto;
    display: block;
}

.content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
    background: white;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card {
    display: block;
    text-decoration: none;
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c41e3a 0%, #ff6b6b 50%, #c41e3a 100%);
    background-size: 200% 100%;
    animation: shimmer 3s infinite linear;
    border-radius: 16px 16px 0 0;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(196, 30, 58, 0.15);
    border-color: #c41e3a;
}

.news-card:hover::before {
    height: 5px;
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.card-icon {
    font-size: 36px;
    flex-shrink: 0;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.title-wrapper {
    flex: 1;
}

.card-title {
    font-size: 24px;
    font-weight: bold;
    color: #1a1a1a;
    line-height: 1.5;
    margin: 0 0 10px 0;
    transition: color 0.3s ease;
    letter-spacing: 1px;
}

.card-subtitle {
    font-size: 15px;
    color: #888;
    line-height: 1.5;
    margin: 0;
    font-weight: normal;
    font-style: italic;
}

.news-card:hover .card-title {
    color: #c41e3a;
}

.card-content {
    font-size: 16px;
    line-height: 2;
    color: #555;
    text-align: justify;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-indent: 2em;
}

.card-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 15px;
    border-top: 1px solid #ffe0e0;
}

.read-more {
    color: #333;
    font-weight: bold;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.news-card:hover .read-more {
    gap: 10px;
    color: #c41e3a;
}

/* 添加喜庆的装饰元素 */
.content::before {
    content: '🎊';
    position: fixed;
    top: 120px;
    left: 20px;
    font-size: 40px;
    opacity: 0.3;
    animation: float 6s infinite ease-in-out;
}

.content::after {
    content: '🎉';
    position: fixed;
    top: 150px;
    right: 20px;
    font-size: 40px;
    opacity: 0.3;
    animation: float 6s infinite ease-in-out 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .content {
        padding: 40px 20px;
    }
    
    .news-card {
        padding: 25px;
    }
    
    .card-title {
        font-size: 18px;
    }
    
    .card-content {
        font-size: 15px;
        -webkit-line-clamp: 3;
    }
    
    .card-icon {
        font-size: 28px;
    }
}
/* 页脚样式 */
footer {
    background-color: #0b4397;
    color: #ffffff;
    text-align: center;
    line-height: 36px;
    padding: 15px 0;
}

footer a {
    color: #ffffff;
    text-decoration: none;
}

footer a:hover {
    color: #ffffff;
}
