/* 姑苏疆味美食馆 · 温暖动效 UI */
:root {
  --w-ink: #3f2316;
  --w-ink2: #5c3d2e;
  --w-muted: #8b6f5e;
  --w-cream: #fffdf8;
  --w-paper: #fffaf3;
  --w-surface: #ffffff;
  --w-line: rgba(92, 61, 46, 0.12);
  --w-line2: rgba(92, 61, 46, 0.08);
  --w-amber: #f59e0b;
  --w-coral: #fb7185;
  --w-terra: #c2410c;
  --w-honey: #fbbf24;
  --w-leaf: #15803d;
  --w-sky: #0d9488;
  --w-radius: 18px;
  --w-radius-sm: 12px;
  --w-ease: cubic-bezier(0.25, 0.8, 0.25, 1);
  --w-bounce: cubic-bezier(0.34, 1.35, 0.64, 1);
  --w-t: 0.45s;
  --bs-primary: #c2410c;
  --bs-primary-rgb: 194, 65, 12;
  --bs-link-color: #b45309;
  --bs-link-hover-color: #9a3412;
}

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

html {
  scroll-behavior: smooth;
}

body.app-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans SC", ui-sans-serif, system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--w-ink);
  background: linear-gradient(165deg, #fff5eb 0%, #ffecd4 28%, #fff7ed 55%, #fef3e7 100%);
  position: relative;
}

/* 背景轻动：暖色微粒漂移 */
body.app-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.12) 0%, transparent 42%),
    radial-gradient(circle at 85% 10%, rgba(251, 113, 133, 0.1) 0%, transparent 38%),
    radial-gradient(circle at 50% 90%, rgba(253, 186, 116, 0.15) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
  animation: w-bg-breathe 16s ease-in-out infinite alternate;
}

@keyframes w-bg-breathe {
  0%,
  100% {
    opacity: 0.85;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* —— 顶栏：暖咖玻璃 —— */
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: linear-gradient(180deg, rgba(62, 39, 35, 0.94) 0%, rgba(79, 52, 46, 0.9) 100%);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(251, 191, 36, 0.22);
  box-shadow: 0 8px 32px rgba(62, 39, 35, 0.25);
  animation: w-nav-in 0.6s var(--w-ease) backwards;
}

@keyframes w-nav-in {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-topbar__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  padding: 0.55rem 0;
  min-height: 3.35rem;
}

.app-topbar__logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: #fff8f0 !important;
  margin-right: auto;
  transition: transform 0.35s var(--w-ease);
}

.app-topbar__logo:hover {
  transform: scale(1.02);
}

.app-topbar__logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fbbf24 0%, #f97316 45%, #ea580c 100%);
  box-shadow: 0 4px 18px rgba(251, 146, 60, 0.45);
  position: relative;
  flex-shrink: 0;
}

.app-topbar__logo-mark::after {
  content: "味";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fffdf8;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.app-topbar__logo-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.app-topbar__logo-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.app-topbar__logo-sub {
  font-size: 0.68rem;
  color: rgba(255, 248, 240, 0.72);
  letter-spacing: 0.04em;
}

.app-topbar__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 237, 213, 0.25);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.app-topbar__burger span {
  display: block;
  height: 2px;
  margin: 0 auto;
  width: 20px;
  background: #fde68a;
  border-radius: 2px;
  transition: transform 0.3s var(--w-ease), opacity 0.2s;
}

.app-topbar__collapse {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

@media (min-width: 992px) {
  .app-topbar__collapse {
    flex: 1 1 auto;
  }
}

.app-nav__list {
  list-style: none;
  margin: 0;
  padding: 0.45rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

@media (min-width: 992px) {
  .app-nav__list {
    padding: 0;
  }
}

.app-nav__link {
  display: inline-block;
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 253, 248, 0.88) !important;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.3s var(--w-ease), transform 0.25s var(--w-ease), box-shadow 0.3s ease, border-color 0.25s ease;
}

.app-nav__link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(253, 224, 71, 0.25);
  transform: translateY(-2px);
}

.app-nav__link--active {
  color: #422006 !important;
  background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.35);
}

.app-topbar__side {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.app-topbar__user {
  font-size: 0.8rem;
  color: rgba(255, 250, 240, 0.85);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 237, 213, 0.2);
}

.app-topbar__account {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 248, 240, 0.92) !important;
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(253, 224, 71, 0.35);
  transition: background 0.25s ease, transform 0.2s ease;
}

.app-topbar__account:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.btn-app-logout {
  --bs-btn-color: #fff7ed;
  --bs-btn-border-color: rgba(254, 215, 170, 0.35);
  --bs-btn-hover-bg: rgba(254, 202, 202, 0.2);
  --bs-btn-hover-border-color: rgba(252, 165, 165, 0.5);
  --bs-btn-hover-color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.42rem 1.1rem;
  border-radius: 999px;
}

/* —— Hero：暖光横幅 + 漂浮色块 —— */
.app-hero {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.75rem) 0 clamp(1.35rem, 3vw, 2rem);
  overflow: hidden;
  background: linear-gradient(125deg, #6b3d2e 0%, #8b5a3c 35%, #b45309 70%, #c2410c 100%);
}

.app-hero__blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.app-hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  animation: w-blob-float 12s ease-in-out infinite;
}

.app-hero__blob--1 {
  width: min(55vw, 280px);
  height: min(55vw, 280px);
  background: #fbbf24;
  top: -15%;
  left: -8%;
  animation-delay: 0s;
}

.app-hero__blob--2 {
  width: min(45vw, 220px);
  height: min(45vw, 220px);
  background: #fb923c;
  bottom: -20%;
  right: -5%;
  animation-delay: -4s;
}

.app-hero__blob--3 {
  width: min(35vw, 160px);
  height: min(35vw, 160px);
  background: #fda4af;
  top: 30%;
  right: 15%;
  animation-delay: -7s;
}

@keyframes w-blob-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(3%, 4%) scale(1.05);
  }
  66% {
    transform: translate(-2%, 2%) scale(0.96);
  }
}

.app-hero__aurora {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 45%);
  pointer-events: none;
}

.app-hero__grid {
  display: none;
}

.app-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
}

@media (min-width: 768px) {
  .app-hero__content {
    text-align: left;
    max-width: 42rem;
  }
}

.app-hero__kicker {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: rgba(255, 251, 235, 0.92);
  margin: 0 0 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.app-hero__pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fde68a;
  animation: w-pulse-soft 2.4s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(253, 224, 71, 0.55);
}

@keyframes w-pulse-soft {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(253, 224, 71, 0.45);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 12px rgba(253, 224, 71, 0);
  }
}

.app-hero__venue {
  margin: 0;
  font-size: clamp(1.75rem, 6vw, 3.1rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: #fffbeb;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.18), 0 0 40px rgba(251, 191, 36, 0.25);
}

@keyframes w-title-soft {
  0% {
    text-shadow: 0 4px 28px rgba(0, 0, 0, 0.18), 0 0 32px rgba(251, 191, 36, 0.2);
  }
  100% {
    text-shadow: 0 6px 36px rgba(0, 0, 0, 0.2), 0 0 52px rgba(254, 243, 199, 0.35);
  }
}

.app-hero__context {
  margin: 1rem 0 0;
}

.app-hero__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #78350f;
  background: rgba(255, 251, 235, 0.95);
  border: 1px solid rgba(254, 243, 199, 0.8);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  animation: w-chip-pop 0.65s var(--w-bounce) 0.15s backwards;
}

@keyframes w-chip-pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Hero 标题区：副标题与店名分层滑入；店名保留光晕呼吸 */
.app-hero__content > .app-hero__kicker {
  animation: w-hero-rise 0.68s var(--w-ease) 0.05s backwards;
}

.app-hero__content > .app-hero__venue {
  animation:
    w-hero-rise 0.68s var(--w-ease) 0.12s backwards,
    w-title-soft 5s ease-in-out 0.85s infinite alternate;
}

@keyframes w-hero-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-hero--compact {
  padding: clamp(1rem, 2.5vw, 1.5rem) 0;
}

.app-hero--compact .app-hero__venue {
  font-size: clamp(1.35rem, 4vw, 2.1rem);
}

.app-hero--compact .app-hero__blob {
  filter: blur(32px);
  opacity: 0.32;
}

.app-hero--compact .app-hero__blob--1 {
  width: min(48vw, 200px);
  height: min(48vw, 200px);
}

/* —— 主区：上卷「暖纸」承托内容 —— */
.app-sheet {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-top: -1.25rem;
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, var(--w-paper) 0%, var(--w-cream) 18%, #fffdfb 100%);
  border-radius: 1.75rem 1.75rem 0 0;
  box-shadow: 0 -12px 48px rgba(62, 39, 35, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  border: 1px solid var(--w-line2);
  border-bottom: none;
  animation: w-sheet-in 0.72s var(--w-ease) 0.06s backwards;
}

@keyframes w-sheet-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 992px) {
  .app-sheet {
    margin-top: -1.75rem;
    border-radius: 2rem 2rem 0 0;
  }
}

.app-main {
  flex: 1;
  width: 100%;
}

/* 与 Bootstrap container 并存：由 container 负责水平 gutter */
main.container-xl.app-main {
  max-width: 1200px;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

/* 级联入场：更柔和的弹跳感（排除 Bootstrap 模态，避免与 .fade 冲突导致遮罩卡死） */
.rm-animate-children > *:not(.modal) {
  animation: w-rise 0.58s var(--w-ease) backwards;
}

.rm-animate-children > .modal {
  animation: none !important;
}

@keyframes w-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rm-animate-children > *:nth-child(1) {
  animation-delay: 0.04s;
}
.rm-animate-children > *:nth-child(2) {
  animation-delay: 0.09s;
}
.rm-animate-children > *:nth-child(3) {
  animation-delay: 0.14s;
}
.rm-animate-children > *:nth-child(4) {
  animation-delay: 0.19s;
}
.rm-animate-children > *:nth-child(5) {
  animation-delay: 0.24s;
}
.rm-animate-children > *:nth-child(6) {
  animation-delay: 0.29s;
}
.rm-animate-children > *:nth-child(7) {
  animation-delay: 0.34s;
}
.rm-animate-children > *:nth-child(8) {
  animation-delay: 0.39s;
}
.rm-animate-children > *:nth-child(9) {
  animation-delay: 0.44s;
}
.rm-animate-children > *:nth-child(10) {
  animation-delay: 0.49s;
}
.rm-animate-children > *:nth-child(11) {
  animation-delay: 0.54s;
}
.rm-animate-children > *:nth-child(12) {
  animation-delay: 0.59s;
}

/* 横向表格：圆角承托，小屏更易扫读 */
.app-main .table-responsive {
  border-radius: var(--w-radius-sm);
  border: 1px solid var(--w-line2);
  background: rgba(255, 254, 251, 0.65);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.app-main .table-responsive .table {
  margin-bottom: 0;
}
  --bs-gutter-x: 1.25rem;
  --bs-gutter-y: 1.25rem;
}

@media (min-width: 992px) {
  .app-main .row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
  }
}

/* 页内标题 */
.app-page-head {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--w-line);
  animation: w-page-head-in 0.55s var(--w-ease) 0.08s backwards;
}

@keyframes w-page-head-in {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.app-page-title {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--w-ink);
}

.app-page-sub {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--w-muted) !important;
  max-width: 46rem;
  line-height: 1.55;
}

/* 卡片 */
.rm-card {
  border-radius: var(--w-radius) !important;
  border: 1px solid var(--w-line) !important;
  background: linear-gradient(165deg, #fffefb 0%, #fffaf5 100%) !important;
  box-shadow: 0 4px 20px rgba(62, 39, 35, 0.06), 0 1px 0 rgba(255, 255, 255, 0.9) inset !important;
  overflow: hidden;
  position: relative;
  transition: transform var(--w-t) var(--w-ease), box-shadow var(--w-t) var(--w-ease), border-color 0.3s ease;
}

.rm-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.5), transparent);
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 0.35s ease, transform 0.45s var(--w-ease);
}

.rm-card:hover {
  transform: translateY(-5px);
  border-color: rgba(251, 146, 60, 0.35) !important;
  box-shadow: 0 16px 40px rgba(194, 65, 12, 0.1), 0 1px 0 rgba(255, 255, 255, 1) inset !important;
}

.rm-card:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.rm-card .card-header {
  background: linear-gradient(90deg, rgba(255, 247, 237, 0.95), rgba(254, 243, 199, 0.35));
  border-bottom: 1px solid var(--w-line);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--w-ink2);
  padding: 0.85rem 1.15rem;
}

.rm-card .card-body {
  padding: 1.1rem 1.2rem;
}

.rm-card.rm-card--accent .card-header {
  background: linear-gradient(90deg, rgba(254, 243, 199, 0.85), rgba(255, 237, 213, 0.5));
  border-bottom-color: rgba(251, 146, 60, 0.25);
  color: #9a3412;
}

/* 统计卡 */
.rm-stat {
  border-radius: var(--w-radius) !important;
  border: 1px solid var(--w-line) !important;
  background: linear-gradient(160deg, #fffefb 0%, #fff7ed 100%) !important;
  box-shadow: 0 4px 18px rgba(62, 39, 35, 0.06) !important;
  position: relative;
  overflow: hidden;
  transition: transform var(--w-t) var(--w-bounce), box-shadow var(--w-t) var(--w-ease);
}

.rm-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
}

.rm-stat:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(194, 65, 12, 0.12) !important;
}

.rm-stat .text-muted {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--w-muted) !important;
}

.rm-stat--income::before {
  background: linear-gradient(180deg, #ea580c, #c2410c);
}

.rm-stat--expense::before {
  background: linear-gradient(180deg, #fb7185, #e11d48);
}

.rm-stat--profit::before {
  background: linear-gradient(180deg, #34d399, #059669);
}

.rm-stat--income .text-primary {
  color: #c2410c !important;
}

.rm-stat--expense .text-danger {
  color: #e11d48 !important;
}

.rm-text-profit {
  color: var(--w-leaf) !important;
}

/* 表格 */
.rm-table-wrap {
  border-radius: 0 0 var(--w-radius-sm) var(--w-radius-sm);
  overflow: auto;
  max-height: min(70vh, 560px);
  -webkit-overflow-scrolling: touch;
}

.table.rm-table {
  margin-bottom: 0;
  font-size: 0.88rem;
}

.table.rm-table thead th {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--w-muted);
  background: rgba(255, 247, 237, 0.98);
  border-bottom: 1px solid var(--w-line);
  padding: 0.65rem 0.85rem;
  position: sticky;
  top: 0;
  z-index: 2;
  white-space: nowrap;
}

.table.rm-table tbody td {
  padding: 0.58rem 0.85rem;
  border-color: var(--w-line2);
  vertical-align: middle;
}

.table.rm-table tbody tr {
  transition: background 0.28s ease;
}

.table.rm-table tbody tr:hover {
  background: rgba(254, 243, 199, 0.45);
}

.table-sticky thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(255, 251, 235, 0.98);
}

/* 表单 */
.form-control,
.form-select {
  border-radius: var(--w-radius-sm);
  border-color: rgba(139, 111, 94, 0.22);
  transition: border-color 0.25s ease, box-shadow 0.35s var(--w-ease);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(234, 88, 12, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(251, 146, 60, 0.2);
}

/* 按钮 */
.btn {
  font-weight: 700;
  border-radius: var(--w-radius-sm);
  transition: transform 0.22s var(--w-ease), box-shadow 0.35s var(--w-ease), filter 0.2s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.btn:active:not(:disabled) {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 50%, #fb923c 100%);
  border: none;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.35);
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.05);
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.4);
}

.btn-success {
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.22);
}

.btn-outline-primary {
  border-color: rgba(234, 88, 12, 0.45);
  color: #c2410c !important;
}

.btn-outline-primary:hover {
  background: rgba(255, 247, 237, 0.95);
}

.btn-sm {
  font-weight: 700;
}

/* Flash */
.app-flash {
  border: none;
  border-radius: var(--w-radius-sm);
  font-weight: 600;
  border-left: 4px solid;
}

.app-flash--success {
  background: linear-gradient(90deg, rgba(187, 247, 208, 0.5), rgba(255, 255, 255, 0.95));
  border-left-color: #22c55e;
  color: #166534;
}

.app-flash--danger {
  background: linear-gradient(90deg, rgba(254, 202, 202, 0.55), rgba(255, 255, 255, 0.96));
  border-left-color: #ef4444;
  color: #991b1b;
}

.app-flash--info {
  background: linear-gradient(90deg, rgba(254, 243, 199, 0.65), rgba(255, 255, 255, 0.96));
  border-left-color: #f59e0b;
  color: #92400e;
}

/* Modal */
.modal.fade .modal-dialog {
  transition: transform 0.5s var(--w-bounce);
  transform: translateY(28px) scale(0.94);
}

.modal.show .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-content {
  border-radius: var(--w-radius);
  border: 1px solid var(--w-line);
  background: linear-gradient(180deg, #fffefb 0%, #fffaf5 100%);
  box-shadow: 0 24px 56px rgba(62, 39, 35, 0.18);
}

.modal-header {
  border-bottom-color: var(--w-line);
}

.modal-footer {
  border-top-color: var(--w-line);
}

/* 页脚 */
.app-footer {
  margin-top: auto;
  padding: 1.35rem 0 calc(1.75rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.5), rgba(254, 243, 199, 0.25));
  border-top: 1px solid var(--w-line);
}

.app-footer__inner {
  text-align: center;
  font-size: 0.78rem;
  color: var(--w-muted);
  padding: 0 clamp(0.75rem, 3vw, 1.5rem);
}

.app-footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.45rem;
}

.app-footer__row--sub {
  margin-top: 0.45rem;
  font-size: 0.74rem;
}

.app-footer__venue {
  font-weight: 800;
  color: var(--w-ink);
  letter-spacing: 0.05em;
}

.app-footer__link {
  color: #c2410c !important;
  text-decoration: none;
  font-weight: 700;
}

.app-footer__link:hover {
  text-decoration: underline;
  color: #9a3412 !important;
}

.rm-money {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.rm-money--warn {
  color: #b45309 !important;
}

.rm-empty {
  padding: 2.25rem 1rem;
  text-align: center;
  color: var(--w-muted);
  font-size: 0.92rem;
}

.card-stat {
  border-left: 4px solid var(--bs-primary);
}

/* 安装 / 登录 窄页 */
.install-page {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* 登录 */
.rm-login-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.25rem) clamp(0.75rem, 3vw, 1.5rem) clamp(1.5rem, 5vw, 2.5rem);
  position: relative;
  min-height: min(62vh, 520px);
}

.rm-login-card {
  width: 100%;
  max-width: 420px;
  border-radius: var(--w-radius);
  border: 1px solid var(--w-line);
  background: rgba(255, 254, 251, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 48px rgba(62, 39, 35, 0.1);
  transition: transform 0.45s var(--w-ease), box-shadow 0.45s ease;
}

.rm-login-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 56px rgba(194, 65, 12, 0.12);
}

.rm-login-tag {
  text-align: center;
  font-size: 0.82rem;
  color: var(--w-muted);
  margin-bottom: 1.1rem;
}

.list-group-item {
  transition: background 0.25s ease;
}

.list-group-item:hover {
  background: rgba(254, 243, 199, 0.4);
}

@media (max-width: 991.98px) {
  .app-topbar__collapse {
    padding: 0.5rem 0 0.75rem;
    border-top: 1px solid rgba(255, 237, 213, 0.15);
    margin-top: 0.35rem;
    width: 100%;
  }

  .app-nav__list {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.06s !important;
  }

  body.app-body::before,
  .app-hero__blob,
  .app-hero__venue,
  .app-hero__pulse,
  .app-sheet,
  .app-hero__content > .app-hero__kicker,
  .app-hero__content > .app-hero__venue,
  .app-page-head {
    animation: none !important;
  }

  .app-hero__content > .app-hero__kicker,
  .app-hero__content > .app-hero__venue {
    opacity: 1 !important;
    transform: none !important;
  }

  .app-page-head {
    opacity: 1 !important;
    transform: none !important;
  }

  .rm-animate-children > * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .rm-card:hover,
  .rm-stat:hover,
  .btn:hover:not(:disabled) {
    transform: none;
  }
}
