/* ===== 全局样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ===== Hero Banner ===== */
.hero-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    position: relative;
}

.hero-overlay {
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 1rem;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    border-radius: 9999px;
    color: white;
    font-size: 0.875rem;
    border: 1px solid rgba(255,255,255,0.3);
}

/* ===== 导航标签 ===== */
.nav-scroll {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.nav-scroll::-webkit-scrollbar {
    display: none;
}

.nav-tab {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-tab:hover {
    background: #f3f4f6;
    color: #374151;
}

.nav-tab.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* ===== Tab Content ===== */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

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

/* ===== Section Title ===== */
.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.section-title i {
    font-size: 1.5rem;
}

.section-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

/* ===== Overview Cards ===== */
.overview-card {
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* ===== Timeline Overview ===== */
.timeline-overview {
    position: relative;
    padding-left: 2rem;
}

.timeline-overview::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: linear-gradient(to bottom, #f97316, #22c55e, #ef4444, #ef4444, #3b82f6, #a855f7, #eab308);
    border-radius: 1px;
}

.timeline-item-overview {
    position: relative;
    padding: 0.75rem 0;
}

.timeline-dot {
    position: absolute;
    left: -1.625rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
}

.timeline-content-overview {
    padding-left: 0.5rem;
}

.time-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ===== Day Cards ===== */
.day-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.day-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.day-card-header {
    padding: 0.875rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.day-card-body {
    padding: 1.25rem;
}

/* ===== Food Recommend ===== */
.food-recommend {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    background: #fafafa;
    border-radius: 0.75rem;
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
}

.food-recommend:hover {
    background: #fff7ed;
    border-color: #fed7aa;
}

.food-time {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: #9ca3af;
    padding-top: 0.125rem;
    min-width: 5.5rem;
}

.food-info {
    flex: 1;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #3b82f6;
    margin-top: 0.375rem;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #1d4ed8;
}

/* ===== Food Grid Cards ===== */
.food-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.food-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.food-card-header {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.food-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.food-card-body {
    padding: 0 1.25rem 1rem;
}

.food-card-tag {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.625rem;
    font-weight: 500;
}

.food-card-distance {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.5rem;
}

.food-card-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: #eff6ff;
    color: #3b82f6;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    text-decoration: none;
    margin-top: 0.75rem;
    transition: all 0.2s;
}

.food-card-nav:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

/* ===== Ticket Cards ===== */
.ticket-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.ticket-status {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.ticket-status.confirmed {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
}

.ticket-status.pending {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.ticket-body {
    padding: 1.25rem;
}

.ticket-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ticket-station {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.ticket-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    flex: 1;
}

.ticket-info {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #e5e7eb;
    font-size: 0.875rem;
    color: #6b7280;
}

/* ===== Map Cards ===== */
.map-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: white;
    border-radius: 1rem;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.map-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.map-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.map-nav-btn {
    margin-left: auto;
    padding: 0.375rem 1rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
}

.map-nav-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* ===== 美食分布地图 ===== */
.map-container-wrapper {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.map-header {
    padding: 0.875rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f3f4f6;
    background: #fafafa;
}

.map-legend-circle {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 1.5px dashed #a855f7;
    border-radius: 50%;
    margin-right: 2px;
    vertical-align: middle;
}

.map-legend-circle::after {
    content: '距离圈';
    margin-left: 4px;
    font-size: 12px;
    color: #6b7280;
    vertical-align: middle;
}

.food-map-container {
    width: 100%;
    height: 480px;
}

@media (max-width: 640px) {
    .food-map-container {
        height: 360px;
    }
}

.map-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid #f3f4f6;
    background: #fafafa;
}

.map-ctrl-btn {
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.map-ctrl-btn:hover {
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    transform: translateY(-1px);
}

/* 酒店标记 */
.amap-marker-hotel {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-pulse {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.25);
    animation: markerPulse 2s ease-out infinite;
}

@keyframes markerPulse {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

.marker-hotel-icon {
    position: relative;
    z-index: 2;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
    border: 2px solid white;
}

/* 美食店标记 */
.amap-marker-food {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.amap-marker-food:hover {
    transform: scale(1.15);
}

.marker-food-icon {
    width: 32px;
    height: 32px;
    background: white;
    border: 2px solid var(--marker-color, #ef4444);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.marker-food-icon > * {
    transform: rotate(45deg);
}

.marker-food-label {
    margin-top: 2px;
    padding: 1px 6px;
    background: rgba(255,255,255,0.92);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 高德地图信息窗体样式覆盖 */
.amap-info-content {
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12) !important;
    border: none !important;
}

.amap-info-sharp {
    display: none !important;
}

/* ===== 响应式 ===== */
@media (max-width: 640px) {
    .hero-banner {
        padding: 0;
    }
    .hero-banner .relative {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    .hero-banner h1 {
        font-size: 1.75rem;
    }
    .ticket-route {
        flex-direction: column;
        gap: 0.5rem;
    }
    .ticket-arrow {
        flex-direction: row;
        width: 100%;
        justify-content: center;
    }
    .food-recommend {
        flex-direction: column;
        gap: 0.5rem;
    }
    .food-time {
        min-width: auto;
    }
}