/* ═══════════════════════════════════════════════════════════
   轻撰 H5 v4 — 完整 redesign（结构 + 布局 + 视觉系统）
   仅 html.qz-h5-v2；index.mp.html 不加载
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&family=Noto+Serif+SC:wght@500;600;700&display=swap');

html.qz-h5-v2 {
  --qz-black: #080808;
  --qz-ink: #141414;
  --qz-ink-2: #404040;
  --qz-muted: #8a8580;
  --qz-paper: #f5f4f1;
  --qz-surface: #ffffff;
  --qz-border: #e8e4dd;
  --qz-accent: #ff5a1f;
  --qz-accent-deep: #d9480f;
  --qz-accent-soft: #fff3ec;
  --qz-accent-glow: rgba(255, 90, 31, 0.25);
  --qz-success: #0d7a43;
  --qz-danger: #dc2626;
  --qz-r-xl: 28px;
  --qz-r-lg: 20px;
  --qz-r-md: 16px;
  --qz-r-sm: 12px;
  --qz-font-display: 'Noto Serif SC', 'Songti SC', Georgia, serif;
  --qz-font-body: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  --qz-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --qz-tab-h: 62px;
  --qz-dock-h: 72px;
  --desk-sidebar-w: 260px;
  --desk-main-gap: 48px;
  --desk-page-x: 56px;
  --qz-brand-blue: #3a7fff;
  --qz-brand-purple: #7b61ff;
  --qz-brand-grad: linear-gradient(135deg, #3a7fff 0%, #7b61ff 100%);
}

/* ── 全局壳层：去掉假状态栏、重置旧蓝 ── */
html.qz-h5-v2 body {
  font-family: var(--qz-font-body);
  background: #d8d6d2;
  color: var(--qz-ink);
  -webkit-font-smoothing: antialiased;
}

html.qz-h5-v2 .status-bar {
  display: none !important;
}

html.qz-h5-v2 .phone {
  background: var(--qz-black);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.22);
}

html.qz-h5-v2 .phone.qz-on-home {
  background: var(--qz-black);
}

html.qz-h5-v2 .content.scrollable {
  padding-bottom: calc(var(--qz-tab-h) + 24px + env(safe-area-inset-bottom));
  background: var(--qz-paper);
}

html.qz-h5-v2 .phone.qz-on-home .content.scrollable {
  background: transparent;
  padding-bottom: calc(var(--qz-tab-h) + 24px + env(safe-area-inset-bottom));
}

/* 内页顶栏 */
html.qz-h5-v2 .phone:not(.qz-on-home) .nav-bar {
  height: 52px;
  background: var(--qz-black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}

html.qz-h5-v2 .phone:not(.qz-on-home) .nav-bar .back {
  color: #fff;
  font-size: 28px;
  left: 16px;
}

html.qz-h5-v2 .phone:not(.qz-on-home) #navTitle {
  font-family: var(--qz-font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.06em;
  color: #fff;
}

html.qz-h5-v2 .phone.on-home .nav-bar {
  display: none !important;
}

html.qz-h5-v2 .qz-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ══════════════ 首页 ══════════════ */
html.qz-h5-v2 .qz-home-shell {
  background: var(--qz-black);
  min-height: 100%;
}

html.qz-h5-v2 .qz-masthead {
  position: relative;
  padding: calc(32px + env(safe-area-inset-top, 0px)) 28px 44px;
  color: #fff;
  overflow: hidden;
}

html.qz-h5-v2 .qz-masthead-glow {
  position: absolute;
  inset: auto 0 -60px 0;
  height: 200px;
  background: radial-gradient(ellipse 80% 100% at 50% 100%, rgba(255, 90, 31, 0.35), transparent);
  pointer-events: none;
}

html.qz-h5-v2 .qz-masthead-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

html.qz-h5-v2 .qz-wordmark {
  font-family: var(--qz-font-display);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin: 0;
  line-height: 1;
}

html.qz-h5-v2 .qz-masthead-user {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  margin-top: 4px;
}

html.qz-h5-v2 .qz-masthead-user svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
}

html.qz-h5-v2 .qz-masthead-lead {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.2em;
  margin: 0 0 28px;
}

html.qz-h5-v2 .qz-masthead-cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border: none;
  border-radius: var(--qz-r-md);
  background: #fff;
  color: var(--qz-ink);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

html.qz-h5-v2 .qz-masthead-cta svg {
  width: 20px;
  height: 20px;
  stroke: var(--qz-accent);
  fill: none;
  stroke-width: 2;
}

html.qz-h5-v2 .qz-masthead-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: var(--qz-r-sm);
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 12px;
  box-shadow: none !important;
}

html.qz-h5-v2 .qz-masthead-notice .notif-icon svg {
  width: 14px;
  height: 14px;
  stroke: rgba(255, 255, 255, 0.6);
  fill: none;
  stroke-width: 1.75;
}

html.qz-h5-v2 .qz-masthead-notice .notif-scroll-inner {
  color: rgba(255, 255, 255, 0.55) !important;
}

/* 浮层 */
html.qz-h5-v2 .qz-home-sheet {
  margin-top: -24px;
  background: var(--qz-paper);
  border-radius: var(--qz-r-xl) var(--qz-r-xl) 0 0;
  padding: 28px 0 32px;
  min-height: 50vh;
}

/* 主导航：全宽列表（非卡片堆叠） */
html.qz-h5-v2 .qz-primary-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 20px;
  margin-bottom: 8px;
}

html.qz-h5-v2 .qz-nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 4px;
  border: none;
  border-bottom: 1px solid var(--qz-border);
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: var(--qz-font-body);
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}

html.qz-h5-v2 .qz-nav-item:last-child {
  border-bottom: none;
}

html.qz-h5-v2 .qz-nav-item:active {
  background: rgba(0, 0, 0, 0.03);
}

html.qz-h5-v2 .qz-nav-item--lead {
  padding: 24px 4px;
  border-bottom: 1px solid var(--qz-border);
}

html.qz-h5-v2 .qz-nav-item--lead .qz-nav-icon {
  width: 52px;
  height: 52px;
  background: var(--qz-accent);
  color: #fff;
  border-radius: 16px;
}

html.qz-h5-v2 .qz-nav-item--lead .qz-nav-title {
  font-size: 20px;
}

html.qz-h5-v2 .qz-nav-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--qz-surface);
  border: 1px solid var(--qz-border);
  color: var(--qz-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

html.qz-h5-v2 .qz-nav-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html.qz-h5-v2 .qz-nav-copy {
  flex: 1;
  min-width: 0;
}

html.qz-h5-v2 .qz-nav-title {
  display: block;
  font-family: var(--qz-font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--qz-ink);
  line-height: 1.3;
}

html.qz-h5-v2 .qz-nav-desc {
  display: block;
  font-size: 12px;
  color: var(--qz-muted);
  margin-top: 3px;
  line-height: 1.4;
}

html.qz-h5-v2 .qz-nav-arrow {
  font-size: 20px;
  color: var(--qz-muted);
  flex-shrink: 0;
  font-weight: 300;
}

/* 分区 */
html.qz-h5-v2 .qz-section {
  padding: 32px 0 0;
}

html.qz-h5-v2 .qz-section-last {
  padding-bottom: 16px;
}

html.qz-h5-v2 .qz-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 24px 16px;
}

html.qz-h5-v2 .qz-section-title {
  font-family: var(--qz-font-display);
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.04em;
}

html.qz-h5-v2 .qz-section-link {
  border: none;
  background: none;
  font-size: 13px;
  color: var(--qz-accent);
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}

html.qz-h5-v2 .qz-hscroll {
  display: flex;
  gap: 14px;
  padding: 0 24px 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

html.qz-h5-v2 .qz-hscroll::-webkit-scrollbar {
  display: none;
}

html.qz-h5-v2 .qz-hcard {
  flex: 0 0 78%;
  max-width: 300px;
  scroll-snap-align: start;
  padding: 24px 22px;
  border: 1px solid var(--qz-border);
  border-radius: var(--qz-r-lg);
  background: var(--qz-surface);
  text-align: left;
  cursor: pointer;
  font-family: var(--qz-font-body);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

html.qz-h5-v2 .qz-hcard-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--qz-accent);
}

html.qz-h5-v2 .qz-hcard-title {
  font-family: var(--qz-font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

html.qz-h5-v2 .qz-hcard-desc {
  font-size: 13px;
  color: var(--qz-muted);
  line-height: 1.5;
}

html.qz-h5-v2 .qz-records-panel {
  margin: 0 24px;
  border: 1px solid var(--qz-border);
  border-radius: var(--qz-r-lg);
  background: var(--qz-surface);
  overflow: hidden;
}

html.qz-h5-v2 .qz-records-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: var(--qz-font-body);
}

html.qz-h5-v2 .qz-records-label {
  display: block;
  font-family: var(--qz-font-display);
  font-size: 17px;
  font-weight: 600;
}

html.qz-h5-v2 .qz-records-summary {
  display: block;
  font-size: 13px;
  color: var(--qz-muted);
  margin-top: 4px;
}

html.qz-h5-v2 .qz-records-chevron {
  font-size: 22px;
  color: var(--qz-muted);
}

html.qz-h5-v2 .qz-records-panel.is-expanded .qz-records-chevron {
  transform: rotate(90deg);
}

html.qz-h5-v2 .home-records-expand {
  border-top: 1px solid var(--qz-border);
  background: var(--qz-paper) !important;
  padding: 12px !important;
}

html.qz-h5-v2 .home-records-all-btn {
  width: 100%;
  padding: 12px;
  border: 1px dashed var(--qz-border);
  border-radius: var(--qz-r-sm);
  background: transparent;
  color: var(--qz-accent);
  font-weight: 600;
  cursor: pointer;
}

/* ══════════════ 编辑室（改写页） ══════════════ */
html.qz-h5-v2 .qz-studio {
  min-height: 100%;
  padding-bottom: var(--qz-dock-h);
}

html.qz-h5-v2 .qz-studio-input {
  margin: 16px !important;
  padding: 24px !important;
  border-radius: var(--qz-r-lg) !important;
  border: 1px solid var(--qz-border) !important;
  box-shadow: none !important;
}

html.qz-h5-v2 .qz-card-label {
  font-family: var(--qz-font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

html.qz-h5-v2 .qz-studio .rewrite-input,
html.qz-h5-v2 .qz-studio .rewrite-textarea {
  min-height: 120px;
  padding: 16px;
  font-size: 15px;
  line-height: 1.6;
  border: 1px solid var(--qz-border);
  border-radius: var(--qz-r-sm);
  margin-bottom: 16px;
}

html.qz-h5-v2 .qz-segment.tabs {
  display: flex;
  gap: 8px;
  padding: 16px 16px 0;
  background: transparent;
  border: none;
}

html.qz-h5-v2 .qz-segment .tab {
  flex: 1;
  padding: 12px 8px;
  font-size: 13px;
  border-radius: var(--qz-r-sm);
  border: 1px solid var(--qz-border);
  background: var(--qz-surface);
  color: var(--qz-muted);
  border-bottom: 1px solid var(--qz-border) !important;
}

html.qz-h5-v2 .qz-segment .tab.active {
  background: var(--qz-ink) !important;
  color: #fff !important;
  border-color: var(--qz-ink) !important;
  font-weight: 600;
}

html.qz-h5-v2 .rewrite-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

html.qz-h5-v2 .result-title {
  font-family: var(--qz-font-display);
  font-size: 18px;
  font-weight: 600;
}

html.qz-h5-v2 .rewrite-editable {
  min-height: 280px;
  padding: 20px;
  font-size: 15px;
  line-height: 1.85;
  background: var(--qz-paper);
  border-radius: var(--qz-r-sm);
  border: 1px solid var(--qz-border);
}

html.qz-h5-v2 .rewrite-result-container {
  margin-bottom: 8px;
}

/* 底部操作坞 */
html.qz-h5-v2 .qz-studio .image-match-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--qz-tab-h) + 8px + env(safe-area-inset-bottom));
  max-width: 430px;
  margin: 0 auto;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--qz-border);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.08);
  z-index: 55;
  gap: 6px;
}

html.qz-h5-v2 body[data-qz-page='rewriteLink'] .content.scrollable,
html.qz-h5-v2 body[data-qz-page='rewriteText'] .content.scrollable,
html.qz-h5-v2 body[data-qz-page='rewriteFusion'] .content.scrollable {
  padding-bottom: calc(var(--qz-tab-h) + var(--qz-dock-h) + 32px + env(safe-area-inset-bottom));
}

html.qz-h5-v2 .phone .image-match-bar .btn-match {
  height: 40px !important;
  min-height: 40px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  background: var(--qz-ink) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html.qz-h5-v2 .phone .image-match-bar .btn-match::after {
  display: none !important;
}

html.qz-h5-v2 .phone .image-match-bar .btn-match.btn-publish-or-copy {
  background: var(--qz-success) !important;
}

html.qz-h5-v2 .phone .image-match-bar .btn-match.btn-one-click-publish {
  background: var(--qz-accent) !important;
}

html.qz-h5-v2 .phone .image-match-bar .btn-match.btn-video {
  background: var(--qz-ink-2) !important;
}

html.qz-h5-v2 .compare-tabs .compare-tab.active {
  background: var(--qz-ink);
  color: #fff;
}

/* ══════════════ 我的 ══════════════ */
html.qz-h5-v2 #page-mine {
  background: var(--qz-paper);
}

html.qz-h5-v2 .qz-mine-shell {
  min-height: 100%;
}

html.qz-h5-v2 .qz-mine-hero {
  background: var(--qz-black);
  color: #fff;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 24px 32px;
}

html.qz-h5-v2 .qz-mine-profile {
  display: flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
}

html.qz-h5-v2 .qz-mine-avatar {
  width: 72px !important;
  height: 72px !important;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
}

html.qz-h5-v2 .qz-mine-hero .mine-user-name {
  font-family: var(--qz-font-display);
  font-size: 22px;
  font-weight: 600;
  color: #fff;
}

html.qz-h5-v2 .qz-mine-hero .mine-user-name.is-guest {
  color: rgba(255, 255, 255, 0.9) !important;
}

html.qz-h5-v2 .qz-mine-hero .member-badge {
  margin-top: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}

html.qz-h5-v2 .qz-mine-stats {
  display: flex;
  margin: -20px 20px 0;
  padding: 20px;
  background: var(--qz-surface);
  border-radius: var(--qz-r-lg);
  border: 1px solid var(--qz-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 1;
  cursor: pointer;
}

html.qz-h5-v2 .qz-mine-stats .mine-stat {
  flex: 1;
  text-align: center;
}

html.qz-h5-v2 .qz-mine-stats .mine-stat-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--qz-ink);
}

html.qz-h5-v2 .qz-mine-stats .mine-stat-num.earn,
html.qz-h5-v2 .qz-mine-stats .mine-stat-num.bal {
  color: var(--qz-accent);
}

html.qz-h5-v2 .qz-mine-menu {
  display: flex;
  flex-direction: column;
  padding: 24px 20px 16px;
  gap: 0;
}

html.qz-h5-v2 .qz-menu-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 4px;
  border: none;
  border-bottom: 1px solid var(--qz-border);
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: var(--qz-font-body);
}

html.qz-h5-v2 .qz-menu-row:last-child {
  border-bottom: none;
}

html.qz-h5-v2 .qz-menu-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

html.qz-h5-v2 .qz-menu-label {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
  color: var(--qz-ink);
}

html.qz-h5-v2 .qz-menu-chevron {
  color: var(--qz-muted);
  font-size: 18px;
}

html.qz-h5-v2 .qz-mine-foot {
  text-align: center;
  padding: 24px;
  font-size: 12px;
  color: var(--qz-muted);
  letter-spacing: 0.12em;
}

html.qz-h5-v2 .qz-site-icp {
  text-align: center;
  padding: 0 20px 20px;
  font-size: 11px;
  color: var(--qz-muted);
  line-height: 1.5;
}

html.qz-h5-v2 .qz-site-icp a {
  color: inherit;
  text-decoration: none;
}

html.qz-h5-v2 .qz-site-icp a:hover {
  text-decoration: underline;
}

html.qz-h5-v2 .member-banner {
  margin: 16px 20px !important;
  background: var(--qz-ink) !important;
  border-radius: var(--qz-r-md) !important;
}

/* ══════════════ 记录 / 文章库 ══════════════ */
html.qz-h5-v2 .qz-page-head {
  padding: 24px 24px 8px;
  background: var(--qz-surface);
  border-bottom: 1px solid var(--qz-border);
}

html.qz-h5-v2 .qz-page-head-title {
  font-family: var(--qz-font-display);
  font-size: 26px;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.04em;
}

html.qz-h5-v2 .qz-page-head-sub {
  font-size: 13px;
  color: var(--qz-muted);
  margin: 6px 0 0;
}

html.qz-h5-v2 .record-item {
  margin: 10px 16px !important;
  padding: 16px !important;
  border: 1px solid var(--qz-border) !important;
  border-radius: var(--qz-r-md) !important;
  background: var(--qz-surface) !important;
  box-shadow: none !important;
}

html.qz-h5-v2 .record-type {
  background: var(--qz-accent-soft) !important;
  color: var(--qz-accent) !important;
  border-radius: 999px;
}

html.qz-h5-v2 .qz-mobile-only {
  display: block;
}

html.qz-h5-v2 body.desk-mode .qz-mobile-only {
  display: none !important;
}

/* ══════════════ 文章库 — 保留原版双栏布局 ══════════════ */
html.qz-h5-v2 body.desk-mode #page-article .article-topbar {
  display: none !important;
}

html.qz-h5-v2 body.desk-mode #page-article .tabs {
  margin-top: 12px;
}

/* ══════════════ 通用组件重置 ══════════════ */
html.qz-h5-v2 .card {
  background: var(--qz-surface);
  border: 1px solid var(--qz-border);
  border-radius: var(--qz-r-md);
  margin: 12px 16px;
  padding: 16px;
  box-shadow: none !important;
}

html.qz-h5-v2 .btn-primary,
html.qz-h5-v2 .phone .btn-primary,
html.qz-h5-v2 .phone .creator-add button,
html.qz-h5-v2 .phone .creator-work-gen {
  background: var(--qz-accent) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--qz-r-sm) !important;
  box-shadow: 0 8px 20px var(--qz-accent-glow) !important;
  font-weight: 600 !important;
  text-shadow: none !important;
  padding: 14px !important;
  font-size: 15px !important;
}

html.qz-h5-v2 .btn-primary::after,
html.qz-h5-v2 .phone .btn-primary::after {
  display: none !important;
}

html.qz-h5-v2 .btn-secondary,
html.qz-h5-v2 .btn-primary.btn-secondary {
  background: var(--qz-surface) !important;
  color: var(--qz-ink) !important;
  border: 1px solid var(--qz-border) !important;
  box-shadow: none !important;
}

html.qz-h5-v2 .loading-spinner {
  border-top-color: var(--qz-accent);
}

html.qz-h5-v2 .modal {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
}

html.qz-h5-v2 .modal-content {
  border-radius: var(--qz-r-xl);
  border: 1px solid var(--qz-border);
}

html.qz-h5-v2 .modal-title {
  font-family: var(--qz-font-display);
  font-weight: 600;
}

html.qz-h5-v2 #page-autoPublish .card > div:first-child {
  font-family: var(--qz-font-display);
  font-size: 20px !important;
  font-weight: 600;
}

/* 懒人模式：设置区按行左右对齐 */
html.qz-h5-v2 #page-autoPublish .ap-settings-split {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}

html.qz-h5-v2 #page-autoPublish .ap-settings-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 20px;
  align-items: stretch;
}

html.qz-h5-v2 #page-autoPublish .ap-settings-row .ap-field {
  margin-bottom: 0;
  min-width: 0;
  height: 100%;
}

html.qz-h5-v2 #page-autoPublish .ap-field-stack {
  display: grid;
  gap: 8px;
  font-size: 13px;
  align-content: start;
}

html.qz-h5-v2 #page-autoPublish .ap-field-stack label {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

html.qz-h5-v2 #page-autoPublish .ap-field-stack .rewrite-input {
  flex: 1;
  min-width: 0;
}

html.qz-h5-v2 #page-autoPublish .ap-tt-ad-decl-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 10px;
  align-items: start;
}

html.qz-h5-v2 #page-autoPublish .ap-tt-ad-label {
  min-height: 34px;
}

html.qz-h5-v2 #page-autoPublish .ap-tt-check-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 10px;
  align-items: start;
}

html.qz-h5-v2 #page-autoPublish .ap-tt-check-stack {
  display: grid;
  gap: 8px;
}

html.qz-h5-v2 #page-autoPublish .ap-tt-decl-fold {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

html.qz-h5-v2 #page-autoPublish .ap-tt-decl-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--qz-border, #e8e8e8);
  border-radius: 10px;
  background: #fafbfc;
  color: #333;
  font-size: 13px;
  line-height: 1.35;
  cursor: pointer;
  text-align: left;
}

html.qz-h5-v2 #page-autoPublish .ap-tt-decl-toggle:hover {
  background: #f3f5f8;
  border-color: #d9dee8;
}

html.qz-h5-v2 #page-autoPublish .ap-tt-decl-fold.is-open .ap-tt-decl-toggle {
  border-color: #91caff;
  background: #f0f7ff;
}

html.qz-h5-v2 #page-autoPublish .ap-tt-decl-summary {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  color: #888;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html.qz-h5-v2 #page-autoPublish .ap-tt-decl-caret {
  flex-shrink: 0;
  font-size: 11px;
  color: #999;
  transition: transform 0.15s ease;
}

html.qz-h5-v2 #page-autoPublish .ap-tt-decl-fold.is-open .ap-tt-decl-caret {
  transform: rotate(180deg);
}

html.qz-h5-v2 #page-autoPublish .ap-tt-decl-panel {
  display: grid;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid #e8ecf2;
  border-radius: 10px;
  background: #fff;
  font-size: 12px;
}

html.qz-h5-v2 #page-autoPublish .ap-tt-decl-panel[hidden] {
  display: none !important;
}

html.qz-h5-v2 #page-autoPublish .ap-tt-decl-panel label {
  font-size: 12px;
  line-height: 1.35;
}

html.qz-h5-v2 #page-autoPublish .ap-tt-decl-panel .ap-field-hint {
  margin-top: 2px;
  font-size: 10px;
}

html.qz-h5-v2 #page-autoPublish .ap-field {
  margin-bottom: 10px;
}

html.qz-h5-v2 #page-autoPublish .ap-field-label {
  font-size: 13px;
  margin-bottom: 4px;
}

html.qz-h5-v2 #page-autoPublish .ap-field-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

html.qz-h5-v2 #page-autoPublish .ap-field-row .rewrite-input {
  flex: 1;
  min-width: 0;
}

html.qz-h5-v2 #page-autoPublish .ap-field-sep {
  color: #999;
  flex-shrink: 0;
}

html.qz-h5-v2 #page-autoPublish .ap-field-hint {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
  line-height: 1.45;
}

html.qz-h5-v2 #page-autoPublish .ap-cat-box {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 13px;
  max-height: 120px;
  overflow: auto;
}

html.qz-h5-v2 #page-autoPublish .ap-cat-full {
  margin-top: 4px;
  margin-bottom: 12px;
}

html.qz-h5-v2 #page-autoPublish .ap-field-grid {
  display: grid;
  gap: 8px;
  font-size: 13px;
}

html.qz-h5-v2 #page-autoPublish .ap-run-btn {
  margin-top: 10px;
  width: 100%;
}

html.qz-h5-v2 #page-autoPublish .ap-footnote {
  margin-top: 10px;
  font-size: 12px;
  color: #999;
  line-height: 1.6;
}

html.qz-h5-v2 body.desk-mode #page-autoPublish .ap-page-card,
html.qz-h5-v2 body.desk-mode #page-autoPublish .card {
  max-width: min(920px, calc(100% - 32px));
}

@media (max-width: 680px) {
  html.qz-h5-v2 #page-autoPublish .ap-settings-row {
    grid-template-columns: 1fr;
  }
}

html.qz-h5-v2 #apJobList a {
  color: var(--qz-accent) !important;
}

html.qz-h5-v2 .creator-detail-head {
  background: var(--qz-black) !important;
}

/* ══════════════ 悬浮 Tab ══════════════ */
html.qz-h5-v2 .tab-bar {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  max-width: 390px;
  margin: 0 auto;
  height: var(--qz-tab-h);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
  z-index: 70;
  padding-bottom: 0;
}

html.qz-h5-v2 .tab-item {
  color: var(--qz-muted);
  cursor: pointer;
}

html.qz-h5-v2 .tab-item.active {
  color: var(--qz-accent);
}

html.qz-h5-v2 .tab-icon svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
}

html.qz-h5-v2 .tab-label {
  font-size: 10px;
  font-weight: 500;
}

html.qz-h5-v2 .tab-item.active .tab-label {
  font-weight: 600;
}

/* 桌面端 */
html.qz-h5-v2:not(.mp-app) body.desk-mode #page-home.active .qz-home-shell {
  display: none !important;
}

html.qz-h5-v2:not(.mp-app) body.desk-mode #page-home.active .mp-home-shell {
  display: none !important;
}

html.qz-h5-v2:not(.mp-app) body.desk-mode .desk-sidebar {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 40;
}

html.qz-h5-v2:not(.mp-app) body.desk-mode .desk-topbar {
  display: flex !important;
  position: fixed;
  right: 0;
  z-index: 39;
}

html.qz-h5-v2 body.desk-mode #mainTabBar,
html.qz-h5-v2 body.desk-mode .tab-bar {
  display: none !important;
}

html.qz-h5-v2 body.desk-mode .status-bar,
html.qz-h5-v2 body.desk-mode .nav-bar {
  display: none !important;
}

html.qz-h5-v2 .desk-sidebar {
  background: var(--qz-surface);
}

/* ═══════════════════════════════════════════════════════════
   桌面端 Dashboard — 完整布局系统
   ═══════════════════════════════════════════════════════════ */

html.qz-h5-v2 body.desk-mode {
  display: block !important;
  padding: 0 !important;
  min-height: 100vh;
  align-items: stretch !important;
  justify-content: stretch !important;
  background: var(--qz-paper);
  font-family: var(--qz-font-body);
}

html.qz-h5-v2 body.desk-mode .phone {
  margin-left: calc(var(--desk-sidebar-w) + var(--desk-main-gap)) !important;
  margin-top: 56px;
  height: calc(100vh - 56px);
  background: var(--qz-paper);
  max-width: none;
  width: auto;
  box-shadow: none;
  padding-right: var(--desk-page-x);
  padding-left: 8px;
  box-sizing: border-box;
}

/* 文章库锁定时不能被 article-lock 的 height:100% 顶破，否则列表无法下滑 */
html.qz-h5-v2 body.desk-mode.article-lock .phone,
html.qz-h5-v2.article-lock body.desk-mode .phone {
  height: calc(100vh - 56px) !important;
  max-height: calc(100vh - 56px) !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

html.qz-h5-v2 body.desk-mode .content {
  background: var(--qz-paper);
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

html.qz-h5-v2 body.desk-mode.article-lock .content,
html.qz-h5-v2.article-lock body.desk-mode .content {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: 100% !important;
  overflow: hidden !important;
}

html.qz-h5-v2 body.desk-mode #page-article.active {
  padding: 0;
  background: #f5f8ff !important;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  max-height: 100%;
}

html.qz-h5-v2 body.desk-mode.article-lock #page-article.active,
html.qz-h5-v2.article-lock body.desk-mode #page-article.active {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

html.qz-h5-v2 body.desk-mode #page-article .article-layout {
  flex: 1 1 auto;
  min-height: 0;
}

html.qz-h5-v2 body.desk-mode.article-lock #page-article .article-layout,
html.qz-h5-v2.article-lock body.desk-mode #page-article .article-layout {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

html.qz-h5-v2 body.desk-mode #page-article .article-main {
  overflow-y: auto !important;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

html.qz-h5-v2 body.desk-mode.article-lock #page-article .article-main,
html.qz-h5-v2.article-lock body.desk-mode #page-article .article-main {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

html.qz-h5-v2 .desk-sidebar {
  width: var(--desk-sidebar-w);
  padding: 24px 16px 32px;
  background: #fafafa;
  border-right: 1px solid #eceae6;
  overflow: hidden;
}

html.qz-h5-v2 .desk-nav {
  overflow: auto;
  flex: 1;
  min-height: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html.qz-h5-v2 .desk-nav::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

html.qz-h5-v2 .desk-brand {
  padding: 8px 10px 24px;
  margin-bottom: 8px;
  border-bottom: none;
}

html.qz-h5-v2 .desk-brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #eceae6;
  box-shadow: 0 4px 16px rgba(58, 127, 255, 0.08);
}

html.qz-h5-v2 .desk-brand-logo {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  box-shadow: 0 6px 18px rgba(58, 127, 255, 0.22);
}

html.qz-h5-v2 .desk-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

html.qz-h5-v2 .desk-brand-name {
  font-family: var(--qz-font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--qz-ink);
  letter-spacing: 0.16em;
  line-height: 1.2;
}

html.qz-h5-v2 .desk-brand-sub {
  font-size: 11px;
  font-weight: 650;
  color: #e11d48;
  letter-spacing: 0.04em;
  text-transform: none;
}

html.qz-h5-v2 .desk-nav-label {
  color: #a8a29e;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 20px 14px 8px;
}

html.qz-h5-v2 .desk-nav-item {
  color: #57534e;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 14px;
  gap: 10px;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  text-shadow: none !important;
  font-weight: 500;
  min-height: 0;
  transition: background 0.15s, color 0.15s;
}

html.qz-h5-v2 .desk-nav-item:hover {
  background: rgba(255, 255, 255, 0.72) !important;
  color: var(--qz-ink);
}

html.qz-h5-v2 .desk-nav-item.active {
  background: #fff !important;
  color: var(--qz-brand-blue) !important;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(58, 127, 255, 0.08) !important;
}

html.qz-h5-v2 .desk-nav-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

html.qz-h5-v2 .desk-nav-item[data-desk="home"] .desk-nav-ico {
  color: #3a7fff;
  background: linear-gradient(145deg, #eef4ff 0%, #f3eeff 100%);
}

html.qz-h5-v2 .desk-nav-item[data-desk="article"] .desk-nav-ico {
  color: #7b61ff;
  background: linear-gradient(145deg, #f3eeff 0%, #faf5ff 100%);
}

html.qz-h5-v2 .desk-nav-item[data-desk="rewriteLink"] .desk-nav-ico {
  color: #0ea5e9;
  background: linear-gradient(145deg, #ecfeff 0%, #eff6ff 100%);
}

html.qz-h5-v2 .desk-nav-item[data-desk="rewriteText"] .desk-nav-ico {
  color: #f97316;
  background: linear-gradient(145deg, #fff7ed 0%, #fff1f2 100%);
}

html.qz-h5-v2 .desk-nav-item[data-desk="rewriteFusion"] .desk-nav-ico {
  color: #6366f1;
  background: linear-gradient(145deg, #eef2ff 0%, #f5f3ff 100%);
}

html.qz-h5-v2 .desk-nav-item[data-desk="records"] .desk-nav-ico {
  color: #64748b;
  background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
}

html.qz-h5-v2 .desk-nav-item[data-desk="mine"] .desk-nav-ico {
  color: #ec4899;
  background: linear-gradient(145deg, #fdf2f8 0%, #fff1f2 100%);
}

html.qz-h5-v2 .desk-nav-item[data-desk="autoPublish"] .desk-nav-ico {
  color: #f59e0b;
  background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 100%);
}

html.qz-h5-v2 .desk-nav-item[data-desk="referral"] .desk-nav-ico {
  color: #ef4444;
  background: linear-gradient(145deg, #fff1f2 0%, #ffe4e6 100%);
}

html.qz-h5-v2 .desk-nav-item[data-desk="agent"] .desk-nav-ico {
  color: #8b5cf6;
  background: linear-gradient(145deg, #f5f3ff 0%, #ede9fe 100%);
}

html.qz-h5-v2 .desk-nav-item[data-desk="mpQr"] .desk-nav-ico {
  background: transparent !important;
  border-color: transparent;
  box-shadow: none;
  padding: 0;
}

html.qz-h5-v2 .desk-nav-item[data-desk="mpQr"]:hover .desk-nav-ico,
html.qz-h5-v2 .desk-nav-item[data-desk="mpQr"].active .desk-nav-ico {
  background: transparent !important;
  color: inherit !important;
  box-shadow: 0 4px 14px rgba(7, 193, 96, 0.32);
}

html.qz-h5-v2 .desk-nav-item:hover .desk-nav-ico {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

html.qz-h5-v2 .desk-nav-item.active .desk-nav-ico {
  background: var(--qz-brand-grad) !important;
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(58, 127, 255, 0.32);
}

html.qz-h5-v2 .desk-nav-item.active .desk-nav-ico svg [opacity] {
  opacity: 0.35 !important;
}

html.qz-h5-v2 .desk-nav-ico svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html.qz-h5-v2 .desk-nav-ico svg [fill="currentColor"] {
  fill: currentColor;
  stroke: none;
}

html.qz-h5-v2 .desk-nav-ico-mp svg {
  width: 26px;
  height: 26px;
  stroke: none;
  filter: drop-shadow(0 1px 2px rgba(7, 193, 96, 0.22));
}

html.qz-h5-v2 .desk-nav-ico-mp svg rect {
  fill: #07c160;
}

html.qz-h5-v2 .desk-nav-ico-mp svg path {
  fill: #fff;
  stroke: none;
}

html.qz-h5-v2 .desk-topbar {
  left: var(--desk-sidebar-w);
  height: 56px;
  background: rgba(250, 250, 249, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #eceae6;
  padding: 0 var(--desk-page-x) 0 calc(var(--desk-main-gap) + var(--desk-page-x));
  justify-content: flex-end;
}

html.qz-h5-v2 .desk-topbar-user {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--qz-accent-soft);
  color: var(--qz-accent);
  font-weight: 700;
  cursor: pointer;
  box-shadow: none !important;
  font-size: 14px;
  padding: 0;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

html.qz-h5-v2 .desk-topbar-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

html.qz-h5-v2 .desk-topbar-fallback {
  line-height: 1;
}

/* ── 桌面通用页头 ── */
html.qz-h5-v2 .qz-desk-only {
  display: none;
}

html.qz-h5-v2 body.desk-mode .qz-desk-only {
  display: block;
}

html.qz-h5-v2 body.desk-mode .desk-page-head {
  padding: 44px 0 28px;
  margin-bottom: 8px;
}

html.qz-h5-v2 .desk-page-title {
  font-family: var(--qz-font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--qz-ink);
  margin: 0;
  letter-spacing: 0.04em;
}

html.qz-h5-v2 .desk-page-sub {
  font-size: 14px;
  color: var(--qz-muted);
  margin: 8px 0 0;
}

/* ── 桌面个人中心 ── */
html.qz-h5-v2 body.desk-mode #page-mine {
  background: var(--qz-paper);
}

html.qz-h5-v2 body.desk-mode #page-mine .qz-mine-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 48px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: start;
}

html.qz-h5-v2 body.desk-mode .qz-mine-hero {
  grid-column: 1;
  grid-row: 1 / span 2;
  background: var(--qz-surface);
  color: var(--qz-ink);
  padding: 32px 28px;
  border-radius: var(--qz-r-lg);
  border: 1px solid var(--qz-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

html.qz-h5-v2 body.desk-mode .qz-mine-profile {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

html.qz-h5-v2 body.desk-mode .qz-mine-avatar {
  width: 96px !important;
  height: 96px !important;
  border: 3px solid var(--qz-border);
}

html.qz-h5-v2 body.desk-mode .qz-mine-hero .mine-user-name {
  color: var(--qz-ink);
  font-size: 24px;
}

html.qz-h5-v2 body.desk-mode .qz-mine-hero .mine-user-name.is-guest {
  color: var(--qz-muted) !important;
}

html.qz-h5-v2 body.desk-mode .qz-mine-hero .member-badge {
  background: var(--qz-accent-soft);
  color: var(--qz-accent-deep);
}

html.qz-h5-v2 body.desk-mode .mine-power-line {
  justify-content: center;
  margin-top: 8px;
  padding: 10px 16px;
  background: var(--qz-paper);
  border-radius: var(--qz-r-sm);
  border: 1px solid var(--qz-border);
}

html.qz-h5-v2 body.desk-mode .mine-mp-actions {
  flex-direction: row;
  width: 100%;
  gap: 10px;
  margin-top: 20px;
  align-self: stretch;
}

html.qz-h5-v2 body.desk-mode .mine-mp-btn {
  flex: 1;
  padding: 12px 16px !important;
  font-size: 14px !important;
  border-radius: 10px !important;
  min-height: 0 !important;
  background: var(--qz-brand-grad) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: none !important;
}

html.qz-h5-v2 body.desk-mode .mine-mp-btn-exit {
  background: var(--qz-surface) !important;
  color: var(--qz-ink-2) !important;
  border: 1px solid var(--qz-border) !important;
}

html.qz-h5-v2 body.desk-mode .qz-mine-stats {
  grid-column: 2;
  margin: 0;
  padding: 28px 32px;
  border-radius: var(--qz-r-lg);
}

html.qz-h5-v2 body.desk-mode .qz-mine-stats .mine-stat-num {
  font-family: var(--qz-font-display);
  font-size: 28px;
}

html.qz-h5-v2 body.desk-mode .qz-mine-menu {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
}

html.qz-h5-v2 body.desk-mode .qz-menu-row {
  padding: 20px 18px;
  border: 1px solid var(--qz-border);
  border-radius: var(--qz-r-md);
  background: var(--qz-surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}

html.qz-h5-v2 body.desk-mode .qz-menu-row:hover {
  border-color: rgba(58, 127, 255, 0.35);
  box-shadow: 0 8px 24px rgba(58, 127, 255, 0.08);
}

html.qz-h5-v2 body.desk-mode .qz-menu-row:last-child {
  border-bottom: 1px solid var(--qz-border);
}

html.qz-h5-v2 body.desk-mode .qz-mine-foot {
  grid-column: 1 / -1;
  padding: 16px 0 0;
  text-align: left;
}

html.qz-h5-v2 body.desk-mode #page-mine.active {
  padding: 0 var(--desk-page-x) 0 0;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1100px) {
  html.qz-h5-v2 body.desk-mode .qz-mine-shell {
    grid-template-columns: 1fr;
  }

  html.qz-h5-v2 body.desk-mode .qz-mine-hero {
    grid-row: auto;
  }

  html.qz-h5-v2 body.desk-mode .qz-mine-stats,
  html.qz-h5-v2 body.desk-mode .qz-mine-menu {
    grid-column: 1;
  }

  html.qz-h5-v2 body.desk-mode .qz-mine-menu {
    grid-template-columns: 1fr;
  }
}

html.qz-h5-v2 .wb-wrap {
  padding: 32px var(--desk-page-x) 48px 0;
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

html.qz-h5-v2:not(.mp-app) body.desk-mode #page-home.active .wb-wrap {
  display: block !important;
}

html.qz-h5-v2:not(.mp-app) body.desk-mode #page-home.active .qz-home-shell {
  display: none !important;
}

html.qz-h5-v2 .desk-dash-head {
  padding: 0 0 28px;
  border-bottom: 1px solid #e7e5e4;
  background: transparent;
  border-radius: 0;
  margin-bottom: 28px;
}

html.qz-h5-v2 .desk-dash-intro .wb-title {
  font-family: var(--qz-font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--qz-ink);
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0.06em;
}

html.qz-h5-v2 .desk-dash-intro .wb-sub {
  font-size: 13px;
  color: var(--qz-muted);
  margin: 6px 0 0;
}

html.qz-h5-v2 .desk-dash-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

html.qz-h5-v2 .wb-range--segment {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  margin: 0;
}

html.qz-h5-v2 .wb-range--segment button.active {
  background: var(--qz-brand-grad) !important;
  color: #fff !important;
  font-weight: 600 !important;
}

html.qz-h5-v2 .desk-panel {
  background: #fff;
  border: 1px solid #eceae6;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

html.qz-h5-v2 .desk-dash-body {
  padding: 0;
}

html.qz-h5-v2 .wb-range--segment button {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--qz-muted) !important;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  min-height: 0 !important;
  text-shadow: none !important;
  cursor: pointer;
  position: relative;
}

html.qz-h5-v2 .wb-range--segment button::after {
  display: none !important;
}

html.qz-h5-v2 .wb-refresh {
  border: 1px solid var(--qz-border) !important;
  background: var(--qz-surface) !important;
  box-shadow: none !important;
  color: var(--qz-ink) !important;
  padding: 10px 18px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  min-height: 0 !important;
  cursor: pointer;
}

html.qz-h5-v2 .wb-refresh:hover {
  border-color: var(--qz-accent) !important;
  color: var(--qz-accent) !important;
  transform: none !important;
  filter: none !important;
}

html.qz-h5-v2 .desk-dash-body {
  padding: 28px 0 48px;
}

html.qz-h5-v2 .desk-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

html.qz-h5-v2 .desk-kpi {
  background: #fff;
  border: 1px solid #eceae6;
  border-radius: 16px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

html.qz-h5-v2 .desk-kpi--lead {
  background: var(--qz-brand-grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 24px rgba(58, 127, 255, 0.22);
}

html.qz-h5-v2 .desk-kpi--lead .desk-kpi-label {
  color: rgba(255, 255, 255, 0.72);
}

html.qz-h5-v2 .desk-kpi--lead .desk-kpi-value {
  color: #fff;
}

html.qz-h5-v2 .desk-kpi--lead .desk-kpi-meta {
  color: rgba(255, 255, 255, 0.62);
}

html.qz-h5-v2 .desk-kpi-label {
  font-size: 13px;
  color: var(--qz-muted);
  letter-spacing: 0.02em;
}

html.qz-h5-v2 .desk-kpi-value {
  font-family: var(--qz-font-display);
  font-size: 36px;
  font-weight: 600;
  line-height: 1;
  color: var(--qz-ink);
}

html.qz-h5-v2 .desk-kpi-meta {
  font-size: 12px;
  color: var(--qz-muted);
  line-height: 1.5;
}

html.qz-h5-v2 .desk-panel {
  background: var(--qz-surface);
  border: 1px solid var(--qz-border);
  border-radius: var(--qz-r-lg);
  padding: 24px 26px;
  margin-bottom: 20px;
  box-shadow: none !important;
}

html.qz-h5-v2 .desk-panel--chart {
  margin-bottom: 20px;
}

html.qz-h5-v2 .desk-panel-title {
  font-family: var(--qz-font-display);
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: var(--qz-ink);
}

html.qz-h5-v2 .desk-panel-head {
  margin-bottom: 16px;
}

html.qz-h5-v2 .desk-chart-wrap .wb-chart {
  height: 260px;
}

html.qz-h5-v2 .desk-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

html.qz-h5-v2 .desk-split .desk-panel {
  margin-bottom: 0;
}

html.qz-h5-v2 .desk-bar-row {
  display: grid;
  grid-template-columns: 88px 1fr 36px;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  color: var(--qz-ink-2);
  padding: 8px 0;
}

html.qz-h5-v2 .desk-bar-track {
  height: 8px;
  background: var(--qz-paper);
  border-radius: 99px;
  overflow: hidden;
}

html.qz-h5-v2 .desk-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--qz-accent);
}

html.qz-h5-v2 .desk-bar-fill--blue {
  background: #3b82f6;
}

html.qz-h5-v2 .desk-bar-fill--red {
  background: #ef4444;
}

html.qz-h5-v2 .desk-bar-num {
  text-align: right;
  font-weight: 600;
  color: var(--qz-ink);
}

html.qz-h5-v2 .wb-login-tip button {
  background: var(--qz-accent) !important;
  border: none !important;
  box-shadow: none !important;
  color: #fff !important;
  border-radius: 10px !important;
  padding: 12px 24px !important;
}

/* ═══════════════════════════════════════════════════════════
   登录页 — 全屏双栏
   ═══════════════════════════════════════════════════════════ */

html.qz-h5-v2 #authModal.qz-auth-screen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2000 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 12, 28, 0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html.qz-h5-v2 #authModal.qz-auth-screen.active {
  display: flex !important;
}

html.qz-h5-v2 .qz-auth-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  width: min(960px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 40px 80px rgba(22, 36, 86, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

html.qz-h5-v2 .qz-auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #667085;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

html.qz-h5-v2 .qz-auth-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 36px;
  background:
    radial-gradient(ellipse 90% 70% at 50% 20%, rgba(255, 255, 255, 0.9), transparent),
    linear-gradient(160deg, #eef4ff 0%, #f3eeff 48%, #faf8ff 100%);
  text-align: center;
  overflow: hidden;
}

html.qz-h5-v2 .qz-auth-hero-glow {
  position: absolute;
  inset: auto -20% -30% -20%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(123, 97, 255, 0.18), transparent 70%);
  pointer-events: none;
}

html.qz-h5-v2 .qz-auth-logo {
  position: relative;
  z-index: 1;
  width: 120px;
  height: 120px;
  border-radius: 28px;
  object-fit: cover;
  filter: drop-shadow(0 16px 32px rgba(58, 127, 255, 0.28));
}

html.qz-h5-v2 .qz-auth-brand-name {
  position: relative;
  z-index: 1;
  margin: 16px 0 0;
  font-family: var(--qz-font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: #1a2a5e;
}

html.qz-h5-v2 .qz-auth-hero-lead {
  position: relative;
  z-index: 1;
  margin: 20px 0 28px;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: #667085;
}

html.qz-h5-v2 .qz-auth-features {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

html.qz-h5-v2 .qz-auth-features li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(58, 127, 255, 0.12);
  font-size: 12px;
  color: #475467;
  backdrop-filter: blur(8px);
}

html.qz-h5-v2 .qz-auth-feat-ico {
  color: var(--qz-brand-purple);
  font-size: 11px;
}

html.qz-h5-v2 .qz-auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px 48px;
  background: #fff;
}

html.qz-h5-v2 .qz-auth-panel-head {
  margin-bottom: 32px;
}

html.qz-h5-v2 .qz-auth-title {
  font-family: var(--qz-font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--qz-ink);
  margin: 0 0 8px;
  letter-spacing: 0.06em;
}

html.qz-h5-v2 .qz-auth-sub {
  margin: 0;
  font-size: 14px;
  color: var(--qz-muted);
}

html.qz-h5-v2 .qz-auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

html.qz-h5-v2 .qz-auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

html.qz-h5-v2 .qz-auth-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--qz-ink-2);
}

html.qz-h5-v2 .qz-auth-input,
html.qz-h5-v2 #authModal .rewrite-input {
  width: 100% !important;
  margin: 0 !important;
  padding: 14px 16px !important;
  border: 1px solid var(--qz-border) !important;
  border-radius: 12px !important;
  background: #fafafa !important;
  font-size: 15px !important;
  box-shadow: none !important;
  transition: border-color 0.15s, box-shadow 0.15s;
}

html.qz-h5-v2 .qz-auth-input:focus,
html.qz-h5-v2 #authModal .rewrite-input:focus {
  outline: none;
  border-color: var(--qz-brand-blue) !important;
  box-shadow: 0 0 0 3px rgba(58, 127, 255, 0.14) !important;
  background: #fff !important;
}

html.qz-h5-v2 .qz-auth-error {
  padding: 10px 14px;
  border-radius: 10px;
  background: #fef2f2;
  color: #dc2626;
  font-size: 13px;
  line-height: 1.5;
}

html.qz-h5-v2 .qz-auth-submit {
  width: 100% !important;
  margin: 8px 0 0 !important;
  padding: 16px !important;
  border: none !important;
  border-radius: 14px !important;
  background: var(--qz-brand-grad) !important;
  box-shadow: 0 12px 28px rgba(58, 127, 255, 0.32) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em;
}

html.qz-h5-v2 .qz-auth-submit:hover {
  filter: brightness(1.04);
}

html.qz-h5-v2 .qz-auth-switch {
  margin: 4px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--qz-muted);
}

html.qz-h5-v2 .qz-auth-switch a {
  color: var(--qz-brand-blue);
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}

html.qz-h5-v2 .qz-auth-panel--wx-only {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 40px 44px;
}

html.qz-h5-v2 .qz-auth-panel--wx-only .qz-auth-panel-head {
  margin-bottom: 20px;
  width: 100%;
}

html.qz-h5-v2 .qz-auth-wx {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
}

html.qz-h5-v2 .qz-auth-wx-qr {
  width: 300px;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

html.qz-h5-v2 .qz-auth-wx-qr iframe {
  width: 300px !important;
  height: 420px !important;
  max-width: none !important;
  margin: 0;
  border: 0;
}

html.qz-h5-v2 .qz-auth-wx-hint {
  font-size: 13px;
  color: #667085;
  margin: 0;
}

html.qz-h5-v2 .qz-auth-wx-unavailable {
  margin: 8px 0 0;
  font-size: 13px;
  color: #98a2b3;
  line-height: 1.6;
}

html.qz-h5-v2 .qz-auth-wx-btn {
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  background: #07c160;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

html.qz-h5-v2 .qz-auth-wx-btn:hover {
  background: #06ad56;
}

html.qz-h5-v2 .qz-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 16px;
  color: #98a2b3;
  font-size: 12px;
}

html.qz-h5-v2 .qz-auth-divider::before,
html.qz-h5-v2 .qz-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e4e7ec;
}

@media (max-width: 768px) {
  html.qz-h5-v2 #authModal.qz-auth-screen {
    padding: 0;
    align-items: stretch;
  }

  html.qz-h5-v2 .qz-auth-shell {
    grid-template-columns: 1fr;
    width: 100%;
    max-height: none;
    height: 100%;
    border-radius: 0;
  }

  html.qz-h5-v2 .qz-auth-hero {
    padding: 32px 24px 24px;
  }

  html.qz-h5-v2 .qz-auth-logo {
    width: 96px;
    height: 96px;
  }

  html.qz-h5-v2 .qz-auth-brand-name {
    font-size: 28px;
  }

  html.qz-h5-v2 .qz-auth-hero-lead {
    margin: 12px 0 16px;
    font-size: 12px;
  }

  html.qz-h5-v2 .qz-auth-features {
    gap: 8px;
  }

  html.qz-h5-v2 .qz-auth-panel {
    padding: 28px 24px 40px;
    flex: 1;
  }

  html.qz-h5-v2 .qz-auth-title {
    font-size: 26px;
  }
}

@media (max-width: 1100px) {
  html.qz-h5-v2 .desk-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  html.qz-h5-v2 .desk-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 899px) {
  html.qz-h5-v2:not(.mp-app) body.desk-mode .desk-sidebar,
  html.qz-h5-v2:not(.mp-app) body.desk-mode .desk-topbar {
    display: none !important;
  }

  html.qz-h5-v2 body.desk-mode .phone {
    margin-left: 0 !important;
    margin-top: 0;
    padding-left: 0;
    padding-right: 0;
  }

  html.qz-h5-v2:not(.mp-app) body.desk-mode #page-home.active .wb-wrap {
    display: none !important;
  }

  html.qz-h5-v2:not(.mp-app) body.desk-mode #page-home.active .qz-home-shell {
    display: block !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.qz-h5-v2 * {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
