/* 每日页面通用样式 */
.day-page .day-header {
    height: 70vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.day-page .day-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
}

.day-page .header-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 800px;
    padding: 0 1.5rem;
}

.day-number {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.header-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header-content .subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* 每日主题样式 */
.day1-theme .day-header {
    background-image: url('../images/day1-header.jpg');
}

.day2-theme .day-header {
    background-image: url('../images/day2-header.jpg');
}

.day3-theme .day-header {
    background-image: url('../images/day3-header.jpg');
}

/* 行程概览卡片 */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.overview-card {
    background-color: white;
    border-radius: 15px;
    padding: 1.8rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.overview-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--light-color);
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.2rem;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.overview-card h3 {
    margin-bottom: 0.7rem;
    font-family: var(--header-font);
    color: var(--dark-color);
    font-size: 1.3rem;
}

.overview-card p {
    color: #666;
    font-size: 1.1rem;
}

/* 行程介绍 */
.intro-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2.5rem;
    align-items: center;
    margin-top: 2rem;
}

.intro-text p {
    margin-bottom: 1.8rem;
    line-height: 1.8;
    font-size: 1.05rem;
    color: #444;
}

.intro-map {
    background-color: white;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.intro-map:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.intro-map img {
    width: 100%;
    border-radius: 8px;
}

.map-caption {
    margin-top: 0.8rem;
    text-align: center;
    font-size: 0.95rem;
    color: #666;
}

/* 景点展示 */
.attraction {
    padding: 4rem 0;
}

.attraction-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 2rem;
}

.attraction-gallery {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.main-image {
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s;
}

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

.small-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.small-images img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: transform 0.5s;
    cursor: pointer;
}

.small-images img:hover {
    transform: scale(1.1);
}

.attraction-text h3 {
    margin: 1.8rem 0 1.2rem;
    font-family: var(--header-font);
    color: var(--dark-color);
    font-size: 1.4rem;
}

.attraction-text h3:first-child {
    margin-top: 0;
}

.attraction-text p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
    color: #444;
}

.attraction-text ul {
    margin-bottom: 1.8rem;
    padding-left: 0.5rem;
}

.attraction-text ul li {
    margin-bottom: 0.9rem;
    display: flex;
    align-items: baseline;
    line-height: 1.6;
}

.attraction-text ul li i {
    color: var(--primary-color);
    margin-right: 12px;
    font-size: 0.9rem;
}

/* 时间轴 */
.timeline {
    position: relative;
    margin: 2.5rem 0;
    padding-left: 35px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    width: 3px;
    height: 100%;
    background-color: var(--primary-color);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -35px;
    top: 5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--primary-color);
    z-index: 2;
    box-shadow: 0 0 0 5px rgba(230, 126, 34, 0.2);
}

.timeline-content {
    background-color: white;
    border-radius: 15px;
    padding: 1.8rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.timeline-content:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    margin-bottom: 0.8rem;
    font-family: var(--header-font);
    color: var(--dark-color);
    font-size: 1.3rem;
}

.timeline-content p {
    margin: 0;
    color: #555;
    line-height: 1.7;
}

/* 美食住宿推荐 */
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
    margin-top: 2rem;
}

.recommendation-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

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

.card-header {
    padding: 1.2rem 1.5rem;
    color: white;
}

.card-header.food {
    background-color: var(--primary-color);
}

.card-header.accommodation {
    background-color: var(--secondary-color);
}

.card-header h3 {
    font-family: var(--header-font);
    font-size: 1.2rem;
    margin: 0;
    display: flex;
    align-items: center;
}

.card-header h3 i {
    margin-right: 12px;
    font-size: 1.1rem;
}

.card-content {
    padding: 1.8rem;
}

.card-content p {
    margin-bottom: 1.2rem;
    color: #555;
}

.card-content ul {
    margin-left: 1.5rem;
    list-style-type: disc;
    margin-bottom: 1.2rem;
}

.card-content ul li {
    margin-bottom: 0.6rem;
    color: #444;
    line-height: 1.6;
}

.card-content .note {
    font-size: 0.9rem;
    font-style: italic;
    color: #777;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px dashed #eee;
}

/* 摄影贴士 */
.tips-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2.5rem;
    margin-top: 2rem;
}

.tips-text h3 {
    margin: 1.8rem 0 1.2rem;
    font-family: var(--header-font);
    color: var(--dark-color);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}

.tips-text h3 i {
    margin-right: 12px;
    color: var(--primary-color);
}

.tips-text h3:first-child {
    margin-top: 0;
}

.tips-text ul {
    margin-left: 1.5rem;
    list-style-type: disc;
    margin-bottom: 1.8rem;
}

.tips-text ul li {
    margin-bottom: 0.7rem;
    color: #444;
    line-height: 1.7;
}

.tips-gallery {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.tips-image {
    background-color: white;
    border-radius: 15px;
    padding: 0.8rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.tips-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.tips-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
}

.image-caption {
    text-align: center;
    margin-top: 0.8rem;
    font-size: 0.95rem;
    color: #666;
}

/* 实用贴士 */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.8rem;
    margin-top: 2rem;
}

.tip-card {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.tip-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--light-color);
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.tip-card h3 {
    margin-bottom: 1rem;
    font-family: var(--header-font);
    color: var(--dark-color);
    font-size: 1.3rem;
}

.tip-card p {
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* 日期导航 */
.day-navigation {
    display: flex;
    justify-content: space-between;
    margin: 4rem 0;
    padding: 1.8rem;
    background-color: var(--light-color);
    border-radius: 15px;
    box-shadow: var(--box-shadow);
}

.prev-day-btn, .next-day-btn {
    padding: 1rem 1.8rem;
    background-color: white;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    font-weight: bold;
    display: flex;
    align-items: center;
    color: var(--dark-color);
}

.prev-day-btn i, .next-day-btn i {
    transition: var(--transition);
    color: var(--primary-color);
}

.prev-day-btn i {
    margin-right: 10px;
}

.next-day-btn i {
    margin-left: 10px;
}

.prev-day-btn:hover, .next-day-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.prev-day-btn:hover i, .next-day-btn:hover i {
    color: white;
}

.prev-day-btn:hover i {
    transform: translateX(-5px);
}

.next-day-btn:hover i {
    transform: translateX(5px);
}

/* 图片覆盖层 */
.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: pointer;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.image-overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transform: scale(0.9);
    transition: transform 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.image-overlay:hover img {
    transform: scale(1);
}

/* 页面背景与动效 */
body.day1-theme {
    background-color: #f8f9fa;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)),
        url('../images/day1-pattern.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

.section {
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
    animation-delay: calc(var(--section-index, 0) * 0.2s);
}

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

section.journey-overview { --section-index: 1; }
section.day-introduction { --section-index: 2; }
section.attraction { --section-index: 3; }
section.travel-route { --section-index: 4; }
section.food-accommodation { --section-index: 5; }
section.photography-tips { --section-index: 6; }
section.travel-tips { --section-index: 7; }

/* 响应式设计 */
@media (max-width: 992px) {
    .attraction-content,
    .intro-content,
    .tips-content {
        grid-template-columns: 1fr;
    }

    .intro-map {
        margin-top: 1rem;
    }
    
    .header-content h1 {
        font-size: 2.8rem;
    }
    
    .header-content .subtitle {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .day-page .day-header {
        height: 60vh;
    }

    .small-images {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .day-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .prev-day-btn, .next-day-btn {
        width: 100%;
        justify-content: center;
    }
    
    .header-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .main-image {
        height: 220px;
    }

    .small-images img {
        height: 90px;
    }

    .timeline {
        padding-left: 25px;
    }

    .timeline-dot {
        left: -25px;
        width: 18px;
        height: 18px;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
    
    .header-content .subtitle {
        font-size: 1.1rem;
    }
    
    .day-page .day-header {
        height: 50vh;
    }
} 