/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 50%, #a8e063 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-right: 230px; /* 为右侧导航栏留出空间 */
}

/* Header styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(17, 153, 142, 0.15), 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.title {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.title i {
    -webkit-text-fill-color: #27ae60;
    background: none;
    filter: drop-shadow(0 2px 4px rgba(39, 174, 96, 0.3));
}

.trip-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.trip-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7f8c8d;
    font-weight: 500;
}

.trip-detail i {
    color: #27ae60;
}

/* 日期导航栏侧边栏 */
.date-navigator {
    position: fixed;
    top: 0;
    right: 0;
    width: 200px;
    height: 100vh;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 255, 250, 0.98) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    border-left: 2px solid transparent;
    border-image: linear-gradient(to bottom, rgba(17, 153, 142, 0.3), rgba(56, 239, 125, 0.2)) 1;
    padding: 25px 12px;
    box-shadow: -8px 0 40px rgba(17, 153, 142, 0.12), -2px 0 10px rgba(0, 0, 0, 0.05);
    overflow-y: auto;
    overflow-x: hidden;
}

/* 导航栏标题 */
.date-navigator::before {
    content: '行程导航';
    display: block;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #11998e;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(17, 153, 142, 0.15);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* 美化滚动条 */
.date-navigator::-webkit-scrollbar {
    width: 5px;
}

.date-navigator::-webkit-scrollbar-track {
    background: transparent;
}

.date-navigator::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #11998e, #38ef7d);
    border-radius: 10px;
}

.date-navigator::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #0e7e72, #2dd668);
}

.nav-tabs {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
}

.nav-tab {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 255, 250, 0.9) 100%);
    border: 2px solid rgba(17, 153, 142, 0.15);
    border-radius: 16px;
    padding: 16px 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-shadow: 0 2px 8px rgba(17, 153, 142, 0.08);
}

.nav-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(17, 153, 142, 0.15), transparent);
    transition: left 0.6s ease;
}

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

/* 左侧装饰条 */
.nav-tab::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, #11998e, #38ef7d);
    border-radius: 0 4px 4px 0;
    transition: height 0.3s ease;
}

.nav-tab:hover {
    transform: translateX(-5px);
    box-shadow: 0 8px 30px rgba(17, 153, 142, 0.25);
    border-color: rgba(17, 153, 142, 0.4);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 255, 250, 0.95) 100%);
}

.nav-tab:hover::after {
    height: 60%;
}

.nav-tab.active {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border-color: transparent;
    transform: translateX(-8px) scale(1.05);
    box-shadow: 0 8px 30px rgba(17, 153, 142, 0.4), 0 0 20px rgba(17, 153, 142, 0.2);
}

.nav-tab.active::after {
    height: 80%;
    background: rgba(255, 255, 255, 0.3);
}

.nav-tab.active::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* 数字标记 */
.nav-tab .day-num::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    margin-right: 6px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.nav-tab.active .day-num::before,
.nav-tab:hover .day-num::before {
    opacity: 1;
    transform: scale(1.3);
}

.day-num {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: #2c3e50;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.day-date {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
    opacity: 0.95;
    color: #11998e;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.day-desc {
    display: block;
    font-size: 0.72rem;
    opacity: 0.8;
    line-height: 1.4;
    color: #5a6c7d;
    font-weight: 500;
}

.nav-tab.active .day-num,
.nav-tab.active .day-date,
.nav-tab.active .day-desc {
    opacity: 1;
    color: white;
}

/* 快速定位分隔线 */
.nav-divider {
    margin: 20px 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(17, 153, 142, 0.2), transparent);
}

/* 快速链接 */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-link {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(17, 153, 142, 0.15);
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2c3e50;
    font-size: 0.85rem;
    font-weight: 600;
}

.quick-link i {
    color: #11998e;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.quick-link:hover {
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.1) 0%, rgba(56, 239, 125, 0.05) 100%);
    border-color: rgba(17, 153, 142, 0.3);
    transform: translateX(-3px);
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.15);
}

.quick-link:hover i {
    transform: scale(1.1);
    color: #0e7e72;
}

/* Day cards */
.days-container {
    display: grid;
    gap: 25px;
    margin-bottom: 40px;
}

.day-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(17, 153, 142, 0.12), 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.75;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.day-card.active {
    opacity: 1;
    transform: scale(1.02);
    box-shadow: 0 15px 50px rgba(17, 153, 142, 0.25), 0 5px 15px rgba(17, 153, 142, 0.15);
    border: 1px solid rgba(17, 153, 142, 0.4);
}

.day-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(17, 153, 142, 0.2), 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(17, 153, 142, 0.3);
    opacity: 0.95;
}

.day-header {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.day-number {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.9rem;
}

.day-date {
    font-size: 0.9rem;
    opacity: 1;
    color: rgba(255, 255, 255, 0.95);
}

.day-title {
    font-size: 1.2rem;
    font-weight: 600;
    flex: 1;
    color: rgba(255, 255, 255, 0.98);
}

.day-content {
    padding: 25px;
}

/* Timeline styles */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #11998e, #38ef7d);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative;
}

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

.time {
    font-weight: bold;
    color: #2c3e50;
    margin-right: 20px;
    min-width: 80px;
    font-size: 0.9rem;
}

.icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 15px;
    position: relative;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(17, 153, 142, 0.3);
    transition: all 0.3s ease;
}

.timeline-item:hover .icon {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(17, 153, 142, 0.4);
}

.content h4 {
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.content p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Tips section */
.tips-section {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(17, 153, 142, 0.12), 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.tips-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

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

.tip-card {
    background: white;
    border-radius: 18px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(17, 153, 142, 0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(17, 153, 142, 0.1);
}

.tip-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(17, 153, 142, 0.2);
    border-color: rgba(17, 153, 142, 0.3);
}

.tip-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto 15px;
    font-size: 1.5rem;
}

.tip-card h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.tip-card ul {
    list-style: none;
    text-align: left;
}

.tip-card li {
    color: #7f8c8d;
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.tip-card li::before {
    content: '✓';
    color: #27ae60;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Packing section */
.packing-section {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(17, 153, 142, 0.12), 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
    margin-top: 40px;
}

.packing-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.packing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.packing-card {
    background: white;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(17, 153, 142, 0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-top: 4px solid transparent;
    border-image: linear-gradient(to right, #11998e, #38ef7d) 1;
    border-image-slice: 1;
}

.packing-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(17, 153, 142, 0.2);
}

.packing-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto 15px;
    font-size: 1.2rem;
}

.packing-card h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-align: center;
    font-weight: 600;
}

.packing-card ul {
    list-style: none;
    padding: 0;
}

.packing-card li {
    color: #7f8c8d;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
    font-size: 0.95rem;
}

.packing-card li::before {
    content: '•';
    color: #11998e;
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .title {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }

    .trip-info {
        gap: 15px;
    }

    .day-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .day-title {
        font-size: 1rem;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .time {
        margin-right: 0;
        margin-bottom: 5px;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .container {
        margin: 0 auto;
        padding: 15px;
        padding-right: 15px; /* 移动端取消侧边栏空间 */
        padding-bottom: 80px; /* 为底部导航栏留出空间 */
    }

    .date-navigator {
        display: none; /* 移动端隐藏侧边栏 */
    }

    /* 移动端显示底部导航 */
    .mobile-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        border-top: 1px solid rgba(102, 126, 234, 0.1);
        padding: 10px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .mobile-nav-tabs {
        display: flex;
        justify-content: space-around;
        width: 100%;
        gap: 5px;
    }

    .mobile-nav-tab {
        flex: 1;
        background: rgba(255, 255, 255, 0.8);
        border: 2px solid #e9ecef;
        border-radius: 8px;
        padding: 8px 4px;
        cursor: pointer;
        transition: all 0.3s ease;
        text-align: center;
        font-size: 0.8rem;
    }

    .mobile-nav-tab.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-color: #667eea;
    }

    .mobile-nav-tab .day-num {
        display: block;
        font-size: 0.7rem;
        font-weight: bold;
        margin-bottom: 2px;
    }

    .mobile-nav-tab .day-date {
        display: block;
        font-size: 0.8rem;
        font-weight: 600;
    }

    .mobile-nav-tab .day-desc {
        display: block;
        font-size: 0.65rem;
        margin-top: 2px;
    }

    .mobile-nav-tab.active .day-num,
    .mobile-nav-tab.active .day-date,
    .mobile-nav-tab.active .day-desc {
        color: white;
    }

    .packing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .packing-card {
        padding: 20px;
    }

    .packing-card h4 {
        font-size: 1.1rem;
    }

    .packing-card li {
        font-size: 0.9rem;
        padding-left: 18px;
    }
}

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

.day-card {
    animation: fadeInUp 0.6s ease-out;
}

.day-card:nth-child(2) { animation-delay: 0.1s; }
.day-card:nth-child(3) { animation-delay: 0.2s; }
.day-card:nth-child(4) { animation-delay: 0.3s; }

.tips-section {
    animation: fadeInUp 0.6s ease-out 0.4s;
    animation-fill-mode: both;
}
