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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.controls {
    margin-bottom: 20px;
    text-align: right;
}

button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

button:hover {
    background-color: #45a049;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f8f9fa;
    font-weight: bold;
}

tr:hover {
    background-color: #f5f5f5;
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.proxy-list {
}

.protocol-badge {
    padding: 3px 8px;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.protocol-http { background-color: #3498db; }
.protocol-https { background-color: #2ecc71; }
.protocol-socks4 { background-color: #f1c40f; color: #333; }
.protocol-socks5 { background-color: #e67e22; }
.protocol-unknown { background-color: #95a5a6; }

.filter-controls {
    margin-bottom: 20px;
}

.filter-form {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-form label {
    font-weight: bold;
}

.filter-form select, .filter-form button {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.filter-form button {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    cursor: pointer;
}

.filter-form button:hover {
    background-color: #0056b3;
}

.filter-form a {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.filter-form a:hover {
    text-decoration: underline;
}

/* 表格中的操作按钮 */
.action-btn {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f8f9fa;
    color: #333;
    cursor: pointer;
    font-size: 13px;
    margin-left: 5px;
    transition: background-color 0.2s;
}

.action-btn:hover {
    background-color: #e2e6ea;
}

.action-btn:disabled {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}


/* 代理测试状态 */
.proxy-status {
    font-weight: bold;
}
.status-success {
    color: #28a745; /* 绿色 */
}
.status-error {
    color: #dc3545; /* 红色 */
}
.status-testing {
    color: #ffc107; /* 黄色 */
}

.proxy-status span {
    display: block;
    line-height: 1.4;
}

/* 响应式设计 - 针对小屏幕 */
@media screen and (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 15px;
    }

    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .controls {
        text-align: center;
    }

    .controls .btn, .controls button {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }

    /* 隐藏部分表格列 */
    table th:nth-child(4),
    table td:nth-child(4), /* 国家/地区 */
    table th:nth-child(5),
    table td:nth-child(5), /* 响应时间 */
    table th:nth-child(6),
    table td:nth-child(6) { /* 最后验证 */
        display: none;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: table-row;
    }
}

/* 统计卡片样式 */
.stats-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-bottom: 30px;
    text-align: center;
    flex-wrap: wrap;
}

.stat-card {
    background-color: #f8f9fa;
    padding: 15px 20px; /* 减小垂直内边距 */
    border-radius: 8px;
    border: 1px solid #e9ecef;
    flex-grow: 1;
    min-width: 180px; /* 减小最小宽度 */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-title {
    font-size: 14px; /* 减小标题字号 */
    color: #6c757d;
    margin-bottom: 8px; /* 减小间距 */
}

.stat-value {
    font-size: 28px; /* 减小数值字号 */
    font-weight: bold;
    color: #343a40;
}

.stat-value span {
    font-size: 16px; /* 减小单位字号 */
    font-weight: normal;
    margin-left: 4px; /* 减小间距 */
    color: #6c757d;
}

/* 不同卡片的颜色主题 */
.stat-card.available .stat-value {
    color: #28a745;
}

.stat-card.total .stat-value {
    color: #007bff;
}

.stat-card.speed .stat-value {
    color: #fd7e14;
}
 