/* 按照界面布局图设计的样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
    background: #F5F5F5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.speed-panel {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 40px 30px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 头部区域 */
.header-section {
    text-align: center;
    margin-bottom: 30px;
}

.icon-wrapper {
    margin-bottom: 20px;
}

.clock-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #66B3FF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.02);
    }
}

.main-title {
    font-size: 1.8em;
    font-weight: 700;
    color: #000000;
    margin-bottom: 15px;
    line-height: 1.2;
}

.status-text {
    font-size: 1em;
    color: #000000;
    margin-bottom: 20px;
    font-weight: 400;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #E0E0E0;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 15px;
}

.progress-fill {
    height: 100%;
    background: #66CC33;
    border-radius: 4px;
    width: 18%;
    transition: width 0.3s ease;
}

/* 线路容器 */
.lines-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.line-item {
    background: #66CC33;
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    padding: 15px 20px;
    width: 100%;
    text-align: left;
    font-size: 1em;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    min-height: 55px;
}

.line-item:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.line-item.testing {
    background: #66CC33;
}

.line-item.fastest {
    background: #66CC33;
    box-shadow: 0 2px 8px rgba(102, 204, 51, 0.3);
}

.line-item.faster {
    background: #4A90E2;
}

.line-item.failed {
    background: #E0E0E0;
    color: #666;
    cursor: not-allowed;
}

.line-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.line-number {
    font-size: 1.1em;
    font-weight: 600;
}

.line-text {
    font-size: 1em;
}

.line-speed-info {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.speed-time {
    font-size: 1em;
    font-weight: 600;
}

.speed-label {
    font-size: 0.9em;
    opacity: 0.9;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.line-item.faster .speed-label {
    background: rgba(255, 255, 255, 0.25);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .speed-panel {
        padding: 30px 20px;
    }
    
    .main-title {
        font-size: 1.5em;
    }
    
    .clock-icon {
        width: 60px;
        height: 60px;
    }
    
    .line-item {
        padding: 12px 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .line-speed-info {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
    }
}
