/* 海鸥居住 · 扩展样式（住宿业务 / 移动端 / 字体切换） */
body[data-lang="hant"] { font-family: "PingFang TC", "Microsoft JhengHei", "PingFang SC", "Microsoft YaHei", sans-serif; }

.hide-sm { display: inline; }
.mini-label { display: block; font-size: 11.5px; color: var(--ink-3); margin: 4px 0 -4px; letter-spacing: .3px; }
.auth-copyright { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 11px; color: #8aa4bd; letter-spacing: .5px; }
.tb-title { min-width: 0; }
.back-btn { flex: none; }
.home-btn { gap: 5px; }
.topbar { gap: 10px; }
.topbar-left { flex: 1; min-width: 0; }

/* 页面进入动画（逐块上浮） */
.content > .card, .content > .hero, .content > .grid, .content > .toolbar { animation: fadeUp .5s cubic-bezier(.22,.9,.3,1) both; }
.content > *:nth-child(2) { animation-delay: .04s; }
.content > *:nth-child(3) { animation-delay: .08s; }
.content > *:nth-child(4) { animation-delay: .12s; }
.content > *:nth-child(5) { animation-delay: .16s; }

/* 房间卡片 */
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 14px; }
.room-card {
  position: relative; padding: 16px 16px 14px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.94), rgba(233,245,255,.86));
  border: 1px solid #fff; box-shadow: 0 10px 24px rgba(28,80,145,.09);
  transition: transform .25s, box-shadow .25s;
}
.room-card:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(28,80,145,.15); }
.room-card::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.room-card.full::before { background: linear-gradient(90deg, #7fb4e8, #a9d4f5); }
.room-card.mt::before { background: linear-gradient(90deg, #ffbe6b, #ff9d5c); }
.room-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.room-no { font-size: 18px; font-weight: 800; letter-spacing: .5px; }
.room-bd { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.room-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 11.5px; color: var(--ink-3); margin-top: 10px; }
.room-price { margin-top: 12px; display: flex; align-items: baseline; gap: 4px; }
.room-price b { font-size: 19px; color: #1c6fb8; font-variant-numeric: tabular-nums; }
.room-price span { font-size: 11px; color: var(--ink-3); }
.room-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(180,210,235,.35); }
.bed-dots { display: flex; gap: 5px; }
.bed-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(150,190,225,.4); }
.bed-dot.on { background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 6px rgba(47,139,253,.4); }

/* 指标组 */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.stat-mini { padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.8); border: 1px solid #fff; box-shadow: 0 8px 18px rgba(28,80,145,.07); }
.stat-mini .v { font-size: 22px; font-weight: 800; color: var(--ink); }
.stat-mini .l { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

/* 合同纸面 */
.paper {
  background: #fff; border-radius: 16px; padding: 30px 32px; border: 1px solid rgba(190,215,235,.5);
  box-shadow: 0 14px 36px rgba(23,58,95,.10); font-family: "Songti SC", "SimSun", serif;
  font-size: 13.5px; line-height: 2.1; color: #24425e; white-space: pre-wrap; max-height: 56vh; overflow: auto;
}
.paper h2 { text-align: center; letter-spacing: 4px; font-size: 17px; margin: 0 0 18px; }

/* 上传格 */
.doc-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.upload-box { position: relative; border: 1.5px dashed rgba(47,139,253,.3); border-radius: 12px; background: rgba(255,255,255,.6);
  height: 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; overflow: hidden; transition: .2s; }
.upload-box:hover { border-color: var(--accent); background: rgba(233,245,255,.85); }
.upload-box svg { width: 20px; height: 20px; color: var(--accent); }
.upload-box small { font-size: 11px; color: var(--ink-3); }
.upload-box input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-box.has img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.upload-box.has small, .upload-box.has svg { display: none; }

/* 时间线 / 流程 */
.steps { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 16px; }
.step { flex: 1; min-width: 120px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.9); font-size: 12px; color: var(--ink-3); }
.step b { display: block; color: var(--ink); font-size: 12.5px; margin-bottom: 3px; }
.step.on { background: linear-gradient(120deg, rgba(47,139,253,.12), rgba(255,255,255,.9)); border-color: rgba(47,139,253,.25); color: var(--ink-2); }

/* 表单增强 */
.form-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.check-row { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--ink-2); line-height: 1.8; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.65); }
.check-row input { margin-top: 4px; accent-color: var(--accent); }
.radio-row { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-card { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.9); font-size: 12.5px; cursor: pointer; }
.radio-card input { accent-color: var(--accent); }

/* 列表 */
.list-block { display: flex; flex-direction: column; gap: 10px; }
.list-card { padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.95); transition: .2s; }
.list-card:hover { box-shadow: 0 10px 22px rgba(28,80,145,.1); }
.list-card .lc-top { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.list-card .lc-title { font-size: 14px; font-weight: 700; color: var(--ink); }
.list-card .lc-meta { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.list-card .lc-body { font-size: 12.5px; color: var(--ink-2); line-height: 1.8; margin-top: 8px; }
.lc-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

/* AI 面板 */
.ai-msg { white-space: pre-wrap; }
.ai-empty { color: var(--ink-3); font-size: 12px; }
.ai-typing span { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-right: 3px; animation: blink 1.2s infinite; }
.ai-typing span:nth-child(2) { animation-delay: .2s; } .ai-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,100% { opacity: .2; transform: translateY(0);} 50% { opacity: 1; transform: translateY(-2px);} }

/* 状态颜色辅助 */
.text-muted { color: var(--ink-3); }
.text-danger { color: #bf3d3d; }
.row-gap { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.soft-sep { height: 1px; background: rgba(180,210,235,.3); margin: 14px 0; }

/* 标签页胶囊 */
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.85); gap: 2px; flex-wrap: wrap; }
.seg a { padding: 6px 14px; border-radius: 9px; font-size: 12.5px; color: var(--ink-2); transition: .2s; }
.seg a.on { background: #fff; color: var(--accent); font-weight: 600; box-shadow: 0 4px 12px rgba(28,80,145,.1); }

/* 桌面端打印合同 */
@media print {
  body { background: #fff; }
  .sidebar, .topbar, .ai-drawer, .ai-mask, .bg-blobs, .no-print { display: none !important; }
  .main { margin: 0; padding: 0; }
  .paper { box-shadow: none; border: none; max-height: none; font-size: 12pt; }
}

@media (max-width: 1180px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .doc-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .form-3 { grid-template-columns: 1fr; }
  .room-grid { grid-template-columns: repeat(auto-fill, minmax(46%, 1fr)); gap: 10px; }
  .hide-sm { display: none; }
  .paper { padding: 20px 18px; }
  .stat-mini .v { font-size: 19px; }
  .room-no { font-size: 16px; }
}
@media (max-width: 520px) {
  .room-grid { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
}

/* ================= 后台管理模块补充样式 ================= */
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 7px; font-size: 11px; line-height: 1.6;
  background: rgba(120,160,200,.13); color: #55708c; font-weight: 600;
}
.tag.ok { background: rgba(52,190,130,.14); color: #1b8a5c; }
.tag.warn { background: rgba(255,170,60,.16); color: #b57613; }
.tag.danger { background: rgba(255,110,110,.14); color: #bf3d3d; }
.req { color: #e26060; }

.code-link { font-family: ui-monospace, Menlo, monospace; font-size: 12px; padding: 3px 8px; border-radius: 7px;
  background: rgba(47,139,253,.1); color: #1f6fce; cursor: pointer; letter-spacing: 1px; }
.row-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.form-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.input.sm, .select.sm { height: 30px; font-size: 12px; padding: 0 9px; border-radius: 9px; }
.btn.sm svg, .btn svg { width: 14px; height: 14px; vertical-align: -2px; }
.inline-check { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.inline-check input { accent-color: var(--accent); }

.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filter-bar .input { max-width: 240px; }
.filter-bar .select { max-width: 150px; }

/* 表格补充 */
table th { white-space: nowrap; }
table td .badge { white-space: nowrap; }

/* 版块排序 */
.order-btns { display: flex; align-items: center; gap: 3px; }
.order-btn { width: 20px; height: 20px; border: none; border-radius: 6px; background: rgba(255,255,255,.7); color: var(--ink-3); font-size: 9px; cursor: pointer; transition: .18s; }
.order-btn:hover { background: var(--accent); color: #fff; }
.sort-no { font-size: 10.5px; color: var(--ink-3); margin-left: 2px; font-variant-numeric: tabular-nums; }
.mod-ico { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 7px;
  background: rgba(47,139,253,.1); color: var(--accent); margin-right: 6px; vertical-align: -4px; }
.mod-ico svg { width: 13px; height: 13px; }

/* 导出中心 */
.export-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.export-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px;
  background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.95); transition: .22s; }
.export-card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(28,80,145,.12); }
.ec-ico { flex: none; width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, rgba(47,139,253,.16), rgba(255,255,255,.9)); color: var(--accent); }
.ec-ico svg { width: 19px; height: 19px; }
.ec-body { flex: 1; min-width: 0; }
.ec-title { font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.ec-desc { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.6; }

/* 注册审核 */
.reg-list { display: flex; flex-direction: column; gap: 10px; }
.reg-item { padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.76); border: 1px solid rgba(255,255,255,.95); }
.reg-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.reg-top b { font-size: 14px; margin-right: 6px; }
.reg-note { font-size: 12px; color: var(--ink-2); margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(233,245,255,.6); }
.reg-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.reg-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.reg-form .input { max-width: 280px; }

/* 个人中心 */
.profile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.profile-head .avatar { width: 54px; height: 54px; border-radius: 16px; font-size: 22px; }
.info-box { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(233,245,255,.55); border: 1px solid rgba(255,255,255,.9); }
.ib-title { font-size: 12px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; letter-spacing: .5px; }
.ib-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--ink-3); padding: 4px 0; }
.ib-row b { color: var(--ink); font-weight: 600; font-size: 12px; text-align: right; word-break: break-all; }

.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 4px; bottom: 4px; width: 1px; background: linear-gradient(180deg, rgba(47,139,253,.35), rgba(47,139,253,.05)); }
.tl-item { position: relative; padding: 6px 0 12px; }
.tl-dot { position: absolute; left: -17px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px rgba(47,139,253,.5); }
.tl-title { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.tl-meta { font-size: 11px; color: var(--ink-3); margin-top: 3px; }

/* 规章制度 */
.doc-body { font-size: 13px; line-height: 1.95; color: var(--ink-2); }
.doc-body h4.rule-h { font-size: 13.5px; color: var(--ink); margin: 18px 0 8px; padding-left: 10px; border-left: 3px solid var(--accent); }
.doc-body p { margin: 0 0 8px; }
.doc-body .rule-list { margin: 0 0 10px; padding-left: 20px; }
.doc-body .rule-list li { margin: 4px 0; }

/* 报修工单 */
.task-list { display: flex; flex-direction: column; gap: 10px; }
.task-item { display: flex; gap: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.76); border: 1px solid rgba(255,255,255,.95); }
.task-main { flex: 1; min-width: 0; }
.task-title { font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.task-desc { font-size: 12.5px; color: var(--ink-2); line-height: 1.8; margin-top: 6px; }
.task-meta { font-size: 11px; color: var(--ink-3); margin-top: 6px; }
.task-reply { font-size: 12px; color: var(--ink-2); margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(233,245,255,.6); }
.task-reply b { display: block; font-size: 11px; color: var(--accent); margin-bottom: 3px; }
.task-act { flex: none; display: flex; flex-direction: column; gap: 6px; width: 170px; }

/* AI 页面 */
.ai-page { border-radius: 16px; background: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.9); padding: 12px; }
.ai-page-body { height: 46vh; min-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 6px 4px; }
.ai-page-body .ai-msg { max-width: 82%; padding: 10px 13px; border-radius: 14px; font-size: 13px; line-height: 1.75; }
.ai-page-body .ai-msg.bot { align-self: flex-start; background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.95); box-shadow: 0 6px 16px rgba(28,80,145,.07); }
.ai-page-body .ai-msg.me { align-self: flex-end; background: linear-gradient(120deg, rgba(47,139,253,.16), rgba(120,200,255,.18)); }
.ai-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.ai-chip2 { padding: 5px 11px; border-radius: 20px; font-size: 11.5px; color: #1f6fce; background: rgba(47,139,253,.09); border: 1px solid rgba(47,139,253,.18); cursor: pointer; transition: .2s; }
.ai-chip2:hover { background: rgba(47,139,253,.18); }
.ai-page-input { display: flex; gap: 8px; align-items: flex-end; }
.ai-page-input .textarea { flex: 1; min-height: 40px; max-height: 120px; padding: 10px 12px; }
.know-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.know-item { padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.95); font-size: 11.5px; color: var(--ink-3); }
.know-item b { display: block; font-size: 12.5px; color: var(--ink); margin-bottom: 4px; }

/* AI 配置 */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 6px 12px; border-radius: 18px; border: 1px solid rgba(47,139,253,.2); background: rgba(255,255,255,.8);
  font-size: 11.5px; color: #1f6fce; cursor: pointer; transition: .2s; }
.chip:hover { background: rgba(47,139,253,.12); }
.test-result { font-size: 12px; color: var(--ink-3); }
.test-result.ok { color: #1b8a5c; }
.test-result.bad { color: #bf3d3d; }
.api-doc { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.api-row { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-3); }
.api-row span { width: 78px; flex: none; }
.api-row b { font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; color: #1f6fce; word-break: break-all; cursor: pointer; }
.code-block { margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(236,246,255,.75); border: 1px solid rgba(180,215,245,.4);
  font-size: 11.5px; line-height: 1.75; color: #2b5273; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }

/* Logo 设置 */
.logo-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.logo-preview { width: 86px; height: 86px; border-radius: 20px; overflow: hidden; background: #eaf4ff; border: 1px solid rgba(255,255,255,.95); box-shadow: 0 10px 22px rgba(28,80,145,.12); }
.logo-preview img { width: 100%; height: 100%; object-fit: cover; }
.logo-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.upload-btn { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 10px; cursor: pointer;
  background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: #fff; font-size: 12px; font-weight: 600; box-shadow: 0 6px 14px rgba(47,139,253,.25); }

/* 在线点 */
.online-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #34c98a; margin-right: 5px; box-shadow: 0 0 6px rgba(52,201,138,.6); animation: pulseDot 2s infinite; }
@keyframes pulseDot { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

@media (max-width: 900px) {
  .export-grid, .know-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .task-item { flex-direction: column; }
  .task-act { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .task-act .input { flex: 1; min-width: 120px; }
  .ai-page-body { height: 52vh; }
  .logo-row { align-items: flex-start; }
  .filter-bar .input, .filter-bar .select { max-width: none; flex: 1 1 130px; }
}
