/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

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

/* 移动端container优化 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

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

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.logo {
    font-family: 'Great Vibes', 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
}

.logo-link {
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.logo-link:hover {
    color: #3498db;
}

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

.nav-link {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #3498db;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    /* Fallback background for better GitHub Pages compatibility */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: url('../images/photo-6.webp');  /* 指向你的照片路径 */
    background-size: cover;           /* 让图片铺满整个区域 */
    background-position: center;      /* 居中显示图片 */
    background-repeat: no-repeat;     /* 不重复平铺 */
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    /* margin-top: 400px;*/
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #3498db;
    color: white;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
}

/* Social Media Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    animation: fadeInUp 1s ease 0.6s both;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.social-link i {
    transition: transform 0.3s ease;
}

.social-link:hover i {
    transform: scale(1.1);
}

/* 确保button元素在social-links中也能正确显示 */
button.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    font-family: inherit;
    outline: none;
    margin: 0;
    padding: 0;
}

button.social-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

button.social-link:hover i {
    transform: scale(1.1);
}

.btn-secondary {
    background: #ecf0f1;
    color: #2c3e50;
}

.btn-secondary:hover {
    background: #bdc3c7;
}

/* Filter Section */
.filter-section {
    background: white;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filter-controls {
    display: flex;
    gap: 2rem;
    align-items: flex-end;
    justify-content: flex-start;
    flex-wrap: wrap;
    width: 100%;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 150px;
}

.filter-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.filter-select {
    padding: 8px 10px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s ease;
    min-width: 150px;
    width: auto;
}

.filter-select:focus {
    outline: none;
    border-color: #3498db;
}

/* Gallery Section */
.gallery {
    padding: 4rem 0;
    background: #f8f9fa;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-info {
    padding: 1rem;
}

.gallery-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.gallery-meta {
    display: flex;
    justify-content: flex-start;
    gap: 0rem;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.gallery-meta span {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

/* Load More Button */
.gallery-load-more {
    text-align: center;
    margin-top: 3rem;
    padding: 1rem 0;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.load-more-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.load-more-btn:active {
    transform: translateY(0);
}

.load-more-btn i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.load-more-btn:hover i {
    transform: translateY(2px);
}

.load-more-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.load-more-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 移动端触摸优化 */
@media (hover: none) and (pointer: coarse) {
    .load-more-btn:hover {
        transform: none;
    }
    
    .load-more-btn:active {
        background: linear-gradient(135deg, #1f5f8b 0%, #154360 100%);
        transform: scale(0.98);
    }
}

/* 移动端Load More按钮优化 */
@media (max-width: 768px) {
    .gallery-load-more {
        margin-top: 2rem;
        padding: 0.5rem 0;
    }
    
    .load-more-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .gallery-load-more {
        margin-top: 1.5rem;
    }
    
    .load-more-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Map Section */
.map-section {
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
}

.map-container {
    position: relative;
    max-width: 1800px;
    margin: 0 auto;
}

#map {
    height: 900px;
    width: 100%;
    max-width: 1800px;
    border-radius: 18px;
    margin: 0 auto;
}

/* 改进弹窗样式 */
.gallery-popup {
    text-align: center;
    max-width: 280px;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.gallery-popup .popup-header {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.gallery-popup .popup-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.gallery-popup .popup-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 20px 16px 16px;
    text-align: left;
}

.gallery-popup .popup-overlay h3 {
    margin: 0;
    font-size: 18px;
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.gallery-popup .popup-content {
    padding: 16px;
    background: white;
}

.gallery-popup .popup-info {
    margin-bottom: 16px;
}

.gallery-popup .popup-info p {
    margin: 0 0 6px 0;
    font-size: 13px;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gallery-popup .popup-info p i {
    color: #3498db;
    width: 14px;
}

.gallery-popup .popup-button {
    width: 100%;
    background: linear-gradient(145deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.gallery-popup .popup-button:hover {
    background: linear-gradient(145deg, #2980b9, #1f5f8b);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* 添加加载动画样式 */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
    border-radius: 18px;
    gap: 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 500;
    text-align: center;
}

.loading-progress {
    font-size: 0.9rem;
    color: #7f8c8d;
    background: rgba(52, 152, 219, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.loading-progress span {
    font-weight: 600;
    color: #3498db;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Contact Section */
.contact {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: url('../images/photo-6.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 2;
}

.contact-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: 400;
}

.contact-info {
    display: grid;
    gap: 3rem;
}

.info-section {
    display: grid;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
}

.info-item i {
    font-size: 2rem;
    color: #667eea;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.info-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.info-content p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

.contact-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
}

.contact-item i {
    font-size: 1.5rem;
    color: #667eea;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.contact-details p,
.contact-details a {
    font-size: 0.95rem;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #667eea;
}

.social-section {
    text-align: center;
    margin-top: 2rem;
}

.social-section h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
}

.social-card i {
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.social-card:hover i {
    transform: scale(1.1);
}

.social-card span {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Mobile Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Header Mobile Optimization */
    .header .container {
        padding: 8px 15px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 2rem 1.5rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        gap: 1.5rem;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Hero Section Mobile Optimization */
    .hero {
        padding: 100px 0 60px;
        min-height: 90vh;
    }
    
    .hero-content {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .btn {
        padding: 10px 24px;
        font-size: 0.95rem;
    }
    
    .social-links {
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    button.social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    /* 移动端触摸优化 */
    @media (hover: none) and (pointer: coarse) {
        .social-link:hover {
            transform: none;
        }
        
        .social-link:active {
            background: rgba(255, 255, 255, 0.4);
            transform: scale(0.95);
        }
        
        button.social-link:hover {
            transform: none;
        }
        
        button.social-link:active {
            background: rgba(255, 255, 255, 0.4);
            transform: scale(0.95);
        }
    }

    /* Filter Section Mobile Optimization */
    .filter-section {
        padding: 1.5rem 0;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .filter-group {
        width: 100%;
        min-width: auto;
    }
    
    .filter-select {
        width: 100%;
        min-width: auto;
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    .btn-secondary {
        width: 100%;
        padding: 12px 15px;
    }

    /* Gallery Section Mobile Optimization */
    .gallery {
        padding: 2rem 0;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .gallery-item img {
        height: 250px;
    }
    
    .gallery-info {
        padding: 0.8rem;
    }
    
    .gallery-title {
        font-size: 1.4rem;
    }
    
    .gallery-meta {
        flex-direction: column;
        gap: 0.3rem;
        font-size: 0.85rem;
    }

    /* Map Section Mobile Optimization */
    .map-section {
        padding: 1.5rem 0;
    }
    
    #map {
        height: 500px;
        border-radius: 12px;
    }
    
    .map-container {
        padding: 0 15px;
    }

    /* About Section Mobile Optimization */
    .about {
        padding: 2rem 0;
    }
    
    .about-content {
        padding: 0 15px;
    }
    
    .about-content h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .about-content p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .header .container {
        padding: 8px 10px;
    }
    
    .logo {
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    button.social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .gallery-grid {
        gap: 0.8rem;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .gallery-info {
        padding: 0.6rem;
    }
    
    .gallery-title {
        font-size: 1.2rem;
    }
    
    #map {
        height: 400px;
        border-radius: 8px;
    }
    
    .about-content h2 {
        font-size: 1.8rem;
    }
    
    .about-content p {
        font-size: 0.95rem;
    }
}

/* Gallery Page Responsive */
/* Responsive Gallery Page */
@media (max-width: 1200px) {
    .photos-grid {
        columns: 2;
        max-width: 1200px;
        column-gap: 0.8rem;
    }
}

@media (max-width: 900px) {
    .photos-grid {
        columns: 1;
        max-width: 900px;
        column-gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .gallery-page {
        padding: 100px 0 40px;
    }
    
    .gallery-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1.5rem;
        margin-top: -1rem;
    }
    
    .gallery-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .gallery-meta {
        gap: 0.8rem;
        flex-wrap: wrap;
    }
    
    .meta-item {
        font-size: 1rem;
        gap: 0.5rem;
    }
    
    .meta-item i {
        width: 16px;
    }
    
    .gallery-description {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .gallery-actions {
        align-self: stretch;
    }
    
    .gallery-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .photos-grid {
        columns: 1;
        column-gap: 0.5rem;
        max-width: 100%;
        padding: 0 10px;
    }
    
    .photo-item {
        margin-bottom: 0.8rem;
    }
    
    .photo-overlay {
        transform: translateY(0);
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
        padding: 1rem;
    }
    
    /* Mobile-specific star rating adjustments */
    .photo-rating {
        bottom: 4px;
        left: 4px;
    }
}

@media (max-width: 480px) {
    .gallery-page {
        padding: 90px 0 30px;
    }
    
    .gallery-header {
        padding: 1rem;
        margin-top: -0.5rem;
    }
    
    .gallery-title {
        font-size: 1.5rem;
        margin-bottom: 0.6rem;
    }
    
    .gallery-meta {
        gap: 0.6rem;
    }
    
    .meta-item {
        font-size: 0.9rem;
    }
    
    .gallery-description {
        font-size: 0.9rem;
    }
    
    .photos-grid {
        columns: 1;
        padding: 0 5px;
    }
    
    .photo-item {
        margin-bottom: 0.6rem;
    }
    
    /* Mobile Full-screen Viewer */
    .fullscreen-image-container img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
    }
    
    .fullscreen-nav-btn {
        padding: 0.6rem;
        font-size: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .prev-btn {
        left: 0.5rem;
    }
    
    .next-btn {
        right: 0.5rem;
    }
    
    .fullscreen-close-btn {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.6rem;
        font-size: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .fullscreen-counter {
        bottom: 0.5rem;
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    /* Mobile Fullscreen Star Rating */
    .fullscreen-rating {
        bottom: 0.5rem;
        left: 0.5rem;
    }
    
    .fullscreen-rating .star {
        font-size: 18px;
    }
    
    /* Mobile Star Rating */
    .star-rating {
        gap: 2px;
    }
    
    .star {
        font-size: 16px;
    }
    
    .star:hover {
        transform: scale(1.1);
    }
}

/* Gallery Page Styles */
.gallery-page {
    padding: 120px 0 40px;
    background: #f8f9fa;
    min-height: 100vh;
}

/* Gallery Header */
.gallery-header {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-top: -2rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.gallery-info {
    flex: 1;
}

.gallery-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.gallery-meta {
    display: flex;
    gap: 1.3rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #7f8c8d;
    font-size: 1.1rem;
    font-weight: 500;
}

.meta-item i {
    color: #3498db;
    width: 20px;
}

.gallery-description {
    color: #555;
    line-height: 1.6;
    font-size: 1.1rem;
    margin: 0;
}

.gallery-actions {
    flex-shrink: 0;
}

/* Photos Grid - Masonry Layout */
.photos-grid {
    columns: 3;
    column-gap: 1rem;
    margin-top: 2rem;
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
}

.photo-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    break-inside: avoid;
    margin-bottom: 1rem;
    display: block;
}

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

.photo-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.photo-item:hover img {
    transform: scale(1.05);
}

/* Remove height restrictions to show original dimensions */
.photo-item.tall img,
.photo-item.medium img,
.photo-item.short img {
    max-height: none;
    object-fit: contain;
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.photo-item:hover .photo-overlay {
    transform: translateY(0);
}

.photo-info .photo-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.photo-info .photo-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.photo-info .photo-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Star Rating Styles */
.photo-rating {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 15;
    pointer-events: auto;
    background: none !important;
    border: none !important;
}

.star-rating {
    display: flex;
    gap: 2px;
    transition: all 0.3s ease;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.star {
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.7));
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.star:hover {
    transform: scale(1.15);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 1);
    color: transparent;
}

.star.filled {
    color: #ffd700;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 4px rgba(255, 215, 0, 0.6);
}

.star.hovered {
    color: rgba(255, 237, 78, 0.6);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

/* Rating feedback CSS removed - no popups needed */

.no-photos {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Full-screen Photo Viewer */
.fullscreen-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    display: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.fullscreen-viewer.active {
    display: flex;
    opacity: 1;
}

.fullscreen-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-image-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
}

.fullscreen-info {
    display: none;
}

.fullscreen-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 1rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 2rem;
}

.next-btn {
    right: 2rem;
}

.fullscreen-close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 1rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.fullscreen-counter {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

/* Fullscreen Star Rating */
.fullscreen-rating {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    z-index: 10;
    pointer-events: auto;
}

.fullscreen-rating .star-rating {
    display: flex;
    gap: 3px;
    transition: all 0.3s ease;
}

.fullscreen-rating .star {
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.9);
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.8));
    background: transparent;
}

.fullscreen-rating .star:hover {
    transform: scale(1.2);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 1);
    color: transparent;
}

.fullscreen-rating .star.filled {
    color: #ffd700;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.8);
}

.fullscreen-rating .star.hovered {
    color: rgba(255, 237, 78, 0.6);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 1);
    transform: scale(1.15);
}

/* Fullscreen rating feedback CSS removed - no popups needed */

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Update Notification Styles */
.update-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 2000;
    background: #27ae60;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 500;
}

.notification-content i {
    animation: spin 1s linear infinite;
}

.notification-content button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.notification-content button:hover {
    opacity: 1;
}

/* Contact Section Mobile Responsive */
@media (max-width: 768px) {
    .contact {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .contact-background {
        background-attachment: scroll;
    }
    
    .contact-content {
        padding: 1rem;
    }
    
    .contact-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .contact-header h2 {
        font-size: 2.2rem;
    }
    
    .contact-subtitle {
        font-size: 1.1rem;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .info-item i {
        margin-top: 0;
    }
    
    .contact-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 1.5rem;
    }
    
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .social-card {
        padding: 1.25rem;
    }
    
    .social-card i {
        font-size: 1.5rem;
    }
    
    .social-card span {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .contact-card {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }
    
    .contact-header h2 {
        font-size: 1.8rem;
    }
    
    .contact-subtitle {
        font-size: 1rem;
    }
    
    .info-content h3 {
        font-size: 1.3rem;
    }
    
    .info-content p {
        font-size: 0.95rem;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
    }
    
    .social-card {
        flex-direction: row;
        justify-content: center;
        gap: 0.75rem;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive notification */
@media (max-width: 768px) {
    .update-notification {
        top: 80px;
        right: 10px;
        left: 10px;
        border-radius: 6px;
    }
    
    .notification-content {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
} 

/* Custom Map Marker */
.gallery-map-marker {
    background: transparent !important;
    border: none !important;
}

.gallery-map-marker .marker-container {
    position: relative;
    transition: all 0.3s ease;
}

.gallery-map-marker .marker-image {
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.gallery-map-marker .marker-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-map-marker .marker-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(145deg, #e74c3c, #c0392b);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    z-index: 3;
}

.gallery-map-marker .marker-badge .photo-count {
    font-weight: 700;
    line-height: 1;
}

/* 移除箭头样式，不再需要 */

/* 标记点悬停效果 */
.gallery-map-marker.marker-hover .marker-container {
    transform: scale(1.1);
}

.gallery-map-marker.marker-hover .marker-image {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.gallery-map-marker.marker-hover .marker-badge {
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

/* 地图筛选控件样式 */
.map-filter-control {
    position: absolute;
    top: -20px;
    left: -10px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    min-width: 100px;
    max-width: 180px;
    pointer-events: auto; /* 确保滚轮事件能被捕获 */
}

.map-filter-control .filter-header {
    margin-bottom: 15px;
    padding-bottom: 0px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map-filter-control .filter-header .close-filter {
    display: none;
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.map-filter-control .filter-header .close-filter:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #495057;
}

.map-filter-control .filter-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.map-filter-control .year-checkboxes {
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    scroll-behavior: smooth; /* 平滑滚动 */
    -webkit-overflow-scrolling: touch; /* iOS滚动优化 */
}

.map-filter-control .year-checkboxes::-webkit-scrollbar {
    width: 4px;
}

.map-filter-control .year-checkboxes::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

.map-filter-control .year-checkboxes::-webkit-scrollbar-thumb {
    background: rgba(52, 152, 219, 0.5);
    border-radius: 2px;
}

.map-filter-control .year-checkboxes::-webkit-scrollbar-thumb:hover {
    background: rgba(52, 152, 219, 0.7);
}

.map-filter-control .year-option {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 2px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.map-filter-control .year-option:hover {
    background: rgba(52, 152, 219, 0.1);
}

    .map-filter-control .year-option input[type="checkbox"] {
        width: 20px;
        height: 20px;
        accent-color: #3498db;
        cursor: pointer;
        min-height: 44px; /* 触摸友好的最小高度 */
    }
    
    /* 触摸优化 */
    @media (hover: none) and (pointer: coarse) {
        .map-filter-control .year-option {
            min-height: 48px;
            padding: 12px 14px;
        }
        
        .map-filter-control .year-option input[type="checkbox"] {
            width: 24px;
            height: 24px;
        }
        
        .show-filter-btn {
            min-height: 48px;
            padding: 14px 18px;
        }
    }

.map-filter-control .year-option label {
    font-size: 0.9rem;
    color: #2c3e50;
    cursor: pointer;
    user-select: none;
    flex: 1;
}

.map-filter-control .year-option .count {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* Show Filter Button */
.show-filter-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(52, 152, 219, 0.9);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 25px;
    cursor: pointer;
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.show-filter-btn:hover {
    background: rgba(52, 152, 219, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.show-filter-btn i {
    font-size: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .map-filter-control {
        position: fixed;
        top: 20px;
        left: 20px;
        right: 20px;
        max-width: none;
        min-width: auto;
        z-index: 2000;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-radius: 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        padding: 15px;
        max-height: 60vh;
        overflow: hidden;
        display: none; /* 移动端默认隐藏 */
        pointer-events: auto; /* 确保滚轮事件能被捕获 */
    }
    
    .map-filter-control .filter-header {
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    
    .map-filter-control .filter-header h3 {
        font-size: 1rem;
        text-align: center;
        flex: 1;
    }
    
    .map-filter-control .filter-header .close-filter {
        display: block;
    }
    
    .show-filter-btn {
        display: flex;
    }
    
    .map-filter-control .year-checkboxes {
        max-height: calc(60vh - 80px);
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 5px;
    }
    
    .map-filter-control .year-option {
        padding: 8px 10px;
        border-radius: 12px;
        background: rgba(52, 152, 219, 0.05);
        border: 1px solid rgba(52, 152, 219, 0.1);
        min-height: 44px; /* 触摸友好的最小高度 */
    }
    
    .map-filter-control .year-option label {
        font-size: 0.85rem;
    }
    
    .map-filter-control .year-option .count {
        font-size: 0.65rem;
        padding: 1px 4px;
    }
}

@media (max-width: 480px) {
    .map-filter-control {
        top: 15px;
        left: 15px;
        right: 15px;
        padding: 12px;
        max-height: 50vh;
    }
    
    .map-filter-control .year-checkboxes {
        grid-template-columns: 1fr;
        max-height: calc(50vh - 70px);
        gap: 8px;
    }
    
    .map-filter-control .year-option {
        padding: 6px 8px;
    }
    
    .map-filter-control .year-option label {
        font-size: 0.8rem;
    }
}

/* New Contact Section Styles */
.contact {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="%23ffffff" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.contact-content {
    position: relative;
    z-index: 3;
    width: 100%;           /* 改为100%，避免水平滚动 */
    max-width: 1600px;     /* 这里控制最大宽度 */
    margin: 0 auto;
    padding: 2rem;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-title {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.contact-subtitle {
    font-size: 1.3rem;
    color: #6c757d;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 0.4fr;
    gap: 4rem;
    max-width: 2000px;
    margin: 0 auto;
    align-items: center;
    justify-items: center;  /* 添加这行，让网格项目居中 */
}

/* 确保在小屏幕上网格布局正确 */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        justify-items: stretch;
    }
}

.contact-photo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;  /* 改为100%，不再向左延伸 */
    margin-left: 0;  /* 移除负边距 */
}

.photo-container:hover {
    transform: scale(1.02);
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.2);
}

.photographer-image {
    width: 100%;  /* 改为100%，适应容器宽度 */
    height: 750px;
    object-fit: cover;
    display: block;
    /* 移动端图片优化 */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.contact-collaborate {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
}

.contact-card.highlight {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.contact-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: #6c757d;
    margin-bottom: 1rem;
}

.contact-card p:last-child {
    margin-bottom: 0;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.contact-link:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

/* 移动端触摸优化 */
@media (hover: none) and (pointer: coarse) {
    .contact-link:hover {
        transform: none;
    }
    
    .contact-link:active {
        background: rgba(102, 126, 234, 0.15);
        transform: scale(0.98);
    }
    
    .contact-card:hover {
        transform: none;
    }
    
    .photo-container:hover {
        transform: none;
    }
}

.contact-link i {
    font-size: 1.2rem;
    color: #667eea;
    width: 20px;
    text-align: center;
}

.contact-link span {
    flex: 1;
}

/* Ensure button elements have the same styling as links */
button.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    outline: none;
    margin: 0;
    width: 100%;
    text-align: left;
}

button.contact-link:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

/* 移动端触摸优化 - button版本 */
@media (hover: none) and (pointer: coarse) {
    button.contact-link:hover {
        transform: none;
    }
    
    button.contact-link:active {
        background: rgba(102, 126, 234, 0.15);
        transform: scale(0.98);
    }
}

button.contact-link i {
    font-size: 1.2rem;
    color: #667eea;
    width: 20px;
    text-align: center;
}

button.contact-link span {
    flex: 1;
}

/* Responsive Design for Contact Section */
@media (max-width: 1200px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .photographer-image {
        height: 500px;
    }
    
    .contact-title {
        font-size: 3rem;
    }
    
    .contact-content {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .contact {
        padding: 4rem 0;
    }
    
    .contact-content {
        padding: 1rem;
    }
    
    .contact-title {
        font-size: 2.5rem;
    }
    
    .contact-subtitle {
        font-size: 1.1rem;
    }
    
    .contact-card {
        padding: 2rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-icon i {
        font-size: 1.2rem;
    }
    
    .contact-card h3 {
        font-size: 1.3rem;
    }
    
    .photographer-image {
        height: 400px;
    }
    
    .contact-grid {
        gap: 2rem;
    }
    
    .contact-links {
        gap: 0.8rem;
    }
    
    .contact-link {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .contact-link i {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .contact {
        padding: 3rem 0;
    }
    
    .contact-content {
        padding: 0.5rem;
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .contact-subtitle {
        font-size: 1rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 1rem;
    }
    
    .contact-icon i {
        font-size: 1rem;
    }
    
    .contact-card h3 {
        font-size: 1.2rem;
    }
    
    .contact-card p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .contact-link {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .contact-link i {
        font-size: 1rem;
        width: 18px;
    }
    
    .photographer-image {
        height: 300px;
    }
    
    .photo-container {
        border-radius: 16px;
    }
    
    .contact-links {
        gap: 0.6rem;
        margin-top: 1rem;
    }
    
    button.contact-link {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    button.contact-link i {
        font-size: 1rem;
        width: 18px;
    }
}

/* 超小屏幕设备适配 */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .social-links {
        gap: 0.8rem;
        margin-top: 1.2rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    button.social-link {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .contact {
        padding: 2rem 0;
    }
    
    .contact-content {
        padding: 0.3rem;
    }
    
    .contact-title {
        font-size: 1.8rem;
    }
    
    .contact-subtitle {
        font-size: 0.9rem;
    }
    
    .contact-card {
        padding: 1.2rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.8rem;
    }
    
    .contact-icon i {
        font-size: 0.9rem;
    }
    
    .contact-card h3 {
        font-size: 1.1rem;
    }
    
    .contact-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .contact-link {
        padding: 0.7rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .contact-link i {
        font-size: 0.9rem;
        width: 16px;
    }
    
    .photographer-image {
        height: 250px;
    }
    
    .contact-links {
        gap: 0.5rem;
        margin-top: 0.8rem;
    }
    
    button.contact-link {
        padding: 0.7rem 0.8rem;
        font-size: 0.85rem;
    }
    
    button.contact-link i {
        font-size: 0.9rem;
        width: 16px;
    }
}

/* Copy message animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 移动端消息动画优化 */
@media (max-width: 768px) {
    @keyframes slideIn {
        from {
            transform: translateY(-100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    @keyframes slideOut {
        from {
            transform: translateY(0);
            opacity: 1;
        }
        to {
            transform: translateY(-100%);
            opacity: 0;
        }
    }
}