/* VPS Table Plugin - 样式 */
.vps-table-wrapper {
    max-width: 100%;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* 统计栏 */
.vps-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}
.vps-stats strong { color: #333; }
.vps-stat-in strong { color: #2e7d32; }
.vps-stat-out strong { color: #c62828; }

/* 筛选按钮 */
.vps-filters {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
    padding: 3px;
    background: rgba(168, 177, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(168, 177, 255, 0.18);
}
.vps-filter-btn {
    padding: 4px 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #555;
    transition: all 0.2s ease;
    line-height: 1.5;
    white-space: nowrap;
}
.vps-filter-btn:hover {
    background: rgba(168, 177, 255, 0.15);
    color: #5567e6;
}
.vps-filter-btn.active {
    background: rgba(168, 177, 255, 0.22);
    color: #3d4bcc;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(85, 103, 230, 0.12);
}

/* 搜索框 */
.vps-search { margin-bottom: 8px; }
.vps-search input {
    width: 100%;
    max-width: 400px;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.vps-search input:focus { border-color: #1976d2; }

/* 表格容器 */
.vps-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.vps-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.vps-table thead { background: #f5f5f5; }
.vps-table th {
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 2px solid #e0e0e0;
    color: #333;
    cursor: default;
    user-select: none;
}
.vps-table th.sortable { cursor: pointer; }
.vps-table th.sortable:hover { color: #1976d2; }
.vps-table th.sort-asc::after { content: " ↑"; color: #1976d2; }
.vps-table th.sort-desc::after { content: " ↓"; color: #1976d2; }

.vps-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}
.vps-table tbody tr:hover { background: #fafafa; }
.vps-table tbody tr.hidden { display: none; }

/* 库存状态 */
.in-stock { color: #2e7d32; font-weight: 600; }
.out-stock { color: #c62828; font-weight: 600; }
.unknown-stock { color: #f57c00; }

/* 购买链接 */
.vps-link a {
    display: inline-block;
    padding: 4px 12px;
    background: #1976d2;
    color: #fff !important;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s;
}
.vps-link a:hover { background: #1565c0; }

/* 价格列高亮 */
.vps-price { font-weight: 600; color: #e65100; }

/* 服务商列 */
.vps-provider { font-weight: 500; }

/* 页脚 */
.vps-footer {
    margin-top: 12px;
    text-align: center;
    color: #999;
    font-size: 12px;
}

/* 错误提示 */
.vps-table-error {
    padding: 16px;
    background: #fff3e0;
    border: 1px solid #ffcc02;
    border-radius: 8px;
    color: #e65100;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .vps-stats { flex-wrap: wrap; gap: 8px; }
    .vps-filters { gap: 2px; padding: 2px; }
    .vps-filter-btn { padding: 2px 8px; font-size: 11px; }
    .vps-table { font-size: 13px; }
    .vps-table th, .vps-table td { padding: 8px 10px; }
}
