/* 全局样式 */
:root {
    --primary-color: #4285f4;
    --success-color: #34a853;
    --error-color: #ea4335;
    --warning-color: #fbbc05;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #ddd;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* 输入区域样式 */
.input-section {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 25px;
}

.input-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

input[type="text"],
input[type="number"],
input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

.settings {
    display: flex;
    gap: 15px;
    margin: 15px 0;
}

.setting {
    flex: 1;
}

/* 按钮样式 */
button {
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
}

.primary-btn:hover {
    background-color: #3367d6;
}

/* 结果区域样式 */
.results-section {
    display: none; /* 初始隐藏 */
}

.progress-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 20px;
    position: relative;
    height: 30px;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}

#progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    background: var(--light-gray);
    padding: 15px;
    border-radius: 6px;
}

.stat {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: #666;
}

.stat-value {
    font-size: 18px;
    font-weight: bold;
}

.success {
    color: var(--success-color);
}

.error {
    color: var(--error-color);
}

/* 频道列表样式 */
.channel-list {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.channel-item {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.channel-item:last-child {
    border-bottom: none;
}

.channel-item.success {
    background-color: rgba(52, 168, 83, 0.1);
}

.channel-item.error {
    background-color: rgba(234, 67, 53, 0.1);
}

.channel-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.channel-name {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.channel-status {
    margin-left: 10px;
    font-weight: bold;
}

.channel-status.success {
    color: var(--success-color);
}

.channel-status.error {
    color: var(--error-color);
}

.channel-url {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
    word-break: break-all;
}

.channel-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #888;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .settings {
        flex-direction: column;
        gap: 10px;
    }
    
    .stats {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .stat {
        flex: 1 0 45%;
    }
}