/* 系统应用页面：外观、伪装页设置、我的、占位页 */
.sys { min-height: 100%; padding: 20px 28px 28px; display: flex; gap: 24px; align-items: flex-start; }
.sys__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.sys__aside { flex: 0 0 320px; display: flex; flex-direction: column; gap: 12px; }
.sys__aside--wide { flex-basis: 340px; }
.sys h1 { font-size: 28px; font-weight: 900; line-height: 1.25; }
.sys__lead { margin-top: 2px; color: var(--text2); }
.sys h2 { font-size: 14px; font-weight: 700; }
.sys__row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sys__label { font-size: 13px; font-weight: 700; width: 40px; flex: none; }
.sys__muted { font-size: 12px; color: var(--muted); }
.sys__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }

.panel { padding: 16px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--card-line); display: flex; flex-direction: column; gap: 14px; }
.panel--note { padding: 14px 18px; font-size: 12px; color: var(--muted); line-height: 1.6; }

/* 分段按钮 */
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--field); border: 1px solid var(--field-line); }
.seg button { min-height: 32px; padding: 0 16px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 13px; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--sel); color: var(--text); font-weight: 700; }

/* 壁纸 */
.wall-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.wall-card { display: flex; flex-direction: column; gap: 6px; padding: 6px; border: 2px solid transparent; border-radius: 14px; background: transparent; color: var(--text); text-align: left; }
.wall-card[aria-pressed="true"] { border-color: var(--pri); }
.wall-card:hover { background: var(--card); }
.wall-prev { position: relative; display: block; height: 96px; border-radius: 9px; overflow: hidden; }
.wall-prev i { position: absolute; border-radius: 5px; }
.wall-prev .a { left: 14%; top: 22%; width: 52%; height: 46%; }
.wall-prev .b { left: 34%; bottom: 8%; width: 32%; height: 10%; border-radius: 4px; }
.wall-prev--dark i { background: rgba(20, 21, 26, 0.7); }
.wall-prev--light i { background: rgba(250, 250, 252, 0.8); }
.wall-card__meta { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 2px; font-size: 13px; }
.wall-card__meta span:first-child { font-weight: 500; }
.wall-card__meta span:last-child { font-size: 11px; color: var(--muted); }

.opt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.opt-card { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--card-line); background: var(--card); cursor: pointer; position: relative; }
.opt-card--dash { border: 1.5px dashed var(--outline); background: transparent; }
.opt-card:hover, .opt-card:focus-within { border-color: var(--outline); }
.opt-card:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.opt-card > span:last-of-type { display: flex; flex-direction: column; min-width: 0; }
.opt-card .t { font-weight: 500; }
.opt-card input[type="color"] { width: 40px; height: 40px; border: 0; padding: 0; background: transparent; cursor: pointer; flex: none; }
.opt-card__ic { width: 40px; height: 40px; border-radius: 10px; background: var(--sel); display: flex; align-items: center; justify-content: center; flex: none; background-size: cover; background-position: center; }
.opt-card .sr-only { opacity: 0; }
.status-line { min-height: 18px; font-size: 12px; color: var(--muted); }
.status-line[data-kind="warn"] { color: var(--warn); }

/* 开关行 */
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; cursor: pointer; }
.toggle > span { display: flex; flex-direction: column; }
.toggle small { font-size: 12px; color: var(--muted); }
.toggle input[type="checkbox"] { width: 17px; height: 17px; margin: 0; accent-color: var(--pri); flex: none; }
.range { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.range > span { display: flex; justify-content: space-between; }
.range > span span:last-child { color: var(--muted); }
.range input { width: 100%; accent-color: var(--pri); }

.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.field > span { color: var(--text2); }
.field input[type="text"], .field input[type="password"], .select {
  height: 36px; padding: 0 10px; border: 1px solid var(--field-line); border-radius: 8px;
  background: var(--field); color: var(--text); font-size: 14px;
}
.field input:focus { border-color: var(--outline); }
.select { height: 32px; font-size: 13px; }
.select option { color: #111; }
.line-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.line-row > span:first-child { color: var(--text2); }

/* 伪装模板卡 */
.thumb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.thumb-card { position: relative; display: flex; flex-direction: column; padding: 0; border: 1px solid var(--card-line); border-radius: 14px; background: var(--card); overflow: hidden; text-align: left; color: inherit; }
.thumb-card[aria-pressed="true"] { border: 2px solid var(--pri); }
.thumb-card:hover { border-color: var(--outline); }
.thumb-card__pic { display: block; height: 150px; padding: 12px; background: #F2F1EE; position: relative; overflow: hidden; }
.thumb-card__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb-card__tick { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--pri); color: var(--pri-text); display: flex; align-items: center; justify-content: center; z-index: 2; }
.thumb-card__txt { display: flex; flex-direction: column; padding: 10px 14px 12px; }
.thumb-card__txt b { font-weight: 700; }
.thumb-card__txt b small { font-weight: 400; font-size: 12px; color: var(--muted); }
.thumb-card__txt span { font-size: 12px; color: var(--muted); }
.shot-del { position: absolute; top: 8px; left: 8px; z-index: 3; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.6); color: #fff; display: flex; align-items: center; justify-content: center; }
.shot-wrap { position: relative; }

.drop { min-height: 120px; padding: 16px; border-radius: 12px; border: 1.5px dashed var(--outline); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; cursor: pointer; position: relative; }
.drop:hover, .drop[data-over="1"], .drop:focus-within { background: var(--sel); }
.drop:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.drop .t { font-weight: 500; }
.mini-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mini-shot { display: flex; flex-direction: column; gap: 4px; padding: 6px; border: 1px solid var(--card-line); border-radius: 10px; background: transparent; color: var(--text2); font-size: 12px; text-align: left; }
.mini-shot[aria-pressed="true"] { border-color: var(--pri); }
.mini-shot i { display: block; height: 48px; border-radius: 6px; background: var(--sel) center / cover; }
.lock-line { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.kbd-fixed { display: inline-flex; align-items: center; gap: 8px; }
.kbd-fixed kbd { font-size: 12px; padding: 1px 8px; border-radius: 6px; background: var(--field); border-color: var(--field-line); }

/* 我的 */
.me-card { display: flex; align-items: center; gap: 16px; }
.me-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--sel); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 900; flex: none; }
.me-name { font-size: 22px; font-weight: 900; line-height: 1.3; }
.me-sub { color: var(--muted); font-size: 13px; }
.badge { display: inline-flex; align-items: center; padding: 0 8px; border-radius: 999px; border: 1px solid var(--warn); color: var(--warn); font-size: 12px; margin-left: 8px; vertical-align: middle; font-weight: 400; }
.me-links { display: flex; flex-direction: column; }
.me-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.me-links a:last-child { border-bottom: 0; }
.me-links a:hover { background: var(--sel); border-radius: 8px; }
.me-links small { color: var(--muted); font-size: 12px; display: block; }
.form-err { min-height: 18px; font-size: 13px; color: var(--bad); }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; }
.tabs-mini { display: flex; gap: 4px; }
.tabs-mini button { padding: 4px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 14px; }
.tabs-mini button[aria-pressed="true"] { background: var(--sel); color: var(--text); font-weight: 700; }

/* 占位页 */
.ph { min-height: 100%; padding: 48px 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.ph h1 { font-size: 28px; font-weight: 900; }
.ph p { color: var(--text2); max-width: 420px; }
.ph__tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--sel); font-size: 12px; color: var(--muted); }
.ph__apps { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.ph__apps a { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 84px; text-decoration: none; font-size: 12px; border-radius: 12px; }

@media (max-width: 900px) {
  .sys { flex-direction: column; }
  .sys__aside, .sys__aside--wide { flex-basis: auto; width: 100%; }
  .wall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thumb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .sys { padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); }
  .sys h1 { font-size: 24px; }
  .opt-grid { grid-template-columns: 1fr; }
  .thumb-grid { gap: 10px; }
  .thumb-card__pic { height: 110px; }
}
