:root {
    --primary-color: #2196F3;
    --primary-dark: #1976D2;
    --secondary-color: #FF9800;
    --text-color: #333;
    --light-bg: #F5F5F5;
    --border-radius: 8px;
    --box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    --success-color: #4CAF50;
}

/* 导航栏样式 */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 15px 0;
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: sticky;
    top: 10px;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.navbar-logo i {
    margin-right: 8px;
    font-size: 1.5rem;
}

.navbar-links {
    display: flex;
    align-items: center;
}

.navbar-link {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s;
}

.navbar-link:hover {
    color: var(--secondary-color);
}

.navbar-link.active {
    color: var(--secondary-color);
}

.navbar-link.active:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.navbar-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .navbar-toggle {
        display: block;
    }
    
    .navbar-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
        flex-direction: column;
        padding: 20px;
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        transform: translateY(-200%);
        transition: transform 0.3s ease-in-out;
        z-index: -1;
    }
    
    .navbar-links.active {
        transform: translateY(0);
    }
    
    .navbar-link {
        margin: 15px 0;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
    background-image: linear-gradient(to bottom, #ffffff, #f7f9fc);
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
}

.container {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

header:after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--secondary-color);
    margin: 15px auto;
    border-radius: 2px;
}

h1 {
    color: var(--primary-dark);
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

h2 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    border-left: 5px solid var(--secondary-color);
    padding-left: 15px;
    margin: 50px 0 25px;
    display: flex;
    align-items: center;
    position: relative;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 3px;
}

h2 i {
    margin-right: 10px;
    color: var(--secondary-color);
}

h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin: 25px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px dashed #e0e0e0;
}

ul, ol {
    padding-left: 25px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 12px;
    position: relative;
}

ul li:before {
    content: "•";
    color: var(--secondary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

ol li {
    padding-left: 10px;
}

.day {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 35px;
    box-shadow: var(--box-shadow);
    border-left: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.day:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-dark));
    border-radius: 3px;
}

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

.day h3 {
    border-bottom: none;
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    padding-left: 15px;
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.day h3:before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-right: 15px;
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.2);
}

.day-number {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.time-section {
    margin-bottom: 30px;
    padding-left: 20px;
    position: relative;
}

.time-section:last-child {
    margin-bottom: 0;
}

.time-section:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(33, 150, 243, 0.3), rgba(33, 150, 243, 0.1));
    border-radius: 1px;
}

.time-section:after {
    content: "";
    position: absolute;
    top: 10px;
    left: -5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.15);
}

.time-section-title {
    font-weight: bold;
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-size: 1.1rem;
    display: inline-block;
    background-color: rgba(33, 150, 243, 0.1);
    padding: 8px 20px;
    border-radius: 30px;
    position: relative;
}

.time-section-title i {
    margin-right: 8px;
}

.activity {
    display: flex;
    margin-bottom: 18px;
    padding: 16px 20px;
    border-radius: 12px;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    z-index: 1;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 3px solid transparent;
}

.activity:last-child {
    margin-bottom: 0;
}

.activity:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-left: 3px solid var(--primary-color);
}

.activity-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(33, 150, 243, 0.2));
    font-size: 1.1rem;
    color: var(--primary-dark);
    text-align: center;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.activity-time {
    flex: 0 0 120px;
    font-weight: bold;
    color: var(--primary-dark);
    background-color: rgba(33, 150, 243, 0.05);
    padding: 5px 10px;
    border-radius: 5px;
    text-align: center;
    margin-right: 15px;
    font-size: 0.9rem;
}

.activity-content {
    flex: 1;
    line-height: 1.4;
}

.activity-transport {
    border-left: 3px solid #64B5F6;
}

.activity-transport .activity-icon {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(33, 150, 243, 0.2));
    color: #0D47A1;
}

.activity-sightseeing {
    border-left: 3px solid #81C784;
}

.activity-sightseeing .activity-icon {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.2));
    color: #2E7D32;
}

.activity-meal {
    border-left: 3px solid #FFB74D;
}

.activity-meal .activity-icon {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1), rgba(255, 152, 0, 0.2));
    color: #E65100;
}

.activity-hotel {
    border-left: 3px solid #9575CD;
}

.activity-hotel .activity-icon {
    background: linear-gradient(135deg, rgba(103, 58, 183, 0.1), rgba(103, 58, 183, 0.2));
    color: #4527A0;
}

.activity-shopping {
    border-left: 3px solid #F06292;
}

.activity-shopping .activity-icon {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.1), rgba(233, 30, 99, 0.2));
    color: #C2185B;
}

.attractions, .food, .transport, .tips, .opening-times {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 35px;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.attractions:hover, .food:hover, .transport:hover, .tips:hover, .opening-times:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.attractions:before, .food:before, .transport:before, .tips:before, .opening-times:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.05) 0%, rgba(33, 150, 243, 0) 70%);
    border-radius: 0 0 0 200px;
    z-index: 0;
}

.section-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    box-shadow: 0 4px 10px rgba(25, 118, 210, 0.3);
}

.city-label {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1565C0 100%);
    color: white;
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-right: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tips {
    background-color: #FFF8E1;
    border-left: 4px solid var(--secondary-color);
    padding: 25px 30px;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.tips:before {
    content: "\f0eb";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: -15px;
    bottom: -15px;
    font-size: 120px;
    color: rgba(255, 152, 0, 0.08);
    z-index: 0;
}

.tips h2 {
    border-left: none;
    color: var(--secondary-color);
    position: relative;
    z-index: 1;
    margin-top: 0;
}

.tips ul {
    position: relative;
    z-index: 1;
}

.tips li {
    position: relative;
    padding-left: 5px;
    margin-bottom: 15px;
    transition: transform 0.2s ease;
}

.tips li:hover {
    transform: translateX(5px);
}

.tips li:before {
    content: "✓";
    color: var(--secondary-color);
    font-weight: bold;
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    text-align: center;
    background-color: rgba(255, 152, 0, 0.15);
    border-radius: 50%;
}

footer {
    text-align: center;
    margin-top: 40px;
    color: #757575;
    font-size: 0.9rem;
}

@media print {
    body {
        background: none;
        padding: 0;
    }
    
    .container {
        box-shadow: none;
        border: none;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    .day, .attractions, .food, .transport, .tips {
        page-break-inside: avoid;
    }
}

.opening-times {
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}

.opening-times table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.opening-times th {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1565C0 100%);
    color: white;
    text-align: left;
    padding: 12px 18px;
    font-weight: 500;
}

.opening-times td {
    padding: 14px 18px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.opening-times tr:last-child td {
    border-bottom: none;
}

.opening-times tr:nth-child(even) {
    background-color: #f9f9f9;
}

.opening-times tr:hover td {
    background-color: #f1f7ff;
}

.closed {
    color: #e53935;
    font-weight: bold;
}

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

.container > * {
    animation: fadeIn 0.5s ease-out forwards;
}

.container > *:nth-child(1) { animation-delay: 0.1s; }
.container > *:nth-child(2) { animation-delay: 0.2s; }
.container > *:nth-child(3) { animation-delay: 0.3s; }
.container > *:nth-child(4) { animation-delay: 0.4s; }
.container > *:nth-child(5) { animation-delay: 0.5s; }
.container > *:nth-child(6) { animation-delay: 0.6s; }
.container > *:nth-child(7) { animation-delay: 0.7s; }
.container > *:nth-child(8) { animation-delay: 0.8s; }

@media (prefers-reduced-motion: reduce) {
    .container > * {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .itinerary-buttons {
        gap: 8px;
    }
    
    .itinerary-button {
        padding: 8px 12px;
        font-size: 0.85rem;
        min-width: 110px;
    }
}

@media screen and (max-width: 480px) {
    .itinerary-buttons {
        gap: 6px;
    }
    
    .itinerary-button {
        padding: 6px 10px;
        font-size: 0.8rem;
        min-width: 90px;
    }
}

/* 导航按钮样式 */
.itinerary-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0 40px;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.itinerary-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 30px;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    flex: 0 0 auto;
    min-width: 120px;
    margin-bottom: 5px;
    text-decoration: none;
}

.itinerary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.itinerary-button i {
    margin-right: 8px;
}

.itinerary-button.active {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #F57C00 100%);
}

.itinerary-title {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.itinerary-title h1 {
    margin-bottom: 10px;
}

.itinerary-title p {
    color: #666;
    font-size: 1.1rem;
}

.share-button {
    position: absolute;
    right: 10px;
    top: 10px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.share-button:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.share-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--success-color);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 1000;
}

.share-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
} 