/* 旅行主题样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#travel-memory-wall {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    position: relative;
}

#travel-section,
#wish-wall-section {
    transition: opacity 0.8s ease;
}

#travel-section.hidden,
#wish-wall-section.hidden {
    display: none;
}

#travel-section.active,
#wish-wall-section.active {
    display: block;
}

/* 标题区域 */
.travel-header {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.travel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.travel-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
}

.travel-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 20px;
    max-width: 1200px;
    width: 100%;
}

#travel-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    line-height: 1.3;
}

.travel-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 旅行统计 */
.travel-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px 30px;
    min-width: 150px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.stat-icon {
    font-size: 2.5em;
}

.stat-info {
    text-align: left;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.stat-label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 旅行时间轴 */
.travel-timeline-section {
    padding: 80px 20px;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: #2C3E50;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    margin: 20px auto;
    border-radius: 2px;
}

.timeline-container {
    max-width: 1000px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #3498db, #2ecc71);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(10px);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3498db;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #3498db;
}

.timeline-date {
    position: absolute;
    left: -100px;
    top: 0;
    width: 80px;
    text-align: right;
    color: #7f8c8d;
    font-weight: bold;
}

.date-day {
    display: block;
    font-size: 1.8em;
    color: #3498db;
}

.date-month {
    display: block;
    font-size: 0.9em;
}

.date-year {
    display: block;
    font-size: 0.8em;
    color: #95a5a6;
}

.timeline-content {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

.timeline-content h3 {
    color: #2C3E50;
    margin-bottom: 10px;
    font-size: 1.4em;
}

.location {
    color: #3498db;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.description {
    color: #666;
    line-height: 1.6;
}

.no-travels {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-size: 1.2em;
    background: white;
    border-radius: 10px;
    border: 2px dashed #bdc3c7;
}

/* 旅行相册轮播 */
.travel-gallery-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.travel-swiper {
    width: 100%;
    max-width: 900px;
    height: 600px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.travel-slide {
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.slide-image {
    flex: 1;
    position: relative;
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
}

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

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

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

.location-tag {
    color: white;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.slide-content {
    text-align: center;
    flex: 1;
    padding: 0 20px;
}

.slide-header {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.slide-title {
    font-size: 1.8em;
    color: inherit;
    font-weight: bold;
    margin: 0;
}

.travel-date {
    color: inherit;
    opacity: 0.8;
    font-size: 0.9em;
}

.slide-text {
    line-height: 1.6;
    color: inherit;
    opacity: 0.9;
    font-size: 1.1em;
}

/* 进入祝福墙按钮 */
.enter-wall-btn {
    margin-top: 40px;
    text-align: center;
}

.enter-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
}

.enter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.5);
}

.btn-arrow {
    font-size: 1.2em;
}

/* 旅行地图 */
.travel-map-section {
    padding: 80px 20px;
    background: #f8f9fa;
}

.map-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .map-container {
        grid-template-columns: 1fr;
    }
}

.map-placeholder {
    position: relative;
    min-height: 300px;
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    border-radius: 10px;
    overflow: hidden;
}

.map-dots {
    position: absolute;
    width: 100%;
    height: 100%;
}

.map-dot {
    position: absolute;
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-dot:nth-child(1) { top: 30%; left: 20%; }
.map-dot:nth-child(2) { top: 50%; left: 60%; }
.map-dot:nth-child(3) { top: 70%; left: 40%; }
.map-dot:nth-child(4) { top: 40%; left: 70%; }
.map-dot:nth-child(5) { top: 60%; left: 30%; }

.dot {
    display: block;
    width: 15px;
    height: 15px;
    background: #e74c3c;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #e74c3c;
    transition: all 0.3s ease;
}

.map-dot:hover .dot {
    transform: scale(1.5);
    background: #c0392b;
}

.location-name {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: bold;
    color: #2C3E50;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
}

.map-dot:hover .location-name {
    opacity: 1;
    top: -30px;
}

.map-lines {
    position: absolute;
    width: 100%;
    height: 100%;
}

.map-legend {
    padding: 20px;
}

.map-legend h4 {
    color: #2C3E50;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.location-list {
    list-style: none;
}

.location-list li {
    padding: 8px 0;
    color: #3498db;
    font-weight: 500;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.location-list li:last-child {
    border-bottom: none;
}

/* 音乐播放器 */
#bg-music-player {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.music-btn {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px;
    transition: all 0.3s ease;
}

.music-btn:hover {
    color: #3498db;
}

.music-btn.playing .music-icon {
    animation: musicNote 2s ease-in-out infinite;
}

@keyframes musicNote {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.volume-control {
    width: 100px;
}

#volume-slider {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    transition: all 0.3s ease;
}

#volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* 特效动画 */
@keyframes leafFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes snowFall {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(20px);
        opacity: 0;
    }
}

/* 模态框 */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    z-index: 10000;
    max-width: 400px;
    width: 90%;
    display: none;
}

.modal h3 {
    color: #3498db;
    margin-bottom: 10px;
}

.modal ul {
    margin: 10px 0;
    padding-left: 20px;
}

.modal li {
    margin-bottom: 5px;
}

/* 页面切换动画 */
.page-transition {
    transition: opacity 0.3s ease;
}

/* 移动端优化 */
@media (max-width: 768px) {
    /* 基础布局 */
    #travel-memory-wall {
        padding: 0 10px;
    }
    
    /* 标题区域 */
    .travel-header {
        height: 70vh;
    }
    
    #travel-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    
    .travel-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    
    /* 统计卡片 */
    .travel-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .stat-item {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        padding: 15px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .stat-icon {
        margin-right: 0;
        font-size: 2em;
    }
    
    .stat-info {
        text-align: center;
    }
    
    /* 时间轴 */
    .travel-timeline-section {
        padding: 40px 10px;
    }
    
    .timeline {
        padding-left: 15px;
    }
    
    .timeline::before {
        left: 7px;
    }
    
    .timeline-item {
        padding-left: 15px;
        margin-bottom: 25px;
    }
    
    .timeline-date {
        position: static;
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
        font-size: 0.9em;
    }
    
    .timeline-content {
        padding: 15px;
    }
    
    .timeline-content h3 {
        font-size: 1.2em;
    }
    
    /* 轮播图 */
    .travel-gallery-section {
        padding: 40px 10px;
    }
    
    .travel-swiper {
        height: 350px !important;
        border-radius: 10px;
    }
    
    .travel-slide {
        padding: 15px;
    }
    
    .slide-title {
        font-size: 1.3em;
    }
    
    .slide-text {
        font-size: 0.9em;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 35px;
        height: 35px;
        display: none; /* 移动端隐藏箭头 */
    }
    
    /* 进入按钮 */
    .enter-btn {
        padding: 12px 30px;
        font-size: 1em;
    }
    
    /* 地图区域 */
    .travel-map-section {
        padding: 40px 10px;
    }
    
    .map-container {
        padding: 15px;
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .map-placeholder {
        min-height: 250px;
    }
    
    .map-dot {
        transform: scale(0.8);
    }
    
    /* 音乐播放器 */
    #bg-music-player {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
    }
    
    .volume-control {
        width: 60px;
    }
}

@media (max-width: 480px) {
    #travel-title {
        font-size: 1.8em;
    }
    
    .travel-description {
        font-size: 0.9em;
    }
    
    .section-title {
        font-size: 1.5em;
        margin-bottom: 25px;
    }
    
    .travel-swiper {
        height: 300px !important;
    }
    
    .enter-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    
    .stat-value {
        font-size: 22px;
    }
}