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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    text-align: center;
    margin-bottom: 1rem;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #34495e;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

section {
    background-color: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.map-container {
    width: 100%;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#overview-map {
    height: 500px;
    margin-bottom: 1.5rem;
}

.route-summary {
    margin-top: 2rem;
}

.route-summary h3 {
    color: #34495e;
    margin-bottom: 1rem;
}

#route-summary-list {
    list-style: none;
    padding: 0;
}

#route-summary-list li {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #3498db;
}

.day-route {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.day-route h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.day-number {
    background-color: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50%;
    font-weight: bold;
}

.route-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.route-info-card h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.info-item {
    text-align: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.info-item h5 {
    color: #7f8c8d;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-weight: normal;
}

.info-item p {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
}

.places-to-visit, .food-section h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* 地图布局 */
.maps-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.map-card h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

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

.place-card {
    background-color: white;
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.place-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.place-card h5 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

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

.food-card {
    background-color: #fff5e6;
}

.food-card:hover {
    background-color: #ffe6cc;
}

/* 统一卡片样式 */
.card-section {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
    transition: box-shadow 0.3s;
}

.card-section:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.card-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
}

.day-map-section {
    flex: 1;
}

.day-attractions-section {
    flex: 1;
}

.day-attractions-section h4 {
    color: #34495e;
    margin-bottom: 1rem;
}

.attractions-info {
    margin-top: 1.5rem;
}

.attraction-detail {
    background-color: #f8f9fa;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.attraction-marker {
    background-color: #e74c3c;
    color: white;
    padding: 2px 8px;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 0.5rem;
}

.attraction-detail h5 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.attraction-desc {
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.attraction-reason {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 酒店标记样式 */
.hotel-marker-detail {
    background-color: #e3f2fd;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    border-left: 3px solid #3498db;
    font-size: 0.9rem;
}

.hotel-marker {
    background-color: #3498db;
    color: white;
    padding: 2px 6px;
    border-radius: 50%;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

/* 行程时间轴样式 */
.schedule-card h4 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

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

.schedule-item {
    display: flex;
    margin-bottom: 1.5rem;
    position: relative;
}

.schedule-item:before {
    content: '';
    position: absolute;
    left: -40px;
    top: 8px;
    width: 10px;
    height: 10px;
    background-color: #3498db;
    border-radius: 50%;
}

.schedule-item:not(:last-child):after {
    content: '';
    position: absolute;
    left: -36px;
    top: 18px;
    width: 2px;
    height: calc(100% + 1rem);
    background-color: #e0e0e0;
}

.schedule-time {
    position: absolute;
    left: -80px;
    font-weight: bold;
    color: #3498db;
    width: 50px;
    text-align: right;
}

.schedule-content h5 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}

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

/* 限行提醒样式 */
.traffic-restriction {
    background-color: #fff3cd !important;
    border: 1px solid #ffeaa7;
}

/* 地图内限行提醒样式 */
.traffic-in-map {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.traffic-in-map h5 {
    color: #856404;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.restriction-item-compact {
    background-color: #fff9e6;
    padding: 0.75rem;
    border-radius: 4px;
    border-left: 3px solid #f39c12;
    margin-bottom: 0.75rem;
}

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

.restriction-item-compact h6 {
    color: #856404;
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
}

.restriction-item-compact p {
    margin: 0.25rem 0;
    font-size: 0.85rem;
    color: #856404;
}

.restriction-rule {
    font-weight: 500;
}

.restriction-suggestion {
    color: #721c24 !important;
    font-style: italic;
}

.traffic-restriction h4 {
    color: #856404;
    margin-bottom: 1rem;
}

.restriction-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ffeaa7;
}

.restriction-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.restriction-item h5 {
    color: #856404;
    margin-bottom: 0.5rem;
}

.restriction-item p {
    margin: 0.25rem 0;
    color: #856404;
}

.restriction-item .suggestion {
    color: #721c24;
    font-weight: 500;
}

/* 酒店推荐样式 */
.hotel-section h4 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.hotel-list {
    display: grid;
    gap: 1rem;
}

.hotel-item {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.hotel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.hotel-header h5 {
    color: #2c3e50;
    margin: 0;
}

.hotel-price {
    color: #e74c3c;
    font-weight: 600;
    font-size: 0.9rem;
}

.hotel-location {
    color: #7f8c8d;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.hotel-reason {
    color: #555;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 路线详情样式 */
.route-details {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.route-details h5 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.route-segments {
    margin-bottom: 1rem;
}

.route-segment {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    border-left: 3px solid #3498db;
}

.segment-name {
    color: #2c3e50;
    font-weight: 500;
}

.segment-info {
    color: #7f8c8d;
    font-size: 0.9rem;
    white-space: nowrap;
}

.route-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.route-stats p {
    margin: 0.25rem 0;
    color: #555;
    font-size: 0.9rem;
}

.route-stats strong {
    color: #2c3e50;
}

/* 自然景观样式 */
.natural-section h4 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

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

.natural-item {
    background-color: #f0f8ff;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
    transition: transform 0.3s, box-shadow 0.3s;
}

.natural-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.natural-item h5 {
    color: #27ae60;
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
}

.natural-distance {
    color: #7f8c8d;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.natural-desc {
    color: #555;
    margin: 0.5rem 0;
    line-height: 1.5;
}

.natural-feature {
    color: #16a085;
    margin: 0.5rem 0 0 0;
    font-size: 0.9rem;
    font-style: italic;
}

/* 费用记录样式 */
.expenses-summary {
    background-color: #fff9e6;
    border-left: 4px solid #f39c12;
}

.expenses-summary h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.expense-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #2c3e50;
    color: white;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.total-amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f39c12;
}

.expense-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background-color: white;
    border-radius: 4px;
    border: 1px solid #ecf0f1;
}

.expense-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.expense-category {
    background-color: white;
}

.expense-category h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #ecf0f1;
}

.expense-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.expense-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.expense-item:hover {
    background-color: #ecf0f1;
}

.expense-name {
    color: #555;
}

.expense-amount {
    font-weight: 600;
    color: #e74c3c;
}

/* 天气预报样式 */
.weather-section h4 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

/* 地图内天气预报样式 */
.weather-in-map {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.weather-in-map h5 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.weather-in-map .weather-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.weather-in-map .weather-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    align-items: center;
    padding: 0.75rem;
    text-align: left;
}

.weather-in-map .weather-item h5 {
    grid-column: 1 / -1;
    margin-bottom: 0.5rem;
}

.weather-in-map .weather-icon {
    font-size: 1.5rem;
    margin: 0;
}

.weather-in-map .weather-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.weather-in-map .weather-temp {
    font-size: 0.95rem;
    margin: 0;
}

.weather-in-map .weather-condition,
.weather-in-map .weather-wind {
    font-size: 0.85rem;
    margin: 0;
}

.weather-in-map .weather-tips {
    font-size: 0.8rem;
    margin: 0;
}

.weather-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.weather-item {
    background-color: #f0f8ff;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e3f2fd;
    transition: transform 0.3s;
}

.weather-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.weather-item h5 {
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.weather-icon {
    font-size: 2.5rem;
    margin: 0.5rem 0;
}

.weather-temp {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e74c3c;
    margin: 0.5rem 0;
}

.weather-condition {
    color: #3498db;
    font-weight: 500;
    margin: 0.25rem 0;
}

.weather-wind {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

.weather-tips {
    color: #27ae60;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* 进藏天气预报样式 */
.tibet-weather-summary {
    background-color: #fff9e6;
    border-left: 4px solid #f39c12;
}

.tibet-weather-summary h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.weather-summary {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
}

.tibet-weather-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.tibet-daily-weather {
    display: grid;
    gap: 0.75rem;
}

.tibet-weather-day {
    display: grid;
    grid-template-columns: 80px 100px 120px 100px 1fr;
    gap: 1rem;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    align-items: center;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.tibet-weather-day:hover {
    background-color: #e9ecef;
}

.tibet-date {
    font-weight: bold;
    color: #2c3e50;
}

.tibet-location {
    color: #3498db;
    font-weight: 500;
}

.tibet-temp {
    color: #e74c3c;
    font-weight: 600;
}

.tibet-condition {
    color: #555;
}

.tibet-tips {
    color: #27ae60;
    font-size: 0.85rem;
}

.equipment-list {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.equipment-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background-color: #e8f5e9;
    border-radius: 4px;
}

.equipment-check {
    color: #4caf50;
    font-weight: bold;
}

.tibet-warning {
    background-color: #fff3cd;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
}

.tibet-warning h5 {
    color: #856404;
    margin: 0 0 0.5rem 0;
}

.tibet-warning ul {
    margin: 0;
    padding-left: 1.5rem;
    color: #856404;
}

.tibet-warning li {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .map-container {
        height: 300px;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .route-info {
        grid-template-columns: 1fr 1fr;
    }
    
    .maps-section {
        grid-template-columns: 1fr;
    }
    
    .schedule-timeline {
        padding-left: 60px;
    }
    
    .schedule-time {
        left: -60px;
        width: 40px;
    }
    
    .natural-list {
        grid-template-columns: 1fr;
    }
    
    .expense-details {
        grid-template-columns: 1fr;
    }
    
    .expense-breakdown {
        grid-template-columns: 1fr;
    }
    
    .weather-grid {
        grid-template-columns: 1fr;
    }
    
    .tibet-weather-grid {
        grid-template-columns: 1fr;
    }
    
    .tibet-weather-day {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 0.5rem;
    }
    
    .tibet-weather-day > * {
        padding: 0.25rem 0;
    }
}