/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif; background: #f5f6fa; color: #1a1a2e; }
/* 图标字体 */
.mi { font-family: 'Material Symbols Outlined'; font-size: inherit; vertical-align: middle; line-height: 1; font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; speak: never; font-style: normal; }
#app { height: 100vh; height: calc(var(--app-vh, 1vh) * 100); overflow: hidden; position: relative; max-width: 480px; margin: 0 auto; box-shadow: 0 0 40px rgba(0,0,0,0.15); background: #fff; }
.page { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: #fff; overflow: hidden; }
.page-enter { animation: pageFadeIn 0.2s ease; }
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }
.hidden { display: none !important; }

/* ===== 启动画面 ===== */
.splash { background: linear-gradient(135deg, #2c3e50 0%, #4a6741 100%); display: flex; align-items: center; justify-content: center; z-index: 100; }
.splash-logo { text-align: center; animation: fadeIn 0.8s ease; }
.splash-logo .logo-icon { font-size: 72px; margin-bottom: 16px; animation: bounce 1s ease infinite alternate; }
.splash-logo .logo-text { font-size: 36px; font-weight: 700; color: #fff; letter-spacing: 6px; }
.splash-logo .logo-sub { font-size: 14px; color: rgba(255,255,255,0.8); margin-top: 8px; letter-spacing: 2px; }
@keyframes bounce { from { transform: translateY(0); } to { transform: translateY(-8px); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ===== 入口选择页 ===== */
.entry-bg { position: absolute; top: 0; left: 0; right: 0; height: 55%; background: linear-gradient(135deg, #2c3e50 0%, #4a6741 100%); border-radius: 0 0 48px 48px; }
.entry-content { position: relative; height: 100%; display: flex; flex-direction: column; padding: 60px 24px 40px; }
.entry-header { text-align: center; margin-bottom: 48px; }
.entry-logo { font-size: 56px; margin-bottom: 12px; }
.entry-title { font-size: 32px; font-weight: 800; color: #fff; letter-spacing: 6px; }
.entry-subtitle { color: rgba(255,255,255,0.85); font-size: 14px; margin-top: 6px; letter-spacing: 1px; }
.entry-cards { display: flex; flex-direction: column; gap: 16px; }
.entry-card { background: #fff; border-radius: 20px; padding: 14px 20px; display: flex; align-items: center; gap: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.12); cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; min-height: 64px; }
.entry-card:active { transform: scale(0.97); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.card-icon { font-size: 36px; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 16px; flex-shrink: 0; }
.admin-card .card-icon { background: linear-gradient(135deg, #2c3e50, #4a6741); }
.member-card .card-icon { background: linear-gradient(135deg, #8b7355, #c9a96e); }
.card-info { flex: 1; }
.card-title { font-size: 18px; font-weight: 700; color: #1a1a2e; }
.card-desc { font-size: 12px; color: #888; margin-top: 4px; }
.card-arrow { font-size: 24px; color: #ccc; font-weight: 300; }
.entry-footer { text-align: center; color: rgba(26,26,46,0.35); font-size: 12px; margin-top: auto; }
.entry-admin-btn { display: block; margin: 16px auto 0; padding: 8px 32px; background: transparent; color: rgba(26,26,46,0.3); border: 1px solid rgba(26,26,46,0.12); border-radius: 20px; font-size: 13px; cursor: pointer; transition: all 0.2s; }
.entry-admin-btn:active { background: rgba(26,26,46,0.05); }
/* 管理员入口缩窄 */
.entry-admin-small .card-arrow { font-size: 20px; }
/* 入口页进入动画 */
.entry-animate .entry-logo { animation: entryFloat 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both; }
.entry-animate .entry-title { animation: entryFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.entry-animate .entry-subtitle { animation: entryFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both; }
.entry-animate .member-card { animation: entryFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both; }
.entry-animate .admin-card { animation: entryFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both; }
.entry-animate .entry-footer { animation: entryFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both; }
.entry-animate .entry-admin-btn { animation: entryFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both; }
@keyframes entryFloat { from { opacity: 0; transform: translateY(12px) scale(0.8); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes entryFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ===== 登录成功欢迎遮罩 ===== */
.welcome-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, #2c3e50 0%, #4a6741 50%, #3d5a3a 100%); z-index: 500; display: flex; align-items: center; justify-content: center; }
.welcome-content { text-align: center; animation: welcomeFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.welcome-icon { font-size: 64px; margin-bottom: 16px; animation: welcomeBounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both; }
.welcome-greeting { font-size: 22px; font-weight: 700; color: rgba(255,255,255,0.85); letter-spacing: 2px; animation: welcomeSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both; }
.welcome-name { font-size: 32px; font-weight: 800; color: #fff; margin-top: 8px; letter-spacing: 3px; animation: welcomeSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both; }
.welcome-sub { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 16px; letter-spacing: 4px; animation: welcomeSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both; }
.welcome-dots { display: flex; justify-content: center; gap: 6px; margin-top: 28px; animation: welcomeSlideUp 0.5s ease 0.9s both; }
.welcome-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.5); animation: welcomeDot 1.2s ease-in-out infinite; }
.welcome-dots span:nth-child(2) { animation-delay: 0.2s; }
.welcome-dots span:nth-child(3) { animation-delay: 0.4s; }
.welcome-overlay.fade-out { animation: welcomeFadeOut 0.5s cubic-bezier(0.4, 0, 1, 1) forwards; }
@keyframes welcomeFadeIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes welcomeFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes welcomeBounce { from { opacity: 0; transform: scale(0.3) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes welcomeSlideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes welcomeDot { 0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; } 40% { transform: scale(1); opacity: 1; } }

/* ===== 认证页 ===== */
.auth-page { height: 100%; overflow-y: auto; display: flex; flex-direction: column; }
.auth-header { padding: 56px 24px 32px; text-align: center; position: relative; }
.back-btn { position: absolute; left: 16px; top: 56px; background: rgba(255,255,255,0.2); border: none; color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; }
.auth-logo { font-size: 48px; margin-bottom: 12px; }
.auth-header h2 { font-size: 26px; font-weight: 700; color: #fff; }
.auth-header p { color: rgba(255,255,255,0.8); font-size: 14px; margin-top: 6px; }
.admin-theme .auth-header { background: linear-gradient(135deg, #2c3e50 0%, #4a6741 100%); border-radius: 0 0 32px 32px; }
.member-theme .auth-header { background: linear-gradient(135deg, #8b7355 0%, #c9a96e 100%); border-radius: 0 0 32px 32px; }
.auth-form { padding: 24px; flex: 1; }
/* 登录页入场动画 */
.auth-enter .auth-logo { animation: authFadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.auth-enter .auth-header h2 { animation: authFadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }
.auth-enter .auth-header p { animation: authFadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both; }
.auth-enter .auth-form { animation: authFadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both; }
@keyframes authFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.tab-switch { display: flex; background: #f0f0f5; border-radius: 12px; padding: 4px; margin-bottom: 24px; }
.tab-btn { flex: 1; padding: 10px; border: none; background: transparent; border-radius: 10px; font-size: 14px; font-weight: 500; color: #888; cursor: pointer; transition: all 0.2s; }
.tab-btn.active { background: #fff; color: #1a1a2e; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 14px 16px; border: 1.5px solid #e8e8f0; border-radius: 12px; font-size: 15px; color: #1a1a2e; background: #f8f8fc; outline: none; transition: border-color 0.2s, box-shadow 0.2s; font-family: inherit; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #4a6741; box-shadow: 0 0 0 3px rgba(74,103,65,0.1); background: #fff; }
.form-group input[type="date"], .form-group input[type="time"] { border: 2px solid #d0d0dc; font-size: 16px; min-height: 48px; }
.form-group input[type="date"]:focus, .form-group input[type="time"]:focus { border-color: #4a6741; box-shadow: 0 0 0 4px rgba(74,103,65,0.15); }
.form-group label { font-weight: 600; color: #333; margin-bottom: 4px; display: block; font-size: 13px; }
.form-group textarea { resize: vertical; min-height: 80px; }
.sms-row { display: flex; gap: 10px; }
.sms-row input { flex: 1; min-width: 0; }
.sms-row button { white-space: nowrap; padding: 0 16px; background: linear-gradient(135deg, #2c3e50, #4a6741); color: #fff; border: none; border-radius: 12px; font-size: 13px; font-weight: 600; cursor: pointer; transition: opacity 0.2s; }
.sms-row button:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== 按钮 ===== */
.btn-primary { width: 100%; padding: 15px; background: linear-gradient(135deg, #2c3e50, #4a6741); color: #fff; border: none; border-radius: 14px; font-size: 16px; font-weight: 700; cursor: pointer; letter-spacing: 1px; transition: opacity 0.2s, transform 0.1s; margin-top: 8px; }
.btn-primary:active { opacity: 0.9; transform: scale(0.98); }
.btn-secondary { padding: 12px 24px; background: #f0f0f5; color: #555; border: none; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-danger-outline { background: #fff; color: #c62828; border: 1.5px solid #ffcdd2; }
.btn-outline { padding: 10px 20px; background: transparent; color: #4a6741; border: 1.5px solid #4a6741; border-radius: 12px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.btn-outline:hover { background: #4a6741; color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 13px; width: auto; margin-top: 0; border-radius: 10px; }
.btn-danger { background: linear-gradient(135deg, #ff6b6b, #ee0979); }
.btn-warning { background: linear-gradient(135deg, #f7971e, #ffd200); }
.btn-success { background: linear-gradient(135deg, #56ab2f, #a8e063); }

/* ===== 布局 ===== */
.app-layout { height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.app-header { height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; background: #fff; border-bottom: 1px solid #f0f0f5; flex-shrink: 0; z-index: 10; }
.header-left { display: flex; align-items: center; gap: 8px; }
.header-logo { font-size: 22px; }
.header-title { font-size: 18px; font-weight: 700; color: #1a1a2e; line-height: 1; }
.header-right { display: flex; align-items: center; gap: 10px; }
.admin-name { font-size: 13px; color: #4a6741; font-weight: 600; }
.logout-btn { background: none; border: 1px solid #eee; border-radius: 8px; padding: 4px 10px; font-size: 12px; color: #999; cursor: pointer; }
.member-header { background: linear-gradient(135deg, #2c3e50 0%, #4a6741 100%); }
.member-header .header-title { color: #fff; }
.points-badge { display: flex; align-items: center; gap: 4px; background: rgba(255,255,255,0.2); border-radius: 20px; padding: 6px 12px; font-size: 13px; color: #fff; cursor: pointer; }
.points-icon { font-size: 14px; }
.app-main { flex: 1; overflow-y: auto; background: #f5f6fa; -webkit-overflow-scrolling: touch; }
.tab-enter { animation: pageFadeIn 0.15s ease; }
.bottom-nav { height: 65px; display: flex; background: #fff; border-top: 1px solid #f0f0f5; flex-shrink: 0; padding-bottom: env(safe-area-inset-bottom); z-index: 10; }
.nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; cursor: pointer; transition: all 0.2s; color: #999; border-radius: 12px; margin: 4px 2px; }
.nav-item.active { color: #fff; background: linear-gradient(135deg,#2c3e50,#4a6741); box-shadow: 0 2px 8px rgba(74,103,65,0.3); }
.nav-item.active .nav-icon { font-size: 24px; transform: scale(1.1); }
.nav-item.active .nav-label { font-weight: 700; color: #fff; }
.nav-item:active { opacity: 0.7; }
.nav-icon { font-size: 22px; transition: all 0.2s; }
.nav-label { font-size: 10px; font-weight: 500; transition: all 0.2s; }

/* ===== 看板 ===== */
.dashboard-grid { display: flex; gap: 10px; padding: 16px; }
.stat-card { flex: 1; min-width: 0; background: #fff; border-radius: 14px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.stat-card.purple { border-top: 3px solid #4a6741; }
.stat-card.green { border-top: 3px solid #56ab2f; }
.stat-card.orange { border-top: 3px solid #c9a96e; }
.stat-card.blue { border-top: 3px solid #2c3e50; }
.stat-icon { font-size: 22px; }
.stat-num { font-size: 20px; font-weight: 800; color: #1a1a2e; margin-top: 4px; }
.stat-label { font-size: 10px; color: #999; margin-top: 2px; white-space: nowrap; }
.section-card { background: #fff; border-radius: 20px; margin: 0 16px 16px; padding: 16px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-header h3 { font-size: 15px; font-weight: 700; color: #1a1a2e; }
.legend { display: flex; gap: 8px; flex-wrap: wrap; }
.legend-item { font-size: 11px; padding: 3px 8px; border-radius: 20px; font-weight: 500; }
.legend-item.available { background: #e8f5e9; color: #2e7d32; }
.legend-item.occupied { background: #fce4ec; color: #c62828; }
.legend-item.reserved { background: #fff3e0; color: #e65100; }
.legend-item.closed { background: #f5f5f5; color: #757575; }

/* 房间可视化网格 - 两室60% + 一室40% 并排 */
.room-visual-grid { display: block; }
.room-visual-wrapper { display: flex; gap: 10px; }
.room-group-box { border: 2px solid #4a6741; border-radius: 14px; padding: 10px 6px 6px; position: relative; min-width: 0; }
.room-group-box.two-room-box { flex: 3; border-color: #4a6741; background: rgba(74,103,65,0.03); }
.room-group-box.one-room-box { flex: 2; border-color: #c9a96e; background: rgba(201,169,110,0.05); }
.room-group-label { position: absolute; top: -10px; left: 10px; font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 10px; color: #fff; }
.two-room-box .room-group-label { background: #4a6741; }
.one-room-box .room-group-label { background: #c9a96e; }
.room-group-inner { display: flex; flex-direction: column; gap: 4px; }
.room-visual-row { display: flex; gap: 4px; }
.room-visual-cell { flex: 1; min-width: 0; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; cursor: pointer; transition: transform 0.15s; aspect-ratio: 1; }
.room-visual-cell:active { transform: scale(0.92); }
.room-visual-cell.available { background: #e8f5e9; color: #2e7d32; }
.room-visual-cell.occupied { background: #fce4ec; color: #c62828; }
.room-visual-cell.reserved { background: #fff3e0; color: #e65100; }
.room-visual-cell.closed { background: #f5f5f5; color: #bbb; }
.room-visual-cell.stopped { background: #ffebee; color: #b71c1c; }
.room-visual-cell .cell-num { font-size: 12px; font-weight: 700; }
.room-visual-cell .cell-guest { font-size: 9px; font-weight: 400; margin-top: 2px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 0.85; }
.room-visual-cell .cell-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-top: 2px; }

/* 闪烁高亮动画 */
@keyframes flash-hl { 0%,100% { box-shadow: none; } 50% { box-shadow: 0 0 0 3px rgba(74,103,65,0.5), 0 0 12px rgba(74,103,65,0.3); } }
.flash-highlight { animation: flash-hl 0.45s ease 2; border-radius: 10px; }

/* 取消订单动画 */
@keyframes cancelCard { 0% { transform: scale(1); opacity: 1; } 60% { transform: scale(0.7); opacity: 0.5; } 100% { transform: scale(0); opacity: 0; } }
.booking-cancelling { animation: cancelCard 0.35s ease-in forwards; pointer-events: none; }
/* 删除消失动画（微膨胀后加速缩小消失） */
@keyframes deleteCard { 0% { transform: scale(1); opacity: 1; } 25% { transform: scale(1.04); opacity: 0.85; } 100% { transform: scale(0.5); opacity: 0; } }
.booking-deleting { animation: deleteCard 0.4s cubic-bezier(0.4, 0, 1, 1) forwards; pointer-events: none; }
/* 筛选标签闪烁（2次） */
@keyframes tabPulse { 0%,100% { transform: scale(1); box-shadow: none; } 50% { transform: scale(1.06); box-shadow: 0 0 0 6px rgba(74,103,65,0.3); } }
.filter-tab-flash { animation: tabPulse 0.35s ease 2; background: #4a6741 !important; color: #fff !important; border-color: #4a6741 !important; }

/* 房历行高亮 */
#calendar-tbody tr.highlight-row td { background: rgba(74,103,65,0.08); }
#calendar-tbody tr.highlight-row .room-num-cell button { background: linear-gradient(135deg,#2c3e50,#4a6741); color: #fff; }

/* ===== 房历页面 ===== */
.calendar-page { height: 100%; display: flex; flex-direction: column; background: #f5f6fa; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #fff; border-bottom: 1px solid #f0f0f5; flex-shrink: 0; }
.calendar-toolbar h3 { font-size: 16px; font-weight: 700; }
.calendar-nav { display: flex; align-items: center; gap: 12px; }
.calendar-nav-btn { width: 32px; height: 32px; border: none; border-radius: 8px; background: #f0f0f5; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #4a6741; }
.calendar-nav-btn:active { background: #e0e0e0; }
.calendar-month-label { font-size: 17px; font-weight: 700; color: #1a1a2e; min-width: 100px; text-align: center; }
.calendar-container { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
.calendar-scroll-wrapper { flex: 1; overflow-x: auto; overflow-y: auto; -webkit-overflow-scrolling: touch; position: relative; }
.calendar-scroll-wrapper::-webkit-scrollbar { height: 4px; width: 4px; }
.calendar-scroll-wrapper::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }
.calendar-table { border-collapse: collapse; min-width: 100%; }
.calendar-table th { position: sticky; top: 0; z-index: 10; background: #fff; padding: 8px 4px; font-size: 11px; font-weight: 600; color: #888; text-align: center; border-bottom: 2px solid #f0f0f5; white-space: nowrap; min-width: 68px; }
.calendar-table th.today-col { color: #fff; background: #4a6741; }
.calendar-table th.room-header { position: sticky; left: 0; z-index: 20; min-width: 56px; width: 56px; background: #fff; border-right: 2px solid #f0f0f5; }
.calendar-table th.today-col.room-header { background: #4a6741; color: #fff; }
.calendar-table td { border: 1px solid #f0f0f5; padding: 4px 2px; text-align: center; vertical-align: top; min-width: 68px; height: 64px; font-size: 10px; }
/* 周末列高亮（周五、周六、周日） */
.calendar-table th.weekend-col { background: #fef7e4; }
.calendar-table th.weekend-col.today-col { background: #4a6741; }
/* 周分隔线（周一左侧，与分组分隔线一致） */
.calendar-table th.week-start-col { border-left: 2px solid #d0d8cc !important; }
.calendar-table td.week-start-cell { border-left: 2px solid #d0d8cc !important; }
.calendar-table td.room-num-cell { position: sticky; left: 0; z-index: 5; background: #fff; border-right: 2px solid #f0f0f5; padding: 4px 6px; vertical-align: middle; text-align: center; }
.calendar-table td.room-num-cell button { background: linear-gradient(135deg, #2c3e50, #4a6741); color: #fff; border: none; border-radius: 8px; padding: 6px 10px; font-size: 13px; font-weight: 700; cursor: pointer; transition: opacity 0.2s; }
.calendar-table td.room-num-cell button.two-room-btn { background: linear-gradient(135deg, #2c3e50, #4a6741); }
.calendar-table td.room-num-cell button.one-room-btn { background: linear-gradient(135deg, #8b7355, #c9a96e); }
/* 房历行分组背景 */
.calendar-table tr.two-room-row td { border-left-color: rgba(74,103,65,0.15); }
.calendar-table tr.one-room-row td { border-left-color: rgba(201,169,110,0.15); }
.calendar-table tr.one-room-row td.room-num-cell button { background: linear-gradient(135deg, #8b7355, #c9a96e); }
/* 房间列表分组分隔线 */
.room-group-divider { display: flex; align-items: center; gap: 12px; padding: 4px 0; margin-top: 4px; }
.room-group-divider:first-child { margin-top: 0; }
.room-group-divider-tag { font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 20px; white-space: nowrap; }
.room-group-divider-tag.two-room { background: linear-gradient(135deg, #2c3e50, #4a6741); color: #fff; }
.room-group-divider-tag.one-room { background: linear-gradient(135deg, #8b7355, #c9a96e); color: #fff; }
.calendar-table td.room-num-cell button:active { opacity: 0.7; }

/* 批量管理弹窗 */
.batch-room-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 12px; background: linear-gradient(135deg, #2c3e5010, #4a674110); border-radius: 12px; }
.batch-room-header .room-number-badge { width: 40px; height: 40px; font-size: 12px; }
.batch-room-header .room-name { font-size: 16px; font-weight: 700; }
.batch-room-header .room-meta { font-size: 12px; color: #999; }
.batch-actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.batch-action-btn { padding: 14px 10px; border: 2px solid #e8e8f0; border-radius: 12px; background: #fff; cursor: pointer; text-align: center; transition: all 0.2s; }
.batch-action-btn:active { transform: scale(0.97); }
.batch-action-btn .action-icon { font-size: 24px; margin-bottom: 4px; }
.batch-action-btn .action-label { font-size: 13px; font-weight: 600; color: #1a1a2e; }
.batch-action-btn .action-desc { font-size: 11px; color: #999; margin-top: 2px; }
.batch-action-btn.btn-open-all { border-color: #c8e6c9; background: #e8f5e920; }
.batch-action-btn.btn-close-all { border-color: #ffcdd2; background: #fce4ec20; }
.batch-action-btn.btn-open-month { border-color: #c8e6c9; background: #e8f5e920; }
.batch-action-btn.btn-close-month { border-color: #ffcdd2; background: #fce4ec20; }
.batch-date-range { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.batch-date-range input[type="date"] { flex: 1; padding: 10px 12px; border: 2px solid #d0d0dc; border-radius: 10px; font-size: 14px; min-height: 44px; }
.batch-date-range span { color: #999; font-size: 14px; }
.batch-apply-row { display: flex; gap: 8px; }
.batch-apply-row button { flex: 1; }
.calendar-cell { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 6px; font-size: 10px; gap: 2px; cursor: pointer; position: relative; }
.calendar-cell.available-cell { background: #e8f5e9; }
.calendar-cell.occupied-cell { background: #fce4ec; }
.calendar-cell.reserved-cell { background: #fff3e0; }
.calendar-cell.closed-cell { background: #f5f5f5; color: #bbb; }
.calendar-cell.stopped-cell { background: #ffebee; color: #b71c1c; }
.calendar-cell .cell-status { font-size: 11px; font-weight: 700; }
.calendar-cell .cell-guest { font-size: 9px; color: #333; font-weight: 600; max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-cell .cell-nights { font-size: 9px; color: #555; font-weight: 600; }
.calendar-cell .cell-actions { display: flex; gap: 2px; margin-top: 2px; }
.calendar-cell .cell-actions button { border: none; border-radius: 4px; padding: 2px 6px; font-size: 9px; font-weight: 600; cursor: pointer; }
.calendar-cell .btn-cell-open { background: #e8f5e9; color: #2e7d32; }
.calendar-cell .btn-cell-close { background: #fce4ec; color: #c62828; }
.calendar-cell .btn-cell-open:active, .calendar-cell .btn-cell-close:active { opacity: 0.7; }
.cell-pricing { font-size: 9px; color: #c9a96e; font-weight: 700; margin-top: 2px; text-align: center; }
.cell-pricing.has-discount { color: #2e7d32; }

/* ===== 房间列表（管理员）===== */
.section-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 16px; background: #fff; border-bottom: 1px solid #f0f0f5; }
.section-toolbar h3 { font-size: 15px; font-weight: 700; }
.room-list { padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.room-item { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04); }
.room-item-header { padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; }
.room-item-left { display: flex; align-items: center; gap: 10px; }
.room-number-badge { background: linear-gradient(135deg, #2c3e50, #4a6741); color: #fff; border-radius: 10px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.room-item-info .room-name { font-size: 15px; font-weight: 700; color: #1a1a2e; }
.room-item-info .room-meta { font-size: 12px; color: #999; margin-top: 2px; }
.room-status-tag { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.tag-available { background: #e8f5e9; color: #2e7d32; }
.tag-occupied { background: #fce4ec; color: #c62828; }
.tag-reserved { background: #fff3e0; color: #e65100; }
.tag-closed { background: #f5f5f5; color: #757575; }
.room-item-actions { padding: 10px 14px; border-top: 1px solid #f5f5f5; display: flex; gap: 8px; flex-wrap: wrap; }
.action-btn { padding: 7px 14px; border: none; border-radius: 8px; font-size: 12px; font-weight: 600; cursor: pointer; transition: opacity 0.2s; }
.action-btn:active { opacity: 0.7; }
.action-open { background: #e8f5e9; color: #2e7d32; }
.action-close { background: #fce4ec; color: #c62828; }
.action-edit { background: #e3f2fd; color: #1565c0; }
.action-delete { background: #fce4ec; color: #c62828; }
.action-checkin { background: #e8f5e9; color: #2e7d32; }
.action-checkout { background: #fff3e0; color: #e65100; }

/* ===== 预约列表 ===== */
.filter-bar { padding: 12px 16px; background: #fff; border-bottom: 1px solid #f0f0f5; }
.filter-bar select { width: 100%; padding: 10px 14px; border: 1.5px solid #e8e8f0; border-radius: 10px; font-size: 14px; background: #f8f8fc; }
.booking-list { padding: 12px; display: flex; flex-direction: column; gap: 12px; }
/* 日期分隔线 */
.date-divider { display: flex; align-items: center; gap: 12px; padding: 4px 0; margin-top: 8px; }
.date-divider:first-child { margin-top: 0; }
.date-divider span { background: linear-gradient(135deg, #4a6741, #2c3e50); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 20px; white-space: nowrap; }
/* 分页 */
.pagination-bar { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px; }
.pagination-bar button { min-width: 36px; height: 36px; border: 1.5px solid #e0e0e0; border-radius: 10px; background: #fff; font-size: 13px; font-weight: 600; color: #555; cursor: pointer; transition: all 0.15s; }
.pagination-bar button.active { background: #4a6741; border-color: #4a6741; color: #fff; }
.pagination-bar button:disabled { opacity: 0.4; cursor: not-allowed; }
.pagination-bar .page-info { font-size: 12px; color: #999; margin: 0 8px; }
.booking-actions { display: flex; gap: 8px; margin-top: 10px; justify-content: flex-end; flex-wrap: wrap; }
.booking-actions button { padding: 7px 14px; border: none; border-radius: 8px; font-size: 12px; font-weight: 600; cursor: pointer; }
.booking-card { background: #fff; border-radius: 16px; padding: 14px; box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04); }
.booking-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; gap: 8px; }
.booking-card-header > div:first-child { flex: 1; min-width: 0; }
.booking-room { font-size: 15px; font-weight: 700; color: #1a1a2e; }
.booking-member { font-size: 12px; color: #999; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.booking-status-tag { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.booking-id { font-size: 10px; color: #bbb; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex-shrink: 1; }
.status-pending { background: #fff3e0; color: #e65100; }
.status-confirmed { background: #fff3e0; color: #e65100; }
.status-checked_in { background: #fce4ec; color: #c62828; }
.status-completed { background: #e3f2fd; color: #1565c0; }
.status-cancelled { background: #f5f5f5; color: #757575; }
.booking-dates { font-size: 13px; color: #555; margin-bottom: 8px; }
.booking-points { font-size: 13px; color: #c9a96e; font-weight: 600; }
.booking-footer-row { display: flex; justify-content: space-between; align-items: center; }

/* 折叠订单（所有订单可折叠） */
.booking-card-folded .booking-card-detail { display: none; }
.booking-card-folded .toggle-collapse { display: none; }
.booking-card-folded.expanded .booking-folded-row { display: none; }
.booking-card-folded.expanded .booking-card-detail { display: block; animation: fadeIn 0.15s ease; }
.booking-card-folded.expanded .booking-card-detail .toggle-collapse { display: inline; }
.booking-card-detail .booking-card-header { border-bottom: 1px solid #f0f0f5; padding-bottom: 10px; }
.booking-room .folded-room { margin-right: 6px; }
.booking-folded-row { display: flex; align-items: center; justify-content: space-between; cursor: pointer; padding: 0; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.folded-left { display: flex; align-items: center; gap: 10px; font-size: 13px; flex: 1; min-width: 0; overflow: hidden; }
.folded-room { display: inline-block; background: linear-gradient(135deg, #2c3e50, #4a6741); color: #fff; border-radius: 6px; padding: 2px 8px; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.folded-member { font-weight: 700; font-size: 15px; color: #1a1a2e; flex-shrink: 0; }
.folded-date { color: #1a1a2e; flex-shrink: 0; font-weight: 700; }
.folded-nights { color: #1a1a2e; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.folded-points { color: #c9a96e; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.folded-id { font-size: 10px; color: #bbb; flex-shrink: 0; }
.folded-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.folded-toggle { color: #4a6741; font-size: 12px; padding: 2px 10px; border: 1px solid #4a6741; border-radius: 12px; cursor: pointer; }

/* ===== 会员列表 ===== */
.search-bar { padding: 12px 16px; background: #fff; border-bottom: 1px solid #f0f0f5; }
.search-bar input { width: 100%; padding: 10px 14px; border: 1.5px solid #e8e8f0; border-radius: 10px; font-size: 14px; background: #f8f8fc; }
.member-list { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.member-card { background: #fff; border-radius: 16px; padding: 14px; display: flex; align-items: center; gap: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); cursor: pointer; transition: transform 0.15s; }
.member-card:active { transform: scale(0.98); }
.member-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #2c3e50, #4a6741); display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; flex-shrink: 0; }
.member-info { flex: 1; }
.member-name { font-size: 15px; font-weight: 700; color: #1a1a2e; }
.member-phone { font-size: 12px; color: #999; margin-top: 2px; }
.member-points-badge { background: linear-gradient(135deg, #c9a96e, #e8d5a3); color: #fff; border-radius: 20px; padding: 4px 10px; font-size: 12px; font-weight: 700; }
.member-status-tag { padding: 3px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; margin-top: 4px; display: inline-block; }
.member-active { background: #e8f5e9; color: #2e7d32; }
.member-inactive { background: #fce4ec; color: #c62828; }

/* ===== 会员端首页 ===== */
.hero-banner { background: linear-gradient(135deg, #2c3e50 0%, #4a6741 100%); padding: 20px 16px; }
.banner-text { display: flex; align-items: center; justify-content: space-between; }
.banner-greeting { font-size: 20px; font-weight: 700; color: #fff; }
.banner-sub { font-size: 13px; color: rgba(255,255,255,0.8); margin-top: 4px; }
.banner-clock { background: rgba(255,255,255,0.15); backdrop-filter: blur(6px); border-radius: 14px; padding: 8px 14px; text-align: center; color: #fff; min-width: 120px; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.2); }
.banner-search { margin-top: 14px; }
.banner-search input { width: 100%; padding: 12px 16px; border: none; border-radius: 12px; font-size: 14px; background: rgba(255,255,255,0.95); outline: none; }
.date-quick-bar { display: flex; gap: 8px; margin-top: 14px; }
.date-quick-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 10px 16px; background: rgba(255,255,255,0.92); border-radius: 12px; font-size: 14px; cursor: pointer; white-space: nowrap; }
.date-quick-btns { display: flex; gap: 4px; flex-shrink: 0; }
.date-nav-btn { padding: 10px 14px; border: none; border-radius: 12px; font-size: 13px; background: rgba(255,255,255,0.92); cursor: pointer; color: #4a6741; font-weight: 600; white-space: nowrap; }
.date-nav-btn:active { background: rgba(255,255,255,0.7); }
/* 日期选择器 */
.date-selector { padding: 0 16px 8px; }
.date-selector-inner { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: linear-gradient(135deg, #2c3e50, #4a6741); border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); cursor: pointer; }
.date-selector-inner:active { background: #f8f8fc; }
.date-selector .date-icon { font-size: 18px; }
.date-selector .date-text { flex: 1; font-size: 13px; color: #fff; font-weight: 600; }
.date-selector .date-arrow { font-size: 18px; color: rgba(255,255,255,0.8); }
.filter-tabs { display: flex; gap: 8px; padding: 14px 16px; background: #fff; overflow-x: auto; -webkit-overflow-scrolling: touch; border-bottom: 1px solid #f0f0f5; }
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab { white-space: nowrap; padding: 8px 18px; border: 1.5px solid #e0e0e0; border-radius: 20px; font-size: 13px; font-weight: 500; background: #fff; color: #888; cursor: pointer; transition: all 0.2s; }
.filter-tab.active { background: #4a6741; border-color: #4a6741; color: #fff; font-weight: 600; }
.member-room-list { padding: 12px; display: flex; flex-direction: column; gap: 14px; }
.member-room-card { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.08); cursor: pointer; transition: transform 0.2s; }
.member-room-card:active { transform: scale(0.98); }
.room-card-image { height: 180px; position: relative; overflow: hidden; }
.room-card-image img { width: 100%; height: 100%; object-fit: cover; }
.room-card-image-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #4a674120, #2c3e5020); display: flex; align-items: center; justify-content: center; font-size: 48px; }
.room-card-badge { position: absolute; top: 10px; right: 10px; }
.room-card-body { padding: 14px; }
.room-card-title { font-size: 17px; font-weight: 700; color: #1a1a2e; }
.room-card-type { font-size: 12px; color: #999; margin-top: 3px; }
.room-card-desc { font-size: 13px; color: #666; margin-top: 8px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.room-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid #f5f5f5; }
.room-card-points { font-size: 15px; font-weight: 700; color: #c9a96e; }
.room-card-points .mi { color: #c9a96e; }
.room-card-points span { font-size: 12px; font-weight: 400; color: #999; }

/* ===== 房间详情 ===== */
.detail-back-btn { position: absolute; top: 0; left: 0; z-index: 20; background: rgba(255,255,255,0.9); border: none; padding: 14px 20px; font-size: 16px; color: #4a6741; font-weight: 600; cursor: pointer; backdrop-filter: blur(4px); border-radius: 0 0 16px 0; }
#room-detail-content { height: 100%; overflow-y: auto; padding-top: 0; }
.detail-gallery { height: 260px; background: #f5f5f5; position: relative; overflow: hidden; }
.detail-gallery img { width: 100%; height: 100%; object-fit: cover; }
.detail-gallery-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #4a674120, #2c3e5020); display: flex; align-items: center; justify-content: center; font-size: 64px; }
.gallery-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.gallery-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.5); }
.gallery-dot.active { background: #fff; width: 18px; border-radius: 3px; }
.detail-body { padding: 20px 16px; }
.detail-room-title { font-size: 22px; font-weight: 800; color: #1a1a2e; }
.detail-room-type { display: inline-block; background: #e3f2fd; color: #1565c0; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; margin-top: 8px; }
.detail-points { font-size: 28px; font-weight: 800; color: #c9a96e; margin: 16px 0 4px; }
.detail-points-sub { font-size: 13px; color: #999; }
.detail-section { margin-top: 20px; }
.detail-section h4 { font-size: 15px; font-weight: 700; color: #1a1a2e; margin-bottom: 10px; }
.detail-desc { font-size: 14px; color: #555; line-height: 1.7; }
.detail-facilities { display: flex; flex-wrap: wrap; gap: 8px; }
.facility-tag { padding: 6px 14px; background: #f5f6fa; border-radius: 20px; font-size: 12px; color: #555; }
.detail-book-btn { margin: 24px 0 0; }
.video-container { width: 100%; border-radius: 12px; overflow: hidden; background: #000; }
.video-container video { width: 100%; max-height: 200px; }

/* ===== 个人中心 ===== */
.profile-header { background: linear-gradient(135deg, #2c3e50 0%, #4a6741 100%); padding: 32px 20px; display: flex; align-items: center; gap: 16px; }
.profile-avatar { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 28px; border: 3px solid rgba(255,255,255,0.5); }
.profile-name { font-size: 20px; font-weight: 700; color: #fff; }
.profile-phone { font-size: 13px; color: rgba(255,255,255,0.8); margin-top: 4px; }
.points-card { margin: 16px; background: linear-gradient(135deg, #c9a96e, #e8d5a3); border-radius: 20px; padding: 20px; display: flex; align-items: center; justify-content: space-between; }
.points-value { font-size: 36px; font-weight: 800; color: #fff; }
.points-label { font-size: 13px; color: rgba(255,255,255,0.85); margin-top: 2px; }
.points-actions { display: flex; flex-direction: column; gap: 8px; }
.points-card .btn-outline { border-color: rgba(255,255,255,0.7); color: #fff; background: rgba(255,255,255,0.15); font-size: 12px; padding: 8px 16px; }
.points-card .btn-outline:hover { background: rgba(255,255,255,0.3); }
.profile-menu { margin: 0 16px; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.menu-item { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid #f5f5f5; cursor: pointer; font-size: 14px; color: #1a1a2e; transition: background 0.15s; }
.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: #f5f6fa; }
.menu-item.danger { color: #e53935; }
.menu-arrow { color: #ccc; font-size: 18px; }
.page-title-bar { padding: 16px; background: #fff; border-bottom: 1px solid #f0f0f5; }
.page-title-bar h3 { font-size: 16px; font-weight: 700; }

/* ===== 充值选项 ===== */
.recharge-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.recharge-option { border: 2px solid #e8e8f0; border-radius: 14px; padding: 14px; text-align: center; cursor: pointer; transition: all 0.2s; position: relative; overflow: hidden; }
.recharge-option.selected { border-color: #4a6741; background: linear-gradient(135deg, #4a674110, #2c3e5010); }
.recharge-points { font-size: 16px; font-weight: 700; color: #1a1a2e; }
.recharge-price { font-size: 20px; font-weight: 800; color: #4a6741; margin-top: 4px; }
.recharge-tag { position: absolute; top: 0; right: 0; background: linear-gradient(135deg, #c9a96e, #e8d5a3); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 0 12px 0 10px; }

/* ===== 积分记录 ===== */
.points-history-list { display: flex; flex-direction: column; gap: 10px; }
.points-history-item { display: flex; align-items: center; justify-content: space-between; padding: 12px; background: #f8f8fc; border-radius: 12px; }
.points-history-info .points-history-title { font-size: 14px; font-weight: 600; color: #1a1a2e; }
.points-history-info .points-history-time { font-size: 11px; color: #999; margin-top: 3px; }
.points-change { font-size: 16px; font-weight: 700; }
.points-add { color: #56ab2f; }
.points-minus { color: #e53935; }

/* ===== 弹窗 ===== */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 200; backdrop-filter: blur(2px); }
.modal { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; background: #fff; border-radius: 24px 24px 0 0; z-index: 201; max-height: 90vh; display: flex; flex-direction: column; animation: slideUp 0.3s ease; }
@keyframes slideUp { from { transform: translateX(-50%) translateY(100%); } to { transform: translateX(-50%) translateY(0); } }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 16px; border-bottom: 1px solid #f0f0f5; flex-shrink: 0; }
.modal-header h3 { font-size: 17px; font-weight: 700; }
.modal-close { background: #f0f0f5; border: none; width: 32px; height: 32px; border-radius: 50%; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #888; }
.modal-body { padding: 16px 20px; overflow-y: auto; flex: 1; }
.modal-footer { padding: 12px 20px 20px; display: flex; gap: 10px; flex-shrink: 0; border-top: 1px solid #f0f0f5; }
.modal-footer .btn-primary { margin-top: 0; }
.modal-footer .btn-secondary { flex-shrink: 0; }

/* ===== Toast ===== */
.toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, rgba(44,62,80,0.9), rgba(74,103,65,0.9)); color: #fff; padding: 10px 20px; border-radius: 20px; font-size: 14px; z-index: 300; white-space: nowrap; transition: opacity 0.25s ease; backdrop-filter: blur(4px); pointer-events: none; }
.toast.hidden { opacity: 0; }
.toast.success { background: linear-gradient(135deg, rgba(44,62,80,0.9), rgba(74,103,65,0.9)); }
.toast.error { background: rgba(198,40,40,0.85); }

/* ===== 会员详情弹窗内容 ===== */
.member-detail-info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.detail-info-item { background: #f8f8fc; border-radius: 12px; padding: 12px; }
.detail-info-label { font-size: 11px; color: #999; }
.detail-info-value { font-size: 15px; font-weight: 700; color: #1a1a2e; margin-top: 4px; }
.points-ops { display: flex; gap: 8px; margin-top: 8px; }
.points-ops button { flex: 1; padding: 10px; border: none; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; }

/* ===== 空状态 ===== */
.empty-state { text-align: center; padding: 48px 24px; color: #bbb; }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state .empty-text { font-size: 14px; }

/* ===== 加载动画 ===== */
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: flex; align-items: center; justify-content: center; padding: 32px; }
.loading::after { content: ''; width: 28px; height: 28px; border: 3px solid #e0e0f0; border-top-color: #4a6741; border-radius: 50%; animation: spin 0.7s linear infinite; }

/* 确认弹窗 */
.confirm-content { text-align: center; padding: 16px 0; }
.confirm-icon { font-size: 48px; margin-bottom: 12px; }
.confirm-title { font-size: 17px; font-weight: 700; color: #1a1a2e; margin-bottom: 8px; }
.confirm-desc { font-size: 14px; color: #888; line-height: 1.5; }
.confirm-desc strong { color: #1a1a2e; }

/* 折扣标签 */
.discount-tag { display: inline-block; background: linear-gradient(135deg, #c9a96e, #e8d5a3); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; margin-left: 6px; vertical-align: middle; }
.discount-line-through { text-decoration: line-through; color: #999; font-size: 13px; }

/* 图片走廊 */
.image-gallery { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.image-gallery::-webkit-scrollbar { display: none; }
.gallery-thumb { flex-shrink: 0; width: 80px; height: 60px; border-radius: 8px; overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: border-color 0.2s; }
.gallery-thumb.active { border-color: #4a6741; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ===== 自定义日期选择器 ===== */
.dp-header { background: linear-gradient(135deg, #2c3e50, #4a6741); }
.dp-header h3 { color: #fff; }
.dp-header .modal-close { background: rgba(255,255,255,0.2); color: #fff; }
.dp-body { padding: 12px 16px 4px !important; overflow: hidden; user-select: none; -webkit-user-select: none; }
.datepicker-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dp-nav-btn { width: 40px; height: 40px; border: none; border-radius: 12px; background: #f0f0f5; font-size: 22px; color: #4a6741; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.dp-nav-btn:active { background: #e0e0e0; }
.dp-month-label { font-size: 18px; font-weight: 700; color: #1a1a2e; min-width: 120px; text-align: center; }
.dp-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 6px; }
.dp-weekdays span { text-align: center; font-size: 12px; font-weight: 600; color: #999; padding: 4px 0; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.dp-cell { aspect-ratio: auto; min-height: 48px; padding: 2px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; color: #1a1a2e; cursor: pointer; transition: background 0.15s, transform 0.1s; position: relative; }
.dp-cell:active { transform: scale(0.92); }
.dp-cell.dp-other { color: #d0d0d0; cursor: default; }
.dp-cell.dp-other:active { transform: none; }
.dp-cell.dp-current:hover { background: #f0f0f5; }
.dp-cell.dp-today { font-weight: 800; color: #4a6741; }
.dp-cell.dp-today::after { content: ''; position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: #4a6741; }
.dp-cell.dp-selected { background: linear-gradient(135deg, #2c3e50, #4a6741) !important; color: #fff !important; font-weight: 700; box-shadow: 0 2px 8px rgba(74,103,65,0.3); }
.dp-cell.dp-selected::after { display: none; }
.dp-cell.dp-in-range { background: #e8f5e9 !important; color: #2e7d32 !important; font-weight: 600; }
.dp-cell.dp-disabled { color: #ddd; cursor: not-allowed; }
.dp-cell.dp-disabled:active { transform: none; }
.dp-cell.dp-booked { background: rgba(255, 152, 0, 0.12); color: #e65100; cursor: not-allowed; }
.dp-cell.dp-booked:active { transform: none; }
.dp-cell.dp-conflict-range { background: rgba(198, 40, 40, 0.25) !important; color: #b71c1c; cursor: not-allowed; }
.dp-cell.dp-conflict-range:active { transform: none; }
.dp-cell.dp-stopped { background: rgba(198, 40, 40, 0.1); color: #b71c1c; }
.dp-cell.dp-stopped:active { transform: none; }
.dp-cell.dp-closed { background: #f0f0f0; color: #999; }
.dp-cell.dp-closed:active { transform: none; }
.dp-stopped-label { display: block; font-size: 8px; line-height: 1; color: #c62828; margin-top: 1px; }
.dp-day-label { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; font-size: 9px; font-weight: 700; line-height: 1; letter-spacing: 0; white-space: nowrap; }
/* 日期显示字段（替代原生 input） */
.dp-field { width: 100%; padding: 10px; border: 2px solid #d0d0dc; border-radius: 10px; font-size: 14px; min-height: 44px; display: flex; align-items: center; cursor: pointer; background: #fff; color: #1a1a2e; font-weight: 500; transition: border-color 0.2s; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%234a6741' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.dp-field:active { border-color: #4a6741; }
.dp-footer { margin-top: 12px; padding-top: 10px; border-top: 1px solid #f0f0f5; min-height: 50px; }
/* 日期范围选择信息 */
.dp-range-info { display: flex; align-items: center; justify-content: center; gap: 12px; }
.dp-range-item { text-align: center; padding: 6px 16px; border-radius: 10px; background: #f8f8fc; min-width: 70px; }
.dp-range-item.dp-range-active { background: linear-gradient(135deg, #4a674110, #2c3e5010); border: 1.5px solid #4a6741; }
.dp-range-label { font-size: 11px; color: #999; font-weight: 500; }
.dp-range-value { font-size: 16px; font-weight: 700; color: #1a1a2e; margin-top: 2px; }
.dp-range-arrow { font-size: 18px; color: #ccc; }
.dp-range-nights { background: linear-gradient(135deg, #c9a96e, #e8d5a3); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; white-space: nowrap; }

/* 响应式 PC */
@media (min-width: 481px) {
  #app { box-shadow: 0 0 60px rgba(0,0,0,0.2); }
  .modal { max-width: 480px; }
}
