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

body {
    font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* 导航栏样式 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #007bff;
    transition: width 0.3s ease;
}

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

/* 主页样式优化 */
#home {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.home-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.home-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.home-content p {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.cta-button:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

/* 背景指示器样式 */
.bg-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

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

.bg-indicator.active {
    background-color: #ffffff;
}

/* 通用部分样式 */
.section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
    text-align: center; /* 添加这行 */
}

h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #007bff;
    margin: 1rem auto 0;
}

/* 关于我部分样式 */
.about-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
}

.about-text-container {
    max-width: 800px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: all 0.3s ease;
}

.about-text {
    text-align: justify;
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

/* 响应式设计 - 移动设备优化 */
@media screen and (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }

    .about-text-container {
        padding: 1.5rem;
        margin: 0 1rem; /* 添加左右边距 */
    }

    .about-text {
        font-size: 0.95rem;
        line-height: 1.6;
        text-align: justify; /* 两端对齐 */
        hyphens: auto; /* 自动添加连字符 */
        word-break: break-word; /* 在单词内换行 */
    }

    .about-text p {
        margin-bottom: 1.2rem;
        text-indent: 0; /* 移除首行缩进 */
    }

    /* 调整标题大小 */
    h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    /* 优化字体大小和行高 */
    .about-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* 调整整体内容的上下边距 */
    .section-content {
        padding: 3rem 1rem;
    }
}

/* 添加平滑滚动效果 */
html {
    scroll-behavior: smooth;
}

/* 优化移动端导航菜单 */
@media screen and (max-width: 768px) {
    .nav-menu.active {
        padding: 1rem 0;
        background-color: rgba(255, 255, 255, 0.98);
    }

    .nav-menu.active li {
        margin: 0.8rem 0;
    }

    .nav-menu.active a {
        font-size: 1.1rem;
        padding: 0.5rem 1rem;
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* 教育背景样式 */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.education-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.education-ranking {
    margin-top: auto;
    padding: 1rem;
    background-color: #f8f9fa;
    text-align: center;
}

.education-header {
    padding: 1rem;
    text-align: center;
}

.school-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.education-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.education-info h3 {
    margin-bottom: 0.5rem;
    color: #007bff;
}

.education-info p {
    margin-bottom: 0.5rem;
}

.education-note {
    font-style: italic;
    color: #666;
}

.education-ranking {
    margin-top: auto; /* 将排名推到底部 */
    padding: 1rem;
    background-color: #f8f9fa;
    text-align: center;
    width: 100%; /* 确保宽度为100% */
}

.education-ranking a {
    color: #007bff;
    text-decoration: none;
}

/* 实习经历��式 */
.experience-item {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.experience-header {
    padding: 1rem;
    text-align: center;
}

.company-logo {
    width: 200px;
    height: auto;
    object-fit: contain;
}

.experience-info {
    padding: 1.5rem;
}

.experience-info h3 {
    color: #007bff;
    margin-bottom: 0.5rem;
}

.experience-info p {
    margin-bottom: 0.5rem;
}

.experience-info ul {
    list-style-type: none;
    padding-left: 0;
    margin-top: 1rem;
}

.experience-info li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.experience-info li::before {
    content: '•';
    color: #007bff;
    position: absolute;
    left: 0;
}

.intern-report-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.intern-report-link:hover {
    background-color: #0056b3;
}

/* 项目样式 */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-content {
    flex-grow: 1;
}

.project-icon {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.project-item h3 {
    margin-bottom: 1rem;
}

.project-item p {
    margin-bottom: 1.5rem;
}

.project-link {
    margin-top: auto;
    align-self: center;
}

/* 世界旅行部分样式 */
.world-travel-content {
    display: flex;
    justify-content: center; /* 居中对齐 */
    gap: 2rem;
}

.country-list-container {
    flex: 1;
}

.country-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
}

.country-item {
    text-align: center;
}

.country-flag {
    width: 100px;
    height: 60px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.country-flag:hover {
    transform: scale(1.1);
}

.country-name {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.flight-map {
    flex: 1;
}

.flight-map-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.world-progress-bar {
    margin-top: 2rem;
}

.progress-container {
    width: 100%;
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.progress {
    width: 0;
    height: 100%;
    background-color: #4CAF50;
    transition: width 0.3s ease;
}

.progress-handle {
    width: 30px;
    height: 30px;
    background-color: #4CAF50;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.progress-text {
    margin-top: 1rem;
    text-align: center;
}

#donation-modal .modal-content {
    text-align: center;
    position: relative;
    z-index: 2;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
}

.modal-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
    overflow: hidden;
}

#donation-modal img {
    display: block;
    margin: 1rem auto;
}

#cancelDonation {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#cancelDonation:hover {
    background-color: #d32f2f;
}

/* 联系方式样式 */
.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: #007bff;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    font-size: 1.5rem;
    color: #007bff;
    transition: color 0.3s ease;
}

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

#contact-form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left; /* 表单内容左对齐 */
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

#contact-form button {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

#contact-form button:hover {
    background-color: #0056b3;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active li {
        margin: 0.8rem 0;
    }

    .home-content h1 {
        font-size: 3rem;
    }

    .home-content p {
        font-size: 1.4rem;
    }

    .about-content,
    .world-travel-content {
        flex-direction: column;
    }

    .education-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .section-content {
        padding: 4rem 1.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .world-travel-content {
        flex-direction: column;
        align-items: center; /* 在小屏幕上居中对齐 */
    }

    .country-list-container,
    .flight-map {
        width: 100%;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 1s ease-in;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.appear {
    opacity: 1;
    transform: translateY(0);
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 2rem 0;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3498db;
}

.footer-social {
    margin-bottom: 1rem;
}

.footer-social a {
    color: #ecf0f1;
    font-size: 1.2rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #3498db;
}

.footer-info p {
    margin: 0.5rem 0;
    text-align: center;
}

.footer-info a {
    color: #3498db;
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
}

.footer-divider {
    width: 50%;
    height: 1px;
    background-color: rgba(236, 240, 241, 0.3);
    margin: 1rem auto;
}

@media screen and (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        align-items: center;
    }

    .footer-links a {
        margin: 5px 0;
    }
}

/* 教育背景样式调整 */
.education-item {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.education-item:hover {
    transform: translateY(-5px);
}

/* 项目样式调整 */
.project-item {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
}

/* 见世界模块模态框图片样式调整 */
.country-modal-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: rotate(random(-5deg, 5deg));
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.country-modal-image:hover {
    transform: scale(1.05) rotate(0deg);
    z-index: 2;
}

.country-modal-image.enlarged {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    z-index: 1000;
}

#country-modal .modal-content {
    position: relative;
    max-width: 80%;
    max-height: 80vh;
    overflow: hidden;
    padding: 20px;
}

.image-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-height: calc(80vh - 100px);
    overflow-y: auto;
}

/* 调整见世界模态框样式 */
#country-modal .modal-content {
    width: 90%;
    max-width: 600px;
    height: 80vh;
    display: flex;
    flex-direction: column;
}

#country-modal .image-container {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
}

.country-modal-image {
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 300px;
    object-fit: contain;
}

/* 调整窄屏幕下的菜单栏样式 */
@media screen and (max-width: 768px) {
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: rgba(255, 255, 255, 0.95);
        align-items: center;
        justify-content: center;
        z-index: 1000;
    }

    .nav-menu.active li {
        margin: 15px 0;
    }
}

/* 导航栏样式 */
.menu-toggle {
    display: none; /* 默认隐藏菜单按钮 */
    font-size: 1.5rem;
    cursor: pointer;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .menu-toggle {
        display: block; /* 在窄屏幕下显示菜单按钮 */
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: rgba(255, 255, 255, 0.95);
        align-items: center;
        justify-content: center;
        z-index: 1000;
    }

    .nav-menu.active li {
        margin: 15px 0;
    }
}

/* 添加移动端语言切换按钮样式 */
.mobile-lang-switch {
    display: none;
}

@media screen and (max-width: 768px) {
    .mobile-lang-switch {
        display: block;
        position: absolute;
        top: 15px;
        right: 60px;
    }

    .mobile-lang-switch a {
        color: #333;
        text-decoration: none;
        font-weight: 500;
    }

    /* 隐藏导航菜单中的语言切换按钮 */
    .nav-menu li:last-child {
        display: none;
    }
}

/* 修改移动端语言切换按钮样式 */
@media screen and (max-width: 768px) {
    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 5%;
    }

    .logo {
        flex: 1;
    }

    .nav-right {
        display: flex;
        align-items: center;
    }

    .mobile-lang-switch {
        display: flex;
        align-items: center;
        margin-right: 15px; /* 调整右侧间距 */
    }

    .mobile-lang-switch a {
        color: #333;
        text-decoration: none;
        font-weight: 500;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        font-size: 1.5rem;
        cursor: pointer;
    }

    /* 隐藏导航菜单中的语言切换按钮 */
    .nav-menu li:last-child {
        display: none;
    }

    /* 调整航菜单样式 */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

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

    .nav-menu li {
        margin: 10px 0;
        text-align: center;
    }
}

/* 添加到文件末尾 */
#wechat-modal .modal-content {
    text-align: center;
    padding: 20px;
}

#wechat-modal img {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}


