* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif; background: #f5f5f5; color: #1a1a1a; }

/* 登录页 */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, #8B0000, #C8102E); }
.login-box { background: #fff; padding: 40px; border-radius: 16px; width: 380px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); text-align: center; }
.login-logo { font-size: 56px; color: #C8102E; margin-bottom: 8px; }
.login-box h1 { font-size: 20px; color: #1a1a1a; margin-bottom: 24px; letter-spacing: 2px; }
.login-box input { width: 100%; padding: 12px 16px; margin-bottom: 14px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 15px; }
.login-box input:focus { outline: none; border-color: #C8102E; }
.login-box button { width: 100%; padding: 13px; background: #C8102E; color: #fff; border: none; border-radius: 8px; font-size: 16px; font-weight: bold; cursor: pointer; letter-spacing: 4px; }
.login-box button:hover { background: #a00d24; }
.login-tip { margin-top: 16px; font-size: 12px; color: #999; }

/* 管理后台布局 */
.admin-app { display: flex; min-height: 100vh; }
.sidebar { width: 220px; background: linear-gradient(180deg, #8B0000, #C8102E); color: #fff; display: flex; flex-direction: column; }
.sidebar-logo { padding: 20px; font-size: 18px; font-weight: bold; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.sidebar-logo .star { color: #FFD700; font-size: 22px; }
.sidebar-nav { flex: 1; padding: 12px 0; }
.nav-item { display: block; padding: 12px 20px; color: rgba(255,255,255,0.85); text-decoration: none; cursor: pointer; font-size: 14px; transition: all 0.2s; }
.nav-item:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nav-item.active { background: rgba(255,255,255,0.2); color: #FFD700; border-left: 3px solid #FFD700; }
.sidebar-footer { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.15); font-size: 13px; display: flex; align-items: center; justify-content: space-between; }
.sidebar-footer button { background: rgba(255,255,255,0.15); color: #fff; border: none; padding: 5px 12px; border-radius: 6px; cursor: pointer; font-size: 12px; }

.main-content { flex: 1; padding: 24px; overflow-y: auto; }
.page h2 { font-size: 22px; margin-bottom: 20px; color: #1a1a1a; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.page-header h2 { margin-bottom: 0; }

/* 统计卡片 */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat-card { background: #fff; padding: 24px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.stat-num { font-size: 32px; font-weight: bold; color: #C8102E; }
.stat-label { color: #666; margin-top: 6px; font-size: 14px; }

/* 数据表格 */
.data-table { width: 100%; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); border-collapse: collapse; }
.data-table th { background: #fafafa; padding: 14px 12px; text-align: left; font-size: 13px; color: #666; font-weight: 600; border-bottom: 1px solid #eee; }
.data-table td { padding: 12px; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.data-table tr:hover td { background: #fafafa; }

/* 按钮 */
.btn-primary { background: #C8102E; color: #fff; border: none; padding: 8px 18px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.btn-primary:hover { background: #a00d24; }
.btn-sm { padding: 5px 12px; font-size: 12px; border-radius: 6px; border: none; cursor: pointer; }
.btn-success { background: #4CAF50; color: #fff; }
.btn-danger { background: #f44336; color: #fff; }
.btn-warn { background: #FF9800; color: #fff; }
.btn-default { background: #eee; color: #333; }

/* 状态标签 */
.status-badge { padding: 3px 10px; border-radius: 10px; font-size: 12px; }
.status-pending { background: #FFF3E0; color: #E65100; }
.status-approved { background: #E8F5E9; color: #2E7D32; }
.status-rejected { background: #FFEBEE; color: #C62828; }
.status-shipping { background: #E3F2FD; color: #1565C0; }
.status-shipped { background: #F3E5F5; color: #6A1B9A; }

/* 模态框 */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal-content { background: #fff; border-radius: 12px; padding: 24px; width: 480px; max-height: 80vh; overflow-y: auto; position: relative; }
.modal-close { position: absolute; top: 12px; right: 16px; font-size: 24px; cursor: pointer; color: #999; }
.modal h3 { margin-bottom: 16px; }
.modal label { display: block; margin-bottom: 6px; font-size: 13px; color: #555; }
.modal input, .modal textarea, .modal select { width: 100%; padding: 10px 12px; border: 1px solid #e0e0e0; border-radius: 8px; margin-bottom: 14px; font-size: 14px; }
.modal textarea { min-height: 60px; resize: vertical; }
.modal .actions { display: flex; gap: 10px; margin-top: 16px; }
.modal .actions button { flex: 1; }

/* Toast */
.toast { position: fixed; top: 20px; right: 20px; background: #333; color: #fff; padding: 12px 20px; border-radius: 8px; z-index: 2000; opacity: 0; transition: opacity 0.3s; }
.toast.show { opacity: 1; }
.toast.success { background: #4CAF50; }
.toast.error { background: #f44336; }

/* 配置列表 */
.config-list { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.config-item { display: flex; align-items: center; margin-bottom: 14px; }
.config-item label { width: 200px; font-size: 14px; color: #555; }
.config-item input { flex: 1; padding: 8px 12px; border: 1px solid #e0e0e0; border-radius: 6px; }
