/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: #2a7db7;
    transition: color 0.3s ease;
}

a:hover {
    color: #1c5a85;
}

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn.primary {
    background-color: #2a7db7;
    color: white;
    border: 2px solid #2a7db7;
}

.btn.primary:hover {
    background-color: #1c5a85;
    border-color: #1c5a85;
}

.btn.secondary {
    background-color: transparent;
    color: #2a7db7;
    border: 2px solid #2a7db7;
}

.btn.secondary:hover {
    background-color: rgba(42, 125, 183, 0.1);
}

.btn.small {
    padding: 6px 12px;
    font-size: 0.9em;
}

.view-more {
    text-align: center;
    margin: 30px 0;
}

/* 头部样式 */
header {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://source.unsplash.com/random/1600x900/?travel') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 100px 20px;
    position: relative;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

header h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

header p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 导航栏样式 */
nav {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav li {
    margin: 0 10px;
}

nav a {
    display: block;
    padding: 20px 15px;
    color: #333;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

nav a:hover, nav a.active {
    color: #2a7db7;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #2a7db7;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

nav a:hover::after, nav a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

nav a i {
    margin-right: 5px;
}

/* 主要内容样式 */
main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

section {
    margin-bottom: 60px;
    display: none;
}

section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #333;
    position: relative;
    padding-bottom: 15px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #2a7db7;
}

/* 首页欢迎部分 */
.welcome-container {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.welcome-text {
    flex: 1;
}

.welcome-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.cta-buttons {
    margin-top: 30px;
}

.cta-buttons .btn {
    margin-right: 15px;
    margin-bottom: 10px;
}

.featured-image {
    flex: 1;
    position: relative;
}

.image-frame {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.image-frame:hover img {
    transform: scale(1.05);
}

.image-frame svg {
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    z-index: -1;
}

/* 目的地部分 */
.destination-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.destination-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.destination-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.destination-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blob-bg {
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    z-index: -1;
}

.destination-info {
    padding: 20px;
}

.destination-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.destination-info p {
    color: #666;
    margin-bottom: 15px;
}

.destination-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #777;
}

.destination-meta span {
    display: flex;
    align-items: center;
}

.destination-meta i {
    margin-right: 5px;
    color: #2a7db7;
}

/* 照片墙部分 */
.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-btn {
    background: none;
    border: none;
    padding: 8px 15px;
    margin: 0 5px 10px;
    cursor: pointer;
    font-size: 0.9rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: #2a7db7;
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 250px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    text-align: center;
    padding: 20px;
}

.gallery-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.gallery-info p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.gallery-zoom {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    transition: background-color 0.3s ease;
}

.gallery-zoom:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

/* 日记部分 */
.diary-entries {
    max-width: 800px;
    margin: 0 auto;
}

.diary-entry {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.diary-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: #f5f5f5;
}

.diary-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: #2a7db7;
    color: white;
    border-radius: 10px;
    margin-right: 20px;
    flex-shrink: 0;
}

.diary-date .day {
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
}

.diary-date .month, .diary-date .year {
    font-size: 0.9rem;
}

.diary-header h3 {
    font-size: 1.5rem;
    color: #333;
}

.diary-content {
    padding: 20px;
}

.diary-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.diary-image {
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 0.9rem;
    text-align: center;
}

.diary-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.diary-tags {
    display: flex;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 5px 10px;
    background-color: #f0f0f0;
    color: #666;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 10px;
    margin-bottom: 10px;
}

.diary-actions button {
    background: none;
    border: none;
    color: #777;
    cursor: pointer;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.diary-actions button:hover {
    color: #2a7db7;
}

.diary-actions i {
    margin-right: 5px;
}

/* 关于我部分 */
.about-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-image {
    flex: 1;
    position: relative;
    max-width: 400px;
}

.about-image img {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.about-content {
    flex: 2;
}

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-social {
    margin: 30px 0;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: #f0f0f0;
    color: #333;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #2a7db7;
    color: white;
}

.about-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #2a7db7;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: white;
    padding: 60px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-logo {
    margin-bottom: 30px;
    flex: 1 1 300px;
}

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer-logo p {
    opacity: 0.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    flex: 2 1 600px;
}

.footer-section {
    flex: 1 1 200px;
    margin-bottom: 30px;
    padding: 0 20px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #2a7db7;
}

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

.footer-section a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-section i {
    margin-right: 10px;
    color: #2a7db7;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* 灯箱效果 */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#lightbox-caption {
    margin: auto;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: white;
    padding: 10px 0;
    height: 150px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .welcome-container, .about-container {
        flex-direction: column;
    }

    .welcome-text, .about-content {
        order: 2;
    }

    .featured-image, .about-image {
        order: 1;
        margin-bottom: 30px;
    }

    .about-image {
        max-width: 100%;
    }

    .about-stats {
        flex-wrap: wrap;
    }

    .stat {
        flex: 1 1 50%;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }

    nav ul {
        flex-wrap: wrap;
    }

    nav li {
        flex: 1 1 auto;
        text-align: center;
    }

    nav a {
        padding: 15px 10px;
    }

    .destination-grid, .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    header {
        padding: 80px 20px;
    }

    header h1 {
        font-size: 2rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .destination-grid, .gallery-grid {
        grid-template-columns: 1fr;
    }

    .diary-header {
        flex-direction: column;
        text-align: center;
    }

    .diary-date {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .diary-footer {
        flex-direction: column;
    }

    .diary-actions {
        margin-top: 15px;
    }

    .about-stats {
        flex-direction: column;
    }

    .stat {
        margin-bottom: 20px;
    }
}