/* ===== 亲子艺术 PC 管理平台 · 品牌绿 #20C55E ===== */
:root {
  --primary: #20C55E;
  --primary-dark: #17A34A;
  --primary-light: #E9F9EF;
  --bg: #F5F6F7;
  --surface: #FFFFFF;
  --border: #E8EAED;
  --divider: #F0F1F2;
  --text: #1A1A1A;
  --text-2: #6B7280;
  --text-3: #9AA0A6;
  --danger: #EF4444;
  --radius: 10px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--text); font-size: 14px; }
a { color: var(--primary-dark); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }
input, select, textarea { font-family: inherit; font-size: 14px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; outline: none; transition: border-color .15s; background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { border-color: var(--primary); }
textarea { width: 100%; min-height: 90px; resize: vertical; }

/* ===== 登录页 ===== */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #F5F6F7 0%, #E9F9EF 100%); position: relative; }
.login-box { width: 380px; background: #fff; border-radius: 16px; padding: 44px 40px 36px; box-shadow: 0 12px 40px rgba(0,0,0,.08); }
.login-logo { text-align: center; font-size: 40px; margin-bottom: 6px; }
.login-title { text-align: center; font-size: 20px; font-weight: 700; margin-bottom: 28px; }
.login-box input { width: 100%; margin-bottom: 16px; padding: 12px 14px; font-size: 15px; }
.login-btn { width: 100%; height: 46px; background: var(--primary); color: #fff; font-size: 16px; font-weight: 600; border-radius: 10px; transition: background .15s; }
.login-btn:hover { background: var(--primary-dark); }
.login-err { color: var(--danger); font-size: 13px; text-align: center; margin-bottom: 12px; min-height: 18px; }

/* ===== 布局 ===== */
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 216px; background: #fff; border-right: 1px solid var(--divider); padding: 20px 12px; flex-shrink: 0; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 12px 20px; font-size: 17px; font-weight: 700; }
.brand-logo { width: 34px; height: 34px; border-radius: 9px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 9px; color: var(--text-2); margin-bottom: 3px; cursor: pointer; transition: all .12s; font-size: 14.5px; }
.nav-item:hover { background: var(--bg); color: var(--text); }
.nav-item.active { background: var(--primary-light); color: var(--primary-dark); font-weight: 600; }
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar { height: 60px; background: #fff; border-bottom: 1px solid var(--divider); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; }
.topbar-title { font-size: 17px; font-weight: 700; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.org-select { padding: 7px 10px; }
.topbar-user { color: var(--text-2); }
.link-btn { background: none; color: var(--text-2); font-size: 13.5px; padding: 6px 10px; border-radius: 7px; }
.link-btn:hover { background: var(--bg); color: var(--text); }
.content { padding: 24px 28px; flex: 1; }

/* ===== ICP 备案 ===== */
.icp-footer { padding: 16px 28px 20px; text-align: center; font-size: 12.5px; color: var(--text-3); }
.icp-footer a { color: var(--text-3); }
.icp-footer a:hover { color: var(--primary-dark); }
.login-wrap .icp-footer { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 0 16px; }

/* ===== 通用组件 ===== */
.card { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.04); margin-bottom: 20px; }
.card-title { font-size: 15.5px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; }
.toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 13px; color: var(--text-3); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--divider); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid var(--divider); font-size: 14px; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #FAFBFB; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12.5px; }
.tag-green { background: var(--primary-light); color: var(--primary-dark); }
.tag-gray { background: var(--bg); color: var(--text-3); }
.tag-red { background: #FEE2E2; color: #B91C1C; }
.btn { padding: 9px 18px; border-radius: 8px; font-size: 14px; background: var(--primary); color: #fff; transition: background .15s; }
.btn:hover { background: var(--primary-dark); }
.btn-outline { background: #fff; color: var(--text-2); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--bg); color: var(--text); }
.btn-danger { background: #fff; color: var(--danger); border: 1px solid #FECACA; }
.btn-danger:hover { background: #FEF2F2; }
.btn-sm { padding: 5px 12px; font-size: 13px; border-radius: 6px; }
.empty { text-align: center; color: var(--text-3); padding: 48px 0; }
.pager { display: flex; align-items: center; gap: 10px; justify-content: flex-end; margin-top: 14px; color: var(--text-2); font-size: 13.5px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: 8px; }

/* 统计卡 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.stat-label { font-size: 13px; color: var(--text-3); }
.stat-num { font-size: 30px; font-weight: 700; margin-top: 6px; }
.stat-num.green { color: var(--primary-dark); }

/* 弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.42); display: flex; align-items: center; justify-content: center; z-index: 100; }
.modal { background: #fff; border-radius: 14px; width: 520px; max-width: 92vw; max-height: 86vh; overflow: auto; padding: 26px 28px; }
.modal h3 { font-size: 17px; margin-bottom: 20px; }
.form-row { margin-bottom: 14px; }
.form-label { display: block; font-size: 13.5px; color: var(--text-2); margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea { width: 100%; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.hint { font-size: 12.5px; color: var(--text-3); margin-top: 4px; }

/* tabs */
.tabs { display: flex; gap: 4px; background: var(--bg); padding: 4px; border-radius: 10px; margin-bottom: 16px; width: fit-content; }
.tab { padding: 8px 22px; border-radius: 8px; cursor: pointer; color: var(--text-2); font-size: 14px; }
.tab.active { background: #fff; color: var(--primary-dark); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* 上传进度条 */
.progress-track { height: 8px; border-radius: 4px; background: var(--bg); overflow: hidden; }
.progress-bar { height: 100%; background: var(--primary); border-radius: 4px; transition: width .2s; }
