/* =============================================================================
   订单查询页面专用样式
============================================================================= */

/* PC端页面最小高度，让footer显示在底部 */
.main {
  min-height: calc(100vh - 330px); /* 100vh减去header和footer的大致高度 */
}

/* 面包屑导航 - 重用商品详情页样式 */
.breadcrumb {
  display: flex;
  align-items: center;
  margin: 0 0 24px 0;
  font-size: 14px;
  color: #666;
}

.breadcrumb-link {
  color: #1890ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-link:hover {
  color: #1770c4;
}

.breadcrumb-separator {
  margin: 0 8px;
  font-size: 12px;
  color: #ccc;
}

.breadcrumb-current {
  color: #222;
  font-weight: 500;
}

/* 订单页面容器样式 */
.order-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: block;
}

/* 查询方式选择区域 */
.query-tabs {
  display: flex;
  margin-bottom: 24px;
  border-bottom: 1px solid #f0f0f0;
}

.query-tab {
  padding: 16px 24px;
  background: transparent;
  border: none;
  font-size: 16px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  border-bottom: 3px solid transparent;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.query-tab:hover {
  color: #1890ff;
}

.query-tab.active {
  color: #1890ff;
  border-bottom-color: #1890ff;
}

/* 查询表单区域 */
.query-form-container {
  margin-bottom: 32px;
}

.query-form {
  display: none;
}

.query-form.active {
  display: block;
}

/* 表单项样式 */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 15px;
  color: #222;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-group .help-text {
  font-size: 13px;
  color: #999;
  margin-top: 4px;
  line-height: 1.4;
}

.form-input {
  width: 100%;
  max-width: 400px;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-size: 15px;
  background: #fff;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  border-color: #1890ff;
  box-shadow: 0 0 0 3px #1890ff33;
}

.form-input::placeholder {
  color: #bbb;
}

/* 查询按钮 */
.query-button {
  height: 48px;
  padding: 0 32px;
  background: #1890ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.query-button:hover {
  background: #0580f3;
  transform: translateY(-2px);
}

.query-button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* 查询结果区域 */
.results-container {
  display: none;
  width: 100%;
}

.results-container.show {
  display: block !important;
  width: 100%;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.results-title {
  font-size: 18px;
  font-weight: 600;
  color: #222;
}

.results-count {
  font-size: 14px;
  color: #666;
}

/* 订单卡片样式 */
.order-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  width: 100%;
  display: block;
}

.order-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.order-header {
  padding: 16px 20px;
  background: #fafbff;
  border-bottom: 1px solid #f3f3f3;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-info {
  display: flex;
  align-items: center;
  gap: 24px;
}

.order-number {
  font-size: 15px;
  color: #222;
  font-weight: 500;
}

.order-date {
  font-size: 14px;
  color: #666;
}

.order-status {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.status-completed {
  background: #d1fae5;
  color: #065f46;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.status-processing {
  background: #dbeafe;
  color: #1e40af;
}

.order-body {
  padding: 20px;
}

.order-items {
  margin-bottom: 16px;
}

.order-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
}

.order-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.item-image {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  background: #f5f5f5;
  overflow: hidden;
  flex-shrink: 0;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-details {
  flex-grow: 1;
}

.item-name {
  font-size: 15px;
  font-weight: 500;
  color: #222;
  margin-bottom: 4px;
  line-height: 1.4;
}

.item-spec {
  font-size: 13px;
  color: #666;
}

.item-price {
  font-size: 16px;
  font-weight: 600;
  color: #e67e7e;
  text-align: right;
}

.order-footer {
  padding-top: 16px;
  border-top: 1px solid #f5f5f5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-total {
  font-size: 18px;
  font-weight: 600;
  color: #222;
}

.order-actions {
  display: flex;
  gap: 12px;
}

.action-button {
  padding: 8px 16px;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #666;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-height: 36px;
}

.action-button:hover {
  border-color: #1890ff;
  color: #1890ff;
}

.action-button.primary {
  background: #1890ff;
  color: #fff;
  border-color: #1890ff;
}

.action-button.primary:hover {
  background: #5b21b6;
}

/* 空状态样式 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.empty-icon {
  font-size: 64px;
  color: #ddd;
  margin-bottom: 16px;
}

.empty-title {
  font-size: 18px;
  color: #666;
  margin-bottom: 8px;
}

.empty-desc {
  font-size: 14px;
  color: #999;
  line-height: 1.5;
}

/* 加载状态 */
.loading {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.loading-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #1890ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 12px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* 响应式设�?*/
@media (max-width: 1240px) {
  .order-container {
    padding: 0 16px;
  }
}

@media (max-width: 768px) {
  .order-container {
    padding: 0 12px;
  }

  /* 确保订单卡片在移动端正确显示 */
  .order-card {
    display: block !important;
    width: 100%;
    margin-bottom: 16px;
  }

  .query-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0;
    margin-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .query-tabs::-webkit-scrollbar {
    display: none;
  }

  .query-tab {
    padding: 12px 16px;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: fit-content;
  }

  .form-group {
    margin-bottom: 16px;
  }

  .form-group>div {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .form-input {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-top: 0;
    height: 44px;
  }

  .query-button {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-top: 0;
    height: 44px;
    justify-content: center;
  }

  .order-header {
    padding: 12px 16px;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    display: flex !important;
    background: #fafbff;
    border-bottom: 1px solid #f3f3f3;
  }

  .order-info {
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    display: flex;
  }

  .order-number {
    font-size: 14px;
    color: #222;
    font-weight: 500;
  }

  .order-date {
    font-size: 13px;
    color: #666;
  }

  .order-status {
    flex-shrink: 0;
    margin-top: 0;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    align-self: flex-start;
  }

  .order-body {
    padding: 16px;
  }

  .order-item {
    padding: 8px 0;
    gap: 12px;
  }

  .item-image {
    width: 50px;
    height: 50px;
  }

  .item-name {
    font-size: 14px;
    line-height: 1.3;
  }

  .item-spec {
    font-size: 12px;
  }

  .item-price {
    font-size: 15px;
  }

  .order-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .order-total {
    text-align: right;
    font-size: 16px;
  }

  .order-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .action-button {
    flex: 1;
    min-width: calc(50% - 4px);
    text-align: center;
  }

  /* 移动端底部间距适配 */
  .order-container {
    padding-bottom: 80px;
  }

  .results-container {
    margin-top: 16px;
    display: block !important;
    width: 100%;
  }

  .results-container.show {
    display: block !important;
  }

  #results-content {
    width: 100%;
  }

  .results-header {
    padding: 0 4px;
    margin-bottom: 12px;
  }

  .results-title {
    font-size: 16px;
  }

  .results-count {
    font-size: 13px;
  }
}

/* 小屏设备适配 (480px以下) */
@media (max-width: 480px) {
  .order-container {
    padding: 0 12px;
    padding-bottom: 80px;
    margin-top: 20px;
  }

  .query-tab {
    padding: 10px 12px;
    font-size: 13px;
  }

  .form-input,
  .query-button {
    height: 42px;
  }

  .query-button {
    font-size: 14px;
  }

  .order-card {
    margin-bottom: 12px;
    display: block !important;
    width: 100%;
  }

  .order-header {
    padding: 10px 12px;
    display: flex !important;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    background: #fafbff;
    border-bottom: 1px solid #f3f3f3;
  }

  .order-info {
    flex: 1;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .order-number {
    font-size: 13px;
  }

  .order-date {
    font-size: 12px;
  }

  .order-status {
    margin-top: 0;
    font-size: 11px;
    flex-shrink: 0;
    align-self: flex-start;
    padding: 3px 8px;
  }

  .order-body {
    padding: 12px;
  }

  .order-item {
    padding: 6px 0;
    gap: 10px;
  }

  .item-image {
    width: 45px;
    height: 45px;
  }

  .item-name {
    font-size: 13px;
  }

  .item-spec {
    font-size: 11px;
  }

  .item-price {
    font-size: 14px;
  }

  .order-total {
    font-size: 15px;
  }

  .action-button {
    padding: 6px 12px;
    font-size: 13px;
  }

  .empty-state {
    padding: 40px 16px;
  }

  .empty-icon {
    font-size: 48px;
  }

  .empty-title {
    font-size: 16px;
  }

  .empty-desc {
    font-size: 13px;
  }

  /* 移动端触摸优�?*/
  .query-button,
  .action-button,
  .query-tab {
    min-height: 44px;
  }

  .query-button:active,
  .action-button:active {
    transform: scale(0.98);
  }

  /* 强制显示所有订单相关元素 */
  .order-card,
  .order-header,
  .order-info,
  .order-body,
  .order-footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .order-header {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
  }

  .order-info {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
  }

  .order-status {
    flex-shrink: 0 !important;
  }
}

/* =============================================================================
   订单详情弹窗样式
============================================================================= */

/* 弹窗遮罩*/
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* 弹窗主体 */
.modal {
  background: #fff;
  border-radius: 12px;
  max-width: 700px;
  width: 85%;
  max-height: 70vh;
  overflow: hidden;
  transform: translateY(30px) scale(0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin: 20px;
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

/* 弹窗头部 */
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafbff;
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  margin: 0;
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: #f5f5f5;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 16px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #e5e5e5;
  color: #333;
}

/* 弹窗内容 */
.modal-content {
  padding: 0;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

/* 订单详情内容 */
.order-detail {
  padding: 24px;
}

.detail-section {
  margin-bottom: 20px;
}

.detail-section:last-child {
  margin-bottom: 0;
}

.detail-title {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #1890ff;
  display: block;
}

.detail-list {
  background: #fafbff;
  border-radius: 8px;
  padding: 0;
  border: 1px solid #f0f0f0;
}

.detail-grid {
  background: #fafbff;
  border-radius: 8px;
  padding: 0;
  border: 1px solid #f0f0f0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.detail-row {
  display: flex;
  align-items: flex-start;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  min-height: 48px;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-grid .detail-row {
  border-right: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.detail-grid .detail-row:nth-child(2n) {
  border-right: none;
}

.detail-grid .detail-row.full-width {
  grid-column: 1 / -1;
  border-right: none;
}

/* .detail-grid .detail-row:nth-last-child(-n+2):not(.full-width) {
  border-bottom: none;
} */

.detail-grid .detail-row.full-width:last-child {
  border-bottom: none;
}

/* 网格布局中的标签宽度优化 */
.detail-grid .detail-label {
  width: 80px;
  font-size: 13px;
}

.detail-grid .detail-value {
  font-size: 13px;
}

.detail-grid .detail-row.full-width .detail-label {
  width: 100px;
}

.detail-grid .detail-row.full-width .detail-value {
  font-size: 14px;
}

.detail-label {
  font-weight: 500;
  color: #666;
  width: 120px;
  flex-shrink: 0;
  line-height: 1.5;
}

.detail-value {
  color: #222;
  flex: 1;
  line-height: 1.5;
  word-break: break-all;
}

.detail-value.highlight {
  color: #1890ff;
  font-weight: 600;
}

.detail-value.price {
  color: #e67e7e;
  font-weight: 600;
  font-size: 16px;
}

/* 订单详情特殊样式 */
.order-detail .highlight {
  color: #1890ff;
  font-weight: 600;
}

.order-detail .price {
  color: #e67e7e;
  font-weight: 600;
  font-size: 16px;
}

/* 弹窗中的订单状态样式 */
.modal .order-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.modal .status-completed {
  background: #d1fae5;
  color: #065f46;
}

.modal .status-pending {
  background: #fef3c7;
  color: #92400e;
}

.modal .status-cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.modal .status-processing {
  background: #dbeafe;
  color: #1e40af;
}

/* 卡密信息区域样式 */
.card-info-section {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
}

.card-info-header {
  background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
}

.card-info-header i {
  font-size: 16px;
}

.card-info-content {
  padding: 0;
}

.card-info-content.pending {
  padding: 24px 16px;
  text-align: center;
  color: #666;
  background: #f9f9f9;
}

.card-info-content.pending p {
  margin: 0;
  font-style: italic;
}

.card-item {
  border-bottom: 1px solid #f0f0f0;
  background: #fafbff;
}

.card-item:last-child {
  border-bottom: none;
}

.card-item-header {
  padding: 12px 16px;
  background: #f5f7ff;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-number {
  font-weight: 600;
  color: #374151;
  font-size: 13px;
}

.copy-btn {
  background: #1890ff;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 12px;
}

.copy-btn:hover {
  background: #5b21b6;
  transform: scale(1.05);
}

.card-item-content {
  padding: 16px;
}

.card-field {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.card-field:last-child {
  margin-bottom: 0;
}

.card-field label {
  font-weight: 500;
  color: #6b7280;
  width: 50px;
  flex-shrink: 0;
  font-size: 13px;
}

.card-value {
  color: #111827;
  font-weight: 500;
  font-family: 'Courier New', monospace;
  background: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  font-size: 12px;
  word-break: break-all;
  flex: 1;
}

.card-note {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.4;
  flex: 1;
}

/* 弹窗底部操作 */
.modal-footer {
  padding: 16px 24px 16px 24px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  background: #fafafa;
  flex-shrink: 0;
}

.modal-button {
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  min-width: 80px;
}

.modal-button.secondary {
  background: #f5f5f5;
  color: #666;
}

.modal-button.secondary:hover {
  background: #e5e5e5;
  color: #333;
}

.modal-button.primary {
  background: #1890ff;
  color: #fff;
}

.modal-button.primary:hover {
  background: #5b21b6;
}

/* 移动端弹窗适配 */
@media (max-width: 768px) {
  .modal {
    width: 90%;
    max-height: 75vh;
    margin: 30px 20px;
    display: flex;
    flex-direction: column;
  }

  .modal-header {
    padding: 16px 20px;
  }

  .modal-title {
    font-size: 16px;
  }

  .order-detail {
    padding: 20px;
  }

  .detail-title {
    font-size: 15px;
  }

  .detail-label {
    width: 90px;
    font-size: 13px;
  }

  .detail-value {
    font-size: 13px;
  }

  .detail-row {
    padding: 10px 12px;
  }

  .modal-footer {
    padding: 12px 20px 12px 20px;
    flex-direction: row;
    gap: 12px;
  }

  .modal-button {
    flex: 1;
    padding: 12px;
    font-size: 14px;
  }

  /* 平板端保持网格布局 */
  .detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .detail-grid .detail-row {
    border-right: 1px solid #f0f0f0;
    padding: 8px 12px;
  }

  .detail-grid .detail-row:nth-child(2n) {
    border-right: none;
  }

  .detail-grid .detail-row.full-width {
    grid-column: 1 / -1;
    border-right: none;
  }
}

@media (max-width: 480px) {
  .modal {
    width: 85%;
    max-height: 70vh;
    border-radius: 8px;
    margin: 30px 7.5%;
    margin-bottom: calc(30px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
  }

  .modal-content {
    max-height: calc(70vh - 140px);
    flex: 1;
    overflow-y: auto;
  }

  .order-detail {
    padding: 16px;
  }

  .detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 12px;
  }

  .detail-label {
    width: 100%;
    font-weight: 600;
    color: #1890ff;
    font-size: 12px;
  }

  .detail-value {
    width: 100%;
    padding-left: 0;
    font-size: 12px;
  }

  .detail-section {
    margin-bottom: 20px;
  }

  .detail-title {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .detail-list {
    padding: 0;
  }

  .detail-grid {
    display: block;
  }

  .detail-grid .detail-row {
    border-right: none !important;
    border-bottom: 1px solid #f0f0f0;
  }

  .detail-grid .detail-row:last-child {
    border-bottom: none;
  }

  /* 移动端弹窗底部按钮样式 */
  .modal-footer {
    padding: 12px 16px 12px 16px;
    flex-direction: row;
    gap: 12px;
    margin-bottom: 0;
  }

  .modal-button {
    flex: 1;
    padding: 12px 8px;
    font-size: 14px;
    border-radius: 6px;
  }

  /* 移动端卡密信息适配 */
  .card-info-header {
    padding: 10px 12px;
    font-size: 13px;
  }

  .card-item-header {
    padding: 8px 12px;
  }

  .card-number {
    font-size: 12px;
  }

  .copy-btn {
    padding: 3px 6px;
    font-size: 11px;
  }

  .card-item-content {
    padding: 12px;
  }

  .card-field {
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
  }

  .card-field label {
    width: 100%;
    font-size: 12px;
    color: #1890ff;
    font-weight: 600;
  }

  .card-value {
    font-size: 11px;
    padding: 6px 8px;
  }

  .card-note {
    font-size: 11px;
  }
}

/* 极小屏设备额外优化 */
@media (max-width: 360px) {
  .order-container {
    padding: 0 6px;
  }

  .modal {
    width: 90%;
    max-height: 65vh;
    margin: 40px 5%;
    margin-bottom: calc(40px + env(safe-area-inset-bottom));
  }

  .modal-footer {
    padding: 10px 12px 10px 12px;
    gap: 8px;
  }

  .modal-button {
    padding: 12px 8px;
    font-size: 13px;
    font-weight: 500;
  }
}

/* 为所有移动设备添加安全区域支�?*/
@supports (padding: max(0px)) {
  @media (max-width: 480px) {
    .modal {
      margin-bottom: max(30px, calc(30px + env(safe-area-inset-bottom)));
      max-height: calc(70vh - env(safe-area-inset-bottom));
      display: flex;
      flex-direction: column;
    }

    .modal-content {
      flex: 1;
      min-height: 0;
      overflow-y: auto;
    }

    .modal-footer {
      flex-shrink: 0;
    }
  }

  @media (max-width: 360px) {
    .modal {
      margin-bottom: max(40px, calc(40px + env(safe-area-inset-bottom)));
      max-height: calc(65vh - env(safe-area-inset-bottom));
      display: flex;
      flex-direction: column;
    }

    .modal-content {
      flex: 1;
      min-height: 0;
      overflow-y: auto;
    }
  }
}