/* =========================================
   1. Global Variables & Colors
   ========================================= */
:root {
    /* Stage Colors (对应登山的5个阶段) */
    --col-stage-1: #3498db; /* Blue - Foundation */
    --col-stage-2: #2ecc71; /* Green - Bridge */
    --col-stage-3: #f1c40f; /* Yellow - Advanced */
    --col-stage-4: #e67e22; /* Orange - Sprint */
    --col-stage-5: #9b59b6; /* Purple - Summit */
    
    --bg-dark: #2c3e50;
    --text-dark: #2c3e50;
    --text-grey: #7f8c8d;
}

/* =========================================
   2. Hero Section
   ========================================= */
.curr-hero {
    background-color: var(--bg-dark);
    color: #fff;
    padding: 140px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-tag {
    color: var(--col-stage-3);
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: block;
}

.hero-title {
    color: #fff;
    font-size: 3.5rem;
    margin-bottom: 30px;
    line-height: 1.2;
}

.hero-desc {
    max-width: 700px;
    margin: 0 auto;
    color: #bdc3c7;
    font-size: 1.2rem;
    line-height: 1.6;
}

.rocket-path-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
    pointer-events: none;
}

/* =========================================
   3. Static Mountain Desktop (静止全景登山图)
   ========================================= */
.static-mountain-section {
    display: block;
    width: 100%;
    height: 900px; /* 固定高度，保证16:9图片完整显示 */
    background: #f0f8ff;
    position: relative;
    overflow: hidden;
}

.static-mountain-wrapper {
    width: 100%;
    height: 100%;
    /* 背景图由 HTML 内联样式加载 */
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    position: relative;
}

.mountain-overlay-title {
    position: absolute;
    top: 40px; left: 40px;
    background: rgba(255,255,255,0.9);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
}
.mountain-overlay-title h2 { margin: 0; font-size: 1.5rem; color: var(--bg-dark); }
.mountain-overlay-title p { margin: 0; font-size: 0.8rem; color: #666; }

/* --- 营地定位点 (Camp Spots) --- */
.camp-spot {
    position: absolute;
    z-index: 10;
    cursor: pointer;
    /* 默认位置，下面具体定义 */
}

/* 核心定位：根据“左低右高”的山势分布 */
.spot-1 { bottom: 10%; left: 15%; }  /* Base Camp (左下) */
.spot-2 { bottom: 30%; left: 35%; }  /* Climb (左中) */
.spot-3 { bottom: 50%; left: 50%; }  /* Cliff (正中) */
.spot-4 { bottom: 70%; left: 65%; }  /* Sprint (右中) */
.spot-5 { top: 12%; right: 15%; }    /* Summit (右上) */

/* 圆点样式 */
.camp-dot {
    width: 50px; height: 50px;
    background: #fff;
    border: 3px solid var(--bg-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.6); /* 光晕 */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.camp-dot i { color: var(--bg-dark); font-size: 1.2rem; }

/* 皇冠特殊样式 */
.summit-dot { border-color: var(--col-stage-3); background: var(--col-stage-3); }
.summit-dot i { color: #fff; }

.camp-spot:hover .camp-dot,
.camp-spot.force-hover .camp-dot { 
    transform: scale(1.3); 
    background: var(--bg-dark);
    border-color: var(--bg-dark);
}
.camp-spot:hover .camp-dot i,
.camp-spot.force-hover .camp-dot i { color: #fff; }

/* Popover (悬浮卡片) */
.camp-popover {
    position: absolute;
    bottom: 65px; /* 在圆点上方 */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fff;
    width: 240px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none; /* 默认不挡鼠标 */
    text-align: center;
    border: 1px solid #eee;
}
/* 小三角 */
.camp-popover::after {
    content: ''; position: absolute; bottom: -8px; left: 50%; margin-left: -8px;
    border-width: 8px 8px 0; border-style: solid; border-color: #fff transparent transparent;
}

/* 显示逻辑 */
.camp-spot:hover .camp-popover,
.camp-spot.force-hover .camp-popover {
    opacity: 1; visibility: visible; 
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.camp-popover h4 { font-size: 1.1rem; margin: 0 0 8px 0; color: var(--bg-dark); }
.camp-popover p { font-size: 0.85rem; color: #666; margin: 8px 0 0 0; line-height: 1.5; }
.camp-popover .link-ivy { display: block; margin-top: 8px; font-size: 0.8rem; color: var(--col-stage-5); text-decoration: underline; }

/* 徽章 */
.badge { font-size: 0.75rem; color: #fff; padding: 3px 8px; border-radius: 4px; display: inline-block; font-family: 'Oswald', sans-serif; }
.badge.red { background: #e74c3c; }
.badge.orange { background: #e67e22; }
.badge.yellow { background: #f1c40f; }
.badge.blue { background: #3498db; }
.badge.purple { background: #9b59b6; }

/* --- 宇航员定位 Pin (Animation) --- */
.user-pin {
    position: absolute;
    width: 60px; height: 60px;
    background: var(--bg-dark);
    border-radius: 50% 50% 5px 50%; /* 水滴形 */
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    z-index: 20;
    
    /* 初始状态：隐藏在屏幕外 */
    opacity: 0;
    transform: scale(0) rotate(-45deg);
    transition: all 1s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* 弹性动画 */
}

.user-pin .pin-label {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #e74c3c;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    font-weight: 700;
}

.user-pin .pin-avatar { transform: rotate(45deg); } /* 修正图标角度 */

/* 激活状态 */
.user-pin.visible { opacity: 1; transform: scale(1) rotate(-45deg); }

/* 飞行的目标位置 (稍微在圆点上方一点) */
.pin-at-stage-1 { bottom: 20%; left: 15%; }
.pin-at-stage-2 { bottom: 40%; left: 35%; }
.pin-at-stage-3 { bottom: 60%; left: 50%; }
.pin-at-stage-4 { bottom: 80%; left: 65%; }
.pin-at-stage-5 { top: 2%; right: 15%; }


/* =========================================
   4. Mobile Timeline (手机端)
   ========================================= */
.mobile-timeline-section { display: none; }

@media (max-width: 768px) {
    .static-mountain-section { display: none; } /* 隐藏电脑版 */
    .mobile-timeline-section { 
        display: block; 
        padding: 60px 0;
        /* 背景图由 HTML 内联加载 */
        background-size: cover;
        min-height: 100vh;
    }
    
    .timeline-container {
        position: relative;
        padding-left: 20px;
    }
    
    .timeline-line {
        position: absolute;
        top: 20px; bottom: 20px; left: 35px;
        width: 2px;
        background: #ddd;
        z-index: 1;
    }
    
    .timeline-card {
        position: relative;
        margin-bottom: 30px;
        padding-left: 50px;
        background: rgba(255,255,255,0.8); /* 稍微透明 */
        backdrop-filter: blur(5px);
        border-radius: 8px;
        padding: 15px 15px 15px 60px; /* 左边留大点给圆点 */
        transition: all 0.3s;
        border: 2px solid transparent; /* 预留高亮边框 */
    }
    
    /* 手机端高亮特效 */
    .timeline-card.active-highlight {
        border-color: #e67e22;
        background: #fff;
        transform: scale(1.05);
        box-shadow: 0 10px 30px rgba(230, 126, 34, 0.3);
        z-index: 10;
    }

    .dot {
        position: absolute;
        left: 20px; /* 调整圆点位置 */
        top: 50%; transform: translateY(-50%);
        width: 32px; height: 32px;
        border-radius: 50%;
        background: #fff;
        border: 3px solid var(--bg-dark);
        display: flex;
        justify-content: center;
        align-items: center;
        font-weight: 700;
        font-size: 0.8rem;
        z-index: 2;
    }
    
    /* Stage Colors */
    .stage-1 { border-color: var(--col-stage-1); color: var(--col-stage-1); }
    .stage-2 { border-color: var(--col-stage-2); color: var(--col-stage-2); }
    .stage-3 { border-color: var(--col-stage-3); color: var(--col-stage-3); }
    .stage-4 { border-color: var(--col-stage-4); color: var(--col-stage-4); }
    .stage-5 { border-color: var(--col-stage-5); background: var(--col-stage-5); color: #fff; }

    .content h4 { margin: 0 0 5px 0; font-size: 1rem; color: var(--bg-dark); }
    .tag { font-size: 0.7rem; background: #eee; padding: 2px 6px; border-radius: 4px; color: #555; }
    .tag.gold { background: #f1c40f; color: #fff; }
}

/* =========================================
   5. Blueprint Section (修复表格样式)
   ========================================= */
.blueprint-section {
    padding: 80px 0;
    background-color: #fff;
    border-top: 1px solid #eee;
}

.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 2.2rem; color: var(--bg-dark); margin-bottom: 10px; }
.section-header p { color: var(--text-grey); font-size: 1.1rem; }

.comparison-table-wrapper {
    overflow-x: auto; /* 允许横向滚动 */
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    background: #fff;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px; /* 强制最小宽度，防止手机上挤成一团 */
}

.comparison-table th {
    padding: 20px;
    text-align: left;
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    border: none;
}

.comparison-table th:first-child { background: var(--bg-dark); }
.comparison-table th.col-blue { background: var(--col-stage-1); }
.comparison-table th.col-sky { background: var(--col-stage-4); }

.comparison-table td {
    padding: 25px;
    vertical-align: top;
    border-bottom: 1px solid #eee;
    line-height: 1.6;
}

.td-header {
    background: #f9f9f9;
    border-right: 1px solid #eee;
    width: 15%;
}

.syntax-badge {
    display: inline-block;
    background: var(--bg-dark);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.col-blue { background-color: rgba(52, 152, 219, 0.03); border-right: 1px solid #eee; width: 42%; }
.col-sky { background-color: rgba(230, 126, 34, 0.03); width: 42%; }

.sentence {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.sentence strong { 
    color: #c0392b; 
    background: rgba(192, 57, 43, 0.08); 
    padding: 0 4px;
    border-radius: 2px;
}

.analysis {
    font-size: 0.85rem;
    color: var(--text-grey);
    font-style: italic;
    display: flex;
    gap: 8px;
}

/* =========================================
   6. Locator Modal (定位器弹窗)
   ========================================= */
/* 悬浮按钮 */
.floating-locator-btn {
    position: fixed;
    top: 100px;
    right: 30px;
    z-index: 100;
    background: var(--col-stage-4);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 5px 20px rgba(230, 126, 34, 0.4);
    cursor: pointer;
    transition: transform 0.3s;
    animation: float 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    gap: 8px;
}
.floating-locator-btn:hover { transform: scale(1.05); background: #d35400; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

/* 弹窗背景 */
.locator-modal {
    display: none;
    position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    justify-content: center; align-items: center;
}

/* 弹窗内容 */
.locator-content {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    width: 90%; max-width: 480px;
    position: relative;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
    border: 1px solid #eee;
}

.close-modal {
    position: absolute; top: 15px; right: 20px; font-size: 28px; cursor: pointer; color: #ccc; transition: 0.3s;
}
.close-modal:hover { color: #333; }

.locator-content h3 { color: var(--bg-dark); margin-bottom: 10px; }
.hint { font-size: 0.9rem; color: #777; margin-bottom: 25px; }

.input-group { text-align: left; margin-bottom: 20px; }
.input-group label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 0.9rem; color: #333; }
.input-group select, .input-group input {
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; background: #f9f9f9;
}
.input-group input:focus { border-color: var(--col-stage-4); background: #fff; outline: none; }

.score-inputs { display: flex; align-items: center; gap: 10px; }
.or { font-size: 0.8rem; color: #999; font-weight: 700; }

.btn-calculate {
    width: 100%; padding: 15px; background: var(--bg-dark); color: #fff;
    border: none; border-radius: 8px; font-size: 1.1rem; font-weight: 700; cursor: pointer; margin-top: 10px; transition: 0.3s;
}
.btn-calculate:hover { background: #000; }

/* 结果页样式 */
.result-header { margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.result-label { font-size: 0.9rem; color: #777; }
.result-header h2 { margin: 5px 0 0 0; font-size: 1.8rem; }

.timeline-estimate { background: #f0f8ff; padding: 15px; border-radius: 8px; margin-bottom: 20px; color: #2c3e50; }
.time-text { font-size: 1.1rem; font-weight: 700; color: #2980b9; margin: 5px 0 0 0; }

.action-box { 
    background: #fff8e1; padding: 20px; border-radius: 8px; border: 2px dashed #e67e22; margin-bottom: 15px; 
}
.qr-img { width: 140px; height: 140px; margin: 10px auto; border: 1px solid #eee; display: block; }
.contact-hint { font-size: 0.85rem; color: #d35400; margin-top: 8px; line-height: 1.4; }

.btn-show-map {
    width: 100%; padding: 12px; background: #27ae60; color: #fff;
    border: none; border-radius: 8px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: 0.3s; margin-top: 10px;
}
.btn-show-map:hover { background: #219150; box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3); }

.btn-retry { background: none; border: none; color: #999; text-decoration: underline; cursor: pointer; margin-top: 15px; font-size: 0.9rem; }

/* Mobile adaptation for modal */
@media (max-width: 768px) {
    .floating-locator-btn { 
        top: auto; bottom: 30px; right: 20px; /* 手机上放右下角，避免遮挡 */
        padding: 10px 20px; font-size: 0.9rem;
    }
    .locator-content { width: 95%; padding: 30px 20px; }
}

/* =========================================
   7. Footer CTA
   ========================================= */
.curr-footer {
    background: var(--bg-dark);
    color: #fff;
    text-align: center;
    padding: 80px 0;
}

.curr-footer h3 { color: #fff; font-size: 2rem; margin-bottom: 10px; }
.curr-footer p { color: #bdc3c7; margin-bottom: 40px; }

.btn-start {
    display: inline-block;
    background: var(--col-stage-4);
    color: #fff;
    padding: 15px 50px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-start:hover {
    background: #d35400;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(211, 84, 0, 0.4);
}