/* assets/css/stations.css - 详情页面专属样式（完整版） */

/* ========== 铁路线视觉布局（原始保留）========== */
.rail-line-visual {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    height: 100px;
}

.rail-end-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    min-width: 100px;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px;
    border-radius: 8px;
}

.rail-end-point:hover {
    transform: translateY(-5px);
    background: rgba(0, 0, 0, 0.2);
}

.rail-point-name {
    font-size: 0.95rem;
    text-align: center;
    margin: 8px 0;
    font-weight: 500;
}

.rail-point-arrow {
    font-size: 1.5rem;
    animation: arrowBounce 2s infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* 移动端调整 */
@media (max-width: 768px) {
    .rail-line-visual {
        flex-direction: column;
        height: auto;
    }
    
    .rail-track-container {
        width: 100%;
        height: 70px;
        margin: 20px 0;
        order: 2;
    }
    
    .rail-end-point {
        flex-direction: row;
        width: 100%;
        margin: 10px 0;
        justify-content: space-between;
    }
    
    .rail-point-arrow {
        transform: rotate(90deg);
    }
}

.description-content p {
    text-indent: 2em;
    margin-bottom: 0.5em;
}

/* ========== 引导弹窗样式 ========== */
.guide-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}
.guide-modal.show {
    display: flex;
}
.guide-content {
    background: white;
    max-width: 90%;
    width: 400px;
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    text-align: center;
    position: relative;
    animation: slideUp 0.3s;
}
.guide-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 600;
}
.guide-desc {
    color: #5d6d7e;
    margin-bottom: 24px;
    line-height: 1.6;
    font-size: 1rem;
}
.guide-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.guide-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-primary {
    background: var(--theme-color);
    color: white;
    box-shadow: 0 4px 10px rgba(var(--theme-rgb), 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(var(--theme-rgb), 0.4);
}
.btn-secondary {
    background: #ecf0f1;
    color: #2c3e50;
}
.btn-secondary:hover {
    background: #d0d7dd;
}
@keyframes blink-guide {
    0% { opacity: 1; text-shadow: 0 0 0 rgba(200, 200, 200, 0); }
    50% { opacity: 0.8; text-shadow: 0 0 10px rgba(200, 200, 200, 0.7); }
    100% { opacity: 1; text-shadow: 0 0 0 rgba(200, 200, 200, 0); }
}
.blink-hint {
    animation: blink-guide 1.8s infinite;
    position: relative;
}
.guide-tooltip {
    font-size: 0.85rem;
    color: var(--theme-color);
    margin-top: 6px;
    display: none;
}
.guide-tooltip.show {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ========== 里程和状态图例模块样式 ========== */
.station-misc-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    background: transparent;
}
.station-misc-item {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    transition: all 0.3s ease;
}
.station-misc-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}
.misc-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}
.mileage-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}
.divider {
    margin: 10px 0 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.visit-counter {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}
.visit-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--theme-color);
    text-shadow: 0 0 8px rgba(var(--theme-rgb), 0.5);
}
.status-groups {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 8px;
    justify-content: center;
}
.status-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.3);
}
.status-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 2px 5px rgba(255,255,255,0.4), inset 0 -2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}
.status-dot.using { background-color: rgba(40, 167, 69, 0.2); }
.status-dot.disused { background-color: rgba(255, 193, 7, 0.2); }
.status-dot.abandoned { background-color: rgba(220, 53, 69, 0.2); }
.status-dot.demolished { background-color: rgba(0, 123, 255, 0.2); }
.status-dot.other { background-color: rgba(255, 255, 255, 0.2); }
.status-dot.current {
    opacity: 1;
    animation: pulse-border 1.5s infinite;
}
.status-dot.using.current { background-color: #28a745; }
.status-dot.disused.current { background-color: #ffc107; }
.status-dot.abandoned.current { background-color: #dc3545; }
.status-dot.demolished.current { background-color: #007bff; }
.status-dot.other.current { background-color: #ffffff; }
.status-dot.current::after {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at 30% 30%, 
                                rgba(255, 255, 255, 0.9) 0%, 
                                rgba(255, 255, 255, 0.4) 30%, 
                                rgba(255, 255, 255, 0) 70%);
    filter: blur(5px);
    animation: glow-sweep 4s ease-in-out infinite;
    pointer-events: none;
    border-radius: 50%;
    opacity: 0.8;
}
@keyframes glow-sweep {
    0% { transform: translateX(-80%) translateY(-80%) rotate(0deg); }
    100% { transform: translateX(80%) translateY(80%) rotate(0deg); }
}
@keyframes pulse-border {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
}

/* ========== 铁路线距离显示 ========== */
.rail-distance {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
    text-align: center;
}
.left-point .rail-distance {
    text-align: left;
    padding-left: 10px;
}
.right-point .rail-distance {
    text-align: right;
    padding-right: 10px;
}

/* ========== 移动端适配 ========== */
@media (max-width: 480px) {
    .station-misc-row {
        flex-direction: column;
        gap: 10px;
    }
    .status-groups {
        flex-direction: row;
        align-items: flex-end;
    }
    .status-dot {
        width: 20px;
        height: 20px;
    }
    .visit-counter {
        font-size: 0.75rem;
    }
    .visit-number {
        font-size: 1rem;
    }
}