/* 未来中转签到 - 样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
    background: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

/* 导航栏 */
.navbar {
    background: #2c3e50;
    color: #fff;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.nav-brand { font-size: 18px; font-weight: bold; margin-right: 40px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
    color: #bdc3c7; text-decoration: none; padding: 8px 16px;
    border-radius: 6px; font-size: 14px; transition: all .2s;
}
.nav-links a:hover { background: #34495e; color: #fff; }
.nav-links a.active { background: #3498db; color: #fff; }

/* 容器 */
.container { max-width: 1200px; margin: 24px auto; padding: 0 16px; }

/* 标题 */
h2 { margin-bottom: 20px; font-size: 22px; }
h3 { margin-bottom: 16px; font-size: 16px; color: #2c3e50; }

/* 卡片 */
.card {
    background: #fff; border-radius: 10px; padding: 24px;
    margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

/* 统计行 */
.stats-row {
    display: flex; gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.stat-card {
    background: #fff; border-radius: 10px; padding: 16px 20px;
    flex: 1; min-width: 160px; box-shadow: 0 1px 4px rgba(0,0,0,.08);
    display: flex; flex-direction: column; justify-content: center;
}
.stat-label { font-size: 12px; color: #999; margin-bottom: 6px; }
.stat-value { font-size: 18px; font-weight: bold; color: #2c3e50; }

/* 表格 */
.table { width: 100%; border-collapse: collapse; table-layout: auto; }
.table th {
    text-align: left; padding: 10px 12px; border-bottom: 2px solid #eee;
    font-size: 13px; color: #888; font-weight: 600; white-space: nowrap;
}
.table td { padding: 10px 12px; border-bottom: 1px solid #f5f5f5; font-size: 14px; white-space: nowrap; }
.table td.wrap { white-space: normal; word-break: break-word; max-width: 300px; }
.table tr:hover { background: #f9f9f9; }
.table small { color: #999; }

/* 按钮 */
.btn {
    display: inline-block; padding: 8px 20px; border: 1px solid #ddd;
    border-radius: 6px; background: #fff; color: #333; cursor: pointer;
    font-size: 14px; text-decoration: none; transition: all .2s; margin-right: 4px;
}
.btn:hover { background: #f5f5f5; }
.btn-primary { background: #3498db; color: #fff; border-color: #2980b9; }
.btn-primary:hover { background: #2980b9; }
.btn-danger { color: #e74c3c; border-color: #e74c3c; }
.btn-danger:hover { background: #fdf; }
.btn-sm { padding: 4px 12px; font-size: 12px; }

/* 输入框 */
.input {
    padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px;
    font-size: 14px; outline: none; transition: border-color .2s;
    max-width: 400px; width: 100%;
}
.input:focus { border-color: #3498db; }
select.input { max-width: 200px; }
textarea.input { max-width: 500px; }

/* 表单 */
.form-row { margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.form-row label { min-width: 100px; font-size: 14px; color: #666; }
.form-row .input { flex: 1; max-width: 400px; }

/* 徽章 */
.badge {
    display: inline-block; padding: 2px 10px; border-radius: 12px;
    font-size: 12px; font-weight: 600;
}
.badge-ok { background: #e8f5e9; color: #2e7d32; }
.badge-err { background: #ffebee; color: #c62828; }
.badge-warn { background: #fff3e0; color: #ef6c00; }
.badge-off { background: #f5f5f5; color: #999; }

/* 提示 */
.tip {
    background: #f0f7ff; border-left: 3px solid #3498db; padding: 10px 14px;
    margin: 12px 0; font-size: 13px; color: #555; border-radius: 0 6px 6px 0;
}
.tip code {
    background: #e8e8e8; padding: 2px 6px; border-radius: 3px;
    font-family: Consolas, monospace; font-size: 12px;
}

/* 空状态 */
.empty { text-align: center; padding: 30px; color: #999; }
.empty a { color: #3498db; }

/* 分页 */
.pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; margin-top: 20px;
}
.page-info { font-size: 14px; color: #888; }

/* 筛选行 */
.filter-row {
    display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}

/* Toast */
.toast {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
    background: #333; color: #fff; padding: 12px 28px; border-radius: 8px;
    font-size: 14px; opacity: 0; transition: opacity .3s; z-index: 9999;
    pointer-events: none;
}
.toast.show { opacity: .95; }
.toast.error { background: #e74c3c; }

/* 复选框 */
input[type="checkbox"] { transform: scale(1.3); cursor: pointer; }

/* 弹窗 */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.4); z-index: 1000;
    display: flex; align-items: center; justify-content: center;
}
.modal-box {
    background: #fff; border-radius: 10px; padding: 24px;
    width: 500px; max-width: 90%; max-height: 80vh; overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.modal-box h3 { margin-bottom: 20px; }
