/* =================================================================
   瑞迪大酒店 原型设计系统
   ================================================================= */

:root {
  /* 主色：酒店金 */
  --gold: #C9A961;
  --gold-light: #E5C97A;
  --gold-dark: #A88A45;
  --gold-bg: #2A2317;

  /* 中性色 */
  --black: #1A1A1A;
  --gray-900: #1F1F1F;
  --gray-800: #2C2C2C;
  --gray-700: #3A3A3A;
  --gray-500: #666;
  --gray-400: #999;
  --gray-300: #CCC;
  --gray-200: #E5E5E5;
  --gray-100: #F5F5F5;
  --white: #FFFFFF;

  /* 状态色 */
  --red: #E5454D;
  --orange: #FF8A3D;
  --green: #07C160;
  --blue: #1989FA;
  --purple: #845EC2;

  /* 文字 */
  --text-primary: #1A1A1A;
  --text-secondary: #666;
  --text-tertiary: #999;
  --text-inverse: #FFF;

  /* 背景 */
  --bg-page: #F4F4F4;
  --bg-card: #FFFFFF;
  --bg-mask: rgba(0, 0, 0, 0.55);

  /* 边框 */
  --border-light: #EEE;
  --border: #DDD;

  /* 圆角 */
  --r-sm: 8rpx;
  --r-md: 12rpx;
  --r-lg: 20rpx;
  --r-pill: 999rpx;

  /* 阴影 */
  --shadow-sm: 0 2rpx 8rpx rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4rpx 16rpx rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8rpx 32rpx rgba(0, 0, 0, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  background: #ECECEC;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; }
input, textarea, select { font-family: inherit; outline: none; }

/* 链接/卡片 hover 反馈 */
a[href]:hover { opacity: 0.85; }
a[href]:active { opacity: 0.7; }
.btn { transition: all 0.15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.btn:active { transform: translateY(0); }
.phone .tag { cursor: default; }
.phone a[href] { display: inline-block; }
.phone a.btn[href] { display: inline-flex; }

/* ============ 原型外壳 ============ */
.proto-shell {
  display: flex;
  min-height: 100vh;
}

.proto-sidebar {
  width: 240px;
  background: #1A1A1A;
  color: #E5E5E5;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.proto-brand {
  padding: 20px 16px;
  border-bottom: 1px solid #2C2C2C;
  display: flex;
  align-items: center;
  gap: 10px;
}

.proto-brand-logo {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #1A1A1A; font-size: 14px;
}

.proto-brand-name { font-size: 14px; font-weight: 600; color: var(--white); }
.proto-brand-sub { font-size: 11px; color: #888; margin-top: 2px; }

.proto-nav-section { padding: 12px 0; }
.proto-nav-title {
  padding: 8px 16px;
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.proto-nav-item {
  display: block;
  padding: 8px 16px 8px 20px;
  font-size: 13px;
  color: #C5C5C5;
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: all 0.15s;
}
.proto-nav-item:hover { color: var(--white); background: #2C2C2C; }
.proto-nav-item.active {
  color: var(--gold);
  background: #232323;
  border-left-color: var(--gold);
}
.proto-nav-sub { padding-left: 32px; font-size: 12px; }

.proto-main {
  flex: 1;
  padding: 24px 32px;
  min-width: 0;
}

.proto-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #DDD;
}
.proto-page-title { font-size: 20px; font-weight: 600; }
.proto-page-meta { font-size: 12px; color: var(--gray-500); }
.proto-page-tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  background: var(--gold-bg);
  color: var(--gold);
  border-radius: 4px;
  margin-left: 8px;
}

.proto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(390px, 1fr));
  gap: 32px;
  align-items: start;
}

.proto-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.proto-card-label {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 500;
}
.proto-card-label code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  color: var(--gray-400);
  background: var(--gray-100);
  padding: 2px 6px;
  border-radius: 3px;
}

/* ============ 手机模拟器 ============ */
.phone {
  width: 375px;
  height: 812px;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 0 0 8px #1A1A1A;
  position: relative;
  overflow: hidden;
}
.phone-statusbar {
  height: 28px;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  font-size: 12px;
  color: #FFF;
  font-weight: 600;
}
.phone-statusbar .icons {
  display: flex; gap: 4px; align-items: center;
}
.phone-statusbar .icons svg { width: 12px; height: 12px; }

.phone-navbar {
  height: 44px;
  background: var(--black);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 16px;
  font-weight: 500;
}
.phone-navbar .nav-left,
.phone-navbar .nav-right {
  position: absolute;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 13px;
}
.phone-navbar .nav-left { left: 0; }
.phone-navbar .nav-right { right: 0; }

.phone-body {
  height: calc(100% - 28px - 44px - 60px);
  overflow-y: auto;
  background: var(--white);
  position: relative;
}

.phone-tabbar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: #FFF;
  border-top: 1px solid var(--border-light);
  display: flex;
}
.phone-tabbar .tab {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-size: 10px;
  color: var(--gray-500);
  gap: 2px;
}
.phone-tabbar .tab .tab-icon { font-size: 20px; }
.phone-tabbar .tab.active { color: var(--gold); }

/* 深色首页 */
.phone.dark .phone-navbar { background: var(--black); }
.phone.dark .phone-body { background: linear-gradient(180deg, #1F1F1F 0%, #000 100%); }

/* ============ 通用UI ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.btn-primary { background: var(--gold); color: #1A1A1A; }
.btn-primary:hover { background: var(--gold-light); }
.btn-ghost { background: #FFF; color: var(--text-primary); border-color: var(--gray-300); }
.btn-danger { background: var(--red); color: #FFF; }
.btn-disabled { opacity: 0.5; pointer-events: none; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 14px 20px; font-size: 16px; }

.tag {
  display: inline-block;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--gray-100);
  color: var(--gray-500);
}
.tag-gold { background: rgba(201,169,97,0.12); color: var(--gold-dark); }
.tag-red { background: rgba(229,69,77,0.1); color: var(--red); }
.tag-green { background: rgba(7,193,96,0.1); color: var(--green); }
.tag-blue { background: rgba(25,137,250,0.1); color: var(--blue); }
.tag-orange { background: rgba(255,138,61,0.1); color: var(--orange); }

.badge {
  position: absolute;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--red);
  color: #FFF;
  font-size: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  min-width: 0; padding: 0;
}

/* 弹窗 */
.mask {
  position: absolute;
  inset: 0;
  background: var(--bg-mask);
  display: flex;
  align-items: flex-end;
  z-index: 10;
}
.dialog-bottom {
  width: 100%;
  background: #FFF;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 20px 16px 24px;
  position: relative;
}
.dialog-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 60px);
  background: #FFF;
  border-radius: var(--r-lg);
  padding: 20px;
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  color: var(--gray-400);
  font-size: 12px;
}
.empty-icon {
  width: 80px; height: 80px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  color: var(--gray-300);
  margin-bottom: 12px;
}

/* 滚动条美化 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 3px; }
::-webkit-scrollbar-track { background: transparent; }

/* 工具类 */
.flex { display: flex; }
.flex-1 { flex: 1; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.text-gold { color: var(--gold); }
.text-red { color: var(--red); }
.text-gray { color: var(--gray-500); }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.text-lg { font-size: 16px; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }
.p-12 { padding: 12px; } .p-16 { padding: 16px; } .p-24 { padding: 24px; }
.px-12 { padding-left: 12px; padding-right: 12px; }
.px-16 { padding-left: 16px; padding-right: 16px; }
.py-8 { padding-top: 8px; padding-bottom: 8px; }
.py-12 { padding-top: 12px; padding-bottom: 12px; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.rounded { border-radius: var(--r-md); }
.divider { height: 1px; background: var(--border-light); margin: 12px 0; }