/* ==========================================================
   宠物星球 PetPlanet · 视觉系统
   ========================================================== */
:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-soft: #faf8f6;
  --text: #1f2233;
  --text-2: #4b5068;
  --muted: #8b90a5;
  --line: #eceef4;
  --line-2: #e3e6ef;
  --primary: #ff6b6b;
  --primary-dark: #ec5353;
  --primary-soft: #fff0ee;
  --purple: #7c5cff;
  --purple-soft: #f1edff;
  --gold: #ffb020;
  --gold-soft: #fff6e5;
  --mint: #21c07a;
  --mint-soft: #e8f9f0;
  --blue: #4f8cff;
  --blue-soft: #edf4ff;
  --pink: #ff7fa8;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 30px rgba(31, 34, 51, .07);
  --shadow-lg: 0 20px 60px rgba(31, 34, 51, .14);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

/* ---------- 全局顶栏 ---------- */
.global-bar {
  height: 62px; background: var(--surface); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px; position: sticky; top: 0; z-index: 60;
}
.brand { display: flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.brand-planet { font-size: 27px; filter: drop-shadow(0 3px 6px rgba(124,92,255,.3)); }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: .5px; }
.brand-en { font-size: 10px; color: var(--muted); letter-spacing: 2px; font-weight: 700; margin-left: -3px; align-self: flex-end; margin-bottom: 4px; }
.mode-switch { background: #f1f2f7; border-radius: 999px; padding: 4px; display: flex; gap: 3px; }
.mode-btn { border: 0; background: transparent; padding: 7px 18px; border-radius: 999px; color: var(--text-2); font-weight: 600; font-size: 13px; transition: .2s; }
.mode-btn.active { background: var(--surface); color: var(--primary); box-shadow: 0 2px 8px rgba(31,34,51,.1); }
.env-chip { font-size: 12px; color: var(--muted); background: var(--surface-soft); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.env-chip i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); margin-right: 6px; }

/* ---------- 小程序端外壳 ---------- */
.app-shell { min-height: calc(100vh - 62px); }
.mobile-shell { display: flex; justify-content: center; align-items: center; gap: 60px; padding: 34px 5%; background: radial-gradient(circle at 15% 20%, #fff3ec 0, transparent 38%), radial-gradient(circle at 85% 80%, #efeaff 0, transparent 40%), var(--bg); }
.phone-frame {
  width: 402px; height: 812px; background: var(--surface); border-radius: 42px;
  box-shadow: var(--shadow-lg), 0 0 0 10px #23253a, 0 0 0 11px #3b3e56;
  position: relative; overflow: hidden; display: flex; flex-direction: column; flex-shrink: 0;
}
.phone-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 128px; height: 27px; background: #23253a; border-radius: 0 0 18px 18px; z-index: 20; }
.phone-status { height: 44px; padding: 14px 26px 0; display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--text); flex-shrink: 0; }
.status-icons { letter-spacing: 2px; }
.phone-view { flex: 1; overflow-y: auto; overflow-x: hidden; background: #fbfbfd; scrollbar-width: none; }
.phone-view::-webkit-scrollbar { display: none; }
.phone-tabs { height: 68px; border-top: 1px solid var(--line); background: rgba(255,255,255,.96); display: flex; align-items: center; justify-content: space-around; padding-bottom: 6px; flex-shrink: 0; z-index: 10; }
.tab-item { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted); font-size: 10px; min-width: 60px; font-weight: 600; }
.tab-item .tab-ico { font-size: 21px; line-height: 1; filter: grayscale(1); opacity: .65; transition: .2s; }
.tab-item.active { color: var(--primary); }
.tab-item.active .tab-ico { filter: none; opacity: 1; transform: scale(1.12); }
.tab-create .tab-ico { font-size: 30px; margin-top: -6px; }
.mobile-aside { width: 320px; }
.aside-card { background: var(--surface); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.aside-kicker { display: inline-block; color: var(--purple); background: var(--purple-soft); font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: 99px; letter-spacing: 1px; }
.aside-card h2 { font-size: 26px; line-height: 1.35; margin: 16px 0 10px; letter-spacing: -.5px; }
.aside-card p { color: var(--muted); font-size: 13px; margin: 0; line-height: 1.8; }
.aside-stats { display: flex; justify-content: space-between; margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--line-2); }
.aside-stats div { display: flex; flex-direction: column; }
.aside-stats b { font-size: 22px; color: var(--primary); }
.aside-stats span { font-size: 11px; color: var(--muted); }
.aside-hint { margin-top: 16px; font-size: 12px; color: var(--muted); padding: 12px 16px; background: rgba(255,255,255,.7); border-radius: 12px; border: 1px dashed var(--line-2); }

/* ---------- 小程序通用组件 ---------- */
.mp-page { min-height: 100%; padding-bottom: 24px; animation: fadeUp .25s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.mp-hero { padding: 18px 18px 0; }
.mp-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 18px 12px; }
.mp-head h2 { font-size: 19px; margin: 0; letter-spacing: -.3px; }
.mp-head .sub { font-size: 11px; color: var(--muted); }
.mp-section { padding: 0 18px; margin-top: 20px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sec-head h3 { margin: 0; font-size: 15px; font-weight: 800; }
.sec-head .more { font-size: 11px; color: var(--muted); }
.card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 99px; }
.pill-primary { background: var(--primary-soft); color: var(--primary); }
.pill-purple { background: var(--purple-soft); color: var(--purple); }
.pill-mint { background: var(--mint-soft); color: var(--mint); }
.pill-gold { background: var(--gold-soft); color: #d48800; }
.btn { border: 0; border-radius: 10px; padding: 9px 16px; font-weight: 700; font-size: 13px; transition: .2s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(255,107,107,.28); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-purple { background: var(--purple); color: #fff; box-shadow: 0 6px 16px rgba(124,92,255,.25); }
.btn-ghost { background: #f3f4f8; color: var(--text-2); }
.btn-soft { background: var(--primary-soft); color: var(--primary); }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 11px; font-size: 11px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.empty { text-align: center; color: var(--muted); font-size: 12px; padding: 36px 0; }

/* 首页星球横幅 */
.planet-banner { position: relative; border-radius: 22px; padding: 20px; color: #fff; overflow: hidden; background: linear-gradient(135deg, #8b6bff 0%, #ff7a9e 55%, #ffb36b 100%); box-shadow: 0 12px 26px rgba(139,107,255,.28); }
.planet-banner::after { content: ''; position: absolute; width: 190px; height: 190px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; right: -60px; top: -70px; }
.planet-banner::before { content: ''; position: absolute; width: 120px; height: 120px; border: 1px dashed rgba(255,255,255,.3); border-radius: 50%; right: 26px; bottom: -55px; }
.banner-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 2; }
.banner-greeting { font-size: 12px; opacity: .9; }
.banner-title { font-size: 21px; font-weight: 800; margin-top: 3px; }
.banner-planet { font-size: 44px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.2)); animation: float 4s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-7px) rotate(6deg); } }
.banner-desc { font-size: 11px; opacity: .92; margin-top: 14px; position: relative; z-index: 2; max-width: 240px; line-height: 1.7; }
.banner-btn { margin-top: 14px; background: #fff; color: var(--purple); border: 0; border-radius: 99px; padding: 8px 15px; font-size: 12px; font-weight: 800; position: relative; z-index: 2; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.quick-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 13px 4px; text-align: center; border: 0; box-shadow: 0 3px 12px rgba(31,34,51,.04); }
.quick-item .qi-ico { width: 40px; height: 40px; border-radius: 13px; margin: 0 auto 7px; display: grid; place-items: center; font-size: 21px; }
.quick-item .qi-name { font-size: 11px; font-weight: 700; color: var(--text-2); }
.works-scroll { display: flex; gap: 11px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.works-scroll::-webkit-scrollbar { display: none; }
.work-card { flex: 0 0 146px; border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: 0 4px 14px rgba(31,34,51,.06); border: 1px solid var(--line); }
.work-cover { height: 104px; display: grid; place-items: center; font-size: 46px; position: relative; }
.work-cover .play { position: absolute; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.85); display: grid; place-items: center; font-size: 11px; color: var(--primary); }
.work-meta { padding: 8px 10px 10px; }
.work-meta b { font-size: 11px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.work-meta span { font-size: 10px; color: var(--muted); }
.prod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.prod-card { background: var(--surface); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.prod-img { height: 108px; display: grid; place-items: center; font-size: 45px; position: relative; }
.prod-tag { position: absolute; top: 8px; left: 8px; }
.prod-info { padding: 9px 10px 11px; }
.prod-info b { font-size: 11px; display: block; line-height: 1.4; height: 31px; overflow: hidden; }
.prod-price { color: var(--primary); font-weight: 800; font-size: 14px; }
.prod-price small { font-size: 10px; }
.prod-buy { float: right; width: 23px; height: 23px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; font-size: 15px; line-height: 1; display: grid; place-items: center; }

/* 创作页 */
.seg { display: flex; background: #f0f1f6; border-radius: 12px; padding: 3px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 8px; border-radius: 9px; font-size: 12px; font-weight: 700; color: var(--muted); }
.seg button.active { background: var(--surface); color: var(--primary); box-shadow: 0 2px 8px rgba(31,34,51,.08); }
.form-label { font-size: 12px; font-weight: 700; margin: 16px 0 8px; display: block; }
.pet-picker { display: flex; gap: 9px; }
.pet-opt { flex: 1; border: 1.5px solid var(--line); border-radius: 13px; background: var(--surface); padding: 10px 4px; text-align: center; }
.pet-opt .po-emoji { font-size: 26px; display: block; }
.pet-opt .po-name { font-size: 10px; color: var(--muted); }
.pet-opt.active { border-color: var(--primary); background: var(--primary-soft); }
.style-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.style-opt { border: 1.5px solid var(--line); background: var(--surface); border-radius: 11px; padding: 9px 5px; text-align: center; font-size: 11px; font-weight: 600; }
.style-opt span { display: block; font-size: 20px; margin-bottom: 3px; }
.style-opt.active { border-color: var(--purple); background: var(--purple-soft); color: var(--purple); }
.mp-input, .mp-textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 11px; padding: 10px 12px; background: var(--surface); outline: none; font-size: 12px; }
.mp-input:focus, .mp-textarea:focus { border-color: var(--primary); }
.mp-textarea { min-height: 70px; resize: vertical; }
.model-row { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.model-row::-webkit-scrollbar { display: none; }
.model-chip { flex: 0 0 auto; border: 1px solid var(--line-2); background: var(--surface); border-radius: 99px; padding: 6px 11px; font-size: 10px; font-weight: 700; white-space: nowrap; color: var(--text-2); }
.model-chip.active { background: #23253a; color: #fff; border-color: #23253a; }
.gen-bar { position: sticky; bottom: 0; background: linear-gradient(to top, #fbfbfd 72%, transparent); padding: 12px 18px 16px; margin-top: 18px; }
.gen-note { font-size: 10px; color: var(--muted); text-align: center; margin-top: 7px; }
.gen-progress { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-top: 14px; }
.gen-step { display: flex; align-items: center; gap: 9px; font-size: 11px; color: var(--muted); margin-top: 9px; }
.gen-step .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.gen-step.done { color: var(--mint); }
.gen-step.done .dot { background: var(--mint); }
.gen-step.doing { color: var(--primary); font-weight: 700; }
.gen-step.doing .dot { background: var(--primary); animation: pulse 1s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px var(--primary-soft); } }
.bar-track { height: 5px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 12px; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--purple), var(--primary)); border-radius: 99px; transition: width .5s; }

/* 社区 */
.feed-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.feed-tabs button { border: 0; background: none; padding: 0 0 9px; color: var(--muted); font-size: 13px; font-weight: 700; position: relative; }
.feed-tabs button.active { color: var(--text); }
.feed-tabs button.active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 3px; background: var(--primary); border-radius: 3px; }
.post { background: var(--surface); border-radius: 15px; padding: 13px; border: 1px solid var(--line); margin-bottom: 11px; }
.post-head { display: flex; gap: 9px; align-items: center; }
.post-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.post-who b { font-size: 12px; display: block; }
.post-who span { font-size: 10px; color: var(--muted); }
.post-text { font-size: 12px; margin: 10px 0; line-height: 1.75; color: var(--text-2); }
.post-media { height: 148px; border-radius: 12px; display: grid; place-items: center; font-size: 62px; margin-bottom: 10px; position: relative; overflow: hidden; }
.post-media .media-label { position: absolute; bottom: 8px; right: 9px; background: rgba(0,0,0,.35); color: #fff; font-size: 9px; padding: 3px 8px; border-radius: 99px; }
.post-actions { display: flex; gap: 20px; border-top: 1px solid var(--line); padding-top: 9px; }
.post-actions button { border: 0; background: none; color: var(--muted); font-size: 11px; display: flex; gap: 4px; align-items: center; padding: 0; }
.post-actions button.liked { color: var(--primary); }
.comment-box { margin-top: 10px; background: #f7f8fb; border-radius: 9px; padding: 8px 10px; font-size: 11px; color: var(--text-2); }
.fab { position: sticky; bottom: 14px; float: right; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; font-size: 24px; box-shadow: 0 8px 20px rgba(255,107,107,.4); }

/* 商城 */
.mall-search { background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 9px 15px; font-size: 12px; color: var(--muted); display: flex; gap: 7px; margin-bottom: 13px; }
.cat-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 13px; }
.cat-row::-webkit-scrollbar { display: none; }
.cat-chip { flex: 0 0 auto; padding: 6px 13px; border-radius: 99px; font-size: 11px; font-weight: 700; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); }
.cat-chip.active { background: #23253a; color: #fff; border-color: #23253a; }
.cart-bar { position: sticky; bottom: 10px; background: #23253a; color: #fff; border-radius: 14px; padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 10px 24px rgba(35,37,58,.26); margin-top: 15px; }
.cart-bar b { font-size: 17px; }
.cart-badge { background: var(--primary); color: #fff; border-radius: 99px; font-size: 9px; padding: 1px 6px; margin-left: 5px; }

/* 个人中心 */
.profile-hero { background: linear-gradient(135deg, #ff8a8a, #ffb36b); border-radius: 20px; padding: 19px; color: #fff; display: flex; gap: 13px; align-items: center; }
.profile-avatar { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.25); display: grid; place-items: center; font-size: 31px; border: 2px solid rgba(255,255,255,.6); }
.profile-hero b { font-size: 16px; display: block; }
.profile-hero span { font-size: 11px; opacity: .9; }
.profile-stats { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-top: 12px; padding: 14px 0; }
.profile-stats div { flex: 1; text-align: center; border-right: 1px solid var(--line); }
.profile-stats div:last-child { border: 0; }
.profile-stats b { display: block; font-size: 18px; color: var(--primary); }
.profile-stats span { font-size: 10px; color: var(--muted); }
.menu-list { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.menu-row { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; }
.menu-row:last-child { border: 0; }
.menu-row .mi { font-size: 17px; }
.menu-row .arrow { margin-left: auto; color: var(--muted); }

/* ---------- 弹窗 / Toast ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(20,22,36,.45); backdrop-filter: blur(3px); z-index: 100; display: grid; place-items: center; padding: 20px; animation: fadeIn .18s; }
@keyframes fadeIn { from { opacity: 0; } }
.modal { background: var(--surface); border-radius: 20px; width: 100%; max-width: 440px; max-height: 88vh; overflow: auto; box-shadow: var(--shadow-lg); padding: 22px; animation: fadeUp .22s; }
.modal.wide { max-width: 620px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-close { border: 0; background: #f2f3f7; width: 28px; height: 28px; border-radius: 50%; color: var(--muted); font-size: 15px; }
.result-visual { height: 210px; border-radius: 16px; display: grid; place-items: center; font-size: 84px; position: relative; overflow: hidden; }
.result-visual .sparkles { position: absolute; inset: 0; background: radial-gradient(circle at 20% 30%, rgba(255,255,255,.7) 0 2px, transparent 3px), radial-gradient(circle at 80% 60%, rgba(255,255,255,.8) 0 2px, transparent 3px), radial-gradient(circle at 60% 20%, rgba(255,255,255,.6) 0 2px, transparent 3px); }
.result-visual .playbig { position: absolute; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.85); display: grid; place-items: center; font-size: 19px; color: var(--primary); }
.result-info h4 { margin: 14px 0 4px; font-size: 15px; }
.result-info p { margin: 0; font-size: 11px; color: var(--muted); line-height: 1.8; }
.result-actions { display: flex; gap: 9px; margin-top: 16px; }
.result-actions .btn { flex: 1; }
#toast-root { position: fixed; top: 78px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: #23253a; color: #fff; padding: 10px 18px; border-radius: 99px; font-size: 12px; font-weight: 600; box-shadow: var(--shadow-lg); animation: toastIn .25s; }
.toast.success { background: #1e9e68; }
.toast.error { background: #e14b4b; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- PC 管理后台 ---------- */
.admin-shell { display: flex; background: var(--bg); }
.admin-sidebar { width: 224px; background: #23253a; color: #fff; display: flex; flex-direction: column; flex-shrink: 0; min-height: calc(100vh - 62px); position: sticky; top: 62px; height: calc(100vh - 62px); }
.sidebar-brand { padding: 22px 20px; font-size: 16px; font-weight: 800; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; gap: 8px; }
.sidebar-brand span { font-size: 22px; }
.sidebar-brand small { font-size: 10px; font-weight: 500; color: #9ba0bd; margin-left: auto; }
.admin-nav { flex: 1; padding: 14px 11px; overflow-y: auto; }
.nav-group { font-size: 10px; letter-spacing: 1.5px; color: #737997; padding: 14px 10px 7px; font-weight: 700; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: #b9bed4; font-size: 12px; font-weight: 600; cursor: pointer; border: 0; background: none; width: 100%; text-align: left; margin-bottom: 3px; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(255,107,107,.3); }
.nav-item .ni { font-size: 15px; width: 18px; text-align: center; }
.sidebar-foot { padding: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-user { display: flex; gap: 9px; align-items: center; }
.avatar-txt { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--gold)); display: grid; place-items: center; font-weight: 800; }
.sidebar-user b { font-size: 11px; display: block; }
.sidebar-user small { font-size: 9px; color: #8e94b2; }
.admin-main { flex: 1; min-width: 0; }
.admin-topbar { background: var(--surface); padding: 17px 26px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 62px; z-index: 20; }
.admin-topbar h1 { margin: 0; font-size: 19px; }
.admin-topbar p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.topbar-actions { display: flex; gap: 9px; }
.admin-view { padding: 22px 26px 40px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; padding: 17px; position: relative; overflow: hidden; }
.stat-card .sc-top { display: flex; justify-content: space-between; align-items: center; }
.stat-card .sc-label { font-size: 11px; color: var(--muted); font-weight: 600; }
.stat-card .sc-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 16px; }
.stat-card .sc-num { font-size: 26px; font-weight: 800; margin-top: 10px; letter-spacing: -.5px; }
.stat-card .sc-trend { font-size: 10px; color: var(--mint); font-weight: 700; }
.stat-card .sc-trend.down { color: var(--primary); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; padding: 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.panel-head h3 { margin: 0; font-size: 14px; }
.panel-head .sub { font-size: 11px; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 15px; margin-top: 15px; }
.grid-2e { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 15px; }
.chart { height: 190px; display: flex; align-items: flex-end; gap: 12px; padding-top: 12px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; justify-content: flex-end; }
.chart-bar { width: 60%; max-width: 34px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #ffa3a3, var(--primary)); transition: height .5s; }
.chart-bar.purple { background: linear-gradient(180deg, #b5a4ff, var(--purple)); }
.chart-col span { font-size: 10px; color: var(--muted); }
.chart-col b { font-size: 10px; color: var(--text-2); }
.donut-wrap { display: flex; align-items: center; gap: 20px; justify-content: center; height: 190px; }
.donut { width: 132px; height: 132px; border-radius: 50%; background: conic-gradient(var(--primary) 0 42%, var(--purple) 42% 70%, var(--gold) 70% 88%, var(--mint) 88% 100%); display: grid; place-items: center; flex-shrink: 0; }
.donut::after { content: ''; width: 92px; height: 92px; background: var(--surface); border-radius: 50%; position: absolute; }
.donut-inner { position: relative; z-index: 1; text-align: center; }
.donut-inner b { font-size: 20px; display: block; }
.donut-inner span { font-size: 9px; color: var(--muted); }
.legend { display: flex; flex-direction: column; gap: 10px; }
.legend div { font-size: 11px; color: var(--text-2); display: flex; align-items: center; gap: 7px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; }
.tbl-tools { display: flex; gap: 9px; margin-bottom: 14px; flex-wrap: wrap; }
.tbl-tools input, .tbl-tools select { border: 1px solid var(--line-2); border-radius: 9px; padding: 8px 11px; font-size: 12px; outline: none; background: var(--surface); }
.tbl-tools input:focus, .tbl-tools select:focus { border-color: var(--primary); }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { text-align: left; color: var(--muted); font-weight: 700; font-size: 10px; letter-spacing: .5px; padding: 9px 10px; background: #f8f9fc; }
td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td b { font-weight: 700; }
.tbl-emoji { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.cell-flex { display: flex; gap: 9px; align-items: center; }
.status { font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.status-on { background: var(--mint-soft); color: var(--mint); }
.status-wait { background: var(--gold-soft); color: #d48800; }
.status-off { background: #f1f2f6; color: var(--muted); }
.status-err { background: var(--primary-soft); color: var(--primary); }
.icon-btn { border: 0; background: #f3f4f8; width: 27px; height: 27px; border-radius: 7px; font-size: 12px; color: var(--text-2); margin-right: 5px; }
.icon-btn:hover { background: var(--primary-soft); color: var(--primary); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field label { display: block; font-size: 11px; font-weight: 700; margin-bottom: 6px; color: var(--text-2); }
.form-field input, .form-field select, .form-field textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 9px; padding: 9px 11px; font-size: 12px; outline: none; background: var(--surface); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--primary); }
.form-field textarea { min-height: 76px; resize: vertical; }
.upload-zone { border: 1.5px dashed var(--line-2); border-radius: 12px; padding: 22px; text-align: center; background: var(--surface-soft); cursor: pointer; }
.upload-zone:hover { border-color: var(--primary); background: var(--primary-soft); }
.upload-zone .uz-ico { font-size: 28px; }
.upload-zone b { display: block; font-size: 12px; margin-top: 5px; }
.upload-zone span { font-size: 10px; color: var(--muted); }
.modal-foot { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); }
.rule-card { border: 1px solid var(--line); border-radius: 13px; padding: 15px; display: flex; gap: 13px; align-items: flex-start; background: var(--surface); }
.rule-card .rc-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.rule-card h4 { margin: 0 0 3px; font-size: 13px; }
.rule-card p { margin: 0; font-size: 11px; color: var(--muted); line-height: 1.6; }
.switch { width: 38px; height: 21px; border-radius: 99px; background: var(--line-2); position: relative; border: 0; flex-shrink: 0; transition: .2s; }
.switch::after { content: ''; width: 17px; height: 17px; border-radius: 50%; background: #fff; position: absolute; top: 2px; left: 2px; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch.on { background: var(--mint); }
.switch.on::after { left: 19px; }
.progress-line { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.progress-line i { display: block; height: 100%; background: linear-gradient(90deg, var(--purple), var(--primary)); border-radius: 99px; }
.model-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.model-card .mc-head { display: flex; align-items: center; gap: 10px; }
.model-card .mc-logo { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; }
.model-card h4 { margin: 0; font-size: 13px; }
.model-card .mc-desc { font-size: 10px; color: var(--muted); margin-top: 2px; }
.model-card .mc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.mini-input { border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 9px; font-size: 11px; width: 100%; outline: none; }
.step-line { display: flex; align-items: center; gap: 7px; font-size: 11px; }
.step-line .sn { width: 20px; height: 20px; border-radius: 50%; background: var(--purple-soft); color: var(--purple); display: grid; place-items: center; font-size: 10px; font-weight: 800; }
.notice { background: var(--blue-soft); border: 1px solid #d9e7ff; border-radius: 11px; padding: 11px 14px; font-size: 11px; color: #3568c4; line-height: 1.7; margin-bottom: 15px; }

/* ---------- 增强功能组件 ---------- */
.checkin-strip { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 11px 13px; display: flex; align-items: center; gap: 11px; text-align: left; }
.checkin-strip > span:first-child { font-size: 22px; }
.checkin-strip div { flex: 1; }
.checkin-strip b { display: block; font-size: 12px; }
.checkin-strip small { font-size: 10px; color: var(--muted); }
.strip-go { font-size: 10px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.speech-bubble { margin-top: 12px; background: var(--gold-soft); border-radius: 11px; padding: 10px 12px; font-size: 11px; color: #8a5a00; line-height: 1.7; }
.challenge-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 13px; }
.challenge-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 11px; }
.challenge-row:first-of-type { border-top: 0; }
.challenge-row b { font-size: 11px; }
.challenge-row small { color: var(--muted); font-size: 10px; }
.challenge-row .strip-go { margin-left: auto; }
.resident-card { background: linear-gradient(160deg, #2b2d45, #454069); border-radius: 18px; padding: 18px; color: #fff; }
.resident-top { display: flex; justify-content: space-between; font-size: 9px; letter-spacing: 1px; color: #b9bdd8; border-bottom: 1px dashed rgba(255,255,255,.25); padding-bottom: 11px; }
.resident-top b { color: #ffd08a; }
.resident-main { display: flex; gap: 14px; align-items: center; padding: 16px 0; }
.ip-avatar { width: 68px; height: 68px; border-radius: 18px; display: grid; place-items: center; font-size: 38px; flex-shrink: 0; border: 2px solid rgba(255,255,255,.4); }
.resident-main h3 { margin: 0 0 5px; font-size: 20px; }
.resident-main p { margin: 7px 0 0; font-size: 11px; color: #c8cbe0; }
.field-line { display: flex; justify-content: space-between; font-size: 11px; padding: 7px 0; border-top: 1px solid rgba(255,255,255,.1); color: #c8cbe0; }
.field-line b { color: #fff; }
.check-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.check-item { border: 1px solid var(--line-2); background: var(--surface-soft); border-radius: 12px; padding: 11px 3px; text-align: center; }
.check-item span { display: block; font-size: 24px; }
.check-item b { display: block; font-size: 11px; margin-top: 3px; }
.check-item small { font-size: 9px; color: var(--muted); }
.check-item.done { border-color: var(--mint); background: var(--mint-soft); }
.check-item.done small { color: var(--mint); }
.week-row { display: flex; gap: 7px; }
.week-day { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 10px 0; text-align: center; }
.week-day span { display: block; font-size: 10px; color: var(--muted); }
.week-day b { font-size: 15px; color: var(--line-2); }
.week-day.on { background: var(--mint-soft); border-color: #b8ead1; }
.week-day.on b { color: var(--mint); }
.week-day.today { box-shadow: 0 0 0 2px var(--primary-soft); }
.coin-hero { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #ffb020, #ff8a4c); border-radius: 15px; padding: 15px; color: #fff; }
.coin-hero > span { font-size: 28px; }
.coin-hero div { flex: 1; }
.coin-hero b { font-size: 19px; display: block; }
.coin-hero small { font-size: 10px; opacity: .9; }
.member-card { background: #23253a; color: #fff; border-radius: 15px; padding: 16px; margin-top: 12px; display: flex; align-items: center; gap: 10px; }
.member-card h3 { margin: 8px 0 3px; font-size: 14px; }
.member-card p { margin: 0; font-size: 10px; color: #b9bdd8; }
.reward-item { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 11px 13px; margin-bottom: 9px; }
.reward-item > span { font-size: 24px; }
.reward-item b { font-size: 12px; display: block; }
.reward-item small { font-size: 10px; color: var(--gold); }
.svc-item { display: flex; align-items: center; gap: 11px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 12px; margin-bottom: 9px; }
.svc-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); display: grid; place-items: center; font-size: 23px; }
.svc-item b { font-size: 12px; display: block; }
.svc-item small { font-size: 10px; color: var(--muted); }

/* ---------- 宠物版抖音：短视频流 ---------- */
.phone-view.feed-mode { overflow: hidden; }
.video-page { height: 100%; display: flex; flex-direction: column; padding-bottom: 0; }
.video-top { height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; gap: 22px; color: rgba(31,34,51,.55); font-size: 13px; font-weight: 600; position: relative; background: #fbfbfd; }
.video-top b { color: var(--text); font-size: 15px; font-weight: 800; position: relative; }
.video-top b::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: -5px; width: 18px; height: 3px; border-radius: 3px; background: var(--primary); }
.video-top button { position: absolute; right: 14px; border: 0; background: var(--surface); width: 26px; height: 26px; border-radius: 8px; color: var(--primary); font-size: 17px; box-shadow: 0 2px 8px rgba(31,34,51,.08); }
.video-stage { flex: 1; position: relative; overflow: hidden; display: grid; place-items: center; }
.video-orb { position: absolute; width: 300px; height: 300px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); box-shadow: inset 0 0 60px rgba(255,255,255,.3); }
.video-orb::after { content: ''; position: absolute; width: 190px; height: 190px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.5); left: 55px; top: 55px; }
.video-emoji { font-size: 148px; z-index: 2; cursor: pointer; filter: drop-shadow(0 18px 24px rgba(0,0,0,.16)); animation: petBounce 2.6s ease-in-out infinite; }
@keyframes petBounce { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(5deg); } }
.video-stage.paused .video-emoji { animation-play-state: paused; }
.big-play { position: absolute; z-index: 3; width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,.82); display: grid; place-items: center; font-size: 24px; color: var(--primary); }
.video-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.35); z-index: 5; }
.video-progress i { display: block; height: 100%; background: #fff; width: 0; transition: width .1s linear; }
.video-side { position: absolute; right: 11px; bottom: 74px; z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 15px; }
.vs-ava { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.9); display: grid; place-items: center; font-size: 21px; position: relative; margin-bottom: 4px; cursor: pointer; }
.vs-follow { position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%); width: 17px; height: 17px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 12px; line-height: 17px; text-align: center; font-weight: 800; }
.vs-follow.on { background: var(--mint); }
.vs-btn { border: 0; background: none; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 2px; text-shadow: 0 1px 4px rgba(0,0,0,.3); padding: 0; }
.vs-btn b { font-size: 26px; line-height: 1; }
.vs-btn small { font-size: 9px; font-weight: 700; }
.vs-btn.liked b { filter: drop-shadow(0 0 5px rgba(255,107,107,.8)); }
.video-meta { position: absolute; left: 15px; right: 64px; bottom: 18px; z-index: 6; color: #fff; text-shadow: 0 1px 5px rgba(0,0,0,.35); }
.vm-author { font-size: 13px; font-weight: 800; margin-bottom: 5px; }
.vm-desc { font-size: 11px; line-height: 1.6; }
.vm-tags { display: flex; gap: 8px; margin-top: 5px; font-size: 11px; font-weight: 700; }
.vm-music { font-size: 10px; margin-top: 7px; opacity: .9; }
.video-nav { position: absolute; right: 12px; top: 42%; z-index: 6; display: flex; flex-direction: column; gap: 6px; }
.video-nav button { width: 27px; height: 27px; border-radius: 50%; border: 0; background: rgba(255,255,255,.28); color: #fff; font-size: 10px; }
.swipe-tip { position: absolute; left: 50%; transform: translateX(-50%); bottom: 8px; z-index: 6; color: rgba(255,255,255,.75); font-size: 9px; animation: tipFade 2s ease-in-out infinite; }
@keyframes tipFade { 50% { opacity: .35; } }
.video-dots { height: 14px; flex-shrink: 0; display: flex; gap: 4px; align-items: center; justify-content: center; background: #fbfbfd; }
.video-dots i { width: 4px; height: 4px; border-radius: 99px; background: var(--line-2); }
.video-dots i.on { width: 14px; background: var(--primary); }

/* ---------- 登录 / 注册 ---------- */
.login-page { background: linear-gradient(170deg, #fff4ec 0%, #f5f1ff 55%, #fbfbfd 100%); }
.login-hero { padding: 78px 0 34px; text-align: center; }
.login-planet { font-size: 68px; animation: float 4s ease-in-out infinite; }
.login-hero h1 { font-size: 26px; margin: 14px 0 4px; letter-spacing: 1px; }
.login-hero p { color: var(--muted); font-size: 12px; margin: 0; }
.login-form { background: var(--surface); border-radius: 20px; padding: 22px 20px; margin: 0 22px; box-shadow: var(--shadow); }
.lf-label { font-size: 12px; font-weight: 700; margin-bottom: 9px; }
.lf-input { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line-2); border-radius: 11px; padding: 10px 12px; margin-bottom: 16px; background: var(--surface-soft); }
.lf-input span { font-size: 12px; font-weight: 700; border-right: 1px solid var(--line-2); padding-right: 9px; }
.lf-input input { border: 0; background: none; outline: none; flex: 1; font-size: 13px; min-width: 0; }
.login-agree { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); margin-top: 13px; }
.login-foot { text-align: center; font-size: 10px; color: var(--muted); margin-top: 20px; }
.login-phone-row { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 9px 12px; font-size: 11px; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.login-phone-row span { margin-left: auto; color: var(--mint); font-weight: 700; }

/* ---------- 评论抽屉 ---------- */
.drawer-mask { position: fixed; inset: 0; background: rgba(20,22,36,.45); z-index: 110; display: flex; align-items: flex-end; justify-content: center; }
.drawer { width: 100%; max-width: 402px; max-height: 66vh; background: var(--surface); border-radius: 20px 20px 0 0; display: flex; flex-direction: column; padding: 16px 16px 0; animation: drawerUp .25s ease; }
@keyframes drawerUp { from { transform: translateY(100%); } }
.drawer-head { text-align: center; font-size: 13px; font-weight: 700; padding-bottom: 12px; border-bottom: 1px solid var(--line); position: relative; }
.drawer-head button { position: absolute; right: 0; top: -3px; border: 0; background: none; font-size: 20px; color: var(--muted); }
.drawer-list { overflow-y: auto; padding: 10px 0; flex: 1; }
.drawer-comment { display: flex; gap: 9px; padding: 8px 0; }
.dc-ava { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-soft); display: grid; place-items: center; font-size: 15px; flex-shrink: 0; }
.drawer-comment b { font-size: 11px; color: var(--muted); }
.drawer-comment p { margin: 2px 0 0; font-size: 12px; }
.drawer-input { display: flex; gap: 8px; padding: 10px 0 16px; border-top: 1px solid var(--line); }
.drawer-input input { flex: 1; border: 1px solid var(--line-2); border-radius: 99px; padding: 8px 13px; outline: none; font-size: 12px; min-width: 0; }

/* ---------- 作者主页与粉丝 ---------- */
.vm-author { cursor: pointer; }
.vs-ava { cursor: pointer; }
.author-hero { border-radius: 16px; padding: 16px; color: #fff; display: flex; gap: 11px; align-items: center; }
.author-avatar { width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.35); border: 2px solid rgba(255,255,255,.65); display: grid; place-items: center; font-size: 32px; flex-shrink: 0; }
.author-info { flex: 1; min-width: 0; }
.author-info h3 { margin: 0 0 4px; font-size: 16px; display: flex; align-items: center; gap: 6px; }
.author-info p { margin: 0; font-size: 10px; opacity: .9; line-height: 1.5; }
.author-stats { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 13px 0; margin-top: 11px; }
.author-stats div { flex: 1; text-align: center; border-right: 1px solid var(--line); cursor: pointer; }
.author-stats div:last-child { border: 0; }
.author-stats b { display: block; font-size: 18px; color: var(--text); }
.author-stats span { font-size: 10px; color: var(--muted); }
.growth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 13px; margin-top: 11px; }
.growth-bars { display: flex; align-items: flex-end; gap: 8px; height: 76px; }
.growth-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.growth-col i { width: 60%; max-width: 22px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #ffa3a3, var(--primary)); }
.growth-col span { font-size: 9px; color: var(--muted); }
.author-video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.av-card { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.av-cover { height: 96px; display: grid; place-items: center; font-size: 44px; position: relative; }
.av-cover span { position: absolute; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.85); color: var(--primary); display: grid; place-items: center; font-size: 10px; }
.av-card b { display: block; font-size: 10px; padding: 7px 8px 0; }
.av-card small { display: block; font-size: 9px; color: var(--muted); padding: 2px 8px 8px; }

/* ---------- 搜索 / 登录引导 / 挂车 / 打赏 ---------- */
.search-btn { font-size: 13px !important; }
.vm-product { margin-top: 8px; background: rgba(255,255,255,.22); border-radius: 9px; padding: 7px 9px; font-size: 10px; display: flex; align-items: center; gap: 4px; }
.vm-product span { margin-left: auto; font-weight: 700; }
.gate-page { text-align: center; padding: 90px 26px 0; }
.gate-ico { font-size: 58px; }
.gate-page h2 { font-size: 18px; margin: 14px 0 8px; }
.gate-page p { color: var(--muted); font-size: 12px; line-height: 1.8; margin-bottom: 24px; }
.gift-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px 0; }
.gift-item { border: 1px solid var(--line); background: var(--surface-soft); border-radius: 12px; padding: 12px 4px; display: flex; flex-direction: column; align-items: center; }
.gift-item:hover { border-color: var(--primary); }
.gift-item span { font-size: 28px; }
.gift-item b { font-size: 11px; margin-top: 3px; }
.gift-item small { font-size: 9px; color: var(--gold); }

.funnel { display: flex; flex-direction: column; gap: 7px; }
.funnel-step { display: flex; align-items: center; gap: 10px; }
.funnel-bar { background: linear-gradient(90deg, var(--purple), var(--primary)); border-radius: 6px; padding: 6px 10px; color: #fff; font-size: 11px; font-weight: 700; min-width: 90px; }
.funnel-step b { font-size: 11px; color: var(--text-2); }

@media (max-width: 1100px) {
  .mobile-aside { display: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-2e { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .global-bar { padding: 0 12px; }
  .brand-en, .env-chip { display: none; }
  .mode-btn { padding: 7px 10px; font-size: 11px; }
  .mobile-shell { padding: 14px 0; }
  .phone-frame { transform: scale(.9); transform-origin: top center; margin-bottom: -80px; }
  .admin-sidebar { width: 62px; }
  .sidebar-brand { font-size: 0; padding: 18px 14px; }
  .sidebar-brand span { font-size: 22px; }
  .sidebar-brand small, .nav-item span:not(.ni), .nav-group, .sidebar-user div { display: none; }
  .nav-item { justify-content: center; }
  .admin-view { padding: 15px; }
}
