@font-face {
  font-family: 'WeChatSans';
  src: url('fonts/WeChat Sans SS-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
} 


body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f2f2f2;
  margin: 0;
  padding: 0;
}

.control-panel {
  background: white;
  border-radius: 16px;
  padding: 20px;
  margin: 20px auto;
  max-width: 400px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.control-item {
  margin-bottom: 16px;
}

.control-item label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #333;
}

.control-item input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 15px;
  background: #fafafa;
  color: #000;   /* 新增 */
}

.control-item input:focus {
  border-color: #07c160;
  outline: none;
  background: white;
}

.preview-note {
  font-size: 12px;
  color: #999;
  text-align: center;
  margin: 12px 0 0;
}

.file-choose-btn {
  background: #e0e0e0;
  border: none;
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
  white-space: nowrap;
}

.file-choose-btn:hover {
  background: #d0d0d0;
}

#fileNameDisplay {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 150px;
}

.tweak-panel {
  background: white;
  border-radius: 24px;
  padding: 20px;
  margin: 16px 0 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.tweak-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-weight: 600;
  color: #1e293b;
}

.tweak-header span {
  font-size: 22px;
}

.tweak-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 400px;
  padding-right: 6px;
  margin-bottom: 20px;
  overflow-y: auto;
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;    /* IE/Edge */
}

.tweak-grid::-webkit-scrollbar {
  display: none;
}

.tweak-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tweak-item label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  display: flex;
  justify-content: space-between;
}

.tweak-item label span {
  font-weight: 400;
  color: #07c160;
  background: #f0fdf4;
  padding: 2px 10px;
  border-radius: 30px;
  font-size: 12px;
}

.tweak-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tweak-row input[type=range] {
  flex: 1;
  height: 5px;
  -webkit-appearance: none;
  background: #e2e8f0;
  border-radius: 10px;
}

.tweak-row input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: #07c160;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.tweak-row .value-badge {
  min-width: 60px;
  text-align: right;
  font-size: 13px;
  font-weight: 500;
  color: #0f172a;
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: 30px;
}

.reset-style-btn {
  width: 100%;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 40px;
  padding: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.reset-style-btn:hover {
  background: #e2e8f0;
}

.pay-card {
  width: 360px;
  height: 640px;
  background: white;
  border-radius: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  --header-left: -8px;
  --header-top: 0px;
  --header-width: 130px;
  --avatar-left: -15px;
  --avatar-top: -2px;
  --avatar-size: 50px;
  --avatar-margin-bottom: 12px;
  --nickname-left: 1px;
  --nickname-top: 0px;
  --nickname-font-size: 15px;
  --realname-left: 0px;
  --realname-top: 0px;
  --realname-font-size: 15px;
  --amount-left: -4px;
  --amount-top: -20px;
  --symbol-left: 10px;
  --symbol-top: -5.5px;
  --integer-left: 0px;
  --integer-top: 0px;
  --point-left: 0px;
  --point-top: 0px;
  --decimal-left: 0px;
  --decimal-top: 0px;
  --amount-integer-size: 45px;
  --amount-point-size: 45px;
  --amount-decimal-size: 45px;
  --amount-point-margin-left: 2px;
  --amount-point-margin-right: 2px;
  --button-left: 0px;
  --button-top: 0px;
  --button-width: 53%;
  --button-font-size: 16px;
  --button-padding-y: 12px;
  --button-padding-x: 16px;
  --button-margin-bottom: 60px;
}

/* 模拟全屏样式 */
.pay-card.fullscreen { /* 支付卡全屏样式 */
  position: fixed !important; /* 使用固定定位，使元素相对于视窗定位 */
  top: 0 !important; /* 顶部对齐视窗顶部 */
  left: 0 !important; /* 左侧对齐视窗左侧 */
  width: 100% !important; /* 宽度设置为视窗宽度的100% */
  height: 100% !important; /* 设置元素高度为父元素的100%，使用!important确保优先级 */
  margin: 0 !important; /* 设置元素外边距为0，使用!important确保优先级 */
  padding: 20px !important; /* 设置元素内边距为20px，使用!important确保优先级 */
  z-index: 10000 !important; /* 设置元素的堆叠顺序为10000，使用!important确保优先级 */
  background: white; /* 设置元素背景色为白色 */
  border-radius: 0 !important; /* 设置元素边框圆角为0，使用!important确保优先级 */
  box-shadow: none !important; /* 移除元素的阴影效果，使用!important确保优先级 */
  overflow-y: auto; /* 设置垂直方向内容溢出时显示滚动条 */
}

/* 静态水印 */
.static-watermark {
  top: 300px;
  bottom: -100px;
  left: 170px;
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-30deg);
}

.snow-canvas { 
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.header-image-container {
  width: 38.8%;
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  margin-top: 19px;
}

.header-image {
  position: relative;
  left: var(--header-left);
  top: var(--header-top);
  width: var(--header-width);
  height: auto;
  display: block;
}

.payee-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 20px;
  margin-bottom: 30px;
}

.payee-avatar {
  position: relative;
  left: var(--avatar-left);
  top: var(--avatar-top);
  width: var(--avatar-size);
  height: var(--avatar-size);
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 28px;
  color: #b0b0b0;
  margin-bottom: var(--avatar-margin-bottom);
}

.payee-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.payee-name-row {
  display: flex;
  align-items: baseline;
  gap: 0px;
  justify-content: center;
}

.payee-nickname {
  position: relative;
  left: var(--nickname-left);
  top: var(--nickname-top);
  font-weight: 400;
  font-size: var(--nickname-font-size);
  color: #1f1f1f;
  line-height: 1.2;
}

.payee-realname {
  position: relative;
  left: var(--realname-left);
  top: var(--realname-top);
  font-weight: 400;
  font-size: var(--realname-font-size);
  color: #1f1f1f;
  line-height: 1.2;
}

.pay-amount {
  position: relative;
  left: var(--amount-left);
  top: var(--amount-top);
  margin-bottom: 30px;
}

.amount-number {
  display: flex;
  align-items: center;
  line-height: 1;
}

.currency-symbol {
  font-size: 42px;
  font-weight: 500;
  color: #000;
  margin-right: 4px;
  position: relative;
  left: var(--symbol-left);
  top: var(--symbol-top);
  font-family: 'WeChatSans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.amount-integer,
.amount-decimal-point,
.amount-decimal {
  font-family: 'WeChatSans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.amount-integer {
  font-size: var(--amount-integer-size);
  color: #000;
  line-height: 1;
  position: relative;
  left: var(--integer-left);
  top: var(--integer-top);
}

.amount-decimal-point {
  font-size: var(--amount-point-size);
  color: #000;
  line-height: 1;
  margin-left: var(--amount-point-margin-left);
  margin-right: var(--amount-point-margin-right);
  position: relative;
  left: var(--point-left);
  top: var(--point-top);
}

.amount-decimal {
  font-size: var(--amount-decimal-size);
  color: #000;
  line-height: 1;
  position: relative;
  left: var(--decimal-left);
  top: var(--decimal-top);
}

.action-button {
  position: relative;
  left: var(--button-left);
  top: var(--button-top);
  width: var(--button-width);
  font-size: var(--button-font-size);
  padding: var(--button-padding-y) var(--button-padding-x);
  background: hsl(0, 0%, 95%);
  color: #000;
  border: none;
  border-radius: 8px;
  margin: auto auto var(--button-margin-bottom) auto;
  cursor: default;
  display: block;
  text-align: center;
  box-sizing: border-box;
}

.footer-actions {
  display: flex;
  gap: 8px;
  max-width: 400px;
  margin: 12px auto 30px;
}

.footer-actions a,
.footer-actions button {
  flex: 1;
  border: none;
  border-radius: 999px;
  padding: 12px 6px;
  font-size: 14px;
  font-weight: 500;
  color: #2c3e50;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: linear-gradient(145deg, #f0f0f0, #d9d9d9);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15), 0 1px 2px rgba(0,0,0,0.1), inset 0 1px 2px rgba(255,255,255,0.8);
}

.footer-actions a:hover,
.footer-actions button:hover {
  background: linear-gradient(145deg, #e8e8e8, #d0d0d0);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2), 0 2px 4px rgba(0,0,0,0.1), inset 0 1px 2px rgba(255,255,255,0.8);
}

.footer-actions a:active,
.footer-actions button:active {
  background: linear-gradient(145deg, #d0d0d0, #e8e8e8);
  box-shadow: inset 0 4px 8px rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.05);
  transform: scale(0.98);
}

#userIdDisplay {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: #ffffff;
  color: rgb(0, 0, 0);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 50;
}

#userIdDisplay.hidden {
  display: none;
}

@media (max-width: 600px) {
  body {
      padding: 0 !important;
  }
  .app-container {
      max-width: 100% !important;
      padding: 0 !important;
  }
}

/* 可拖拽组件整体样式：鼠标手型，拖拽时指针变移动 */
.draggable-component {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.draggable-component:active {
  cursor: grabbing;
}

/* 水印容器：全屏覆盖卡片 */
.static-watermark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;        /* 让水印不干扰点击 */
  z-index: 10;
  background-repeat: repeat;   /* 平铺整个区域 */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Ctext x='50%25' y='50%25' font-size='16' fill='rgba(150,150,150,0.35)' transform='rotate(-30, 60, 60)' text-anchor='middle' dominant-baseline='middle' font-family='system-ui, sans-serif'%3E开通会员去水印%3C/text%3E%3C/svg%3E");
  background-size: 120px 120px; /* 每个水印的尺寸，可调整疏密 */
  animation: driftWatermark 30s linear infinite; /* 移动动画 */
}

/* 水印整体飘移动画 */
@keyframes driftWatermark {
  0% {
      background-position: 0 0;
  }
  100% {
      background-position: 120px 120px; /* 移动距离与背景图尺寸一致，实现无缝循环 */
  }
}

/* 管理员页面固定头部 */
.admin-header {
  position: sticky;
  top: 0;
  background: white;
  z-index: 20;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* 用户列表项 */
.user-list-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: white;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
  border: 1px solid #f0f0f0;
}
.user-list-item:hover {
  background: #f9f9f9;
}
.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  color: #555;
  margin-right: 12px;
  object-fit: cover;
}
.user-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.user-info {
  flex: 1;
}
.user-name {
  font-weight: 600;
  font-size: 16px;
}
.user-role-badge {
  font-size: 12px;
  background: #e9ecef;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 8px;
  color: #495057;
}

/* 订单卡片 */
.order-card {
  background: white;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: 0.2s;
}
.order-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
  color: #6c757d;
}
.order-no {
  font-weight: 600;
  color: #212529;
}
.order-amount {
  font-weight: 700;
  color: #dc3545;
}
.order-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}
.order-detail-item {
  display: flex;
  flex-direction: column;
}
.order-detail-label {
  font-size: 12px;
  color: #6c757d;
}
.order-detail-value {
  font-weight: 500;
}
.order-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.order-actions button {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  border: none;
}
.confirm-order {
  background: #28a745;
  color: white;
}
.cancel-order {
  background: #dc3545;
  color: white;
}

/* 管理员后台固定尺寸与滚动 */
#adminPage {
  display: none;           /* 默认隐藏，仅管理员可见 */
  flex-direction: column;
  height: calc(100vh - 2rem);
  max-height: calc(100vh - 2rem);
  overflow: hidden;
}

#adminPage .admin-header {
  flex-shrink: 0;               /* 头部不压缩 */
}

#adminPage #ordersTab,
#adminPage #usersTab,
#adminPage #userDetailPanel {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

/* 订单卡片背景（浅色，可加阴影） */
.order-card {
  background-color: #f3dcf6;
  border-radius: 16px;
  margin-bottom: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.2s;
}
.order-card:last-child {
  margin-bottom: 0;
}

/* 用户列表项背景（浅灰，交替可使用 nth-child） */
.user-list-item {
  background-color: #ffffff;   /* 基础背景 */
  border-radius: 12px;
  margin-bottom: 8px;
  padding: 12px 16px;
  transition: background 0.2s;
}
.user-list-item:hover {
  background-color: #ffffff;
}
/* 交替背景（可选） */
/* .user-list-item:nth-child(even) {
  background-color: #e0e4d2;
} */

/* 用户名片背景（柔和浅蓝色） */
#userDetailPanel .bg-white {
  background-color: #ffffff !important;
}
#userDetailPanel .bg-white .bg-white {
  background-color: #ffffff !important;  /* 内部卡片保持白色 */
}

/* ========== 为后台管理卡片添加边框 ========== */

/* 订单卡片边框 */
.order-card {
  border: 1px solid #000000;      /* 浅灰色边框 */
  border-radius: 20px;            /* 保持圆角 */
  background-color: #ffffff;
  transition: box-shadow 0.2s;
}
.order-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* 用户列表项边框 */
.user-list-item {
  border: 1px solid #d49cf4;
  border-radius: 12px;
  background-color: #f9f9f9;
}
/* .user-list-item:nth-child(even) {
  background-color: #3b1e1e;
} */
.user-list-item:hover {
  background-color: #f0f0f0;
  border-color: #cbd5e0;
}

/* 用户名片外层容器边框（浅蓝色背景区域） */
#userDetailPanel .bg-white {
  border: 1px solid #8e44d9;       /* 柔和蓝灰边框 */
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* 用户名片内部白色卡片边框（如果存在） */
#userDetailPanel .bg-white .bg-white {
  border: 1px solid #ffffff;
  border-radius: 16px;
}


/* 订单卡片相对定位，使X按钮可绝对定位 */
.order-card {
  position: relative;
}

/* 已处理消息样式（可选） */
.processed-message {
  padding: 8px 0;
  font-weight: bold;
}

/* 右上角关闭按钮样式 */
.close-order-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.1);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 5;
}
.close-order-btn:hover {
  background: rgba(0,0,0,0.2);
}

.text-yellow-500 {
  color: #f59e0b;
}


/* ========== 编辑资料弹窗（卡住遮罩不关闭） ========== */
.edit-profile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}
.edit-profile-card {
  position: relative;
  width: 85vw;
  max-width: 340px;
  background: #fff;
  border-radius: 24px;
  padding: 24px 20px 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  animation: editSlideIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes editSlideIn {
  from { opacity: 0; transform: translate(-50%,-50%) scale(0.85); }
  to   { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
.edit-profile-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  background: rgba(0,0,0,0.06);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #666;
  cursor: pointer;
  z-index: 2;
}
.edit-profile-avatar-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #f0f0f0;
  margin: 10px auto 4px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.edit-profile-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.edit-profile-avatar-cam {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
}
.edit-profile-hint {
  font-size: 12px;
  color: #999;
  text-align: center;
  margin-bottom: 16px;
}
.edit-profile-field {
  margin-bottom: 14px;
}
.edit-profile-field label {
  display: block;
  font-size: 13px;
  color: #888;
  margin-bottom: 6px;
}
.edit-profile-field input {
  width: 100%;
  padding: 12px 14px;
  background: #f5f5f5;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  color: #333;
  outline: none;
  box-sizing: border-box;
}
.edit-profile-save-btn {
  width: 100%;
  padding: 14px;
  background: #07c160;
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.5px;
  margin-top: 6px;
}

/* ========== 套餐选择页重设计 ========== */
.pricing-page {
  padding: 20px 16px;
  background: #f7f7f7;
  min-height: 100vh;
}
.pricing-card {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.2s;
}
.pricing-card.selected {
  border-color: #07c160;
  box-shadow: 0 0 0 2px rgba(7,193,96,0.15);
}
.pricing-badge {
  background: #ff3b30;
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 12px;
}
.pricing-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #000;
}
.pricing-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}
.pricing-price {
  font-size: 36px;
  font-weight: 700;
  color: #000;
}
.pricing-unit {
  font-size: 14px;
  color: #666;
}
.pricing-original {
  text-decoration: line-through;
  color: #999;
  font-size: 14px;
  margin-bottom: 12px;
}
.pricing-features {
  font-size: 13px;
  color: #666;
  line-height: 1.8;
}
.pricing-bottom-btn {
  position: sticky;
  bottom: 20px;
  width: 100%;
  padding: 15px;
  background: #07c160;
  color: #fff;
  border: none;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}
.pricing-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-size: 16px;
  color: #000;
  padding: 8px 0;
  margin-bottom: 16px;
  cursor: pointer;
}


/* ============================================
 极光暗夜 · 首页 & 个人中心专属主题 (v6.0)
 作用域限定，不影响其他页面
 ============================================ */

/* ---------- 设计令牌（仅用于首页和个人中心） ---------- */
#homePage.luxe-home,
#minePage.luxe-profile {
--aurora-bg: #0b0d17;
--aurora-card: rgba(255,255,255,0.03);
--aurora-card-hover: rgba(255,255,255,0.06);
--aurora-border: rgba(255,255,255,0.06);
--aurora-text: #eef2ff;
--aurora-text-secondary: rgba(238,242,255,0.6);
--aurora-text-muted: rgba(238,242,255,0.35);
--accent-cyan: #00e5a0;
--accent-purple: #a855f7;
--accent-gold: #fbbf24;
--accent-red: #ef4444;
--radius-card: 20px;
--radius-btn: 14px;
--space-lg: 20px;
--space-xl: 24px;
}

/* ---------- 全局重置（仅影响这两个页面内） ---------- */
#homePage.luxe-home,
#minePage.luxe-profile {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
color: var(--aurora-text);
line-height: 1.6;
}

/* ---------- 极光背景 ---------- */
#homePage .aurora-light {
position: fixed;
top: 0; left: 0; width: 100%; height: 100%;
pointer-events: none; z-index: 0; overflow: hidden;
}
#homePage .light {
position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.15;
animation: auroraDrift 25s linear infinite;
}
#homePage .light-1 { width: 500px; height: 500px; background: var(--accent-cyan); top: 10%; left: -10%; animation-duration: 22s; }
#homePage .light-2 { width: 450px; height: 450px; background: var(--accent-purple); top: 40%; right: -15%; animation-duration: 28s; }
#homePage .light-3 { width: 400px; height: 400px; background: var(--accent-gold); bottom: 15%; left: 30%; animation-duration: 30s; }
@keyframes auroraDrift {
0% { transform: translate(0,0) scale(1); }
50% { transform: translate(60px,-40px) scale(1.1); }
100% { transform: translate(0,0) scale(1); }
}

/* ---------- 卡片玻璃态 ---------- */
/* 头像容器需要相对定位，让皇冠可以绝对定位在它上面 */
.user-avatar {
  position: relative;
}
#homePage .card,
#minePage .card {
background: var(--aurora-card);
border-radius: var(--radius-card);
padding: var(--space-lg);
border: 1px solid var(--aurora-border);
box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 8px 32px rgba(0,0,0,0.4);
position: relative; z-index: 1;
transition: all 0.3s cubic-bezier(0.19,1,0.22,1);
overflow: hidden;
}
#homePage .card::after,
#minePage .card::after {
content: ''; position: absolute; inset: 0; border-radius: var(--radius-card); opacity: 0;
pointer-events: none;
box-shadow: 0 0 20px 2px var(--accent-cyan); transition: opacity 0.5s ease;
}
#homePage .card:hover,
#minePage .card:hover {
transform: translateY(-2px);
background: var(--aurora-card-hover);
box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 16px 48px rgba(0,0,0,0.5);
}
#homePage .card.light-active::after,
#minePage .card.light-active::after { opacity: 1; }
#homePage .glass-inset::before,
#minePage .glass-inset::before {
content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
pointer-events: none;
background: rgba(255,255,255,0.06); border-radius: var(--radius-card); z-index: 2;
}

/* ---------- 布局 ---------- */
#homePage { position: relative; z-index: 2; }
#minePage { position: relative; z-index: 2; background: var(--aurora-bg); min-height: 100vh; }

/* ---------- 顶部栏 ---------- */
#homePage .luxe-header,
#minePage .luxe-header {
display: flex; justify-content: space-between; align-items: center;
padding: 0; margin-bottom: var(--space-xl); color: var(--aurora-text);
}
#homePage .luxe-header .luxe-logo { font-size: 22px; font-weight: 700; }

/* ---------- 字体层级 ---------- */
#homePage .text, #minePage .text { font-size: 15px; font-weight: 400; }
#homePage .desc, #minePage .desc { font-size: 13px; font-weight: 300; color: var(--aurora-text-secondary); }
#homePage .tip, #minePage .tip { font-size: 11px; font-weight: 300; color: var(--aurora-text-muted); }

/* ---------- 间距 ---------- */
#homePage .gap, #minePage .gap { margin-bottom: var(--space-xl); }
#homePage .gap-sm, #minePage .gap-sm { margin-bottom: var(--space-lg); }

/* ---------- 按钮 ---------- */
#homePage .btn, #minePage .btn {
padding: 8px 16px; border-radius: var(--radius-btn); border: none;
font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s;
}
#homePage .btn-primary, #minePage .btn-primary { background: rgba(0,229,160,0.1); color: var(--accent-cyan); }
#homePage .btn:active, #minePage .btn:active { transform: scale(0.97); }

/* ---------- 双列网格 ---------- */
#homePage .grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }

/* ---------- Tab 栏 ---------- */
#homePage .luxe-tab-bar {
display: flex; background: var(--aurora-card); border-radius: 999px; padding: 4px;
position: relative; margin-bottom: var(--space-lg);
}
#homePage .luxe-tab-item {
flex: 1; text-align: center; padding: 8px 0; font-size: 15px; font-weight: 500;
cursor: pointer; color: var(--aurora-text-secondary); position: relative; z-index: 2;
transition: color 0.3s;
}
#homePage .luxe-tab-item.active { color: var(--aurora-text); }
#homePage .tab-slider {
position: absolute; width: 33.33%; height: 100%; background: rgba(255,255,255,0.08);
border-radius: 999px; top: 0; left: 0;
transition: left 0.3s cubic-bezier(0.19,1,0.22,1);
}

/* ---------- VIP 横幅 ---------- */
#homePage .vip-banner {
background: linear-gradient(90deg, rgba(168,85,247,0.1), rgba(0,229,160,0.1));
border: 1px solid rgba(0,229,160,0.4); border-radius: var(--radius-card);
display: flex; justify-content: space-between; align-items: center; padding: 12px 16px;
}

/* ---------- 个人中心专属 ---------- */
#minePage .user-avatar {
width: 80px; height: 80px; border-radius: 50%;
background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center;
font-size: 32px; margin: 0 auto var(--space-lg);
box-shadow: 0 0 20px rgba(0,229,160,0.3); border: 2px solid var(--accent-cyan);
}
#minePage .user-info { text-align: center; margin-bottom: var(--space-xl); }
#minePage .edit { color: var(--accent-cyan); font-size: 13px; cursor: pointer; }
#minePage .vip-card { border: 1px solid var(--accent-gold); }
#minePage .menu-item {
display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-size: 15px;
}
#minePage .logout { text-align: center; color: var(--accent-red); font-size: 15px; padding: var(--space-lg); cursor: pointer; }

/* ========== 极光暗夜 · 顶部导航栏 ========== */
#homePage .luxe-top-nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  display: flex;
  align-items: center;
  background: var(--aurora-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--aurora-border);
  padding: 0 16px;
  height: 44px;
  position: sticky;
}

#homePage .top-nav-item {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--aurora-text-secondary);
  cursor: pointer;
  transition: color 0.3s;
  position: relative;
  z-index: 2;
  line-height: 44px;
}

#homePage .top-nav-item.active {
  color: var(--accent-cyan);
  font-weight: 600;
}

#homePage .top-nav-slider {
  position: absolute;
  bottom: 0;
  height: 3px;
  background: var(--accent-cyan);
  border-radius: 2px;
  transition: left 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), width 0.3s ease;
  z-index: 1;
}

/* ========== 全局禁止文本复制（主页 + 弹窗） ========== */
#homePage, #homePage * {
  -webkit-user-select: none;
  user-select: none;
}
#homePage input,
#homePage textarea,
#homePage [contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
}
.modal, .modal * {
  -webkit-user-select: none;
  user-select: none;
}

/* ========== 极光暗夜 · 底部固定 Tab 栏 ========== */
#homePage .bottom-tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--aurora-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--aurora-border);
  display: flex;
  justify-content: space-around;
  padding: 8px 0 env(safe-area-inset-bottom, 8px);
}
#homePage .bottom-tab-item {
  flex: 1;
  text-align: center;
  color: var(--aurora-text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
#homePage .bottom-tab-item.active {
  color: var(--accent-cyan);
}
#homePage .bottom-tab-item .tab-icon {
  font-size: 20px;
}

#homePage .bottom-tab-item .tab-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

/* 滑动内容容器（仅负责横向切换，不参与垂直滚动） */
#homePage .tab-content-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
}
#homePage .tab-content-wrapper {
  display: flex;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
#homePage .tab-panel {
  min-width: 100%;
  box-sizing: border-box;
  padding: 20px var(--space-lg) var(--space-xl);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  height: calc(100vh - env(safe-area-inset-top, 0px) - 44px - 64px);
  scrollbar-width: none;
-ms-overflow-style: none;
}
#homePage .tab-panel::-webkit-scrollbar {
  display: none;
}

/* 推荐和工具面板：内容少时亦可上划回弹（隐藏滚动条，柔软弹性） */
#homePage #recommendTabPanel,
#homePage #toolsTabPanel {
  min-height: calc(100vh - 44px - 64px + 1px) !important; /* 比视口高1px，允许微小滚动 */
  overflow-y: auto !important;
  scrollbar-width: none;              /* Firefox 隐藏滚动条 */
  -ms-overflow-style: none;           /* IE/Edge 隐藏滚动条 */
}
/* WebKit 隐藏滚动条 */
#homePage #recommendTabPanel::-webkit-scrollbar,
#homePage #toolsTabPanel::-webkit-scrollbar {
  display: none;
}


/* ========== 极光暗夜 · 全局点击反馈强化 ========== */
#homePage .card,
#minePage .card,
#homePage .btn,
#minePage .btn,
#homePage .bottom-tab-item,
#homePage .luxe-tab-item,
#minePage .menu-item,
#minePage .edit,
#homePage .luxe-icon-btn,
#minePage .luxe-header div[onclick] {
cursor: pointer;
transition: transform 0.1s ease, background 0.2s ease, opacity 0.2s ease;
}

/* 按压缩放效果 */
#homePage .card:active,
#minePage .card:active,
#homePage .btn:active,
#minePage .btn:active,
#homePage .bottom-tab-item:active,
#minePage .menu-item:active,
#minePage .edit:active {
transform: scale(0.97);
}

/* 菜单项点击背景变化 */
#minePage .menu-item:active,
#homePage .bottom-tab-item:active {
background: rgba(255,255,255,0.05);
}

/* ========== 高级功能卡片专属样式 ========== */
#homePage .feature-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  gap: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}
#homePage .feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.15);
  box-shadow: var(--shadow-elevated);
}
#homePage .feature-bg {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  opacity: 0.6;
  z-index: 0;
}
#homePage .feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
#homePage .feature-text {
  position: relative;
  z-index: 1;
}
#homePage .feature-glow {
  position: absolute;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
  top: -20px;
  right: -20px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s;
}
#homePage .feature-card:hover .feature-glow {
  opacity: 0.5;
}

/* ========== 个人中心滑动面板 ========== */
#minePage .mine-slide-viewport {
  overflow: hidden;
  position: relative;
  width: 100%;
}
#minePage .mine-slide-wrapper {
  display: flex;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
#minePage .mine-panel {
  min-width: 100%;
  box-sizing: border-box;
  padding: 0 var(--space-lg);
}

/* 小圆点指示器 */
#minePage .mine-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: var(--space-lg) 0;
}
#minePage .mine-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--aurora-text-muted);
  transition: background 0.3s;
}
#minePage .mine-dot.active {
  background: var(--accent-cyan);
}

/* 紧凑字体 */
#minePage .user-info {
  transform: scale(0.95);
  transform-origin: top center;
}
#minePage .menu-item {
  font-size: 14px;
}

/* 确保个人中心的底部 tab 栏显示 */
#minePage #mineBottomTabBar {
  display: flex !important;
}

/* 个人中心面板垂直居中 */
#mineTabPanel {
  height: 100vh; /* 使面板至少撑满视口高度 */
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 20px);
  padding-bottom: 80px; /* 为底部Tab栏留空间 */
}

/* 隐藏不再使用的旧个人中心页面（如果存在） */
#minePage {
  display: none !important;
}

/* 页面内容整体下移 20px，底部 Tab 栏不受影响 */
#homePage > .luxe-header,
#homePage > .tab-content-viewport,
#minePage > .mine-slide-viewport,
#adminPage .admin-header + div {
  padding-top: 20px !important;
}

/* ========== 尊享会员专属 ========== */
body.vip-active #mineTabPanel .mine-centered {
  position: relative;
  background: linear-gradient(145deg, #1a1a2e 0%, #2d2d44 100%);
  border-radius: 28px;
  padding: 20px 16px 24px;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.25), inset 0 0 10px rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.35);
  overflow: hidden;
}

body.vip-active #mineTabPanel .mine-centered::before {
  content: '';
  position: absolute;
  top: -30%; right: -30%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,215,0,0.15) 0%, transparent 70%);
  animation: vipGlow 4s ease-in-out infinite alternate;
}

@keyframes vipGlow {
  from { transform: scale(1); opacity: 0.6; }
  to   { transform: scale(1.2); opacity: 1; }
}

/* 皇冠 */
body.vip-active #mineTabPanel .user-avatar::after {
  content: '👑';
  position: absolute;
  top: -22px; left: 50%; transform: translateX(-50%);
  font-size: 18px;
  filter: drop-shadow(0 0 4px gold);
  animation: floatCrown 2s ease-in-out infinite alternate;
}
@keyframes floatCrown {
  from { transform: translateY(0); }
  to   { transform: translateY(-3px); }
}

/* 尊享头像框 */
.vip-avatar {
  border: 3px solid #ffd700 !important;
  box-shadow: 0 0 12px rgba(255,215,0,0.6);
  transition: all 0.3s ease;
}

/* 普通头像框 */
.user-avatar:not(.vip-avatar) {
  border: 2px solid rgba(255,255,255,0.2);
  box-shadow: none;
}

/* 会员卡、金币卡升级 */
body.vip-active #mineTabPanel .vip-card {
  background: linear-gradient(135deg, rgba(255,215,0,0.15) 0%, rgba(255,180,0,0.05) 100%);
  border-color: rgba(255,215,0,0.5);
  box-shadow: 0 4px 15px rgba(255,215,0,0.2);
}

body.vip-active #mineTabPanel .vip-card .text {
  color: #ffd700;
}

/* 按钮金边 */
body.vip-active #mineTabPanel .btn-primary {
  border: 1px solid rgba(255,215,0,0.4);
  background: rgba(255,215,0,0.1);
  color: #ffd700;
}

/* 日/夜切换按钮 */
.vip-theme-btn {
  position: absolute;
  top: 10px; right: 10px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,215,0,0.5);
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: 0.3s;
}

body.day-mode.vip-active #mineTabPanel .mine-centered {
  background: linear-gradient(145deg, #fff8e7 0%, #ffeacc 100%);
  border: 1px solid rgba(180, 130, 0, 0.4);
  box-shadow: 0 0 20px rgba(255,215,0,0.15);
}
body.day-mode.vip-active #mineTabPanel .vip-card {
  background: rgba(255,215,0,0.1);
  border-color: rgba(180,130,0,0.4);
}
body.day-mode.vip-active #mineTabPanel .vip-card .text,
body.day-mode.vip-active #mineTabPanel .btn-primary {
  color: #7a5a00;
}
body.day-mode #mineTabPanel .mine-centered::before {
  background: radial-gradient(circle, rgba(255,215,0,0.06) 0%, transparent 70%);
}

/* 隐藏全局滚动条（确保页面和所有容器都不显示） */
html, body, #homePage, #homePage * {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar,
#homePage::-webkit-scrollbar,
#homePage *::-webkit-scrollbar {
  display: none !important;
}

/* 额外保障 — 强制隐藏各面板滚动条（防止被特指覆盖） */
#homePage .tab-panel {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
#homePage .tab-panel::-webkit-scrollbar {
  display: none !important;
}

/* 确保所有可能的滚动容器都隐藏滚动条 */
.pay-card, 
.pay-card.fullscreen,
.control-panel,
.modal-content,
#adminPage #ordersTab,
#adminPage #usersTab,
#adminPage #userDetailPanel {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.pay-card::-webkit-scrollbar,
.pay-card.fullscreen::-webkit-scrollbar,
.control-panel::-webkit-scrollbar,
.modal-content::-webkit-scrollbar,
#adminPage #ordersTab::-webkit-scrollbar,
#adminPage #usersTab::-webkit-scrollbar,
#adminPage #userDetailPanel::-webkit-scrollbar {
  display: none !important;
}

/* === 终极滚动条隐藏（覆盖 .app-container、html、body 等） === */
html, body {
  overflow: hidden !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
html::-webkit-scrollbar, body::-webkit-scrollbar {
  display: none !important;
}

.app-container, .app-container * {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.app-container::-webkit-scrollbar,
.app-container *::-webkit-scrollbar {
  display: none !important;
}

/* 覆盖之前遗漏的独立页面容器 */
#qqPage, #alipayPage, #mainContent, #customizePage, #tweakPage,
#paymentProcessPage, #bindEmailPage, #plansPage, #adminPage {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
#qqPage::-webkit-scrollbar,
#alipayPage::-webkit-scrollbar,
#mainContent::-webkit-scrollbar,
#customizePage::-webkit-scrollbar,
#tweakPage::-webkit-scrollbar,
#paymentProcessPage::-webkit-scrollbar,
#bindEmailPage::-webkit-scrollbar,
#plansPage::-webkit-scrollbar,
#adminPage::-webkit-scrollbar {
  display: none !important;
}

/* 确保全屏下的完成按钮可点击 */
.pay-card.fullscreen .action-button {
  position: relative !important;
  z-index: 99999 !important;
  pointer-events: auto !important;
}

/* 全屏下确保按钮可点击，canvas/水印不可拦截 */
.pay-card.fullscreen .action-button {
  position: relative !important;
  z-index: 100001 !important;
  pointer-events: auto !important;
}

.pay-card.fullscreen canvas,
.pay-card.fullscreen .static-watermark {
  pointer-events: none !important;
}

/* 修复编辑页按钮被遮挡 */
#customizePage .file-choose-btn {
  position: relative;
  z-index: 1000;
  pointer-events: auto;
}
#customizePage .static-watermark {
  pointer-events: none !important;
}