/* =========================================================
   战备商行 · 手机端
   ========================================================= */

:root {
  --m-bg: #f4f8fd;
  --m-card: #ffffff;
  --m-soft: #edf5ff;
  --m-soft-2: #f7fbff;
  --m-ink: #0a1b35;
  --m-text: #5d6f86;
  --m-dim: #98a7b9;
  --m-line: #e6eef8;
  --m-blue: #2468d6;
  --m-navy: #0b2a5b;
  --m-gold: #f5b21b;
  --m-orange: #f29a18;
  --m-pink: #f7e9ff;
  --m-green: #2caa84;
  --m-red: #d65b5b;
  --m-radius: 14px;
  --m-sans: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --m-display: "Bahnschrift", "DIN Alternate", "PingFang SC", "Microsoft YaHei", sans-serif;
  --m-serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #e9eff7;
  color: var(--m-text);
  font-family: var(--m-sans);
  font-size: 13px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

svg {
  display: block;
}

.m-app {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  overflow-x: hidden;
  background: var(--m-bg);
  box-shadow: 0 0 45px rgba(24, 55, 95, 0.08);
}

.m-main {
  min-height: calc(100vh - 58px);
  padding: 0 12px calc(92px + env(safe-area-inset-bottom));
}

.m-loading {
  padding: 90px 0;
  color: var(--m-dim);
  font-size: 12px;
  text-align: center;
}

/* ========== 顶部 ========== */

.m-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 15px;
  background: var(--m-bg);
  background: color-mix(in srgb, var(--m-bg) 92%, transparent);
  backdrop-filter: blur(14px);
}

.m-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: var(--m-ink);
}

.m-brand i {
  width: 17px;
  height: 1.5px;
  flex: 0 0 auto;
  background: currentColor;
  opacity: 0.75;
}

.m-brand strong {
  overflow: hidden;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m-header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
}

.m-icon-btn {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 50%;
  background: var(--m-soft);
  color: var(--m-blue);
}

.m-icon-btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.m-icon-btn.is-active {
  background: var(--m-navy);
  color: #fff;
}

.m-header-page {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}

.m-header-page h1 {
  margin: 0;
  color: var(--m-ink);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* ========== 公告 ========== */

.m-notice {
  display: flex;
  height: 36px;
  align-items: center;
  gap: 9px;
  margin: 0 -12px 12px;
  padding: 0 14px;
  border-top: 1px solid color-mix(in srgb, var(--m-gold) 18%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--m-gold) 18%, transparent);
  background: #fff8e8;
  background: color-mix(in srgb, var(--m-gold) 9%, var(--m-card));
  color: #9d7626;
  font-size: 10px;
}

.m-notice-badge {
  display: inline-flex;
  height: 18px;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 6px;
  border-radius: 3px;
  background: var(--m-gold);
  color: #fff;
  font-size: 8px;
  font-weight: 600;
}

.m-notice-track {
  overflow: hidden;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ========== 首页 banner ========== */

.m-banner {
  position: relative;
  overflow: hidden;
  min-height: 156px;
  margin-bottom: 12px;
  padding: 21px 19px;
  border-radius: 15px;
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.7), transparent 17%),
    radial-gradient(circle at 70% 88%, rgba(241, 169, 255, 0.38), transparent 28%),
    linear-gradient(135deg, #f6e8ff 0%, #efe5ff 46%, #e9e8ff 100%);
}

.m-banner::before {
  content: "✦";
  position: absolute;
  top: 16px;
  left: 172px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 21px;
}

.m-banner-copy {
  position: relative;
  z-index: 2;
  max-width: 70%;
}

.m-banner-kicker {
  display: block;
  color: #9777c7;
  font-family: var(--m-display);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.m-banner h2 {
  margin: 8px 0 0;
  color: #5d4c9e;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.m-banner h2 em {
  color: #9a69d5;
  font-style: normal;
}

.m-banner-btn {
  display: inline-flex;
  height: 27px;
  align-items: center;
  margin-top: 12px;
  padding: 0 11px;
  border-radius: 14px;
  background: #b681ef;
  color: #fff;
  font-size: 9px;
  box-shadow: 0 4px 9px rgba(150, 96, 216, 0.18);
}

.m-banner-art {
  position: absolute;
  right: 7px;
  bottom: 4px;
  z-index: 1;
  width: 132px;
  height: 132px;
  font-size: 74px;
  line-height: 132px;
  text-align: center;
  filter: drop-shadow(0 8px 10px rgba(140, 93, 190, 0.14));
  transform: rotate(-5deg);
}

.m-banner-art::before,
.m-banner-art::after {
  content: "✦";
  position: absolute;
  color: #fff;
  font-size: 15px;
}

.m-banner-art::before {
  top: 6px;
  left: 6px;
}

.m-banner-art::after {
  right: 2px;
  bottom: 18px;
  color: #f3c4ff;
  font-size: 11px;
}

/* ========== 快捷入口 ========== */

.m-quick {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  margin-bottom: 16px;
  padding: 14px 5px 12px;
  border: 1px solid var(--m-line);
  border-radius: var(--m-radius);
  background: var(--m-card);
  box-shadow: 0 3px 14px rgba(30, 64, 110, 0.035);
}

.m-quick-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: var(--m-ink);
  font-size: 9.5px;
  text-align: center;
}

.m-quick-icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 50%;
  background: var(--m-soft);
  color: var(--m-blue);
}

.m-quick-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.m-quick-item:nth-child(1) .m-quick-icon { background: #fff4df; color: #d6931c; }
.m-quick-item:nth-child(2) .m-quick-icon { background: #ecfbf5; color: #2b9f7c; }
.m-quick-item:nth-child(3) .m-quick-icon { background: #eef3ff; color: #4c72d6; }
.m-quick-item:nth-child(4) .m-quick-icon { background: #fff0f4; color: #d06484; }
.m-quick-item:nth-child(5) .m-quick-icon { background: #f1edff; color: #7b61c8; }

/* ========== 通用标题 ========== */

.m-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 1px 10px;
}

.m-section-head h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--m-ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.m-section-head h2::before {
  content: "";
  width: 15px;
  height: 17px;
  border-radius: 3px 9px 3px 9px;
  background: linear-gradient(145deg, #ffb02e, #f07f1b);
  transform: rotate(-8deg);
}

.m-sale-count {
  display: inline-flex;
  height: auto;
  align-items: center;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 12px;
  background: #fff3dd;
  color: #b9791b;
  font-size: inherit;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}

.m-more {
  display: inline-flex;
  height: 27px;
  align-items: center;
  gap: 3px;
  padding: 0 9px;
  border: 1px solid var(--m-line);
  border-radius: 14px;
  background: var(--m-card);
  color: var(--m-dim);
  font-size: 9px;
}

.m-more svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* ========== 推荐卡 ========== */

.m-rec-list {
  display: grid;
  gap: 10px;
}

.m-rec-card {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr);
  gap: 10px;
  padding: 9px;
  border: 1px solid var(--m-line);
  border-radius: 12px;
  background: var(--m-card);
  box-shadow: 0 4px 14px rgba(25, 57, 99, 0.04);
}

.m-rec-cover {
  position: relative;
  display: block;
  overflow: hidden;
  height: 126px;
  border-radius: 7px;
  background: #0c1d2b;
}

.m-rec-cover .scene,
.m-rec-cover img,
.m-hall-cover .scene,
.m-hall-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.m-discount {
  position: absolute;
  top: 7px;
  left: 7px;
  display: inline-flex;
  height: 17px;
  align-items: center;
  padding: 0 5px;
  border-radius: 2px;
  background: #ffbb26;
  color: #5e3c00;
  font-family: var(--m-display);
  font-size: 9px;
  font-weight: 700;
}

.m-rec-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
}

.m-rec-title {
  margin: 0;
  color: var(--m-ink);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.m-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
  overflow: hidden;
}

.m-tag {
  display: inline-flex;
  max-width: 100%;
  height: 19px;
  align-items: center;
  padding: 0 6px;
  border-radius: 3px;
  background: #fff7e7;
  color: #ae7b21;
  font-size: 8px;
  white-space: nowrap;
}

.m-tag--blue { background: #eff5ff; color: #5280c7; }
.m-tag--pink { background: #fbf1ff; color: #9b6bc1; }
.m-tag--green { background: #ecfaf4; color: #2c9977; }
.m-tag--gray { background: #f3f7fb; color: #7e8da0; }

.m-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 8px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--m-line);
}

.m-spec {
  min-width: 0;
}

.m-spec span {
  display: block;
  color: var(--m-dim);
  font-size: 8.5px;
}

.m-spec b {
  display: block;
  overflow: hidden;
  color: var(--m-ink);
  font-family: var(--m-display);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m-buy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 7px;
}

.m-price {
  color: #e46d18;
  font-family: var(--m-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.m-price small {
  margin-left: 1px;
  font-family: var(--m-sans);
  font-size: 8px;
  font-weight: 400;
  color: var(--m-dim);
}

.m-buy-btns {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
}

.m-btn {
  display: inline-flex;
  height: 27px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 3px;
  font-size: 8.5px;
  white-space: nowrap;
}

.m-btn--ghost {
  border: 1px solid #e9c878;
  background: #fff8e8;
  color: #a67822;
}

.m-btn--gold {
  background: #f7b21e;
  color: #fff;
  box-shadow: 0 3px 7px rgba(232, 157, 17, 0.16);
}

.m-btn--navy {
  background: var(--m-navy);
  color: #fff;
}

/* ========== 大厅 ========== */

.m-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 11px;
  padding: 19px 17px;
  border-radius: 15px;
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 255, 255, 0.18), transparent 20%),
    linear-gradient(120deg, #0b56bb, #2175dc 60%, #3885e7);
  color: #fff;
}

.m-hero::after {
  content: "";
  position: absolute;
  right: -29px;
  bottom: -50px;
  width: 165px;
  height: 165px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(255, 255, 255, 0.045), 0 0 0 45px rgba(255, 255, 255, 0.028);
}

.m-hero-kicker {
  display: inline-flex;
  height: 20px;
  align-items: center;
  padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #e4f1ff;
  font-size: 8px;
}

.m-hero h2 {
  position: relative;
  z-index: 2;
  margin: 9px 0 0;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.m-hero p {
  position: relative;
  z-index: 2;
  margin: 5px 0 0;
  color: #bcd8f8;
  font-size: 9.5px;
}

.m-hero-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  height: 28px;
  align-items: center;
  margin-top: 12px;
  padding: 0 11px;
  border-radius: 14px;
  background: #fff;
  color: #195bb7;
  font-size: 9px;
  font-weight: 600;
}

.m-cats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 11px;
}

.m-cat {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 3px 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--m-card);
  color: var(--m-text);
  font-size: 9px;
}

.m-cat.is-active {
  border-color: rgba(48, 116, 221, 0.3);
  background: #f4f9ff;
}

.m-cat-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  font-size: 17px;
}

.m-cat:nth-child(1) .m-cat-icon { background: #e9f4ff; }
.m-cat:nth-child(2) .m-cat-icon { background: #e6faf2; }
.m-cat:nth-child(3) .m-cat-icon { background: #f1eaff; }
.m-cat:nth-child(4) .m-cat-icon { background: #fff5dc; }

.m-cat b {
  color: var(--m-ink);
  font-size: 11px;
  font-weight: 600;
}

.m-cat span {
  overflow: hidden;
  width: 100%;
  color: var(--m-dim);
  font-size: 7.5px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m-search {
  display: flex;
  height: 38px;
  align-items: center;
  gap: 5px;
  margin-bottom: 9px;
  padding: 4px 4px 4px 12px;
  border: 1px solid var(--m-line);
  border-radius: 10px;
  background: var(--m-card);
}

.m-search > svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--m-dim);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.m-search input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--m-ink);
  font-size: 11px;
}

.m-search input::placeholder {
  color: #a8b5c4;
}

.m-search button {
  display: grid;
  width: 52px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  background: var(--m-navy);
  color: #fff;
  font-size: 10px;
}

.m-sort-row {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.m-sort {
  display: inline-flex;
  height: 27px;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid var(--m-line);
  border-radius: 6px;
  background: var(--m-card);
  color: var(--m-text);
  font-size: 9px;
}

.m-sort.is-active {
  border-color: #b9d0ef;
  background: #eef6ff;
  color: var(--m-blue);
}

.m-chips {
  display: flex;
  gap: 6px;
  margin: 0 -12px 10px;
  padding: 0 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.m-chips::-webkit-scrollbar {
  display: none;
}

.m-chip {
  display: inline-flex;
  height: 26px;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--m-line);
  border-radius: 13px;
  background: var(--m-card);
  color: var(--m-text);
  font-size: 9px;
}

.m-chip.is-active {
  border-color: var(--m-blue);
  background: var(--m-blue);
  color: #fff;
}

.m-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 1px 9px;
}

.m-result-row strong {
  color: var(--m-ink);
  font-size: 14px;
  font-weight: 700;
}

.m-result-row span {
  color: var(--m-dim);
  font-size: 9px;
}

.m-hall-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.m-hall-card {
  overflow: hidden;
  border: 1px solid var(--m-line);
  border-radius: 11px;
  background: var(--m-card);
  box-shadow: 0 3px 12px rgba(28, 60, 102, 0.035);
}

.m-hall-cover {
  position: relative;
  display: block;
  height: 105px;
  overflow: hidden;
  background: #0c1d2b;
}

.m-cover-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(31, 100, 161, 0.28), transparent 50%),
    #0b1c2b;
  color: rgba(220, 240, 255, 0.7);
  font-family: var(--m-display);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.m-rented-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: rgba(244, 248, 253, 0.38);
  color: #111111;
  font-family: var(--m-sans);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-shadow: none;
}

.m-rec-card.is-rented .m-rec-cover img,
.m-hall-card.is-rented .m-hall-cover img,
.m-rec-card.is-rented .m-rec-cover .scene,
.m-hall-card.is-rented .m-hall-cover .scene {
  filter: grayscale(0.45) brightness(0.94);
}

.m-btn--rented {
  background: #e8eef6;
  color: #111111;
  font-family: var(--m-sans);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: none;
  cursor: not-allowed;
}

.m-rec-card.is-rented .m-price,
.m-hall-card.is-rented .m-price {
  color: #96a6b8;
}

.m-rec-card.is-rented .m-discount,
.m-hall-card.is-rented .m-discount {
  background: rgba(255, 255, 255, 0.8);
  color: #7890a9;
}

.m-hall-body {
  padding: 8px 9px 9px;
}

.m-hall-body h3 {
  overflow: hidden;
  margin: 0;
  color: var(--m-ink);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m-hall-body .m-tags {
  flex-wrap: nowrap;
  margin-top: 5px;
}

.m-hall-body .m-tag {
  overflow: hidden;
  max-width: 82px;
  text-overflow: ellipsis;
}

.m-hall-body .m-specs {
  margin-top: 6px;
  padding-top: 5px;
}

.m-hall-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-top: 7px;
}

.m-hall-buy .m-price {
  font-size: 17px;
}

.m-hall-buy .m-btn {
  height: 24px;
  padding: 0 6px;
  font-size: 8px;
}

.m-empty {
  display: flex;
  min-height: 190px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--m-line);
  border-radius: 12px;
  background: var(--m-card);
  color: var(--m-dim);
  font-size: 10px;
  text-align: center;
}

.m-empty strong {
  color: var(--m-ink);
  font-size: 13px;
  font-weight: 500;
}

/* ========== 个人中心 ========== */

.m-profile-card {
  margin-bottom: 11px;
  padding: 17px 15px 0;
  border: 1px solid var(--m-line);
  border-radius: 14px;
  background: var(--m-card);
  box-shadow: 0 4px 16px rgba(26, 58, 101, 0.04);
}

.m-profile-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 13px;
}

.m-avatar {
  display: grid;
  width: 63px;
  height: 63px;
  flex: 0 0 auto;
  place-items: center;
  border: 4px solid #edf5ff;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 30%, #fff, transparent 26%),
    linear-gradient(145deg, #cfe5ff, #eef7ff);
  color: #2768c7;
  font-size: 24px;
  font-weight: 800;
}

.m-profile-info {
  min-width: 0;
  flex: 1;
}

.m-profile-name {
  display: flex;
  align-items: center;
  gap: 6px;
}

.m-profile-name h1 {
  overflow: hidden;
  margin: 0;
  color: var(--m-ink);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m-pill {
  display: inline-flex;
  height: 18px;
  align-items: center;
  padding: 0 6px;
  border-radius: 3px;
  background: #f1f5fa;
  color: #78899d;
  font-size: 8px;
  white-space: nowrap;
}

.m-pill--gold {
  background: #fff6df;
  color: #aa7a22;
}

.m-profile-slogan {
  overflow: hidden;
  margin: 3px 0 0;
  color: var(--m-text);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 13px;
  margin-top: 5px;
  color: var(--m-dim);
  font-size: 8.5px;
}

.m-profile-meta b {
  color: var(--m-text);
  font-weight: 500;
}

.m-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--m-line);
}

.m-profile-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 11px 0;
  border-right: 1px solid var(--m-line);
}

.m-profile-stat:last-child {
  border-right: 0;
}

.m-profile-stat b {
  color: var(--m-ink);
  font-family: var(--m-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}

.m-profile-stat span {
  color: var(--m-text);
  font-size: 9px;
}

.m-group-card {
  margin-bottom: 11px;
  padding: 14px 14px 12px;
  border: 1px solid var(--m-line);
  border-radius: 14px;
  background: var(--m-card);
  box-shadow: 0 4px 16px rgba(26, 58, 101, 0.035);
}

.m-group-card > h2 {
  margin: 0 0 12px;
  color: var(--m-ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.m-trade-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
}

.m-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
}

.m-trade {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--m-ink);
  font-size: 9.5px;
  text-align: center;
}

.m-trade-icon,
.m-service-icon {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 11px;
  background: #eef6ff;
  color: var(--m-blue);
}

.m-trade-icon svg,
.m-service-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.m-trade:nth-child(1) .m-trade-icon { background: #fff7df; color: #cb8c16; }
.m-trade:nth-child(2) .m-trade-icon { background: #eaf7ff; color: #3581c9; }
.m-trade:nth-child(3) .m-trade-icon { background: #eafaf3; color: #2b9c79; }
.m-trade:nth-child(4) .m-trade-icon { background: #fff0f3; color: #cb6882; }
.m-service-icon:nth-child(1) { background: #eaf4ff; color: #3277ca; }
.m-service-icon:nth-child(2) { background: #fff8e5; color: #c28b16; }
.m-service-icon:nth-child(3) { background: #eafaf4; color: #2d9a79; }

.m-service {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--m-ink);
  font-size: 9.5px;
  text-align: center;
}

.m-cloud-row {
  display: flex;
  justify-content: space-between;
  gap: 5px;
}

.m-cloud-item {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--m-ink);
  font-size: 9.5px;
  text-align: center;
}

.m-logout {
  display: flex;
  width: 100%;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin: 13px 0 4px;
  border: 1px solid #f0dada;
  border-radius: 9px;
  background: var(--m-card);
  color: #b75c5c;
  font-size: 11px;
}

.m-login-card {
  margin-top: 22px;
  padding: 30px 20px;
  border: 1px solid var(--m-line);
  border-radius: 14px;
  background: var(--m-card);
  text-align: center;
}

.m-login-card .m-avatar {
  margin: 0 auto 12px;
}

.m-login-card h2 {
  margin: 0;
  color: var(--m-ink);
  font-size: 18px;
  font-weight: 700;
}

.m-login-card p {
  margin: 5px 0 17px;
  color: var(--m-dim);
  font-size: 10px;
}

.m-login-card button {
  display: inline-flex;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 33px;
  border-radius: 8px;
  background: var(--m-navy);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
}

/* ========== 消息 ========== */

.m-messages {
  display: grid;
  gap: 9px;
}

.m-message {
  display: flex;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--m-line);
  border-radius: 12px;
  background: var(--m-card);
  box-shadow: 0 3px 12px rgba(27, 59, 98, 0.035);
}

.m-message-avatar {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: #eaf4ff;
  color: #2e70c8;
  font-size: 11px;
  font-weight: 700;
}

.m-message--unread .m-message-avatar {
  background: #fff4df;
  color: #b9821d;
}

.m-message-main {
  min-width: 0;
  flex: 1;
}

.m-message-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.m-message-title {
  overflow: hidden;
  color: var(--m-ink);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m-message-time {
  flex: 0 0 auto;
  color: var(--m-dim);
  font-size: 8px;
}

.m-message-text {
  margin: 4px 0 0;
  color: var(--m-text);
  font-size: 9.5px;
  line-height: 1.65;
}

.m-message-unread {
  display: inline-flex;
  height: 16px;
  align-items: center;
  padding: 0 5px;
  border-radius: 8px;
  background: #fff3dc;
  color: #b37b18;
  font-size: 7.5px;
}

/* ========== 个人中心子页面 ========== */

.m-app.is-subpage .m-main {
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

.m-app.is-subpage .m-tabbar {
  display: none;
}

.m-subheader {
  display: grid;
  width: 100%;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
}

.m-subheader h1 {
  overflow: hidden;
  margin: 0;
  color: var(--m-ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m-back {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--m-blue);
}

.m-back svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(180deg);
}

.m-subtabs {
  display: flex;
  gap: 2px;
  margin-bottom: 11px;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid var(--m-line);
  border-radius: 12px;
  background: var(--m-card);
  box-shadow: 0 3px 13px rgba(29, 61, 103, 0.035);
  scrollbar-width: none;
}

.m-subtabs::-webkit-scrollbar {
  display: none;
}

.m-subtab {
  display: inline-flex;
  min-width: 64px;
  height: 35px;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-bottom: 2px solid transparent;
  color: var(--m-text);
  font-size: 10.5px;
  white-space: nowrap;
}

.m-subtab.is-active {
  border-bottom-color: var(--m-blue);
  color: var(--m-blue);
  font-weight: 600;
}

.m-sub-list {
  display: grid;
  gap: 10px;
}

.m-sub-empty {
  display: flex;
  min-height: 350px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--m-dim);
  font-size: 10px;
  text-align: center;
}

.m-sub-empty span {
  display: block;
  font-size: 74px;
  line-height: 1.2;
  opacity: 0.25;
  filter: grayscale(1);
}

.m-sub-empty p {
  margin: 0;
}

/* 我的发布 */

.m-pub-card {
  display: grid;
  grid-template-columns: 91px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--m-line);
  border-radius: 12px;
  background: var(--m-card);
  box-shadow: 0 3px 13px rgba(29, 61, 103, 0.035);
}

.m-pub-cover,
.m-order-cover {
  position: relative;
  overflow: hidden;
  border-radius: 7px;
  background: #0b1b29;
}

.m-pub-cover {
  height: 93px;
}

.m-pub-cover .scene,
.m-pub-cover img,
.m-order-cover .scene,
.m-order-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.m-pub-cover__label {
  position: absolute;
  top: 5px;
  left: 5px;
  padding: 1px 5px;
  border-radius: 2px;
  background: rgba(10, 27, 45, 0.68);
  color: #e2efff;
  font-size: 7px;
}

.m-pub-main {
  min-width: 0;
}

.m-pub-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.m-pub-top h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--m-ink);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.m-pub-status {
  flex: 0 0 auto;
  padding: 1px 5px;
  border-radius: 3px;
  background: #fff5df;
  color: #b1832c;
  font-size: 8px;
}

.m-pub-meta {
  margin: 3px 0 0;
  color: var(--m-dim);
  font-size: 8.5px;
}

.m-pub-prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin-top: 4px;
}

.m-pub-prices b {
  color: var(--m-orange);
  font-family: var(--m-display);
  font-size: 17px;
  font-weight: 700;
}

.m-pub-prices b small {
  margin-left: 2px;
  color: var(--m-dim);
  font-family: var(--m-sans);
  font-size: 7px;
  font-weight: 400;
}

.m-pub-prices span {
  color: var(--m-text);
  font-size: 8px;
}

.m-pub-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px solid var(--m-line);
  color: var(--m-dim);
  font-size: 8px;
}

.m-pub-foot button,
.m-pub-foot a {
  display: inline-flex;
  height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 3px;
  background: var(--m-navy);
  color: #fff;
  font-size: 8px;
}

/* 我的出租 / 我的租赁 */

.m-subsearch {
  display: flex;
  height: 37px;
  align-items: center;
  gap: 5px;
  margin-bottom: 11px;
  padding: 0 11px;
  border: 1px solid var(--m-line);
  border-radius: 10px;
  background: var(--m-card);
}

.m-subsearch > span {
  display: inline-flex;
  flex: 0 0 auto;
}

.m-subsearch svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--m-dim);
  stroke-width: 1.8;
}

.m-subsearch input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--m-ink);
  font-size: 10.5px;
}

.m-order-card {
  padding: 12px;
  border: 1px solid var(--m-line);
  border-radius: 12px;
  background: var(--m-card);
  box-shadow: 0 3px 13px rgba(29, 61, 103, 0.035);
}

.m-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--m-dim);
  font-size: 8px;
}

.m-order-head b {
  color: var(--m-blue);
  font-size: 8.5px;
  font-weight: 500;
}

.m-order-head b.is-renting {
  color: #111111;
  font-family: var(--m-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: none;
}

.m-order-body {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin-top: 9px;
}

.m-order-cover {
  width: 58px;
  height: 58px;
}

.m-order-info {
  min-width: 0;
}

.m-order-info h3 {
  overflow: hidden;
  margin: 0;
  color: var(--m-ink);
  font-size: 11.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m-order-info p {
  margin: 3px 0 0;
  color: var(--m-text);
  font-size: 9px;
}

.m-order-total {
  text-align: right;
}

.m-order-total span {
  display: block;
  color: var(--m-dim);
  font-size: 8px;
}

.m-order-total b {
  color: #ec6a57;
  font-family: var(--m-display);
  font-size: 17px;
  font-weight: 700;
}

.m-order-meta {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid var(--m-line);
  color: var(--m-dim);
  font-size: 8.5px;
}

.m-order-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 8px;
}

.m-order-actions button,
.m-order-actions a {
  display: inline-flex;
  height: 27px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 1px solid var(--m-line);
  border-radius: 4px;
  color: var(--m-text);
  font-size: 8.5px;
}

.m-order-actions .is-primary {
  border-color: var(--m-navy);
  background: var(--m-navy);
  color: #fff;
}

/* 钱包 */

.m-wallet-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid var(--m-line);
  border-radius: 12px;
  background: var(--m-card);
}

.m-wallet-avatar {
  display: grid;
  width: 49px;
  height: 49px;
  flex: 0 0 auto;
  place-items: center;
  border: 3px solid var(--m-soft);
  border-radius: 50%;
  background: linear-gradient(145deg, #dcecff, #f3f9ff);
  font-size: 22px;
}

.m-wallet-profile strong {
  display: block;
  color: var(--m-ink);
  font-size: 13px;
  font-weight: 700;
}

.m-wallet-profile small {
  display: block;
  margin-top: 2px;
  color: var(--m-dim);
  font-size: 8px;
}

.m-wallet-earn {
  margin-left: auto;
  color: var(--m-text);
  font-size: 8.5px;
  text-align: right;
  white-space: nowrap;
}

.m-wallet-earn b {
  color: var(--m-blue);
  font-family: var(--m-display);
  font-size: 18px;
}

.m-wallet-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  padding: 16px;
  border: 1px solid #f0dfbc;
  border-radius: 12px;
  background: linear-gradient(135deg, #fffbf1, #fff3d9);
}

.m-wallet-balance span {
  display: block;
  color: #8d7958;
  font-size: 9px;
}

.m-wallet-balance b {
  display: block;
  margin-top: 2px;
  color: #d3a330;
  font-family: var(--m-display);
  font-size: 28px;
  font-weight: 700;
}

.m-wallet-buttons {
  display: grid;
  flex: 0 0 auto;
  gap: 6px;
}

.m-wallet-buttons button {
  display: inline-flex;
  height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 4px;
  background: #fff7e3;
  color: #b08425;
  font-size: 9px;
}

.m-wallet-buttons button:first-child {
  background: #fff;
  box-shadow: 0 2px 5px rgba(167, 121, 28, 0.08);
}

.m-wallet-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.m-wallet-stats div {
  padding: 11px 13px;
  border: 1px solid var(--m-line);
  border-radius: 11px;
  background: var(--m-card);
}

.m-wallet-stats span {
  display: block;
  color: var(--m-dim);
  font-size: 8.5px;
}

.m-wallet-stats b {
  display: block;
  margin-top: 2px;
  color: var(--m-ink);
  font-family: var(--m-display);
  font-size: 18px;
  font-weight: 700;
}

.m-wallet-filter {
  display: flex;
  height: 35px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  padding: 0 12px;
  border: 1px solid var(--m-line);
  border-radius: 8px;
  background: var(--m-card);
  color: var(--m-dim);
  font-size: 9px;
}

.m-wallet-list {
  overflow: hidden;
  border: 1px solid var(--m-line);
  border-radius: 11px;
  background: var(--m-card);
}

.m-wallet-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--m-line);
}

.m-wallet-item:last-child {
  border-bottom: 0;
}

.m-wallet-item--frozen {
  background: #fffbf1;
}

.m-wallet-frozen-side {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.m-wallet-frozen-side b {
  color: var(--m-blue);
  font-family: var(--m-display);
  font-size: 13px;
  font-weight: 600;
}

.m-wallet-frozen-side button {
  display: inline-flex;
  height: 22px;
  align-items: center;
  padding: 0 7px;
  border: 1px solid var(--m-blue);
  border-radius: 3px;
  color: var(--m-blue);
  font-size: 8px;
}

.m-wallet-frozen-side button:disabled {
  border-color: var(--m-line);
  color: var(--m-dim);
  cursor: not-allowed;
}

.m-wallet-item strong {
  display: block;
  color: var(--m-ink);
  font-size: 10.5px;
  font-weight: 500;
}

.m-wallet-item small {
  display: block;
  overflow: hidden;
  max-width: 250px;
  margin-top: 2px;
  color: var(--m-dim);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m-wallet-item > b {
  flex: 0 0 auto;
  font-family: var(--m-display);
  font-size: 13px;
  font-weight: 600;
}

.m-wallet-item > b.is-plus {
  color: var(--m-blue);
}

.m-wallet-item > b.is-minus {
  color: #e06b62;
}

/* 提现弹层 */

.m-withdraw-form {
  display: grid;
  gap: 10px;
}

.m-withdraw-form label {
  display: grid;
  gap: 5px;
}

.m-withdraw-form label > span,
.m-withdraw-label {
  color: var(--m-ink);
  font-size: 10px;
  font-weight: 600;
}

.m-withdraw-form input {
  width: 100%;
  height: 40px;
  padding: 0 11px;
  border: 1px solid var(--m-line);
  border-radius: 6px;
  outline: 0;
  background: var(--m-soft-2);
  color: var(--m-ink);
  font-size: 11px;
}

.m-withdraw-form input:focus {
  border-color: var(--m-blue);
  background: var(--m-card);
}

.m-withdraw-tip {
  margin: -4px 0 0;
  color: var(--m-dim);
  font-size: 8.5px;
}

.m-withdraw-methods {
  display: flex;
  gap: 7px;
}

.m-withdraw-methods button {
  display: inline-flex;
  height: 31px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--m-line);
  border-radius: 16px;
  color: var(--m-text);
  font-size: 9px;
}

.m-withdraw-methods button.is-active {
  border-color: var(--m-blue);
  color: var(--m-blue);
}

.m-withdraw-note {
  margin: 2px 0 0;
  color: var(--m-dim);
  font-size: 8.5px;
  line-height: 1.8;
}

.m-withdraw-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 5px;
}

.m-withdraw-actions button {
  height: 39px;
  border: 1px solid var(--m-line);
  border-radius: 6px;
  color: var(--m-text);
  font-size: 10px;
}

.m-withdraw-actions .is-primary {
  border-color: var(--m-blue);
  background: var(--m-blue);
  color: #fff;
}

.m-sheet-close-inline {
  display: inline-flex;
  height: 29px;
  align-items: center;
  padding: 0 12px;
  border-radius: 4px;
  background: var(--m-navy);
  color: #fff;
  font-size: 9px;
}

/* ========== 底部导航 ========== */

.m-tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 80;
  display: grid;
  width: min(480px, 100%);
  height: calc(64px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(5, 1fr);
  align-items: start;
  padding: 7px 6px env(safe-area-inset-bottom);
  border-top: 1px solid var(--m-line);
  background: var(--m-card);
  background: color-mix(in srgb, var(--m-card) 94%, transparent);
  box-shadow: 0 -4px 17px rgba(30, 64, 110, 0.06);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

.m-tab {
  display: flex;
  height: 49px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #93a2b5;
  font-size: 9px;
  line-height: 1.2;
}

.m-tab > svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.m-tab.is-active {
  color: var(--m-blue);
  font-weight: 600;
}

.m-tab-icon-wrap {
  position: relative;
  display: inline-flex;
}

.m-tab-dot {
  position: absolute;
  top: 0;
  right: -2px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--m-card);
  border-radius: 50%;
  background: #ee6a4d;
}

.m-tab--publish {
  position: relative;
  color: var(--m-ink);
  font-size: 9px;
}

.m-publish-btn {
  display: grid;
  width: 53px;
  height: 53px;
  place-items: center;
  margin-top: -22px;
  border: 4px solid var(--m-bg);
  border-radius: 50%;
  background: linear-gradient(145deg, #ffb421, #f08d11);
  color: #fff;
  box-shadow: 0 7px 16px rgba(231, 146, 16, 0.28);
}

.m-publish-btn svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

/* ========== 弹层 ========== */

.m-sheet {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s;
}

.m-sheet.is-open {
  visibility: visible;
  opacity: 1;
}

.m-sheet__mask {
  position: absolute;
  inset: 0;
  background: rgba(5, 18, 35, 0.42);
}

.m-sheet__panel {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: min(480px, 100%);
  max-height: 78vh;
  padding: 7px 16px calc(20px + env(safe-area-inset-bottom));
  overflow-y: auto;
  border-radius: 19px 19px 0 0;
  background: var(--m-card);
  box-shadow: 0 -12px 35px rgba(7, 24, 45, 0.14);
  transform: translateX(-50%) translateY(100%);
  transition: transform 0.24s ease;
}

.m-sheet.is-open .m-sheet__panel {
  transform: translateX(-50%) translateY(0);
}

.m-sheet__handle {
  width: 34px;
  height: 4px;
  margin: 0 auto 10px;
  border-radius: 2px;
  background: var(--m-line);
}

.m-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--m-line);
}

.m-sheet__head h2 {
  margin: 0;
  color: var(--m-ink);
  font-size: 17px;
  font-weight: 700;
}

.m-sheet__head button {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  background: var(--m-soft);
  color: var(--m-text);
}

.m-sheet__head svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.m-sheet__body {
  padding-top: 12px;
  color: var(--m-text);
  font-size: 11px;
}

.m-sheet-list {
  display: grid;
  gap: 8px;
}

.m-sheet-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--m-line);
  border-radius: 9px;
  background: var(--m-soft-2);
}

.m-sheet-item__main {
  min-width: 0;
}

.m-sheet-item__main strong {
  display: block;
  overflow: hidden;
  color: var(--m-ink);
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m-sheet-item__main small {
  display: block;
  margin-top: 2px;
  color: var(--m-dim);
  font-size: 8px;
}

.m-sheet-item__side {
  flex: 0 0 auto;
  color: var(--m-orange);
  font-family: var(--m-display);
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}

.m-sheet-item__side svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--m-dim);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.m-sheet-empty {
  padding: 30px 0;
  color: var(--m-dim);
  font-size: 10px;
  text-align: center;
}

.m-sheet-note {
  margin: 0;
  padding: 11px;
  border: 1px solid #f3e7c9;
  border-radius: 8px;
  background: #fffaf0;
  color: #98752f;
  font-size: 9.5px;
  line-height: 1.8;
}

.m-support-links {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.m-support-online {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid #d5e6fb;
  border-radius: 9px;
  background: linear-gradient(135deg, #f4f9ff, #eaf4ff);
  color: var(--m-ink);
}

.m-support-online__icon {
  display: grid;
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: var(--m-card);
  font-size: 19px;
  box-shadow: 0 2px 7px rgba(35, 92, 162, 0.08);
}

.m-support-online > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.m-support-online strong {
  display: block;
  color: var(--m-ink);
  font-size: 11.5px;
  font-weight: 600;
}

.m-support-online small {
  display: block;
  margin-top: 2px;
  color: var(--m-dim);
  font-size: 8.5px;
}

.m-support-online > b {
  flex: 0 0 auto;
  color: var(--m-blue);
  font-size: 9px;
  font-weight: 500;
}

.m-sheet-support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--m-line);
  border-radius: 9px;
  background: var(--m-soft-2);
}

.m-sheet-support strong {
  display: block;
  color: var(--m-ink);
  font-family: var(--m-display);
  font-size: 17px;
}

.m-sheet-support small {
  color: var(--m-dim);
  font-size: 8.5px;
}

.m-sheet-support a {
  display: inline-flex;
  height: 31px;
  align-items: center;
  padding: 0 11px;
  border-radius: 5px;
  background: var(--m-navy);
  color: #fff;
  font-size: 9px;
}

/* ========== Toast ========== */

.m-toast {
  position: fixed;
  bottom: calc(82px + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 120;
  max-width: min(330px, calc(100vw - 34px));
  padding: 8px 14px;
  border-radius: 17px;
  background: rgba(8, 24, 45, 0.92);
  color: #fff;
  font-size: 10px;
  line-height: 1.5;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: 0.18s;
  pointer-events: none;
}

.m-toast.is-show {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ========== 夜间 ========== */

.m-app.is-night {
  --m-bg: #0a1526;
  --m-card: #111f34;
  --m-soft: #172942;
  --m-soft-2: #14243a;
  --m-ink: #e9f2ff;
  --m-text: #a4b6cb;
  --m-dim: #71849b;
  --m-line: #223650;
  --m-pink: #2a1e3d;
  --m-navy: #1e4f92;
}

.m-app.is-night .m-notice {
  color: #d1b16b;
}

.m-app.is-night .m-banner {
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.08), transparent 17%),
    linear-gradient(135deg, #2b1c42, #231c3d 60%, #1b2442);
}

.m-app.is-night .m-banner h2,
.m-app.is-night .m-banner-kicker {
  color: #d6b9f7;
}

.m-app.is-night .m-hero {
  background: linear-gradient(120deg, #0b3d7d, #15549e 60%, #1e66b7);
}

.m-app.is-night .m-search,
.m-app.is-night .m-sort,
.m-app.is-night .m-chip,
.m-app.is-night .m-more,
.m-app.is-night .m-login-card,
.m-app.is-night .m-profile-card,
.m-app.is-night .m-group-card,
.m-app.is-night .m-message,
.m-app.is-night .m-sheet__panel,
.m-app.is-night .m-tabbar {
  border-color: var(--m-line);
}

.m-app.is-night .m-profile-card,
.m-app.is-night .m-group-card,
.m-app.is-night .m-message,
.m-app.is-night .m-login-card {
  box-shadow: none;
}

.m-app.is-night .m-quick {
  border-color: var(--m-line);
}

.m-app.is-night .m-icon-btn {
  background: var(--m-soft);
  color: #9dc4f4;
}

.m-app.is-night .m-search button,
.m-app.is-night .m-btn--navy {
  background: #2161b2;
}

.m-app.is-night .m-tabbar {
  background: rgba(13, 27, 46, 0.94);
}

.m-app.is-night .m-publish-btn {
  border-color: var(--m-bg);
}

/* ========== 全站公告弹窗 ========== */

.m-announcement {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 18px;
}

.m-announcement[hidden] {
  display: none;
}

.m-announcement__mask {
  position: absolute;
  inset: 0;
  background: rgba(4, 14, 28, 0.68);
  backdrop-filter: blur(3px);
}

.m-announcement__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  max-height: min(82vh, 680px);
  overflow-y: auto;
  border-radius: 16px;
  background: var(--m-card);
  box-shadow: 0 24px 70px rgba(2, 12, 26, 0.34);
}

.m-announcement__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 18px 16px;
  border-radius: 16px 16px 0 0;
  background:
    radial-gradient(circle at 90% 15%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(135deg, #0a2b57, #144b8e);
  color: #fff;
}

.m-announcement__logo {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: linear-gradient(145deg, #173e6f, #071a31);
  color: #e7f2ff;
  font-family: var(--m-serif);
  font-size: 19px;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.04);
}

.m-announcement__heading {
  min-width: 0;
  flex: 1;
}

.m-announcement__heading h2 {
  margin: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.m-announcement__heading p {
  margin: 5px 0 0;
  color: #a9c5e6;
  font-size: 9px;
}

.m-announcement__badge {
  flex: 0 0 auto;
  margin-top: 2px;
  padding: 3px 6px;
  border: 1px solid rgba(240, 193, 93, 0.65);
  border-radius: 3px;
  color: #f3c96b;
  font-size: 8px;
  white-space: nowrap;
}

.m-announcement__body {
  margin: 16px;
  padding: 14px;
  border: 1px solid var(--m-line);
  border-radius: 9px;
  background: var(--m-soft-2);
  color: var(--m-text);
  font-size: 11px;
  line-height: 1.95;
  white-space: pre-wrap;
  word-break: break-word;
}

.m-announcement__ok {
  display: flex;
  width: calc(100% - 32px);
  height: 44px;
  align-items: center;
  justify-content: center;
  margin: 0 16px 16px;
  border-radius: 7px;
  background: var(--m-navy);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

/* ========== 桌面预览 ========== */

@media (min-width: 481px) {
  .m-app {
    min-height: 100vh;
  }

  .m-tabbar {
    width: 480px;
  }
}

@media (max-width: 360px) {
  .m-brand strong {
    font-size: 22px;
  }

  .m-quick-item {
    font-size: 8.5px;
  }

  .m-quick-icon {
    width: 35px;
    height: 35px;
  }

  .m-rec-card {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .m-rec-cover {
    height: 116px;
  }

  .m-hall-cover {
    height: 96px;
  }

  .m-profile-name h1 {
    font-size: 17px;
  }
}
