:root {
    --primary-color: #B22234; /* 罗马红色 */
    --secondary-color: #3C3B6E; /* 深蓝色 */
    --accent-color: #F1C40F; /* 金色点缀 */
    --neutral-color: #F5F5F5;
    --timeline-color: var(--primary-color);
    --text-color: #333;
    --light-text: #666;
    --very-light-text: #999;
    --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --timeline-shadow: 0 0 0 4px white, 0 0 0 5px var(--timeline-color);
    --font-title: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* 头部样式 */
.day-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding: 35px 20px;
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), 
                url('https://images.unsplash.com/photo-1529260830199-42c24126f198?ixlib=rb-1.2.1&auto=format&fit=crop&w=1000&q=80');
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.day-header:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.day-header h1 {
    font-family: var(--font-title);
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.day-header h1::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    margin: 10px auto 0;
    border-radius: 2px;
}

.day-intro {
    max-width: 800px;
    margin: 0 auto;
    font-style: italic;
    color: var(--light-text);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* 亮点聚焦区域 */
.highlights-banner {
    background: linear-gradient(135deg, var(--primary-color), #8B0000);
    color: white;
    padding: 35px 25px;
    border-radius: 15px;
    margin-bottom: 50px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.highlights-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.highlights-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1543333995-a78aea2eee50?ixlib=rb-1.2.1&auto=format&fit=crop&w=1000&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.highlights-banner h2 {
    text-align: center;
    font-family: var(--font-title);
    font-size: 2rem;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.highlights-banner h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
}

.highlights-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.highlight-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px 20px;
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    text-align: center;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.25);
}

.highlight-card:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.highlight-card:hover:after {
    transform: scaleX(1);
}

.highlight-card i {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.highlight-card h3 {
    font-family: var(--font-title);
    margin-bottom: 10px;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
}

.highlight-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* 时间线区域 */
.timeline-section {
    padding: 30px 0;
    position: relative;
}

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

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-color), #8B0000);
    border-radius: 4px;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

.timeline-dot {
    position: absolute;
    left: -40px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--primary-color);
    box-shadow: var(--timeline-shadow);
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    background-color: var(--accent-color);
}

.timeline-date {
    position: absolute;
    left: -150px;
    width: 100px;
    text-align: right;
}

.timeline-date h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.timeline-date span {
    font-size: 0.9rem;
    color: var(--light-text);
    font-style: italic;
}

.timeline-content {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-left: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.timeline-content:hover {
    transform: translateX(5px) translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.timeline-content h3 {
    font-family: var(--font-title);
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
    position: relative;
    display: inline-block;
}

.timeline-content h3:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.timeline-content p {
    color: var(--text-color);
    margin-top: 15px;
    line-height: 1.8;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.tag-included {
    background-color: #27AE60;
}

.tag-inside {
    background-color: #3498DB;
}

.tag-outside {
    background-color: #9B59B6;
}

.tag-guide {
    background-color: #F39C12;
}

.tag-unesco {
    background-color: #16A085;
}

.tag-movie {
    background-color: #E74C3C;
}

.tag-architecture {
    background-color: #8E44AD;
}

.tag-romantic {
    background-color: #FF6B81;
}

.tag-service {
    background-color: #2980B9;
}

.tag-transport {
    background-color: #7F8C8D;
}

.tag-meal {
    background-color: #D35400;
}

.tag-rest {
    background-color: #1ABC9C;
}

.tag-energy {
    background-color: #C0392B;
}

.tag-free {
    background-color: #3498DB;
}

.tag-shopping {
    background-color: #F1C40F;
    color: #333;
}

.tag-hotel {
    background-color: #2C3E50;
}

.tag-location {
    background-color: #E67E22;
}

.tag-optional {
    background-color: #9B59B6;
}

.attraction-image {
    width: 100%;
    height: 390px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

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

.service-highlights {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 150px;
    padding: 15px;
    background-color: rgba(244, 246, 248, 0.7);
    border-radius: 8px;
}

.service-item i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.service-item span {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.service-item p {
    font-size: 0.85rem;
    color: var(--light-text);
    margin-top: 5px;
}

.hotel-info {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(244, 246, 248, 0.7);
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.hotel-info h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* 价格信息区域 */
.price-info {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(244, 246, 248, 0.7);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.price-info h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.price-info ul {
    list-style-position: inside;
    padding-left: 10px;
}

.price-info li {
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 0.95rem;
}

/* 导航链接区域 */
.navigation-links {
    margin: 40px 0;
    padding: 20px;
}

.next-day-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.next-day-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    background-color: var(--primary-color);
}

.next-day-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.next-day-link span {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-style: italic;
}

.next-day-link h3 {
    color: var(--secondary-color);
    font-family: var(--font-title);
    font-size: 1.3rem;
}

.next-day-link i {
    font-size: 1.5rem;
    color: var(--primary-color);
    padding: 10px;
    background-color: rgba(178, 34, 52, 0.1);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .timeline-container {
        padding-left: 20px;
    }
    
    .timeline-container::before {
        left: 0;
    }
    
    .timeline-dot {
        left: -20px;
        width: 18px;
        height: 18px;
    }
    
    .timeline-date {
        position: relative;
        left: 0;
        width: 100%;
        text-align: left;
        margin-bottom: 5px;
    }
    
    .timeline-content {
        margin-left: 0;
    }
    
    .highlights-container {
        flex-direction: column;
        align-items: center;
    }
    
    .highlight-card {
        max-width: 100%;
    }
    
    .day-header h1 {
        font-size: 2rem;
    }
    
    .attraction-image {
        height: 200px;
    }
    
    .next-day-link {
        padding: 15px;
        flex-direction: column;
    }
    
    .next-day-link i {
        margin-top: 10px;
    }
    
    /* 移动端不固定导航栏 */
    .day-nav {
        position: relative;
        top: auto;
        white-space: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 10px;
    }
    
    .day-nav-btn {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .timeline-date {
        left: -110px;
        width: 80px;
    }
    
    .highlights-container {
        justify-content: space-around;
    }
    
    .highlight-card {
        min-width: 180px;
    }
}

/* 添加一些微动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.day-header, .highlights-banner, .timeline-item, .navigation-links {
    animation: fadeIn 0.5s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }
.timeline-item:nth-child(7) { animation-delay: 0.7s; }
.timeline-item:nth-child(8) { animation-delay: 0.8s; }
.timeline-item:nth-child(9) { animation-delay: 0.9s; }
.navigation-links { animation-delay: 1s; }

/* 印刷风格元素 */
.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -10px;
    width: 20px;
    height: 20px;
    background-color: white;
    transform: rotate(45deg);
    box-shadow: -2px 2px 3px rgba(0, 0, 0, 0.05);
}

/* 天数导航栏 */
.day-nav {
    text-align: center;
    margin-bottom: 25px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 0 0 15px 15px; /* 只保留底部圆角 */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0; /* 改为0，完全置顶 */
    left: 0; /* 占满整个宽度 */
    transform: none; /* 移除transform */
    width: 100%; /* 占满整个宽度 */
    max-width: none;
    z-index: 1000;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.day-nav::-webkit-scrollbar {
    height: 5px;
}

.day-nav::-webkit-scrollbar-thumb {
    background-color: rgba(192, 0, 0, 0.2);
    border-radius: 10px;
}

.day-nav::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.day-nav-btn {
    background-color: rgba(192, 0, 0, 0.1);
    color: #333333;
    border: none;
    padding: 10px 16px;
    margin: 0;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-weight: 500;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.day-nav-btn:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.5s;
}

.day-nav-btn:hover:before {
    left: 100%;
}

.day-nav-btn:hover {
    background-color: rgba(192, 0, 0, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.day-nav-btn.active {
    background: linear-gradient(135deg, #c00000, #990000);
    color: white;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(192,0,0,0.2);
}

/* 移动端默认样式覆盖 */
@media (max-width: 767px) {
    .day-nav {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        max-width: none;
        white-space: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 10px;
    }
    
    body {
        padding-top: 0; /* 移动端不需要padding */
    }
}

/* 为PC端添加页面顶部padding，避免内容被固定导航条遮挡 */
@media (min-width: 768px) {
    body {
        padding-top: 85px; /* 增加padding值，应至少等于导航条高度+padding */
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    animation: bounce 2s infinite;
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.scroll-indicator i {
    color: white;
    font-size: 1.2rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}