/* 全局样式 */
:root {
    --primary-color: #4a6fa5;
    --secondary-color: #ff6b6b;
    --accent-color: #ffd166;
    --text-color: #333333;
    --light-text: #f8f9fa;
    --bg-color: #ffffff;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --border-color: #dee2e6;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 5px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

body.home-page {
    background: url('../images/背景图2.png') no-repeat center center fixed;
    background-size: cover;
}

body.experience-page,
body.interests-page,
body.skills-page,
body.gallery-page,
body.contact-page {
    background: url('../images/背景图3.png') no-repeat center center fixed;
    background-size: cover;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.95);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 10px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    background-color: rgba(74, 111, 165, 0.1);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: var(--transition);
}

/* 主页英雄区样式 */
.hero {
    padding: 150px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.profile-image {
    flex: 1;
    text-align: center;
}

.profile-image img {
    max-width: 350px;
    border-radius: 50%;
    box-shadow: var(--shadow);
    border: 5px solid white;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.tagline {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.tagline p {
    margin-bottom: 10px;
}

.intro {
    margin-bottom: 30px;
    font-size: 1rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: #3a5a84;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

/* 关于部分样式 */
.about-section {
    padding: 100px 0;
    background-color: rgba(255, 255, 255, 0.9);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.skills-preview {
    flex: 1;
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.skills-preview h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.skill-item {
    margin-bottom: 20px;
}

.skill-name {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.skill-bar {
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
    transition: width 1.5s ease-in-out;
}

/* 页面头部样式 */
.page-header {
    padding: 150px 0 80px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.8);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* 时间线样式 */
.timeline-section {
    padding: 80px 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    margin-bottom: 60px;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: white;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    z-index: 1;
    top: 15px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-date {
    position: absolute;
    width: 120px;
    padding: 8px 0;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    border-radius: var(--border-radius);
    top: 15px;
    left: -140px;
}

.timeline-item:nth-child(even) .timeline-date {
    right: -140px;
    left: auto;
}

.timeline-content {
    padding: 20px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.timeline-content h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.timeline-image {
    margin: 15px 0;
}

.timeline-reflection {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(74, 111, 165, 0.1);
    border-radius: var(--border-radius);
}

.timeline-reflection h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* 结论部分样式 */
.conclusion-section {
    padding: 80px 0;
    background-color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.conclusion-content {
    max-width: 800px;
    margin: 0 auto;
}

.conclusion-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

/* 兴趣爱好页面样式 */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.interest-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.interest-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.interest-image {
    height: 200px;
    overflow: hidden;
}

.interest-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.interest-card:hover .interest-image img {
    transform: scale(1.1);
}

.interest-content {
    padding: 20px;
}

.interest-content h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.interest-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* 技能证书页面样式 */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.skill-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.skill-image {
    height: 200px;
    overflow: hidden;
}

.skill-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.skill-card:hover .skill-image img {
    transform: scale(1.1);
}

.skill-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.skill-content h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.skill-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    flex-grow: 1;
}

.skill-date {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: auto;
}

/* 旅行相册页面样式 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    cursor: pointer;
}

.gallery-image {
    height: 250px;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.gallery-caption p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 联系页面样式 */
.contact-section {
    padding: 80px 0;
}

.contact-content {
    display: flex;
    gap: 50px;
}

.contact-form {
    flex: 1;
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-form h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 1.2rem;
}

.contact-text h4 {
    margin-bottom: 5px;
    color: var(--text-color);
}

.contact-map {
    margin-top: 30px;
    height: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* 页脚样式 */
footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 40px 0;
    margin-top: 100px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info p {
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.social-link {
    color: var(--light-text);
    transition: var(--transition);
}

.social-link:hover {
    color: var(--accent-color);
}

/* 社交媒体图标样式 */
.social-links {
    margin-top: 30px;
}

.social-links h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* 可用性状态样式 */
.availability-section {
    padding: 80px 0;
    background-color: rgba(255, 255, 255, 0.9);
}

.availability-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.status-item {
    display: flex;
    align-items: flex-start;
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.status-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.5rem;
}

.status-icon.available {
    background-color: #d4edda;
    color: #155724;
}

.status-icon.limited {
    background-color: #fff3cd;
    color: #856404;
}

.status-icon.unavailable {
    background-color: #f8d7da;
    color: #721c24;
}

.status-info h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* FAQ部分样式 */
.faq-section {
    padding: 80px 0;
}

.faq-content {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    background-color: white;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: rgba(74, 111, 165, 0.05);
}

.faq-question h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.faq-toggle {
    width: 30px;
    height: 30px;
    background-color: rgba(74, 111, 165, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    background-color: var(--primary-color);
    color: white;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 1000px;
}

/* 响应式设计 */
@media screen and (max-width: 992px) {
    .hero-content,
    .about-content,
    .contact-content {
        flex-direction: column;
    }
    
    .profile-image {
        margin-bottom: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-dot {
        left: 20px;
        right: auto;
    }
    
    .timeline-item:nth-child(even) .timeline-dot {
        left: 20px;
    }
    
    .timeline-date {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        width: auto;
        display: inline-block;
        margin-bottom: 10px;
    }
    
    .timeline-item:nth-child(even) .timeline-date {
        right: auto;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        top: 70px;
        background-color: white;
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        clip-path: circle(0px at 90% -10%);
        -webkit-clip-path: circle(0px at 90% -10%);
        transition: all 0.5s ease-out;
        pointer-events: none;
    }
    
    .nav-links.open {
        clip-path: circle(1000px at 90% -10%);
        -webkit-clip-path: circle(1000px at 90% -10%);
        pointer-events: all;
    }
    
    .burger {
        display: block;
    }
    
    .interests-grid,
    .skills-grid,
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .gallery-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
    
    .map-marker .marker-info {
        width: 150px;
    }
}

@media screen and (max-width: 576px) {
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .interests-grid,
    .skills-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1s ease-in-out;
}

/* 滚动到顶部按钮 */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: #3a5a84;
    transform: translateY(-3px);
} 

/* 图片交互动画效果 */
.interactive-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.interactive-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.interactive-image:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.interactive-image .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: white;
    transition: opacity 0.3s ease;
}

.interactive-image:hover .image-overlay {
    opacity: 1;
}

.interactive-image .image-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.interactive-image:hover .image-title {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.1s;
}

.interactive-image .image-desc {
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.interactive-image:hover .image-desc {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.2s;
}

/* 3D翻转效果 */
.flip-card {
    perspective: 1000px;
    height: 300px;
    margin-bottom: 30px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.flip-card-front {
    background-color: white;
}

.flip-card-back {
    background-color: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.flip-card-back h3 {
    margin-bottom: 15px;
}

/* 图片画廊增强 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    cursor: pointer;
    height: 250px;
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-image {
    height: 100%;
    width: 100%;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1) rotate(2deg);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.gallery-item:hover .gallery-caption h3 {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.1s;
}

.gallery-caption p {
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.gallery-item:hover .gallery-caption p {
    transform: translateY(0);
    opacity: 0.8;
    transition-delay: 0.2s;
}

/* 图片模态框增强 */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-modal-content {
    max-width: 80%;
    max-height: 80%;
    position: relative;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.gallery-modal.show .gallery-modal-content {
    transform: scale(1);
    opacity: 1;
}

.gallery-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border: 5px solid white;
}

.gallery-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-close:hover {
    transform: rotate(90deg);
}

.gallery-modal-caption {
    color: white;
    text-align: center;
    padding: 15px;
    max-width: 80%;
    margin: 20px auto 0;
}

.gallery-modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.gallery-modal-nav button {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.gallery-modal-nav button:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

/* 图片预加载动画 */
.image-loader {
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
}

.image-loader::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* 首页个人照片增强 */
.profile-image {
    position: relative;
    display: inline-block;
}

.profile-image img {
    transition: transform 0.8s ease, box-shadow 0.8s ease;
}

.profile-image:hover img {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.profile-image::before,
.profile-image::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(74, 111, 165, 0.2);
    z-index: -1;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.profile-image::before {
    transform: scale(0.8);
}

.profile-image::after {
    transform: scale(0.6);
}

.profile-image:hover::before {
    transform: scale(1.1);
    opacity: 0.6;
}

.profile-image:hover::after {
    transform: scale(1.2);
    opacity: 0.3;
} 

/* 旅行地图样式 */
.travel-map-section {
    padding: 80px 0;
    background-color: rgba(255, 255, 255, 0.9);
}

.travel-map-container {
    position: relative;
    max-width: 800px;
    margin: 50px auto 0;
}

.china-map {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.map-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.map-marker {
    position: absolute;
    cursor: pointer;
    z-index: 10;
}

.marker-dot {
    width: 16px;
    height: 16px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.marker-pulse {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(74, 111, 165, 0.4);
    z-index: 1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.marker-info {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 200px;
    background-color: white;
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
}

.marker-info::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: white transparent transparent;
}

.map-marker:hover .marker-dot,
.map-marker.active .marker-dot {
    background-color: var(--secondary-color);
    transform: scale(1.2);
}

.map-marker:hover .marker-info,
.map-marker.active .marker-info {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.marker-info h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.marker-info p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: var(--text-color);
}

/* 旅行回忆网格 */
.memories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
} 

/* 图片筛选按钮样式 */
.gallery-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.filter-btn {
    padding: 8px 15px;
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    outline: none;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
} 