/* =========================
   主题变量
   ========================= */
:root {
  --bg: #0b1020;
  --card: #121a2b;
  --card-strong: #0f1628;
  --card-soft: rgba(18, 26, 43, 0.85);
  --muted: #8aa0c7;
  --text: #e6eefc;
  --accent: #4f8cff;
  --accent2: #00d4ff;
  --danger: #ff6b6b;
  --success: #4caf50;
  --warning: #ffd666;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.12);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 6px 16px rgba(0, 0, 0, 0.25);
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 16px;
  --focus: rgba(79, 140, 255, 0.45);
}

/* 全局盒模型 */
* {
  box-sizing: border-box;
}

/* 页面基础样式 */
body {
  margin: 0;
  background-color: var(--bg);
  background: linear-gradient(160deg, #0b1020 0%, #111a31 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  min-height: 100vh;
  overscroll-behavior: none;
}

/* 内容容器 */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .container {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 8px;
  }
}

/* 顶部标题区 */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* 移动端标题适配 */
@media (max-width: 480px) {
  .title {
    font-size: 18px;
  }
  .header {
    margin-bottom: 12px;
  }
}

/* 顶部状态小胶囊 */
.pill {
  padding: 4px 8px;
  background: #0f1a33;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #a6c1ff;
  font-size: 12px;
}

.pill--spaced {
  margin-bottom: 10px;
}

/* 顶部状态 pill 状态色 */
.pill.success {
  background: rgba(76, 175, 80, 0.12);
  border-color: rgba(76, 175, 80, 0.35);
  color: #a6e5b0;
}

.pill.error {
  background: rgba(244, 67, 54, 0.12);
  border-color: rgba(244, 67, 54, 0.35);
  color: #ff9f9f;
}

.pill.warning {
  background: rgba(255, 193, 7, 0.12);
  border-color: rgba(255, 193, 7, 0.35);
  color: #ffd27d;
}

/* 卡片组件 */
.card {
  background: var(--card-soft);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 18px;
}

.card-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 22, 40, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.2px;
}

.card-body {
  padding: 14px;
}

.is-hidden {
  display: none;
}

/* 表单输入区 */
.input-group {
  margin-bottom: 16px;
}

.input-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.input-hint {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

input[type="url"],
input[type="text"],
input[type="tel"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  background: var(--card-strong);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  outline: none;
}

input[type="url"]::placeholder,
input[type="text"]::placeholder,
input[type="tel"]::placeholder,
input[type="number"]::placeholder,
textarea::placeholder {
  color: rgba(138, 160, 199, 0.7);
}

.input-readonly {
  background: #1a2332;
  color: var(--muted);
  cursor: not-allowed;
}

input[type="url"]:focus,
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus);
  background: #111c33;
}

/* 移动端输入框适配 */
@media (max-width: 480px) {
  input[type="url"],
  input[type="text"],
  input[type="tel"],
  input[type="number"],
  textarea,
  select {
    padding: 12px;
    font-size: 16px; /* 防止iOS缩放 */
  }
}

/* 操作按钮组 */
.actions {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.actions--compact {
  margin-bottom: 12px;
}

.form-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 6px 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(79, 140, 255, 0.55), transparent);
}

.advanced-panel {
  margin: 14px 0 10px;
  border: 1px solid rgba(79, 140, 255, 0.2);
  border-radius: 12px;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(18, 28, 48, 0.7), rgba(10, 18, 34, 0.7));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.advanced-panel > summary {
  cursor: pointer;
  font-weight: 700;
  color: #cfe0ff;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 6px;
  border-radius: 10px;
  background: rgba(79, 140, 255, 0.08);
  border: 1px solid rgba(79, 140, 255, 0.18);
}

.advanced-panel > summary::-webkit-details-marker {
  display: none;
}

.advanced-panel > summary::after {
  content: "▸";
  color: rgba(255, 255, 255, 0.65);
  transition: transform 0.2s ease;
}

.advanced-panel[open] > summary::after {
  transform: rotate(90deg);
}

.advanced-body {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.advanced-panel .input-group {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  padding: 8px 10px 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.advanced-panel .input-label {
  font-size: 12px;
  color: rgba(207, 224, 255, 0.8);
}

.inline-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.inline-row input[type="tel"],
.inline-row input[type="text"],
.inline-row input[type="url"] {
  flex: 1;
}

.inline-row button {
  white-space: nowrap;
}

/* 移动端按钮布局适配 */
@media (max-width: 480px) {
  .actions {
    flex-direction: column;
    gap: 8px;
  }
  .actions button {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
  }

  .inline-row {
    flex-direction: column;
    align-items: stretch;
  }

  .inline-row button {
    width: 100%;
  }
}

/* 按钮基础样式 */
button {
  appearance: none;
  border: 0;
  padding: 8px 14px;
  border-radius: var(--radius-s);
  color: #081120;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease,
    background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(79, 140, 255, 0.35);
}

.btn-secondary {
  background: #24324d;
  color: #e9f3ff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(79, 140, 255, 0.35);
}

.btn-danger {
  background: #3a2130;
  color: #ffb3c1;
  border: 1px solid rgba(255, 107, 129, 0.35);
}

.btn-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(255, 107, 129, 0.25);
}

button:active {
  transform: translateY(0);
}

button:disabled,
button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* 二维码容器 */
.qr-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: var(--card-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  min-height: 240px;
}

.qr-wrap--compact {
  min-height: 200px;
}

/* 移动端二维码适配 */
@media (max-width: 480px) {
  .qr-wrap {
    min-height: 200px;
    padding: 8px;
  }
  .qr-wrap canvas {
    max-width: 100%;
    height: auto;
  }
}

.qr-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.countdown {
  font-variant-numeric: tabular-nums;
  color: #ffd666;
}

/* 结果输出区域 */
.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

#main-grid {
  grid-template-columns: 1fr 300px;
  gap: 18px;
}

.result-grid pre {
  max-height: none;
  overflow: visible;
  white-space: pre-wrap;
  word-break: break-word;
}

.result-panel {
  margin-top: 12px;
}

.result-output {
  font-size: 11px;
  max-height: 200px;
  overflow: auto;
}

.result-output--boxed {
  margin: 0;
  background: #0f1628;
  color: #cfe3ff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px;
}

.generated-link {
  margin-top: 12px;
  padding: 10px;
  background: #0f1628;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #67a8ff;
}

.generated-link__label {
  color: #a6c1ff;
  margin-bottom: 5px;
}

.generated-link__url {
  color: #67a8ff;
  text-decoration: none;
}

/* 移动端网格布局适配 */
@media (max-width: 768px) {
  .result-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  #main-grid {
    grid-template-columns: 1fr !important;
  }
}

/* 代码块/日志输出 */
pre {
  margin: 0;
  background: var(--card-strong);
  color: #cfe3ff;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 10px;
  max-height: 300px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.5;
}

.copyable,
.copyable * {
  user-select: text;
}

.copyable {
  cursor: text;
}

/* 移动端代码块适配 */
@media (max-width: 480px) {
  pre {
    padding: 8px;
    font-size: 11px;
    max-height: 200px;
  }
}

/* 状态提示块 */
.status {
  padding: 8px 12px;
  border-radius: var(--radius-s);
  background: #0f1a33;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.status.success {
  background: rgba(76, 175, 80, 0.12);
  border-color: rgba(76, 175, 80, 0.35);
  color: #a6e5b0;
}

.status.error {
  background: rgba(244, 67, 54, 0.12);
  border-color: rgba(244, 67, 54, 0.35);
  color: #ff9f9f;
}

.status.warning {
  background: rgba(255, 193, 7, 0.12);
  border-color: rgba(255, 193, 7, 0.35);
  color: #ffd27d;
}

/* 移动端额外优化 */
@media (max-width: 480px) {
  .card {
    margin-bottom: 12px;
  }
  .card-header {
    padding: 10px 12px;
  }
  .card-body {
    padding: 12px;
  }
  .input-group {
    margin-bottom: 12px;
  }
  .input-label {
    font-size: 13px;
    margin-bottom: 6px;
  }
  .pill {
    font-size: 11px;
    padding: 3px 6px;
  }
  .qr-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .countdown {
    font-size: 12px;
  }
}

/* 贵宾厅搜索下拉组件样式 */
.lounge-selector {
  position: relative;
  width: 100%;
}

.lounge-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--card-strong);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-s) var(--radius-s);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
}

.lounge-option {
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lounge-option:hover {
  background: rgba(79, 140, 255, 0.1);
}

.lounge-option.selected {
  background: rgba(79, 140, 255, 0.2);
}

.lounge-option:last-child {
  border-bottom: none;
}

.lounge-name {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
  line-height: 1.3;
}

.lounge-details {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.2;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lounge-code {
  background: rgba(79, 140, 255, 0.2);
  color: #67a8ff;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.lounge-location {
  color: #a6c1ff;
}

.lounge-hours {
  color: #8aa0c7;
}

.lounge-no-results {
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.lounge-loading {
  padding: 20px;
  text-align: center;
  color: #67a8ff;
  font-size: 14px;
}

.lounge-error {
  padding: 20px;
  text-align: center;
  color: #ff6b6b;
  font-size: 14px;
}

/* 移动端适配 */
@media (max-width: 480px) {
  .lounge-dropdown {
    max-height: 250px;
  }

  .lounge-option {
    padding: 10px 12px;
  }

  .lounge-name {
    font-size: 13px;
  }

  .lounge-details {
    font-size: 11px;
  }
}

/* 标签页系统样式 */
.tab-navigation {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tab-chip {
  padding: 8px 16px;
  background: rgba(18, 26, 43, 0.6);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  user-select: none;
}

.tab-chip:hover {
  background: rgba(79, 140, 255, 0.1);
  border-color: rgba(79, 140, 255, 0.3);
  color: #67a8ff;
}

.tab-chip.active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 12px rgba(79, 140, 255, 0.3);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* 移动端标签页适配 */
@media (max-width: 480px) {
  .tab-navigation {
    gap: 6px;
    margin-bottom: 16px;
  }

  .tab-chip {
    padding: 6px 12px;
    font-size: 13px;
  }
}

/* 只读输入框样式 */
input[readonly] {
  background-color: #1a2332 !important;
  color: #8aa0c7 !important;
  cursor: not-allowed !important;
  border-color: #2d3748 !important;
  opacity: 0.8 !important;
  position: relative !important;
}

input[readonly]:focus {
  box-shadow: none !important;
  border-color: #2d3748 !important;
}

/* 只读字段特殊样式 */
.readonly-field {
  background: linear-gradient(135deg, #1a2332 0%, #0f1628 100%) !important;
  color: #8aa0c7 !important;
  cursor: not-allowed !important;
  border: 1px solid #2d3748 !important;
  opacity: 0.9 !important;
  position: relative !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.readonly-field:focus {
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3) !important;
  border-color: #2d3748 !important;
}

/* 只读输入框添加小图标提示 */
.readonly-field::after {
  content: "🔒";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: 0.7;
  pointer-events: none;
  z-index: 1;
}

/* 为只读字段添加右侧内边距，避免文字与图标重叠 */
.readonly-field {
  padding-right: 35px !important;
}

/* 查询订单模块样式 */
.order-list {
  max-height: 600px;
  overflow-y: auto;
}

.order-group {
  margin-bottom: 12px;
}

.order-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.order-group-toggle {
  font-size: 12px;
  color: var(--muted);
}

.order-group.collapsed .order-group-list {
  display: none;
}

.order-item {
  background: var(--card-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 18px 22px 18px 22px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  position: relative;
}

.order-item:hover {
  border-color: rgba(79, 140, 255, 0.5);
  box-shadow: 0 8px 20px rgba(79, 140, 255, 0.15);
}

/* 订单卡片缩略图 */
/* 缩略图包裹容器 */
.order-thumb-wrap {
  position: absolute;
  top: 42px;
  right: 14px;
  width: 76px;
  height: 76px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  z-index: 1;
}

.order-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 状态徽章：放在图片外侧的顶部 */
.order-thumb-badge {
  position: absolute;
  top: 12px;
  right: calc(14px + 76px + 8px);
  transform: none;
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 999px;
  font-weight: 700;
  background: rgba(8, 17, 32, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 2;
}

/* 右上角缩略图占位空间，避免内容重叠 */
.order-item .order-header,
.order-item .order-details,
.order-item .order-actions {
  padding-right: 110px;
}

@media (max-width: 480px) {
  .order-item {
    padding: 16px;
  }
  .order-thumb-wrap {
    width: 60px;
    height: 60px;
    right: 10px;
    top: 38px;
  }
  .order-thumb-badge {
    font-size: 10px;
    padding: 3px 6px;
    right: calc(10px + 60px + 8px);
    top: 10px;
    transform: none;
  }
  .order-item .order-header,
  .order-item .order-details,
  .order-item .order-actions {
    padding-right: 90px;
  }
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.order-id {
  font-weight: 600;
  color: var(--accent);
  font-size: 16px;
}

.order-status {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.order-status.active {
  background: #00d4ff20;
  color: #00d4ff;
  border: 1px solid #00d4ff40;
}

.order-status.cancelled {
  background: #ff475720;
  color: #ff4757;
  border: 1px solid #ff475740;
}

.order-status.completed {
  background: #2ed57320;
  color: #2ed573;
  border: 1px solid #2ed57340;
}

.order-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.order-detail-item {
  display: flex;
  flex-direction: column;
}

.order-detail-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.order-detail-value {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

.order-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.btn-cancel {
  background: #ff4757;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-cancel:hover {
  background: #ff3742;
  transform: translateY(-1px);
}

.btn-cancel:disabled {
  background: #555;
  cursor: not-allowed;
  transform: none;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-text {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #b5c7e6;
}

.empty-desc {
  font-size: 14px;
  opacity: 0.7;
}

/* 订单详情弹窗内容 */
.detail-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px 16px;
}

.detail-label {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.detail-value {
  color: var(--text);
  font-size: 13px;
  word-break: break-word;
}

@media (max-width: 480px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-label {
    text-align: left;
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .order-details {
    grid-template-columns: 1fr;
  }

  .order-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .order-actions {
    justify-content: flex-start;
  }
}

/* 自定义确认弹窗样式 */
.custom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.custom-modal-content {
  position: relative;
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.custom-modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.custom-modal-body {
  padding: 20px 24px;
}

.custom-modal-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.custom-modal-footer {
  padding: 16px 24px 20px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-modal-footer button {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 80px;
}

.custom-modal-footer .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.custom-modal-footer .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text);
}

.custom-modal-footer .btn-primary {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
  color: white;
  border: none;
}

.custom-modal-footer .btn-primary:hover {
  background: linear-gradient(135deg, #ff5252 0%, #ff7979 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* 移动端适配 */
@media (max-width: 480px) {
  .custom-modal-content {
    width: 95%;
    margin: 0 10px;
  }

  .custom-modal-header,
  .custom-modal-body,
  .custom-modal-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .custom-modal-footer {
    flex-direction: column;
  }

  .custom-modal-footer button {
    width: 100%;
  }
}

/* 订单项状态样式改进 */
.order-item.order-cancelled {
  opacity: 0.7;
  border-left: 4px solid #ff6b6b;
}

.order-item.order-completed {
  opacity: 0.8;
  border-left: 4px solid #4caf50;
}

.status-icon {
  margin-right: 6px;
  font-size: 12px;
}

.btn-cancel {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-cancel:hover:not(.btn-disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.btn-cancel.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--muted) !important;
}

.btn-icon {
  font-size: 12px;
}

/* 订单状态样式优化 */
.order-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.order-status.active {
  color: #4caf50;
}

.order-status.cancelled {
  color: #ff6b6b;
}

.order-status.completed {
  color: #2196f3;
}

/* 动画效果 */
.order-item {
  transition: all 0.3s ease;
}

.order-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(79, 140, 255, 0.18);
}

/* 更换贵宾厅按钮样式 */
.btn-change-lounge {
  background: linear-gradient(135deg, #4f8cff 0%, #00d4ff 100%);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-change-lounge:hover:not(.btn-disabled) {
  background: linear-gradient(135deg, #3d7ae6 0%, #00b8e6 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 140, 255, 0.3);
}

.btn-change-lounge.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.1) !important;
  transform: none;
}

/* 更换贵宾厅弹窗样式 */
#changeLoungeModal .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#changeLoungeModal .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text);
}

#changeLoungeModal .btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.1) !important;
}

#changeLoungeModal .btn-primary:not(:disabled):hover {
  background: linear-gradient(135deg, #3d7ae6 0%, #00b8e6 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 140, 255, 0.3);
}

#changeLoungeModal .btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color: white;
}

.change-lounge-modal .custom-modal-content {
  max-width: 520px;
  max-height: 80vh;
  overflow: hidden;
}

.change-lounge-modal .custom-modal-body {
  max-height: 60vh;
  overflow-y: auto;
}

.change-lounge-modal #currentLoungeCode {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.change-lounge-tip {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
