* {
    box-sizing: border-box;
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",
                 Roboto,"PingFang SC","Microsoft YaHei",sans-serif;
}

body {
    margin: 0;
    background: linear-gradient(135deg,#0f172a,#020617);
    color: #0f172a;
}

/* ===== 顶部 ===== */
.header {
    background: linear-gradient(180deg,#111827,#020617);
    padding: 20px 20px;
    text-align: center;
    color: #fff;
}

.header p {
    margin: 6px 0 0;
    color: #cbd5f5;
    font-size: 13px;
}

/* ===== 布局 ===== */
.main {
    max-width: 1400px;
    margin: 30px auto;
    display: flex;
    gap: 20px;
    padding: 0 20px;
}

.sidebar {
    width: 320px;
}

.content {
    flex: 1;
}

/* ===== 卡片 ===== */
.card {
    background: #f8fafc;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

.card h3 {
    margin: 0 0 14px;
    font-size: 16px;
}

/* ===== 输入 ===== */
textarea {
    width: 100%;
    min-height: 140px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.25);
}

/* ===== 按钮 ===== */
button {
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
}

.contact-info {
       /* background-color: #2d3748;  深灰背景 */
        border-radius: 8px;
       /* padding: 12px 20px;*/
        display: inline-block;
    }
 .contact-label {
        color: #f9fafb;  /* 浅色字体 */
        font-size: 1.2em;
        
    }

 .contact-link {
        font-weight: bold;
        color: #fbbf24;
        font-size: 1.2em;
        text-decoration: none;
       /*  padding: 8px 12px;
       background-color: #edf2ff;*/
        border-radius: 6px;
        transition: background-color 0.3s ease;
    }
.contact-info a:hover {
    color: #2563eb;
}
 /*.contact-link:hover {
        background-color: #d1e0fd;
    }*/
.btn-primary {
    background: linear-gradient(135deg,#2563eb,#3b82f6);
    color: #fff;
    font-size: 15px;
}

/* ===== 统计 ===== */
.stats {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 10px;
}

.stats div {
    background: #fff;
    border-radius: 10px;
    padding: 10px 0;
    text-align: center;
}

.stats b {
    display: block;
    font-size: 18px;
}

.stats span {
    font-size: 12px;
    color: #64748b;
}

.stats .ok b { color: #22c55e; }
.stats .ban b { color: #ef4444; }
.stats .unk b { color: #f59e0b; }

/* ===== 表格 ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th {
    background: #f1f5f9;
    padding: 10px;
    font-size: 13px;
    color: #475569;
}

td {
    padding: 10px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

tr:hover td {
    background: #f8fafc;
}

/* ===== 状态 ===== */
.status.ok { color: #16a34a; }
.status.ban { color: #dc2626; }
.status.unk { color: #d97706; }

/* ===== 空状态 ===== */
.empty {
    text-align: center;
    padding: 80px 0;
    color: #64748b;
}

.empty .icon {
    font-size: 48px;
    margin-bottom: 10px;
}
/* ===== 表格行淡入动画 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

tr.fade-in {
    animation: fadeInUp 0.35s ease forwards;
}
.export-bar {
    
    display: flex;
    gap: 10px;
}

.btn-export {
    flex: 1;
    padding: 8px 0;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    cursor: pointer;
    font-size: 13px;
    transition: all .2s;
}

.btn-export:hover {
    background: #eef2ff;
    border-color: #6366f1;
    color: #4f46e5;
}
/* ===== 导出按钮颜色 ===== */

.btn-export {
    flex: 1;
    padding: 8px 0;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    font-size: 13px;
    transition: all .2s;
    font-weight: 500;
}

/* CSV：偏蓝（数据/通用） */
.btn-export.csv {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #4338ca;
}

.btn-export.csv:hover {
    background: #e0e7ff;
    border-color: #6366f1;
    color: #3730a3;
}

/* Excel：偏绿（办公/表格） */
.btn-export.excel {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

.btn-export.excel:hover {
    background: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}
/* ===== 行状态视觉区分 ===== */

/* 公共 */
table tr {
    transition: background-color .2s ease;
}

/* 正常 */
table tr.row-ok {
    background: #f0fdf4;               /* 淡绿 */
    border-left: 4px solid #22c55e;    /* 绿条 */
}

/* 封禁 */
table tr.row-ban {
    background: #fef2f2;               /* 淡红 */
    border-left: 4px solid #ef4444;    /* 红条 */
}

/* 未知 / 异常 */
table tr.row-unk {
    background: #f8fafc;               /* 淡灰 */
    border-left: 4px solid #94a3b8;    /* 灰条 */
}

/* hover 时稍微强调 */
table tr.row-ok:hover {
    background: #dcfce7;
}
table tr.row-ban:hover {
    background: #fee2e2;
}
table tr.row-unk:hover {
    background: #f1f5f9;
}
