/* ============================================
   华川驾训校区分布查询系统 - 全局样式
   ============================================ */

:root {
    --primary-blue: #2563eb;
    --primary-green: #10b981;
}

#container { 
    width: 100%; 
    height: 100vh; 
}

/* 进度条样式 */
.progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.progress-container {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 380px;
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin: 16px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 14px;
    color: #6b7280;
    margin-top: 8px;
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 校区标签样式 */
.school-label {
    display: flex; 
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 10px; 
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(8px);
    white-space: nowrap; 
    font-size: 13px; 
    font-weight: 600;
    color: #1e293b; 
    gap: 8px;
}

/* 类型标签 */
.type-tag { 
    padding: 1px 10px; 
    border-radius: 12px; 
    font-size: 11px; 
    font-weight: 600; 
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
}

.tag-direct { background-color: #dbeafe; color: #1e40af; }
.tag-partner { background-color: #d1fae5; color: #065f46; }

.tag-direct-solid { background-color: rgba(255,255,255,0.2); color: white; border: 1px solid rgba(255,255,255,0.4); }
.tag-partner-solid { background-color: rgba(255,255,255,0.2); color: white; border: 1px solid rgba(255,255,255,0.4); }

/* 站点标签 */
.station-label {
    background: white; 
    border: 1px solid #cbd5e1; 
    padding: 1px 4px;
    border-radius: 4px; 
    font-size: 10px; 
    white-space: nowrap;
    color: #475569; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    pointer-events: auto; 
    cursor: pointer;
}

/* 高德地图自定义样式 */
.amap-info-content { 
    padding: 0 !important; 
    border-radius: 16px !important; 
    border: none !important; 
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) !important; 
    background: white;
    pointer-events: auto !important; 
}

.amap-marker-label { border: none !important; background-color: transparent !important; padding: 0 !important; }
.amap-info-close { top: 12px !important; right: 12px !important; color: white !important; z-index: 20; }
.amap-logo, .amap-copyright { display: none !important; }

/* 自定义滚动条 */
.custom-scroll {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.custom-scroll::-webkit-scrollbar { width: 5px; }
.custom-scroll::-webkit-scrollbar-track { background: #f1f5f9; }
.custom-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

/* 动画效果 */
@keyframes fadeInScale {
    from { opacity: 0; transform: translateY(10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.info-animate { animation: fadeInScale 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-fade-in { animation: fadeIn 0.3s ease-out forwards; }

/* 调试面板样式 */
.debug-panel {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 350px;
    max-height: 80vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    overflow-y: auto;
    display: none;
}

.debug-panel.show { display: block; }

.debug-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.debug-title {
    font-size: 14px;
    font-weight: bold;
}

.debug-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.2s;
}

.debug-close:hover { background: rgba(255, 255, 255, 0.3); }

.debug-content {
    padding: 16px;
    font-size: 12px;
    line-height: 1.6;
}

.debug-item {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.debug-item:last-child { border-bottom: none; }

.debug-label {
    color: #6b7280;
    font-weight: 600;
    margin-right: 8px;
}

.debug-value {
    color: #1e293b;
    word-break: break-all;
}

.debug-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid #e5e7eb;
}

.debug-section-title {
    color: #667eea;
    font-weight: bold;
    margin-bottom: 8px;
}

/* 路线Tab样式 */
.route-tab-active {
    background-color: #2563eb !important;
    color: white !important;
    border-color: #2563eb !important;
}
