/* ============================================================
   行程时间轴详情页 - 样式
   设计风格：深空蓝 + 科技蓝 + 鎏金
   ============================================================ */

:root {
    --deep-blue: #071D49;
    --tech-blue: #0D6EFD;
    --tech-blue-light: #3B8BFF;
    --gold: #D4AF37;
    --white: #FFFFFF;
    --bg-dark: #020C24;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255,255,255,0.7);
    --text-muted: rgba(255,255,255,0.45);
    --border-subtle: rgba(255,255,255,0.06);
    --radius-sm: 8px;
    --radius-md: 12px;
    --transition: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "PingFang SC","Microsoft YaHei","HarmonyOS Sans",-apple-system,sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }

/* ============================================================
   导航栏
   ============================================================ */
.header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(2,12,36,0.85); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle); padding: 0 24px;
}
.nav-container {
    max-width: 1440px; margin: 0 auto; display: flex;
    align-items: center; justify-content: space-between; height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: var(--white); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links > a, .nav-links .nav-dropdown > a {
    font-size: 14px; color: var(--text-secondary); padding: 8px 0;
    transition: color var(--transition); white-space: nowrap;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active, .nav-links .nav-dropdown > a.active { color: var(--tech-blue-light); font-weight: 600; }
.nav-dropdown { position: relative; }
.nav-dropdown .arrow { font-size: 10px; margin-left: 4px; }
.dropdown-menu {
    position: absolute; top: 100%; left: 0; min-width: 130px;
    background: rgba(6,14,43,0.95); border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm); padding: 8px 0; opacity: 0; visibility: hidden;
    transform: translateY(8px); transition: all var(--transition); backdrop-filter: blur(20px);
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 8px 20px; font-size: 13px; color: var(--text-secondary); transition: all var(--transition); }
.dropdown-menu a:hover { background: rgba(13,110,253,0.1); color: var(--tech-blue-light); }
.nav-actions { display: flex; align-items: center; gap: 16px; font-size: 13px; }
.nav-actions a { color: var(--text-secondary); transition: color var(--transition); }
.nav-actions a:hover { color: var(--white); }
.btn-register { padding: 8px 20px; background: linear-gradient(135deg, var(--tech-blue), #2563EB); color: var(--white)!important; border-radius: 20px; font-weight: 600; }

/* ============================================================
   页面主体
   ============================================================ */
.page-main { padding-top: 64px; }

/* ============================================================
   面包屑
   ============================================================ */
.breadcrumb {
    max-width: 1100px; margin: 20px auto 0; padding: 0 24px;
    display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted);
}
.back-link { display: flex; align-items: center; gap: 4px; color: var(--text-muted); transition: color var(--transition); }
.back-link:hover { color: var(--tech-blue-light); }
.breadcrumb .current { color: var(--white); }

/* ============================================================
   播放提示
   ============================================================ */
.play-hint {
    max-width: 1100px; margin: 16px auto; padding: 0 24px;
    display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted);
}
.play-hint svg { flex-shrink: 0; color: var(--tech-blue-light); }

/* ============================================================
   时间轴
   ============================================================ */
.timeline-section {
    max-width: 1100px; margin: 0 auto; padding: 0 24px;
    display: flex; flex-direction: column; gap: 20px;
}

.tl-day-group {
    background: rgba(255,255,255,0.02); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md); padding: 20px 24px;
}

.tl-day-label {
    font-size: 13px; font-weight: 700; color: var(--gold);
    letter-spacing: 2px; text-transform: uppercase;
    margin-bottom: 16px; padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
}

.tl-track {
    display: flex; align-items: center; gap: 0;
    overflow-x: auto; padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.tl-track::-webkit-scrollbar { height: 3px; }
.tl-track::-webkit-scrollbar-track { background: transparent; }
.tl-track::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }

/* 节点 */
.tl-node {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 0 2px; min-width: 76px; position: relative; transition: all 0.3s ease;
}

.tl-time {
    font-size: 12px; font-weight: 600; color: var(--text-muted); white-space: nowrap;
    transition: color 0.3s;
}

.tl-dot {
    width: 14px; height: 14px; border-radius: 50%;
    background: rgba(255,255,255,0.1); border: 2px solid rgba(255,255,255,0.2);
    transition: all 0.4s ease; position: relative; z-index: 2;
}

.tl-label {
    font-size: 12px; color: var(--text-muted); white-space: nowrap;
    text-align: center; transition: color 0.3s; max-width: 90px;
    overflow: hidden; text-overflow: ellipsis;
}

/* 激活状态 */
.tl-node.active .tl-dot, .tl-node.done .tl-dot {
    background: var(--tech-blue); border-color: var(--tech-blue-light);
    box-shadow: 0 0 14px rgba(13,110,253,0.5);
}
.tl-node.active .tl-time, .tl-node.done .tl-time { color: var(--text-secondary); }
.tl-node.active .tl-label, .tl-node.done .tl-label { color: var(--white); font-weight: 600; }

/* 高亮终点 */
.tl-node.highlight .tl-dot {
    background: var(--gold); border-color: var(--gold);
    box-shadow: 0 0 18px rgba(212,175,55,0.6);
    animation: pulseDot 1.5s ease-in-out infinite;
}
.tl-node.highlight .tl-label { color: var(--gold); font-weight: 700; }
@keyframes pulseDot {
    0%,100% { box-shadow: 0 0 10px rgba(212,175,55,0.4); }
    50% { box-shadow: 0 0 24px rgba(212,175,55,0.8); }
}

/* 箭头连接 */
.tl-arrow {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 0 4px; min-width: 32px; position: relative; margin-bottom: 24px;
}
.tl-arrow::before {
    content: ''; width: 100%; height: 2px; background: rgba(255,255,255,0.08);
    position: absolute; top: 22px; left: 0;
}
.tl-arrow.done::before { background: var(--tech-blue-light); }
.tl-arrow span { font-size: 10px; color: var(--text-muted); white-space: nowrap; z-index: 1; }

/* ============================================================
   控制面板 + 温馨提示
   ============================================================ */
.control-section { padding: 20px 0; }
.control-inner {
    max-width: 1100px; margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}

.control-card {
    background: rgba(255,255,255,0.02); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md); padding: 24px;
}

/* 播放控制 */
.player-card { display: flex; flex-direction: column; gap: 20px; align-items: center; }

.player-progress { width: 100%; }
.progress-track {
    width: 100%; height: 4px; background: rgba(255,255,255,0.06);
    border-radius: 2px; overflow: hidden; margin-bottom: 10px;
}
.progress-fill {
    height: 100%; width: 0%; background: linear-gradient(90deg, var(--tech-blue), var(--tech-blue-light));
    border-radius: 2px; transition: width 0.5s ease;
}
.progress-label { text-align: center; font-size: 14px; color: var(--text-secondary); font-weight: 600; }

.player-btns { display: flex; align-items: center; gap: 16px; }
.p-btn {
    width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border-subtle);
    border-radius: 50%; color: var(--text-secondary); cursor: pointer;
    transition: all var(--transition);
}
.p-btn:hover { color: var(--white); background: rgba(13,110,253,0.1); border-color: rgba(13,110,253,0.3); }
.p-btn-main {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--tech-blue), #2563EB);
    color: var(--white); border: none;
    box-shadow: 0 4px 16px rgba(13,110,253,0.3);
}
.p-btn-main:hover { transform: scale(1.05); box-shadow: 0 6px 24px rgba(13,110,253,0.45); }

/* 温馨提示 */
.tips-card { display: flex; flex-direction: column; gap: 14px; }
.tips-title { font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.tips-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-secondary); }
.tips-icon { font-size: 18px; }

/* ============================================================
   图片廊
   ============================================================ */
.gallery-section {
    max-width: 1100px; margin: 0 auto; padding: 0 24px 60px;
}
.gallery-header {
    text-align: center; font-size: 16px; font-weight: 600; color: var(--white);
    padding: 16px 0 20px;
    border-top: 1px solid linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.gallery-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}

.gallery-card {
    background: rgba(255,255,255,0.02); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md); overflow: hidden; transition: all var(--transition);
}
.gallery-card:hover { border-color: rgba(13,110,253,0.15); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }

.gallery-img {
    width: 100%; height: 160px; background-size: cover; background-position: center;
    position: relative;
}
.gallery-img::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(2,12,36,0.6));
}

.gallery-cap { padding: 10px 12px; font-size: 13px; color: var(--text-secondary); text-align: center; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 900px) {
    .control-inner { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .gallery-grid { grid-template-columns: 1fr; }
    .tl-track { padding-bottom: 4px; }
}
