/* 认证中心管理后台样式 */

/* 基础样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f5f5; }

/* 登录页 */
.login-container { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-box { width: 400px; padding: 40px; background: #fff; border-radius: 8px; box-shadow: 0 2px 20px rgba(0,0,0,0.1); }
.login-box h1 { text-align: center; margin-bottom: 30px; color: #333; font-size: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: #666; font-size: 14px; }
.form-group input { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; }
.form-group input:focus { outline: none; border-color: #007bff; }
.btn { width: 100%; padding: 12px; background: #007bff; color: #fff; border: none; border-radius: 4px; font-size: 16px; cursor: pointer; }
.btn:hover { background: #0056b3; }
.error-msg { color: #dc3545; text-align: center; margin-top: 10px; font-size: 14px; }

/* 后台框架 */
.admin-layout { display: none; min-height: 100vh; }
.admin-layout.active { display: flex; }

/* 侧边栏 */
.sidebar { width: 220px; background: #2c3e50; color: #fff; position: fixed; height: 100vh; overflow-y: auto; }
.sidebar-header { padding: 20px; border-bottom: 1px solid #3d566e; }
.sidebar-header h2 { font-size: 18px; }
.sidebar-menu { padding: 10px 0; }
.menu-item { padding: 12px 20px; cursor: pointer; transition: background 0.3s; }
.menu-item:hover { background: #3d566e; }
.menu-item.active { background: #007bff; }
.menu-item i { margin-right: 10px; }

/* 主内容区 */
.main-content { flex: 1; margin-left: 220px; }
.header { background: #fff; padding: 15px 30px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.header-right { display: flex; align-items: center; gap: 15px; }
.content { padding: 30px; }

/* 卡片 */
.card { background: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-bottom: 20px; }
.card-header { padding: 15px 20px; border-bottom: 1px solid #eee; font-weight: 600; }
.card-body { padding: 20px; }

/* 统计卡片 */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 20px; }
.stat-card { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.stat-card .label { color: #666; font-size: 14px; margin-bottom: 10px; }
.stat-card .value { font-size: 28px; font-weight: bold; color: #333; }
.stat-card .sub { font-size: 12px; color: #999; margin-top: 5px; }

/* 表格 */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px; text-align: left; border-bottom: 1px solid #eee; }
.table th { background: #f8f9fa; font-weight: 600; color: #333; }
.table tr:hover { background: #f8f9fa; }

/* 按钮 */
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 4px; border: none; cursor: pointer; }
.btn-primary { background: #007bff; color: #fff; }
.btn-danger { background: #dc3545; color: #fff; }
.btn-success { background: #28a745; color: #fff; }
.btn-warning { background: #ffc107; color: #333; }
.btn-secondary { background: #6c757d; color: #fff; }
.btn-info { background: #17a2b8; color: #fff; }

/* 分页 */
.pagination { display: flex; gap: 5px; margin-top: 20px; justify-content: flex-end; }
.pagination button { padding: 8px 12px; border: 1px solid #ddd; background: #fff; cursor: pointer; }
.pagination button.active { background: #007bff; color: #fff; border-color: #007bff; }

/* 表单 */
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.form-row-3 { grid-template-columns: repeat(3, 1fr); }
.form-control { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; }
.form-control:focus { outline: none; border-color: #007bff; }

/* 模态框 */
.modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1000; align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal-content { background: #fff; padding: 30px; border-radius: 8px; width: 500px; max-width: 90%; max-height: 80vh; overflow-y: auto; }
.modal-header { margin-bottom: 20px; font-size: 18px; font-weight: 600; }
.modal-footer { margin-top: 20px; display: flex; gap: 10px; justify-content: flex-end; }

/* 搜索栏 */
.search-bar { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.search-bar input, .search-bar select { padding: 8px 12px; border: 1px solid #ddd; border-radius: 4px; }
.search-bar button { padding: 8px 16px; background: #007bff; color: #fff; border: none; border-radius: 4px; cursor: pointer; }

/* 标签状态 */
.badge { padding: 4px 8px; border-radius: 4px; font-size: 12px; }
.badge-success { background: #d4edda; color: #155724; }
.badge-danger { background: #f8d7da; color: #721c24; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-info { background: #d1ecf1; color: #0c5460; }

/* 隐藏 */
.hidden { display: none !important; }
.login-container.hidden { display: none; }