/* ========== CSS Reset & Base ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.layui-upload-file{display:none;}
:root {
  /* Colors */
  --color-bg: #f7f7f7;
  --color-sidebar: #ffffff;
  --color-white: #ffffff;
  --color-text: #1a1a1a;
  --color-text-secondary: #666666;
  --color-text-muted: #999999;
  --color-primary: #6366f1;
  --color-primary-hover: #4f46e5;
  --color-border: #e5e5e5;
  --color-card-bg: #ffffff;
  --color-overlay: rgba(0, 0, 0, 0.4);

  /* Sidebar */
  --sidebar-width-collapsed: 72px;
  --sidebar-width-expanded: 200px;

  /* Transitions */
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

/* ========== App Layout ========== */
.app-layout {
  display: flex;
  min-height: 100dvh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* ========== Sidebar (PC) ========== */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-width-collapsed);
  background: var(--color-sidebar);
  display: none;
  flex-direction: column;
  z-index: 100;
  transition: width var(--transition-base);
  border-right: 1px solid var(--color-border);
  overflow: hidden;
}

.sidebar.expanded {
  width: var(--sidebar-width-expanded);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  padding: 20px 0 0;
  justify-content: center;
  gap: 10px;
  min-height: 73px;
}

.sidebar.expanded .sidebar-logo {
  justify-content: flex-start;
  padding-left: 23px;
}

.sidebar-logo img,
.sidebar-logo .logo-icon {
    width: 48px;
    height: 52px;
    flex-shrink: 0;
}

.logo-icon {
    width: 48px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-icon img {
  width: 30px;
  height: 30px;
}

.logo-text {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  width: 0;
  overflow: hidden;
  transition: opacity var(--transition-base), width var(--transition-base);
}

.sidebar.expanded .logo-text {
  opacity: 1;
  width: auto;
}

/* Sidebar Navigation */
.sidebar-nav {
  flex: 1;
  padding-top: 35px;
  display: flex;
  flex-direction: column;
}

.sidebar-nav-main {
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  cursor: pointer;
  transition: background var(--transition-base);
  position: relative;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-text-secondary);
}

.sidebar.expanded .nav-item {
  justify-content: flex-start;
  padding-left: 23px;
}

.nav-item:hover {
  background: #f5f3ff;
  color: var(--color-primary);
}

.nav-item.active {
  color: var(--color-primary);
  background: #f5f3ff;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 24px;
  background: var(--color-primary);
  border-radius: 0 3px 3px 0;
}

.nav-item-icon {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-item-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.nav-item-text {
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  width: 0;
  overflow: hidden;
  transition: opacity var(--transition-base), width var(--transition-base);
}

.sidebar.expanded .nav-item-text {
  opacity: 1;
  width: auto;
}

/* Sidebar Bottom */
.sidebar-bottom {
  padding-bottom: 10px;
}

/* Sidebar Toggle Arrow */
.sidebar-toggle {
  position: fixed;
  left: var(--sidebar-width-collapsed);
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 48px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-left: none;
  border-radius: 0 8px 8px 0;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 101;
  transition: left var(--transition-base), box-shadow var(--transition-base);
  box-shadow: 2px 0 6px rgba(0,0,0,0.06);
}

.sidebar-toggle:hover {
  background: #fafafa;
}

.sidebar-toggle svg {
  width: 14px;
  height: 14px;
  stroke: var(--color-text-muted);
  fill: none;
  stroke-width: 2;
  transition: transform var(--transition-base);
}

.sidebar-toggle.expanded {
  left: var(--sidebar-width-expanded);
}

.sidebar-toggle.expanded svg {
  transform: rotate(180deg);
}

/* ========== Main Content ========== */
.main-content {
  flex: 1;
  min-height: 100dvh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* ========== Mobile Header ========== */
.mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  position: sticky;
  top: 0;
  background: var(--color-white);
  z-index: 50;
  border-bottom: 1px solid var(--color-border);
}

.mobile-logo,
.mobile-avatar {
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.mobile-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  border-radius: 18px;
}

.mobile-logo .logo-icon svg {
  width: 22px;
  height: 22px;
}

.mobile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.mobile-avatar svg {
  width: 20px;
  height: 20px;
  fill: white;
}

/* ========== Mobile Bottom TabBar (H5) ========== */
.mobile-tabbar {
  display: none;
}

@media (max-width: 1023px) {
  .mobile-tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background: #ffffff;
    border-top: 1px solid var(--color-border);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.04);
  }

  .mobile-tabbar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 7px 0 6px;
    text-decoration: none;
    color: #999999;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-tabbar-item.active {
    color: #4f6ef7;
  }

  .mobile-tabbar-icon svg {
    display: block;
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
  }

  .mobile-tabbar-text {
    font-size: 11px;
    line-height: 1;
  }

  /* 为底部导航预留空间，避免遮挡内容 */
  .main-content {
    padding-bottom: calc(56px + env(safe-area-inset-bottom));
  }
}

/* ========== Mobile Drawer ========== */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-overlay);
  z-index: 200;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.drawer-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-drawer {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 280px;
  max-width: 80vw;
  background: var(--color-white);
  z-index: 201;
  transform: translateX(-100%);
  transition: transform var(--transition-base);
  display: flex;
  flex-direction: column;
  padding: 20px 0;
}

.mobile-drawer.active {
  transform: translateX(0);
}

.drawer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 24px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 12px;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.drawer-nav-item:hover,
.drawer-nav-item.active {
  color: var(--color-primary);
  background: #f5f3ff;
}

.drawer-nav-item svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.drawer-nav-item span {
  font-size: 16px;
}

/* ========== Content Area ========== */
.content-area {
  padding: 32px 20px 40px;
}

@media (max-width: 639px) {
  .content-area {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* ========== Profile Popup ========== */
.profile-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--color-overlay);
  justify-content: center;
  align-items: center;
}

.profile-popup-overlay.active {
  display: flex;
}

.profile-popup {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  width: min(360px, calc(100vw - 32px));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  animation: popupIn 0.25s ease-out;
}

/* PC端：弹出层紧贴侧边栏图标旁边 */
@media (min-width: 1024px) {
  .profile-popup-overlay {
    background: transparent;
  }

  .profile-popup-overlay.active {
    display: block;
  }

  .profile-popup {
    position: fixed;
    bottom: 10px;
    left: calc(var(--sidebar-width-collapsed) + 8px);
    width: 320px;
    animation: popupSlideIn 0.2s ease-out;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--color-border);
  }

  .sidebar.expanded ~ .profile-popup-overlay .profile-popup,
  .profile-popup.sidebar-expanded {
    left: calc(var(--sidebar-width-expanded) + 8px);
  }
}

@keyframes popupIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes popupSlideIn {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-avatar svg {
  width: 28px;
  height: 28px;
  fill: white;
}

.profile-info h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
}

.profile-info p {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.profile-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.profile-links-left,
.profile-links-right {
  flex: 1;
}

.profile-link-btn {
  display: block;
  width: 100%;
  padding: 10px 0;
  text-align: center;
  font-size: 14px;
  color: #666;
  background: #e8e8e8;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-base);
}

.profile-link-btn:hover {
  background: #d5d5d5;
  color: #333;
}

.profile-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8f7ff;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.plan-label {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.plan-badge {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  background: #ede9fe;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-base);
  font-size: 15px;
  color: var(--color-text-secondary);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.profile-action-btn:hover {
  background: #f5f5f5;
  color: var(--color-text);
}

.profile-action-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.profile-action-btn.upgrade {
  background: var(--color-primary);
  color: white;
  justify-content: center;
  font-weight: 500;
  margin-bottom: 8px;
  border-radius: var(--radius-md);
  padding: 12px;
}

.profile-action-btn.upgrade:hover {
  background: var(--color-primary-hover);
  color: white;
}

.profile-action-btn.logout {
  color: #ef4444;
  border-top: 1px solid var(--color-border);
  margin-top: 8px;
  padding-top: 14px;
  border-radius: 0;
}

.profile-action-btn.logout:hover {
  background: #fef2f2;
  color: #dc2626;
}

/* ========== Responsive: Tablet (min-width: 768px) ========== */
@media (min-width: 768px) {
  .content-area {
    padding: 48px 32px;
  }
}

/* ========== Responsive: Desktop (min-width: 1024px) ========== */
@media (min-width: 1024px) {
  .mobile-header {
    display: none;
  }

  .sidebar {
    display: flex;
  }

  .sidebar-toggle {
    display: flex;
  }

  .main-content {
    margin-left: var(--sidebar-width-collapsed);
    max-width: calc(100vw - var(--sidebar-width-collapsed));
    transition: margin-left var(--transition-base), max-width var(--transition-base);
  }

  .main-content.shifted {
    margin-left: var(--sidebar-width-expanded);
    max-width: calc(100vw - var(--sidebar-width-expanded));
  }
}

/* ========== Utility ========== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Touch-friendly targets */
@media (pointer: coarse) {
  .nav-item,
  .drawer-nav-item {
    min-height: 48px;
  }
}

/* Small phones (max-width: 374px) */
@media (max-width: 374px) {
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
/* ========== Upgrade Modal ========== */
.upgrade-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 400;
  background: var(--color-overlay);
  justify-content: center;
  align-items: center;
}

.upgrade-overlay.active {
  display: flex;
}

.upgrade-modal {
  background: var(--color-white);
  background-image: url('/UploadFiles/Poster/vipIcon-D9PqxUdK.png');
  background-repeat: no-repeat;
  background-position: right top;
  border-radius: var(--radius-lg);
  width: min(780px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  position: relative;
  animation: popupIn 0.25s ease-out;
  padding: 0;
}

.upgrade-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  border: none;
  background: transparent;
  transition: background var(--transition-base);
  z-index: 2;
}

.upgrade-close:hover {
  background: #f5f5f5;
}

.upgrade-close svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-text-secondary);
  fill: none;
  stroke-width: 2;
}

/* Section 1: User Info */
.upgrade-user-section {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 32px 28px 20px;
}

.upgrade-user-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.upgrade-user-avatar svg {
  width: 28px;
  height: 28px;
  fill: white;
}

.upgrade-user-info {
  flex: 1;
}

.upgrade-user-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 4px;
}

.upgrade-user-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0;
}

/* Section 2: Membership Plans */
.upgrade-plans-section {
  display: flex;
  gap: 12px;
  padding: 0 28px 24px;
}

.upgrade-plan-card {
  flex: 1;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  position: relative;
  overflow: hidden;
  background: var(--color-white);
}

.upgrade-plan-card:hover {
  border-color: #a5b4fc;
}

.upgrade-plan-card.active {
  border-color: #f29661;
  box-shadow: 0 0 0 1px #f29661;
}

.plan-badge-tag {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width:120px;
  background: linear-gradient(90deg, #ffedd5, #fed7aa);
  color: #7c2d12;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 0 4px 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 0 0 12px 0;
}

.plan-badge-tag::before {
  content: '⚡';
  font-size: 14px;
}

.plan-card-body {
  padding: 28px 10px 16px;
}

.upgrade-plan-card:first-child .plan-card-body {
  padding-top: 32px;
}

.plan-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 10px;
}

.plan-card-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 6px;
}

.plan-price-symbol {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
}

.plan-price-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1;
}

.plan-card-original {
  font-size: 12px;
  color: var(--color-text-muted);
  text-decoration: line-through;
  margin-bottom: 8px;
}

.plan-card-points {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

.plan-card-unit {
  font-size: 11px;
  color: var(--color-text-secondary);
  font-weight: 500;
  width:150px;
  background: #e5e9ee;
  padding: 6px 10px;
  border-radius: 8px;
  display: inline-block;
}

.upgrade-plan-card.active .plan-card-unit {
  background: #fbd6bb;
}

/* Section 3: Payment QR Code */
.upgrade-payment-section {
  background: #F3F4F6;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.upgrade-qr-wrapper {
  flex-shrink: 0;
}

.upgrade-qr-box {
  width: 145px;
  height: 145px;
  padding:5px;
  border: 2px solid #d1d5db;
  border-radius: var(--radius-md);
  background: var(--color-white);
  align-items: center;
  justify-content: center;
}

.upgrade-qr-placeholder {
  font-size: 14px;
  color: var(--color-text-muted);
}

.upgrade-pay-info {
  flex: 1;
  min-width: 0;
}

.upgrade-pay-amount {
  display: flex;
  align-items: baseline;
  margin-bottom: 8px;
}

.pay-label {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.pay-currency {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
}

.pay-amount-value {
  font-size: 42px;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1;
}

.pay-unit {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-left: 2px;
}

.upgrade-pay-method {
  font-size: 14px;
  color: #07c160;
  font-weight: 500;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.upgrade-pay-notice {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.upgrade-pay-notice a {
  color: var(--color-primary);
  text-decoration: none;
}

.upgrade-pay-notice a:hover {
  text-decoration: underline;
}

/* H5移动端确认支付区（默认隐藏，仅移动端展示） */
.upgrade-mobile-pay-section {
  display: none;
  background: #F3F4F6;
  padding: 20px;
  text-align: center;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.upgrade-mobile-pay-section .upgrade-pay-amount {
  justify-content: center;
  margin-bottom: 14px;
}

.upgrade-mobile-pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 44px;
  border: none;
  border-radius: var(--radius-md);
  background: #07c160;
  color: var(--color-white);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 12px;
  transition: opacity var(--transition-base);
}

.upgrade-mobile-pay-btn:active {
  opacity: 0.85;
}

/* H5移动端：隐藏二维码支付区，显示确认支付按钮 */
@media (max-width: 1023px) {
  .upgrade-payment-section {
    display: none;
  }

  .upgrade-mobile-pay-section {
    display: block;
  }
}

/* Mobile: stack upgrade modal */
@media (max-width: 575px) {
  .upgrade-modal {
    width: calc(100vw - 24px);
  }

  .upgrade-plans-section {
    flex-direction: column;
    padding: 0 20px 20px;
  }

  .upgrade-payment-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }

  .upgrade-pay-amount {
    justify-content: center;
    flex-wrap: wrap;
  }

  .upgrade-pay-method {
    justify-content: center;
  }
}

/* ========== Responsive: Tablet ========== */
@media (min-width: 768px) {
  .content-area {
    padding: 28px 32px 20px
  }

  .page-title { font-size: 32px; }
  .page-description { font-size: 17px; }

  .input-main {
    flex-direction: row;
    align-items: flex-start;
  }

  .upload-area {
    width: 180px;
    min-width: 180px;
    aspect-ratio: auto;
    height: 140px;
    margin: 0;
  }

  .text-input-area {
    flex: 1;
    padding-top: 8px;
  }
}

 /* ===== Login Modal ===== */
        .login-modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.55);
            z-index: 99999;
            justify-content: center;
            align-items: center;
        }
        .login-modal-overlay.active {
            display: flex;
        }
        .login-modal {
            background: #fff;
            border-radius: 12px;
            width: 400px;
            max-width: 90vw;
            padding: 36px 32px 28px;
            text-align: center;
            box-shadow: 0 8px 40px rgba(0,0,0,0.15);
            animation: loginFadeIn .25s ease;
        }
        @keyframes loginFadeIn {
            from { opacity: 0; transform: translateY(20px) scale(.96); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }
        .login-modal .login-logo {
            width: 64px;
            height: 64px;
            margin: 0 auto 14px;
        }
        .login-modal .login-logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }
        .login-modal .login-title {
            font-size: 17px;
            font-weight: 600;
            color: #1a1a1a;
            margin: 0 0 6px;
        }
        .login-modal .login-sub {
            font-size: 13px;
            color: #888;
            margin: 0 0 24px;
        }
        .login-modal .login-field {
            margin-bottom: 14px;
        }
        .login-modal .login-field input {
            width: 100%;
            height: 44px;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            padding: 0 14px;
            font-size: 14px;
            color: #333;
            outline: none;
            box-sizing: border-box;
            transition: border-color .2s;
        }
        .login-modal .login-field input:focus {
            border-color: #5b7cfa;
        }
        .login-modal .login-field input::placeholder {
            color: #bbb;
        }
        .login-modal .code-row {
            display: flex;
            gap: 10px;
        }
        .login-modal .code-row input {
            flex: 1;
        }
        .login-modal .code-row .send-code {
            flex-shrink: 0;
            height: 44px;
            padding: 0 16px;
            border: 1px solid #5b7cfa;
            border-radius: 8px;
            background: #f0f4ff;
            color: #5b7cfa;
            font-size: 13px;
            cursor: pointer;
            white-space: nowrap;
            transition: .2s;
        }
        .login-modal .code-row .send-code:hover {
            background: #e4ebff;
        }
        .login-modal .code-row .send-code:disabled {
            border-color: #ccc;
            background: #f5f5f5;
            color: #aaa;
            cursor: not-allowed;
        }
        .login-modal .login-btn {
            width: 100%;
            height: 44px;
            border: none;
            border-radius: 8px;
            background: #5b7cfa;
            color: #fff;
            font-size: 15px;
            font-weight: 500;
            cursor: pointer;
            margin-top: 4px;
            transition: background .2s;
        }
        .login-modal .login-btn:hover {
            background: #4a6ae8;
        }
        .login-modal .login-agreement {
            margin-top: 16px;
            font-size: 12px;
            color: #aaa;
            line-height: 1.5;
        }
        .login-modal .login-agreement a {
            color: #888;
            text-decoration: none;
        }
        .login-modal .login-agreement a:hover {
            color: #5b7cfa;
        }
        .login-modal .login-close {
            position: absolute;
            top: 12px;
            right: 16px;
            font-size: 22px;
            color: #ccc;
            cursor: pointer;
            line-height: 1;
            transition: color .2s;
        }
        .login-modal .login-close:hover {
            color: #666;
        }
        .login-modal-wrap {
            position: relative;
        }
/* ===== Feedback Modal ===== */
.feedback-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

.feedback-overlay.active {
    display: flex;
}

.feedback-modal {
    background: #fff;
    border-radius: 12px;
    width: 540px;
    max-width: 90vw;
    padding: 32px 28px 24px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    animation: feedbackFadeIn .25s ease;
    position: relative;
}

@keyframes feedbackFadeIn {
    from { opacity: 0; transform: translateY(20px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.feedback-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 22px;
    color: #ccc;
    cursor: pointer;
    line-height: 1;
    border: none;
    background: none;
    transition: color .2s;
}

.feedback-close:hover {
    color: #666;
}

.feedback-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    margin: 0 0 8px;
}

.feedback-desc {
    font-size: 14px;
    color: #888;
    text-align: center;
    margin: 0 0 24px;
}

.feedback-row {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.feedback-half {
    flex: 1;
    min-width: 0;
}

.feedback-field {
    margin-bottom: 14px;
}

.feedback-input {
    width: 100%;
    height: 44px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 14px;
    color: #333;
    outline: none;
    box-sizing: border-box;
    transition: border-color .2s;
}

.feedback-input:focus {
    border-color: #5b7cfa;
}

.feedback-input::placeholder {
    color: #bbb;
}

.feedback-textarea {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    color: #333;
    outline: none;
    box-sizing: border-box;
    transition: border-color .2s;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
}

.feedback-textarea:focus {
    border-color: #5b7cfa;
}

.feedback-textarea::placeholder {
    color: #bbb;
}

.feedback-submit {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 8px;
    background: #5b7cfa;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 4px;
    transition: background .2s;
}

.feedback-submit:hover {
    background: #4a6ae8;
}

.creditstxt {
    color: #fab587;
    font-size:16px;
    font-weight:bold;
}
    .creditstxt svg {
        margin-bottom: -5px;
        margin-right: -5px;
    }

/* ========== 用户中心页面样式 ========== */
.mbody {
    padding: 24px 32px;
    min-height: calc(100vh - 60px);
    background: var(--color-bg);
}

.mbxleft.uccenterw {
    max-width: 720px;
    margin: 0 auto;
}

.mbxtit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.mbxtit h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.mbxbox {
    background: var(--color-card-bg);
    border-radius: var(--radius-md);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    margin-bottom: 16px;
    overflow: hidden;
}

.mbxmd {
    padding: 28px 32px;
}

/* 顶部右侧快捷链接 */
.ucrtlnk {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ucrtlnkitem a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--color-text-secondary);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: #f5f5f5;
    transition: all var(--transition-base);
}

.ucrtlnkitem a:hover {
    background: #e8e8ff;
    color: var(--color-primary);
}

.ucrtlnkitem img {
    width: 18px;
    height: 18px;
}

/* 表单行 */
.userinfoxg {
    max-width: 480px;
}

.usxgli {
    margin-bottom: 24px;
}

.usxgth {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 10px;
}

/* 头像上传区 */
.usxgimg {
    display: flex;
    align-items: center;
    gap: 16px;
}

.usxgpic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-border);
    flex-shrink: 0;
}

.usxgpic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.usxgimgup {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 14px;
    color: var(--color-primary);
    background: #ede9fe;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-base);
}

.usxgimgup:hover {
    background: #ddd6fe;
}

.usxgimgup img {
    width: 16px;
    height: 16px;
}

/* 文本输入 */
.usxgtxt {
    width: 100%;
}

.usxginptxt {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-size: 15px;
    color: var(--color-text);
    background: #f9f9f9;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color var(--transition-base);
    box-sizing: border-box;
}

.usxginptxt:focus {
    border-color: var(--color-primary);
    background: #fff;
}

.usxginptxt::placeholder {
    color: #c0c0c0;
}

/* 验证码区 */
.usxgyzm {
    display: flex;
    align-items: center;
    gap: 12px;
}

.yzminp {
    flex: 1;
}

.usxgyzmtxt {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-size: 15px;
    color: var(--color-text);
    background: #f9f9f9;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color var(--transition-base);
    box-sizing: border-box;
}

.usxgyzmtxt:focus {
    border-color: var(--color-primary);
    background: #fff;
}

.yzmget {
    flex-shrink: 0;
}

.sendCode {
    display: block;
    padding: 0 20px;
    height: 44px;
    line-height: 44px;
    font-size: 14px;
    color: var(--color-primary);
    background: #ede9fe;
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-base);
    text-align: center;
}

.sendCode:hover {
    background: #ddd6fe;
}

.sendCode.layui-disabled {
    color: #bbb;
    background: #f0f0f0;
    cursor: not-allowed;
}

/* 按钮区域 */
.usxgbtns {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 8px;
}

.xgbtnitem {
    flex: 1;
}

.xgbtnback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    font-size: 15px;
    color: var(--color-text-secondary);
    background: #f0f0f0;
    border-radius: var(--radius-sm);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    box-sizing: border-box;
}

.xgbtnback:hover {
    background: #e5e5e5;
    color: var(--color-text);
}

.xgbtnsave {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    background: var(--color-primary);
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    box-sizing: border-box;
}

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

@media (max-width: 639px) {
    .mbody {
        padding: 24px 12px;
    }
}
.copyright
{
    width:100%;
    height:40px;
    line-height:40px;
    text-align:center;
    font-size:12px;
    color:#333;
}

/* ========== 通用图片局部编辑重绘（ImageRedraw模块配套样式） ========== */
/* 局部编辑入口按钮（橙色，与下载按钮区分） */
.img-redraw-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #f59e0b;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 16px;
    margin-left: 12px;
    transition: background 0.2s;
}

.img-redraw-open-btn:hover {
    background: #d97706;
}

/* 重绘弹层 */
.img-redraw-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99998;
    padding: 20px;
    box-sizing: border-box;
}

.img-redraw-modal {
    width: 980px;
    max-width: 100%;
    max-height: 92vh;
    background: #fff;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.img-redraw-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.img-redraw-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.img-redraw-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    color: #666;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}

.img-redraw-close:hover {
    background: #e5e7eb;
}

.img-redraw-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 6px 20px;
}

.img-redraw-current-label,
.img-redraw-history-title {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

.img-redraw-current {
    width: 100%;
    background: #f9fafb;
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    box-sizing: border-box;
}

.img-redraw-current img {
    max-width: 100%;
    max-height: 720px;
    object-fit: contain;
    border-radius: 6px;
    cursor: zoom-in;
}

/* 涂抹笔刷工具栏 */
.img-redraw-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    margin-bottom: 8px;
}

.img-redraw-tool-btn {
    padding: 4px 12px;
    font-size: 12px;
    color: #555;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.15s;
}

.img-redraw-tool-btn:hover {
    border-color: #4f46e5;
    color: #4f46e5;
}

.img-redraw-tool-btn.active {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #fff;
}

.img-redraw-toolbar-tip {
    font-size: 12px;
    color: #aaa;
}

/* 当前图包裹层（叠加涂抹canvas） */
.img-redraw-current-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
    line-height: 0;
}

.img-redraw-mask-canvas {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    touch-action: none;
    display: none;
}

.img-redraw-mask-canvas.active {
    display: block;
    cursor: crosshair;
}

.img-redraw-history {
    margin-top: 18px;
}

.img-redraw-history-empty {
    padding: 20px;
    text-align: center;
    color: #aaa;
    font-size: 13px;
    background: #f9fafb;
    border: 1px dashed #e5e7eb;
    border-radius: 8px;
}

.img-redraw-history-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px;
    margin-top: 12px;
    background: #fff;
}

.img-redraw-history-req {
    font-size: 13px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 10px;
    word-break: break-all;
}

.img-redraw-history-index {
    display: inline-block;
    background: #eef2ff;
    color: #4f46e5;
    border-radius: 4px;
    padding: 1px 8px;
    font-size: 12px;
    margin-right: 8px;
}

.img-redraw-history-index.img-redraw-history-original {
    background: #ecfdf5;
    color: #059669;
}

.img-redraw-history-img {
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
    border-radius: 6px;
    cursor: zoom-in;
    background: #f9fafb;
}

.img-redraw-history-actions {
    margin-top: 8px;
}

/* AI-tryon 结果预览浮层局部编辑按钮定位（与下载按钮同行） */
.result-preview-edit-btn {
    position: absolute;
    bottom: -44px;
    right: 96px;
}

/* 图片下方下载小按钮 */
.img-redraw-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.img-redraw-download-btn:hover {
    background: #4338ca;
}

/* 开始重绘按钮内积分展示（与开始设计按钮风格一致） */
.img-redraw-start-btn .img-redraw-credits {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 8px;
    padding: 0 8px;
    font-size: 16px;
    font-weight:bold;
    line-height: 22px;
}

.img-redraw-footer {
    display: flex;
    gap: 12px;
    padding: 14px 20px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
    align-items: flex-end;
}

.img-redraw-input {
    flex: 1;
    min-width: 0;
    height: 72px;
    resize: none;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    font-family: inherit;
    line-height: 1.5;
    outline: none;
    box-sizing: border-box;
}

.img-redraw-input:focus {
    border-color: #4f46e5;
}

.img-redraw-start-btn {
    padding: 12px 24px;
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-redraw-start-btn:hover {
    background: #4338ca;
}

.img-redraw-start-btn:disabled {
    background: #a5b4fc;
    cursor: not-allowed;
}

/* 重绘Loading遮罩（倒计时进度条） */
.img-redraw-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.img-redraw-spin {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: imgRedrawSpin 0.8s linear infinite;
    margin-bottom: 20px;
}

@keyframes imgRedrawSpin {
    to {
        transform: rotate(360deg);
    }
}

.img-redraw-progress-wrap {
    width: 380px;
    max-width: 80vw;
}

.img-redraw-progress-text {
    color: #fff;
    font-size: 14px;
    text-align: center;
    margin-bottom: 12px;
}

.img-redraw-progress-bar {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.img-redraw-progress-fill {
    width: 0%;
    height: 100%;
    background: #4f46e5;
    border-radius: 3px;
    transition: width 0.3s;
}

/* 内置放大预览灯箱（页面未提供enlargeImage时兑底） */
.img-redraw-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
}

.img-redraw-lightbox-img {
    max-width: 95vw;
    max-height: 95vh;
    border-radius: 8px;
    object-fit: contain;
}

.img-redraw-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

/* 移动端适配 */
@media (max-width: 639px) {
    .img-redraw-overlay {
        padding: 10px;
    }

    .img-redraw-modal {
        width: 100%;
        height: 900px;
        max-height: 95vh;
    }

    .img-redraw-current img {
        max-height: 240px;
    }

    .img-redraw-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .img-redraw-start-btn {
        width: 100%;
    }
}
