/* ---------- 变量 ---------- */
:root {
  --bg: #f2f4f5;
  --card-bg: #fff;
  --accent: #08a88a; /* 主绿 */
  --accent-2: #00bfa5;
  --danger: #ff6b6b;
  --warning: #ff9800; /* 新增: 警告/协议B颜色 */
  --info: #1e88e5;   /* 新增: 信息/协议A颜色 */
  --muted: #9aa3a6;
  --line: #ececec;
  --text: #333;
  --label: #f97508;
  --sider-w: 220px;

  /* ---------- 徽章/角标主题变量（新增） ---------- */
  /* 基础 */
  --badge-bg: #eef2f3;
  --badge-fg: #555;
  --ribbon-bg: #eef2f3;
  --ribbon-fg: #555;
  /* 状态色（浅底） */
  --success-soft-bg: rgba(8, 168, 138, 0.12);
  --success-fg: var(--accent);
  --warning-soft-bg: rgba(255, 152, 0, 0.12);
  --warning-fg: var(--warning);
  --info-soft-bg: rgba(30, 136, 229, 0.12);
  --info-fg: var(--info);
  --danger-soft-bg: rgba(255, 107, 107, 0.12);
  --danger-fg: var(--danger);
  /* 角标专用（与 Ant 近似的浅底） */
  --ribbon-success-bg: #e6f7f0;  --ribbon-success-fg: #08a88a;
  --ribbon-warning-bg: #fffbe6;  --ribbon-warning-fg: #d48806;
  --ribbon-info-bg:    #e6f4ff;  --ribbon-info-fg: #096dd9;
  --ribbon-danger-bg:  #fff2f0;  --ribbon-danger-fg: #cf1322;
}

/* ---------- Reset & 基础 ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft Yahei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- Header ---------- */
.wem-header {
  height: 64px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 20px;
}
.wem-logo { font-weight: 700; color: #0b6b61; font-size: 20px; }
.wem-header-nav { display: flex; gap: 18px; margin-left: 18px; flex: 1; align-items: center; }
.wem-header-nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.wem-header-nav a:hover { color: var(--accent); }
.wem-header-actions { display: flex; gap: 14px; align-items: center; }
.wem-vip-badge {
  background: linear-gradient(135deg, #f9e77f, #f3cc30);
  padding: 4px 8px; border-radius: 12px; font-size: 12px; color: #8a5b00;
  font-weight: 600;
}
.wem-icon-btn {
  width: 36px; height: 36px; border-radius: 50%; background: #f5f6f6; display: inline-flex;
  align-items: center; justify-content: center; cursor: pointer;
}
.wem-icon-btn:hover { background: #e8ecec; }

/* ---------- 主体容器 ---------- */
.wem-container {
  max-width: 1180px;
  margin: 100px auto 60px;
  display: flex;
  gap: 20px;
  padding: 0 16px;
}
/* 统一：容器内所有链接默认无下划线，悬停时由颜色体现交互 */
.wem-container a { text-decoration: none; }

/* ---------- 左侧栏 ---------- */
.wem-sider {
  width: var(--sider-w);
  min-width: var(--sider-w);
  background: var(--card-bg);
  border-radius: 8px;
  padding: 18px 14px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: fit-content;
  text-align: center;
}

/* 头像 */
.wem-profile { text-align: center; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.wem-avatar-wrap { position: relative; width: 76px; height: 76px; margin: 10px auto 8px; }
.wem-avatar {
  width: 76px; height: 76px; border-radius: 50%;
  background: linear-gradient(180deg, #e6fbf7, #d9f6f2);
  display: flex; align-items: center; justify-content: center; font-size: 26px; color: #06715c;
  box-shadow: 0 2px 6px rgba(6, 113, 92, 0.06);
}
/* 头像尺寸修饰符 */
.wem-avatar-sm { width: 48px; height: 48px; font-size: 18px; }
.wem-avatar-lg { width: 80px; height: 80px; font-size: 32px; }
.wem-avatar-xl { width: 96px; height: 96px; font-size: 38px; }
.wem-camera {
  position: absolute; right: -2px; bottom: -2px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; border: 3px solid #fff; font-size: 12px;
  cursor: pointer;
}

.wem-name { font-weight: 600; margin: 6px 0 0; color: #1d1d1d; }

/* 侧边栏按钮 */
.wem-side-actions { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; }
.wem-btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 9px 12px; border-radius: 18px; border: 1px solid transparent;
  font-weight: 600; font-size: 13px; cursor: pointer; text-decoration: none; transition: all 0.2s ease;
}
.wem-btn-outline { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.wem-btn-outline:hover { background: var(--accent); color: #fff; }
.wem-btn-ghost { background: transparent; border: 1px solid #e8ecec; color: var(--text); }
.wem-btn-ghost:hover { background: #f5f6f6; }

/* 菜单 */
.wem-menu { margin-top: 6px; }
.wem-menu .wem-title {
  font-size: 15px; color: var(--muted); padding: 12px 6px;
  font-weight: 700; border-radius: 6px; transition: all 0.2s ease;
  margin: 4px 0;
}
.wem-menu .wem-title.wem-title-active { background: var(--accent); color: #fff; }
.wem-menu ul { list-style: none; padding: 0; margin: 0; }
.wem-menu li a {
  display: block; padding: 10px 12px; color: var(--muted); border-radius: 6px; margin: 4px 2px;
  text-decoration: none; font-weight: 500; transition: all 0.2s ease;
}
.wem-menu li.wem-active a {
  background: linear-gradient(90deg, #f0fbf9, #f6fdfb);
  color: var(--accent); font-weight: 700;
}
.wem-menu li a:hover { background: #fbfdfc; color: var(--accent); }

/* 底部退出 */
.wem-sider .wem-logout { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }

/* ---------- 内容区 ---------- */
.wem-content {
  flex: 1; background: var(--card-bg); border-radius: 8px; padding: 26px 30px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}
.wem-content-header { margin: 0 0 16px; font-size: 18px; font-weight: 700; }

/* 顶部卡片行 */
.wem-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 22px; cursor: pointer; }
.wem-cards-center { display: flex; justify-content: center; gap: 58px; flex-wrap: wrap; }
.wem-card {
  border: 1px solid var(--line); padding: 16px; border-radius: 8px; background: linear-gradient(180deg, #fff, #fcfffd);
  display: flex; flex-direction: column; gap: 8px; height: 100%; transition: transform 0.2s ease;
}
.wem-card:hover { transform: translateY(-3px); }
.wem-card h3 { margin: 0; font-size: 26px; font-weight: 800; }
.wem-card .wem-unit { font-size: 14px; color: var(--muted); margin-left: 6px; font-weight: 600; }
.wem-card .wem-small { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; margin-top: auto; }
.wem-card .wem-small a { color: var(--muted); text-decoration: none; transition: color 0.2s ease; }
.wem-card .wem-small a:hover { color: var(--accent); }
.wem-card.wem-balance { border-color: rgba(6, 167, 145, 0.12); color: var(--accent); }
.wem-card.wem-rewards { border-color: rgba(255, 106, 106, 0.12); color: var(--danger); }
.wem-card.wem-type { border-color: rgba(74, 144, 226, 0.12); color: #3f73b8; }
.wem-card.wem-type h3 { font-size: 20px; margin-bottom: 6px; }

/* 提现卡片（支付账户卡） */
.wem-paycard {
  position: relative;
  width: 342px;
  height: 178px;
  background-size: cover;
  background-position: center;
  border: none;
  border-radius: 16px;
  overflow: hidden;
}
.wem-paycard-info {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  color: #fff;
  font-weight: 700;
}

/* VIP 会员卡样式（用于升级VIP页） */
.vip-card { position: relative; text-align: center; padding: 14px; }
.vip-card .wem-vip-title { margin: 8px 0 6px; font-weight: 800; }
.vip-card .wem-vip-price { font-size: 0; margin-top: 4px; }
.vip-card .wem-vip-price .wem-vip-price-num { font-size: 28px; font-weight: 800; }
.vip-card .wem-vip-price .wem-unit { font-size: 14px; color: var(--muted); margin-left: 6px; font-weight: 600; }
.vip-card .wem-vip-duration {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 30%; min-width: 76px; text-align: center; padding: 4px 6px;
  background: #eead2c; color: #fff; border-radius: 14px; font-weight: 700; font-size: 13px;
}
.vip-card .wem-vip-original { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); color: #555; text-decoration: line-through; font-size: 13px; }
.vip-card.wem-active {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6); /* 金色辉光 */
  animation: goldGlow 1.5s ease-in-out infinite alternate;
}

.vip-card.wem-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 215, 0, 0.5) 50%, /* 金色扫光 */
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  animation: sweep 2s ease-in-out infinite;
}

/*优惠码*/
.wem-promo-estimate{ display:none; margin-top:12px; text-align:center; }
.wem-promo-estimate-row{ display:inline-flex; gap:24px; align-items:flex-end; justify-content:center; }
.wem-promo-estimate-col{ display:inline-block; min-width:120px; }
.wem-estimate-final{ color: var(--accent); font-weight: 700; }

@keyframes sweep {
  0% {
    left: -100%;
  }
  100% {
    left: 150%;
  }
}

@keyframes goldGlow {
  0% {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4); /* 淡金色 */
  }
  100% {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8); /* 亮金色 */
  }
}

/* 表单 & 面板区域 */
.wem-panel {
  border-top: 1px solid var(--line); padding-top: 20px; margin-top: 12px;
}
.wem-panel + .wem-panel { margin-top: 28px; padding-top: 26px; border-top: 1px dashed #f2f5f5; }
.wem-panel-title { margin: 0 0 18px; font-weight: 700; }
.wem-panel-center { text-align: center; }
/* 工具类：用于页面首个 panel 去掉顶部边框与内边距 */
.wem-panel-no-top { border-top: none !important; padding-top: 0 !important; margin-top: 0 !important; }

/* 表单布局与元素 */
.wem-form-row { display: flex; gap: 20px; margin-bottom: 20px; align-items: center; }
.wem-form-group { flex: 1; }
.wem-form-group-half { flex: 0.5; }
.wem-form-label { display: block; margin-bottom: 8px; color: var(--label); font-size: 14px; }
/* 兼容别名：部分页面使用 .wem-label */
.wem-label { display: block;  color: var(--text); font-size: 14px; width: 10%;}
.wem-form-item {
  width: 100%; max-width: 360px; position: relative; text-align: left;
}
.wem-form-item-center {
  display: flex; flex-direction: column; align-items: center; gap: 18px; margin-bottom: 16px;
}
.wem-form-item-center .wem-form-item { max-width: 360px; }
.wem-form-item label.hidden-label { display: none; }

.wem-input, .wem-select, .wem-textarea {
  width: 100%; padding: 12px 14px; border-radius: 6px; border: 1px solid var(--line);
  background: #fff; font-size: 14px; transition: all 0.2s ease; font-family: inherit; line-height: 1.5;
}
.wem-input:focus, .wem-select:focus, .wem-textarea:focus {
  outline: none; border-color: var(--accent-2); box-shadow: 0 6px 20px rgba(8, 168, 138, 0.06);
}
.wem-input.is-invalid, .wem-select.is-invalid, .wem-textarea.is-invalid { border-color: var(--danger) !important; }
.wem-input::placeholder, .wem-textarea::placeholder { color: #ccc; }
.wem-textarea { resize: vertical; min-height: 120px; }

.wem-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center; background-repeat: no-repeat; background-size: 16px;
}
.wem-unit-mark { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }

.wem-input-with-adornment {
  display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 6px;
  transition: border-color 0.3s ease; overflow: hidden; height: 44px;
}
.wem-input-with-adornment:focus-within { border-color: var(--accent-2); }
.wem-input-with-adornment .wem-input { border: none; flex: 1; border-radius: 0; height: 100%; }
.wem-input-with-adornment .wem-input:focus { box-shadow: none; border-color: transparent; outline: none; }
.wem-input-with-adornment .wem-adornment {
  border: none; border-radius: 0; height: 100%; display: flex; align-items: center;
  padding: 0 14px; background: #f8f8f8; color: var(--muted);cursor: pointer;
}
.wem-price-group { display: flex; gap: 20px; align-items: center; }
.wem-price-group .wem-input-with-adornment { flex: 1; max-width: 230px; }
.wem-price-group .wem-select { width: auto; min-width: 100px; }

/* 支付方式 */
.wem-payments { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 8px; }
.wem-payment {
  width: 120px; height: 50px; border-radius: 8px; border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center; cursor: pointer; background: #fdfdfd;
  position: relative; transition: all 0.2s ease; font-size: 28px; color: #aaa;
}
.wem-payment:hover { border-color: #ccc; color: #888; }
.wem-payment.wem-active {
  border-color: var(--accent); background: #f0fbf9; color: var(--accent);
  transform: translateY(-2px); box-shadow: 0 4px 12px rgba(8, 168, 138, 0.08);
}
.wem-payment.alipay { color:#1e88e5;}
.wem-payment.wechat { color:#15893c;}
.wem-payment.paypal { color:#2433ba;}
.wem-payment .wem-check { display: none; }

/* 快捷金额 */
.wem-quick { display: flex; gap: 10px; align-items: center; margin-top: 10px; flex-wrap: wrap; justify-content: center; }
.wem-quick .wem-tag {
  padding: 8px 12px; border-radius: 10px; border: 1px solid #e6e6e6; background: #fff; cursor: pointer;
  font-weight: 600; transition: all 0.2s ease;
}
.wem-quick .wem-tag:hover { border-color: var(--accent); color: var(--accent); }
.wem-quick .wem-tag.wem-active { border-color: var(--accent); color: var(--accent); background: linear-gradient(90deg, #f0fbf9, #f9fffb); }

/* 说明 & 提示 */
.wem-note { font-size: 12px; color: var(--muted); margin: 10px 0 10px 0; }
.wem-help { font-size: 12px; color: var(--muted); }
.wem-error-msg { color: var(--danger); font-size: 12px; margin-top: 4px; line-height: 1.4; }
.wem-warring-msg { color: var(--warning); font-size: 12px; margin-top: 4px; line-height: 1.4; }
/* 分类选择（一级/二级）- 胶囊按钮风格 */
.wem-category-primary .wem-checkbox,
.wem-category-secondary .wem-checkbox {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

/* 隐藏原生单选，保留可点击标签区域 */
.wem-category-primary .wem-checkbox input[type="radio"],
.wem-category-secondary .wem-checkbox input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* 悬停反馈 */
.wem-category-primary .wem-checkbox:hover,
.wem-category-secondary .wem-checkbox:hover {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(6, 167, 145, 0.08);
}

/* 选中高亮（依赖 :has 支持，现代浏览器已广泛支持） */
.wem-category-primary .wem-checkbox:has(input[type="radio"]:checked),
.wem-category-secondary .wem-checkbox:has(input[type="radio"]:checked) {
  border-color: var(--accent);
  background: linear-gradient(90deg, #f0fbf9, #f9fffb);
  color: var(--accent);
  box-shadow: 0 2px 10px rgba(6, 167, 145, 0.08);
}

/* 键盘可达性：获得焦点时的可视指示 */
.wem-category-primary .wem-checkbox:has(input[type="radio"]:focus-visible),
.wem-category-secondary .wem-checkbox:has(input[type="radio"]:focus-visible) {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

/* 一级与二级的微差异：二级更紧凑些 */
.wem-category-secondary .wem-checkbox {
  padding: 6px 12px;
  font-weight: 500;
}

/* 工单对话卡片：管理员 vs 用户 背景色区分 */
.wem-chat-admin {
  background: var(--info-soft-bg);
  border-color: rgba(30, 136, 229, 0.25) !important;
}
.wem-chat-user {
  background: #fff;
  border-color: rgba(0,0,0,0.06) !important;
}

/* 主/次/删除按钮 */
.wem-primary-btn, .wem-secondary-btn,.wem-danger-btn {
  padding: 12px 0; width: 20%; border-radius: 24px; border: none; font-weight: 700;
  cursor: pointer; transition: all 0.2s ease; font-size: 15px;
}
.wem-primary-btn { background: var(--accent); color: #fff; }
.wem-primary-btn:hover:not(:disabled) { background: var(--accent-2); transform: translateY(-2px); }
.wem-secondary-btn { background: #444; color: #fff; }
.wem-danger-btn { background: var(--danger); color: #fff; }
.wem-secondary-btn:hover:not(:disabled) { background: #555; transform: translateY(-2px); }
.wem-primary-btn:disabled, .wem-secondary-btn:disabled { background: #ccc; cursor: not-allowed; }
.wem-form-item-center .wem-primary-btn,
.wem-form-item-center .wem-secondary-btn { max-width: 360px; }

/* 主按钮紧凑尺寸：用于内联的小尺寸操作按钮（如“批量删除”） */
.wem-btn-compact {
  width: auto !important;
  padding: 5px 10px !important;
  border-radius: 16px !important;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 发布作品 - Section Title */
.wem-section-title { display: inline-block; margin: 20px 0 20px 0; font-weight: 700; border-left: 4px solid var(--accent); padding-left: 10px; color: var(--text); }

/* 发布作品 - 图片上传 */
.wem-upload-container { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.wem-upload-area {
  background: #f8f8f8; border: 2px dashed var(--line); border-radius: 8px;
  text-align: center; cursor: pointer; transition: all 0.3s ease; position: relative;
  min-height: 150px; width: 150px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.wem-upload-area:hover { border-color: var(--accent-2); background-color: #f0fffe; }
.wem-upload-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.wem-upload-icon {
  width: 48px; height: 48px; background: #ddd; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; margin-bottom: 16px; font-size: 24px; color: #999;
}
.wem-upload-text { color: var(--text); font-size: 14px; margin-bottom: 1px; }

/* 发布设置 - 商户作品VIP支付方式（memberDownGroup） */
#memberDownGroup { max-width: none; }
/* 仅在该区域，将通用 .wem-flex 容器切换为网格，获得等宽列与整齐对齐 */
#memberDownGroup > .wem-flex {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px !important;
  align-items: start;
}
/* 保持原生 radio 外观，仅做排版对齐与占满单元格 */
#memberDownGroup > .wem-flex .wem-checkbox {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

/* 身份证上传：比例与背景适配 */
.wem-upload-area-idcard {
  /* 中国二代身份证：85.6mm × 54mm ≈ 1.586:1 */
  width: 235px;
  aspect-ratio: 85.6 / 54;
  height: auto;
  min-height: 0 !important; /* 覆盖通用上传区域的最小高度 */
  position: relative;
  overflow: hidden;
}
.wem-upload-bg-contain {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/* 身份证上传：淡入淡出悬浮效果，不改变底图与布局 */
.wem-upload-area-idcard::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.25s ease;
  pointer-events: none;
}
.wem-upload-area-idcard:hover::before,
.wem-upload-area-idcard:focus::before {
  background: rgba(0, 0, 0, 0.06);
}
/* 避免通用 :hover 背景对身份证样式造成突兀变化 */
.wem-upload-area-idcard:hover { background-color: #f8f8f8; }
/* 强化：在 hover/focus 时保持背景图不平铺、不偏移、不缩放变化 */
.wem-upload-area-idcard:hover,
.wem-upload-area-idcard:focus {
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* 身份证上传：底部半透明信息条，仅作用于该页面的身份证卡片 */
.wem-upload-area-idcard .wem-upload-placeholder {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 6px 6px; gap: 2px;
  margin: 0 0 5px 0;
  background: rgba(0, 0, 0, 0.5);
}
.wem-upload-area-idcard .wem-upload-text { color: #fff; margin-bottom: 2px; }
.wem-upload-area-idcard .wem-note { color: rgba(255, 255, 255, 0.9); }
.wem-upload-area-idcard:focus { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* 图片预览 */
.wem-image-preview {
  width: 150px; height: 150px; border-radius: 8px; background-size: cover;
  background-position: center; position: relative; display: block; flex-shrink: 0; cursor: pointer;
}
/* 统一删除按钮（适用于 grid 预览卡片与 single 槽位） */
.wem-remove-btn {
  position: absolute; top: 6px; right: 6px;
  width: 24px; height: 24px; border-radius: 50%;
  border: none; background: rgba(237, 92, 92, 0.72); color: #fff;
  cursor: pointer; font-size: 16px; line-height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
}
.wem-remove-btn:hover { background: rgba(244, 24, 24, 0.72); }
.hidden-file-input { display: none; }

/* 发布作品 - 标签输入 */
.wem-tags-container {
  border: 1px solid var(--line); border-radius: 6px; padding: 8px; background: white;
  cursor: text; transition: border-color 0.3s ease; display: flex;
  flex-wrap: wrap; gap: 6px; align-items: flex-start; min-height: 44px;
}
.wem-tags-container:focus-within { border-color: var(--accent-2); }
.wem-tag-item {
  background: var(--accent); color: white; padding: 4px 8px; border-radius: 12px;
  font-size: 12px; display: flex; align-items: center; gap: 4px; max-width: 150px;
  word-break: break-all;
}
.wem-tag-remove {
  background: none; border: none; color: white; cursor: pointer; padding: 0;
  margin: 0; width: 14px; height: 14px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 12px; line-height: 1; font-weight: bold;
}
.wem-tag-remove:hover { background: rgba(255, 255, 255, 0.2); }
.wem-tag-input {
  border: none; outline: none; background: transparent; flex: 1;
  min-width: 100px; padding: 4px; font-size: 14px;
}

/* 发布作品 - 协议 */
.wem-agreement-container { margin: 20px 0; }
.wem-agreement-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; line-height: 1.5; }
.wem-agreement-checkbox { width: 18px; height: 18px; margin: 0; cursor: pointer; flex-shrink: 0; margin-top: 2px; }
.wem-agreement-text { color: #666; font-size: 13px; line-height: 1.6; flex: 1; }
.wem-agreement-text .wem-agreement-link { cursor: pointer; text-decoration: none; font-weight: 500; }
.wem-agreement-text .wem-agreement-link.type-a { color: var(--info); }
.wem-agreement-text .wem-agreement-link.type-b { color: var(--warning); }
.wem-agreement-text .wem-agreement-link:hover { text-decoration: underline; }

/* 协议查看器 */
.wem-agreement-viewer { display: none; }
.wem-agreement-viewer h2 { margin-bottom: 16px; font-size: 20px; color: var(--text); }
.wem-agreement-body {
  line-height: 1.7; font-size: 14px; color: #444; border: 1px solid var(--line);
  padding: 16px; border-radius: 8px; max-height: 60vh; overflow-y: auto; background: #fafafa;
}
.wem-agreement-body p { margin-bottom: 12px; }
.wem-agreement-actions { margin-top: 20px; display: flex; gap: 12px; }
.wem-agreement-actions .wem-btn { padding: 10px 20px; font-size: 14px; border-radius: 8px; min-width: 100px; }

/* ---------- Modal（弹窗）样式 ---------- */
.wem-modal-overlay {
  position: fixed; inset: 0; background: rgba(15, 20, 20, 0.45); display: none;
  align-items: center; justify-content: center; z-index: 1200; padding: 20px;
}
.wem-modal-overlay.wem-open { display: flex; }
.wem-modal {
  width: 100%; max-width: 520px; background: var(--card-bg); border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25); overflow: hidden;
  transform: translateY(8px); transition: transform .18s ease, opacity .18s ease;
}
.wem-modal.wem-open { transform: translateY(0); }
.wem-modal-header {
  padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex;
  align-items: center; justify-content: space-between;
}
.wem-modal-title { font-size: 16px; font-weight: 700; color: var(--text); }
.wem-modal-close { background: transparent; border: 0; font-size: 18px; cursor: pointer; color: var(--muted); }
.wem-modal-body { padding: 20px; font-size: 14px; color: var(--text); line-height: 1.6; }
.wem-modal-actions { padding: 16px 20px; border-top: 1px solid var(--line); display: flex; gap: 12px; justify-content: flex-end; }
.wem-modal .wem-primary-btn, .wem-modal .wem-secondary-btn { max-width: 140px; padding: 10px 14px; border-radius: 10px; margin-top: 0; }
.wem-modal .wem-secondary-btn { background: #f3f4f5; color: var(--text); font-weight: 600; }
.wem-modal .wem-secondary-btn:hover { background: #e8eaeb; }

/* ---------- Avatar Picker（头像选择弹窗） ---------- */
.wem-avatar-picker { width: 100%; }
.wem-avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 14px;
}
.wem-avatar-option {
  width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
  border: 2px solid transparent; background: #f6f7f8;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.18s ease;
}
.wem-avatar-option:hover { border-color: var(--accent); transform: translateY(-2px); }
.wem-avatar-option img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wem-avatar-actions { display: flex; gap: 12px; justify-content: center; margin-top: 18px; }

/* ---------- 页面底部深色条 ---------- */
.wem-page-bottom { left: 0; right: 0; bottom: 0; height: 90px; background: #303133; box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.3); display: block; }

/* ---------- 实用工具类（新增） ---------- */
/* 间距 */
.wem-m-0 { margin: 0 !important; }
.wem-mt-0 { margin-top: 0 !important; }
.wem-mt-6 { margin-top: 6px !important; }
.wem-mt-8 { margin-top: 8px !important; }
.wem-mt-12 { margin-top: 12px !important; }
.wem-mt-16 { margin-top: 16px !important; }
.wem-mt-32 { margin-top: 32px !important; }
.wem-mt-36 { margin-top: 36px !important; }
.wem-mt-40 { margin-top: 40px !important; }
.wem-mt-50 { margin-top: 50px !important; }
.wem-pt-14 { padding-top: 14px !important; }
.wem-p-0 { padding: 0 !important; }

/* 对齐与布局 */
.wem-text-center { text-align: center !important; }
.wem-flex { display: flex !important; }
.wem-inline-flex { display: inline-flex !important; }
.wem-align-center { align-items: center !important; }
.wem-justify-center { justify-content: center !important; }
.wem-justify-right { justify-content: right !important; }
.wem-justify-left { justify-content: left !important; }
.wem-justify-between { justify-content: space-between !important; }
.wem-flex-wrap { flex-wrap: wrap !important; }
.wem-flex-1 { flex: 1 1 0% !important; }
.wem-gap-8 { gap: 8px !important; }
.wem-gap-12 { gap: 12px !important; }
.wem-ml-auto { margin-left: auto !important; }
.wem-ml-12 { margin-left: 12px !important; }
.wem-mr-6 { margin-right: 6px !important; }

/* 宽度（百分比）与尺寸 */
.wem-w-10 { width: 10% !important; }
.wem-w-15 { width: 15% !important; }
.wem-w-20 { width: 20% !important; }
.wem-w-25 { width: 25% !important; }
.wem-w-30 { width: 30% !important; }
.wem-w-35 { width: 35% !important; }
.wem-w-40 { width: 40% !important; }
.wem-w-45 { width: 45% !important; }
.wem-w-50 { width: 50% !important; }
.wem-w-55 { width: 55% !important; }
.wem-w-60 { width: 60% !important; }
.wem-w-80 { width: 80% !important; }
.wem-w-100 { width: 100% !important; }
.wem-w-px-140 { width: 140px !important; }
.wem-max-w-200 { max-width: 200px !important; }
.wem-max-w-280 { max-width: 280px !important; }
.wem-max-w-360 { max-width: 360px !important; }

/* 可见性与定位 */
.wem-hidden { display: none !important; }
.wem-vis-hidden { visibility: hidden !important; }
.wem-relative { position: relative !important; }
.wem-badge-corner { position: absolute !important; top: 10px; right: 10px; }

/* 网格列辅助（常用于卡片/统计区） */
.wem-cards.wem-cols-2,
.wem-stats.wem-cols-2,
.wem-grid.wem-cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
.wem-cols-2-min { grid-template-columns: repeat(2, minmax(220px, 320px)) !important; }
.wem-grid-center { justify-content: center !important; }

/* 组件细化 */
/* 上传证件区域：去掉通用虚线边框，统一圆角 */
.wem-upload-area-idcard { border: none !important; border-radius: 16px !important; }
/* 工具栏与内联表单 */
.wem-toolbar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.wem-inline-form { display: flex; gap: 8px; width: 50%; align-items: center; margin-left: auto; }

/* 徽章变体补充 */
.wem-badge-info { background: rgba(30, 136, 229, 0.12); color: var(--info); }

/* 强调金额（红色加粗放大） */
.wem-amount-strong { color: var(--danger); font-weight: 800; font-size: 18px; }

/* 间隔占位 */
.wem-spacer-12 { height: 12px; }

/* 限高控制 */
.wem-max-h-none { max-height: none !important; }

/* 居中化的网格卡片内容 */
.wem-grid-body-center { padding: 16px 10px 18px; display: flex; flex-direction: column; align-items: center; gap: 14px; }

/* 按钮中号（宽度自适应、圆角12、内边距10x20） */
.wem-btn-md { width: auto !important; padding: 10px 20px !important; border-radius: 12px !important; }

/* 字重快捷 */
.wem-fw-600 { font-weight: 600 !important; }
.wem-fw-700 { font-weight: 700 !important; }

/* 额外的间距/排版辅助 */
.wem-ml-16 { margin-left: 16px !important; }
.wem-lh-18 { line-height: 1.8 !important; }
.wem-gap-6 { gap: 6px !important; }
.wem-gap-20 { gap: 20px !important; }

/* 文本语义色彩 */
.wem-text-muted { color: var(--muted) !important; }

/* 方向工具 */
.wem-flex-col { flex-direction: column !important; }

/* 仅加粗不放大、危险色金额 */
.wem-text-danger-strong { color: var(--danger) !important; font-weight: 800 !important; }

/* 自对齐（用于表单右下角按钮组） */
.wem-self-end { align-self: flex-end !important; }

/* ---------- 表格与数据列表（新增） ---------- */
.wem-table { width: 100%; border-collapse: collapse; }
.wem-table th, .wem-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.wem-table thead th { background: #fafafa; color: #555; font-weight: 700; border-bottom: 1px solid #e7e9ea; }
.wem-table tbody tr:hover { background: #fcfffd; }
.wem-table .wem-actions a { color: var(--accent); text-decoration: none; }
.wem-table .wem-actions a:hover { text-decoration: underline; }

/* ---------- Loading ---------- */
/* 保留全局微型转圈；移除局部骨架样式 */

/* 全局微型转圈（不阻塞交互） */
.wem-global-spinner { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1200; pointer-events: none; opacity: 0; transition: opacity .18s ease; }
.wem-global-spinner.wem-visible { opacity: 1; }
.wem-spin-wrap { padding: 8px; border-radius: 999px; background: rgba(255,255,255,0.75); box-shadow: 0 4px 18px rgba(0,0,0,0.08); }
.wem-spin-ring { width: 44px; height: 44px; border-radius: 50%; border: 4px solid rgba(0,0,0,0.12); border-top-color: rgba(6, 167, 145, 0.9); animation: wem-rotate .8s linear infinite; }
@keyframes wem-rotate { to { transform: rotate(360deg); } }

/* 错误态空状态覆盖层 */
.wem-error-overlay { position: absolute; inset: 0; z-index: 10; background: rgba(255,255,255,0.92); display: flex; align-items: center; justify-content: center; padding: 16px; }
.wem-error-box { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; display: flex; gap: 12px; align-items: center; box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
.wem-error-box .msg { color: #333; font-weight: 600; }

/* ---------- 全局 Toast 提示（新增） ---------- */
.wem-toast-container { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 1400; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.wem-toast { display: inline-flex; align-items: center; gap: 10px; background: rgba(50,50,50,0.95); color: #fff; padding: 10px 12px; border-radius: 10px; box-shadow: 0 10px 24px rgba(0,0,0,0.18); pointer-events: auto; backdrop-filter: saturate(1.2) blur(2px); border: 1px solid rgba(255,255,255,0.12); }
.wem-toast .wem-toast-msg { font-weight: 700; letter-spacing: 0.2px; }
.wem-toast .wem-toast-action { background: #fff; color: #333; border: none; border-radius: 8px; padding: 6px 10px; font-weight: 700; cursor: pointer; }
.wem-toast .wem-toast-action:hover { background: #f1f1f1; }
.wem-toast .wem-toast-close { background: transparent; border: none; color: rgba(255,255,255,0.85); font-size: 16px; cursor: pointer; padding: 0 4px; }
.wem-toast-error { background: rgba(207, 19, 34, 0.95); border-color: rgba(255,255,255,0.2); }

/* ---------- 简易网格/卡片列表（新增） ---------- */
.wem-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.wem-grid .wem-grid-item { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.wem-grid .wem-grid-thumb { display: block; width: 100%; aspect-ratio: 4 / 3; background: #f6f8f8; object-fit: cover; }
.wem-grid .wem-grid-body { padding: 10px; font-size: 13px; color: #555; }

/* 收藏卡片增强样式 */
.wem-grid-thumb-wrap { position: relative; }
.wem-fav-overlay { position: absolute; top: 8px; right: 8px; display: flex; align-items: center; gap: 8px; z-index: 2; }
/* 统一尺寸的角标按钮（选择/移除） */
.wem-fav-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; background: rgba(0,0,0,0.55); color: #fff; font-size: 12px; line-height: 1; }
.wem-fav-chip:hover { background: rgba(0,0,0,0.72); }
.wem-fav-chip input { width: 14px; height: 14px; }
.wem-fav-remove { text-decoration: none; }
.wem-line-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-clamp: 2; }
.wem-grid-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.wem-meta-item{display:flex;align-items:center;gap:6px;color:#666;font-weight:600;font-size:12px;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.wem-meta-item:last-child{justify-content:normal}
.wem-meta-item .fa-heart { color: #fbb715; }
.wem-meta-item .fa-eye { color: #66a3e5; }
/* 价格（￥）主色调 */
.wem-meta-item .fa-yen-sign { color: #ef3636; }
/* 分类图标主色调 */
.wem-meta-item .fa-folder { color: #c86dee; }

/* 悬停时加强对比，提升可读性 */
.wem-grid .wem-grid-item:hover .wem-meta-item span { color: #333; }

/* ---------- 统计小卡片（新增） ---------- */
.wem-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.wem-stat { border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: linear-gradient(180deg, #fff, #fcfffd); }
.wem-stat .wem-stat-title { color: #666; font-size: 12px; margin-bottom: 6px; }
.wem-stat .wem-stat-value { font-size: 22px; font-weight: 800; color: #222; }
.pending { color: #e8ee3d !important; }
.paid {color: #0aa33a !important; }
.balance {color: #ff6b6b !important; }

/* ---------- Tabs（简化样式，新增） ---------- */
.wem-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.wem-tabs a { padding: 8px 12px; border: 1px solid transparent; border-bottom: none; text-decoration: none; color: #666; border-radius: 6px 6px 0 0; transition: all .18s ease; }
.wem-tabs a:hover { background: #fff; border-color: var(--line); color: var(--accent); }
.wem-tabs a.wem-active { background: #fff; border-color: var(--line); color: var(--accent); font-weight: 700; }
/* 兼容旧写法：.active 视为当前标签 */
.wem-tabs a.active { background: #fff; border-color: var(--line); color: var(--accent); font-weight: 700; }

/* 通用 Tab 面板显隐（配合 JS 切换） */
.wem-tab-panel { display: none; }
.wem-tab-panel.wem-open { display: block; }

/* 基于 hash 的激活样式（用于 withdrawal 等页面） */
#tab-apply:target ~ .wem-tabs a[href="#tab-apply"],
#tab-history:target ~ .wem-tabs a[href="#tab-history"],
#tab-account:target ~ .wem-tabs a[href="#tab-account"] {
  background: #fff;
  border-color: var(--line);
  color: var(--accent);
  font-weight: 700;
}

/* ---------- 分页（新增） ---------- */
.wem-pagination { display: flex; align-items: center; justify-content: right; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.wem-page-link {
  display: inline-block; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: #666; background: #fff;
}
.wem-page-link:hover { border-color: #d7d9dc; color: var(--accent); }
.wem-page-link.wem-active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.wem-page-ellipsis { color: var(--muted); padding: 0 6px; }

/* ---------- 链接样式（新增） ---------- */
.wem-link { color: var(--accent); text-decoration: none; font-weight: 600; }
.wem-link:hover { text-decoration: underline; }

/* ---------- 文本字号工具类（新增） ---------- */
.wem-text-sm { font-size: 12px !important; }
.wem-text-base { font-size: 14px !important; }
.wem-text-lg { font-size: 18px !important; }
.wem-text-xl { font-size: 22px !important; }
.wem-text-2xl { font-size: 26px !important; }

/* ---------- 外边距工具补充（新增） ---------- */
.wem-mb-8 { margin-bottom: 8px !important; }
.wem-mb-24 { margin-bottom: 24px !important; }
.wem-mb-36 { margin-bottom: 36px !important; }
.wem-mb-40 { margin-bottom: 40px !important; }
.wem-mb-48 { margin-bottom: 48px !important; }
.wem-mb-56 { margin-bottom: 56px !important; }

/* ---------- 评论列表（新增） ---------- */
.wem-comment-list { width: 100%; }
.wem-comment { display: flex; gap: 12px; padding: 14px 0; align-items: flex-start; }
.wem-comment + hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0 6px; }
.wem-comment-avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #f0f2f3; display: flex; align-items: center; justify-content: center; }
.wem-comment-avatar img { width: 48px; height: 48px; object-fit: cover; display: block; border-radius: 50%; }
.wem-comment-body { flex: 1; min-width: 0; }
.wem-comment-author { font-weight: 800; color: #222; }
.wem-comment-content { color: #333; line-height: 1.7; }
.wem-comment-meta { margin-top: 4px; }
.wem-comment-actions { display: flex; align-items: center; margin-left: auto; white-space: nowrap; padding-left: 8px; }
.wem-comment-actions a + a { margin-left: 12px; }

/* 徽章：补充 muted 变体 */
.wem-badge-muted { background: var(--badge-bg); color: #999; }

/* ---------- 徽章（新增） ---------- */
.wem-badge { display: inline-block; padding: 2px 8px; border-radius: 12px; background: var(--badge-bg); color: var(--badge-fg); font-size: 12px; font-weight: 700; }
.wem-badge-danger { background: var(--danger-soft-bg); color: var(--danger-fg); }
.wem-badge-warning { background: var(--warning-soft-bg); color: var(--warning-fg); }
.wem-badge-success { background: var(--success-soft-bg); color: var(--success-fg); }
.wem-badge-info { background: var(--info-soft-bg); color: var(--info-fg); }

/* ---------- 面板结构增强（新增） ---------- */
.wem-panel-header { margin-bottom: 10px; }
.wem-panel-body { width: 100%; }

/* ---------- 角标（Ribbon 组件，新增） ---------- */
.wem-ribbon {
  position: absolute; top: 10px; right: 10px;
  display: inline-block; padding: 2px 10px; border-radius: 12px;
  background: var(--ribbon-bg); color: var(--ribbon-fg); font-size: 12px; font-weight: 700;
}
.wem-ribbon-warning { background: var(--ribbon-warning-bg); color: var(--ribbon-warning-fg); }
.wem-ribbon-info { background: var(--ribbon-info-bg); color: var(--ribbon-info-fg); }
.wem-ribbon-success { background: var(--ribbon-success-bg); color: var(--ribbon-success-fg); }
.wem-ribbon-danger { background: var(--ribbon-danger-bg); color: var(--ribbon-danger-fg); }

/* ---------- 统计卡增强（新增） ---------- */
.wem-stat-label { color: #666; font-size: 12px; margin-bottom: 4px; }
.wem-stat-trend { color: var(--muted); font-size: 12px; }
.wem-stat-trend.up { color: var(--accent); }
.wem-stat-trend.down { color: var(--danger); }

/* ---------- 复选框（新增） ---------- */
.wem-checkbox { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.wem-checkbox input { width: 16px; height: 16px; }

/* ---------- 表单动作区（新增） ---------- */
.wem-form-actions { display: flex; gap: 12px; align-items: center; margin-top: 8px; }

/* ---------- 步骤指示器（新增） ---------- */

/* ---------- 二维码展示（新增） ---------- */
.wem-qrcode-wrap { display:inline-flex; flex-direction:column; align-items:center; gap:10px; }
.wem-qrcode {
  width: 200px; height: 200px; /* 基准尺寸 */
  max-width: 100%; aspect-ratio: 1 / 1;
  background: #fff; border: 1px solid var(--line); padding: 10px; border-radius: 12px;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 4px 18px rgba(0,0,0,0.06);
}
/* 支付方式logo展示 */
.wem-qrcode-logo {
  width: 105px; height: 105px; /* 基准尺寸 */
  max-width: 100%; aspect-ratio: 1 / 1;
  background: #fff; border: 1px solid var(--line); padding: 10px; border-radius: 12px;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 4px 18px rgba(0,0,0,0.06);
}
.wem-qrcode img { width:100%; height:100%; object-fit:contain; image-rendering:pixelated; }
.wem-qrcode-caption { font-size:12px; color:var(--muted); line-height:1.4; text-align:center; }
@media (max-width: 640px) { .wem-qrcode { width:160px; height:160px; padding:8px; } }
@media (max-width: 420px) { .wem-qrcode { width:140px; height:140px; padding:6px; } }

/* ---------- 顶部横幅（新增） ---------- */
.wem-banner { margin: 0 0 12px 0; }
.wem-top-banner { width: 100%; height: auto; border-radius: 8px; display: block; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .wem-container { max-width: 940px; padding: 0 12px; }
  .wem-cards { grid-template-columns: repeat(2, 1fr); }
  .wem-sider { display: none; }
  .wem-form-row { gap: 14px; }
  .wem-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .wem-form-row { flex-direction: column; gap: 16px; }
  .wem-price-group { flex-direction: row; align-items: center; }
  .wem-upload-container { justify-content: center; }
  .wem-upload-area, .wem-image-preview { width: 120px; height: 120px; min-height: 120px; }
  .wem-grid { grid-template-columns: repeat(2, 1fr); }
  /* 身份证上传在断点下的宽度覆盖，保持比例 */
  .wem-upload-area-idcard { width: 220px; height: auto; min-height: 0 !important; }
}

@media (max-width: 640px) {
  .wem-header-nav { display: none; }
  .wem-vip-badge { display: none; }
  .wem-container { margin: 12px auto 120px; }
  .wem-content { padding: 18px; }
  .wem-cards { grid-template-columns: 1fr; }
  .wem-payments { flex-wrap: wrap; }
  .wem-payment { width: 100px; }
  .wem-form-item, .wem-primary-btn, .wem-secondary-btn { max-width: 100%; }
  .wem-upload-area, .wem-image-preview { width: 100px; height: 100px; min-height: 100px; }
  .wem-upload-icon { width: 32px; height: 32px; font-size: 18px; margin-bottom: 8px; }
  .wem-upload-text { font-size: 12px; }
  /* 身份证上传在更小断点下的宽度覆盖，保持比例 */
  .wem-upload-area-idcard { width: 180px; height: auto; min-height: 0 !important; }
}
/* ---------- 密码修改 ---------- */
.wem-pwd-meter { display:inline-flex; align-items:center; gap:8px; }
.wem-pwd-bars { display:inline-flex; gap:4px; height:6px; }
.wem-pwd-bars .bar { width:24px; height:6px; background:#e5e7eb; border-radius:3px; transition:background-color .2s; }
.wem-pwd-bars .bar.active { background:#f59e0b; }
.wem-pwd-bars .bar.active + .bar.active { background:#10b981; } /* 更强的段变绿 */
.wem-pwd-text { font-size:12px; color:#6b7280; }

/* 移动端：小眼睛按钮改为图标样式（无边框） */
@media (max-width: 640px) {
  .wem-input + .wem-secondary-btn[aria-label="切换可见性"] {
    padding: 0 6px;
    border: none;
    background: transparent;
    box-shadow: none;
    min-height: auto;
  }
}

/* ---------- 新增：网格卡片四角按钮布局 ---------- */
/* 使用 wem-overlay-corners 修饰符来启用四角布局，不影响原有样式 */
.wem-grid-thumb-wrap.wem-overlay-corners { position: relative; overflow: hidden; border-radius: 8px; }

/* 覆盖原有的 .wem-fav-overlay 样式 */
.wem-grid-thumb-wrap.wem-overlay-corners .wem-fav-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: transparent;
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
  display: block; /* 重置 flex */
}

.wem-grid-thumb-wrap.wem-overlay-corners:hover .wem-fav-overlay {
  background: rgba(0,0,0,0.05);
}

/* 新增操作按钮样式 - 统一为深色半透明胶囊风格 */
.wem-action-btn {
  position: absolute;
  background: rgba(0,0,0,0.55);
  height: 26px;
  padding: 0 10px;
  border-radius: 13px;
  font-size: 12px;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: normal;
  line-height: 1;
  border: none;
}
.wem-action-btn:hover {
  background: rgba(0,0,0,0.75);
  color: #fff;
}
.wem-action-btn.wem-text-danger {
  color: #ff6b6b;
}
.wem-action-btn.wem-text-danger:hover {
  background: rgba(0,0,0,0.85);
  color: #ff4d4f;
}
.wem-action-btn input { margin: 0; width: 14px; height: 14px; cursor: pointer; }

/* 四角定位辅助类 */
.wem-pos-tl { top: 8px; left: 8px; }
.wem-pos-tr { top: 8px; right: 8px; }
.wem-pos-bl { bottom: 8px; left: 8px; }
.wem-pos-br { bottom: 8px; right: 8px; }