/* 路线详情页专用样式 */

/* 浮动操作按钮 */
.floating-actions {
    position: absolute;  /* 改为absolute定位 */
    top: 54px;
    left: 0;
    right: 0;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    z-index: 100;
    pointer-events: none;  /* 让整个容器不影响点击 */
}

.action-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
    pointer-events: auto;  /* 恢复按钮的点击 */
}

.action-button:active {
    transform: scale(0.95);
}

/* 路线封面轮播图 */
.route-cover-swiper {
    height: 300px;
}

.route-cover-swiper .swiper-slide {
    width: 100%;
    height: 100%;
}

.route-cover-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.route-cover-swiper .swiper-pagination {
    bottom: 20px;
}

.route-cover-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.8);
    opacity: 0.5;
}

.route-cover-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: white;
}

/* 路线信息卡片 */
.route-info-card {
    position: relative;
    margin-top: -30px;
    background: white;
    border-radius: 30px 30px 0 0;
    padding: 24px 20px;
    z-index: 2;
}

.route-header {
    margin-bottom: 24px;
}

.route-title-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.route-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
    padding-right: 16px;
}

.route-badge {
    padding: 6px 12px;
    background: var(--background-light);
    border-radius: 20px;
    font-size: 12px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.route-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 16px;
    background: var(--background-light);
    border-radius: var(--border-radius-md);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-item span {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-item strong {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
}

/* 路线描述 */
.route-description {
    margin-bottom: 24px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.route-description p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.route-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 12px;
    background: var(--background-light);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* 地图部分 */
.route-map-section {
    margin-bottom: 24px;
}

.map-container {
    position: relative;
    height: 400px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

#map {
    width: 100%;
    height: 100%;
}

.map-overlay {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1;
}

.map-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.map-action-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}

.map-action-button:active {
    transform: scale(0.95);
}

/* 自定义地图标记样式 */
.amap-simple-marker {
    cursor: pointer;
    transition: transform 0.2s;
}

.amap-simple-marker:hover {
    transform: scale(1.1);
}

.amap-simple-marker .amap-simple-marker-label {
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

/* 点位详情弹窗 */
.point-detail-modal {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    width: 300px;
    box-shadow: var(--shadow-md);
}

.point-detail-header {
    padding: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.point-detail-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px;
}

.point-detail-header .distance {
    font-size: 12px;
    color: var(--text-light);
}

.point-detail-content {
    padding: 16px;
}

.point-detail-content .description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.facilities h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.facility-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.facility-tag {
    padding: 4px 8px;
    background: var(--background-light);
    border-radius: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

.info-item {
    margin-bottom: 8px;
    font-size: 14px;
}

.info-item label {
    color: var(--text-secondary);
    margin-right: 8px;
}

.point-detail-actions {
    padding: 16px;
    border-top: 1px solid rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
}

.point-detail-actions .btn-navigate {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.2s;
}

.point-detail-actions .btn-navigate:active {
    transform: scale(0.98);
}

/* 自定义路线样式 */
.amap-lib-walking path {
    stroke: var(--primary-color) !important;
    stroke-width: 6px !important;
    stroke-opacity: 0.8 !important;
}

.amap-lib-walking .amap-lib-walking-through {
    background-color: var(--primary-color) !important;
}

/* 景点列表 */
.points-section {
    margin-bottom: 80px;
}

/* 景点列表样式更新 */
.points-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.point-item {
    background: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    transition: transform 0.2s;
}

.point-item:active {
    transform: scale(0.98);
}

.point-image {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    position: relative;
}

.point-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.point-number {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    background: rgba(59, 127, 255, 0.9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.point-info {
    flex: 1;
    min-width: 0;
}

.point-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--text-primary);
}

.point-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 底部弹出式详情页 */
.point-detail-drawer {
    position: absolute;  /* 改为absolute定位 */
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.point-detail-drawer.active {
    transform: translateY(0);
}

.drawer-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border-radius: 20px 20px 0 0;
    position: sticky;
    top: 0;
    z-index: 2;
}

.drawer-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.close-drawer {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-secondary);
    padding: 0;
    cursor: pointer;
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 20px;
    background: white;
}

.point-images-swiper {
    height: 200px;
    margin-bottom: 20px;
}

.point-images-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.point-info-content {
    padding: 0 20px;
}

.distance-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-size: 14px;
    margin-bottom: 16px;
}

.point-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.point-facilities h4,
.point-open-info h4,
.point-tips h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--text-primary);
}

.facility-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.facility-tag {
    padding: 6px 12px;
    background: var(--background-light);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
}

.point-open-info p,
.point-tips p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 20px;
}

.drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.navigate-btn {
    width: 100%;
    height: 44px;
    background: var(--primary-color);
    border: none;
    border-radius: 22px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s;
}

.navigate-btn:active {
    transform: scale(0.98);
}

/* 移除原有的底部导航栏样式 */
.bottom-bar {
    display: none;
}

.point-item > .bi-chevron-right {
    color: var(--text-light);
    font-size: 20px;
    flex-shrink: 0;
}

.btn-navigate {
    padding: 6px 12px;
    background: var(--primary-color);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.point-item > .bi-chevron-right {
    color: var(--text-light);
    font-size: 20px;
    flex-shrink: 0;
}

/* 底部导航栏 */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: white;
    border-top: 1px solid rgba(0,0,0,0.1);
    z-index: 100;
}

.bottom-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bottom-actions .action-button {
    flex-direction: column;
    width: auto;
    height: auto;
    background: none;
    box-shadow: none;
    gap: 4px;
    padding: 0;
}

.bottom-actions .action-button i {
    font-size: 24px;
}

.bottom-actions .action-button span {
    font-size: 12px;
    color: var(--text-secondary);
}

.primary-button {
    flex: 1;
    height: 44px;
    background: var(--primary-color);
    border: none;
    border-radius: 22px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    transition: transform 0.2s;
}

.primary-button:active {
    transform: scale(0.98);
} 

/* 确保设备框架正确定位 */
.device-frame {
    position: relative;
    width: 100%;
    max-width: 414px;
    margin: 0 auto;
    height: 100vh;
    overflow: hidden;
    background: white;
}

/* 主内容区域滚动 */
.main-content {
    position: relative;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: env(safe-area-inset-bottom);
} 