/* ==========================================================================
   基础重置与主布局
   ========================================================================== */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}
body, html { 
    height: 100%; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; 
    background: #fffbf7; 
    color: #475569; 
    overflow: hidden; 
}

/* 顶部大通栏 */
.main-header {
    height: 80px; 
    background: linear-gradient(135deg, #0f0f23 0%, #05050f 100%); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    padding: 0 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); 
    z-index: 100; 
    position: relative; 
    border-bottom: 4px solid #f97316; 
}

/* ✨ 【高级优化】标题字体及粗细深度美化 */
.concert-title { 
    font-family: system-ui, -apple-system, "BlinkMacSystemFont", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    font-size: 38px; 
    font-weight: 800;        /* 调整为 800 超粗体，增强视觉分量与现代海报高级感 */
    letter-spacing: 5px;    
    background: linear-gradient(to right, #ffffff 0%, #ffedd5 45%, #fed7aa 75%, #ffedd5 100%);
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    text-shadow: 0 2px 15px rgba(249, 115, 22, 0.45);
}
.header-logo {
    position: absolute; right: 32px; top: 50%; transform: translateY(-50%);
    width: 60px; height: 60px; border-radius: 50%; object-fit: cover; transition: transform 0.3s ease; cursor: pointer;
}
.header-logo:hover { transform: translateY(-50%) scale(1.08); border-color: #f97316; }

/* 主体布局布局 */
.app-layout { display: flex; height: calc(100vh - 80px); width: 100vw; }

/* ==========================================================================
   左侧侧边栏 & 初始欢迎视图
   ========================================================================== */
.sidebar { 
    width: 360px;           
    background: #ffffff; 
    border-right: 1px solid #ffedd5; 
    padding: 32px 24px; 
    display: flex; 
    flex-direction: column; 
    box-shadow: 6px 0 24px rgba(249, 115, 22, 0.04); 
    z-index: 10; 
    overflow-y: auto; 
}

.welcome-view { 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
    justify-content: center; 
    align-items: center;
    padding: 0 4px 60px 4px; 
}

/* 主欢迎语标题 */
.welcome-view .hint-title { 
    color: #0f172a; 
    font-size: 24px; 
    font-weight: 800; 
    text-align: center; 
    margin-bottom: 20px; 
    line-height: 1.5; 
    letter-spacing: 0.5px;
}

/* 提示描述文字 */
.welcome-view .hint-desc { 
    color: #64748b; 
    font-size: 15px; 
    text-align: center; 
    line-height: 1.8; 
    max-width: 280px;       
    margin-bottom: 40px; 
}

/* 总巡演数量胶囊标签 */
.total-badge { 
    width: 100%;
    max-width: 260px;
    padding: 14px 20px; 
    background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 100%); 
    color: #ea580c; 
    border: 1px solid rgba(251, 146, 60, 0.25); 
    border-radius: 30px; 
    font-weight: 800; 
    text-align: center; 
    font-size: 16px; 
    letter-spacing: 0.5px;
    box-shadow: 0 4px 18px rgba(234, 88, 12, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6); 
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.total-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(234, 88, 12, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   详情面板视图 & 返回总览按钮美化
   ========================================================================== */
.hidden { display: none !important; }

/* 返回总览微光胶囊 */
.back-btn { 
    background: #fff7ed; 
    border: 1px solid rgba(251, 146, 60, 0.18); 
    color: #ea580c; 
    font-size: 14px; 
    cursor: pointer; 
    font-weight: 700; 
    margin-bottom: 28px; 
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
    width: fit-content;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.04);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.back-btn:hover { 
    background: #ea580c;
    color: #ffffff;
    border-color: #ea580c;
    transform: translateX(-2px); 
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.2);
}
.back-icon { 
    width: 14px; 
    height: 14px; 
    display: inline-block; 
    fill: currentColor; 
    transition: transform 0.25s;
}

/* 详情头部 */
.info-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 2px solid #fff7ed; padding-bottom: 12px; }
.city-name { font-size: 24px; font-weight: 800; color: #1e293b; }

.status-wrapper { margin-bottom: 4px; }
.status-badge { 
    display: inline-block; background: #f97316; color: white; font-size: 16px; padding: 5px 14px; border-radius: 20px; font-weight: 700; box-shadow: 0 2px 8px rgba(249, 115, 22, 0.25); 
}

/* 详情信息流排版 */
.info-body { display: flex; flex-direction: column; gap: 20px; }
.info-item { font-size: 15px; }
.info-item .label { color: #64748b; display: block; margin-bottom: 8px; font-size: 15px; font-weight: 800; letter-spacing: 1px; }
.info-item .value.big-text { color: #1e293b; font-weight: 600; font-size: 17px; line-height: 1.5; white-space: pre-line; }

/* ==========================================================================
   动态票价与通知提示区块
   ========================================================================== */
.price-notice { 
    font-size: 14px; 
    font-weight: 700; 
    padding: 11px 14px; 
    border-radius: 8px; 
    margin-bottom: 14px; 
    line-height: 1.5; 
    white-space: pre-line; 
}
.notice-orange { background: #fff5f5; color: #e11d48; border-left: 4px solid #e11d48; box-shadow: 0 2px 4px rgba(225,29,72,0.02); }
.notice-blue { background: #f0fdf4; color: #16a34a; border-left: 4px solid #16a34a; box-shadow: 0 2px 4px rgba(22,163,74,0.02); }

.price-container { display: flex; flex-direction: column; gap: 10px; }
.price-row { display: flex; align-items: center; background: #fffcf9; padding: 10px 14px; border-radius: 8px; border: 1px solid #ffedd5; }
.row-svip { background: linear-gradient(to right, #fff7ed, #ffffff); border: 1px solid #fed7aa; box-shadow: 0 2px 6px rgba(234, 88, 12, 0.05); }

.current-price { color: #ea580c; font-size: 20px; font-weight: 800; font-family: "PingFang SC", sans-serif; }

.badge-early { font-size: 11px; color: #ea580c; background: #fff7ed; border: 1px solid #ffddd2; padding: 2px 6px; border-radius: 4px; margin-left: 8px; font-weight: 700; }
.badge-svip { font-size: 11px; color: #ffffff; background: #292524; border: 1px solid #1c1917; padding: 2.5px 7px; border-radius: 4px; margin-left: 8px; font-weight: 800; letter-spacing: 0.5px; box-shadow: 0 2px 4px rgba(0,0,0,0.15); }

.original-price { font-size: 13px; color: #94a3b8; margin-left: auto; font-weight: 500; text-decoration: line-through; }

/* ==========================================================================
   右侧高德地图与自定义坐标气泡
   ========================================================================== */
.map-container { flex: 1; height: 100%; background: #fafaf9; }
.custom-marker {
    position: relative; background: #f97316; color: white; padding: 6px 14px; border-radius: 20px;
    font-size: 12px; font-weight: 700; white-space: nowrap; box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
    border: 1.5px solid #ffffff; cursor: pointer; transform: translateY(-32px); transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.custom-marker:hover { transform: translateY(-38px) scale(1.08); background: #ea580c; box-shadow: 0 6px 20px rgba(234, 88, 12, 0.5); z-index: 999 !important; }
.custom-marker::after { content: ''; position: absolute; bottom: -32px; left: 50%; transform: translateX(-50%); width: 2px; height: 32px; background: #f97316; }
.custom-marker::before { content: ''; position: absolute; bottom: -32px; left: 50%; transform: translate(-50%, 50%); width: 6px; height: 6px; background: #f97316; border: 2px solid #ffffff; border-radius: 50%; box-shadow: 0 2px 6px rgba(249, 115, 22, 0.5); }

/* 高德自带信息弹窗基础重定义 */
.amap-info-content { border-radius: 14px !important; padding: 16px 22px !important; box-shadow: 0 12px 30px rgba(234, 12, 12, 0.18) !important; border: 1px solid #ffedd5 !important; }
.map-popup-station { font-size: 14px; font-weight: 800; color: #ea580c; margin-bottom: 6px; background: #fff7ed; width: fit-content; padding: 3px 8px; border-radius: 6px; }
.map-popup-title { font-weight: 700; color: #1e293b; font-size: 16px; margin-bottom: 6px; }
.map-popup-time { font-size: 15px; color: #475569; line-height: 1.5; }

/* ==========================================================================
   📱 移动端/手机端专属兼容适配 (最新精细调整优化版)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. 全局布局强制改为上下结构，禁止产生奇怪的双滚动条 */
    body, html {
        overflow: hidden !important; /* 手机端防止整体页面上下乱晃 */
        position: fixed;
        width: 100%;
        height: 100%;
    }
    
    .app-layout {
        flex-direction: column-reverse !important; /* 地图在上，详情在下 */
        height: calc(100% - 50px) !important; /* 扣除顶部导航的高度 */
        overflow: hidden !important;
    }

    /* 2. 缩减顶部大通栏的高度，多留空间给地图 */
    .main-header {
        height: 50px !important;
        padding: 0 12px !important;
    }
    .concert-title {
        font-size: 15px !important; 
        letter-spacing: 0.5px !important;
    }
    .header-logo {
        width: 30px !important;
        height: 30px !important;
    }

    /* 3. 【优化】扩大地图区块高度，从 45% 提升到 55%，保证看全中国地图 */
    .map-container {
        flex: none !important;
        width: 100% !important;
        height: 55vh !important; 
    }

    /* 4. 【优化】极简侧边栏（下方详细面板），缩减上下间距 */
    .sidebar {
        width: 100% !important;
        height: calc(45vh - 50px) !important; /* 动态计算剩余高度 */
        padding: 12px 16px !important; /* 缩小内边距 */
        box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.06) !important; 
        overflow-y: auto !important; /* 如果内容多，只在面板内部滚动 */
        background: #fff !important;
    }

    /* 5. 【优化】极致压缩欢迎界面的高度和字体，确保不卡字且紧凑 */
    .welcome-view {
        padding: 4px 0 !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
    }
    .welcome-view .hint-title {
        font-size: 16px !important; /* 缩小标题 */
        margin-bottom: 6px !important;
    }
    .welcome-view p {
        font-size: 13px !important;
        margin-bottom: 12px !important;
        color: #666;
    }
    .welcome-view .stage-badge {
        font-size: 12px !important;
        padding: 4px 12px !important;
    }

    /* 6. 返回按钮和城市标题微调 */
    .back-btn {
        margin-bottom: 10px !important;
        padding: 6px 12px !important;
        font-size: 13px !important;
    }
    .city-name {
        font-size: 18px !important;
    }

    /* 7. 调整高德地图自带的弹窗样式 */
    .amap-info-content {
        padding: 8px 10px !important;
        font-size: 12px !important;
    }
}