/* ==========================================================================
   论坛用户中心 — 前台样式
   规范：无 !important，冲突一律用选择器特异性解决
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. 设计变量（自持）
   --------------------------------------------------------------------------
   原来这15 个变量定义在子主题 hweforum.css 里。作为独立插件，
   换到别的主题后那套变量就没了，整页会失去所有配色与圆角。

   这里在 .hwe-uc__page 作用域内重新定义：
     1. 主题有这套变量时，var() 沿用主题的（用户改主题色能联动）；
     2. 主题没有时，用这里的兜底值（换主题也能正常显示）。

   为什么包在 .hwe-uc__page 里而不是 :root：
   变量定义在 :root 会污染整个站点，抢主题的同名变量。
   限定作用域后，插件只影响自己的界面。

   同理把 .hwe-btn / .hwe-eyebrow / .hwe-h2 等原本来自主题的原子类
   也补一份，避免换主题后按钮、标题变成裸样式。
   -------------------------------------------------------------------------- */
.hwe-uc__page {
	--hwe-deep: var(--hwe-deep, #0a2f4a);
	--hwe-lagoon: var(--hwe-lagoon, #1279a8);
	--hwe-gold: var(--hwe-gold, #e8b75d);
	--hwe-foam: var(--hwe-foam, #eaf4f8);
	--hwe-ink: var(--hwe-ink, #0b1b26);
	--hwe-body: var(--hwe-body, #4a5f6e);
	--hwe-line: var(--hwe-line, #d5e3ec);
	--hwe-paper: var(--hwe-paper, #ffffff);
	--hwe-cta: var(--hwe-gold);
	--hwe-cta-ink: var(--hwe-cta-ink, #3a2a05);
	--hwe-serif: var(--hwe-serif, "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif);
	--hwe-sans: var(--hwe-sans, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	--hwe-gap: var(--hwe-gap, clamp(20px, 4vw, 48px));
	--hwe-radius: var(--hwe-radius, 14px);
	--hwe-radius-sm: var(--hwe-radius-sm, 8px);
	--hwe-shadow: var(--hwe-shadow, 0 18px 48px rgba(4, 24, 43, .12));
	--hwe-shadow-lg: var(--hwe-shadow-lg, 0 32px 80px rgba(4, 24, 43, .28));
}

/*
 * 原子类补齐。
 *
 * 模板里用了 hwe-btn / hwe-eyebrow / hwe-h2 / hwe-section / hwe-wrap，
 * 这些原本是子主题提供的。插件要独立，就得自带一份。
 * 全部限定在 .hwe-uc__page 下，不影响主题原有元素。
 */
.hwe-uc__page {
	font-family: var(--hwe-sans);
	color: var(--hwe-body);
	line-height: 1.65;
}

.hwe-uc__page .hwe-section {
	padding: clamp(28px, 5vw, 56px) 0;
	background: var(--hwe-foam);
}

.hwe-uc__page .hwe-wrap {
	width: min(1180px, 100% - 40px);
	margin-inline: auto;
}

.hwe-uc__page .hwe-eyebrow {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--hwe-lagoon);
}

.hwe-uc__page .hwe-h2 {
	margin: 0 0 10px;
	font-family: var(--hwe-serif);
	font-size: clamp(26px, 3.4vw, 38px);
	font-weight: 700;
	line-height: 1.24;
	color: var(--hwe-ink);
}

.hwe-uc__page .hwe-h3 {
	margin: 0;
	font-family: var(--hwe-serif);
	font-size: 18px;
	font-weight: 700;
	color: var(--hwe-ink);
}

.hwe-uc__page .hwe-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--hwe-lagoon);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.hwe-uc__page .hwe-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(4, 24, 43, .18);
}

.hwe-uc__page .hwe-btn--gold {
	background: var(--hwe-gold);
	color: var(--hwe-cta-ink);
}

.hwe-uc__page .hwe-btn--ghost {
	background: transparent;
	border-color: var(--hwe-line);
	color: var(--hwe-ink);
}

.hwe-uc__page .hwe-btn--lg {
	padding: 15px 30px;
	font-size: 16px;
}

.hwe-uc__page .hwe-btn[disabled] {
	opacity: .55;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

/* --------------------------------------------------------------------------
   1. 页面外壳
   -------------------------------------------------------------------------- */
/*
 * 作用域说明（这个曾经坑过一次，务必看）：
 *
 * 下面所有规则原本都写成 `.hwe-uc X`，但**页面外壳类有两个**：
 *   .hwe-uc       —— 旧的主题模板
 *   .hwe-uc__page —— 现在的短码模板（hwe_member_render 输出）
 *
 * 抽独立插件时换成了短码，CSS 没跟着改，
 * 结果这些规则一条都不生效 —— 提示条里的 SVG 按浏览器默认 24×24
 * 渲染成一个大三角形，表格、输入框、按钮也全丢样式。
 *
 * 所以每条规则都挂了**两个并列作用域**。少挂一条就留一个坑，
 * 不如一次性对齐。
 */
.hwe-uc,
.hwe-uc__page {
	font-family: var(--hwe-sans);
	background: var(--hwe-foam);
	min-height: 60vh;
}

.hwe-uc .hwe-uc__narrow,
.hwe-uc__page .hwe-uc__narrow {
  max-width: 520px;
  margin: 0 auto;
}

.hwe-uc__head {
  margin: 0 0 32px;
}

.hwe-uc__head .hwe-h2 {
  margin: 0 0 10px;
}

.hwe-uc__tip {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--hwe-body);
}

/* --------------------------------------------------------------------------
   2. 提示条
   -------------------------------------------------------------------------- */
.hwe-uc .hwe-notice,
.hwe-uc__page .hwe-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 24px;
  padding: 14px 18px;
  border: 1px solid var(--hwe-line);
  border-left: 4px solid var(--hwe-lagoon);
  border-radius: var(--hwe-radius-sm);
  background: var(--hwe-paper);
  font-size: 14px;
  line-height: 1.6;
  color: var(--hwe-body);
}

.hwe-uc .hwe-notice svg,
.hwe-uc__page .hwe-notice svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
  fill: none;
  stroke: var(--hwe-lagoon);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hwe-uc .hwe-notice--warn,
.hwe-uc__page .hwe-notice--warn {
  border-left-color: var(--hwe-gold);
  background: #fffaef;
}

.hwe-uc .hwe-notice--warn svg,
.hwe-uc__page .hwe-notice--warn svg {
  stroke: #b8862c;
}

.hwe-uc .hwe-notice--ok,
.hwe-uc__page .hwe-notice--ok {
  border-left-color: #1a9d5a;
}

.hwe-uc .hwe-notice--ok svg,
.hwe-uc__page .hwe-notice--ok svg {
  stroke: #1a9d5a;
}

.hwe-uc .hwe-notice--err,
.hwe-uc__page .hwe-notice--err {
  border-left-color: #c0392b;
  background: #fdf1f0;
}

.hwe-uc .hwe-notice--err svg,
.hwe-uc__page .hwe-notice--err svg {
  stroke: #c0392b;
}

.hwe-uc .hwe-notice a,
.hwe-uc__page .hwe-notice a {
  color: var(--hwe-lagoon);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   3. 卡片 / 栅格
   -------------------------------------------------------------------------- */
.hwe-uc__card,
.hwe-uc__panel {
  background: var(--hwe-paper);
  border: 1px solid var(--hwe-line);
  border-radius: var(--hwe-radius);
  padding: clamp(24px, 3.4vw, 38px);
  box-shadow: 0 10px 30px rgba(4, 24, 43, .05);
}

.hwe-uc__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: var(--hwe-gap);
  align-items: start;
}

.hwe-uc__h3-gap {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--hwe-line);
}

.hwe-uc__empty {
  padding: 56px 24px;
  text-align: center;
  background: var(--hwe-paper);
  border: 1px dashed var(--hwe-line);
  border-radius: var(--hwe-radius);
}

.hwe-uc__empty p {
  margin: 0 0 18px;
  color: var(--hwe-body);
}

/* 快捷操作 */
.hwe-uc__acts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hwe-uc__act {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--hwe-line);
  border-radius: var(--hwe-radius-sm);
  background: var(--hwe-paper);
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.hwe-uc__act:hover,
.hwe-uc__act:focus-visible {
  border-color: var(--hwe-lagoon);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(18, 121, 168, .12);
}

.hwe-uc__act svg {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: var(--hwe-lagoon);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hwe-uc__act span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hwe-uc__act b {
  font-size: 15px;
  font-weight: 600;
  color: var(--hwe-ink);
}

.hwe-uc__act i {
  font-style: normal;
  font-size: 13px;
  color: var(--hwe-body);
}

/* --------------------------------------------------------------------------
   4. 表单
   -------------------------------------------------------------------------- */
.hwe-uc .hwe-form,
.hwe-uc__page .hwe-form,
.hwe-uc__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hwe-uc__form {
  max-width: 860px;
  padding: clamp(24px, 3.4vw, 40px);
  background: var(--hwe-paper);
  border: 1px solid var(--hwe-line);
  border-radius: var(--hwe-radius);
  box-shadow: 0 10px 30px rgba(4, 24, 43, .05);
}

.hwe-uc .hwe-field,
.hwe-uc__page .hwe-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.hwe-uc .hwe-field label,
.hwe-uc__page .hwe-field label {
  font-size: 14px;
  font-weight: 500;
  color: var(--hwe-ink);
}

.hwe-uc .hwe-field label em,
.hwe-uc__page .hwe-field label em {
  font-style: normal;
  color: #c0392b;
  margin-left: 2px;
}

.hwe-uc .hwe-field input[type="text"],
.hwe-uc__page .hwe-field input[type="text"],
.hwe-uc .hwe-field input[type="email"],
.hwe-uc__page .hwe-field input[type="email"],
.hwe-uc .hwe-field input[type="tel"],
.hwe-uc__page .hwe-field input[type="tel"],
.hwe-uc .hwe-field input[type="password"],
.hwe-uc__page .hwe-field input[type="password"],
.hwe-uc .hwe-field select,
.hwe-uc__page .hwe-field select,
.hwe-uc .hwe-field textarea,
.hwe-uc__page .hwe-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--hwe-line);
  border-radius: var(--hwe-radius-sm);
  background: #fbfdfe;
  font-family: var(--hwe-sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--hwe-ink);
  transition: border-color .18s ease, background-color .18s ease;
}

.hwe-uc .hwe-field textarea,
.hwe-uc__page .hwe-field textarea {
  min-height: 84px;
  resize: vertical;
}

.hwe-uc .hwe-field input:focus,
.hwe-uc__page .hwe-field input:focus,
.hwe-uc .hwe-field select:focus,
.hwe-uc__page .hwe-field select:focus,
.hwe-uc .hwe-field textarea:focus,
.hwe-uc__page .hwe-field textarea:focus {
  border-color: var(--hwe-lagoon);
  background: var(--hwe-paper);
}

.hwe-uc .hwe-field input:disabled,
.hwe-uc__page .hwe-field input:disabled {
  background: #f1f4f6;
  color: #8b9aa5;
  cursor: not-allowed;
}

.hwe-uc .hwe-field__hint,
.hwe-uc__page .hwe-field__hint {
  font-size: 12.5px;
  color: #7b8b97;
}

.hwe-uc .hwe-btn,
.hwe-uc__page .hwe-btn {
  align-self: flex-start;
}

.hwe-uc__foot {
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--hwe-line);
  font-size: 14px;
  color: var(--hwe-body);
}

.hwe-uc__foot a {
  color: var(--hwe-lagoon);
  font-weight: 500;
  text-decoration: none;
}

.hwe-uc__foot a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   5. 支付表单
   -------------------------------------------------------------------------- */
.hwe-uc__fs {
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--hwe-line);
  padding-bottom: 28px;
}

.hwe-uc__fs:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.hwe-uc__fs legend {
  padding: 0;
  margin-bottom: 18px;
  font-family: var(--hwe-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--hwe-ink);
}

.hwe-pickpkg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.hwe-pickpkg__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 18px 18px;
  border: 1px solid var(--hwe-line);
  border-radius: var(--hwe-radius-sm);
  background: var(--hwe-paper);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.hwe-pickpkg__item:hover {
  border-color: #a9cfe0;
}

.hwe-pickpkg__item input {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 16px;
  height: 16px;
  accent-color: var(--hwe-lagoon);
}

.hwe-pickpkg__no {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--hwe-gold);
  font-weight: 600;
}

.hwe-pickpkg__item b {
  font-size: 16px;
  font-weight: 600;
  color: var(--hwe-ink);
  padding-right: 24px;
}

.hwe-pickpkg__item em {
  font-style: normal;
  font-family: var(--hwe-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--hwe-deep);
  line-height: 1.2;
}

.hwe-pickpkg__item i {
  font-style: normal;
  font-size: 13px;
  color: var(--hwe-body);
  line-height: 1.55;
}

/* 折合金额：标价下方的小字，不抢主价格的视觉重量 */
.hwe-pickpkg__item u {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--hwe-body);
  background: rgba(15, 45, 66, .05);
  border-radius: 10px;
  padding: 1px 9px;
  align-self: flex-start;
}

.hwe-pickpkg__fxnote {
  margin: 0 0 14px;
  line-height: 1.6;
}

.hwe-pickpkg__vip {
  align-self: flex-start;
  margin-top: 4px;
  padding: 2px 9px;
  border-radius: 10px;
  background: rgba(232, 183, 93, .2);
  color: #8a6116;
  font-size: 11.5px;
  font-weight: 600;
}

/* 选中态：靠提高特异性压过上面的边框声明 */
.hwe-pickpkg__item:has(input:checked) {
  border-color: var(--hwe-lagoon);
  background: #f5fbfe;
  box-shadow: 0 10px 26px rgba(18, 121, 168, .14);
}

.hwe-pickpkg__item:has(input:checked) em {
  color: var(--hwe-lagoon);
}

.hwe-pickpkg__item:has(input:focus-visible) {
  outline: 2px solid var(--hwe-lagoon);
  outline-offset: 3px;
}

/* 参会人卡 */
#hweAttendees {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hwe-attform {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 20px 20px;
  border: 1px solid var(--hwe-line);
  border-radius: var(--hwe-radius-sm);
  background: #f9fcfe;
}

.hwe-attform h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--hwe-deep);
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--hwe-line);
}

.hwe-attform .hwe-btn {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
  align-self: flex-start;
}

.hwe-attform__rm {
  position: absolute;
  top: 14px;
  right: 16px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #f0c8c4;
  border-radius: 999px;
  background: transparent;
  color: #c0392b;
  font-family: var(--hwe-sans);
  font-size: 12.5px;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease;
}

.hwe-attform__rm:hover {
  background: #fdf1f0;
  border-color: #c0392b;
}

/* 支付方式 */
.hwe-pickgw {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.hwe-pickgw__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--hwe-line);
  border-radius: var(--hwe-radius-sm);
  background: var(--hwe-paper);
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}

.hwe-pickgw__item input {
  width: 16px;
  height: 16px;
  flex: none;
  accent-color: var(--hwe-lagoon);
}

.hwe-pickgw__item b {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--hwe-ink);
}

.hwe-pickgw__item:has(input:checked) {
  border-color: var(--hwe-lagoon);
  background: #f5fbfe;
}

/* 金额条 */
.hwe-uc__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 18px 20px;
  border-radius: var(--hwe-radius-sm);
  background: var(--hwe-deep);
  color: rgba(234, 244, 248, .8);
  font-size: 14px;
}

.hwe-uc__total b {
  font-family: var(--hwe-serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--hwe-gold);
  line-height: 1;
}

/* 折合说明：跟着主金额走，独占一行时不挤掉标签 */
.hwe-uc__total .hwe-uc__total-fx {
  flex: 0 0 100%;
  order: 3;
  text-align: right;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(234, 244, 248, .68);
}

.hwe-uc__total .hwe-uc__total-fx[hidden] {
  display: none;
}

.hwe-uc__submit {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  padding-top: 4px;
}

.hwe-uc__submit .hwe-btn {
  align-self: flex-start;
}

.hwe-uc__submit .hwe-uc__tip {
  font-size: 13px;
  color: #7b8b97;
}

.hwe-btn--lg {
  min-height: 56px;
  padding: 0 40px;
  font-size: 16px;
}

/* 前端消息条 */
.hwe-uc__msg {
  padding: 14px 18px;
  border-radius: var(--hwe-radius-sm);
  font-size: 14px;
  line-height: 1.6;
}

.hwe-uc__msg.is-err {
  background: #fdf1f0;
  border: 1px solid #f0c8c4;
  color: #a03228;
}

.hwe-uc__msg.is-ok {
  background: #eaf7f0;
  border: 1px solid #bde3cd;
  color: #14663c;
}

.hwe-uc__msg.is-busy {
  background: #eef6fa;
  border: 1px solid #c6e0ec;
  color: var(--hwe-deep);
}

/* 按钮忙碌态 */
.hwe-btn[disabled] {
  opacity: .62;
  cursor: not-allowed;
  transform: none;
}

.hwe-btn.is-busy {
  position: relative;
  color: transparent;
}

.hwe-btn.is-busy::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(58, 42, 5, .28);
  border-top-color: var(--hwe-cta-ink);
  border-radius: 50%;
  animation: hwe-spin .7s linear infinite;
}

@keyframes hwe-spin {
  to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   6. 订单列表
   -------------------------------------------------------------------------- */
.hwe-orders {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hwe-order {
  background: var(--hwe-paper);
  border: 1px solid var(--hwe-line);
  border-radius: var(--hwe-radius);
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.hwe-order.is-open,
.hwe-order:hover {
  border-color: #a9cfe0;
  box-shadow: 0 10px 30px rgba(4, 24, 43, .06);
}

.hwe-order__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: #f9fcfe;
  border-bottom: 1px solid var(--hwe-line);
}

.hwe-order__no {
  display: inline-block;
  margin-bottom: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  color: var(--hwe-lagoon);
  letter-spacing: .02em;
}

.hwe-order__top .hwe-h3 {
  margin: 0;
  font-size: 18px;
}

.hwe-order__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.hwe-order__amt {
  font-family: var(--hwe-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--hwe-deep);
}

/* 实收金额：主金额下方，明确标出这是实际收的钱 */
.hwe-order__settle {
  font-size: 13px;
  font-weight: 600;
  color: var(--hwe-body);
  align-self: center;
}

.hwe-order__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px;
}

.hwe-order__info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px 20px;
  margin: 0;
}

.hwe-order__info > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hwe-order__info dt {
  font-size: 12.5px;
  color: #7b8b97;
}

.hwe-order__info dd {
  margin: 0;
  font-size: 14.5px;
  color: var(--hwe-ink);
}

.hwe-order__info code,
.hwe-uc__panel code {
  padding: 1px 6px;
  border-radius: 4px;
  background: #eef4f7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  color: var(--hwe-deep);
  word-break: break-all;
}

.hwe-order__sub {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--hwe-ink);
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--hwe-line);
}

.hwe-attendees {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.hwe-attendee {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 12px 14px;
  border: 1px solid var(--hwe-line);
  border-radius: var(--hwe-radius-sm);
  background: #fbfdfe;
  font-size: 13.5px;
  color: var(--hwe-body);
}

.hwe-attendee b {
  font-size: 15px;
  font-weight: 600;
  color: var(--hwe-ink);
  width: 100%;
}

.hwe-attendee__id {
  width: 100%;
  padding-top: 6px;
  margin-top: 4px;
  border-top: 1px dashed var(--hwe-line);
  font-size: 12.5px;
  color: #7b8b97;
}

.hwe-order__ops {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--hwe-line);
}

.hwe-order__inv {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--hwe-body);
}

/* 状态标签 */
.hwe-uc .hwe-tag,
.hwe-uc__page .hwe-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  background: #f0f3f5;
  color: #64748b;
  white-space: nowrap;
}

.hwe-uc .hwe-tag--paid,
.hwe-uc__page .hwe-tag--paid,
.hwe-uc .hwe-tag--issued,
.hwe-uc__page .hwe-tag--issued {
  background: #e5f5ec;
  color: #0a6b2e;
}

.hwe-uc .hwe-tag--pending,
.hwe-uc__page .hwe-tag--pending {
  background: #fcf3d8;
  color: #8a6116;
}

.hwe-uc .hwe-tag--refunded,
.hwe-uc__page .hwe-tag--refunded,
.hwe-uc .hwe-tag--rejected,
.hwe-uc__page .hwe-tag--rejected,
.hwe-uc .hwe-tag--failed,
.hwe-uc__page .hwe-tag--failed {
  background: #fbeaea;
  color: #8a2424;
}

.hwe-uc .hwe-tag--closed,
.hwe-uc__page .hwe-tag--closed {
  background: #eef1f3;
  color: #6b7a85;
}

/* 侧栏订单简表（用户中心右栏） */
.hwe-ordlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hwe-ordlist a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--hwe-line);
  border-radius: var(--hwe-radius-sm);
  text-decoration: none;
  font-size: 14px;
  color: var(--hwe-body);
  transition: border-color .18s ease, background-color .18s ease;
}

.hwe-ordlist a:hover,
.hwe-ordlist a:focus-visible {
  border-color: var(--hwe-lagoon);
  background: #f5fbfe;
}

.hwe-ordlist__no {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--hwe-lagoon);
  flex: none;
}

.hwe-ordlist__pkg {
  flex: 1;
  color: var(--hwe-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hwe-ordlist__amt {
  font-weight: 600;
  color: var(--hwe-deep);
  flex: none;
}

/* --------------------------------------------------------------------------
   7. 导航栏账号入口
   -------------------------------------------------------------------------- */
/*
 * 导航账号入口在 .hwe-uc__page 之外（它在主题导航栏里），
 * 所以变量作用域要再包一层。
 * .hwe-acct-slot 是短码 [hwe_member_nav] 的外层容器。
 */
.hwe-acct-slot {
	--hwe-deep: var(--hwe-deep, #0a2f4a);
	--hwe-lagoon: var(--hwe-lagoon, #1279a8);
	--hwe-gold: var(--hwe-gold, #e8b75d);
	--hwe-ink: var(--hwe-ink, #0b1b26);
	--hwe-body: var(--hwe-body, #4a5f6e);
	--hwe-line: var(--hwe-line, #d5e3ec);
	--hwe-paper: var(--hwe-paper, #ffffff);
	--hwe-cta-ink: var(--hwe-cta-ink, #3a2a05);
	--hwe-sans: var(--hwe-sans, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	--hwe-radius-sm: var(--hwe-radius-sm, 8px);
	--hwe-shadow: var(--hwe-shadow, 0 18px 48px rgba(4, 24, 43, .12));
	/* 入口与页头其它元素的间距，主题可覆盖 */
	--hwe-acct-gap: var(--hwe-acct-gap, 12px);
	font-family: var(--hwe-sans);
}

.hwe-acct-slot--left {
	margin-right: 10px;
}

/*
 * Astra 页头适配。
 *
 * 两个问题：
 * 1. Astra 常用透明页头（滚到顶部时叠在内容上），
 *    注入到 above-header 时没有独立背景，需要自己补一层容器；
 * 2. Astra 允许「页头在滚动后变色」，注入的入口若自己带背景，
 *    在白底页头上会显得是个补丁。
 *
 * 做法：注入容器默认**跟随**页头（不自带底色），
 * 只在 above-header 这种没有宿主背景的位置给一层淡色底 + 内边距，
 * 让它看起来是个有意设计的元素而不是贴上去的。
 */
.hwe-acct-slot {
	display: flex;
	align-items: center;
	flex: none;
}

.astra-site-header .hwe-acct-slot,
.site-header .hwe-acct-slot {
	/* 页头内部跟随主题的排版间距，不额外加 margin */
	margin-left: var(--hwe-acct-gap, 12px);
}

.astra-above-header .hwe-acct-slot,
.astra-below-header .hwe-acct-slot {
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .92);
	box-shadow: 0 2px 10px rgba(4, 24, 43, .08);
	/* 深色页头上用浅色底，浅色页头上也读得清 */
	backdrop-filter: saturate(1.4) blur(6px);
}

.astra-above-header .hwe-acct__link,
.astra-below-header .hwe-acct__link {
	color: var(--hwe-deep);
}

.astra-above-header .hwe-acct__link--gold,
.astra-below-header .hwe-acct__link--gold {
	background: var(--hwe-gold);
	color: var(--hwe-cta-ink);
}

/* 移动端：Astra 折叠菜单里入口改成竖排，别挤在汉堡按钮旁边 */
@media (max-width: 1024px) {
	.astra-mobile-menu-items .hwe-acct-slot,
	.astra-above-header .hwe-acct-slot {
		width: 100%;
		justify-content: center;
		margin: 8px 0 0;
		padding: 10px;
		background: rgba(255, 255, 255, .96);
	}
}

.hwe-acct {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: 10px;
  flex: none;
}

.hwe-acct__link {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .18s ease, background-color .18s ease;
}

.hwe-acct__link:hover,
.hwe-acct__link:focus-visible {
  border-color: var(--hwe-gold);
  background: rgba(232, 183, 93, .12);
}

.hwe-acct__link--gold {
  background: var(--hwe-gold);
  border-color: var(--hwe-gold);
  color: var(--hwe-cta-ink);
  font-weight: 500;
}

.hwe-acct__link--gold:hover,
.hwe-acct__link--gold:focus-visible {
  background: #f2c876;
  border-color: #f2c876;
}

.hwe-acct__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px 0 6px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: var(--hwe-sans);
  font-size: 14px;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}

.hwe-acct__btn:hover,
.hwe-acct__btn[aria-expanded="true"] {
  border-color: var(--hwe-gold);
  background: rgba(232, 183, 93, .12);
}

.hwe-acct__av {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--hwe-gold);
  color: var(--hwe-cta-ink);
  font-size: 14px;
  font-weight: 600;
  flex: none;
}

.hwe-acct__name {
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hwe-acct__btn svg {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}

.hwe-acct__btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.hwe-acct__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  min-width: 172px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--hwe-paper);
  border: 1px solid var(--hwe-line);
  border-radius: var(--hwe-radius-sm);
  box-shadow: var(--hwe-shadow);
}

.hwe-acct__menu[hidden] {
  display: none;
}

.hwe-acct__menu li + li {
  border-top: 1px solid #eef2f4;
}

.hwe-acct__menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--hwe-ink);
  text-decoration: none;
  transition: background-color .16s ease, color .16s ease;
}

.hwe-acct__menu a:hover,
.hwe-acct__menu a:focus-visible {
  background: var(--hwe-foam);
  color: var(--hwe-lagoon);
}

.hwe-acct__menu li:last-child a {
  color: #c0392b;
}

.hwe-acct__menu li:last-child a:hover,
.hwe-acct__menu li:last-child a:focus-visible {
  background: #fdf1f0;
  color: #c0392b;
}

/* --------------------------------------------------------------------------
   8. 响应式
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hwe-uc__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .hwe-uc__card,
  .hwe-uc__panel,
  .hwe-uc__form {
    padding: 20px 16px;
  }

  .hwe-uc__grid {
    gap: 16px;
  }

  .hwe-pickpkg {
    grid-template-columns: minmax(0, 1fr);
  }

  .hwe-order__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
  }

  .hwe-order__body {
    padding: 16px;
  }

  .hwe-uc__total {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .hwe-uc__total b {
    font-size: 26px;
  }

  .hwe-uc__submit .hwe-btn,
  .hwe-uc .hwe-btn,
  .hwe-uc__page .hwe-btn {
    width: 100%;
  }

  .hwe-acct__name {
    display: none;
  }

  .hwe-acct__link {
    padding: 0 12px;
    font-size: 13px;
  }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  .hwe-uc *,
  .hwe-uc__page *,
  .hwe-acct * {
    transition-duration: .01ms;
    animation-duration: .01ms;
  }

  .hwe-btn.is-busy::after {
    animation: none;
  }
}
