/* 线路详情Modal样式 - 遵循液态玻璃设计系统 */

/* Modal容器 - A类Modal，z-index: 1000 */
.route-detail-modal {
    position: absolute;
    top: 66px; /* 从微信header下方开始 */
    left: 0;
    right: 0;
    bottom: 80px; /* 为底部功能栏留出空间 */
    background: #FFFFFF;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}


/* 内容区域 - 可滚动 */
.route-detail-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    background: #FFFFFF;
}

/* 线路预览图 - 200px高度 */
.route-detail-preview {
    height: 200px;
    width: 100%;
    overflow: hidden;
    background: #F3F4F6;
    position: relative;
}

.route-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 线路基本信息区域 */
.route-detail-info {
    padding: 20px;
}

/* 线路标题 - 24px字体 */
.route-detail-name {
    font-size: 24px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 12px 0;
    line-height: 1.3;
}


/* 基本信息区域 - 每行20px间距 */
.route-detail-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #374151;
}

.meta-item i {
    color: #6B7280;
    width: 16px;
    text-align: center;
}

/* 分割线 */
.route-detail-divider {
    height: 1px;
    background: #E5E7EB;
    margin: 20px 0;
}

/* 线路介绍区域 */
.route-detail-description h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 12px 0;
}

.route-detail-description p {
    font-size: 15px;
    color: #4B5563;
    line-height: 1.6;
    margin: 0;
}

/* 途经展区区域 */
.route-detail-waypoints h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 16px 0;
}

/* 景点列表 */
.waypoints-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 楼层分组标题 */
.floor-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin: 20px 0 12px 0;
    padding: 8px 12px;
    background: #F9FAFB;
    border-radius: 8px;
    border-left: 4px solid #007AFF;
}

.floor-section-title:first-child {
    margin-top: 0;
}

/* 景点卡片 - 60px高度 */
.waypoint-card {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 60px;
    box-sizing: border-box;
}

.waypoint-card:hover {
    background: #F3F4F6;
    border-color: #D1D5DB;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.waypoint-number {
    width: 24px;
    height: 24px;
    background: #007AFF;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.waypoint-info {
    flex: 1;
    min-width: 0;
}

.waypoint-name {
    font-size: 15px;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.waypoint-details {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #6B7280;
    flex-wrap: wrap;
}

.waypoint-floor,
.waypoint-duration {
    display: flex;
    align-items: center;
    gap: 4px;
}

.waypoint-description {
    font-size: 13px;
    color: #6B7280;
    margin: 4px 0 0 0;
    line-height: 1.3;
}

/* 景点卡片图片预览 */
.waypoint-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #E5E7EB;
    background: #F3F4F6;
}

/* 底部操作区 - 80px高度 */
.route-detail-actions {
    height: 80px;
    background: #FFFFFF;
    border-top: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    flex-shrink: 0;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
}

.route-detail-back-list-btn,
.route-detail-start-btn {
    flex: 1;
    height: 48px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.route-detail-back-list-btn {
    background: #6B7280;
    color: #FFFFFF;
}

.route-detail-back-list-btn:hover {
    background: #4B5563;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.route-detail-start-btn {
    background: #007AFF;
    color: #FFFFFF;
}

.route-detail-start-btn:hover {
    background: #0056CC;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 122, 255, 0.3);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .route-detail-info {
        padding: 16px;
    }
    
    .route-detail-name {
        font-size: 22px;
    }
    
    .meta-item {
        font-size: 15px;
    }
    
    .route-detail-actions {
        padding: 0 16px;
    }
    
    .waypoint-card {
        padding: 10px 12px;
    }
}

/* 滚动条样式 */
.route-detail-content::-webkit-scrollbar {
    width: 4px;
}

.route-detail-content::-webkit-scrollbar-track {
    background: #F3F4F6;
}

.route-detail-content::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 2px;
}

.route-detail-content::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

/* 加载状态 */
.route-detail-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #6B7280;
    font-size: 16px;
}

.route-detail-loading i {
    margin-right: 8px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}