/* ============ app-ui-m v3 · 移动端统一视觉层（独立文件，全站内嵌页通用） ============ */
@media (max-width: 760px) {
  html body {
    -webkit-font-smoothing: antialiased;
    --ui-radius: 18px;
    --ui-radius-sm: 12px;
    --ui-line: rgba(255, 255, 255, .075);
    --ui-dim: rgba(233, 237, 245, .55);
    --ui-accent: #c9f98d;
  }

  html body.next-ui,
  html body {
    background: radial-gradient(120% 60% at 50% 0%, #191d2a 0%, #0f1118 55%, #0b0d12 100%);
    background-attachment: fixed;
  }

  html body main,
  html body .rev-main {
    padding-bottom: 104px;
  }

  /* 标题阶梯 */
  html body h1 {
    font-size: 21px !important;
    line-height: 1.32 !important;
    letter-spacing: -.01em !important;
    font-weight: 700 !important;
  }

  html body h2 {
    font-size: 15.5px !important;
    line-height: 1.4 !important;
    font-weight: 650 !important;
  }

  html body p {
    line-height: 1.6 !important;
  }

  /* 卡片圆角统一（只动容器，不改布局） */
  html body .card,
  html body [class$="-card"] {
    border-radius: var(--ui-radius) !important;
    border-color: var(--ui-line) !important;
    box-shadow: none !important;
  }

  /* 表单控件统一 */
  html body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),
  html body select,
  html body textarea {
    border-radius: var(--ui-radius-sm) !important;
    border: 1px solid rgba(255, 255, 255, .09) !important;
    background: rgba(255, 255, 255, .06) !important;
    min-height: 44px !important;
    font-size: 14px !important;
    box-shadow: none !important;
  }

  html body textarea {
    padding: 11px 13px !important;
    line-height: 1.55 !important;
  }

  html body input:focus,
  html body select:focus,
  html body textarea:focus {
    outline: none !important;
    border-color: rgba(201, 249, 141, .5) !important;
    box-shadow: 0 0 0 3px rgba(201, 249, 141, .1) !important;
  }

  /* 主按钮 */
  html body button[type=submit],
  html body button.primary,
  html body .primary,
  html body button[class*="cta"] {
    border-radius: 12px !important;
    background: linear-gradient(135deg, #d9ff9f, #96d464) !important;
    color: #16220d !important;
    border: 0 !important;
    font-weight: 650 !important;
    min-height: 44px !important;
  }

  /* 分类胶囊 */
  html body .style-tabs,
  html body .market-tabs {
    display: flex !important;
    gap: 7px !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    scrollbar-width: none !important;
  }

  html body .style-tabs button,
  html body .market-tabs button {
    flex: 0 0 auto !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    font-size: 12.5px !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    background: rgba(255, 255, 255, .05) !important;
  }

  html body .style-tabs button.on,
  html body .market-tabs button.on {
    background: var(--ui-accent) !important;
    border-color: var(--ui-accent) !important;
    color: #17230e !important;
    font-weight: 650 !important;
  }

  /* 四栏字段 → 2×2 */
  html body .row:has(> label:nth-child(4)) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    align-items: start !important;
  }

  html body .row > label,
  html body .row input {
    min-width: 0 !important;
  }

  /* 聊天页顶部按钮防溢出 */
  html body.rev-page-chat {
    overflow-x: hidden !important;
  }

  html body.rev-page-chat .chat-quick {
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    gap: 6px !important;
  }

  html body.rev-page-chat .chat-quick button {
    white-space: nowrap !important;
    font-size: 12px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 10px !important;
    flex: 0 0 auto !important;
  }

  /* 英雄区压缩 */
  html body [class*="hero"] {
    border-radius: 20px !important;
  }
}

/* 四栏字段下的重复"一键粘贴"在手机端隐藏，减少噪音 */
@media (max-width:760px){
  html body .row:has(> label:nth-child(4)) .paste-short{display:none!important}
}
/* 手机端英雄区压缩：去掉右侧装饰留白 */
@media (max-width:760px){
  html body [class*="hero"]{padding:16px!important;min-height:0!important}
  html body [class*="hero"] > i,
  html body [class*="hero"] .hero-art,
  html body [class*="hero"] .hero-visual{display:none!important}
  html body [class*="hero"] h1{font-size:20px!important;margin:6px 0 4px!important}
  html body [class*="hero"] p{font-size:12px!important;margin:0!important}
  html body [class*="hero"] .eyebrow,
  html body [class*="hero"] small{font-size:10px!important;letter-spacing:.16em!important}
}
/* 市场页头压缩 */
@media (max-width:760px){
  html body .market-headline{padding:0!important}
  html body .market-headline .rev-heading{
    padding:18px!important;border-radius:20px!important;min-height:0!important;
  }
  html body .market-headline .rev-heading > i{display:none!important}
  html body .market-headline .rev-heading h1{font-size:20px!important;line-height:1.3!important}
  html body .market-headline .rev-heading p{font-size:12px!important;margin-top:4px!important;line-height:1.5!important}
  html body .market-tabs{margin-top:12px!important}
}