/* ===========================================================
   《雾川夜话》手机界面样式
   =========================================================== */
:root {
  --bg: #07070b;
  --screen: #101014;
  --card: #1b1b21;
  --card2: #24242c;
  --text: #ececef;
  --muted: #93939d;
  --line: rgba(255, 255, 255, .08);
  --green: #07c160;
  --blue: #4a7cf7;
  --amber: #d29a4a;
  --pink: #fb7299;
  --yellow: #ffc233;
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(900px 500px at 50% 0%, #191627 0%, #0a0912 55%, #06060a 100%);
  font-family: var(--font);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
}

/* ---------- 手机外壳 ---------- */
.phone {
  position: relative;
  width: 390px;
  height: min(800px, calc(100dvh - 40px));
  background: #000;
  border-radius: 46px;
  border: 1px solid #2a2a33;
  box-shadow:
    0 0 0 9px #131318,
    0 0 0 10px #2c2c35,
    0 40px 90px rgba(0, 0, 0, .75);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.notch {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 108px; height: 26px;
  background: #000;
  border-radius: 14px;
  z-index: 30;
  pointer-events: none;
}

.statusbar {
  flex: none;
  height: 48px;
  padding: 14px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  letter-spacing: .02em;
  color: #fff;
  z-index: 20;
  position: relative;
}
.statusbar .right { display: flex; align-items: center; gap: 6px; opacity: .9; }
.statusbar .battery {
  width: 22px; height: 11px;
  border: 1px solid #fff;
  border-radius: 3px;
  position: relative;
  opacity: .9;
}
.statusbar .battery::after {
  content: "";
  position: absolute; inset: 1.5px;
  width: 6px;
  background: #ff5a5f;
  border-radius: 1px;
}
.statusbar .help {
  border: none;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 11px;
  width: 20px; height: 20px;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.screen {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--screen);
  position: relative;
  scrollbar-width: none;
}
.screen::-webkit-scrollbar { display: none; }

.overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: none;
}
.overlay.on { display: block; }

/* ---------- 锁屏 ---------- */
body.is-locked .statusbar { display: none; }

.lock {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 54px 24px 26px;
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(420px 300px at 78% 4%, rgba(214, 28, 48, .32), transparent 70%),
    radial-gradient(380px 280px at 6% 96%, rgba(44, 44, 78, .55), transparent 70%),
    linear-gradient(165deg, #1b0b10 0%, #0b0910 52%, #050507 100%);
}
.lock-brand {
  position: absolute;
  right: -22px;
  top: 86px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 104px;
  letter-spacing: -.02em;
  color: rgba(255, 255, 255, .055);
  transform: rotate(-6deg);
  pointer-events: none;
}
.lock-brand2 {
  position: absolute;
  right: 18px;
  top: 202px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 26px;
  letter-spacing: .18em;
  color: rgba(255, 255, 255, .09);
  transform: rotate(-6deg);
  pointer-events: none;
}
.lock-time {
  font-size: 62px;
  font-weight: 200;
  line-height: 1;
  letter-spacing: .01em;
}
.lock-date {
  margin-top: 8px;
  font-size: 12.5px;
  letter-spacing: .1em;
  color: #b3b0c2;
}
.lock-notes { margin-top: 30px; position: relative; z-index: 2; }
.lock-note {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .06);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 10px 13px;
  margin-bottom: 9px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #ecebf2;
}
.lock-note b {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  color: #a9a6ba;
  margin-bottom: 3px;
}
.lock-bottom { margin-top: auto; position: relative; z-index: 2; }
.lock-hint {
  font-size: 12px;
  color: #bcb9c9;
  text-align: center;
  margin: 0 0 16px;
  letter-spacing: .03em;
  line-height: 1.6;
}
.pin-dots {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 18px;
}
.pin-dots i {
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .55);
  transition: background .12s;
}
.pin-dots i.on { background: #fff; border-color: #fff; }
.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pin-pad button {
  height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 21px;
  font-weight: 300;
  font-family: var(--font);
  cursor: pointer;
}
.pin-pad button:active { background: rgba(255, 255, 255, .2); }
.lock-err {
  min-height: 18px;
  margin: 10px 0 0;
  text-align: center;
  color: #ff6b6b;
  font-size: 12px;
  letter-spacing: .05em;
}

/* ---------- 桌面 ---------- */
.home {
  min-height: 100%;
  padding: 22px 22px 30px;
  background:
    radial-gradient(420px 320px at 80% 0%, rgba(90, 70, 160, .35), transparent 70%),
    radial-gradient(500px 380px at 10% 100%, rgba(30, 90, 120, .35), transparent 70%),
    linear-gradient(180deg, #15121f 0%, #0b0b12 60%, #07070a 100%);
  display: flex;
  flex-direction: column;
}

.home-clock {
  font-size: 62px;
  font-weight: 200;
  letter-spacing: .02em;
  line-height: 1;
  margin-top: 18px;
  color: #f4f2f8;
  text-shadow: 0 2px 30px rgba(120, 110, 200, .35);
}
.home-date {
  font-size: 12.5px;
  color: #a6a3b8;
  margin-top: 8px;
  letter-spacing: .1em;
}

.apps {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 12px;
}
.app {
  background: none;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  position: relative;
}
.app .icon {
  width: 56px; height: 56px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 23px;
  color: #fff;
  font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 14px rgba(0,0,0,.4);
}
.app .label {
  font-size: 11.5px;
  color: #ddd9e8;
  letter-spacing: .02em;
}
.app:active .icon { transform: scale(.94); }
.app .badge {
  position: absolute;
  top: -4px; right: 14px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #ff3b30;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  font-weight: 600;
}

.dock {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 10px 14px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 24px;
  backdrop-filter: blur(14px);
}
.dock .app .label { display: none; }

.home-foot {
  margin-top: 16px;
  padding-top: 0;
  font-size: 11px;
  color: #6e6b80;
  text-align: center;
  letter-spacing: .08em;
}

/* ---------- 应用通用 ---------- */
.app-screen {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--screen);
}

.appbar {
  position: sticky;
  top: 0;
  z-index: 10;
  flex: none;
  height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: rgba(20, 20, 26, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.appbar h2 {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  flex: 1;
  text-align: center;
  padding-right: 34px;
}
.appbar .back {
  width: 34px; height: 34px;
  border: none;
  background: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.appbar .back:hover { background: rgba(255,255,255,.08); }
.appbar .act {
  border: none;
  background: none;
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
  padding: 6px 4px;
}

.body { padding: 14px 16px 46px; flex: 1; }
.body.flush { padding: 0 0 46px; }

.hintline {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 14px;
}
.center { text-align: center; }

/* ---------- 维信 ---------- */
.wx-tabs {
  flex: none;
  display: flex;
  border-top: 1px solid var(--line);
  background: #16161c;
}
.wx-tab {
  flex: 1;
  border: none;
  background: none;
  color: #777781;
  font-size: 11px;
  padding: 8px 0 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  position: relative;
}
.wx-tab.on { color: var(--green); }
.wx-tab .ti { font-size: 18px; line-height: 1; }
.wx-tab .badge2 {
  position: absolute;
  top: 4px; left: 50%; margin-left: 4px;
  min-width: 15px; height: 15px;
  border-radius: 8px;
  background: #ff3b30;
  color: #fff; font-size: 10px; line-height: 15px;
}

.chat-row {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  cursor: pointer;
  align-items: center;
}
.chat-row:active { background: rgba(255,255,255,.03); }
.avatar {
  width: 46px; height: 46px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 19px;
  color: #fff;
  flex: none;
}
.chat-main { flex: 1; min-width: 0; }
.chat-name { font-size: 15.5px; margin-bottom: 5px; }
.chat-preview {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-meta {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.chat-time { font-size: 11px; color: #6f6f79; }
.badge3 {
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #ff3b30;
  color: #fff; font-size: 11px; line-height: 18px; text-align: center;
}

.friend-req {
  margin: 12px 0 4px;
  background: #1d1a17;
  border: 1px solid rgba(210, 154, 74, .35);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.friend-req .txt { flex: 1; font-size: 12.5px; color: #e3d6bd; line-height: 1.6; }
.friend-req .txt b { display: block; font-size: 14px; color: #f3e7cd; margin-bottom: 3px; }
.friend-req button {
  border: none;
  background: var(--amber);
  color: #201a12;
  font-size: 12.5px;
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

/* 聊天窗口 */
.messages {
  padding: 16px 14px 30px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.day-sep {
  text-align: center;
  font-size: 11px;
  color: #6f6f79;
  margin: 12px 0 4px;
}
.msg {
  max-width: 78%;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 14.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  position: relative;
}
.msg.them { align-self: flex-start; background: #26262e; border-top-left-radius: 2px; }
.msg.me { align-self: flex-end; background: #95ec69; color: #101010; border-top-right-radius: 2px; }
.msg .t { display: block; font-size: 10px; opacity: .45; margin-top: 4px; }

.msg.failed { opacity: .8; }
.msg .fail {
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px; height: 17px;
  border-radius: 50%;
  background: #ff3b30;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
}
.fail-line { color: #b4544f; font-size: 10.5px; }

.msg.sticker,
.msg.sticker.them,
.msg.sticker.me {
  background: transparent;
  padding: 2px 4px;
  font-size: 42px;
  line-height: 1.15;
}
.call-row {
  align-self: center;
  margin: 7px 0;
  padding: 5px 12px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .055);
  color: #9c9ca8;
  font-size: 11.5px;
  letter-spacing: .02em;
}

.chat-draft {
  position: sticky;
  bottom: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 13px 14px;
  background: rgba(22, 22, 28, .96);
  border-top: 1px solid var(--line);
  color: #c9c9d3;
  font-size: 14.5px;
}
.chat-draft em {
  margin-left: auto;
  font-style: normal;
  font-size: 10.5px;
  color: #6f6f79;
}
.chat-draft .caret {
  width: 1px;
  height: 16px;
  background: #7aa7ff;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.reply-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 14px 20px;
}
.reply-box button {
  text-align: left;
  background: #1e1e26;
  border: 1px solid rgba(255,255,255,.12);
  color: #dfe3ff;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  cursor: pointer;
}
.reply-box button:hover { border-color: var(--blue); }

/* 通讯录 / 我的 */
.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: 15px;
  cursor: pointer;
}
.list-row .val { margin-left: auto; color: var(--muted); font-size: 13px; }
.list-row.no-link { cursor: default; }

.profile-head {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 10px 0 24px;
}
.profile-head .avatar { width: 64px; height: 64px; font-size: 26px; border-radius: 12px; }
.profile-head .nick { font-size: 20px; margin-bottom: 5px; }
.profile-head .id { font-size: 12.5px; color: var(--muted); }

/* 朋友圈 */
.moment {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.moment-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.moment-head .avatar { width: 38px; height: 38px; font-size: 16px; }
.moment-head .who { font-size: 14px; color: #a9c6ff; }
.moment-text { font-size: 14.5px; line-height: 1.75; white-space: pre-wrap; }
.moment-time { font-size: 11px; color: #6f6f79; margin-top: 8px; }
.moment-photo {
  margin-top: 10px;
  border-radius: 6px;
  background: linear-gradient(135deg, #2b2a24, #1b1a16);
  border: 1px solid #3a3830;
  padding: 14px 16px;
  font-size: 13px;
  color: #cbb98d;
  line-height: 1.9;
  font-family: "Songti SC", "SimSun", serif;
  letter-spacing: .05em;
}
.moment-img {
  margin-top: 10px;
  height: 172px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,.07);
  position: relative;
  overflow: hidden;
}
.moment-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(200px 120px at 30% 20%, rgba(255,255,255,.13), transparent 70%);
}
img.moment-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  background: #17171d;
  cursor: zoom-in;
}
.m-food { background: linear-gradient(150deg, #6b2f22, #2a1410 72%); }
.m-page { background: linear-gradient(150deg, #4a4130, #1d1a13 72%); }
.m-doc  { background: linear-gradient(150deg, #3a4048, #14171b 72%); }
.m-cat  { background: linear-gradient(150deg, #4a4a52, #15151a 72%); }

.moment-place { font-size: 11.5px; color: #6f7fa8; margin-top: 8px; }

.moment-social {
  margin-top: 10px;
  background: #17171d;
  border-radius: 5px;
  padding: 8px 10px;
  font-size: 12.5px;
  color: #9fb4d8;
  line-height: 1.7;
}
.moment-social .like { color: #d9a441; margin-bottom: 4px; }
.moment-social .c b { color: #a9c6ff; font-weight: 500; }

/* ---------- 论坛 ---------- */
.forum-screen { background: #131210; }
.forum-screen .appbar { background: rgba(24, 21, 16, .94); }
.forum-brand {
  padding: 18px 0 12px;
  border-bottom: 1px solid rgba(210, 154, 74, .18);
}
.forum-brand h1 {
  font-size: 20px;
  margin: 0 0 4px;
  color: #ecd9b0;
  letter-spacing: .12em;
  font-weight: 500;
}
.forum-brand p { margin: 0; font-size: 11.5px; color: #8a7c63; letter-spacing: .1em; }

.forum-search {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}
.forum-search input { flex: 1; }

.post-row {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  cursor: pointer;
}
.post-row:active { background: rgba(255,255,255,.02); }
.post-title {
  font-size: 15px;
  color: #f0e6d2;
  line-height: 1.5;
  margin-bottom: 6px;
}
.post-row .pin {
  display: inline-block;
  font-size: 10px;
  color: #131210;
  background: var(--amber);
  border-radius: 3px;
  padding: 1px 5px;
  margin-right: 6px;
  vertical-align: 2px;
}
.post-row .lock-tag { color: #d97b7b; font-size: 10.5px; margin-left: 6px; }
.post-meta { font-size: 11.5px; color: #7d7466; display: flex; gap: 10px; }

.post-body p { font-size: 14.5px; line-height: 1.9; color: #ddd3c0; margin: 0 0 12px; }
.post-img {
  width: 100%;
  display: block;
  margin-top: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .08);
}
.news-img {
  width: 100%;
  display: block;
  margin: 6px 0 4px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .08);
}
.post-head { padding: 16px 0 10px; border-bottom: 1px solid rgba(210,154,74,.15); margin-bottom: 16px; }
.post-head h1 { font-size: 18px; line-height: 1.5; margin: 0 0 10px; color: #f2e6cd; font-weight: 500; }
.reply {
  border-left: 2px solid rgba(210,154,74,.3);
  padding: 2px 0 2px 10px;
  margin-bottom: 14px;
  font-size: 13.5px;
  line-height: 1.75;
  color: #c9c0af;
}
.reply b { color: #d9b877; font-weight: 500; }
.reply .rt { display: block; font-size: 10.5px; color: #6f665a; margin-top: 4px; }

.user-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(210,154,74,.15);
}
.user-card .avatar { width: 54px; height: 54px; border-radius: 50%; font-size: 20px; }
.user-card .bio { font-size: 12.5px; color: #8a7c63; margin-top: 4px; }

/* 表单 */
.field { margin-bottom: 12px; }
.field label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: .05em;
}
input[type="text"], input[type="password"] {
  width: 100%;
  background: #1e1e25;
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  font-size: 15px;
  padding: 11px 13px;
  border-radius: 7px;
  outline: none;
  font-family: var(--font);
}
input:focus { border-color: var(--blue); }
.btn-primary {
  width: 100%;
  border: none;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  padding: 12px;
  border-radius: 7px;
  cursor: pointer;
  margin-top: 6px;
  font-family: var(--font);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost {
  width: 100%;
  border: 1px dashed rgba(255,255,255,.2);
  background: none;
  color: var(--muted);
  font-size: 13.5px;
  padding: 11px;
  border-radius: 7px;
  cursor: pointer;
  margin-top: 10px;
  font-family: var(--font);
}
.err { color: #ff6b6b; font-size: 12.5px; min-height: 18px; margin: 8px 0 0; line-height: 1.5; }
.ok { color: #6ee7a0; }

.lockbox {
  max-width: 320px;
  margin: 40px auto 0;
  text-align: center;
}
.lockbox .big { font-size: 34px; margin-bottom: 14px; }
.lockbox h3 { font-size: 16px; font-weight: 500; margin: 0 0 6px; }
.lockbox .sub { font-size: 12px; color: var(--muted); margin: 0 0 22px; line-height: 1.7; }
.lockbox .field { text-align: left; }

/* ---------- 千度 ---------- */
.baidu-top {
  padding: 26px 0 18px;
  text-align: center;
}
.baidu-logo { font-size: 30px; letter-spacing: .1em; color: #7aa7ff; font-weight: 600; }
.baidu-sub { font-size: 11px; color: #6c7688; letter-spacing: .25em; margin-top: 4px; }
.baidu-form { display: flex; gap: 8px; margin-top: 20px; }
.baidu-form input { flex: 1; }
.baidu-form button {
  border: none;
  background: #2f6ee0;
  color: #fff;
  border-radius: 7px;
  padding: 11px 16px;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font);
}
.hot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hot span { font-size: 11.5px; color: #6c7688; }
.hot button {
  border: 1px solid rgba(255,255,255,.1);
  background: none;
  color: #9aa6bd;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font);
}
.result { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.06); cursor: pointer; }
.result .site { font-size: 11.5px; color: #6ee7a0; margin-bottom: 5px; }
.result .site span { color: #5d6678; margin-left: 6px; }
.result h3 { font-size: 15.5px; color: #7aa7ff; margin: 0 0 6px; font-weight: 500; line-height: 1.5; }
.result p { margin: 0; font-size: 12.5px; color: #9aa0ad; line-height: 1.7; }
.result-body h1 { font-size: 19px; line-height: 1.5; margin: 6px 0 10px; font-weight: 500; }
.result-body .meta { font-size: 11.5px; color: #6c7688; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.result-body p { font-size: 14.5px; line-height: 1.9; color: #cfd4de; margin: 0 0 13px; }

/* ---------- boliboli ---------- */
.bili-screen { background: #101014; }
.bili-top { display: flex; align-items: center; gap: 8px; padding: 18px 0 12px; }
.bili-logo { color: var(--pink); font-size: 20px; font-weight: 700; letter-spacing: .02em; }
.bili-tag { font-size: 10.5px; color: #7d7d88; border: 1px solid #33333d; padding: 2px 6px; border-radius: 3px; }
.video-card { padding: 0 0 18px; border-bottom: 1px solid rgba(255,255,255,.06); margin-bottom: 6px; cursor: pointer; }
.thumb {
  height: 150px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120px 80px at 70% 40%, rgba(255,255,255,.16), transparent 70%),
    linear-gradient(160deg, #232a38 0%, #12141b 55%, #0a0a0f 100%);
  border: 1px solid rgba(255,255,255,.08);
}
.thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 26px 26px;
}
.thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .92;
  filter: saturate(.9);
  z-index: 0;
}
.thumb .play, .thumb .dur { z-index: 2; }

.thumb .play {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.35);
  display: grid;
  place-items: center;
  font-size: 16px;
  color: #fff;
  z-index: 2;
}
.thumb .dur { position: absolute; right: 8px; bottom: 8px; font-size: 11px; background: rgba(0,0,0,.6); padding: 2px 5px; border-radius: 3px; }
.video-title { font-size: 14.5px; line-height: 1.5; margin: 10px 0 6px; }
.video-meta { font-size: 11.5px; color: #7d7d88; }
.video-desc { font-size: 13.5px; line-height: 1.85; color: #c4c4ce; margin: 14px 0; }
.comment { padding: 10px 0; border-top: 1px solid rgba(255,255,255,.05); font-size: 13px; }
.comment b { color: #9aa6bd; font-weight: 500; }
.comment span { color: #6f6f7a; font-size: 11px; margin-left: 6px; }
.player {
  height: 210px;
  border-radius: 8px;
  background:
    radial-gradient(160px 90px at 30% 60%, rgba(210, 190, 150, .16), transparent 70%),
    linear-gradient(170deg, #1d2430, #0b0c10 70%);
  border: 1px solid rgba(255,255,255,.08);
  position: relative;
  display: grid;
  place-items: center;
  color: #8c8c99;
  font-size: 12px;
}
.player .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.15); }
.player .bar i { display: block; height: 100%; width: 12%; background: var(--pink); }

/* ---------- 米团 ---------- */
.mt-screen { background: #14130f; }
.mt-top { padding: 20px 0 14px; }
.mt-logo { color: var(--yellow); font-size: 20px; font-weight: 700; letter-spacing: .06em; }
.order {
  background: #1c1a15;
  border: 1px solid rgba(255,194,51,.14);
  border-radius: 9px;
  padding: 13px 14px;
  margin-bottom: 12px;
}
.order .shop { font-size: 14.5px; display: flex; justify-content: space-between; }
.order .shop span { font-size: 12px; color: #8d8676; }
.order .items { font-size: 13px; color: #b9b2a2; margin: 8px 0; line-height: 1.6; }
.order .foot { font-size: 11.5px; color: #7d766a; display: flex; justify-content: space-between; gap: 8px; }
.order .price { color: var(--yellow); }

/* ---------- 短信 ---------- */
.sms-screen { background: #0f0f13; }
.sms-row { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.05); cursor: pointer; align-items: center; }
.sms-row .avatar { background: #3a3a44; }
.sms-row .num { font-size: 11.5px; color: #6f6f79; margin-top: 4px; }

/* ---------- 备忘录 ---------- */
.note-item { padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.06); cursor: pointer; }
.note-item h3 { margin: 0 0 6px; font-size: 15px; font-weight: 500; color: #f0e4c4; }
.note-item p { margin: 0; font-size: 12.5px; color: #7d7466; line-height: 1.6; }
.note-body { padding: 18px 0; font-family: "Songti SC", "SimSun", serif; font-size: 15.5px; line-height: 2.15; color: #ded3bd; letter-spacing: .03em; white-space: pre-wrap; }
.note-body .hl { color: #f4d795; }

/* ---------- 相册 ---------- */
.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding-top: 14px; }
.photo {
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
}
.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo span { z-index: 2; }
.photo-full {
  display: block;
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  border-radius: 8px;
}
.photo span {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-size: 9.5px; padding: 8px 5px 4px;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  color: #ddd;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.photo.empty { background: linear-gradient(160deg, #15161c, #0a0a0e); }
.photo.card { background: linear-gradient(150deg, #2a3547, #151a24); }
.photo.page { background: linear-gradient(150deg, #3a3427, #1d1a13); }
.photo.alley { background: linear-gradient(160deg, #1a1a20, #08080b 70%); }
.photo.alley::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(70px 120px at 62% 40%, rgba(240, 220, 170, .16), transparent 70%);
}
.photo-view {
  margin-top: 12px;
  border-radius: 8px;
  min-height: 330px;
  display: grid;
  place-items: center;
  padding: 24px;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 15px;
  line-height: 2;
  letter-spacing: .06em;
  color: #d8c9a6;
  white-space: pre-wrap;
  text-align: center;
  border: 1px solid rgba(255,255,255,.08);
}

/* ---------- 电话 ---------- */
.call-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.call-ico {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: rgba(70, 160, 110, .18);
  color: #6ee7a0;
  font-size: 15px;
}
.call-ico.out { background: rgba(90, 120, 200, .16); color: #8db4ff; }
.call-ico.missed { background: rgba(200, 60, 60, .16); color: #ff7b7b; }
.call-main { flex: 1; min-width: 0; }
.call-name { font-size: 15px; }
.call-meta { font-size: 11.5px; color: #7d7d88; margin-top: 4px; }

/* ---------- 王者农药 ---------- */
.game-card {
  display: flex;
  gap: 14px;
  align-items: center;
  background: linear-gradient(150deg, #2a2418, #17140e);
  border: 1px solid rgba(200, 160, 80, .25);
  border-radius: 12px;
  padding: 16px;
  margin: 8px 0 20px;
}
.game-avatar {
  width: 58px; height: 58px;
  border-radius: 12px;
  background: #b8862f;
  color: #1a1408;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 600;
}
.game-nick { font-size: 17px; }
.game-rank { font-size: 12px; color: #c8a24a; margin-top: 5px; }
.match {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  font-size: 13px;
}
.match-hero { width: 76px; color: #e6dcbf; }
.match-result { font-size: 12px; padding: 1px 7px; border-radius: 3px; }
.match-result.win { background: rgba(70, 160, 110, .2); color: #6ee7a0; }
.match-result.lose { background: rgba(200, 60, 60, .18); color: #ff8a8a; }
.match-kda { color: #9a9aa5; font-family: var(--mono); }
.match-time { margin-left: auto; color: #6f6f79; font-size: 11px; }

/* ---------- 网易雨音乐 ---------- */
.song {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.song-idx { width: 16px; color: #6f6f79; font-size: 12px; }
.song-title { flex: 1; min-width: 0; }
.song-title b { font-weight: 500; font-size: 14px; }
.song-title span { display: block; font-size: 11.5px; color: #7d7d88; margin-top: 3px; }
.song-meta { text-align: right; font-size: 10.5px; color: #6f6f79; line-height: 1.5; }
.pl-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-chip {
  padding: 7px 11px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .07);
  font-size: 12px;
  color: #cfcfd8;
}
.pl-chip i { font-style: normal; color: #7d7d88; margin-left: 6px; font-size: 10.5px; }

/* ---------- 方神 ---------- */
.char-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  font-size: 14px;
}
.char-el {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(90, 150, 220, .18);
  color: #8db4ff;
  font-size: 11px;
}
.char-name { flex: 1; }
.char-lv { color: #9a9aa5; font-size: 12px; }

/* ---------- 提示弹层 ---------- */
.sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: flex-end;
  z-index: 40;
}
.sheet-card {
  width: 100%;
  background: #1b1b22;
  border-radius: 16px 16px 0 0;
  padding: 20px 22px 28px;
  animation: up .25s ease both;
}
@keyframes up { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-card h3 { font-size: 14px; margin: 0 0 10px; color: var(--amber); font-weight: 500; }
.sheet-card p { font-size: 14px; line-height: 1.85; color: #dcdce4; margin: 0 0 18px; white-space: pre-wrap; }
.sheet-card button {
  width: 100%;
  border: none;
  background: #2c2c36;
  color: #fff;
  padding: 11px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font);
}

/* ---------- 看大图 ---------- */
.viewer {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  cursor: zoom-out;
  animation: appear .18s ease both;
}
.viewer img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 4px;
  object-fit: contain;
}

/* ---------- 小屏 ---------- */
@media (max-width: 460px) {
  body { padding: 0; background: #000; }
  .phone {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }
  .notch { display: none; }
  .statusbar { padding-top: 12px; }
}
