/* 手机端紧凑版 v3（仅 <=760px）：一屏多放内容、去重复、收紧留白 */
@media (max-width: 760px) {
  body .wrap { padding-left: 12px; padding-right: 12px; }
  body .section { margin-top: 20px; }

  /* 顶板：单行头部 + 统计横排小字 */
  body .mast-plate { padding: 10px 12px; border-radius: 16px; gap: 6px; }
  body .mast-main { gap: 10px; align-items: center; }
  body .mast-avatar { width: 40px; height: 40px; flex: 0 0 40px; }
  body .mast-title { font-size: 18px; line-height: 1.2; margin: 0; }
  body .mast-sub { font-size: 11.5px; margin: 2px 0 0; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  body .mast-stat { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 4px 0 0; font-size: 11px; }
  body .mast-stat i { display: none !important; }
  body .mast-side { margin-top: 0; padding-top: 6px; border-top: 1px solid rgba(0,0,0,.06); }
  body .mast-logo { width: 44px; }

  /* 首屏：缩标题、入口 2x2 紧凑、去重复指标和封面墙 */
  body .hero { padding-top: 4px; }
  body .hero-title { font-size: 20px; line-height: 1.25; margin: 2px 0 4px; }
  body .hero-desc { font-size: 12.5px; line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  body .hero-actions { gap: 8px; margin-top: 10px; }
  body .ha-card { padding: 9px 10px; gap: 8px; border-radius: 12px; }
  body .ha-txt em { display: none; }
  body .ha-txt b { font-size: 14px; }
  body .hero-metrics, body .hero-wall, body .wall-cap { display: none !important; }

  /* 区块标题：一行 */
  body .section-head { gap: 8px; align-items: center; margin-bottom: 8px; }
  body .section-copy h2 { font-size: 17px; margin: 0; }
  body .section-copy p { display: none; }
  body .num-block { width: 28px; height: 28px; flex: 0 0 28px; font-size: 13px; border-radius: 9px; }
  body .count-pill { font-size: 11px; padding: 2px 8px; white-space: nowrap; }

  /* 功能介绍：两列紧凑，只留标题+两行说明，去掉大粉按钮 */
  body .feature-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  body .feature-grid > .fcard:nth-child(odd):last-child { grid-column: 1 / -1; }
  body .fcard { padding: 10px; border-radius: 12px; }
  body .fcard h3 { font-size: 14px; margin: 4px 0 0; }
  body .fcard > p { font-size: 11.5px; line-height: 1.45; margin: 3px 0 0; -webkit-line-clamp: 2; }
  body a.fcard::after { display: none !important; }

  /* 查询 Tab：3 列、低高度、无副标题 */
  body .query-shell { padding: 8px; border-radius: 16px; }
  body .tabs { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; padding: 0; }
  body .tab { min-height: 34px; padding: 4px; align-items: center; text-align: center; border-radius: 10px; }
  body .tab span { font-size: 13px; white-space: nowrap; }
  body .tab em { display: none; }

  body .col-filters { padding: 8px; gap: 6px; }
  body .col-filter-row { flex-direction: row; align-items: center; gap: 8px; }
  body .col-filter-label { flex: 0 0 28px; padding: 0; font-size: 11.5px; }
  body .col-filters { overflow: hidden; }
  body .col-filter-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 1px 0 2px; margin-right: 0; }
  body .col-filter-chips::-webkit-scrollbar { display: none; }
  body .col-filter-chips > * { flex: 0 0 auto; white-space: nowrap; }
  body .col-filter-row .sel, body .col-filter-row select { flex: 1 1 auto; min-width: 0; width: 100%; height: 32px; padding: 0 10px; border: 1px solid #dcd7e6; border-radius: 8px; background: #fff; font-size: 13px; }

  /* 账号 / 月卡 */
  body .me-grid { gap: 8px; }
  body .me-card { padding: 12px; border-radius: 16px; }
  body .me-block-title { margin: 10px 0 6px; font-size: 13px; }
  body .mcard-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  body .mcard-benefits li { padding: 8px 10px; }
  body .mcard-benefits b { font-size: 13px; line-height: 1.3; }
  body .mcard-benefits span { font-size: 11px; line-height: 1.4; margin-top: 2px; }

  /* ===== 居中强调 ===== */
  body .mast-main { flex-direction: column; text-align: center; gap: 4px; }
  body .mast-main > div, body .mast-side { text-align: center; }
  body .mast-stat { justify-content: center; }
  body .mast-side { display: flex; justify-content: center; align-items: center; }
  body .mast-sub { text-align: center; }
  body .hero, body .hero-copy { text-align: center; }
  body .hero-title, body .hero-desc { text-align: center; margin-left: auto; margin-right: auto; }
  body .ha-card { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; }
  body .ha-txt { text-align: center; }
  body .section-head { flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 4px; }
  body .section-copy { text-align: center; }
  body .fcard { text-align: center; display: flex; flex-direction: column; align-items: center; }
  body .fcard h3, body .fcard > p { text-align: center; }
  body .me-card, body .me-block-title { text-align: center; }
  body .mcard-benefits li { text-align: center; }
  body .query-shell .empty, body .login-gate { text-align: center; }

  body .mast-side, body .mast-side > * { margin-left: auto; margin-right: auto; justify-content: center; }
  body .mast-logo { display: block; margin: 0 auto; }
  body .count-pill { margin: 0 auto; }
  body .section-head { position: static; }
  body .section { margin-top: 12px; }
  body .hero { margin-bottom: 0; padding-bottom: 0; }
  body .nav, body .nav.wrap { display: flex; justify-content: center; }
  body .nav button, body .nav .menu-btn { margin: 0 auto; }

  /* ===== 能一行就一行 ===== */
  body .mast-plate { position: relative; }
  body .mast-main { flex-direction: row; justify-content: center; align-items: center; gap: 10px; text-align: left; }
  body .mast-main > div { text-align: left; min-width: 0; }
  body .mast-title, body .mast-sub { text-align: left; }
  body .mast-side { position: absolute; top: 8px; right: 10px; width: auto; padding: 0; border: 0; margin: 0; }
  body .mast-logo { width: 34px; }
  body .mast-stat { white-space: nowrap; gap: 2px 8px; font-size: 10.5px; }
  body .section-head { flex-direction: row; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 8px; }
  body .section-copy { flex: 0 1 auto; }
  body .count-pill { margin: 0; }
  body .hero-actions { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px; }
  body .ha-card { padding: 8px 2px; gap: 2px; }
  body .ha-txt b { font-size: 12px; white-space: nowrap; }
  body .ha-ico, body .ha-card > span:first-child { font-size: 16px; }
  body .tab span { font-size: 12.5px; }

  /* ===== 精修 ===== */
  /* 区块之间留一点呼吸：统一 16px，标题与内容 8px */
  body .section { margin-top: 16px; }
  body .section-head { margin-bottom: 8px; }
  /* 功能卡：序号与标题同行并排，说明靠左便于阅读，3 行不截半句 */
  body .fcard { align-items: stretch; text-align: left; padding: 10px 11px; }
  body .fcard h3, body .fcard > p { text-align: left; }
  body .fcard > p { -webkit-line-clamp: 3; font-size: 11.5px; line-height: 1.5; color: #6b6780; }
  body .fcard h3 { font-size: 14px; margin: 5px 0 0; }
  body .fcard .num, body .fcard .fnum { align-self: flex-start; }
  /* 查询 Tab */
  body .tabs { gap: 6px; }
  body .tab { min-height: 36px; font-weight: 700; }
  /* 搜索行：输入框 + 按钮同高 */
  body .field.grow { min-width: 0; }
  body .field input { height: 40px; font-size: 14px; }
  body .btn, body .btn-primary { height: 40px; padding: 0 16px; font-size: 14px; }
  /* 账号卡：头像 | 昵称+QQ | Rating 三栏一行 */
  body .me-profile { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; align-items: center; gap: 10px; text-align: left; }
  body .me-avatar { width: 52px; height: 52px; margin: 0; }
  body .me-profile-text { text-align: left; min-width: 0; }
  body .me-name { font-size: 17px; margin: 0; text-align: left; }
  body .me-sub { font-size: 11.5px; text-align: left; line-height: 1.4; }
  body .me-auth-note { font-size: 11px; text-align: left; margin-top: 2px; }
  body .me-rating { text-align: right; }
  body .me-rating b { font-size: 20px; }
  body .me-points .me-block-title { display: flex; justify-content: space-between; align-items: center; text-align: left; }
  /* 月卡表单：全部左对齐成一条线，提示小字居中不抢眼 */
  body .me-mcard, body .me-mcard .info-sec { text-align: left; }
  body .me-mcard input, body .me-mcard select, body .me-mcard textarea { height: 38px; font-size: 14px; }
  body .me-mcard .me-block-title { text-align: left; margin: 8px 0 6px; }
  body .mcard-benefits li b, body .mcard-benefits li span { text-align: center; display: block; }
  body .mcard-benefits li { display: flex; flex-direction: column; justify-content: center; min-height: 58px; }

  /* 功能卡：序号 + 标题同一行 */
  body .fcard { display: grid; grid-template-columns: auto 1fr; column-gap: 6px; align-items: center; align-content: start; }
  body .fcard-top { display: contents; }
  body .fcard-top .tag { display: none; }
  body .fcard h3 { margin: 0; align-self: center; }
  body .fcard > p { grid-column: 1 / -1; margin: 5px 0 0; }
  body .fcard .fcmd { display: none; }
  body .fnum { width: 22px; height: 22px; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }

  /* ===== 顶部整体左对齐（顶板/导航/首屏），下方区块保持居中 ===== */
  body .mast-plate { position: static; text-align: left; }
  body .mast-main { flex-direction: row; justify-content: flex-start; align-items: center; text-align: left; gap: 10px; }
  body .mast-main > div, body .mast-title, body .mast-sub { text-align: left; }
  body .mast-stat { justify-content: flex-start; }
  body .mast-side { position: static; display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 8px; width: 100%; margin: 0; padding: 6px 0 0; border-top: 1px solid rgba(0,0,0,.06); }
  body .mast-side, body .mast-side > * { margin-left: 0; margin-right: 0; }
  body .mast-logo { width: 40px; margin: 0; display: block; }
  body .nav, body .nav.wrap { justify-content: flex-start; }
  body .nav button, body .nav .menu-btn { margin: 0; }
  body .hero, body .hero-copy, body .hero-title, body .hero-desc { text-align: left; margin-left: 0; margin-right: 0; }
  body .hero-actions { grid-template-columns: 1fr 1fr; gap: 8px; }
  body .ha-card { flex-direction: row; align-items: center; justify-content: flex-start; text-align: left; gap: 8px; padding: 8px 10px; }
  body .ha-txt { text-align: left; }
  body .ha-txt b { font-size: 13px; }

  /* ===== 下方区块：账号 / 月卡 / 查询 全部居中 ===== */
  body .me-card, body .me-mcard, body .me-mcard .info-sec, body .query-shell, body .panel { text-align: center; }
  body .me-profile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
  body .me-profile-text, body .me-name, body .me-sub, body .me-auth-note { text-align: center; justify-content: center; }
  body .me-name { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
  body .me-rating { text-align: center; display: flex; align-items: baseline; justify-content: center; gap: 6px; }
  body .me-points .me-block-title, body .me-block-title { display: flex; justify-content: center; align-items: center; gap: 8px; text-align: center; }
  body .me-point-row { justify-content: space-between; }
  body .me-mcard .me-block-title, body .mcard-block, body .mcard-form, body .mcard-hint, body .mcard-msg, body .mcard-status { text-align: center; }
  body .mcard-months, body .mcard-plans, body .mcard-badge-line, body .mcard-qq-line { justify-content: center; text-align: center; }
  /* 月卡档位：固定两列等宽网格，四档 2×2 居中且同宽（避免 flex 换行后最后一档宽度/对齐异常） */
  body .mcard-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    justify-content: center;
  }
  body .mcard-plans .chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    padding: 0 6px;
  }
  body .pay-method, body .pay-method-head { text-align: center; justify-content: center; }
  body .me-mcard input, body .me-mcard select, body .me-mcard textarea { text-align: center; }
  body .me-mcard .btn, body .me-mcard .btn-primary { margin-left: auto; margin-right: auto; }

  /* 收尾：头像小一点、Rating 居中、订单行居中、积分行保持两端对齐 */
  body .me-avatar { width: 56px; height: 56px; margin: 0 auto; }
  body .me-rating { width: 100%; justify-content: center; margin-top: 2px; }
  body .me-rating span { order: 0; }
  body .me-rating b { font-size: 22px; }
  body .me-point-row { text-align: left; }
  body .mcard-order { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 4px; text-align: left; }
  body .mcard-order > div { text-align: left; line-height: 1.5; }
  body .mcard-badge-line { display: flex; align-items: center; gap: 8px; }
  body .mcard-badge-line input { text-align: center; }
  body .mcard-orders { margin-top: 8px; }
  body .mcard-benefits li { text-align: center; }
  body .mcard-benefits b { white-space: normal; }

  /* ===== 月卡区强制居中（覆盖旧规则） ===== */
  body .me-mcard .mcard-block, body .me-mcard .mcard-form, body .me-mcard label { text-align: center !important; }
  body .me-mcard .me-block-title { display: flex !important; flex-direction: column; align-items: center !important; justify-content: center !important; text-align: center !important; gap: 2px; }
  body .me-mcard .me-block-title span { margin: 0; font-size: 11px; }
  body .me-mcard label { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; font-size: 12px; }
  body .me-mcard label input { width: 100%; text-align: center; }
  body .me-mcard .mcard-plans { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: center !important; }
  body .me-mcard .mcard-months { display: flex !important; flex-direction: column; align-items: center !important; justify-content: center; gap: 6px; text-align: center; }
  body .me-mcard .mcard-months label { width: 50%; min-width: 120px; }
  body .me-mcard .mcard-qq-line { display: flex !important; flex-direction: column; align-items: center !important; justify-content: center; gap: 2px; text-align: center; }
  body .me-mcard .mcard-hint, body .me-mcard .mcard-msg, body .me-mcard .promo, body .me-mcard .mcard-promo { text-align: center !important; }
  /* CO-1201-104: #monthcard 在 <=760px 是两列 grid，折扣卡未列入「后续块占满两列」，
     只落在第 1 列导致本体左靠；text-align:center 只居中文字，卡片本身不会居中。 */
  #monthcard.me-mcard > .mcard-promo { grid-column: 1 / -1; width: 100%; }
  body .me-mcard .mcard-badge-line { display: flex; justify-content: center; align-items: center; }
  body .me-mcard .mcard-badge-line label { flex: 1 1 auto; }
  body .me-mcard .mcard-status { display: flex; justify-content: center; gap: 16px; }
  body .me-mcard .mcard-status > div { text-align: center; }

  body .me-mcard .mcard-qq-line em { margin: 0 !important; text-align: center !important; align-self: center; font-style: normal; }
  body .me-mcard .mcard-qq-line > * { margin-left: 0 !important; margin-right: 0 !important; }

  /* ===== 收尾修正：筛选条不再溢出卡片，功能卡说明三行 ===== */
  body .col-filters { overflow: hidden; border-radius: 16px; }
  body .col-filter-row { overflow: hidden; }
  body .col-filter-chips { margin-right: 0 !important; padding-right: 0 !important; max-width: 100%; }
  body .fcard > p { -webkit-line-clamp: 3 !important; display: -webkit-box !important; -webkit-box-orient: vertical !important; overflow: hidden; }

  /* ===== 导航按钮：改成右下角常驻悬浮圆钮 ===== */
  body .nav, body .nav.wrap {
    position: fixed !important;
    left: auto !important; right: 14px !important;
    top: auto !important; bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    margin: 0 !important; padding: 0 !important;
    width: auto !important; height: auto !important;
    background: none !important; border: 0 !important; box-shadow: none !important;
    z-index: 80 !important;
    display: block !important;
  }
  body .nav-burger {
    display: inline-flex !important;
    width: 50px; height: 50px; padding: 0 14px; gap: 4px;
    border-radius: 50%;
    border: 1.5px solid rgba(227, 231, 242, 0.95);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 26px rgba(86, 70, 130, 0.20);
  }
  body .nav-burger-bar { height: 2px; background: var(--ink); }
  /* 悬浮钮不挡最后一块内容 */
  body main.wrap { padding-bottom: 84px; }

  /* ===== 首屏再收：四个入口卡压成一行，让功能面板更早上来 ===== */
  body .hero-actions { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 6px !important; }
  body .ha-card {
    flex-direction: column !important; align-items: center !important; justify-content: center !important;
    text-align: center !important; gap: 2px !important; padding: 8px 2px !important; border-radius: 12px !important;
  }
  body .ha-txt { text-align: center !important; }
  body .ha-txt b { font-size: 12px !important; white-space: nowrap; }
  body .ha-txt em { display: none !important; }
  body .ha-ico { font-size: 15px !important; line-height: 1; }

  /* ===== 导航钮：首屏收纳，向下滚动后才浮出 ===== */
  body .nav-burger { transition: opacity .18s ease, transform .18s ease !important; }
  body .nav-burger--hidden { opacity: 0 !important; transform: translateY(10px) scale(.9) !important; pointer-events: none !important; }

  /* ===== 乐曲查询：手机端把「大图卡片」改成紧凑列表行（PC 不受影响） ===== */
  body .cover-grid { display: flex !important; flex-direction: column; gap: 8px !important; margin-top: 10px; }
  body .cover-card {
    display: flex !important; align-items: center; gap: 10px;
    padding: 8px !important; border-radius: 14px; border-width: 1.5px !important;
    text-align: left !important; box-shadow: 0 2px 8px rgba(86, 70, 130, .06) !important;
  }
  body .cover-card:active { transform: scale(.985) !important; }
  body .cover-imgs {
    flex: 0 0 56px; width: 56px; height: 56px;
    aspect-ratio: auto !important; border-radius: 10px; overflow: hidden;
  }
  body .cover-imgs img { border-radius: 10px; }
  body .cover-badge {
    top: 3px; left: 3px; padding: 1px 4px; border-radius: 5px;
    font-size: 9px !important; line-height: 1.35; letter-spacing: 0;
  }
  body .cover-cap {
    flex: 1 1 auto; min-width: 0; padding: 0 !important;
    border-top: 0 !important; background: none !important; text-align: left;
  }
  body .cover-cap b { font-size: 14.5px !important; line-height: 1.35; white-space: nowrap; }
  body .cover-cap span { margin-top: 3px; font-size: 11.5px; color: var(--muted); }
  /* 筛选区在手机端两列排布，标签与控件同一行，省高度 */
  body .fq-grid { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
  body .fq-field { display: flex; flex-direction: column; gap: 3px; }
  body .fq-label { font-size: 10.5px !important; }
  body .fq-select { height: 34px !important; font-size: 12px !important; border-radius: 9px !important; }
  body .fq-field-btn { grid-column: 1 / -1; }
  body .fq-field-btn .fq-reset { width: 100%; height: 34px; }

  /* 搜索行：输入框与按钮同一行，不再各占一行 */
  body .search-row { flex-wrap: nowrap !important; gap: 8px !important; }
  body .search-row .field.grow { flex: 1 1 auto !important; min-width: 0 !important; width: auto !important; }
  body .search-row .btn {
    width: auto !important; flex: 0 0 auto !important;
    height: 40px; padding: 0 14px !important; font-size: 13.5px !important; white-space: nowrap;
  }
  body .list-meta { margin: 12px 2px 8px; font-size: 12px; }
}
