/* ============================================================
 * 项目专属样式 (Project-Specific Styles)
 * ------------------------------------------------------------
 * 说明: 包含当前项目的视觉表现层定义，如背景、布局、动画等。
 * 备注: 此文件属于「项目定制」部分，每个项目可自由修改。
 * ============================================================ */

/* 基础布局样式 */
body {
    margin: 0;
    padding: 0;
    background-color: #1a1a1a;
    color: white;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: flex;
    justify-content: center;
    background-image: url('../images/bg.png');
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

#app {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.glow-border {
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* 跑马灯样式（逐条滚动，JS 驱动） */
.ticker-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.ticker-item {
    position: absolute;
    display: inline-block;
    white-space: nowrap;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    will-change: transform;
}

/* ── Shimmer 骨架加载效果 ── */
.shimmer-loading {
    position: relative;
    overflow: hidden;
    color: transparent !important;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    min-width: 48px;
    display: inline-block;
}

.shimmer-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(234, 179, 8, 0.25) 50%,
        transparent 100%);
    animation: shimmer-sweep 1.8s ease-in-out infinite;
}

@keyframes shimmer-sweep {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ── 线路卡片依次滑入动画 ── */
@keyframes cardSlideIn {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.node-card {
    opacity: 0;
    animation: cardSlideIn 0.6s ease-out forwards;
}

.node-card:nth-child(1) { animation-delay: 0.10s; }
.node-card:nth-child(2) { animation-delay: 0.22s; }
.node-card:nth-child(3) { animation-delay: 0.34s; }
.node-card:nth-child(4) { animation-delay: 0.46s; }
.node-card:nth-child(5) { animation-delay: 0.58s; }
