/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* 头部样式 */
header {
    background-color: #f8f9fa;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 10px;
}

header p {
    font-size: 1rem;
    color: #6c757d;
}

/* 主要内容样式 */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 搜索容器样式 */
.search-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

#search-input {
    width: 400px;
    padding: 10px 15px;
    font-size: 1rem;
    border: 1px solid #ced4da;
    border-radius: 4px 0 0 4px;
    outline: none;
}

#search-input:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#search-button {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #007bff;
    color: #fff;
    border: 1px solid #007bff;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

#search-button:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

/* 表格样式 */
#mirrors-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#mirrors-table th,
#mirrors-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

#mirrors-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
}

#mirrors-table tr:hover {
    background-color: #f8f9fa;
}

/* 镜像名称链接样式 */
.mirror-name {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.mirror-name:hover {
    text-decoration: underline;
}

/* 状态样式 */
.status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status.failed {
    background-color: #f8d7da;
    color: #721c24;
}

.status.syncing {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* 帮助链接样式 */
.help-link {
    color: #17a2b8;
    text-decoration: none;
    font-size: 0.85rem;
}

.help-link:hover {
    text-decoration: underline;
}

/* 页脚样式 */
footer {
    background-color: #f8f9fa;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #e9ecef;
    margin-top: 40px;
}

footer p {
    font-size: 0.9rem;
    color: #6c757d;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    main {
        padding: 10px;
    }
    
    .search-container {
        flex-direction: column;
        align-items: center;
    }
    
    #search-input {
        width: 100%;
        max-width: 400px;
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    #search-button {
        border-radius: 4px;
        width: 100%;
        max-width: 400px;
    }
    
    #mirrors-table {
        font-size: 0.9rem;
    }
    
    #mirrors-table th,
    #mirrors-table td {
        padding: 8px 10px;
    }
}