/* ========== 管理后台 · Ant Design Pro ========== */
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif; color: rgba(0, 0, 0, 0.88); }
a { color: #1677ff; text-decoration: none; }

.diy-admin-body.diy-pro {
  --diy-primary: #1677ff;
  --diy-primary-hover: #4096ff;
  --diy-primary-active: #0958d9;
  --diy-success: #52c41a;
  --diy-warning: #fa8c16;
  --diy-text: rgba(0, 0, 0, 0.88);
  --diy-text-secondary: rgba(0, 0, 0, 0.65);
  --diy-text-tertiary: rgba(0, 0, 0, 0.45);
  --diy-border: #f0f0f0;
  --diy-bg: #f5f5f5;
  --diy-card-radius: 8px;
  --diy-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02);
  background: var(--diy-bg);
  min-height: 100vh;
}
.diy-admin-layout { min-height: 100vh; }

.diy-pro-header {
  height: 56px;
  background: #fff;
  border-bottom: 1px solid var(--diy-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: var(--diy-shadow);
}
.diy-pro-brand { display: flex; align-items: center; gap: 12px; }
.diy-pro-brand-mark {
  width: 28px; height: 28px; border-radius: 6px;
  background: linear-gradient(135deg, #1677ff 0%, #69b1ff 100%);
  box-shadow: 0 2px 6px rgba(22, 119, 255, 0.35);
}
.diy-pro-brand-text { display: flex; align-items: center; gap: 10px; }
.diy-pro-brand-text strong {
  font-size: 16px; font-weight: 600; color: var(--diy-text); letter-spacing: 0.01em;
}
.diy-pro-tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  font-size: 12px; color: var(--diy-primary); background: #e6f4ff;
  border: 1px solid #91caff; border-radius: 4px; font-weight: 500;
}
.diy-pro-main {
 
  margin: 0 auto;
  padding: 16px 24px 32px;
}
.diy-tpl-main { background: transparent; }

.diy-pro-breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  margin-bottom: 16px; font-size: 14px; color: var(--diy-text-tertiary);
}
.diy-pro-breadcrumb a { color: var(--diy-text-secondary); }
.diy-pro-breadcrumb a:hover { color: var(--diy-primary); }
.diy-pro-bc-sep { color: rgba(0, 0, 0, 0.25); }
.diy-pro-breadcrumb .is-current { color: var(--diy-text); }

.diy-pro-card {
  background: #fff;
  border-radius: var(--diy-card-radius);
  border: 1px solid var(--diy-border);
  box-shadow: var(--diy-shadow);
}

.diy-pro-input,
.diy-pro-select {
  height: 32px; min-width: 180px; max-width: 100%;
  padding: 4px 11px; font-size: 14px; line-height: 1.5714;
  color: var(--diy-text); background: #fff;
  border: 1px solid #d9d9d9; border-radius: 6px;
  transition: border-color .2s, box-shadow .2s;
  outline: none; font-family: inherit;
}
.diy-pro-input::placeholder { color: rgba(0, 0, 0, 0.25); }
.diy-pro-input:hover,
.diy-pro-select:hover { border-color: var(--diy-primary-hover); }
.diy-pro-input:focus,
.diy-pro-select:focus {
  border-color: var(--diy-primary);
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.1);
}

.diy-pro-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 15px; font-size: 14px; line-height: 1;
  border-radius: 6px; border: 1px solid transparent; cursor: pointer;
  transition: all .2s; user-select: none; white-space: nowrap;
  font-family: inherit;
}
.diy-pro-btn-primary {
  color: #fff; background: var(--diy-primary); border-color: var(--diy-primary);
  box-shadow: 0 2px 0 rgba(5, 145, 255, 0.1);
}
.diy-pro-btn-primary:hover { background: var(--diy-primary-hover); border-color: var(--diy-primary-hover); }
.diy-pro-btn-default {
  color: var(--diy-text); background: #fff; border-color: #d9d9d9;
}
.diy-pro-btn-default:hover { color: var(--diy-primary-hover); border-color: var(--diy-primary-hover); }

.diy-tpl-toolbar { padding: 20px 20px 12px; margin-bottom: 16px; }
.diy-tpl-filters {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px;
}
.diy-tpl-field {
  display: flex; flex-direction: column; gap: 6px;
}
.diy-tpl-field label {
  font-size: 14px; color: var(--diy-text-secondary);
}
.diy-tpl-actions {
  display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto;
  padding-bottom: 2px;
}

.diy-tpl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.diy-tpl-card {
  background: #fff;
  border: 1px solid var(--diy-border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s;
}
.diy-tpl-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
.diy-tpl-cover {
  position: relative;
  height: 168px;
  background-color: #f5f5f5;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.diy-tpl-cover.has-thumb {
  background-color: #eef0f3;
  background-size: cover;
  background-position: top center;
  cursor: zoom-in;
}
.diy-tpl-cover-img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: top center !important;
  display: block;
}
.diy-tpl-cover-placeholder {
  width: 78%; height: 78%; margin: 18px auto 0;
  background: #fff; border-radius: 6px; border: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(0,0,0,.06); overflow: hidden;
}
.diy-tpl-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  height: 22px; padding: 0 8px; border-radius: 4px;
  font-size: 12px; line-height: 22px; color: #fff;
  background: rgba(0, 0, 0, 0.55);
}
.diy-tpl-badge.is-on { background: #52c41a; }
.diy-tpl-devices {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: flex; gap: 4px;
}
.diy-tpl-device {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 20px; padding: 0 6px;
  border-radius: 3px; font-size: 11px; font-weight: 600; color: #fff;
  background: #1677ff;
}
.diy-tpl-device.is-pc { background: #1677ff; }
.diy-tpl-device.is-h5 { background: #fa8c16; }

.diy-create-form { padding: 8px 20px 4px; }
.diy-create-row { margin-bottom: 16px; }
.diy-create-label {
  display: block; margin-bottom: 8px; font-size: 14px; color: rgba(0,0,0,.88); font-weight: 500;
}
.diy-create-input { width: 100% !important; min-width: 0; box-sizing: border-box; }
.diy-create-platforms {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.diy-create-plat { cursor: pointer; margin: 0; }
.diy-create-plat input { position: absolute; opacity: 0; pointer-events: none; }
.diy-create-plat-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; height: 72px; border: 1px solid #d9d9d9; border-radius: 8px;
  background: #fafafa; transition: all .2s;
}
.diy-create-plat-card em { font-style: normal; font-size: 18px; font-weight: 700; color: rgba(0,0,0,.88); }
.diy-create-plat-card i { font-style: normal; font-size: 12px; color: rgba(0,0,0,.45); }
.diy-create-plat.is-active .diy-create-plat-card,
.diy-create-plat input:checked + .diy-create-plat-card {
  border-color: #1677ff; background: #e6f4ff; box-shadow: 0 0 0 2px rgba(22,119,255,.12);
}
.diy-create-plat.is-active .diy-create-plat-card em,
.diy-create-plat input:checked + .diy-create-plat-card em { color: #1677ff; }
.diy-create-hint { font-size: 12px; color: rgba(0,0,0,.45); line-height: 1.6; margin-top: -4px; }

body.diy-editor-h5 .diy-pc-frame {
  max-width: 420px;
  margin: 0 auto;
}
body.diy-editor-h5 .diy-canvas {
  min-height: 720px;
}
.diy-tpl-body { padding: 12px 14px 8px; }
.diy-tpl-title-row {
  display: flex; align-items: center; gap: 6px; min-width: 0;
}
.diy-tpl-name {
  flex: 1; min-width: 0; font-size: 15px; color: var(--diy-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.diy-tpl-rename {
  border: 0; background: transparent; color: #1677ff; cursor: pointer;
  font-size: 13px; padding: 2px 4px; line-height: 1;
}
.diy-tpl-rename:hover { color: #0958d9; }
.diy-tpl-time {
  margin-top: 6px; font-size: 12px; color: var(--diy-text-tertiary);
}
.diy-tpl-btns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 10px 12px 12px;
}
.diy-tpl-btn {
  height: 28px; border: 0; border-radius: 4px; cursor: pointer;
  font-size: 12px; color: #fff; font-family: inherit;
  transition: filter .15s, opacity .15s;
}
.diy-tpl-btn:hover { filter: brightness(1.06); }
.diy-tpl-btn.is-cyan { background: #13c2c2; }
.diy-tpl-btn.is-blue { background: #1677ff; }
.diy-tpl-btn.is-danger { background: #ff4d4f; }
.diy-tpl-btn.is-warn { background: #fa8c16; }

.diy-pro-preview-chrome {
  height: 14px; background: #f5f5f5; border-bottom: 1px solid #f0f0f0;
  display: flex; align-items: center; gap: 4px; padding: 0 8px;
}
.diy-pro-preview-chrome span {
  width: 5px; height: 5px; border-radius: 50%; background: #d9d9d9;
}
.diy-pro-preview-body { padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.diy-pro-preview-nav { height: 8px; border-radius: 2px; background: #1677ff; opacity: 0.75; }
.diy-pro-preview-hero { height: 36px; border-radius: 3px; background: linear-gradient(90deg, #e6f4ff, #bae0ff); }
.diy-pro-preview-rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.diy-pro-preview-rows i {
  display: block; height: 18px; border-radius: 2px; background: #f5f5f5;
}

.diy-pro-empty {
  text-align: center; padding: 48px 16px; color: var(--diy-text-tertiary);
}
.diy-pro-empty-block {
  grid-column: 1 / -1;
  background: #fff;
  border: 1px dashed #d9d9d9;
  border-radius: 8px;
  padding: 56px 24px;
}
.diy-pro-empty-title {
  font-size: 16px; color: var(--diy-text-secondary); font-weight: 500; margin-bottom: 8px;
}
.diy-pro-empty-desc { font-size: 14px; margin-bottom: 16px; }

/* 全屏编辑器覆盖层（同页内） */
.diy-editor-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #001529;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.diy-editor-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.diy-editor-overlay[hidden] { display: none !important; }
.diy-editor-overlay-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #f0f2f5;
}
body.diy-editor-open { overflow: hidden; }
body.diy-editor-open #diyListShell { visibility: hidden; }

@media (max-width: 900px) {
  .diy-tpl-actions { margin-left: 0; width: 100%; }
  .diy-tpl-btns { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .diy-pro-main { padding: 12px; }
  .diy-tpl-btns { grid-template-columns: repeat(2, 1fr); }
}

/* ========== 编辑器布局 · Ant Design Pro ========== */
.diy-editor-body { overflow: hidden; height: 100vh; background: #f0f2f5; }
.diy-editor { display: flex; flex-direction: column; height: 100vh; background: #f0f2f5; }

.diy-editor-header {
  height: 56px;
  background: #001529;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 12px;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 21, 41, .35);
  z-index: 100;
}
.diy-editor-header-left,
.diy-editor-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.diy-hdr-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  color: rgba(255, 255, 255, .85);
  font-size: 13px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  transition: all .2s;
}
.diy-hdr-back:hover {
  color: #fff;
  background: rgba(255, 255, 255, .16);
}
.diy-hdr-back-ico { font-size: 14px; opacity: .9; }
.diy-hdr-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, .2);
  margin: 0 4px;
}
.diy-hdr-title {
  font-size: 14px;
  color: rgba(255, 255, 255, .95);
  font-weight: 500;
  white-space: nowrap;
  margin-right: 4px;
}
.diy-hdr-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .88);
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.diy-hdr-chip:hover {
  background: rgba(24, 144, 255, .35);
  border-color: rgba(24, 144, 255, .55);
  color: #fff;
}
.diy-hdr-chip-label { opacity: .75; }
.diy-hdr-chip em {
  font-style: normal;
  font-weight: 600;
  color: #fff;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.diy-hdr-chip-edit {
  margin-left: 2px;
  opacity: .7;
  font-size: 12px;
}
.diy-hdr-page-wrap { position: relative; }
.diy-hdr-page-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 168px;
  max-height: 320px;
  overflow-y: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .12), 0 3px 6px rgba(0, 0, 0, .08);
  padding: 6px;
  z-index: 200;
}
.diy-hdr-page-menu[hidden] { display: none; }
.diy-hdr-page-item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
}
.diy-hdr-page-item:hover { background: #f5f5f5; }
.diy-hdr-page-item.is-active {
  background: #e6f4ff;
  color: #1677ff;
  font-weight: 600;
}

.diy-btn {
  height: 32px;
  padding: 0 15px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .2s;
  line-height: 30px;
  white-space: nowrap;
}
.diy-btn-default {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .2);
  color: rgba(255, 255, 255, .88);
}
.diy-btn-default:hover {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}
.diy-btn-default.layui-btn-normal,
.diy-btn-default.is-on {
  background: #1677ff;
  border-color: #1677ff;
  color: #fff;
}
.diy-btn-primary {
  background: #1677ff;
  border-color: #1677ff;
  color: #fff;
  box-shadow: 0 2px 0 rgba(5, 145, 255, .1);
}
.diy-btn-primary:hover {
  background: #4096ff;
  border-color: #4096ff;
}
.diy-btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
}
.diy-btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}
.diy-btn-cover {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-size: 13px;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  transition: background .2s, transform .15s;
  font-family: inherit;
}
.diy-btn-cover:hover {
  background: rgba(255, 255, 255, 0.28);
}
.diy-btn-cover:active {
  transform: scale(0.98);
}
.diy-btn-cover-ico {
  display: block;
  flex-shrink: 0;
}
body.diy-capturing-cover .diy-block-toolbar,
body.diy-capturing-cover .diy-canvas-toolbar,
body.diy-capturing-cover .diy-pc-chrome {
  display: none !important;
}
body.diy-capturing-cover .diy-block.selected {
  outline: none !important;
  box-shadow: none !important;
}

.diy-editor-body-wrap { display: flex; flex: 1; overflow: hidden; }
.diy-panel { background: #fff; overflow-y: auto; }
.diy-panel-left {
  width: 268px;
  border-right: 1px solid #f0f0f0;
  flex-shrink: 0;
  background: #fff;
}
.diy-panel-center {
  flex: 1;
  background: #f0f2f5;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 24px !important;
  overflow-y: auto;
}
.diy-panel-right {
  width: 340px;
  border-left: 1px solid #f0f0f0;
  flex-shrink: 0;
  background: #fff;
}
.diy-panel-title {
  padding: 14px 16px;
  font-weight: 600;
  font-size: 14px;
  color: #262626;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
}

.diy-input {
  width: 100%;
  height: 32px;
  padding: 4px 11px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  background: #fff;
}
.diy-input:hover { border-color: #4096ff; }
.diy-input:focus {
  border-color: #1677ff;
  box-shadow: 0 0 0 2px rgba(5, 145, 255, .1);
}

.diy-component-search { padding: 12px 14px; }
.diy-component-group { padding: 0 14px 14px; }
.diy-component-group-title {
  font-size: 12px;
  color: #8c8c8c;
  margin: 4px 0 10px;
  font-weight: 500;
}
.diy-component-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.diy-component-item {
  text-align: center;
  padding: 12px 8px 10px;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s;
  user-select: none;
  background: #fff;
}
.diy-component-item:hover {
  border-color: #91caff;
  color: #1677ff;
  background: #f0f7ff;
  box-shadow: 0 2px 8px rgba(22, 119, 255, .1);
}
.diy-comp-ico-wrap {
  width: 40px;
  height: 40px;
  margin: 0 auto 8px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, box-shadow .18s ease;
  border: 1px solid transparent;
}
.diy-component-item:hover .diy-comp-ico-wrap {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .06);
  border-color: rgba(22, 119, 255, .12);
}
.diy-comp-ico {
  width: 20px;
  height: 20px;
  display: block;
}
.diy-comp-ico-wrap.tone-blue { background: #e6f4ff; color: #1677ff; }
.diy-comp-ico-wrap.tone-cyan { background: #e6fffb; color: #13c2c2; }
.diy-comp-ico-wrap.tone-geekblue { background: #f0f5ff; color: #2f54eb; }
.diy-comp-ico-wrap.tone-orange { background: #fff7e6; color: #fa8c16; }
.diy-comp-ico-wrap.tone-purple { background: #f9f0ff; color: #722ed1; }
.diy-comp-ico-wrap.tone-green { background: #f6ffed; color: #52c41a; }
.diy-comp-ico-wrap.tone-gold { background: #fffbe6; color: #faad14; }
.diy-comp-ico-wrap.tone-magenta { background: #fff0f6; color: #eb2f96; }
.diy-comp-ico-wrap.tone-volcano { background: #fff2e8; color: #fa541c; }
.diy-comp-ico-wrap.tone-red { background: #fff1f0; color: #ff4d4f; }
.diy-component-item .name {
  font-size: 12px;
  line-height: 1.35;
  color: #595959;
  display: block;
}
.diy-component-item:hover .name { color: #1677ff; }

/* 画布浏览器框 */
.diy-pc-frame {
  width: 100%;
  max-width: 1200px; /* 与前台居中内容区 centerMaxWidth 对齐 */
  min-height: 640px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .08);
  overflow: hidden;
  border: 1px solid #e8e8e8;
}
.diy-pc-chrome {
  height: 40px;
  background: #f5f5f5;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
}
.diy-pc-chrome-dots {
  display: flex;
  gap: 6px;
}
.diy-pc-chrome-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d9d9d9;
}
.diy-pc-chrome-dots span:nth-child(1) { background: #ff5f57; }
.diy-pc-chrome-dots span:nth-child(2) { background: #febc2e; }
.diy-pc-chrome-dots span:nth-child(3) { background: #28c840; }
.diy-pc-chrome-url {
  flex: 1;
  height: 24px;
  line-height: 24px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 0 12px;
  font-size: 12px;
  color: #8c8c8c;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.diy-canvas-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}
.diy-canvas-tool {
  height: 28px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid #d9d9d9;
  background: #fff;
  font-size: 12px;
  color: #595959;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all .2s;
}
.diy-canvas-tool:hover {
  color: #1677ff;
  border-color: #1677ff;
}
.diy-canvas-tool.is-active {
  color: #1677ff;
  border-color: #1677ff;
  background: #e6f4ff;
}
.diy-canvas-tool-ico { font-size: 13px; }

.diy-canvas {
  min-height: 520px;
  padding-bottom: 20px;
  position: relative;
}
.diy-canvas.hide-guides .diy-block {
  outline-color: transparent !important;
}
.diy-canvas.hide-guides .diy-block-toolbar,
.diy-canvas.hide-guides .diy-block-drag,
.diy-canvas.hide-guides .diy-layout-tag {
  display: none !important;
}
.diy-frontend-pc {
  display: flex; flex-wrap: wrap; align-items: flex-start; align-content: flex-start;
}
.diy-canvas::after, .diy-frontend-pc::after { content: ''; display: block; clear: both; width: 100%; height: 0; }

/* 页面设置面板 */
.diy-page-settings { padding: 4px 0 20px; }
.diy-ps-section { margin-bottom: 20px; }
.diy-ps-section-title {
  font-size: 13px;
  font-weight: 600;
  color: #262626;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}
.diy-ps-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.diy-ps-preset {
  aspect-ratio: 1;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  transition: border-color .15s, box-shadow .15s;
}
.diy-ps-preset:hover { border-color: #91caff; }
.diy-ps-preset.is-active {
  border-color: #1677ff;
  box-shadow: 0 0 0 1px #1677ff;
}
.diy-ps-preset-name {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 10px;
  text-align: center;
  padding: 2px 0;
  line-height: 1.4;
}
.diy-ps-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.diy-ps-label {
  width: 72px;
  flex-shrink: 0;
  font-size: 13px;
  color: #595959;
}
.diy-ps-row .diy-input { flex: 1; }
.diy-ps-color {
  width: 36px;
  height: 32px;
  padding: 2px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  cursor: pointer;
  background: #fff;
}
.diy-ps-label.req::before {
  content: '*';
  color: #fa2c19;
  margin-right: 2px;
}
.diy-ps-reset {
  flex-shrink: 0;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #fff;
  color: #595959;
  font-size: 13px;
  cursor: pointer;
}
.diy-ps-reset:hover { border-color: #1677ff; color: #1677ff; }
.diy-ps-sub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 14px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}
.diy-ps-sub-title {
  font-size: 14px;
  font-weight: 600;
  color: #262626;
}
.diy-ps-switch {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 24px;
  cursor: pointer;
}
.diy-ps-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.diy-ps-switch-ui {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: #d9d9d9;
  transition: background .2s;
  position: relative;
}
.diy-ps-switch-ui::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .2s;
}
.diy-ps-switch input:checked + .diy-ps-switch-ui { background: #fa2c19; }
.diy-ps-switch input:checked + .diy-ps-switch-ui::after { transform: translateX(20px); }
.diy-ps-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.diy-ps-step {
  width: 28px;
  height: 28px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #fff;
  color: #595959;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.diy-ps-step:hover { border-color: #1677ff; color: #1677ff; }
.diy-ps-step-input {
  width: 72px !important;
  flex: 0 0 72px !important;
  text-align: center;
}
.diy-ps-unit {
  font-size: 12px;
  color: #8c8c8c;
  min-width: 18px;
}
.diy-ps-hint {
  margin-top: 8px;
  font-size: 12px;
  color: #8c8c8c;
  line-height: 1.5;
}
.diy-page-bg-sub {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  pointer-events: none;
  z-index: 0;
}
#diyCanvas.diy-canvas-user,
.diy-frontend-h5 {
  position: relative;
}
#diyCanvas.diy-canvas-user > .diy-canvas-body,
#diyCanvas.diy-canvas-user > .diy-block-placeholder,
.diy-frontend-h5 > .diy-block,
.diy-frontend-h5 > [class*="-wrap"],
.diy-frontend-h5 > .diy-canvas-body {
  position: relative;
  z-index: 1;
}
.diy-frontend-h5 > .diy-page-bg-sub {
  z-index: 0;
}
.diy-ps-upload {
  flex: 1;
  min-height: 72px;
  border: 1px dashed #d9d9d9;
  border-radius: 8px;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s;
}
.diy-ps-upload:hover { border-color: #1677ff; }
.diy-ps-upload-hint { font-size: 12px; color: #8c8c8c; text-align: center; padding: 8px; }
.diy-ps-upload-preview {
  width: 100%;
  height: 88px;
  object-fit: cover;
  display: block;
}
.diy-ps-upload-clear {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.55);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  line-height: 22px;
  text-align: center;
  padding: 0;
}
.diy-ps-modes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.diy-ps-mode {
  height: 28px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid #d9d9d9;
  background: #fff;
  font-size: 12px;
  color: #595959;
  cursor: pointer;
}
.diy-ps-mode.is-active {
  border-color: #1677ff;
  color: #1677ff;
  background: #e6f4ff;
}

.diy-rename-box { padding: 8px 4px 0; }
.diy-rename-box .diy-input { margin-bottom: 8px; }

/* 手机预览框 */
.diy-phone-frame {
  width: 375px; min-height: 600px; background: #fff; border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12); overflow: hidden;
}
.diy-phone-header {
  height: 44px; background: #1677ff; color: #fff; text-align: center; line-height: 44px; font-size: 14px;
}

/* 画布组件块：用 outline 选中，避免 border/padding 吃掉宽度导致与前台偏差 */
.diy-block {
  position: relative;
  border: none;
  outline: 2px solid transparent;
  outline-offset: -2px;
  margin: 0;
  transition: outline-color .15s;
  box-sizing: border-box;
  min-height: 0;
}
.diy-block:has(.login001),
.diy-block:has(.login001-wrap) {
  overflow: visible;
  min-height: 520px;
}
.diy-block-col {
  background: transparent;
  outline: 2px dashed #d9d9d9;
  outline-offset: -2px;
  border-radius: 4px;
}
.diy-block-col.selected {
  outline-color: #1677ff;
  background: rgba(230,244,255,.28);
  z-index: 6;
}
.diy-block-col:hover { outline-color: #91caff; z-index: 5; }
.diy-block-col .pc-comp {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  flex: none !important;
  float: none !important;
}
.diy-layout-tag {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%) translateY(-100%);
  background: #1677ff; color: #fff; font-size: 11px; line-height: 1;
  padding: 3px 8px; border-radius: 4px 4px 0 0; white-space: nowrap; z-index: 8;
  pointer-events: none;
}
.diy-block-col .diy-block-toolbar {
  top: auto; bottom: 0; left: 0; right: auto;
  border-radius: 0 6px 0 0;
}
.diy-block-col .diy-block-drag {
  width: 100%; height: 22px; bottom: auto; right: 0;
  background: rgba(22,119,255,.12);
  justify-content: center;
}
.diy-block-col:hover .diy-block-drag,
.diy-block-col.selected .diy-block-drag { display: flex; }
.diy-block:hover { outline-color: #91caff; }
.diy-block.selected { outline-color: #1677ff; }
.diy-block-toolbar {
  display: none; position: absolute; top: 0; right: 0; z-index: 10;
  background: #1677ff; border-radius: 0 0 0 6px; padding: 2px 4px;
}
.diy-block.selected .diy-block-toolbar, .diy-block:hover .diy-block-toolbar { display: flex; gap: 2px; }
.diy-block-toolbar button {
  background: none; border: none; color: #fff; cursor: pointer; font-size: 12px; padding: 2px 6px;
}
.diy-block-toolbar button:hover { background: rgba(255,255,255,.2); border-radius: 3px; }
.diy-block-drag {
  position: absolute; left: 0; top: 0; bottom: 0; width: 24px; background: rgba(22,119,255,.1);
  cursor: grab; display: none; align-items: center; justify-content: center; color: #1677ff; font-size: 12px;
}
.diy-block:hover .diy-block-drag, .diy-block.selected .diy-block-drag { display: flex; }
.diy-block-placeholder {
  height: 80px; border: 2px dashed #d9d9d9; margin: 8px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; color: #bbb; font-size: 13px;
}

/* 配置面板 */
.diy-config-panel { padding: 16px; }
.diy-config-panel .layui-form-item { margin-bottom: 14px; }
.diy-config-panel .layui-form-label { width: 90px; padding: 9px 10px; font-size: 13px; }
.diy-config-panel .layui-input-block { margin-left: 110px; }
.diy-config-empty { color: #999; text-align: center; padding: 40px 16px; font-size: 13px; }

/* 通用样式面板（贴近截图） */
.cfg-style-panel { padding: 4px 0 16px; }
.cfg-style-title {
  font-size: 14px; font-weight: 600; color: #333;
  padding: 0 0 12px; margin-bottom: 4px; border-bottom: 1px solid #f0f0f0;
}
.cfg-form-row {
  display: flex; align-items: center; margin-bottom: 14px; min-height: 32px;
}
.cfg-form-label {
  width: 72px; flex-shrink: 0; font-size: 13px; color: #666; line-height: 1.3;
}
.cfg-form-control { flex: 1; min-width: 0; }
.cfg-form-control.cfg-slider-row,
.cfg-form-control:not(.cfg-height-row):not(.cfg-gradient-wrap):not(.cfg-color-control) {
  display: flex; align-items: center; gap: 8px;
}
.cfg-form-control input[type=range].cfg-slider {
  flex: 1; height: 4px; margin: 0; accent-color: #1890ff;
}
.cfg-num-stepper {
  display: flex; align-items: center; border: 1px solid #d9d9d9; border-radius: 4px;
  overflow: hidden; background: #fff; flex-shrink: 0;
}
.cfg-step-btn {
  width: 28px; height: 28px; border: none; background: #fafafa; cursor: pointer;
  font-size: 14px; color: #666; line-height: 1;
}
.cfg-step-btn:hover { background: #f0f0f0; color: #333; }
.cfg-num-input {
  width: 42px; height: 28px; border: none; border-left: 1px solid #d9d9d9;
  border-right: 1px solid #d9d9d9; text-align: center; font-size: 13px; padding: 0;
  -moz-appearance: textfield;
}
.cfg-num-input::-webkit-outer-spin-button,
.cfg-num-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cfg-height-row { display: flex; align-items: center; gap: 8px; }
.cfg-height-input { width: 80px !important; height: 32px; }
.cfg-unit { font-size: 12px; color: #999; white-space: nowrap; }
.cfg-gradient-wrap { display: flex; flex-direction: column; gap: 6px; }
.cfg-gradient-line {
  display: flex; align-items: center; gap: 6px;
}
.cfg-gradient-link { font-size: 12px; color: #bbb; text-align: center; }
.cfg-color-preview {
  width: 24px; height: 24px; border: 1px solid #d9d9d9; border-radius: 2px; flex-shrink: 0;
  background: repeating-conic-gradient(#eee 0% 25%, #fff 0% 50%) 50% / 8px 8px;
}
.cfg-color-text {
  flex: 1; min-width: 0; height: 28px; border: 1px solid #d9d9d9; border-radius: 4px;
  padding: 0 8px; font-size: 12px;
}
.cfg-color-reset { font-size: 12px; color: #1890ff; white-space: nowrap; flex-shrink: 0; }
.cfg-color-control { display: flex; align-items: center; gap: 6px; }
.cfg-bg-url { margin-bottom: 8px; height: 32px; font-size: 12px; }
.cfg-segment { display: flex; gap: 0; border-radius: 4px; overflow: hidden; border: 1px solid #d9d9d9; }
.cfg-segment-btn {
  flex: 1; border: none; background: #fff; padding: 6px 0; font-size: 12px; color: #666;
  cursor: pointer; border-right: 1px solid #d9d9d9;
}
.cfg-segment-btn:last-child { border-right: none; }
.cfg-segment-btn.active { background: #1890ff; color: #fff; }
.cfg-hint { font-size: 11px; color: #999; padding: 0 0 10px 0; }
.cfg-hint code { background: #f5f5f5; padding: 1px 4px; border-radius: 3px; }

/* ========== 组件预览样式 ========== */
.comp-banner { overflow: hidden; }
.comp-banner-slide {
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px;
  background: linear-gradient(135deg, #1677ff, #69b1ff);
}
.comp-notice {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #fffbe6;
  border-bottom: 1px solid #fff1b8; font-size: 13px; color: #ad6800;
}
.comp-notice-icon { font-size: 16px; }
.comp-nav {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px; background: #fff;
}
.comp-nav-item { text-align: center; font-size: 12px; color: #666; }
.comp-nav-icon {
  width: 44px; height: 44px; border-radius: 50%; background: #e6f4ff; margin: 0 auto 6px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.comp-goods { padding: 12px; background: #fff; }
.comp-goods-title { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.comp-goods-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.comp-goods-item {
  background: #fafafa; border-radius: 6px; overflow: hidden; border: 1px solid #f0f0f0;
}
.comp-goods-img {
  height: 100px; background: linear-gradient(135deg, #ffd6e7, #fff0f6);
  display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.comp-goods-name { padding: 6px 8px; font-size: 12px; }
.comp-goods-price { padding: 0 8px 8px; color: #ff4d4f; font-size: 13px; font-weight: 600; }
.comp-ad {
  margin: 8px 12px; height: 80px; border-radius: 6px;
  background: linear-gradient(135deg, #fff7e6, #ffe7ba);
  display: flex; align-items: center; justify-content: center; color: #d48806; font-size: 14px;
}
.comp-coupon {
  padding: 12px; background: #fff; display: flex; gap: 8px; overflow-x: auto;
}
.comp-coupon-item {
  min-width: 120px; padding: 10px; border-radius: 6px; background: linear-gradient(135deg, #ff4d4f, #ff7875);
  color: #fff; font-size: 12px; text-align: center; flex-shrink: 0;
}
.comp-service {
  padding: 16px; background: #fff; text-align: center; font-size: 13px; color: #666;
}
.comp-service-btn {
  display: inline-block; margin-top: 8px; padding: 6px 20px; border-radius: 20px;
  background: #1677ff; color: #fff; font-size: 13px;
}
.comp-category {
  padding: 12px; background: #fff; display: flex; gap: 8px; flex-wrap: wrap;
}
.comp-category-tag {
  padding: 4px 12px; border-radius: 14px; background: #f5f5f5; font-size: 12px; color: #666;
}

/* 头部/底部导航在业务页中的预览槽 */
.diy-chrome-slot {
  position: relative;
}
.diy-block-chrome {
  outline: 1px dashed #91caff;
  background: #f0f7ff;
}
.diy-block-chrome .diy-chrome-badge {
  position: absolute;
  top: 4px;
  left: 8px;
  z-index: 5;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 10px;
  background: #1677ff;
  color: #fff;
  pointer-events: none;
}
.diy-block-chrome .diy-block-toolbar { opacity: 1; }
/* 与前台 .diy-frontend-pc 一致：flex 容器承载组件并排 */
.diy-canvas-body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  min-height: 40px;
  width: 100%;
  box-sizing: border-box;
}

/* 编辑器画布内底部：与前台 diy-footer-pro 共用 pc-components.css */

/* Sortable 拖拽样式 */
.sortable-ghost { opacity: .4; background: #e6f4ff; }
.sortable-chosen { box-shadow: 0 4px 12px rgba(22,119,255,.2); }

/* ===== H5 组件（与 PC 隔离） ===== */
.h5-nav {
  padding: 12px 14px 14px;
  color: #fff;
  background: linear-gradient(180deg, #1677ff, #4096ff);
}
.h5-nav-title { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.h5-nav-search-form { margin: 0; }
.h5-nav-search-input {
  width: 100%; height: 34px; border: 0; border-radius: 17px;
  background: rgba(255,255,255,.92); color: #333; font-size: 13px;
  padding: 0 14px; outline: none; box-sizing: border-box;
}
.h5-tabbar {
  display: flex; background: #fff; border-top: 1px solid #f0f0f0;
  padding: 6px 0 env(safe-area-inset-bottom, 6px);
}
body.diy-body-h5 { padding-bottom: 56px; }
body.diy-body-h5 .h5-tabbar-wrap {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  box-shadow: 0 -2px 10px rgba(0,0,0,.06);
}
.h5-tabbar-item {
  flex: 1; text-align: center; color: #666; font-size: 11px; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 4px 0 2px;
}
.h5-tabbar-item.is-active { color: #1677ff; }
.h5-tabbar-ico {
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  color: inherit; line-height: 0;
}
.h5-tabbar-ico svg { display: block; }
.h5-tabbar-img {
  width: 22px; height: 22px; object-fit: contain; display: block;
}
.h5-tabbar-text { line-height: 1.2; }

/* 导航 tab01 */
.h5-tabbar01 {
  display: flex;
  background: #fff;
  border-top: 1px solid #ececec;
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}
body.diy-body-h5 .h5-tabbar01-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, .05);
}
.h5-tabbar01-item {
  flex: 1;
  min-width: 0;
  text-align: center;
  color: #8c8c8c;
  font-size: 11px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 0 2px;
  box-sizing: border-box;
}
.h5-tabbar01-item.is-active {
  color: var(--h5-tab01-active, #e83333);
}
.h5-tabbar01-ico {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  line-height: 0;
}
.h5-tabbar01-ico svg { display: block; }
.h5-tabbar01-ico .h5-tabbar-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}
.h5-tabbar01-text {
  line-height: 1.15;
  font-weight: 500;
  transform: scale(.96);
}

/* H5 搜索轮播图 */
.h5-sb-wrap { margin: 0 !important; }
.h5-sb {
  --h5-sb-theme: #e84a4a;
  position: relative;
  background: var(--h5-sb-theme);
  padding: 10px 12px 14px;
  box-sizing: border-box;
  overflow: hidden;
}
.h5-sb::before {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 210, 195, .55) 0%, rgba(255, 255, 255, .08) 48%, #f5f5f5 100%);
}
.h5-sb-head,
.h5-sb-banner { position: relative; z-index: 1; }
.h5-sb-head { margin-bottom: 10px; }
.h5-sb-search {
  margin: 0; height: 38px; border-radius: 19px;
  background: rgba(255, 255, 255, .28);
  border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; gap: 6px;
  padding: 0 6px 0 16px; box-sizing: border-box;
}
.h5-sb-input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  font-size: 14px; color: #fff; height: 100%;
}
.h5-sb-input::placeholder { color: rgba(255, 255, 255, .92); }
.h5-sb-btn {
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: transparent; color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; padding: 0;
}
.h5-sb-search-svg { display: block; }
.h5-sb-banner {
  position: relative; overflow: hidden;
  border-radius: 14px;
  background: var(--h5-sb-theme, #e84a4a);
  box-shadow: 0 6px 18px rgba(200, 60, 50, .18);
  margin: 0;
}
.h5-sb-banner .h5-banner-track { position: relative; width: 100%; height: 100%; }
.h5-sb-slide {
  position: absolute; inset: 0; display: none;
  background-size: cover; background-position: center;
  text-decoration: none;
}
.h5-sb-slide.is-on { display: block; }
.h5-sb-fallback {
  height: 100%; display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center;
  padding: 0 20px; color: #fff; box-sizing: border-box;
  background: linear-gradient(135deg, #d93434, #f06050);
}
.h5-sb-fb-title { font-size: 18px; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.h5-sb-fb-sub { font-size: 12px; opacity: .85; }
.h5-sb-dots {
  position: absolute; left: 0; right: 0; bottom: 10px;
  display: flex; justify-content: center; gap: 5px; z-index: 2;
}
.h5-sb-dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255, 255, 255, .45); display: block; cursor: pointer;
}
.h5-sb-banner .h5-banner-dots i.is-on,
.h5-sb-dots i.is-on {
  width: 16px; border-radius: 3px; background: #fff;
}

.h5-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #e6f4ff, #bae0ff);
  margin: 0 12px;
}
.h5-banner-track { position: relative; width: 100%; height: 100%; }
.h5-banner-slide {
  position: absolute; inset: 0; display: none;
  background-size: cover; background-position: center;
  text-decoration: none;
}
.h5-banner-slide.is-on { display: block; }
.h5-banner-fallback {
  height: 100%; display: flex; align-items: center; justify-content: center;
  color: #1677ff; font-size: 14px; font-weight: 500;
}
.h5-banner-dots {
  position: absolute; left: 0; right: 0; bottom: 8px;
  display: flex; justify-content: center; gap: 5px; z-index: 2;
}
.h5-banner-dots i {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.6);
  display: block; cursor: pointer;
}
.h5-banner-dots i.is-on { background: #1677ff; width: 14px; border-radius: 3px; }
.pc-comp.h5-search-wrap {
  margin-left: 0 !important; margin-right: 0 !important;
  width: 100%; max-width: 100%; min-width: 0;
  box-sizing: border-box;
}
.h5-search {
  margin: 0 12px; height: 40px; border-radius: 6px;
  background: #f2f2f5; border: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 3px 3px 3px 12px; box-sizing: border-box;
}
.h5-search-ico {
  color: #333; flex-shrink: 0; line-height: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.h5-search-svg { display: block; }
.h5-search-input {
  flex: 1; border: 0; outline: none; background: transparent;
  font-size: 14px; color: #333; min-width: 0; height: 100%;
}
.h5-search-input::placeholder { color: #b0b0b8; }
.h5-search-btn {
  flex-shrink: 0; height: 34px; padding: 0 16px; border: 0; border-radius: 4px;
  background: #ff6a00; color: #fff; font-size: 14px; font-weight: 500;
  cursor: pointer; line-height: 1;
}
.h5-search-btn:active { background: #e85f00; }
.h5-notice {
  margin: 0 12px; padding: 8px 12px; border-radius: 8px;
  display: flex; align-items: center; gap: 8px; font-size: 12px; color: #ad6800;
  background: #fff7e6;
}
.h5-notice-tag {
  flex-shrink: 0; background: #fa8c16; color: #fff; border-radius: 4px;
  padding: 1px 6px; font-size: 11px; line-height: 1.4;
}
.h5-notice-viewport {
  flex: 1; min-width: 0; overflow: hidden; position: relative;
  height: 20px;
}
.h5-notice-track {
  display: block; will-change: transform;
}
.h5-notice-item {
  display: block; height: 20px; line-height: 20px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  color: inherit; text-decoration: none;
  box-sizing: border-box;
}
a.h5-notice-item:active { opacity: .75; }
@media (prefers-reduced-motion: reduce) {
  .h5-notice-track { transition: none !important; }
}
.h5-quick {
  margin: 0 12px; padding: 14px 8px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.h5-quick-item {
  text-align: center; text-decoration: none; color: #333; font-size: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.h5-quick-ico {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, #e6f4ff, #bae0ff);
}
.h5-section-title {
  padding: 4px 12px 10px; font-size: 15px; font-weight: 600; color: #1f1f1f;
}
.h5-goods-grid-list {
  display: grid; gap: 10px; padding: 0 12px 12px;
}
.h5-goods-card {
  background: #fff; border-radius: 10px; overflow: hidden;
  border: 1px solid #f0f0f0; text-decoration: none; color: inherit; display: block;
}
.h5-goods-cover {
  height: 110px; background: linear-gradient(180deg, #f5f5f5, #e8e8e8) center/cover no-repeat;
}
.h5-goods-name {
  padding: 8px 8px 0; font-size: 13px; color: #333;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.h5-goods-price {
  padding: 4px 8px 10px; font-size: 14px; color: #ff4d4f; font-weight: 600;
}
.h5-goods-empty {
  grid-column: 1 / -1; text-align: center; padding: 24px; color: #999; font-size: 13px;
}

/* H5 电影热映 */
.pc-comp.h5-movie-hot-wrap {
  margin-left: 0 !important; margin-right: 0 !important;
  width: 100%; max-width: 100%; min-width: 0;
  overflow: hidden; box-sizing: border-box;
}
.h5-movie-hot { padding: 0 12px; box-sizing: border-box; max-width: 100%; min-width: 0; overflow: hidden; }
.h5-mh-card {
  background: #fff; border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
  padding: 12px 0 14px; overflow: hidden; max-width: 100%; min-width: 0;
}
.h5-mh-head {
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px 12px; box-sizing: border-box;
}
.h5-mh-city {
  display: inline-flex; align-items: center; gap: 2px;
  height: 26px; padding: 0 10px; border: 0; cursor: pointer;
  border-radius: 13px; background: #fff1f0; color: #ff4d4f;
  font-size: 13px; font-weight: 600; flex-shrink: 0;
}
.h5-mh-city-name {
  max-width: 4.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.h5-mh-city-name.is-loading { opacity: .55; font-weight: 400; }
.h5-mh-city-chev { display: block; flex-shrink: 0; }
.h5-mh-title {
  flex: 1; min-width: 0; font-size: 16px; font-weight: 700; color: #1f1f1f;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.h5-mh-more {
  flex-shrink: 0; font-size: 13px; color: #999; text-decoration: none;
}
.h5-mh-scroll {
  display: flex; flex-direction: row; flex-wrap: nowrap; align-items: flex-start;
  gap: 12px;
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  width: 100%; max-width: 100%; min-width: 0;
  padding: 0 12px; box-sizing: border-box;
  scrollbar-width: none;
}
.h5-mh-scroll::-webkit-scrollbar { display: none; height: 0; }
.h5-mh-item {
  flex: 0 0 96px; flex-shrink: 0; width: 96px; max-width: 96px;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; align-items: center;
}
.h5-mh-poster {
  width: 96px; height: 132px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(180deg, #f0f2f5, #e4e7ec);
}
.h5-mh-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h5-mh-name {
  width: 100%; margin-top: 8px; font-size: 13px; color: #333; line-height: 1.3;
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.h5-mh-buy {
  margin-top: 8px; display: inline-flex; align-items: center; justify-content: center;
  min-width: 64px; height: 28px; padding: 0 14px; border-radius: 14px;
  background: #ff4d4f; color: #fff; font-size: 13px; font-weight: 500;
}
.h5-mh-loading, .h5-mh-empty {
  flex: 1; text-align: center; padding: 28px 12px; color: #999; font-size: 13px;
}
.h5-mh-city-modal {
  display: none; position: fixed; inset: 0; z-index: 1200;
  background: rgba(0, 0, 0, .45); padding: 48px 20px; box-sizing: border-box;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.h5-mh-city-modal.is-open { display: block; }
.h5-mh-city-panel {
  position: relative; max-width: 420px; margin: 0 auto; background: #fff;
  border-radius: 14px; padding: 18px 16px 16px; max-height: 75vh; overflow: auto;
}
.h5-mh-city-close {
  position: absolute; right: 10px; top: 8px; border: 0; background: none;
  font-size: 24px; color: #999; cursor: pointer; line-height: 1;
}
.h5-mh-city-panel-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; color: #1f1f1f; }
.h5-mh-city-search {
  width: 100%; height: 38px; border: 1px solid #e8e8e8; border-radius: 19px;
  padding: 0 14px; outline: none; font-size: 14px; box-sizing: border-box; margin-bottom: 12px;
}
.h5-mh-city-list { display: flex; flex-wrap: wrap; gap: 8px; }
.h5-mh-city-item {
  border: 0; background: #f5f5f5; color: #333; border-radius: 16px;
  padding: 6px 14px; font-size: 13px; cursor: pointer;
}
.h5-mh-city-item.is-active { background: #ff4d4f; color: #fff; }

/* H5 新品发布 */
.pc-comp.h5-goods-new-wrap {
  margin: 0 !important;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}
.h5-goods-new {
  margin: 0 12px;
  padding: 12px 10px 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffe8dc 0%, #fff3ec 55%, #fff7f2 100%);
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}
.h5-gn-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 10px; padding: 0 2px;
}
.h5-gn-title-wrap {
  display: flex; align-items: center; gap: 6px; min-width: 0;
}
.h5-gn-badge {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  height: 18px; padding: 0 6px; border-radius: 4px;
  background: #ff7a38; color: #fff; font-size: 10px; font-weight: 700;
  letter-spacing: .3px; line-height: 1;
}
.h5-gn-title {
  font-size: 16px; font-weight: 700; color: #1f1f1f;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.h5-gn-more {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  height: 26px; padding: 0 14px; border-radius: 13px;
  background: linear-gradient(90deg, #ff8a3d, #ff5a3a);
  color: #fff; font-size: 12px; font-weight: 500; text-decoration: none;
}
.h5-gn-panel {
  background: #fff; border-radius: 12px; padding: 14px 0 14px;
  box-shadow: 0 1px 4px rgba(255, 122, 56, .06);
  max-width: 100%; min-width: 0; overflow: hidden;
}
.h5-gn-scroll {
  overflow: hidden;
  width: 100%; max-width: 100%; min-width: 0;
  padding: 0; box-sizing: border-box;
}
.h5-gn-track {
  display: flex; flex-direction: row; flex-wrap: nowrap; align-items: flex-start;
  gap: 16px;
  width: max-content;
  padding: 0 14px;
  box-sizing: border-box;
  will-change: transform;
}
.h5-gn-track.is-auto {
  animation: h5-gn-marquee var(--h5-gn-duration, 20s) linear infinite;
}
.h5-gn-track.is-paused,
.h5-goods-new:hover .h5-gn-track.is-auto,
.h5-goods-new:active .h5-gn-track.is-auto {
  animation-play-state: paused;
}
@keyframes h5-gn-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .h5-gn-track.is-auto { animation: none; }
}
.h5-gn-item {
  flex: 0 0 92px; flex-shrink: 0; width: 92px; max-width: 92px;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; align-items: center;
  box-sizing: border-box;
  padding: 0 2px;
}
.h5-gn-cover {
  width: 84px; height: 84px; border-radius: 12px; flex-shrink: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%23ff9a4d'/%3E%3Cstop offset='1' stop-color='%23ff5a3a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='64' height='64' rx='12' fill='url(%23g)'/%3E%3Cpath d='M22 24h20l2 6v14a4 4 0 01-4 4H24a4 4 0 01-4-4V30l2-6zm4 0c0-3.3 2.7-6 6-6s6 2.7 6 6' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center/cover no-repeat;
  background-size: cover; background-position: center;
}
.h5-gn-name {
  width: 100%; margin-top: 8px; font-size: 12px; color: #333; line-height: 1.35;
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 0 2px; box-sizing: border-box;
}
.h5-gn-price {
  width: 100%; margin-top: 4px; font-size: 13px; color: #ff4d4f; font-weight: 600; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 0 2px; box-sizing: border-box;
  letter-spacing: -0.2px;
}
.h5-gn-empty {
  flex: 0 0 auto; text-align: center; padding: 20px 8px; color: #999; font-size: 12px;
  width: 100%;
}

/* H5 商品分类 */
.pc-comp.h5-goods-cat-wrap {
  margin: 0 !important;
  width: 100%; max-width: 100%; min-width: 0;
  overflow: hidden; box-sizing: border-box;
}
.h5-goods-cat {
  padding: 0 12px; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 12px;
}
.h5-gc-section {
  background: #fff; border-radius: 14px;
  padding: 14px 12px 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
}
.h5-gc-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 12px;
}
.h5-gc-title-wrap {
  display: flex; align-items: center; gap: 8px; min-width: 0;
}
.h5-gc-title-wrap .h5-gc-ico {
  width: 28px; height: 28px; font-size: 13px;
}
.h5-gc-title {
  font-size: 16px; font-weight: 700; color: #1f1f1f;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.h5-gc-more {
  flex-shrink: 0; font-size: 12px; color: #999; text-decoration: none;
  white-space: nowrap;
}
.h5-gc-grid {
  display: grid; gap: 10px;
}
.h5-gc-item {
  display: flex; align-items: center; gap: 8px;
  min-width: 0; padding: 10px 8px;
  background: #fff; border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .06);
  text-decoration: none; color: inherit;
  box-sizing: border-box;
}
.h5-gc-ico {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  background: #f5f5f5;
}
.h5-gc-ico img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.h5-gc-ico-letter {
  color: #fff; font-size: 14px; font-weight: 700;
}
.h5-gc-meta {
  min-width: 0; flex: 1;
  display: flex; flex-direction: column; gap: 2px;
}
.h5-gc-name {
  font-size: 13px; color: #333; font-weight: 500; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.h5-gc-buy {
  font-size: 11px; color: #999; line-height: 1.2;
}
.h5-gc-empty {
  text-align: center; padding: 28px 12px; color: #999; font-size: 13px;
  background: #fff; border-radius: 12px;
}

/* H5 分类01：左导航 + 右宫格 */
.pc-comp.h5-cat01-wrap {
  margin: 0 !important;
  width: 100%; max-width: 100%; min-width: 0;
  overflow: hidden; box-sizing: border-box;
}
.h5-cat01 {
  display: flex; align-items: stretch;
  min-height: 420px; height: calc(100vh - 56px);
  max-height: 720px; background: #f5f5f5;
  box-sizing: border-box;
}
body.diy-body-h5 .h5-cat01 {
  height: calc(100vh - 56px - env(safe-area-inset-bottom, 0px));
  max-height: none;
}
.h5-cat01-side {
  flex: 0 0 88px; width: 88px;
  background: #f0f0f0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.h5-cat01-side::-webkit-scrollbar { display: none; }
.h5-cat01-nav {
  display: block; width: 100%; border: 0; background: transparent;
  padding: 16px 8px; font-size: 13px; color: #666; line-height: 1.35;
  text-align: center; cursor: pointer; position: relative;
  box-sizing: border-box; word-break: break-all;
}
.h5-cat01-nav.is-active {
  background: #fff; color: #1f1f1f; font-weight: 600;
}
.h5-cat01-nav.is-active::before {
  content: ''; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%); width: 3px; height: 18px;
  background: #ff4d4f; border-radius: 0 2px 2px 0;
}
.h5-cat01-main {
  flex: 1; min-width: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 10px; box-sizing: border-box; position: relative;
}
.h5-cat01-section {
  background: #fff; border-radius: 12px;
  padding: 14px 12px 12px; margin-bottom: 10px;
}
.h5-cat01-section:last-child { margin-bottom: 0; }
.h5-cat01-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.h5-cat01-head .h5-gc-ico {
  width: 22px; height: 22px; font-size: 11px;
}
.h5-cat01-title {
  font-size: 15px; font-weight: 700; color: #1f1f1f;
}
.h5-cat01-grid {
  display: grid; gap: 14px 8px;
}
.h5-cat01-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none; color: inherit; min-width: 0;
}
.h5-cat01-item .h5-gc-ico {
  width: 48px; height: 48px; font-size: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}
.h5-cat01-label {
  width: 100%; font-size: 12px; color: #666; text-align: center; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.h5-cat01-empty {
  text-align: center; padding: 40px 12px; color: #999; font-size: 13px;
}

/* H5 商品列表01 */
.pc-comp.h5-gl01-wrap {
  margin: 0 !important;
  width: 100%; max-width: 100%; min-width: 0;
  box-sizing: border-box;
}
.h5-gl01 {
  padding: 0 12px 12px; box-sizing: border-box;
}
.h5-gl01-list {
  display: flex; flex-direction: column; gap: 10px;
}
.h5-gl01-card {
  display: flex; gap: 12px; align-items: stretch;
  background: #fff; border-radius: 12px;
  padding: 12px; box-sizing: border-box;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .04);
}
.h5-gl01-cover {
  flex: 0 0 92px; width: 92px; height: 92px; border-radius: 10px;
  background: linear-gradient(180deg, #f5f5f5, #e8e8e8) center/cover no-repeat;
  text-decoration: none;
}
.h5-gl01-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
}
.h5-gl01-name {
  font-size: 15px; font-weight: 700; color: #1f1f1f; line-height: 1.35;
  text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.h5-gl01-id {
  margin-top: 4px; font-size: 12px; color: #999; line-height: 1.2;
}
.h5-gl01-tag {
  margin-top: 6px; align-self: flex-start;
  display: inline-flex; align-items: center; justify-content: center;
  height: 18px; padding: 0 6px; border-radius: 3px;
  background: #52c41a; color: #fff; font-size: 11px; line-height: 1;
}
.h5-gl01-foot {
  margin-top: auto; padding-top: 8px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 8px;
}
.h5-gl01-price {
  color: #ff4d4f; font-weight: 700; line-height: 1;
  display: flex; align-items: baseline;
}
.h5-gl01-yen { font-size: 13px; margin-right: 1px; }
.h5-gl01-int { font-size: 20px; }
.h5-gl01-dec { font-size: 13px; }
.h5-gl01-buy {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  height: 30px; padding: 0 14px; border-radius: 15px;
  background: #ff6a00; color: #fff; font-size: 13px; font-weight: 500;
  text-decoration: none;
}
.h5-gl01-buy:active { background: #e85f00; }
.h5-gl01-empty {
  text-align: center; padding: 36px 12px; color: #999; font-size: 13px;
  background: #fff; border-radius: 12px;
}

/* H5 分类商品 */
.pc-comp.h5-cat-goods-wrap {
  margin: 0 !important;
  width: 100%; max-width: 100%; min-width: 0;
  box-sizing: border-box;
}
.h5-cat-goods {
  --h5-cg-accent: #fe564b;
  --h5-cg-price: #eb223d;
  padding: 8px 12px 12px;
  box-sizing: border-box;
  background: #fff;
}
.h5-cg-tabs {
  display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding: 4px 0 10px;
}
.h5-cg-tabs::-webkit-scrollbar { display: none; }
.h5-cg-tab {
  flex-shrink: 0; height: 32px; padding: 0 14px; border: 0; border-radius: 16px;
  background: transparent; color: #303133; font-size: 14px; cursor: pointer;
  line-height: 32px; white-space: nowrap;
}
.h5-cg-tab.is-on {
  background: var(--h5-cg-accent); color: #fff; font-weight: 600;
}
.h5-cg-subs { margin-bottom: 10px; }
.h5-cg-sub-row {
  display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding: 4px 0;
}
.h5-cg-sub-row::-webkit-scrollbar { display: none; }
.h5-cg-sub {
  flex: 1 0 18%; min-width: 60px; max-width: 76px;
  border: 0; background: transparent; padding: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none; color: inherit;
}
.h5-cg-sub-ico {
  width: 48px; height: 48px; border-radius: 12px; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  background: #f5f6fa;
}
.h5-cg-ico-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h5-cg-ico-letter {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; font-weight: 700;
}
/* display:flex 会盖掉原生 hidden，导致有图标时首字仍露出来 */
.h5-cg-ico-letter[hidden] {
  display: none !important;
}
.h5-cg-sub.is-on .h5-cg-sub-name { color: var(--h5-cg-accent); font-weight: 600; }
.h5-cg-sub.is-on .h5-cg-sub-ico { box-shadow: 0 0 0 2px var(--h5-cg-accent); }
.h5-cg-sub-name {
  width: 100%; font-size: 11px; color: #666; text-align: center; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.h5-cg-more-ico {
  background: #f0f1f5; gap: 3px; flex-direction: column;
}
.h5-cg-more-ico span {
  display: block; width: 14px; height: 2px; border-radius: 1px; background: #999;
}
.h5-cg-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.h5-cg-card {
  background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .05);
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  padding: 8px; box-sizing: border-box;
  min-width: 0;
}
.h5-cg-cover {
  width: 100%; aspect-ratio: 1; border-radius: 8px;
  background: linear-gradient(180deg, #f5f5f5, #e8e8e8) center/cover no-repeat;
}
.h5-cg-name {
  margin-top: 8px; font-size: 13px; color: #333; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.7em;
}
.h5-cg-foot {
  margin-top: auto; padding-top: 8px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 6px;
}
.h5-cg-price-wrap { min-width: 0; }
.h5-cg-price {
  color: var(--h5-cg-price); font-size: 16px; font-weight: 700; line-height: 1.1;
}
.h5-cg-yuan {
  margin-top: 2px; font-size: 11px; color: #999; text-decoration: line-through; line-height: 1;
}
.h5-cg-buy {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  height: 26px; padding: 0 10px; border-radius: 13px;
  background: var(--h5-cg-accent); color: #fff; font-size: 12px;
}
.h5-cg-buy.is-blue { background: #1677ff; }
.h5-cg-loading, .h5-cg-empty {
  text-align: center; padding: 28px 12px; color: #999; font-size: 13px;
}

/* H5 商品动态 */
.pc-comp.h5-goods-dynamic-wrap {
  margin: 0 !important;
  width: 100%; max-width: 100%; min-width: 0;
  box-sizing: border-box;
}
.h5-goods-dynamic {
  --h5-gd-red: #e93323;
  --h5-gd-green: #38b616;
  padding: 10px 10px 13px;
  background: #fff;
  box-sizing: border-box;
}
.h5-gd-hd {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.h5-gd-left {
  display: flex; align-items: center; gap: 6px; min-width: 0;
}
.h5-gd-flame { flex-shrink: 0; display: block; }
.h5-gd-title {
  font-size: 17px; font-weight: 600; color: #333;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.h5-gd-more {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 2px;
  font-size: 13px; color: #999; text-decoration: none;
}
.h5-gd-chevron { display: block; opacity: .85; }
.h5-gd-scroll {
  margin-top: 13px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.h5-gd-scroll::-webkit-scrollbar { display: none; }
.h5-gd-row {
  display: flex; gap: 5px; width: max-content; padding-bottom: 2px;
}
.h5-gd-card {
  flex: 0 0 84px; width: 84px;
  display: flex; flex-direction: column;
  background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 2px 6px 2px rgba(0, 0, 0, .03);
  text-decoration: none; color: #333;
}
.h5-gd-cover {
  width: 84px; height: 84px; flex-shrink: 0;
  background:
    linear-gradient(180deg, #f5f5f5, #e8e8e8) center/cover no-repeat;
  border-radius: 8px 8px 0 0;
}
.h5-gd-info { padding: 4px 4px 6px; min-width: 0; }
.h5-gd-name {
  font-size: 12px; line-height: 1.3; color: #333;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.h5-gd-price-box {
  display: flex; align-items: center; gap: 3px; margin-top: 3px; min-width: 0;
}
.h5-gd-tip {
  flex-shrink: 0; width: 29px; height: 15px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 2px; font-size: 9px;
  background: rgba(233, 51, 35, .1); color: var(--h5-gd-red);
}
.h5-gd-price {
  min-width: 0; font-size: 10px; font-weight: 600; color: var(--h5-gd-red);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.h5-gd-delta {
  margin-top: auto; height: 24px;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  color: #fff; font-size: 12px; line-height: 1;
}
.h5-gd-delta.is-down { background: var(--h5-gd-green); }
.h5-gd-delta.is-up { background: var(--h5-gd-red); }
.h5-gd-delta svg { flex-shrink: 0; display: block; }
.h5-gd-empty {
  padding: 24px 12px; color: #999; font-size: 13px; text-align: center;
  width: 100%; min-width: 200px;
}

/* H5 分类列表 */
.pc-comp.h5-cat-list-wrap {
  margin: 0 !important; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box;
}
.h5-cat-list {
  --h5-cl: #ff6a00;
  --h5-cl-soft: rgba(255, 106, 0, .12);
  background: #fff; box-sizing: border-box;
}
.h5-cl-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 10px; background: #fff;
  position: sticky; top: 0; z-index: 5;
}
.h5-cl-cat-btn {
  flex-shrink: 0; max-width: 88px; height: 30px; padding: 0 8px 0 10px;
  border: 0; border-radius: 15px; background: #f3f4f6; color: #333;
  display: inline-flex; align-items: center; gap: 1px; font-size: 12px; cursor: pointer;
}
.h5-cl-cat-btn.is-open, .h5-cl-cat-btn:active { background: var(--h5-cl-soft); color: var(--h5-cl); }
.h5-cl-cat-btn span {
  max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.h5-cl-search {
  flex: 1; min-width: 0; height: 30px; border-radius: 15px; background: #f3f4f6;
  display: flex; align-items: center; gap: 5px; padding: 0 10px;
}
.h5-cl-search-ico { flex-shrink: 0; color: #b0b0b0; }
.h5-cl-search input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font-size: 13px; color: #333; height: 100%;
}
.h5-cl-view {
  flex-shrink: 0; height: 30px; padding: 2px;
  display: inline-flex; align-items: center; gap: 0;
  background: #f3f4f6; border-radius: 8px; box-sizing: border-box;
}
.h5-cl-view-btn {
  width: 28px; height: 26px; border: 0; border-radius: 6px; padding: 0;
  background: transparent; color: #9aa0a6; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease;
}
.h5-cl-view-btn.is-on {
  background: #fff; color: var(--h5-cl);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.h5-cl-icon-btn {
  flex-shrink: 0; width: 28px; height: 30px; border: 0; background: transparent;
  color: #8c8c8c; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.h5-cl-subs { padding: 4px 0 2px; }
.h5-cl-sub-row {
  display: flex; gap: 4px; overflow-x: auto; padding: 4px 10px 8px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.h5-cl-sub-row::-webkit-scrollbar { display: none; }
.h5-cl-sub {
  flex: 0 0 64px; width: 64px; border: 0; background: transparent; padding: 0;
  display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; color: inherit;
}
.h5-cl-sub-ico {
  width: 48px; height: 48px; border-radius: 50%; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; background: #f5f6fa;
  box-sizing: border-box;
}
.h5-cl-sub.is-on .h5-cl-sub-ico { box-shadow: 0 0 0 2px var(--h5-cl); }
.h5-cl-ico-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h5-cl-letter {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; font-weight: 700;
}
.h5-cl-sub-name {
  width: 100%; font-size: 11px; color: #666; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.h5-cl-sort {
  display: flex; align-items: center; justify-content: space-around;
  padding: 0 4px; border-bottom: 1px solid #f0f0f0;
}
.h5-cl-sort-btn {
  position: relative; flex: 1; height: 40px; border: 0; background: transparent;
  font-size: 14px; color: #666; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 2px;
}
.h5-cl-sort-btn.is-on { color: var(--h5-cl); font-weight: 600; }
.h5-cl-sort-btn.is-on::after {
  content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 28px; height: 2px; border-radius: 1px; background: var(--h5-cl);
}
.h5-cl-arrows {
  display: inline-flex; flex-direction: column; gap: 1px; margin-left: 2px;
}
.h5-cl-arrows i {
  width: 0; height: 0; border-left: 3px solid transparent; border-right: 3px solid transparent; opacity: .35;
}
.h5-cl-arrows .up { border-bottom: 4px solid currentColor; }
.h5-cl-arrows .down { border-top: 4px solid currentColor; }
.h5-cl-sort-btn.is-asc .up, .h5-cl-sort-btn.is-desc .down { opacity: 1; color: var(--h5-cl); }
.h5-cl-pills { padding: 8px 10px 4px; }
.h5-cl-pill-row {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.h5-cl-pill-row::-webkit-scrollbar { display: none; }
.h5-cl-pill {
  flex-shrink: 0; height: 28px; padding: 0 12px; border-radius: 14px; border: 1px solid transparent;
  background: #f5f5f5; color: #666; font-size: 12px; cursor: pointer;
}
.h5-cl-pill.is-on {
  background: var(--h5-cl-soft); border-color: var(--h5-cl); color: var(--h5-cl); font-weight: 600;
}
.h5-cl-goods { min-height: 120px; }
.h5-cl-loading, .h5-cl-empty {
  padding: 36px 12px; text-align: center; color: #999; font-size: 13px;
}
.h5-cl-foot {
  padding: 16px 12px 24px; text-align: center; color: #999; font-size: 12px;
}
.h5-cl-foot.is-end { color: #ccc; }
.h5-gl-foot {
  padding: 16px 12px 24px; text-align: center; color: #999; font-size: 12px;
}
.h5-gl-foot.is-end { color: #ccc; }
.h5-cl-list { display: flex; flex-direction: column; }
.h5-cl-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 12px; border-bottom: 1px solid #f5f5f5;
}
.h5-cl-cover {
  width: 72px; height: 72px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(180deg, #f5f5f5, #e8e8e8) center/cover no-repeat;
}
.h5-cl-body { flex: 1; min-width: 0; }
.h5-cl-name {
  display: block; font-size: 15px; font-weight: 600; color: #222; text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.h5-cl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.h5-cl-tag {
  display: inline-flex; align-items: center; height: 18px; padding: 0 6px;
  border-radius: 9px; border: 1px solid #91caff; color: #1677ff; background: #e6f4ff; font-size: 10px;
}
.h5-cl-id-pill {
  display: inline-flex; align-items: center; height: 18px; padding: 0 6px;
  border-radius: 9px; background: #f5f5f5; color: #999; font-size: 10px;
}
.h5-cl-price {
  margin-top: 8px; color: var(--h5-cl); font-size: 18px; font-weight: 700; line-height: 1.1;
}
.h5-cl-buy {
  flex-shrink: 0; height: 32px; padding: 0 14px; border-radius: 6px;
  background: var(--h5-cl); color: #fff; font-size: 13px; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.h5-cl-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  padding: 10px 12px 16px;
}
.h5-cl-gcard {
  background: #fff; border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit;
  box-shadow: 0 1px 6px rgba(0,0,0,.04); display: flex; flex-direction: column; min-width: 0;
}
.h5-cl-gcover {
  width: 100%; aspect-ratio: 1; position: relative;
  background: linear-gradient(180deg, #f5f5f5, #e8e8e8) center/cover no-repeat;
}
.h5-cl-pause {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%; background: rgba(0,0,0,.45);
  color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center;
}
.h5-cl-gname {
  padding: 8px 8px 0; font-size: 14px; font-weight: 600; color: #222;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.h5-cl-gfoot {
  padding: 8px; display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.h5-cl-gprice { color: var(--h5-cl); font-size: 16px; font-weight: 700; }
.h5-cl-cart {
  width: 28px; height: 28px; border-radius: 50%; background: var(--h5-cl);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.h5-cl-gmeta {
  padding: 0 8px 10px; display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.h5-cl-id { font-size: 10px; color: #999; white-space: nowrap; }

/* 分类弹层 */
.h5-cl-modal {
  position: fixed; inset: 0; z-index: 10050; display: none;
}
.h5-cl-modal.is-open { display: block; }
.h5-cl-modal-mask {
  position: absolute; inset: 0; background: rgba(0,0,0,.4);
}
.h5-cl-modal-panel {
  position: absolute; left: 0; right: 0; top: 48px; max-height: 62vh;
  background: #fff; border-radius: 0 0 16px 16px; padding: 16px 14px 20px;
  overflow: auto; box-sizing: border-box;
}
.h5-cl-modal-close {
  position: absolute; right: 12px; top: 12px; width: 28px; height: 28px;
  border: 0; border-radius: 50%; background: #f0f0f0; color: #666; font-size: 18px; cursor: pointer;
  line-height: 28px; text-align: center;
}
.h5-cl-modal-title { font-size: 17px; font-weight: 700; color: #222; }
.h5-cl-modal-sub { margin-top: 4px; font-size: 12px; color: #999; }
.h5-cl-modal-grid {
  margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
}
.h5-cl-modal-item {
  min-height: 40px; padding: 8px 6px; border-radius: 8px; border: 1px solid transparent;
  background: #f5f5f5; color: #333; font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.3;
}
.h5-cl-modal-item.is-on {
  background: #fff; border-color: var(--h5-cl); color: var(--h5-cl); font-weight: 600;
}

/* 更多底栏 */
.h5-cl-sheet {
  position: fixed; inset: 0; z-index: 10060; display: none;
}
.h5-cl-sheet.is-open { display: block; }
.h5-cl-sheet-mask {
  position: absolute; inset: 0; background: rgba(0,0,0,.45);
}
.h5-cl-sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: #fff; border-radius: 16px 16px 0 0; padding: 18px 12px calc(12px + env(safe-area-inset-bottom));
}
.h5-cl-sheet-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 8px; padding: 4px 4px 16px;
}
.h5-cl-sheet-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-decoration: none; color: #333; font-size: 12px;
}
.h5-cl-sheet-ico {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid #e8e8e8;
  display: inline-flex; align-items: center; justify-content: center; color: #555;
}
.h5-cl-sheet-cancel {
  width: 100%; height: 44px; border-radius: 22px; border: 1px solid #e5e5e5;
  background: #fafafa; color: #333; font-size: 15px; cursor: pointer;
}

.h5-goods-list { padding: 8px 0; }
.h5-goods-row {
  display: flex; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #f5f5f5;
  text-decoration: none; color: inherit;
}
.h5-goods-row-cover {
  width: 72px; height: 72px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(180deg, #f5f5f5, #e8e8e8) center/cover no-repeat;
}
.h5-goods-row-meta { min-width: 0; flex: 1; }
.h5-auth {
  margin: 0 16px; padding: 28px 20px; border-radius: 12px;
}
.h5-auth-title {
  font-size: 22px; font-weight: 700; margin-bottom: 24px; color: #1f1f1f;
}
.h5-auth-input,
.h5-auth-field {
  width: 100%; height: 44px; border-radius: 8px; background: #f5f5f5; color: #333;
  display: flex; align-items: center; padding: 0 14px; margin-bottom: 12px; font-size: 14px;
  border: 0; outline: none; box-sizing: border-box;
}
.h5-auth-input::placeholder { color: #999; }
.h5-auth-btn {
  width: 100%; height: 44px; border: 0; border-radius: 8px; margin-top: 8px;
  background: #1677ff; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
}
.h5-auth-btn:disabled { opacity: .6; }
.h5-auth-links {
  display: flex; justify-content: space-between; margin-top: 14px; font-size: 13px;
}
.h5-auth-links a { color: #1677ff; text-decoration: none; }
.h5-auth-social {
  margin-top: 22px; padding-top: 16px; border-top: 1px solid #f0f0f0;
  text-align: center;
}
.h5-auth-social-label {
  display: block; font-size: 12px; color: #999; margin-bottom: 12px;
}
.h5-auth-social-btns {
  display: flex; justify-content: center; gap: 16px;
}
.h5-auth-social-btn {
  width: 42px; height: 42px; border: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: #fff;
}
.h5-auth-social-btn:disabled { opacity: .55; }
.h5-auth-social-btn.is-wx { background: linear-gradient(145deg, #1ad66d, #07c160); }
.h5-auth-social-btn.is-qq { background: linear-gradient(145deg, #3cc4ff, #12b7f5); color: #fff; }
.h5-auth-qr { display: none; }
.h5-auth-qr-empty { padding: 24px; color: #999; font-size: 13px; text-align: center; }
.h5-auth-qr-overlay {
  position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.h5-auth-qr-dialog {
  background: #fff; border-radius: 12px; width: min(300px, 100%); overflow: hidden;
}
.h5-auth-qr-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; font-size: 15px; font-weight: 600; border-bottom: 1px solid #f0f0f0;
}
.h5-auth-qr-hd [data-close] {
  border: 0; background: transparent; font-size: 20px; line-height: 1; cursor: pointer; color: #999;
}
.h5-auth-qr-bd { padding: 16px; text-align: center; }
.h5-auth-qr-bd img { display: block; margin: 0 auto; }

/* H5 用户登录（对标来进货样式） */
.h5-user-login-wrap {
  background: #fff;
}
.h5-user-login {
  --hul-accent: #ff6a4d;
  box-sizing: border-box;
  min-height: 70vh;
  padding: 48px 28px 40px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 420px;
  margin: 0 auto;
  background: #fff;
  color: #1f2a37;
}
.h5-user-login-logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 28px;
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}
.h5-user-login-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.h5-user-login-logo-fallback {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 8px;
  text-align: center;
  line-height: 1.2;
  background: linear-gradient(145deg, #ff8a4a, #ff4d3a);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.h5-user-login-title {
  margin: 0 0 28px;
  font-size: 26px;
  font-weight: 800;
  color: #1a2740;
  letter-spacing: .02em;
  line-height: 1.25;
}
.h5-user-login-input {
  width: 100%;
  height: 50px;
  border: 0;
  outline: none;
  border-radius: 14px;
  background: #f2f5f8;
  color: #243044;
  font-size: 15px;
  padding: 0 18px;
  margin-bottom: 14px;
  box-sizing: border-box;
}
.h5-user-login-input::placeholder { color: #a0a8b4; }
.h5-user-login-forgot {
  text-align: right;
  margin: 2px 2px 22px;
}
.h5-user-login-forgot a {
  color: var(--hul-accent);
  font-size: 14px;
  text-decoration: none;
}
.h5-user-login-btn {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(90deg, #ff8a52, var(--hul-accent));
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(255, 106, 77, .28);
}
.h5-user-login-btn:disabled { opacity: .65; }
.h5-user-login-reg {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
  color: #666;
}
.h5-user-login-reg a {
  color: var(--hul-accent);
  text-decoration: none;
  margin-left: 2px;
  font-weight: 600;
}
.h5-user-login-social {
  margin-top: auto;
  padding-top: 48px;
  text-align: center;
}
.h5-user-login-social-label {
  font-size: 13px;
  color: #b0b6c0;
  margin-bottom: 14px;
}
.h5-user-login-social-btns {
  display: flex;
  justify-content: center;
  gap: 18px;
}

/* H5 用户注册（对标来进货样式） */
.h5-user-register-wrap { background: #fff; }
.h5-user-register {
  --hur-accent: #ff6a4d;
  box-sizing: border-box;
  min-height: 70vh;
  padding: 40px 28px 36px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 420px;
  margin: 0 auto;
  background: #fff;
  color: #1f2a37;
}
.h5-user-register-logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}
.h5-user-register-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.h5-user-register-logo-fallback {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: center;
  line-height: 1.2;
  background: linear-gradient(145deg, #ff8a4a, #ff4d3a);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.h5-user-register-title {
  margin: 0 0 22px;
  font-size: 26px;
  font-weight: 800;
  color: #1a2740;
  letter-spacing: .02em;
  line-height: 1.25;
}
.h5-user-register-form { display: block; }
.h5-user-register-input {
  width: 100%;
  height: 50px;
  border: 0;
  outline: none;
  border-radius: 14px;
  background: #f2f5f8;
  color: #243044;
  font-size: 15px;
  padding: 0 18px;
  margin-bottom: 12px;
  box-sizing: border-box;
}
.h5-user-register-input::placeholder { color: #a0a8b4; }
.h5-user-register-btn {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 999px;
  margin-top: 10px;
  background: linear-gradient(90deg, #ff8a52, var(--hur-accent));
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(255, 106, 77, .28);
}
.h5-user-register-btn:disabled { opacity: .65; }
.h5-user-register-login {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  color: #666;
}
.h5-user-register-login a {
  color: var(--hur-accent);
  text-decoration: none;
  margin-left: 2px;
  font-weight: 600;
}
.h5-user-register-social {
  margin-top: auto;
  padding-top: 40px;
  text-align: center;
}
.h5-user-register-social-label {
  font-size: 13px;
  color: #b0b6c0;
  margin-bottom: 14px;
}
.h5-user-register-social-btns {
  display: flex;
  justify-content: center;
  gap: 18px;
}

/* H5 商品详情 / 个人中心 */
.h5-goods-detail {
  background: #fff;
  overflow: hidden;
}
.h5-goods-detail .h5-gd-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, #f3f4f6, #e5e7eb);
}
.h5-gd-body { padding: 16px; }
.h5-gd-name {
  font-size: 17px; font-weight: 650; color: #1f1f1f; line-height: 1.4; margin-bottom: 10px;
}
.h5-goods-detail .h5-gd-price {
  color: #fa5a4b; font-size: 22px; font-weight: 700; margin-bottom: 12px;
}
.h5-goods-detail .h5-gd-price em { font-style: normal; font-size: 14px; margin-right: 2px; }
.h5-gd-desc {
  font-size: 13px; color: #666; line-height: 1.6; margin-bottom: 16px; min-height: 1.2em;
}
.h5-gd-buy {
  width: 100%; height: 44px; border: 0; border-radius: 22px;
  background: linear-gradient(90deg, #fa5a4b, #ff9b7a); color: #fff;
  font-size: 15px; font-weight: 600; cursor: pointer;
}

/* H5 商品详情拆分组件 */
.h5-gd-hero-wrap,
.h5-gd-cover-wrap,
.h5-gd-info-wrap,
.h5-gd-upgrade-wrap,
.h5-gd-levelup-wrap,
.h5-gd-store-wrap,
.h5-gd-merchant-wrap,
.h5-gd-services-wrap,
.h5-gd-tabs-wrap,
.h5-gd-notice-wrap,
.h5-gd-tip-wrap,
.h5-gd-agree-wrap,
.h5-gd-buyform-wrap,
.h5-gd-buybar-wrap,
.h5-gd-buybtn-wrap,
.h5-gd-topnav-wrap {
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

/* ---------- H5 商品详情 · 顶部导航按钮 ---------- */
/* 必须压过 .diy-frontend-h5 > [class*="-wrap"]{z-index:1}，否则主图盖住按钮导致点击失效 */
.diy-frontend-h5 > .h5-gd-topnav-wrap,
#frontendPage > .h5-gd-topnav-wrap,
.h5-gd-topnav-wrap {
  position: relative !important;
  height: 0 !important;
  overflow: visible !important;
  z-index: 120 !important;
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
  background: transparent !important;
}
.diy-editor-body .h5-gd-topnav-wrap,
.diy-editor-body .diy-frontend-h5 > .h5-gd-topnav-wrap {
  height: auto !important;
  min-height: 56px !important;
  pointer-events: auto !important;
  background: linear-gradient(180deg, #f3f4f6 0%, #fff 100%) !important;
}
.h5-gd-topnav-editor-hint {
  padding: 8px 12px;
  font-size: 12px;
  color: #8c8c8c;
}
.h5-gd-topnav {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top, 0px));
  left: 12px;
  right: 12px;
  z-index: 121;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.diy-editor-body .h5-gd-topnav {
  position: absolute;
  top: 10px;
}
.h5-gd-topnav-btn {
  pointer-events: auto;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(55, 55, 55, .55);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.h5-gd-topnav-btn:active {
  transform: scale(.96);
  background: rgba(35, 35, 35, .72);
}
.h5-gd-navsheet {
  position: fixed;
  inset: 0;
  z-index: 120;
  visibility: hidden;
  pointer-events: none;
}
.h5-gd-navsheet.is-open {
  visibility: visible;
  pointer-events: auto;
}
.h5-gd-navsheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  transition: opacity .2s ease;
}
.h5-gd-navsheet.is-open .h5-gd-navsheet-mask {
  opacity: 1;
}
.h5-gd-navsheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 28px 18px calc(14px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  transform: translateY(110%);
  transition: transform .25s ease;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, .1);
}
.h5-gd-navsheet.is-open .h5-gd-navsheet-panel {
  transform: translateY(0);
}
.h5-gd-navsheet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 10px;
  padding: 2px 2px 22px;
}
.h5-gd-navsheet-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #333;
  -webkit-tap-highlight-color: transparent;
}
.h5-gd-navsheet-ico {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #555;
}
.h5-gd-navsheet-txt {
  font-size: 12px;
  color: #888;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}
.h5-gd-navsheet-cancel {
  display: block;
  width: 100%;
  height: 46px;
  border-radius: 23px;
  border: 1px solid #e8e8e8;
  background: #fff;
  color: #333;
  font-size: 15px;
  cursor: pointer;
}
.h5-gd-navsheet-cancel:active {
  background: #f7f7f7;
}
body.h5-gd-navsheet-lock {
  overflow: hidden;
}

/* 详情主图：勿复用列表 .h5-gd-cover（84×84） */
.h5-gd-hero {
  margin: 0;
  width: 100% !important;
  height: auto !important;
  max-width: none;
  background: #fff;
  overflow: hidden;
  border-radius: 0 !important;
  flex-shrink: unset;
}
.h5-gd-hero-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f5f5f5;
}
.h5-gd-hero-ph {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f5f5f5;
}
.h5-gd-hero-ph .h5-gd-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .35;
}
.h5-gd-hero-ph span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
  z-index: 1;
}
.h5-gd-cover-wrap .h5-gd-cover[data-h5-gd-cover] {
  width: 100% !important;
  height: auto !important;
  margin: 0;
  background: #fff;
  overflow: hidden;
  border-radius: 0 !important;
}
.h5-gd-cover-img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.h5-gd-cover-ph {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  background: linear-gradient(160deg, #ffe8d6, #ffd0a8);
  font-size: 14px;
}
.h5-gd-info-wrap > .h5-gd-info {
  margin: 8px 10px 8px;
  padding: 12px 12px 10px;
  background: #fff;
  border-radius: 10px;
  box-sizing: border-box;
}
.h5-gd-info-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.h5-gd-price-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.h5-gd-info .h5-gd-price {
  color: #ff4d4f;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}
.h5-gd-info .h5-gd-price em {
  font-style: normal;
  font-size: 24px;
}
.h5-gd-vip-wrap {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 2px;
  border-radius: 5px;
  background: linear-gradient(90deg, #ff9a4a 0%, #ff6a2b 100%);
  box-sizing: border-box;
}
.h5-gd-vip-link {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 3px;
  background: #fff;
  color: #d2691e;
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  border: 0;
  box-sizing: border-box;
}
.h5-gd-vip-link:active { opacity: .85; }
.h5-gd-share {
  border: 0;
  background: transparent;
  color: #bbb;
  font-size: 18px;
  cursor: pointer;
  padding: 0 2px;
  flex-shrink: 0;
}
.h5-gd-info .h5-gd-title {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 650;
  color: #222;
  line-height: 1.5;
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  text-overflow: unset;
  display: block;
}
.h5-gd-info .h5-gd-badge {
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  padding: 0 5px;
  min-height: 18px;
  line-height: 16px;
  font-size: 11px;
  font-weight: 600;
  color: #ff4d4f;
  background: #fff1f0;
  border: 1px solid #ff4d4f;
  border-radius: 3px;
  box-sizing: border-box;
  white-space: nowrap;
}
.h5-gd-info .h5-gd-name {
  vertical-align: middle;
  word-break: break-word;
}
.h5-gd-vip-panel {
  padding: 4px 2px 2px;
}
.h5-gd-vip-cur {
  position: relative;
  background: linear-gradient(135deg, #fff7f0 0%, #ffe8d6 100%);
  border: 1px solid #ffd2b0;
  border-radius: 12px;
  padding: 16px 14px 14px;
  text-align: center;
  margin-bottom: 12px;
  overflow: hidden;
}
.h5-gd-vip-cur::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -16px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 122, 48, .12);
  pointer-events: none;
}
.h5-gd-vip-cur-tag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #ff7a30;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
}
.h5-gd-vip-cur-price {
  font-size: 26px;
  font-weight: 800;
  color: #ff4d4f;
  line-height: 1.15;
  letter-spacing: .02em;
}
.h5-gd-vip-cur-name {
  margin-top: 6px;
  font-size: 13px;
  color: #8a5a36;
}
.h5-gd-vip-sec {
  margin: 0 2px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #999;
}
.h5-gd-vip-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 46vh;
  overflow: auto;
  padding-right: 2px;
}
.h5-gd-vip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
  box-sizing: border-box;
}
.h5-gd-vip-row-price {
  font-size: 16px;
  font-weight: 700;
  color: #ff4d4f;
}
.h5-gd-vip-row-name {
  font-size: 13px;
  color: #666;
}
.h5-gd-vip-empty {
  text-align: center;
  color: #999;
  font-size: 13px;
  padding: 20px 0;
}
.layui-layer.h5-gd-vip-layer {
  border-radius: 14px !important;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18) !important;
}
.layui-layer.h5-gd-vip-layer .layui-layer-title {
  height: 48px;
  line-height: 48px;
  padding: 0 44px 0 16px;
  border: 0;
  background: linear-gradient(90deg, #ff8a3d 0%, #ff5d2e 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 650;
}
.layui-layer.h5-gd-vip-layer .layui-layer-setwin {
  top: 14px;
  right: 12px;
}
.layui-layer.h5-gd-vip-layer .layui-layer-setwin a {
  color: #fff;
}
.layui-layer.h5-gd-vip-layer .layui-layer-content {
  padding: 14px 14px 16px !important;
  background: #fafafa;
}
.h5-gd-vip-popup {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.h5-gd-vip-popup.is-open { display: flex; }
.h5-gd-vip-popup-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .48);
}
.h5-gd-vip-popup-box {
  position: relative;
  z-index: 1;
  width: 340px;
  max-width: 92vw;
  background: #fafafa;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .2);
}
.h5-gd-vip-popup-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 48px;
  padding: 0 12px 0 16px;
  background: linear-gradient(90deg, #ff8a3d 0%, #ff5d2e 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 650;
  box-sizing: border-box;
}
.h5-gd-vip-popup-x {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  opacity: .92;
}
.h5-gd-vip-popup-body {
  padding: 14px;
  max-height: 70vh;
  overflow: auto;
  box-sizing: border-box;
}
.h5-gd-intro-popup {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.h5-gd-intro-popup.is-open { display: flex; }
.h5-gd-intro-popup-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .48);
}
.h5-gd-intro-popup-box {
  position: relative;
  z-index: 1;
  width: 320px;
  max-width: 92vw;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .2);
}
.h5-gd-intro-popup-hd {
  padding: 14px 16px 10px;
  background: linear-gradient(90deg, #fff7f0, #fff);
  border-bottom: 1px solid #f3f3f3;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  text-align: center;
}
.h5-gd-intro-popup-body {
  padding: 16px 18px;
  max-height: 52vh;
  overflow: auto;
  font-size: 14px;
  line-height: 1.7;
  color: #333;
  word-wrap: break-word;
}
.h5-gd-intro-popup-body img { max-width: 100%; height: auto; }
.h5-gd-intro-popup-body p { margin: 0 0 8px; }
.h5-gd-intro-popup-ft {
  padding: 12px 16px 16px;
  text-align: center;
}
.h5-gd-intro-popup-ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 36px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(to right, #ff6152, #ff9751);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .05);
}
.layui-layer.h5-gd-intro-layer {
  border-radius: 14px !important;
  overflow: hidden;
  background: transparent !important;
  box-shadow: none !important;
}
.layui-layer.h5-gd-intro-layer .layui-layer-content {
  overflow: visible !important;
  background: transparent !important;
}
.h5-gd-meta {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  font-size: 12px;
  color: #999;
}
.h5-gd-meta-item span { color: #666; }
.h5-gd-guige {
  margin: 0 10px 8px;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  box-sizing: border-box;
}
.h5-gd-guige-label { font-size: 13px; font-weight: 600; color: #333; margin-bottom: 8px; }
.h5-gd-guige-list { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.h5-gd-guige-item {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 12px; border-radius: 6px; background: #f5f5f5; color: #444;
  text-decoration: none; font-size: 13px; line-height: 1.35;
  max-width: calc(50% - 4px); min-height: 32px;
  white-space: normal; word-break: break-word; box-sizing: border-box;
}
.h5-gd-guige-item.is-on { background: #ffe8e6; color: #ff4d4f; }
.h5-gd-commerce {
  margin: 0 10px 8px;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-sizing: border-box;
}
.h5-gd-commerce-label { flex-shrink: 0; font-size: 13px; font-weight: 600; color: #333; padding-top: 2px; }
.h5-gd-commerce-list { display: flex; flex-wrap: wrap; gap: 8px 12px; font-size: 12px; }
.h5-gd-ch { color: #f5222d; }
.h5-gd-ch.is-on { color: #26c87f; }
.h5-gd-multi-spec { margin-bottom: 4px; }
.h5-gd-multi-box { display: flex; flex-direction: column; gap: 12px; }
.h5-gd-spec-group { margin-bottom: 0; }
.h5-gd-spec-gtitle { font-size: 13px; color: #333; margin-bottom: 8px; font-weight: 600; line-height: 1.3; }
.h5-gd-spec-values { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.h5-gd-spec-val {
  border: 1px solid #e8e8e8; background: #f7f7f7; border-radius: 6px;
  padding: 7px 12px; font-size: 13px; cursor: pointer; color: #333;
  line-height: 1.35; max-width: 100%; text-align: left;
  white-space: normal; word-break: break-word;
  box-sizing: border-box;
}
.h5-gd-spec-val.is-on { border-color: #ff7a45; background: #fff7f2; color: #ff504b; }
.h5-gd-multi-tip { margin-top: 8px; font-size: 12px; color: #f59e0b; line-height: 1.4; }
.h5-gd-upload { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.h5-gd-upload-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 32px; padding: 0 14px; border-radius: 6px;
  border: 1px dashed #ff9a7a; background: #fff7f2; color: #ff504b; font-size: 13px; cursor: pointer;
}
.h5-gd-upload-btn:disabled { opacity: .6; cursor: wait; }
.h5-gd-upload-preview {
  width: 120px; height: 120px; object-fit: cover; border-radius: 8px;
  border: 1px solid #eee; background: #f7f7f7;
}
.h5-gd-tip-popup {
  position: fixed; inset: 0; z-index: 1300; display: none;
  align-items: center; justify-content: center;
}
.h5-gd-tip-popup.is-open { display: flex; }
.h5-gd-tip-popup-mask { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.h5-gd-tip-popup-box {
  position: relative; z-index: 1; width: 300px; max-width: 86vw;
  background: #fff; border-radius: 10px; overflow: hidden;
}
.h5-gd-tip-popup-body { padding: 16px; max-height: 50vh; overflow: auto; font-size: 13px; line-height: 1.6; color: #333; }
.h5-gd-tip-popup-body img { max-width: 100%; height: auto; }
.h5-gd-tip-popup-ok {
  display: block; width: 100%; border: 0; border-top: 1px solid #f0f0f0;
  height: 44px; background: #fff; color: #1677ff; font-size: 15px; font-weight: 600; cursor: pointer;
}
.h5-gd-notice-full { display: none; }
.h5-gd-levelup {
  --h5-gd-lu-bg: #fff3df;
  --h5-gd-lu-color: #9a6330;
  margin: 0 12px 10px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--h5-gd-lu-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
  text-decoration: none;
  color: var(--h5-gd-lu-color);
}
.h5-gd-lu-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.h5-gd-lu-ico {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}
.h5-gd-lu-ico.is-fallback {
  background:
    linear-gradient(135deg, #f0c56a, #d4a84a) center/10px 10px no-repeat,
    #1a1a1a;
  transform: none;
}
.h5-gd-lu-text {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--h5-gd-lu-color);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.h5-gd-lu-action {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  font-weight: 500;
  color: var(--h5-gd-lu-color);
  line-height: 1;
}
.h5-gd-lu-arrow {
  font-size: 15px;
  line-height: 1;
  margin-top: -1px;
}
.h5-gd-upgrade {
  margin: 0 10px 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff8e8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-sizing: border-box;
}
.h5-gd-up-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  color: #6b4a1e;
  font-weight: 600;
}
.h5-gd-up-left img { width: 20px; height: 20px; display: block; }
.h5-gd-up-btn {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff8a00, #ffb340);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}
.h5-gd-store {
  margin: 0 10px 10px;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
}
.h5-gd-store-logo,
.h5-gd-store-logo-ph {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #f3f3f3;
}
.h5-gd-store-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h5-gd-store-meta { flex: 1; min-width: 0; }
.h5-gd-store-name { font-size: 15px; font-weight: 700; color: #222; }
.h5-gd-store-fans { margin-top: 4px; font-size: 12px; color: #999; }
.h5-gd-store-btn {
  flex-shrink: 0;
  padding: 7px 16px;
  border-radius: 999px;
  background: #ff6a3d;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

/* 商家信息（店卡 + 服务保障） */
.h5-gd-merchant {
  margin: 0 12px 10px;
  padding: 14px 12px 12px;
  background: #fff;
  border-radius: 12px;
  box-sizing: border-box;
}
.h5-gd-merchant-hd {
  display: flex;
  align-items: center;
  gap: 10px;
}
.h5-gd-merchant-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #111;
  position: relative;
}
.h5-gd-merchant-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.h5-gd-merchant-logo-ph {
  display: block;
  width: 100%;
  height: 100%;
  background: #111 url('/static/img/diy-h5/merchant_logo.svg') center/cover no-repeat;
}
.h5-gd-merchant-logo-ph::after {
  display: none;
}
.h5-gd-merchant-meta {
  flex: 1;
  min-width: 0;
}
.h5-gd-merchant-name {
  font-size: 15px;
  font-weight: 700;
  color: #1f1f1f;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.h5-gd-merchant-fans {
  margin-top: 4px;
  font-size: 12px;
  color: #999;
  line-height: 1.2;
}
.h5-gd-merchant-btn {
  flex-shrink: 0;
  min-width: 56px;
  height: 30px;
  padding: 0 16px;
  border-radius: 999px;
  background: #ff5a2b;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.h5-gd-merchant-svc {
  margin-top: 12px;
  padding: 10px 8px;
  background: #f5f6f8;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  box-sizing: border-box;
}
.h5-gd-merchant-svc-item {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  color: #666;
  white-space: nowrap;
}
.h5-gd-merchant-svc-item img {
  width: 14px;
  height: 14px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}
.h5-gd-merchant-svc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #26c87f;
  flex-shrink: 0;
}

.h5-gd-services {
  margin: 0 10px 10px;
  padding: 12px 8px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  box-sizing: border-box;
}
.h5-gd-svc-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #666;
}
.h5-gd-svc-item img { width: 20px; height: 20px; display: block; }
.h5-gd-svc-dot {
  width: 18px; height: 18px; border-radius: 50%; background: #ff6a3d;
}
.h5-gd-tabs {
  margin: 0 10px 10px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}
.h5-gd-tabs-nav {
  display: flex;
  border-bottom: 1px solid #f0f0f0;
}
.h5-gd-tab {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 12px 4px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  position: relative;
}
.h5-gd-tab.is-on {
  color: #ff4d4f;
  font-weight: 700;
}
.h5-gd-tab.is-on::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 28px;
  height: 3px;
  margin-left: -14px;
  border-radius: 2px;
  background: #ff4d4f;
}
.h5-gd-tabs-pane { display: none; padding: 14px; font-size: 13px; color: #444; line-height: 1.7; }
.h5-gd-tabs-pane.is-on { display: block; }
.h5-gd-tabs-empty { color: #999; text-align: center; padding: 24px 0; }
.h5-gd-tabs-html { word-break: break-word; overflow-wrap: anywhere; }
.h5-gd-tabs-html img { max-width: 100%; height: auto; }
.h5-gd-price-panel { padding: 0 2px; }
.h5-gd-price-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; flex-wrap: wrap; gap: 6px;
}
.h5-gd-range {
  display: inline-flex; gap: 3px; border: 1px solid #e2e8f0; border-radius: 6px;
  padding: 2px; background: #f8fafc;
}
.h5-gd-range-btn {
  border: 0; padding: 3px 10px; border-radius: 4px; cursor: pointer;
  font-size: 11px; background: transparent; color: #64748b;
}
.h5-gd-range-btn.is-on { background: #f97316; color: #fff; }
.h5-gd-price-live {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: #64748b; cursor: pointer;
}
.h5-gd-price-time { font-size: 10px; color: #94a3b8; }
.h5-gd-price-chart { width: 100%; height: 220px; position: relative; }
.h5-gd-price-stats {
  display: flex; gap: 8px; margin-top: 12px; padding: 8px 12px;
  background: #f8fafc; border-radius: 8px; flex-wrap: wrap;
  align-items: center; font-size: 11px; color: #8c8c8c;
}
.h5-gd-comment-stats {
  display: flex; flex-wrap: wrap; gap: 10px; background: #f8fafc;
  padding: 14px; border-radius: 12px; margin-bottom: 14px; align-items: center;
}
.h5-gd-rate-wrap { display: flex; align-items: center; gap: 10px; }
.h5-gd-rate-ring { position: relative; width: 50px; height: 50px; }
.h5-gd-rate-ring svg { width: 100%; height: 100%; display: block; }
.h5-gd-rate-num {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #1e293b;
}
.h5-gd-muted { font-size: 11px; color: #8c8c8c; }
.h5-gd-rate-counts { display: flex; gap: 14px; }
.h5-gd-star-dist { flex: 1; min-width: 100px; display: flex; flex-direction: column; gap: 2px; }
.h5-gd-star-row {
  display: flex; align-items: center; gap: 5px; font-size: 11px;
}
.h5-gd-star-row > span:first-child { width: 16px; }
.h5-gd-star-bar { flex: 1; height: 3px; background: #e5e7eb; border-radius: 2px; overflow: hidden; }
.h5-gd-star-bar i { display: block; height: 100%; border-radius: 2px; }
.h5-gd-star-row em { width: 20px; text-align: right; color: #94a3b8; font-style: normal; }
.h5-gd-comment-item { border-bottom: 1px solid #f0f0f0; padding: 10px 0; }
.h5-gd-comment-hd { display: flex; align-items: center; gap: 8px; }
.h5-gd-comment-av { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: #e5e7eb; }
.h5-gd-comment-name { font-weight: 600; font-size: 13px; }
.h5-gd-comment-stars { color: #f97316; font-size: 13px; }
.h5-gd-comment-time { font-size: 11px; color: #999; margin-left: auto; }
.h5-gd-comment-body { margin: 3px 0 3px 36px; font-size: 13px; color: #555; }
.h5-gd-comment-imgs { display: flex; flex-wrap: wrap; gap: 5px; margin: 5px 0 0 36px; }
.h5-gd-comment-imgs img {
  width: 55px; height: 55px; object-fit: cover; border-radius: 4px; border: 1px solid #eee;
}
.h5-gd-comment-more {
  display: block; width: 120px; margin: 12px auto 0; padding: 5px 0;
  text-align: center; background: #f0f4ff; border-radius: 20px; color: #007bff;
  cursor: pointer; border: 1px solid #d0dfff; font-size: 12px;
}
.h5-gd-notice {
  margin: 0 10px 10px;
  padding: 8px 10px;
  border: 1px solid #b7d4ff;
  background: #fff7f7;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  overflow: visible;
  width: auto;
  height: auto;
  max-width: none;
  font-size: 12px;
  color: #333;
}
.h5-gd-notice-tag {
  flex-shrink: 0;
  padding: 2px 6px;
  border-radius: 4px;
  background: #ff4d4f;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.h5-gd-notice-text {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}
.h5-gd-notice.is-open .h5-gd-notice-text {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}
.h5-gd-notice-more {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: #ff4d4f;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
}
/* 兼容旧重要提示 class（避免与商品列表 .h5-gd-tip 宽高冲突） */
.h5-gd-tip-wrap .h5-gd-tip[data-h5-gd-tip] {
  flex-shrink: unset;
  width: auto !important;
  height: auto !important;
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 0 10px 10px;
  padding: 8px 10px;
  border: 1px solid #b7d4ff;
  background: #fff7f7;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 12px;
  color: #333;
  justify-content: flex-start;
}
.h5-gd-tip-tag {
  flex-shrink: 0;
  padding: 2px 6px;
  border-radius: 4px;
  background: #ff4d4f;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.h5-gd-tip-text {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.h5-gd-tip[data-h5-gd-tip].is-open .h5-gd-tip-text {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}
.h5-gd-tip-more {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: #ff4d4f;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
}
.h5-gd-agree {
  margin: 0 10px 10px;
  padding: 10px 12px;
  border: 1px solid #9ec5ff;
  background: #fffbeb;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  cursor: pointer;
}
.h5-gd-agree-input { position: absolute; opacity: 0; pointer-events: none; }
.h5-gd-agree-box {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  flex-shrink: 0;
  position: relative;
}
.h5-gd-agree-input:checked + .h5-gd-agree-box {
  background: #ff4d4f;
  border-color: #ff4d4f;
}
.h5-gd-agree-input:checked + .h5-gd-agree-box::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.h5-gd-agree-text { font-size: 13px; color: #333; line-height: 1.4; }
.h5-gd-agree-text a { color: #c45c26; text-decoration: none; }
.h5-gd-buyform {
  margin: 0;
  padding: 12px;
  background: #fff;
  border-radius: 12px 12px 0 0;
  box-sizing: border-box;
}
.h5-gd-sheet-editor-hint {
  margin: 8px 10px 0;
  padding: 8px 10px;
  background: #fff7e6;
  color: #ad6800;
  font-size: 12px;
  border-radius: 6px;
}
.h5-gd-sheet {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  pointer-events: none;
}
.h5-gd-sheet.is-open {
  display: block;
  pointer-events: auto;
}
.h5-gd-sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
}
.h5-gd-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(86vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 8px 0 calc(12px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  transform: translateY(100%);
  transition: transform .28s ease;
}
.h5-gd-sheet.is-open .h5-gd-sheet-panel {
  transform: translateY(0);
}
.h5-gd-sheet-close {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f5f5f5;
  color: #666;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
body.h5-gd-sheet-lock {
  overflow: hidden;
}
.h5-gd-bf-head { display: flex; gap: 10px; margin-bottom: 12px; }
.h5-gd-bf-thumb {
  width: 72px; height: 72px; border-radius: 8px; overflow: hidden; background: #f3f3f3; flex-shrink: 0;
}
.h5-gd-bf-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h5-gd-bf-price { color: #ff4d4f; font-size: 20px; font-weight: 700; }
.h5-gd-tag-blue {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px;
  background: #e8f3ff; color: #2f7cff; font-size: 11px; font-weight: 600; vertical-align: middle;
}
.h5-gd-bf-name { margin-top: 4px; font-size: 13px; color: #333; line-height: 1.4; }
.h5-gd-bf-tags { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; color: #999; }
.h5-gd-bf-tags .ok { color: #52c41a; }
.h5-gd-bf-block { padding: 12px 0; border-top: 1px solid #f5f5f5; }
.h5-gd-bf-label { font-size: 13px; color: #333; margin-bottom: 8px; font-weight: 600; }
.h5-gd-bf-specs { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.h5-gd-spec {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 12px; border-radius: 6px; background: #f5f5f5; color: #444;
  text-decoration: none; font-size: 13px; line-height: 1.35;
  max-width: calc(50% - 4px); min-height: 32px;
  white-space: normal; word-break: break-word; box-sizing: border-box;
}
.h5-gd-spec.is-on { background: #ffe8e6; color: #ff4d4f; }
.h5-gd-qty { display: inline-flex; align-items: center; border: 1px solid #eee; border-radius: 6px; overflow: hidden; }
.h5-gd-qty button {
  width: 32px; height: 32px; border: 0; background: #fafafa; cursor: pointer; font-size: 16px;
}
.h5-gd-qty input {
  width: 48px; height: 32px; border: 0; border-left: 1px solid #eee; border-right: 1px solid #eee;
  text-align: center; font-size: 14px;
}
.h5-gd-bf-input {
  width: 100%; height: 40px; border: 1px solid #eee; border-radius: 8px;
  padding: 0 12px; box-sizing: border-box; font-size: 14px;
}
.h5-gd-pays { display: flex; flex-direction: column; gap: 8px; }
.h5-gd-pay {
  display: flex; align-items: center; gap: 8px; padding: 10px 8px; border-radius: 8px;
  cursor: pointer; position: relative;
}
.h5-gd-pay img { width: 28px; height: 28px; display: block; }
.h5-gd-pay-name { font-size: 14px; color: #333; }
.h5-gd-pay-fee { font-size: 12px; color: #ff4d4f; margin-left: 4px; }
.h5-gd-pay input { position: absolute; opacity: 0; pointer-events: none; }
.h5-gd-pay-radio {
  margin-left: auto; width: 18px; height: 18px; border-radius: 50%; border: 1px solid #ddd; box-sizing: border-box;
}
.h5-gd-pay.is-on .h5-gd-pay-radio,
.h5-gd-pay input:checked + .h5-gd-pay-radio {
  border: 5px solid #ff4d4f;
}
.h5-gd-bf-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid #f0f0f0;
}
.h5-gd-bf-total { color: #ff4d4f; font-size: 18px; font-weight: 700; }
.h5-gd-bf-total em { font-style: normal; font-size: 22px; }
.h5-gd-bf-total small { display: block; font-size: 11px; font-weight: 400; margin-top: 2px; }
.h5-gd-bf-paybtn {
  flex-shrink: 0; min-width: 120px; height: 42px; border: 0; border-radius: 21px;
  background: #ff4d4f; color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; padding: 0 18px;
}
.h5-gd-buybar-spacer {
  height: calc(58px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}
.h5-gd-buybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  margin: 0;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 4px;
  box-sizing: border-box;
  max-width: 100%;
}
.diy-editor-body .h5-gd-buybar {
  position: sticky;
}
.h5-gd-bar-item {
  width: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: #666;
  font-size: 11px;
}
.h5-gd-bar-item i { font-style: normal; font-size: 16px; line-height: 1; }
.h5-gd-bar-buy {
  flex: 1;
  margin-left: 6px;
  height: 42px;
  border-radius: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  background: linear-gradient(90deg, #ff7a45, #ff504b);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 0 12px;
}
/* 购买按钮组件（新） */
.h5-gd-buybtn-wrap,
.h5-gd-buybar-wrap { position: relative; }
.h5-gd-buybtn-spacer {
  height: calc(62px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}
.h5-gd-buybtn {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  margin: 0;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  max-width: 100%;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .04);
}
.diy-editor-body .h5-gd-buybtn {
  position: sticky;
}
.h5-gd-buybtn-nav {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 2px;
}
.h5-gd-buybtn-item {
  width: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: #333;
  font-size: 11px;
  line-height: 1.1;
}
.h5-gd-buybtn-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #222;
  font-style: normal;
}
.h5-gd-buybtn-ico svg { display: block; }
.h5-gd-buybtn-buy {
  flex: 1;
  min-width: 0;
  height: 42px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  background: #ff4d4f;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 0 12px;
}
.h5-gd-buybtn-buy:active { opacity: .92; }
/* 下单弹窗（对标 modal-buy） */
.h5-gd-modal-buy {
  padding: 0 !important;
  max-height: min(88vh, 760px);
  display: flex;
  flex-direction: column;
}
.h5-gd-mb-form {
  display: flex;
  flex-direction: column;
  max-height: inherit;
  min-height: 0;
}
.h5-gd-mb-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px 10px;
  position: relative;
  border-bottom: 1px solid #f5f5f5;
}
.h5-gd-mb-pic {
  width: 72px; height: 72px; border-radius: 6px; overflow: hidden;
  background: #f3f3f3; flex-shrink: 0;
}
.h5-gd-mb-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h5-gd-mb-head-text { flex: 1; min-width: 0; padding-right: 28px; }
.h5-gd-mb-name {
  font-size: 14px; color: #333; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.h5-gd-mb-price { margin-top: 8px; color: #ff504b; font-size: 18px; font-weight: 700; }
.h5-gd-mb-price em { font-style: normal; }
.h5-gd-mb-x {
  position: absolute; top: 10px; right: 12px;
  width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: #f5f5f5; color: #666; font-size: 18px; cursor: pointer; line-height: 1;
}
.h5-gd-mb-body {
  flex: 1; overflow: auto; padding: 8px 14px 10px; -webkit-overflow-scrolling: touch;
}
.h5-gd-mb-row { margin-bottom: 12px; }
.h5-gd-mb-title { font-size: 14px; font-weight: 500; color: #333; margin-bottom: 8px; }
.h5-gd-mb-ctrl { width: 100%; }
.h5-gd-mb-input {
  width: 100%; box-sizing: border-box; padding: 8px 12px;
  border: 1px solid #ddd; border-radius: 4px; background: #fff; font-size: 14px;
  min-height: 36px;
}
.h5-gd-mb-radio { margin-right: 12px; font-size: 13px; color: #444; }
.h5-gd-mb-foot {
  flex-shrink: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #eee; background: #fff;
}
.h5-gd-mb-sure {
  width: 100%; height: 44px; border: 0; border-radius: 22px;
  background: linear-gradient(90deg, #ff7a45, #ff504b); color: #fff;
  font-size: 15px; font-weight: 700; cursor: pointer;
}
/* 支付方式弹窗（对标 paychose） */
.h5-gd-modal-pay {
  padding: 0 0 calc(8px + env(safe-area-inset-bottom, 0px)) !important;
}
.h5-gd-pay-handle {
  width: 36px; height: 4px; border-radius: 2px; background: #e5e7eb;
  margin: 10px auto 6px;
}
.h5-gd-pay-ok {
  padding: 8px 16px 4px; font-size: 15px; font-weight: 650; color: #222;
}
.h5-gd-pay-goods {
  display: flex; gap: 10px; padding: 10px 16px 12px; align-items: center;
}
.h5-gd-pay-goods img {
  width: 56px; height: 56px; border-radius: 6px; object-fit: cover; background: #f3f3f3;
}
.h5-gd-pay-gname {
  font-size: 13px; color: #333; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.h5-gd-pay-gprice { margin-top: 6px; color: #ff504b; font-weight: 700; }
.h5-gd-pay-way { padding: 0 16px 8px; display: flex; flex-direction: column; gap: 8px; max-height: 40vh; overflow: auto; }
.h5-gd-pay-row {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid #eee; border-radius: 8px; padding: 10px; cursor: pointer;
}
.h5-gd-pay-row.is-on { border-color: #ff7a45; background: #fff7f2; }
.h5-gd-pay-row-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.h5-gd-pay-row-main img { width: 28px; height: 28px; display: block; }
.h5-gd-pay-row-name { font-size: 14px; color: #222; }
.h5-gd-pay-row-label { font-size: 12px; color: #999; margin-top: 2px; }
.h5-gd-pay-check {
  width: 18px; height: 18px; border-radius: 50%; border: 1px solid #ddd; box-sizing: border-box; flex-shrink: 0;
}
.h5-gd-pay-row.is-on .h5-gd-pay-check { border: 5px solid #ff504b; }
.h5-gd-pay-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px 4px; border-top: 1px solid #f0f0f0;
}
.h5-gd-pay-total { font-size: 15px; font-weight: 700; color: #222; }
.h5-gd-pay-total em { font-style: normal; color: #ff504b; font-size: 18px; }
.h5-gd-pay-submit {
  min-width: 120px; height: 42px; border: 0; border-radius: 21px;
  background: #ff5722; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; padding: 0 18px;
}
.h5-user-center { padding: 0 12px 12px; }
.h5-uc-hero {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 16px; border-radius: 14px;
  background: linear-gradient(135deg, #2f6bff, #5b8cff); color: #fff;
}
.h5-uc-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.28); flex-shrink: 0;
}
.h5-uc-name { font-size: 17px; font-weight: 650; }
.h5-uc-level { font-size: 12px; opacity: .9; margin-top: 4px; }
.h5-uc-balance {
  margin: 12px 0; padding: 14px 16px; border-radius: 12px; background: #fff;
  font-size: 14px; color: #333;
}
.h5-uc-balance em { font-style: normal; color: #fa5a4b; font-weight: 700; margin-left: 6px; }
.h5-uc-menus {
  background: #fff; border-radius: 12px; overflow: hidden;
}
.h5-uc-item {
  display: block; padding: 14px 16px; color: #333; text-decoration: none;
  font-size: 14px; border-bottom: 1px solid #f0f0f0;
}
.h5-uc-item:last-child { border-bottom: 0; }

/* H5 客户信息 */
.h5-user-info-wrap { margin: 0 !important; }
.h5-user-info {
  position: relative;
  padding: 28px 14px 22px;
  background-color: #fe564b;
  background-image:
    radial-gradient(circle at 88% 18%, rgba(255,255,255,.18) 0, rgba(255,255,255,.18) 42px, transparent 44px),
    radial-gradient(circle at 12% 78%, rgba(255,255,255,.1) 0, rgba(255,255,255,.1) 28px, transparent 30px);
  color: #fff;
  box-sizing: border-box;
  overflow: hidden;
}
.h5-user-info .user-info {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
}
.h5-user-info .avatar-box {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px rgba(255, 232, 210, .85);
  overflow: hidden;
  background: rgba(255,255,255,.25);
}
.h5-user-info .avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.h5-user-info .avatar.is-fallback,
.h5-user-info .avatar-box .is-fallback {
  background: linear-gradient(160deg, rgba(255,255,255,.45), rgba(255,255,255,.15));
}
.h5-user-info .info {
  flex: 1;
  min-width: 0;
  margin-left: 12px;
  padding: 4px 28px 4px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.h5-user-info .name {
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.25;
}
.h5-user-info .nickname.line1 {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.h5-user-info .number {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
}
.h5-user-info .number .num-txt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #6c2a09;
  padding: 2px 12px;
  min-height: 22px;
  border-radius: 11px;
  background: linear-gradient(90deg, #ffebc0, #ffc479);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}
.h5-user-info .iii {
  display: inline-block;
  height: 18px;
  width: 30px;
  object-fit: contain;
  vertical-align: middle;
}
.h5-user-info .h5-ui-svip {
  height: 22px;
  width: 35px;
  border-radius: 10px;
  margin-left: 2px;
}
.h5-user-info .setting {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffe7b0;
  background: rgba(255,255,255,.14);
  text-decoration: none;
  flex-shrink: 0;
}
.h5-user-info .setting:active { opacity: .85; }

/* H5 客户信息02 — 对齐 business user-card + cardVipA */
.h5-user-info02-wrap {
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
  overflow: visible;
  position: relative;
}
.h5-user-info02 {
  position: relative;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  /* 上区头像 + 底条高度，避免升级条被下一屏盖住 */
  min-height: 168px;
  padding: 32px 16px 52px;
  background-color: #fe564b;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center top;
  overflow: visible;
}
.h5-user-info02 .user-info {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
}
.h5-user-info02 .avatar-box {
  position: relative;
  flex-shrink: 0;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .92);
  box-sizing: border-box;
  background: rgba(255, 255, 255, .2);
}
.h5-user-info02 .avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.h5-user-info02 .avatar.is-fallback {
  background: linear-gradient(160deg, rgba(255,255,255,.5), rgba(255,255,255,.18));
}
.h5-user-info02 .info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 2px 0;
}
.h5-user-info02 .name {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}
.h5-user-info02 .nickname.line1 {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.h5-user-info02 .number {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.h5-user-info02 .number .num-txt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #6c2a09;
  padding: 2px 12px;
  min-height: 22px;
  border-radius: 11px;
  background: linear-gradient(90deg, #ffebc0, #ffc479);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  box-sizing: border-box;
}
.h5-user-info02 .iii {
  display: inline-block;
  height: 18px;
  width: 30px;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
}
.h5-user-info02 .h5-ui-svip {
  height: 22px;
  width: 35px;
  border-radius: 10px;
}
.h5-user-info02 .setting {
  flex-shrink: 0;
  align-self: flex-start;
  margin-left: auto;
  margin-top: 4px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  opacity: .95;
}
.h5-user-info02 .setting:active { opacity: .75; }

/* 升级条：贴在红色头卡底部，完整可见，「去升级」不溢出 */
.h5-user-info02 .cardVipA {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 22;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 44px;
  padding: 0 16px 0 52px;
  box-sizing: border-box;
  border-radius: 12px 12px 0 0;
  background-color: #2f2f2f;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
}
.h5-user-info02 .cardVipA.is-css {
  background-image: url('/static/img/diy-h5/grade.svg');
}
.h5-user-info02 .cardVipA .left-box {
  flex: 1 1 auto;
  min-width: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  padding-right: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.h5-user-info02 .cardVipA .vip-gem {
  display: none;
}
.h5-user-info02 .cardVipA .left-box::before {
  display: none;
}
.h5-user-info02 .cardVipA .small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}
.h5-user-info02 .cardVipA .vip-action {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 2px;
  margin-left: 8px;
  padding-right: 2px;
}
.h5-user-info02 .cardVipA .btn {
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  line-height: 1;
}
.h5-user-info02 .cardVipA .vip-arrow {
  color: #fff;
  font-size: 13px;
  line-height: 1;
  margin-top: 0;
  flex-shrink: 0;
}

/* 头卡下方圆弧，放在升级条之后，不再横切升级条 */
.h5-user-info02-wrap::after {
  content: '';
  display: block;
  height: 12px;
  margin-top: -1px;
  background: #fff;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.h5-user-info02::after {
  display: none !important;
  content: none !important;
}

/* H5 用户余额 */
.h5-user-balance-wrap {
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}
.h5-user-balance.num-wrapper {
  position: relative;
  z-index: 29;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #333;
  margin: 12px 15px 13px;
  padding: 0;
  border-radius: 8px;
  height: 83px;
  background-color: #fff;
  box-sizing: border-box;
}
.h5-user-balance .num-item {
  width: calc(100% / 3);
  text-align: center;
}
.h5-user-balance .num-item .num {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #333;
  text-decoration: none;
  line-height: 1.2;
}
.h5-user-balance .num-item .mny-num {
  font-size: 18px;
  font-weight: 700;
  color: #333;
}
.h5-user-balance .num-item .txt {
  margin-top: 4px;
  font-size: 13px;
  color: #555;
}

/* H5 账号信息 */
.h5-user-account-wrap {
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}
.h5-user-account {
  margin: 12px 15px;
  padding: 16px 16px 18px;
  background: #fff;
  border-radius: 12px;
  box-sizing: border-box;
}
.h5-ua-level {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.h5-ua-level-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: wrap;
}
.h5-ua-gem {
  display: inline-flex;
  flex-shrink: 0;
  line-height: 0;
}
.h5-ua-level-title {
  font-size: 15px;
  font-weight: 650;
  color: #1f1f1f;
  line-height: 1.3;
}
.h5-ua-renew {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 10px;
  background: #f2f3f5;
  color: #8c8c8c;
  font-size: 11px;
  text-decoration: none;
  line-height: 1;
}
.h5-ua-upgrade {
  flex-shrink: 0;
  text-align: right;
  text-decoration: none;
  color: inherit;
  max-width: 46%;
}
.h5-ua-upgrade-main {
  font-size: 14px;
  font-weight: 600;
  color: #1f1f1f;
  line-height: 1.3;
}
.h5-ua-arrow {
  font-size: 14px;
  color: #595959;
}
.h5-ua-upgrade-tip {
  margin-top: 4px;
  font-size: 11px;
  color: #bfbfbf;
  line-height: 1.3;
}
.h5-ua-divider {
  height: 1px;
  margin: 14px 0 16px;
  background: #f0f0f0;
}
.h5-ua-stats {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}
.h5-ua-stat {
  flex: 1;
  text-align: center;
  min-width: 0;
}
.h5-ua-stat-num {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #1f1f1f;
  line-height: 1.2;
  text-decoration: none;
}
.h5-ua-stat-num .mny-num {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}
.h5-ua-stat-label {
  margin-top: 6px;
  font-size: 12px;
  color: #8c8c8c;
}
.h5-ua-recharge {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  height: 40px;
  border-radius: 20px;
  border: 1px solid #fa2c19;
  color: #fa2c19;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  background: #fff;
  box-sizing: border-box;
}
.h5-ua-recharge:active {
  background: #fff5f4;
}

/* H5 开通分站 */
.h5-open-site-wrap {
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}
.h5-open-site.cardVip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 15px;
  height: 52px;
  padding: 0 8px 0 16px;
  box-sizing: border-box;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  background-color: #f3e6c8;
  border-radius: 12px;
  color: #6a4714;
  font-size: 14px;
  overflow: hidden;
}
.h5-open-site .left-box {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
}
.h5-open-site .smallimg {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
.h5-open-site .small {
  margin-left: 36px;
  font-weight: 600;
  color: #6a4714;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.h5-open-site .row-middle {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 8px;
}
.h5-open-site .btn {
  display: inline-block;
  height: auto;
  min-width: 55px;
  margin-right: 8px;
  padding: 4px 16px;
  border-radius: 15px;
  color: #f0e1c9;
  background: linear-gradient(90deg, #875916, #4a2d04);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
}
.h5-open-site .btn:active {
  opacity: .88;
}

/* H5 订单中心 */
.h5-order-center-wrap {
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}
.h5-order-center.order-wrapper {
  position: relative;
  margin: 0 15px 12px;
  background: #fff;
  border-radius: 10px;
  box-sizing: border-box;
  overflow: hidden;
}
.h5-order-center .order-hd.flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 14px 6px;
  font-size: 15px;
  color: #282828;
}
.h5-order-center .order-hd .left {
  font-weight: 700;
}
.h5-order-center .order-hd .right {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #666;
  font-size: 13px;
  text-decoration: none;
}
.h5-order-center .order-hd .arrow {
  font-size: 14px;
  line-height: 1;
}
.h5-order-center .order-bd {
  display: flex;
  padding: 2px 4px 12px;
}
.h5-order-center .order-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 20%;
  height: 72px;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}
.h5-order-center .order-item .pic {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fe8a56;
  line-height: 0;
}
.h5-order-center .order-item .pic svg {
  display: block;
}
.h5-order-center .order-item .text {
  margin-top: 4px;
  font-size: 13px;
  color: #454545;
  line-height: 1.2;
  white-space: nowrap;
}

/* H5 我的订单 */
.h5-my-orders-wrap {
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}
.h5-my-orders {
  margin: 0 15px 12px;
  padding: 14px 12px 12px;
  background: #fff;
  border-radius: 12px;
  box-sizing: border-box;
}
.h5-mo-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 4px;
}
.h5-mo-title {
  font-size: 16px;
  font-weight: 700;
  color: #1f1f1f;
}
.h5-mo-more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  color: #8c8c8c;
  text-decoration: none;
}
.h5-mo-arrow { font-size: 14px; line-height: 1; }
.h5-mo-bd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.h5-mo-item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.h5-mo-ico {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #2f333a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.h5-mo-ico svg { display: block; }
.h5-mo-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #fa2c19;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  box-sizing: border-box;
}
.h5-mo-text {
  margin-top: 8px;
  font-size: 12px;
  color: #595959;
  line-height: 1.2;
  white-space: nowrap;
}

/* H5 我的服务 */
.h5-my-services-wrap {
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}
.h5-my-services {
  margin: 0 15px 12px;
  background: #fff;
  border-radius: 8px;
  box-sizing: border-box;
}
.h5-my-services .h5-ms-title,
.h5-my-services .menu-title {
  padding: 15px 15px 12px;
  font-size: 15px;
  color: #282828;
  font-weight: 700;
  line-height: 1.2;
}
.h5-my-services .h5-ms-list,
.h5-my-services .list-box {
  display: flex;
  flex-wrap: wrap;
  padding: 0 0 4px;
}
.h5-my-services .h5-ms-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 25%;
  margin-bottom: 24px;
  text-decoration: none;
  color: #333;
  box-sizing: border-box;
}
.h5-my-services .h5-ms-ico {
  width: 27px;
  height: 27px;
  margin-bottom: 9px;
  object-fit: contain;
  display: block;
}
.h5-my-services .h5-ms-ico-ph {
  width: 27px;
  height: 27px;
  margin-bottom: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6aa8ff, #8b7bff);
  display: block;
}
.h5-my-services .h5-ms-text {
  font-size: 13px;
  color: #333;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

/* H5 我的服务01（淡色圆形图标底） */
.h5-my-services01-wrap {
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}
.h5-my-services01 {
  margin: 0 15px 12px;
  padding: 0 4px 8px;
  background: #fff;
  border-radius: 10px;
  box-sizing: border-box;
}
.h5-ms01-title {
  padding: 16px 12px 10px;
  font-size: 16px;
  font-weight: 700;
  color: #1f1f1f;
  line-height: 1.2;
}
.h5-ms01-list {
  display: flex;
  flex-wrap: wrap;
  padding: 0 4px 4px;
}
.h5-ms01-item {
  width: 25%;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}
.h5-ms01-ico {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.12);
}
.h5-ms01-ico svg { display: block; }
.h5-ms01-img {
  width: 27px;
  height: 27px;
  object-fit: contain;
  display: block;
}
.h5-ms01-ph {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  display: block;
}
.h5-ms01-ico.tone-red { color: #ff5a5a; background: rgba(255, 90, 90, 0.12); }
.h5-ms01-ico.tone-coral { color: #ff6f61; background: rgba(255, 111, 97, 0.12); }
.h5-ms01-ico.tone-orange { color: #ff9f43; background: rgba(255, 159, 67, 0.14); }
.h5-ms01-ico.tone-amber { color: #f5a623; background: rgba(245, 166, 35, 0.14); }
.h5-ms01-ico.tone-blue { color: #4b8dff; background: rgba(75, 141, 255, 0.12); }
.h5-ms01-ico.tone-purple { color: #9b6dff; background: rgba(155, 109, 255, 0.12); }
.h5-ms01-ico.tone-violet { color: #8e6cff; background: rgba(142, 108, 255, 0.12); }
.h5-ms01-ico.tone-cyan { color: #2ec4b6; background: rgba(46, 196, 182, 0.12); }
.h5-ms01-ico.tone-green { color: #2ecc71; background: rgba(46, 204, 113, 0.12); }
.h5-ms01-text {
  margin-top: 8px;
  font-size: 12px;
  color: #4a4a4a;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

/* H5 退出登录 / 退出账号 */
.h5-logout-wrap,
.h5-logout01-wrap {
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}
.h5-logout {
  margin: 0 15px;
  box-sizing: border-box;
}
.h5-logout-btn {
  display: block;
  width: 100%;
  border: 0;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}
.h5-logout--pink .h5-logout-btn {
  padding: 13px 16px;
  border-radius: 24px;
  background: #ff6b6b;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(255, 107, 107, 0.28);
}
.h5-logout--pink .h5-logout-btn:active {
  opacity: 0.92;
  transform: scale(0.99);
}
.h5-logout--card .h5-logout-btn {
  padding: 16px 16px;
  border-radius: 10px;
  background: #fff;
  color: #666;
  font-weight: 500;
  box-shadow: none;
}
.h5-logout--card .h5-logout-btn:active {
  background: #f7f7f7;
}

/* 退出确认弹窗 */
.h5-logout-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  padding: 24px;
  box-sizing: border-box;
}
.h5-logout-modal.is-open { display: flex; }
.h5-logout-dialog {
  width: 100%;
  max-width: 300px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
.h5-logout-dialog-msg {
  padding: 28px 20px 22px;
  font-size: 15px;
  color: #333;
  text-align: center;
  line-height: 1.5;
}
.h5-logout-dialog-actions {
  display: flex;
  border-top: 1px solid #f0f0f0;
}
.h5-logout-dialog-actions button {
  flex: 1;
  height: 46px;
  border: 0;
  background: #fff;
  font-size: 15px;
  cursor: pointer;
}
.h5-logout-dialog-actions .h5-lo-cancel {
  color: #888;
  border-right: 1px solid #f0f0f0;
}
.h5-logout-dialog-actions .h5-lo-ok {
  color: #ff6b6b;
  font-weight: 600;
}

