/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

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

/* 顶部导航栏 */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-top {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    padding: 10px 30px;
    font-size: 14px;
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 20px;
}

.social-links a {
    color: #fff;
    margin-left: 15px;
    font-size: 14px;
}

.social-links a:hover {
    color: #ffd700;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    max-width: 1920px;
    margin: 0 auto;
}

.logo h1 {
    font-size: 24px;
    color: #1e3c72;
    font-weight: 700;
    margin-bottom: 8px;
}

.logo-en {
    font-size: 13px;
    color: #666;
    font-weight: normal;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-menu li a {
    color: #333;
    font-size: 17px;
    padding: 12px 0;
    position: relative;
    font-weight: 500;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #1e3c72;
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after,
.nav-menu li.active a::after {
    width: 100%;
}

.nav-menu li.active a {
    color: #1e3c72;
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #1e3c72;
    transition: all 0.3s ease;
}

/* 轮播图区域 */
.hero-slider {
    margin-top: 150px;
    height: 500px;
    position: relative;
    overflow: hidden;
}

.slide {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    align-items: center;
    justify-content: flex-start;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide.active {
    display: flex;
}

.slide-content {
    text-align: left;
    color: #fff;
    max-width: 600px;
    padding: 0 60px;
    z-index: 2;
    position: relative;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 0, 0, 0.3);
}

.slide-content h2 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

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

.dot.active {
    background: #fff;
    width: 30px;
    border-radius: 6px;
}

/* 通用区块样式 */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: #1e3c72;
    margin-bottom: 10px;
    font-weight: 700;
}

.section-header p {
    font-size: 16px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(30, 60, 114, 0.4);
}

.btn-outline {
    background: transparent;
    color: #1e3c72;
    border: 2px solid #1e3c72;
}

.btn-outline:hover {
    background: #1e3c72;
    color: #fff;
}

/* 新闻动态 */
.news-section {
    background: #f9f9f9;
}

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

.news-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

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

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

.news-content {
    padding: 25px;
}

.news-date {
    display: block;
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more {
    color: #1e3c72;
    font-size: 14px;
    font-weight: 500;
}

.read-more:hover {
    color: #2a5298;
}

/* 协会简介 */
.about-section {
    background: #fff;
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    padding-right: 20px;
}

.about-text .section-header {
    margin-bottom: 35px;
    text-align: left;
}

.about-text p {
    color: #555;
    font-size: 16px;
    line-height: 2;
    margin-bottom: 18px;
    text-align: justify;
    text-justify: inter-ideograph;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image img:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* 服务项目 */
.services-section {
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
}

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

.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 20px;
    color: #1e3c72;
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 近期活动 */
.activities-section {
    background: #fff;
}

.activities-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: #f0f0f0;
    transform: translateX(10px);
}

.activity-date {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    min-width: 100px;
}

.activity-date .day {
    display: block;
    font-size: 28px;
    font-weight: 700;
}

.activity-date .month {
    display: block;
    font-size: 14px;
    margin-top: 5px;
}

.activity-info {
    flex: 1;
}

.activity-info h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.activity-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.activity-info i {
    color: #1e3c72;
    margin-right: 8px;
}

/* 合作伙伴 */
.partners-section {
    background: #f9f9f9;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

@media (max-width: 1400px) {
    .partners-grid {
        grid-template-columns: repeat(10, 1fr);
    }
}

@media (max-width: 1200px) {
    .partners-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (max-width: 992px) {
    .partners-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.partner-item {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1/1;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.partner-item a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.partner-item img {
    max-width: 100%;
    max-height: 70%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.partner-item:hover img {
    transform: scale(1.1);
}

.partner-item p {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    padding: 60px 0 20px;
}

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

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section p {
    margin-bottom: 10px;
    font-size: 14px;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    font-size: 14px;
    opacity: 0.9;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: #ffd700;
}

.qr-codes {
    display: flex;
    gap: 20px;
}

.qr-code {
    text-align: center;
}

.qr-code img {
    width: 120px;
    height: 120px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.qr-code p {
    font-size: 12px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.9;
}

.footer-bottom a {
    margin: 0 10px;
    opacity: 0.9;
}

.footer-bottom a:hover {
    opacity: 1;
    color: #ffd700;
}

/* 响应式设计 */
@media (min-width: 1921px) {
    .header {
        background: #fff;
    }

    .header-top,
    .main-nav {
        max-width: 1920px;
        margin: 0 auto;
    }
}

@media (max-width: 1600px) {
    .nav-menu {
        gap: 35px;
    }

    .nav-menu li a {
        font-size: 16px;
    }
}

@media (max-width: 1400px) {
    .container {
        padding: 0 25px;
    }

    .main-nav {
        padding: 18px 25px;
    }

    .header-top {
        padding: 10px 25px;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }

    .nav-menu {
        gap: 30px;
    }

    .logo h1 {
        font-size: 22px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 960px;
        padding: 0 20px;
    }

    .hero-slider {
        height: 400px;
    }

    .slide-content h2 {
        font-size: 36px;
    }

    .slide-content p {
        font-size: 16px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }

    .main-nav {
        flex-wrap: wrap;
        padding: 15px 20px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px 20px;
        gap: 15px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .hero-slider {
        margin-top: 100px;
        height: 300px;
    }

    .slide-content h2 {
        font-size: 28px;
    }

    .slide-content p {
        font-size: 14px;
    }

    section {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 28px;
    }

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

    .activity-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .activity-date {
        min-width: auto;
        width: 100%;
    }

    .activity-info {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .qr-codes {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-nav {
        padding: 12px 15px;
    }

    .logo h1 {
        font-size: 18px;
    }

    .logo-en {
        font-size: 10px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .section-header h2 {
        font-size: 24px;
    }
}
