/* 希梵芙珠宝后台管理系统样式 v1.0 */
* { margin:0; padding:0; box-sizing:border-box; }

/* 顶部导航栏 */
.admin-header { background:linear-gradient(135deg,#1a1a2e,#16213e); color:#fff; padding:0 32px; height:56px; display:flex; justify-content:space-between; align-items:center; position:fixed; top:0; left:0; right:0; z-index:100; }
.admin-header .logo { font-size:18px; font-weight:600; }
.admin-header .logo small { font-size:12px; opacity:.7; margin-left:8px; font-weight:normal; }
.admin-header .user-info { font-size:13px; color:#ccc; }

/* 主体 */
.admin-body { display:flex; padding-top:56px; min-height:100vh; }

/* 左侧菜单 */
.admin-sidebar { width:200px; background:#fff; border-right:1px solid #e8ecf1; padding:16px 0; position:fixed; top:56px; left:0; bottom:0; overflow-y:auto; }
.admin-sidebar .menu-category { font-size:11px; color:#999; padding:12px 20px 4px; text-transform:uppercase; letter-spacing:1px; }
.admin-sidebar .menu-item { display:block; padding:10px 20px; color:#555; text-decoration:none; font-size:13px; border-left:3px solid transparent; transition:all .2s; }
.admin-sidebar .menu-item:hover { background:#e6f7ff; color:#1890ff; border-left-color:#1890ff; }
.admin-sidebar .menu-item.active { background:#e6f7ff; color:#1890ff; border-left-color:#1890ff; font-weight:600; }
.admin-sidebar .menu-item i { margin-right:4px; }

/* 主内容区 */
.admin-main { margin-left:200px; flex:1; padding:24px; min-width:0; }
.page-title { font-size:20px; font-weight:600; margin-bottom:16px; color:#333; }
.page-desc { font-size:13px; color:#999; margin-bottom:20px; }

/* 卡片 */
.card { background:#fff; border-radius:8px; padding:24px; margin-bottom:16px; box-shadow:0 1px 4px rgba(0,0,0,0.06); }
.card-title { font-size:15px; font-weight:600; margin-bottom:16px; color:#333; }

/* 表格 */
table.data { width:100%; border-collapse:collapse; font-size:13px; }
table.data th { background:#fafafa; border-bottom:2px solid #e8ecf1; padding:12px 10px; text-align:left; font-weight:600; color:#555; white-space:nowrap; }
table.data td { border-bottom:1px solid #f0f0f0; padding:10px; vertical-align:middle; }
table.data tr:hover td { background:#fafafa; }
table.data td.actions { white-space:nowrap; }

/* 按钮 */
.btn { padding:8px 20px; border:none; border-radius:4px; font-size:14px; cursor:pointer; display:inline-block; transition:all .2s; }
.btn:hover { opacity:.85; }
.btn-primary { background:#1890ff; color:#fff; }
.btn-success { background:#52c41a; color:#fff; }
.btn-danger { background:#ff4d4f; color:#fff; }
.btn-warning { background:#fa8c16; color:#fff; }
.btn-gray { background:#f5f5f5; color:#666; border:1px solid #d9d9d9; }
.btn-sm { padding:6px 16px; font-size:12px; }

.btn { padding:6px 16px; border:none; border-radius:4px; font-size:13px; cursor:pointer; display:inline-block; transition:all .2s; }
.btn:hover { opacity:.85; }
.btn-primary { background:#1890ff; color:#fff; }
.btn-success { background:#52c41a; color:#fff; }
.btn-danger { background:#ff4d4f; color:#fff; }
.btn-warning { background:#fa8c16; color:#fff; }
.btn-gray { background:#f5f5f5; color:#666; border:1px solid #d9d9d9; }
.btn-sm { padding:4px 12px; font-size:12px; }

/* 表单 */
.form-group { margin-bottom:14px; }
.form-group label { display:block; font-size:13px; color:#666; margin-bottom:4px; }
.form-group .required:after { content:" *"; color:red; }
.form-group input,.form-group select,.form-group textarea { width:100%; padding:8px 12px; border:1px solid #d9d9d9; border-radius:4px; font-size:14px; outline:none; transition:border-color .2s; }
.form-group input:focus,.form-group select:focus,.form-group textarea:focus { border-color:#1890ff; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-group .readonly { background:#f5f5f5; }

/* 标签 */
.tag { display:inline-block; padding:2px 10px; border-radius:4px; font-size:11px; }
.tag-green { background:#f6ffed; color:#52c41a; border:1px solid #b7eb8f; }
.tag-red { background:#fff1f0; color:#ff4d4f; border:1px solid #ffa39e; }
.tag-orange { background:#fff7e6; color:#fa8c16; border:1px solid #ffd591; }
.tag-blue { background:#e6f7ff; color:#1890ff; border:1px solid #91d5ff; }
.tag-gray { background:#f5f5f5; color:#999; border:1px solid #d9d9d9; }

/* 搜索栏 */
.search-bar { display:flex; gap:8px; margin-bottom:16px; align-items:center; flex-wrap:wrap; }
.search-bar input { padding:8px 12px; border:1px solid #d9d9d9; border-radius:4px; font-size:14px; min-width:200px; }
.search-bar select { padding:8px 12px; border:1px solid #d9d9d9; border-radius:4px; }

/* 分页 */
.pagination { display:flex; justify-content:space-between; align-items:center; margin-top:16px; font-size:13px; color:#999; }
.pagination button:disabled { opacity:.5; cursor:not-allowed; }

/* 提示 */
.notice { background:#fff7e6; border:1px solid #ffd591; border-radius:6px; padding:12px; font-size:13px; color:#666; margin-bottom:16px; }
.tip { font-size:12px; color:#999; margin-top:3px; }

/* 分割线 */
.divider { border-top:1px dashed #e8e8e8; margin:24px 0; }

/* 弹窗（覆盖层） */
.modal-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.45); z-index:1000; display:none; justify-content:center; align-items:center; }
.modal-overlay.active { display:flex; }
.modal-dialog { background:#fff; border-radius:8px; box-shadow:0 8px 30px rgba(0,0,0,0.2); overflow:hidden; min-width:400px; max-width:600px; max-height:80vh; overflow-y:auto; }
.modal-header { display:flex; justify-content:space-between; align-items:center; padding:16px 20px; border-bottom:1px solid #f0f0f0; font-size:16px; font-weight:600; }
.modal-close { font-size:22px; color:#999; cursor:pointer; line-height:1; }
.modal-close:hover { color:#333; }
.modal-body { padding:20px; }
.modal-footer { padding:12px 20px; border-top:1px solid #f0f0f0; display:flex; justify-content:flex-end; gap:8px; }

/* 缩略图 */
.thumb { width:48px; height:48px; display:inline-block; border:1px solid #e8e8e8; border-radius:4px; overflow:hidden; }
.thumb img { width:100%; height:100%; object-fit:cover; }
.thumb-list { display:flex; gap:6px; flex-wrap:wrap; }
.upload-area { border:2px dashed #d9d9d9; border-radius:8px; padding:30px 20px; text-align:center; cursor:pointer; transition:border-color .2s; background:#fafafa; margin-bottom:16px; }
.upload-area:hover { border-color:#1890ff; background:#f0f8ff; }
.upload-area .txt { font-size:14px; color:#999; }

/* 统计卡片 - 原型风格 */
.stats-row { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:24px; }
.stat-card { background:#fff; border-radius:8px; padding:20px; box-shadow:0 1px 4px rgba(0,0,0,0.06); }
.stat-card .l { font-size:13px; color:#999; margin-bottom:2px; }
.stat-card .v { font-size:28px; font-weight:700; margin:8px 0 4px; }
.stat-card .d { font-size:12px; color:#999; margin-top:4px; }
.stat-card .icon { font-size:24px; }

/* Tab栏 */
.tab-bar { display:flex; gap:0; margin-bottom:15px; border-bottom:2px solid #e8ecf1; }
.tab-bar a { display:block; padding:10px 20px; color:#666; text-decoration:none; border-bottom:2px solid transparent; margin-bottom:-2px; transition:all 0.2s; font-size:14px; cursor:pointer; }
.tab-bar a.active { color:#1890ff; border-bottom-color:#1890ff; font-weight:bold; }
.tab-bar a:hover { color:#1890ff; }
