* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e40011;
    --text-color: #333;
    --bg-gray: #f5f5f5;
    --footer-bg: #2c2c2c;
    --border-color: #e0e0e0;
    --hover-color: #a00a1c;
}

body {
    font: 14px/1.6 "Microsoft YaHei", Arial, sans-serif;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    display: block;
}

/* 头部 */
.header {
    background: white;
    border-bottom: 2px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.logo-image,
.logo-right-image {
    height: 60px;
    width: auto;
}

.main-nav {
    background: var(--primary-color);
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
}

.nav-item {
    position: relative;
}

.nav-item>a {
    display: block;
    padding: 15px 25px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.3s;
}

.nav-item>a:hover,
.nav-item.active>a {
    background: var(--hover-color);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 100;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid var(--border-color);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    transition: all 0.3s;
}

.dropdown-menu a:hover {
    background: var(--bg-gray);
    color: var(--primary-color);
    padding-left: 25px;
}

/* 主内容 */
.main-content {
    padding: 30px 0;
}

.hero-section {
    margin-bottom: 30px;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    max-height: 600px;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--bg-gray);
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active,
.dot:hover {
    background: var(--primary-color);
    transform: scale(1.2);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(195, 13, 35, 0.8);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

/* 要闻 */
.news-sidebar-section {
    margin-bottom: 30px;
}

.news-sidebar {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.sidebar-title {
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
}

.news-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.news-item {
    border-bottom: 1px solid var(--border-color);
}

.news-item:last-child {
    border-bottom: none;
}

.news-item a {
    display: flex;
    padding: 15px 20px;
    gap: 15px;
    align-items: flex-start;
    transition: background 0.3s;
}

.news-item a:hover {
    background: var(--bg-gray);
}

.news-date {
    flex-shrink: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 16px;
}

.news-title {
    flex: 1;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 横幅 */
.banner-scroll-section {
    margin-bottom: 40px;
    overflow: hidden;
}

.banner-scroll-container {
    height: 120px;
    overflow: hidden;
    position: relative;
}

.banner-scroll-track {
    display: flex;
    flex-direction: column;
    transition: transform 0.5s;
}

.banner-scroll-track img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

/* 业务工作 */
.business-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 28px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--hover-color);
}

.business-list-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.business-category {
    background: white;
    border-radius: 4px;
    overflow: hidden;
}

.category-header {
    background: white;
    color: #e40011;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e40011;
}

.category-header h1 {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    color: #e40011;
}

.more-link {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #e40011;
    font-size: 13px;
    transition: opacity 0.3s;
}

.more-link:hover {
    opacity: 0.7;
}

.more-link svg {
    width: 16px;
    height: 16px;
}

.more-link svg path {
    fill: #e40011;
}

.category-list {
    list-style: none;
}

.category-list a {
    display: block;
    padding: 10px 15px 10px 25px;
    font-size: 14px;
    line-height: 1.6;
    transition: all 0.3s;
    position: relative;
}

.category-list a::before {
    content: '•';
    position: absolute;
    left: 12px;
    color: #e40011;
    font-weight: bold;
}

.category-list a:hover {
    background: var(--bg-gray);
    color: #e40011;
    padding-left: 28px;
}

/* 捐赠公示 */
.donation-section {
    margin-bottom: 40px;
    background: var(--bg-gray);
    padding: 30px;
    border-radius: 4px;
}

.donation-scroll {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.donation-list {
    list-style: none;
    padding: 20px;
    animation: scroll-up 20s linear infinite;
}

.donation-list li {
    padding: 15px 0;
    border-bottom: 1px dashed var(--border-color);
    line-height: 1.8;
}

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

@keyframes scroll-up {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

.donation-scroll:hover .donation-list {
    animation-play-state: paused;
}

/* 新闻 */
.news-section {
    margin-bottom: 40px;
}

.news-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 12px 30px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: bold;
}

.tab-panel {
    display: none;
}

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

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

.news-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

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

.news-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-info {
    padding: 20px;
}

.news-info h3 {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-meta {
    font-size: 12px;
    color: #999;
}

/* 页脚 */
.footer {
    background: var(--footer-bg);
    color: #ccc;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.footer-section p {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.qrcode {
    text-align: center;
}

.qrcode svg {
    margin: 0 auto 10px;
    border: 2px solid #555;
}

.qrcode p {
    font-size: 14px;
    color: #ccc;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.footer-bottom p {
    margin-bottom: 8px;
    font-size: 13px;
    color: #999;
}