/* 全局重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f9f9f9;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* 左侧侧边栏样式 */
.sidebar {
  width: 200px;
  background: white;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: fixed;
  height: 100%;
}

.logo {
  text-align: center;
  padding: 20px 0;
}

.logo h1 {
  color: var(--text-color);
  font-size: 28px;
  font-weight: 600;
}

.nav-menu {
  flex-grow: 1;
}

.menu li {
  margin-bottom: 8px;
}

.menu li a {
  align-items: center;
  padding: 12px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: var(--transition);
}

.menu li a i {
  margin-right: 12px;
  width: 20px;
  text-align: center;
}

.menu li a.active {
  background-color: var(--primary-color);
  color: white;
}

.menu li a:not(.active):hover {
  background-color: #f0f0f0;
  color: var(--primary-color);
}

/* 添加 CSS 变量 */
:root {
  --primary-color: #1a73e8;
  --primary-hover: #1557b0;
  --danger-color: #dc3545;
  --success-color: #28a745;
  --border-color: #e0e0e0;
  --text-color: #333;
  --text-secondary: #666;
  --background-color: #f8f9fa;
  --card-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

/* 右侧内容区域 */
.content {
  flex: 1;
  /* 自动填充剩余空间，推送页脚到底部 */
  margin-left: 200px;
  /* 保持与侧边栏一致的空间 */
  padding: 20px;
}

.content .header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: -50px;
}

.content {
  position: relative; /* 确保子元素以此为参考定位 */
  flex: 1;
  margin-left: 200px;
  padding: 20px;
}

/* 消息提示窗样式 */
.message-box {
  position: fixed;
  top: 50%; /* 垂直居中 */
  left: calc(200px + (100% - 200px) / 2); /* 剔除侧边栏后居中 */
  transform: translate(-50%, -50%); /* 调整居中偏移 */
  z-index: 1000;
  visibility: hidden; /* 初始隐藏 */
  opacity: 0;
  padding: 10px 20px;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  border-radius: 5px;
  font-size: 16px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.message-box.show {
  visibility: visible;
  /* 显示 */
  opacity: 1;
}

.message-box.hide {
  opacity: 0;
  transform: translateX(100%);
}

/* 类型样式 */
.message-box.success {
  background-color: #28a745;
}

.message-box.error {
  background-color: #dc3545;
}

.message-box.warning {
  background-color: #ffc107;
}

.message-box.info {
  background-color: #007bff;
}

/* 标题样式（居中） */
.section-title {
  text-align: center;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
  margin-top: 10px; /* 减少上边距 */
}

/* 登出按钮 */
.auth-buttons button {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.auth-buttons button:hover {
  background-color: #0056b3;
}

/* 搜索框居中显示 */
.search-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.search-bar input {
  width: 100%;
  max-width: 400px;
  padding: 8px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* 商品列表布局 */
.products {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 15px;
}

/* 商品卡片样式优化 */
.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
  padding: 15px;
  width: calc(16.666% - 15px);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin: 0 auto;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8f9fa;
  padding: 5px;
  margin-bottom: 12px;
}

.product-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-info {
  width: 100%;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 5px 0;
  font-size: 0.9rem;
  color: #666;
}

.info-row.highlight {
  font-weight: bold;
  color: #333;
  background: #f8f9fa;
  padding: 5px 8px;
  border-radius: 4px;
  margin: 8px 0;
}

.info-row i {
  margin-right: 5px;
  color: #999;
}

.product-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  justify-content: center;
}

.quantity-wrapper {
  display: flex;
  align-items: center;
}

.quantity-input {
  width: 60px;
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
}

.buy-btn, .list-btn, .unlist-btn, .retrieve-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

/* 购买按钮 */
.buy-btn {
  background: linear-gradient(135deg, #F44336, #e53935);
  color: #fff;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* 寄售按钮 */
.list-btn {
  background: linear-gradient(135deg, #2196F3, #1e88e5);
  color: #fff;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* 下架按钮 */
.unlist-btn {
  background: linear-gradient(135deg, #F44336, #e53935);
  color: #fff;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* 取回按钮 */
.retrieve-btn {
  background: linear-gradient(135deg, #F44336, #e53935);
  color: #fff;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* 所有按钮的悬停效果 */
.buy-btn:hover,
.list-btn:hover,
.unlist-btn:hover,
.retrieve-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.product-info p {
  font-size: 0.9em;
  color: #555;
  margin: 5px 0;
}

.product-actions input[type="number"] {
  width: 60px;
  padding: 5px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.product-actions button {
  color: #fff;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.product-actions button:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* 商城余额模块 */
.balance-container {
  margin: 20px auto;
  max-width: 600px; /* 增加容器宽度 */
  padding: 30px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.balance-container h2 {
  font-size: 1.8em;
  color: #2c3e50;
  margin-bottom: 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.balance-container h2 i {
  color: #3498db;
}

.exchange-rates {
  margin: 20px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.exchange-rate-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  margin: 10px 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.exchange-rate-item i {
  color: #3498db;
}

.server-balances {
  margin: 20px 0;
}

.server-balance-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  margin: 10px 0;
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.server-balance-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.server-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2c3e50;
  font-weight: 500;
}

.server-balance {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #27ae60;
  font-weight: 600;
}

.server-balance i {
  color: #f1c40f;
}

.total-balance {
  margin-top: 20px;
  padding: 20px;
  background: #2c3e50;
  color: white;
  border-radius: 8px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.2em;
}

.total-balance i {
  color: #f1c40f;
}

.form-group {
  margin: 30px 0;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1.1rem;
  transition: border-color 0.3s ease;
}

#editUserInfoModal .form-group input {
  height: 36px; /* 统一高度 */
  padding: 0 12px; /* 调整内边距 */
  border-radius: 6px;
  font-size: 14px;
  width: 100%;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#editUserInfoModal .form-group input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

/* 密码输入框特殊样式 */
#editUserInfoModal .form-group input[type="password"] {
  font: small-caption; /* 使密码点的大小合适 */
  font-size: 14px; /* 保持与其他输入框一致的字体大小 */
  letter-spacing: 0.1em; /* 调整密码点的间距 */
}

.actions {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.actions button {
  flex: 1;
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.actions .charge {
  background: linear-gradient(135deg, #27ae60, #219a52);
  color: white;
  transition: all 0.2s ease;
}

.actions .charge:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(39, 174, 96, 0.2);
}

.actions .withdraw {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  transition: all 0.2s ease;
}

.actions .withdraw:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(231, 76, 60, 0.2);
}

.server-balance-item.error {
  background: #fff5f5;
  color: #e74c3c;
  justify-content: center;
  gap: 10px;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
  .balance-container {
    margin: 10px;
    padding: 20px;
  }

  .actions {
    flex-direction: column;
  }

  .server-balance-item {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

.centered-tip {
  display: flex;
  justify-content: center; /* 水平居中 */
  align-items: center; /* 垂直居中 */
  text-align: center; /* 文本居中 */
  margin: 0 auto; /* 水平自动居中 */
  height: 100%; /* 让内容充满父元素高度 */
  font-size: 1rem;
  color: #f44336; /* 文字颜色 */
  font-weight: bold; /* 字体加粗 */
  padding: 10px;
  background-color: #ffebee; /* 背景颜色 */
  border: 1px solid #f44336; /* 边框颜色 */
  border-radius: 8px; /* 圆角 */
  width: fit-content; /* 宽度自适应内容 */
}

/* 手机端适配样式 */
@media screen and (max-width: 768px) {
  /* 确保侧边栏隐藏，且可以激活 */
  .sidebar {
    position: fixed;
    left: -200px;
    /* 初始隐藏 */
    top: 0;
    width: 200px;
    height: 100%;
    transition: left 0.3s ease;
    z-index: 1000;
  }

  .sidebar.active {
    left: 0;
  }

  /* 伸缩按钮样式 */
  .sidebar-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 60px;
    height: 30px;
    background-color: #007bff;
    color: #fff;
    border-radius: 4px;
    text-align: center;
    line-height: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: left 0.3s ease;
    z-index: 2001;
  }

  .sidebar.active ~ .sidebar-toggle {
    left: 220px;
  }

  /* 内容区域跟随侧边栏移动 */
  .content {
    margin-left: 0 !important;
    /* 确保内容区域被复位 */
    transition: transform 0.3s ease;
  }

  .content.shifted {
    transform: translateX(200px);
  }

  /* 登录状态下，所有相关元素也适配移动端 */
  .header,
  .auth-buttons {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* 商品卡片：两列显示 */
  .products {
    justify-content: center;
    gap: 10px;
  }

  .product-card {
    width: calc(50% - 10px);
  }
}

.product-card .product-info p {
  word-break: break-word;
  overflow-wrap: break-word;
}

@media screen and (max-width: 768px) {
  .product-card .product-info p {
    font-size: 0.8rem;
  }
}

.menu li {
  padding: 18px 20px;
  text-align: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

/* 表单样式 */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-container h1 {
  font-size: 24px;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.form-container h1 i {
  color: #3498db;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #34495e;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group label i {
  color: #3498db;
}

/* 修改下拉框和选项的样式 */
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background-color: #fff;
  cursor: pointer;
  appearance: auto;
  -webkit-appearance: auto;
  -moz-appearance: auto;
  text-align: center;
  text-align-last: center;
}

/* 下拉选项容器样式 */
.form-group select option {
  text-align: center;
  background-color: #fff;
  color: #333;
  padding: 12px;
}

/* 下拉框获得焦点时的样式 */
.form-group select:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
  outline: none;
}

/* 优化时间提示样式 */
.time-tip {
  background: linear-gradient(45deg, #fff8e1, #fffde7);
  border-left: 4px solid #ffd54f;
  padding: 15px 20px 15px 50px;
  margin: 20px 0;
  border-radius: 8px;
  font-size: 15px;
  color: #5d4037;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-align: center; /* 添加居中对齐 */
}

.time-tip:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.time-tip i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #ffa000;
  font-size: 20px;
  animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
  0% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(-50%) scale(1.1); }
  100% { transform: translateY(-50%) scale(1); }
}

.time-tip div {
  text-align: center; /* 修改为居中对齐 */
  line-height: 1.6;
  font-weight: 500;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
  .time-tip {
    margin: 15px 10px;
    padding: 12px 15px 12px 45px;
    font-size: 14px;
  }
  
  .time-tip i {
    font-size: 18px;
  }
}

.form-container button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover)); /* 添加渐变效果 */
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.form-container button:hover {
  background: linear-gradient(135deg, var(--primary-hover), #0f4183); /* 悬停时更深的渐变 */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3); /* 增加阴影效果 */
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
  .form-container {
    margin: 20px;
    padding: 20px;
  }
}

.auth-buttons .register {
  background-color: #3498db;
  color: white;
}

.auth-buttons .login {
  background-color: #2ecc71;
  color: white;
}

/* 购买确认模态框的内容样式 */
.purchase-info-group {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
}

.purchase-info-group h4 {
  color: #2c3e50;
  margin-bottom: 10px;
  font-size: 1.1em;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 8px;
}

.purchase-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  color: #495057;
}

.purchase-info-item i {
  margin-right: 8px;
  color: #6c757d;
}

.deduction-details {
  background: #fff8e1;
  border-radius: 8px;
  padding: 15px;
}

.deduction-item {
  padding: 6px 0;
  color: #666;
  display: flex;
  align-items: center;
  gap: 8px;
}

.deduction-total {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 2px dashed #e0e0e0;
  color: #e67e22;
  font-weight: bold;
  font-size: 1.1em;
}

.deduction-item i {
  color: #f39c12;
}

/* 统一购买模态框中的信息项样式 */
.purchase-info-item, 
.deduction-item {
    display: flex;
    align-items: center;
    gap: 12px; /* 统一图标和文字间距 */
    padding: 8px 0;
}

/* 在现有样式基础上添加 */
.deduction-details h4 {
  color: #2c3e50;
  margin-bottom: 10px;
  font-size: 1.1em;
  border-bottom: 2px solid #e67e22;
  padding-bottom: 8px;
}

/* 页脚 */
footer {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 30px;
  /* 页脚高度 20px */
  font-size: 0.8rem;
  color: #666;
  border-top: 1px solid #ccc;
  background-color: #fff;
  position: relative;
  left: 200px;
  width: calc(100% - 200px);
}

footer {
  font-size: 0.9rem;
  /* 页脚全局文字大小 */
}

footer span {
  font-size: 0.9rem;
  /* 默认文字大小 */
  transition: font-size 0.3s ease, color 0.3s ease;
}

footer span:hover {
  font-size: 1.1rem;
  /* 鼠标移入时放大 */
  color: #007bff;
  /* 鼠标移入时颜色 */
}

.tooltip {
  display: none;
  position: fixed;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
}

footer span:hover .tooltip {
  display: block;
}

/* 商品管理和商品列表提示文字样式 */
.products-container {
  display: flex;
  justify-content: center; /* 水平居中 */
  align-items: flex-start; /* 垂直顶部对齐 */
  height: calc(100vh - 100px); /* 适配内容区域高度 */
  text-align: center;
  color: #777;
  font-size: 1.2rem;
  margin-top: 50px; /* 向上移动（控制与顶部的间距） */
  margin-left: auto; /* 保持侧边栏不影响 */
  margin-right: auto;
}

.products-container p {
  font-size: 1.2rem;
  color: #777;
  margin: 0;
}

/* 模态框样式 */
/* 右侧内容区域居中的模态框 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 200px; /* 考虑侧边栏宽度 */
  width: calc(100% - 200px);
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #f8f9fa;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.close-modal:hover {
  background-color: #e9ecef;
  color: var(--text-color);
}

.modal-content h3 {
  font-size: 20px;
  margin-bottom: 24px;
  color: var(--text-color);
}

#modalBody {
  margin: 20px 0;
}

#modalBody p {
  margin: 10px 0;
  color: var(--text-secondary);
}

.modal-footer {
  margin-top: 30px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.modal-footer button {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary {
  background-color: #f8f9fa;
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
}

.btn-secondary:hover {
  background-color: #e9ecef;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

/* 输入框样式 */
.modal-content input[type="number"],
.modal-content input[type="text"] {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.modal-content input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.modal-content label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
  .modal {
    left: 0;
    width: 100%;
  }
  
  .modal-content {
    margin: 20px;
    padding: 20px;
  }
  
  .modal-footer {
    flex-direction: column;
  }
  
  .modal-footer button {
    width: 100%;
  }
}

/* 切换服务器模态框样式 */
#switchServerModal .modal-content {
    width: 400px;
    padding: 30px;
}

#switchServerModal .form-group {
    margin: 20px 0;
}

/* 复用寄售物品页面的下拉框样式 */
#switchServerModal select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background-color: #fff;
    cursor: pointer;
    appearance: auto; /* 恢复默认外观 */
    -webkit-appearance: auto;
    -moz-appearance: auto;
    background-image: none; /* 移除自定义箭头图标 */
    padding-right: 40px; /* 保持右侧内边距以防内容重叠 */
}

#switchServerModal select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* 优化右上角用户信息布局 */
.auth-buttons {
    text-align: right;
    padding: 10px 20px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-info {
    margin-bottom: 10px;
}

.user-welcome {
    display: block;
    font-size: 1.1em;
    color: #333;
    margin-bottom: 4px;
}

.server-info {
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 auto; /* 居中对齐 */
}

.action-buttons {
    display: flex;
    justify-content: center; /* 横向居中按钮 */
    gap: 12px;
}

.action-buttons button {
    padding: 6px 12px;
    font-size: 0.9em;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-buttons .switch-btn {
    background-color: #4CAF50;
    color: white;
}

.action-buttons .logout-btn {
    background-color: #f44336;
    color: white;
}

.action-buttons button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* 重新设计用户信息显示样式 */
.auth-buttons {
  position: fixed;
  top: 0;
  left: 200px;
  right: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 24px;
  z-index: 100;
  height: 64px;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.user-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  gap: 20px;
}

.server-info {
  display: flex;
  justify-content: center; /* 水平居中 */
  align-items: center;
  gap: 16px;
  margin: 0 auto; /* 居中对齐 */
}

.server-status {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.5);
  padding: 8px 16px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}

.server-status:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
}

.current-server {
  color: #2c3e50;
  font-size: 0.95em;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.current-server::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #2ecc71;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(46, 204, 113, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
   50% { transform: scale(1.2); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

.user-details {
  display: flex;
  align-items: center;
  gap: 10px;
}

.username {
  font-weight: 600;
  color: #34495e;
  padding: 8px 1px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 30px;
  font-size: 0.95em;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.username:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
}

.balance {
  color: #27ae60;
  background: rgba(46, 204, 113, 0.1);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.95em;
  font-weight: 500;
  border: 1px solid rgba(46, 204, 113, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.balance:hover {
  background: rgba(46, 204, 113, 0.15);
  transform: translateY(-1px);
}

.action-buttons {
  display: flex;
  justify-content: center; /* 横向居中按钮 */
  gap: 12px;
}

.switch-server-btn, 
.logout-btn {
  padding: 8px 16px; /* 调整内边距 */
  border-radius: 4px; /* 使用统一的圆角 */
  font-size: 0.9em; /* 调整字体大小 */
  min-width: 100px; /* 设置最小宽度 */
}

.switch-server-btn {
  background: #3498db;
  color: white;
  min-width: 110px;
  box-shadow: 0 2px 6px rgba(52, 152, 219, 0.2);
}

.switch-server-btn:hover {
  background: #2980b9;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.logout-btn {
  background: #e74c3c;
  color: white;
  min-width: 90px;
  box-shadow: 0 2px 6px rgba(231, 76, 60, 0.2);
}

.logout-btn:hover {
  background: #c0392b;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
  .auth-buttons {
    left: 0;
    height: auto;
    padding: 12px;
  }

  .user-info {
    flex-direction: column;
    gap: 12px;
  }

  .server-info,
  .user-details {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .server-status,
  .username,
  .balance,
  .switch-server-btn,
  .logout-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .action-buttons {
    width: 100%;
    justify-content: space-between;
  }

  .content {
    margin-top: 180px;
  }
}

/* 调整内容区域的上边距，为固定定位的用户信息留出空间 */
.content {
  margin-top: 70px;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
  .auth-buttons {
    left: 0;
    height: auto;
    padding: 10px;
  }

  .user-info {
    flex-direction: column;
    gap: 10px;
  }

  .server-info {
    margin-right: 0;
    justify-content: center;
    width: 100%;
  }

  .user-details {
    justify-content: center;
    width: 100%;
  }

  .server-actions {
    justify-content: center;
    width: 100%;
  }

  .content {
    margin-top: 100px;
  }
}

/* 修改未登录状态下的注册登录按钮样式 */
.auth-buttons:not(:has(.user-info)) {
  display: flex;
  justify-content: flex-end; /* 靠右对齐 */
  gap: 10px;
}

/* 修改已登录状态下的布局 */
.user-info {
  display: flex;
  justify-content: space-between; /* 左右分布 */
  align-items: center;
  width: 100%;
}

.server-info {
  justify-content: flex-start; /* 靠左对齐 */
  margin: 0; /* 移除自动边距 */
}

.user-details {
  justify-content: flex-end; /* 靠右对齐 */
  margin-left: auto; /* 推到最右边 */
}

.account-info-container {
  background: none; /* 移除背景 */
  padding: 20px;
  width: 100%;
  max-width: 400px;
  margin: 20px auto;
  text-align: center;
}

.account-info-container .info-group {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.account-info-container .info-group label {
  font-weight: bold;
  color: #333;
}

.account-info-container .info-group span {
  display: block;
  font-size: 1.1em;
  color: #555;
}

.account-info-container .info-group i {
  color: #3498db;
}

.account-info-container .info-group button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.account-info-container .info-group button:hover {
  background-color: #2980b9;
}

/* 自定义选择框容器 */
.custom-select {
  position: relative;
  width: 100%;
}

/* 选中项显示区域 */
.selected-item {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  background-color: #fff;
  cursor: pointer;
  position: relative;
  text-align: center;
}

.selected-item::after {
  content: '';
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #666;
}

/* 选项列表 */
.options-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 300px;
  overflow-y: auto;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 1000;
  margin-top: 5px;
}

/* 选项样式 */
.option {
  padding: 10px 15px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s;
}

.option:hover {
  background-color: #f5f5f5;
}

/* 滚动条样式 */
.options-list::-webkit-scrollbar {
  width: 8px;
}

.options-list::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.options-list::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* 当选项列表显示时，旋转箭头 */
.custom-select.active .selected-item::after {
  transform: translateY(-50%) rotate(180deg);
}

/* 账号信息页面按钮样式 */
.settings-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.settings-btn {
  height: 36px; /* 减小高度 */
  padding: 0 20px; /* 移除垂直内边距，只保留水平内边距 */
  border-radius: 6px; /* 稍微减小圆角 */
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  flex: 1;
}

.settings-btn.primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: white;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.settings-btn.primary:hover {
  background: linear-gradient(135deg, var(--primary-hover), #0f4183);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.settings-btn.secondary {
  background: var(--background-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.settings-btn.secondary:hover {
  background: #e9ecef;
  transform: translateY(-2px);
}

.settings-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
  .settings-actions {
    flex-direction: column;
  }
  
  .settings-btn {
    width: 100%;
  }
}

/* Account Page Styles */
.account-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.account-header {
  margin-bottom: 30px;
  text-align: center;
}

.account-header h1 {
  font-size: 2em;
  color: #2c3e50;
  margin: 0;
}

.account-header h1 i {
  margin-right: 10px;
  color: #3498db;
}

.account-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 30px;
}

.account-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.info-item {
  padding: 15px;
  border-radius: 8px;
  background: #f8f9fa;
  transition: transform 0.2s, box-shadow 0.2s;
}

.info-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.info-label {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  color: #666;
  font-size: 0.9em;
}

.info-label i {
  margin-right: 8px;
  width: 20px;
  color: #3498db;
}

.info-value {
  font-size: 1.1em;
  color: #2c3e50;
  font-weight: 500;
  word-break: break-all;
}

.account-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.action-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.action-btn i {
  font-size: 1.1em;
}

.edit-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: white;
}

.edit-btn:hover {
  background: linear-gradient(135deg, var(--primary-hover), #0f4183);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.logs-btn {
  background: #2ecc71;
  color: white;
}

.logs-btn:hover {
  background: #27ae60;
}

/* 响应式设计 */
@media (max-width: 600px) {
  .account-page {
    padding: 15px;
  }
  
  .account-card {
    padding: 20px;
  }
  
  .account-info-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .account-actions {
    flex-direction: column;
  }
  
  .action-btn {
    width: 100%;
    justify-content: center;
  }
}

/* 商品列表专属样式 */
.manage-product-card {
    width: 280px;
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.manage-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* 商品列表专属布局 */
#shop-product-list.products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 0 20px;
}

/* 其他页面的商品列表保持原样 */
.products:not(#shop-product-list) {
    justify-content: flex-start;
    padding: 0;
}

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

.product-name {
    font-size: 1.1em;
    margin: 0;
    color: #333;
}

.product-type-tag {
    background: #e8f4ff;
    color: #1a73e8;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
}

.image-container {
    position: relative;
    width: 100%;
    height: 200px;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.product-image {
    max-width: 90%;
    max-height: 90%;
    padding: 10px;
    background: white;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.quantity-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.85em;
    backdrop-filter: blur(2px);
}

.product-description {
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.product-description.no-description {
    color: #999;
    background: #f5f5f5;
}

.product-description i {
    color: #888;
    margin-top: 2px;
}

.meta-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: #666;
    margin: 8px 0;
}

.server-line {
    background: #e9ecef;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.transaction-line {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.transaction-line > div {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.transaction-line i {
  font-size: 1.2em;
  color: #666;
}

/* 图片容器 */
.image-container {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 15px;
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  background: white;
  border-radius: 8px;
  box-sizing: border-box;
}

/* 信息卡片 */
.info-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 12px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.info-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.info-content {
    text-align: center;
    line-height: 1.3;
}

.info-content label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.9em;
    color: #666;
}

.info-content span {
    display: block;
    font-weight: 500;
    font-size: 0.95em;
}

/* 调整交易信息布局 */
.transaction-line {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 15px;
}

/* 购买按钮 */
.admin-buy-btn {
  background: linear-gradient(135deg, #F44336, #e53935);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 80%;
  max-width: 200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 操作按钮优化 */
.product-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 10px 0;
  margin-top: auto; /* 确保按钮始终在卡片底部 */
}

.edit-btn, .delete-btn {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9em;
  transition: all 0.2s ease;
}

.edit-btn {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
}

.delete-btn {
  background: linear-gradient(135deg, #F44336, #e53935);
  color: white;
}

/* 无描述样式 */
.product-description.no-description {
  color: #999;
  background: #f5f5f5;
}

.product-description.no-description i {
  color: #ccc;
}

/* 统一卡片尺寸 */
.manage-product-card {
  width: 280px; /* 固定宽度 */
  min-height: 420px; /* 最小高度 */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* 调整图片容器 */
.image-container {
  width: 100%;
  height: 200px;
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 新增图片容器样式 */
.image-container {
position: relative;
width: 100%;
height: 200px;
background: #f8f9fa;
border-radius: 8px;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 15px;
}

/* 图片悬停遮罩效果 */
.image-container:hover .product-image {
transform: scale(1.05);
}

.product-image {
transition: transform 0.3s ease;
max-width: 90%;
max-height: 90%;
padding: 10px;
background: white;
border-radius: 8px;
}

/* 商品卡片容器 */
.manage-product-card {
  width: 280px;
  background: white;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.manage-product-card:hover {
transform: translateY(-3px);
box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* 图片和数量容器 */
.image-quantity-container {
  position: relative;
  margin-bottom: 10px;
}

.quantity-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 15px;
  font-size: 0.85em;
  backdrop-filter: blur(2px);
}

/* 商品标题 */
.product-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.product-name {
  font-size: 1.1em;
  margin: 0;
  color: #333;
}

.product-type-tag {
  background: #e8f4ff;
  color: #1a73e8;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8em;
}

/* 元信息 */
.meta-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85em;
  color: #666;
  margin: 8px 0;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 服务器标签 */
.server-line {
  background: #f0f2f5;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
}

/* 信息卡片容器 */
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.info-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 8px;
  text-align: center;
}

/* 操作按钮 */
.product-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 10px 0;
  margin-top: auto; /* 确保按钮始终在卡片底部 */
}

.edit-btn, .delete-btn {
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  font-size: 0.9em;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* 商品列表容器 */
#manage-product-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

/* 商品卡片容器 */
.manage-product-card {
  width: calc(20% - 15px); /* 5列布局 */
  min-height: auto;
  margin: 0;
}

/* 响应式布局 */
@media screen and (max-width: 1600px) {
    .manage-product-card { width: calc(25% - 15px); }
}
@media screen and (max-width: 1200px) {
    .manage-product-card { width: calc(33.333% - 15px); }
}
@media screen and (max-width: 900px) {
    .manage-product-card { width: calc(50% - 15px); }
}
@media screen and (max-width: 600px) {
    .manage-product-card { width: 100%; }
}

.search-filter-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

#productSearch, #filterType, #filterServer {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
}

#productSearch { width: 400px; }
#filterType, #filterServer { width: 200px; }

#productSearch:focus, 
#filterType:focus, 
#filterServer:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
    outline: none;
}

/* 菜单分组样式 */
.menu-group {
    margin-bottom: 25px;
}

.group-header {
    padding: 12px 20px;
    color: #666;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.group-header i {
    color: #1a73e8;
    width: 20px;
    text-align: center;
}

.menu-group + .menu-group {
    margin-top: 20px;
}

/* 欢迎页样式 */
.welcome-container {
  display: flex;
  flex-direction: column; /* 垂直排列 */
  justify-content: center;
  align-items: center;
  height: calc(100vh - 120px); /* 调整高度计算 */
  text-align: center;
  overflow: auto; /* 允许内容滚动 */
}

/* 调整标题与按钮的间距 */
#welcome-title {
  margin-bottom: 30px; /* 增加下边距 */
}

/* 按钮容器保持原有样式 */
.welcome-buttons {
  margin-top: 0; /* 移除原来的上边距 */
}

#welcome-title {
  font-size: 3rem;
  color: #2c3e50;
  animation: fadeIn 1s ease-in;
}

#welcome-shop-name {
  color: #1a73e8;
  margin-left: 15px;
  font-weight: 700;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 欢迎页按钮样式 */
.welcome-buttons {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  justify-content: center;
  animation: smoothAppear 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  opacity: 0;
  animation-delay: 1s; /* 增加延迟确保标题动画完成 */
}

@keyframes smoothAppear {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.welcome-btn {
  padding: 14px 32px;
  border-radius: 12px; /* 更大的圆角 */
  font-size: 1.1rem;
  font-weight: 500; /* 中等字重 */
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: none; /* 移除边框 */
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); /* 微妙阴影 */
}

/* 修改后的按钮样式 */
.welcome-btn {
  background: rgba(255, 255, 255, 0.15); /* 半透明白色背景 */
  backdrop-filter: blur(10px); /* 毛玻璃效果 */
  border: 1px solid rgba(255, 255, 255, 0.2); /* 微妙边框 */
  color: #2c3e50; /* 与标题同色 */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* 注册按钮 */
.welcome-btn.register {
  background: #1a73e8; /* 注册按钮使用蓝色 */
  color: white;
}

/* 登录按钮 */
.welcome-btn.login {
  background: #2c3e50; /* 登录按钮使用深灰色 */
  color: white;
}

/* 悬停效果 */
.welcome-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px -1px rgba(0, 0, 0, 0.1);
}

/* 注册按钮悬停 */
.welcome-btn.register:hover {
  background: #1557b0; /* 更深的蓝色 */
}

/* 登录按钮悬停 */
.welcome-btn.login:hover {
  background: #1a1a1a; /* 更深的灰色 */
}

/* 移动端适配 */
@media (max-width: 768px) {
  .welcome-btn {
    padding: 12px 28px;
    font-size: 1rem;
    border-radius: 10px;
  }
  
  .welcome-buttons {
    flex-direction: column;
    gap: 12px;
    max-width: 280px;
  }
}

/* 当加载具体内容时恢复滚动 */
#dynamic-content[style*="display: block"] ~ footer + body {
  overflow: auto;
}

/* 添加禁用按钮样式 */
.retrieve-btn.disabled {
    background-color: #95a5a6 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

/* 复用取回按钮的禁用样式 */
.list-btn.disabled {
    background-color: #95a5a6 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.total-line {
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
}

.total-line .deduction-label i {
    color: #e67e22;
    margin-right: 6px;
    vertical-align: middle;
}

.deduction-label i {
    margin-right: 6px;
    width: 18px;
    text-align: center;
}

.deduction-total i {
    margin-right: 6px;
    vertical-align: middle;
}

