:root {
  --blue: #1557a5;
  --blue-dark: #0d3f7b;
  --blue-soft: #eaf3ff;
  --cyan: #0d91a4;
  --ink: #172232;
  --muted: #647287;
  --line: #dbe3ec;
  --surface: #ffffff;
  --canvas: #f4f7fa;
  --orange: #e77817;
  --green: #16875d;
  --red: #c84a4a;
  --pink: #e997a9;
  --pink-soft: #fff0f3;
  --navy: #233e62;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; letter-spacing: 0; }
button, select { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }
.topbar { height: 72px; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 6px; color: white; background: var(--blue); font-weight: 800; font-size: 14px; }
.brand-avatar { width: 38px; height: 38px; margin-left: -4px; border: 2px solid #f2b4c0; border-radius: 50%; object-fit: cover; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 18px; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.top-actions { display: flex; gap: 10px; }
.main-nav { display: flex; align-items: stretch; margin-right: 12px; }
.nav-button { position: relative; min-height: 40px; padding: 0 15px; border: 0; color: var(--muted); background: transparent; font-size: 13px; font-weight: 700; }
.nav-button.active { color: var(--blue); }
.nav-button.active::after { content: ""; position: absolute; right: 12px; bottom: -16px; left: 12px; height: 3px; background: var(--orange); }
.icon-button, .modal-close { width: 40px; height: 40px; border: 1px solid var(--line); background: white; border-radius: 6px; color: var(--ink); font-weight: 700; font-size: 18px; }
.quiet-button { min-height: 40px; padding: 0 16px; border: 1px solid var(--blue); border-radius: 6px; color: var(--blue); background: white; font-weight: 700; }
.notice { min-height: 44px; padding: 10px 40px; display: flex; align-items: center; gap: 14px; color: #704012; background: #fff6e8; border-bottom: 1px solid #f0d5ad; font-size: 13px; }
.notice strong { flex: 0 0 auto; }
.home-view { max-width: 1120px; min-height: calc(100vh - 116px); margin: 0 auto; padding: 56px 40px 70px; }
.system-message { display: flex; gap: 16px; align-items: flex-start; padding: 20px 24px; border: 1px solid #edc7cf; border-left: 4px solid var(--pink); background: linear-gradient(90deg, var(--pink-soft), white 44%); }
.system-message > img { width: 58px; height: 58px; flex: 0 0 auto; border: 2px solid white; border-radius: 50%; object-fit: cover; box-shadow: 0 3px 10px rgba(80, 45, 55, .12); }
.system-message strong { color: var(--blue-dark); }
.system-message p { margin: 10px 0 6px; font-size: 14px; }
.system-message span { color: var(--muted); font-size: 13px; }
.entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.entry-card { display: flex; min-width: 0; flex-direction: column; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: white; box-shadow: 0 8px 22px rgba(22, 54, 90, .07); }
.entry-card.featured { border-color: #8fb4dc; }
.entry-image { position: relative; aspect-ratio: 16 / 7; overflow: hidden; background: #dce7f2; }
.entry-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.entry-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 40%, rgba(12, 38, 68, .42)); }
.entry-image span { position: absolute; z-index: 1; right: 14px; bottom: 12px; max-width: 50%; color: white; font-size: 12px; font-weight: 800; text-align: right; }
.entry-body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.assistant-tip { display: flex; gap: 8px; align-items: center; margin: -5px 0 14px; padding: 8px 10px; border-radius: 6px; color: #6d4050; background: var(--pink-soft); font-size: 11px; line-height: 1.45; }
.assistant-tip img { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; }
.entry-body h2 { margin-bottom: 10px; font-size: 21px; }
.entry-body p { flex: 1; min-height: 72px; margin-bottom: 20px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.entry-button { align-self: center; min-width: 112px; min-height: 40px; padding: 0 18px; border: 1px solid var(--blue); border-radius: 4px; color: white; background: var(--blue); font-weight: 800; }
.entry-body small { margin-top: 10px; color: var(--green); text-align: center; }
.workspace { display: grid; grid-template-columns: 260px minmax(0, 1fr); max-width: 1500px; margin: 0 auto; min-height: calc(100vh - 116px); }
.sidebar { padding: 30px 24px; background: #eef3f8; border-right: 1px solid var(--line); }
.student-panel { display: flex; gap: 12px; align-items: center; padding-bottom: 24px; border-bottom: 1px solid #ced9e5; }
.avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--cyan); font-weight: 800; }
.student-panel span, .student-panel strong, .student-panel small { display: block; }
.student-panel span, .student-panel small { color: var(--muted); font-size: 12px; }
.student-panel strong { margin: 3px 0; font-size: 15px; }
.steps { margin: 30px 0; padding: 0; list-style: none; }
.steps li { position: relative; display: flex; gap: 12px; min-height: 68px; color: var(--muted); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 34px; width: 2px; height: 30px; background: #cbd6e1; }
.steps li > span { position: relative; z-index: 1; width: 32px; height: 32px; display: grid; place-items: center; border: 2px solid #b7c4d2; border-radius: 50%; background: #eef3f8; font-size: 13px; font-weight: 800; }
.steps strong, .steps small { display: block; }
.steps strong { margin-top: 4px; color: inherit; font-size: 14px; }
.steps small { margin-top: 4px; font-size: 12px; }
.steps li.done, .steps li.active { color: var(--blue); }
.steps li.done > span { color: white; background: var(--green); border-color: var(--green); }
.steps li.active > span { color: white; background: var(--blue); border-color: var(--blue); }
.timer-card { padding: 18px; border: 1px solid #cbd8e7; background: white; border-radius: 6px; }
.timer-card span, .timer-card strong, .timer-card small { display: block; }
.timer-card span, .timer-card small { color: var(--muted); font-size: 12px; }
.timer-card strong { margin: 6px 0; color: var(--blue-dark); font-size: 26px; font-variant-numeric: tabular-nums; }
.content { padding: 34px 40px 50px; min-width: 0; }
.page-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; }
.eyebrow { color: var(--blue); font-size: 12px; font-weight: 800; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: 28px; }
.page-heading p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 12px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.dot.tight { background: var(--orange); }
.dot.full { background: #aab3be; }
.filters { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 12px; margin-top: 28px; padding: 18px; background: white; border: 1px solid var(--line); border-radius: 6px; }
.filters label { color: var(--muted); font-size: 12px; font-weight: 700; }
.filters select { width: 100%; height: 40px; margin-top: 7px; padding: 0 34px 0 12px; border: 1px solid #cdd7e2; border-radius: 4px; color: var(--ink); background: white; }
.building-photo { position: relative; width: 100%; max-height: 330px; margin: 12px 0 0; overflow: hidden; border: 1px solid var(--line); background: #dfe7ee; }
.building-photo img { display: block; width: 100%; height: min(28vw, 330px); min-height: 210px; object-fit: cover; }
.building-photo figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 28px 18px 14px; color: white; background: linear-gradient(transparent, rgba(10, 28, 48, .78)); }
.building-photo strong, .building-photo span { display: block; }
.building-photo strong { font-size: 16px; }
.building-photo span { margin-top: 4px; font-size: 11px; }
.quick-pick-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 12px; padding: 14px 18px; border: 1px solid #c6d9ed; background: #edf5ff; }
.quick-pick-bar strong, .quick-pick-bar span { display: block; }
.quick-pick-bar strong { color: var(--blue-dark); font-size: 13px; }
.quick-pick-bar span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.quick-pick-button { min-width: 108px; min-height: 38px; border: 1px solid var(--orange); border-radius: 4px; color: white; background: var(--orange); font-weight: 800; }
.summary-bar { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 22px; margin: 20px 0 12px; color: var(--muted); font-size: 13px; }
.summary-bar #floorPosition { margin-right: auto; color: var(--ink); font-weight: 800; }
.summary-bar strong { color: var(--blue); }
.room-grid { display: grid; grid-template-columns: repeat(5, minmax(105px, 1fr)); gap: 2px; padding: 2px; background: #d4dce5; border: 1px solid #d4dce5; }
.room-card { position: relative; min-height: 82px; padding: 12px; text-align: center; border: 0; border-radius: 0; color: white; background: #1685c8; transition: filter .18s, transform .18s; overflow: hidden; }
.room-card:not(:disabled):hover { transform: translateY(-2px); border-color: #78a8df; box-shadow: 0 8px 22px rgba(22, 54, 90, .09); }
.room-card:disabled { cursor: not-allowed; color: #77818c; background: #e1e5e8; opacity: 1; }
.room-accent { position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--green); }
.room-card.tight .room-accent { background: var(--orange); }
.room-card.full .room-accent { background: #aab3be; }
.room-top { display: flex; justify-content: space-between; gap: 10px; }
.room-number { display: block; font-size: 17px; color: inherit; font-weight: 800; }
.room-capacity { display: block; margin-top: 8px; color: inherit; font-size: 11px; }
.status-pill { align-self: flex-start; padding: 4px 8px; border-radius: 999px; color: var(--green); background: #e8f7f1; font-size: 11px; font-weight: 700; }
.tight .status-pill { color: #9c4d0e; background: #fff1e1; }
.full .status-pill { color: #66717d; background: #eef1f4; }
.room-meta { margin-top: 10px; color: var(--muted); font-size: 13px; }
.bed-mini { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin-top: 22px; }
.bed-mini i { height: 7px; border-radius: 2px; background: #d6dde5; }
.bed-mini i.open { background: var(--green); }
.room-footer { display: flex; justify-content: space-between; margin-top: 13px; color: var(--muted); font-size: 12px; }
.room-footer strong { color: var(--ink); }
.empty-state { grid-column: 1 / -1; padding: 60px 20px; text-align: center; border: 1px dashed #b9c7d5; background: white; color: var(--muted); }
.drawer-backdrop, .modal-backdrop { position: fixed; inset: 0; z-index: 10; background: rgba(9, 24, 43, .48); }
.drawer { position: fixed; z-index: 11; top: 0; right: 0; width: min(480px, 92vw); height: 100vh; padding: 24px; overflow: auto; background: white; transform: translateX(102%); transition: transform .25s; box-shadow: -12px 0 30px rgba(0,0,0,.15); }
.drawer.open { transform: translateX(0); }
.drawer header { display: flex; justify-content: space-between; gap: 15px; align-items: flex-start; }
.drawer h2 { margin: 4px 0 0; font-size: 22px; }
.drawer p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.drawer img { display: block; width: 100%; border: 1px solid var(--line); }
.modal-backdrop { display: grid; place-items: center; padding: 20px; }
.modal { position: relative; width: min(680px, 100%); max-height: 90vh; padding: 28px; overflow: auto; background: white; border-radius: 8px; box-shadow: 0 24px 80px rgba(0,0,0,.25); }
.modal-close { position: absolute; top: 16px; right: 16px; border: 0; }
.modal h2 { margin-bottom: 8px; font-size: 24px; }
.modal-subtitle { color: var(--muted); font-size: 14px; }
.beds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0; }
.bed-button { min-height: 98px; padding: 14px; border: 1px solid #b8cadd; border-radius: 6px; color: var(--blue-dark); background: #f8fbff; text-align: left; }
.bed-button strong, .bed-button span { display: block; }
.bed-button span { margin-top: 7px; color: var(--green); font-size: 12px; }
.bed-button.occupied { color: #737e8a; background: #f1f3f5; border-color: #d9dfe5; cursor: not-allowed; }
.bed-button.occupied span { color: #89939d; }
.bed-button.selected { color: white; background: var(--blue); border-color: var(--blue); }
.bed-button.selected span { color: white; }
.confirm-row { display: flex; justify-content: flex-end; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.primary-button, .secondary-button { min-height: 42px; padding: 0 18px; border-radius: 5px; font-weight: 800; }
.primary-button { color: white; background: var(--blue); border: 1px solid var(--blue); }
.primary-button:disabled { opacity: .45; cursor: not-allowed; }
.secondary-button { color: var(--ink); background: white; border: 1px solid var(--line); }
.result { text-align: center; padding: 12px 4px 2px; }
.result-mark { width: 58px; height: 58px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font-size: 28px; }
.result-detail { display: grid; grid-template-columns: repeat(3, 1fr); margin: 24px 0; border: 1px solid var(--line); }
.result-detail div { padding: 16px 10px; }
.result-detail div + div { border-left: 1px solid var(--line); }
.result-detail span, .result-detail strong { display: block; }
.result-detail span { color: var(--muted); font-size: 12px; }
.result-detail strong { margin-top: 6px; color: var(--blue-dark); }
.payment-notice { margin: -8px 0 24px; padding: 16px 18px; border: 1px solid #efc386; border-left: 4px solid var(--orange); background: #fff7eb; text-align: left; }
.payment-notice strong { color: #8f470d; }
.payment-notice p { margin: 6px 0; color: #653a18; font-size: 14px; font-weight: 700; }
.payment-notice small { color: var(--muted); }
.group-status { display: flex; align-items: center; gap: 18px; margin: 18px 0; padding: 14px 16px; border: 1px solid var(--line); background: #f5f8fb; }
.group-status.formed { border-color: #8bcdb5; background: #edf9f4; }
.group-status div { flex: 0 0 auto; }
.group-status span, .group-status strong { display: block; }
.group-status span { color: var(--muted); font-size: 11px; }
.group-status strong { margin-top: 3px; color: var(--blue-dark); }
.group-status p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.group-share-tip { margin: -8px 0 14px; padding: 10px 12px; border-left: 3px solid var(--pink); color: #704454; background: var(--pink-soft); font-size: 12px; }
.classmate-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-height: 430px; padding-right: 4px; overflow-y: auto; }
.classmate-card { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: center; min-width: 0; padding: 10px; border: 1px solid var(--line); background: white; }
.classmate-card.accepted { border-color: #8bcdb5; background: #f4fbf8; }
.classmate-card img { grid-row: 1 / 3; width: 52px; height: 66px; object-fit: cover; border: 1px solid #cbd6e1; }
.classmate-card strong, .classmate-card span, .classmate-card small { display: block; }
.classmate-card span, .classmate-card small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.invite-button, .accept-button { grid-column: 2; min-height: 30px; padding: 0 10px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.invite-button { border: 1px solid var(--blue); color: var(--blue); background: white; }
.accept-button { border: 1px solid var(--orange); color: white; background: var(--orange); }
.invite-button:disabled { opacity: .4; cursor: not-allowed; }
.accepted-label { grid-column: 2; color: var(--green) !important; font-weight: 700; }
.quick-bed-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 24px 0; }
.quick-bed-options button { min-height: 82px; padding: 10px 6px; border: 1px solid #c9d4df; border-radius: 5px; color: var(--ink); background: white; }
.quick-bed-options button.selected { border-color: var(--blue); color: white; background: var(--blue); }
.quick-bed-options strong, .quick-bed-options span { display: block; }
.quick-bed-options strong { font-size: 20px; }
.quick-bed-options span { margin-top: 6px; font-size: 11px; }
.quick-warning { margin-bottom: 18px; padding: 11px 14px; border-left: 3px solid var(--orange); color: #80501f; background: #fff7eb; font-size: 12px; }
.member-bed-list { display: grid; gap: 10px; margin: 22px 0; }
.member-bed-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); background: #f8fafc; }
.member-bed-row > div:first-child strong, .member-bed-row > div:first-child span { display: block; }
.member-bed-row > div:first-child span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.member-bed-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.member-bed-options button { min-height: 38px; padding: 0 6px; border: 1px solid #bbc9d8; border-radius: 4px; color: var(--blue-dark); background: white; font-size: 11px; }
.member-bed-options button.selected { border-color: var(--blue); color: white; background: var(--blue); }
.member-bed-options button:disabled { color: #99a2ad; background: #e8ebee; border-color: #d8dee4; cursor: not-allowed; }
.group-assignment { margin: -8px 0 24px; padding: 16px 18px; border: 1px solid #9bcbb9; background: #f1faf6; text-align: left; }
.group-assignment > strong { display: block; margin-bottom: 10px; color: var(--green); }
.group-assignment div { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid #d7ebe3; font-size: 13px; }
.group-assignment small { display: block; margin-top: 8px; color: var(--muted); }
.assistant-outro { display: flex; gap: 12px; align-items: center; margin: -8px 0 24px; padding: 14px; border: 1px solid #edc7cf; background: var(--pink-soft); text-align: left; }
.assistant-outro img { width: 56px; height: 56px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; }
.assistant-outro strong { color: #6d4050; font-size: 13px; }
.assistant-outro p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.assistant-contact { margin: -28px -28px 0; overflow: hidden; }
.assistant-contact-hero { display: flex; gap: 18px; align-items: center; padding: 26px 32px; color: white; background: var(--navy); }
.assistant-contact-hero img { width: 88px; height: 88px; flex: 0 0 auto; border: 4px solid rgba(255,255,255,.82); border-radius: 50%; object-fit: cover; }
.assistant-contact-hero span, .assistant-contact-hero small { display: block; color: #dce8f5; }
.assistant-contact-hero span { margin-bottom: 5px; font-size: 11px; font-weight: 800; }
.assistant-contact-hero h2 { margin: 0 0 7px; color: white; font-size: 25px; }
.assistant-contact-hero small { font-size: 11px; }
.assistant-contact-body { padding: 22px 32px 26px; }
.assistant-contact-body > p { margin-bottom: 18px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.wechat-copy { display: flex; gap: 16px; align-items: center; padding: 14px 16px; border: 1px solid #e5b9c3; border-left: 4px solid var(--pink); background: var(--pink-soft); }
.wechat-copy > div { flex: 1; min-width: 0; }
.wechat-copy span, .wechat-copy strong { display: block; }
.wechat-copy span { color: #8b6670; font-size: 10px; }
.wechat-copy strong { margin-top: 3px; color: var(--navy); font-size: 22px; }
.wechat-copy button { min-height: 40px; padding: 0 16px; border: 1px solid var(--blue); border-radius: 4px; color: white; background: var(--blue); font-size: 12px; font-weight: 800; }
.privacy-note { display: block; margin-top: 11px; color: #8490a0; font-size: 10px; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: 28px; padding: 11px 18px; border-radius: 5px; color: white; background: #172232; opacity: 0; transform: translate(-50%, 12px); transition: .2s; pointer-events: none; font-size: 13px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.brand-footer { position: relative; z-index: 1; padding: 18px 24px; color: #d9e4f1; background: var(--navy); text-align: center; font-size: 12px; line-height: 1.7; }
.assistant-float { position: fixed; z-index: 9; right: 22px; bottom: 22px; display: flex; gap: 9px; align-items: center; min-height: 52px; padding: 6px 14px 6px 6px; border: 1px solid #e8afbb; border-radius: 28px; color: #6d4050; background: white; box-shadow: 0 8px 26px rgba(31, 51, 75, .18); font-size: 12px; font-weight: 800; }
.assistant-float img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.watermark-layer { position: fixed; z-index: 8; inset: -12vh -10vw; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(150px, 1fr); align-items: center; justify-items: center; overflow: hidden; pointer-events: none; transform: rotate(-18deg); transform-origin: center; }
.watermark-layer span { color: #174f88; opacity: .055; font-size: 16px; font-weight: 800; line-height: 1.55; text-align: center; white-space: nowrap; }
.watermark-layer small { display: block; font-size: 12px; font-weight: 700; }
.mobile-nav { display: none; }
@media (max-width: 1000px) {
  .main-nav { display: none; }
  .entry-grid { gap: 14px; }
  .workspace { grid-template-columns: 220px minmax(0, 1fr); }
  .content { padding: 28px 24px 40px; }
  .room-grid { grid-template-columns: repeat(4, minmax(90px, 1fr)); }
}
@media (max-width: 720px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  body[data-view="start"] .notice, body[data-view="preview"] .notice { display: none; }
  .topbar { height: 58px; padding: 0 12px; }
  .brand { gap: 7px; min-width: 0; }
  .brand-mark { width: 34px; height: 34px; font-size: 11px; }
  .brand-avatar { width: 30px; height: 30px; margin-left: -2px; }
  .brand strong { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
  .brand small { display: none; }
  .top-actions .icon-button { display: none; }
  .quiet-button { padding: 0 10px; font-size: 13px; }
  .notice { min-height: 0; padding: 8px 12px; align-items: flex-start; gap: 5px; flex-direction: column; font-size: 11px; line-height: 1.45; }
  .home-view { padding: 16px 12px 28px; }
  .system-message { gap: 10px; padding: 13px; background: var(--pink-soft); }
  .system-message > img { width: 42px; height: 42px; }
  .system-message p { margin: 6px 0 4px; font-size: 12px; line-height: 1.65; }
  .system-message span { font-size: 10px; }
  .entry-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
  .entry-image { max-height: 150px; }
  .entry-body { padding: 15px; }
  .entry-body h2 { margin-bottom: 7px; font-size: 18px; }
  .entry-body p { margin-bottom: 14px; font-size: 12px; line-height: 1.65; }
  .assistant-tip { margin: -2px 0 10px; padding: 7px 9px; }
  .assistant-tip img { display: none; }
  .entry-body p { min-height: 0; }
  .workspace { display: block; }
  .sidebar { padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .student-panel, .timer-card { display: none; }
  .steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
  .steps li { display: block; min-height: 44px; text-align: center; }
  .steps li:not(:last-child)::after { left: calc(50% + 15px); top: 13px; width: calc(100% - 30px); height: 2px; }
  .steps li > span { width: 28px; height: 28px; }
  .steps li > span { margin: 0 auto; background: #eef3f8; }
  .steps strong { font-size: 10px; }
  .steps small { display: none; }
  .content { padding: 16px 12px 28px; }
  .page-heading { display: block; }
  h1 { margin-bottom: 5px; font-size: 21px; }
  .page-heading p { font-size: 12px; }
  .legend { margin-top: 12px; gap: 10px; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; padding: 11px; }
  .building-photo img { height: 45vw; min-height: 150px; }
  .building-photo figcaption { padding: 24px 12px 10px; }
  .quick-pick-bar { align-items: flex-start; }
  .summary-bar #floorPosition { width: 100%; margin-right: 0; }
  .room-grid { grid-template-columns: repeat(3, minmax(82px, 1fr)); }
  .room-card { min-height: 76px; }
  .beds { grid-template-columns: repeat(2, 1fr); }
  .quick-bed-options { grid-template-columns: repeat(3, 1fr); }
  .classmate-list { grid-template-columns: 1fr; max-height: 46vh; }
  .group-status { align-items: flex-start; flex-direction: column; gap: 6px; }
  .member-bed-row { grid-template-columns: 1fr; }
  .assistant-contact { margin: -24px -18px 0; }
  .assistant-contact-hero { position: relative; gap: 12px; min-height: 112px; padding: 18px 54px 18px 18px; }
  .assistant-contact-hero::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: var(--pink); }
  .assistant-contact-hero img { width: 62px; height: 62px; border-width: 3px; box-shadow: 0 5px 16px rgba(0,0,0,.18); }
  .assistant-contact-hero span { margin-bottom: 3px; font-size: 9px; }
  .assistant-contact-hero h2 { margin-bottom: 5px; font-size: 20px; }
  .assistant-contact-hero small { font-size: 9px; line-height: 1.5; }
  .assistant-contact-body { padding: 16px 16px 18px; }
  .assistant-contact-body > p { margin-bottom: 14px; font-size: 12px; line-height: 1.75; }
  .wechat-copy { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 10px; align-items: center; padding: 11px 11px 11px 13px; }
  .wechat-copy strong { font-size: 19px; }
  .wechat-copy button { width: 96px; min-height: 42px; padding: 0 8px; }
  .privacy-note { margin-top: 9px; line-height: 1.5; }
  .assistant-contact + .confirm-row { justify-content: stretch; }
  .assistant-contact + .confirm-row .secondary-button { width: 100%; }
  .modal:has(.assistant-contact) .modal-close { top: 10px; right: 10px; color: white; background: rgba(255,255,255,.16); }
  .modal-backdrop { align-items: end; padding: 0; }
  .modal { width: 100%; max-height: 88vh; padding: 24px 18px calc(22px + env(safe-area-inset-bottom)); border-radius: 8px 8px 0 0; }
  .confirm-row { position: sticky; bottom: calc(-22px - env(safe-area-inset-bottom)); margin: 0 -18px -22px; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); background: white; }
  .confirm-row button { flex: 1; }
  .result-detail { grid-template-columns: 1fr; }
  .result-detail div + div { border-left: 0; border-top: 1px solid var(--line); }
  .drawer { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); max-width: calc(100vw - 32px); text-align: center; }
  .mobile-nav { position: fixed; z-index: 9; right: 0; bottom: 0; left: 0; height: calc(66px + env(safe-area-inset-bottom)); padding: 0 8px env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(3, 1fr); background: white; border-top: 1px solid var(--line); box-shadow: 0 -5px 18px rgba(22, 54, 90, .08); }
  .mobile-nav .nav-button { min-width: 0; height: 66px; padding: 8px 4px; }
  .mobile-nav .nav-button::after { top: 0; right: 24%; bottom: auto; left: 24%; }
  .mobile-nav strong, .mobile-nav span { display: block; }
  .mobile-nav strong { font-size: 13px; }
  .mobile-nav span { margin-top: 4px; font-size: 10px; font-weight: 400; }
  .assistant-float { right: 12px; bottom: calc(78px + env(safe-area-inset-bottom)); width: 48px; min-height: 48px; padding: 4px; border-radius: 50%; }
  .assistant-float img { width: 38px; height: 38px; }
  .assistant-float span { display: none; }
  .brand-footer { padding-bottom: 20px; }
  .watermark-layer { display: none; }
}
@media (max-width: 390px) {
  .brand small { display: none; }
  .brand strong { max-width: 112px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .brand-avatar { display: none; }
  .top-actions { gap: 6px; }
  .filters { grid-template-columns: 1fr; }
  .quick-pick-bar { align-items: stretch; flex-direction: column; }
  .quick-pick-button { width: 100%; }
  .quick-bed-options { grid-template-columns: repeat(2, 1fr); }
  .room-grid { grid-template-columns: repeat(2, minmax(105px, 1fr)); }
  .beds { gap: 8px; }
  .bed-button { min-height: 84px; padding: 12px; }
}
