* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; background: #f5f6fa; color: #333; }

.container { max-width: 960px; margin: 0 auto; padding: 30px 20px; }
header { margin-bottom: 24px; }
header h1 { font-size: 26px; color: #2c3e50; }

.stat { margin-top: 8px; color: #666; }
.stat strong { color: #e74c3c; font-size: 20px; }

/* 菜单 */
.menu { display: flex; gap: 20px; flex-wrap: wrap; }
.menu-card {
    flex: 1; min-width: 240px; background: #fff; border-radius: 12px;
    padding: 30px; text-decoration: none; color: #2c3e50;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: .2s;
}
.menu-card:hover { transform: translateY(-4px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.menu-card h2 { font-size: 20px; color: #3498db; margin-bottom: 8px; }
.menu-card p { color: #888; font-size: 14px; }

/* 表单 */
.form-box { background: #fff; padding: 28px; border-radius: 12px; max-width: 520px; }
.form-item { margin-bottom: 18px; }
.form-item label { display: block; margin-bottom: 6px; font-weight: bold; }
.form-item input,
.form-item select {
    width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 15px;
}
.form-item input:focus { outline: none; border-color: #3498db; }

/* 按钮 */
.btn-primary, .btn-default, .btn-small {
    display: inline-block; padding: 0px 22px; border: none; border-radius: 8px;
    cursor: pointer; text-decoration: none; font-size: 14px; margin-right: 8px;
}
.btn-primary { background: #3498db; color: #fff; }
.btn-primary:hover { background: #2980b9; }
.btn-default { background: #ecf0f1; color: #333; padding: px 16px; }
.btn-small { padding: 5px 12px; font-size: 13px; background: #ecf0f1; color: #333; }
.btn-small.danger { background: #e74c3c; color: #fff; }

/* 弹框 */
.modal-mask {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center; z-index: 1000;
}
.modal { background: #fff; padding: 30px; border-radius: 12px; max-width: 420px; width: 90%; }
.modal h3 { color: #e74c3c; margin-bottom: 12px; }
.link-list { list-style: none; margin: 16px 0; }
.link-list li { margin-bottom: 10px; }
.link-list a {
    display: block; padding: 10px; background: #f0f7fd; color: #3498db;
    text-decoration: none; border-radius: 8px; text-align: center;
}
.link-list a:hover { background: #3498db; color: #fff; }

/* 登录 */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-box { background: #fff; padding: 40px; border-radius: 12px; width: 360px; box-shadow: 0 4px 24px rgba(0,0,0,0.1); }
.login-box h2 { text-align: center; margin-bottom: 24px; color: #2c3e50; }
.error-msg { color: #e74c3c; margin-bottom: 12px; text-align: center; }

/* 表格 */
.data-table { width: 100%; background: #fff; border-collapse: collapse; border-radius: 12px; overflow: hidden; }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #eee; font-size: 14px; }
.data-table th { background: #f8f9fa; color: #2c3e50; }
.data-table .ua { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #888; }
.url-cell { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { text-align: center; color: #999; padding: 30px; }
.badge-on { color: #27ae60; }
.badge-off { color: #e74c3c; }

.admin-header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-header h1 { margin-right: auto; }
footer { margin-top: 40px; text-align: center; color: #999; font-size: 13px; }
