body {
    background-color: #12141c;
    color: #ffffff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 440px;
    padding: 15px;
    box-sizing: border-box;
}

/* 顶部 Logo */
.header {
    text-align: center;
    padding: 12px 0 15px 0;
}
.main-logo {
    width: 230px;
    height: auto;
    display: inline-block;
}

/* 顶部广告 Banner 左右滑动区 */
.banner-box {
    position: relative;
    width: 100%;
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
}
.banner-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.banner-slider::-webkit-scrollbar {
    display: none;
}
.banner-img {
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    scroll-snap-align: start;
    display: block;
    border-radius: 12px;
}

/* 8个小圆点 */
.banner-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 10;
}
.dot {
    width: 5px;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}
.dot.active {
    background-color: #ff5722;
    width: 14px;
    border-radius: 3px;
}

/* 公告栏 */
.notice-bar {
    background-color: #1a1e2b;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    color: #ffd700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.speaker-icon {
    font-size: 16px;
    margin-right: 10px;
    flex-shrink: 0;
    animation: pulseSpeaker 1.5s infinite alternate;
}

@keyframes pulseSpeaker {
    0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(255,215,0,0.4)); }
    100% { transform: scale(1.15); filter: drop-shadow(0 0 6px rgba(255,215,0,0.8)); }
}

.notice-wrap {
    overflow: hidden;
    width: 100%;
    display: inline-block;
}

.notice-text {
    display: inline-block;
    padding-left: 100%;
    animation: marqueeText 12s linear infinite;
}

@keyframes marqueeText {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* 公告下方的双子导航按钮样式 */
.quick-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.quick-btn {
    flex: 1;
    background-color: #1a1e2b;
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s, background-color 0.2s;
    border: 1px solid rgba(0, 191, 255, 0.15);
}

.quick-btn:active {
    transform: scale(0.97);
}

.nav-icon {
    width: 24px;
    height: 24px;
    color: #00bfff;
    flex-shrink: 0;
}

.nav-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.n-title {
    font-size: 13px;
    font-weight: bold;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.n-sub {
    font-size: 11px;
    color: #00ff88;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 线路列表卡片 */
.link-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-card {
    background-color: #1a1e2b;
    border-radius: 14px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.card-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

/* 左侧小图标 */
.card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.card-info {
    flex: 1;
    min-width: 0;
}

.card-info h3 {
    margin: 0 0 6px 0;
    font-size: 13px;
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 进度条 */
.progress-box {
    width: 100%;
    max-width: 120px;
    height: 5px;
    background-color: #2b3142;
    border-radius: 3px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    background-color: #00ff88;
    border-radius: 3px;
    transition: width 0.8s ease-in-out;
}

/* 右侧测速与按钮 */
.card-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ping-text {
    font-size: 13px;
    color: #00ff88;
    font-weight: bold;
    width: 42px;
    text-align: right;
    transition: color 0.3s;
}

.go-btn {
    background: linear-gradient(135deg, #ff7b00, #ff4500);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 69, 0, 0.4);
}

/* 底部图片区域 */
.footer {
    margin-top: 30px;
    text-align: center;
    padding-bottom: 20px;
}
.footer-img {
    width: 100%;
    max-width: 320px;
    height: auto;
    display: block;
    margin: 0 auto;
}