/* ============================================================
   云帆液冷展 · 手机端专项样式（V4 / mobile）
   引入：所有中文页面 </head> 前最后引入（覆盖各页内联 <style>）
   断点：≤760 主断点，≤400 微调
   设计口径：
     - 容器内边距 16px，纵向区块节奏 52–56px
     - 标题 25px / 1.34，正文 13.5px / 1.8（PC 的 34–56px 在手机上会挤成三行）
     - 所有可点元素 ≥ 40px，吸底条与回顶按钮留出安全距离
     - 素材按容器等比缩放，不裁切、不变形
   ============================================================ */

@media (max-width: 760px) {

  /* ---------- 1. 容器与纵向节奏 ---------- */
  .wrap { padding: 0 16px; }
  section { padding: 56px 0; scroll-margin-top: 76px; }
  #cities, #catalog, #logos-sec, #teams, #gallery, #value, #booth, #about, #speakers-list { padding: 52px 0; }
  #hero { scroll-margin-top: 0; }

  .kicker { font-size: 11px; letter-spacing: .16em; gap: 8px; }
  .kicker::before { width: 18px; }
  .sec { font-size: 25px; line-height: 1.34; letter-spacing: -.02em; margin-top: 12px; }
  .lead { font-size: 13.5px; line-height: 1.8; margin-top: 12px; max-width: none; }
  .head-row { gap: 16px; }

  /* ---------- 2. 顶栏 ---------- */
  #nav .wrap { gap: 10px; padding: 9px 14px 12px; }
  nav img { height: 34px; }
  .nav-shrink img { height: 30px; }
  nav .nav-seg { padding: 2px; }
  nav .nav-seg a, nav .nav-seg span { font-size: 11px; padding: 6px 8px; }
  /* 手机上不需要「切到 PC 版」，腾出宽度给语言切换与主 CTA */
  nav .nav-seg:first-of-type { display: none; }
  nav .nav-cta { margin-left: auto; }
  nav .btn { padding: 9px 13px; font-size: 12.5px; }

  /* ---------- 3. 首屏 ---------- */
  #hero { min-height: 100svh; padding: 78px 0 44px; align-items: flex-end; }
  #hero .wrap { transform: none; }
  .brands { margin-bottom: 16px; }
  .brands .b-sub { gap: 14px; }
  .brands .b-sub img { height: 38px; }
  .brands .b-sep { height: 26px; }
  #hero h1 { font-size: clamp(26px, 7.4vw, 33px); line-height: 1.36; letter-spacing: 0; }
  #hero h1 span { font-size: 13px; margin-top: 9px; letter-spacing: .04em; }
  .hero-btns { margin-top: 24px; display: flex; gap: 10px; }
  .hero-btns .btn { flex: 1; justify-content: center; padding: 15px 10px; font-size: 15px; }

  /* ---------- 4. 演讲横幅轮转 ---------- */
  .speaker-rail { padding: 24px 0 24px; }
  .speaker-rail .wrap { padding: 0 16px; }
  .sr-head { display: block; margin-bottom: 14px; }
  .sr-title .kicker { font-size: 10.5px; letter-spacing: .12em; margin-bottom: 5px; }
  .sr-title .sec { font-size: 21px; line-height: 1.3; }
  .sr-desc { font-size: 12px; line-height: 1.65; margin-top: 4px; }
  .sr-actions { margin-top: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; width: 100%; }
  .sr-count { flex: none; padding-bottom: 8px; }
  .sr-count b { font-size: 20px; min-width: 30px; }
  .sr-count span { font-size: 12px; }
  .sr-bar { width: 100%; }
  .sr-signup { flex: 1 1 auto; min-width: 0; justify-content: center; padding: 11px 12px; font-size: 13px; white-space: nowrap; }
  .sr-nav { flex: none; gap: 6px; }
  .sr-btn { width: 38px; height: 38px; }
  .sr-btn svg { width: 16px; height: 16px; }
  /* 86vw 在窄屏上会被两侧 padding 挤掉，改成按视口直接算，卡片居中、两侧露边 */
  .sr-track { --srw: 87vw; gap: 12px; padding: 4px calc(50% - 43.5vw) 24px; margin-bottom: -14px; }
  .sr-slide { border-radius: 10px; }
  .sr-zoom { right: 8px; bottom: 8px; padding: 5px 9px; font-size: 10.5px; }

  /* ---------- 5. 三城联动 ---------- */
  /* 落地页顶部切换条：标签单独一行太占高度，三城按钮已能自解释 */
  .city-switch { margin-top: 0; }
  .city-switch .cs-label { display: none; }
  .city-switch a { padding: 11px 8px; font-size: 13px; }
  /* 三城改为三张等宽卡片，一屏看完，避免长条堆叠显得杂乱 */
  .cities-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 18px 6px 0; border-top: 0; }
  .city-card { min-width: 0; padding: 14px 8px 12px; border: 1px solid var(--line2); border-radius: 10px; background: #fff; box-shadow: 0 8px 22px rgba(19,42,99,.07); }
  .city-card + .city-card { border-left: 1px solid var(--line2); border-top: 0; }
  .city-card.is-now { border-color: #f2c3a3; background: linear-gradient(180deg,#fff8f4,#fff); }
  .cc-top { display: block; }
  .c-city { display: block; font-size: 18px; line-height: 1.2; }
  .c-city small { display: block; font-size: 8px; margin: 2px 0 0; letter-spacing: .12em; }
  .c-flag { display: inline-block; font-size: 8px; padding: 2px 6px; margin-top: 6px; }
  .c-date { font-size: 13px; margin-top: 10px; white-space: nowrap; letter-spacing: -.03em; }
  .c-stats { display: block; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
  .c-stats span { display: block; font-size: 9px; line-height: 1.6; gap: 0; }
  .c-stats b { font-size: 12px; margin-right: 4px; }
  .c-go { display: block; padding-top: 10px; font-size: 10px; white-space: nowrap; }
  .c-go i { float: right; font-style: normal; }
  .cities-note { font-size: 10px; line-height: 1.6; margin-top: 14px; }

  /* ---------- 6. 产品领域环形转盘 ---------- */
  /* 环上圆圈放大 1.5 倍：44→64px；16 个节点要留间距，外圆同步 112→156px */
  .orbit { --size: 380px; --r: 156px; --node: 64px; --core: 150px; --spin: 56s; margin-top: 16px; }
  .orbit-core { padding: 10px; }
  .orbit-core .core-img { height: 44%; }
  .core-caption { margin-top: 5px; padding: 0 4px; }
  .core-n { font-size: 12px; line-height: 1.2; }
  .core-d { font-size: 8.5px; line-height: 1.45; max-width: 16ch; margin-top: 3px; }
  .orbit-readout { margin-top: 14px; padding: 8px 12px; min-height: 34px; font-size: 10px; gap: 6px; }
  .orbit-readout .ro-name { font-size: 11.5px; }
  .orbit-readout .ro-desc { font-size: 10px; }
  .orbit-keywords { gap: 5px; margin-top: 10px; }
  .orbit-keywords span { font-size: 9.5px; padding: 4px 8px; }
  .cat-foot { margin-top: 14px; font-size: 10.5px; }

  /* ---------- 7. 合作企业（四行滚动，每行露出 3 个） ---------- */
  .logo-chip { width: 114px; height: 70px; padding: 8px 10px; border-radius: 8px; }
  .logo-chip img { max-height: 40px; }
  .logo-chip img.tall { max-height: 48px; max-width: 70px; }
  .logo-chip .lt { font-size: 14px; }
  .marquee { margin-top: 22px; }
  .marquee .track { gap: 10px; }
  .marquee + .marquee { margin-top: 10px; }
  .logos-more { margin-top: 22px; }
  .logos-more .btn { padding: 12px 26px; font-size: 13.5px; }

  /* ---------- 8. 前沿论坛 / 特邀买家 ---------- */
  .vip-hero { margin-top: 24px; }
  .vip-hero .vh-big { font-size: 26px; line-height: 1.42; letter-spacing: -.01em; }
  .vip-hero .vh-big em { padding: .02em .12em; }
  .vip-hero p { font-size: 13.5px; line-height: 1.85; margin-top: 14px; }
  .vip-strip { margin-top: 24px; }
  .vip-strip > div { padding: 12px 0 8px; }
  .vip-strip .vs-num { font-size: 20px; margin-bottom: 6px; }
  .vip-strip .vs-num::after { width: 20px; height: 2px; margin-top: 7px; }
  .vip-strip h3 { font-size: 15px; }
  /* 1/2/3 三栏下面的说明小字在手机上不再展示 */
  .vip-strip p { display: none; }
  .buyers-line { margin-top: 28px; }
  .buyers-k { font-size: 11.5px; }
  .buyer-chip { font-size: 13px; padding: 9px 16px; }
  .vip-cta { margin-top: 22px; }
  .vip-cta .btn { width: 100%; justify-content: center; padding: 14px; }

  /* ---------- 8b. 演讲/买家通用横滑与卡片 ---------- */
  .sp-fade { width: 30px; }
  .sp-track { grid-auto-columns: 76%; grid-template-rows: auto; gap: 12px; }
  .sp-nav { margin-top: 16px; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
  .team-card .cap { font-size: 12px; padding: 18px 9px 8px; }
  .team-quote { margin-top: 28px; padding: 20px 18px; }
  .team-quote p { font-size: 14.5px; line-height: 1.8; }
  .guest-grid { font-size: 13px; }
  .guest-grid b { font-size: 13.5px; }
  details.fold { margin-top: 24px; }
  details.fold summary { padding: 14px 16px; font-size: 14px; }
  details.fold .inner { padding: 0 16px 16px; }

  /* ---------- 9. 展位 / 赞助 ---------- */
  .pick-panel { padding: 20px 16px 26px; }
  .pick-head { gap: 8px; flex-wrap: wrap; }
  .pick-head b { font-size: 15.5px; }
  /* 「你想做什么？」前面的 01 在手机上多余，去掉保留标题本身 */
  .pick-head .step { display: none; }
  .pick { padding: 16px 15px 15px; }
  .pick .pick-t { font-size: 20px; }
  .pick .pick-s { font-size: 11.5px; margin-top: 4px; }
  .pick .pick-d { font-size: 12.5px; margin-top: 7px; line-height: 1.65; }
  .pick .pick-box { top: 15px; right: 15px; width: 20px; height: 20px; }
  .pick .pick-box::after { left: 5px; top: 0; width: 5px; height: 10px; }
  /* 三城单选：手机上保持一行三列，但缩到能放下日期，不再撑破容器 */
  #cityPick { gap: 8px; }
  #cityPick .pick { padding: 13px 6px 12px; text-align: center; }
  #cityPick .pick-t { font-size: 16px; }
  #cityPick .pick-s { font-size: 9.5px; letter-spacing: -.01em; margin-top: 3px; line-height: 1.4; }
  #cityPick .pick-box { top: 8px; right: 7px; width: 15px; height: 15px; border-width: 1.5px; }
  #cityPick .pick-box::after { left: 3.5px; top: 0; width: 5px; height: 8px; border-right-width: 2px; border-bottom-width: 2px; }
  .seat-row { gap: 14px; padding: 13px 0; }
  .seat-row .sg { font-size: 16px; }
  .seat-row .st { gap: 8px; }
  .sp-item .lb { font-size: 11.5px; min-height: 42px; padding: 6px 8px; }
  .prog { padding: 20px 18px; }
  .prog-nums b { font-size: 34px; }
  .bar-note { font-size: 12px; }
  .lead-inline { padding: 18px 16px; gap: 16px; }
  .lead-inline .lf-l p { font-size: 13.5px; line-height: 1.7; }
  .lf-fields input { height: 50px; font-size: 15px; }
  .lf-fields .btn { height: 50px; padding: 0 20px; }
  .contact-card { padding: 18px 18px; }
  .contact-card .cc-tel { font-size: 22px; }
  .contact-card .cc-mail { font-size: 15px; }
  .qr-card { width: 100%; max-width: 260px; }

  /* ---------- 10. 浮动件：手机端只留回顶，不要左下角二维码浮层 ---------- */
  /* 页脚已有四个平台的二维码气泡，左下角浮层在手机上只会挡住正文 */
  #wxQr { display: none !important; }
  #toTop {
    right: 14px;
    bottom: calc(20px + env(safe-area-inset-bottom));
    width: 42px; height: 42px;
  }
  /* 只有带吸底操作栏的页面（首页）才需要给回顶按钮和页脚让位 */
  body:has(.mobile-bar) #toTop { bottom: calc(74px + env(safe-area-inset-bottom)); }
  #toTop svg { width: 17px; height: 17px; }

  .mobile-bar { padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); gap: 8px; transition: transform .28s ease, opacity .28s ease; }
  .mobile-bar .btn { font-size: 13.5px; padding: 12px 8px; }
  /* 首屏有主 CTA 时收起，滚过首屏后再出现（见 assets/mobile.js） */
  .mobile-bar.mb-hide { transform: translateY(110%); opacity: 0; pointer-events: none; }

  /* ---------- 11. 页脚 ---------- */
  footer { padding: 44px 0 calc(40px + env(safe-area-inset-bottom)); }
  body:has(.mobile-bar) footer { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .ft-brand img { height: 38px; }
  .ft-org { font-size: 11.5px; line-height: 1.75; margin-top: 10px; }
  /* 四个圆圈同一行，外框收小；联系按钮不再被挤到第二行 */
  .ft-social { margin-top: 16px; gap: 6px; flex-wrap: nowrap; }
  .ft-ico { width: 34px; height: 34px; }
  .ft-ico img { width: 56px; height: 56px; }
  .ft-ico:hover, .ft-ico[aria-expanded="true"] { transform: translateY(-2px) scale(1.1); }
  .ft-contact { height: 34px; padding: 0 12px; font-size: 11px; margin-left: 0; }
  /* 三栏保持一行，标题和链接用 nowrap + 小字号，避免「关于 / 我们」断成两行 */
  .ft-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 0; }
  .ft-cols h4 { font-size: 10.5px; letter-spacing: 0; white-space: nowrap; margin-bottom: 8px; }
  .ft-cols a { font-size: 10.5px; white-space: nowrap; padding: 3px 0; }
  .ft-bottom { margin-top: 20px; padding-top: 14px; gap: 8px; font-size: 10px; line-height: 1.7; }
  .ft-hotline { gap: 8px; flex-direction: column; align-items: flex-start; }
  .ft-hotline b { font-size: 11px; }
  .ft-legal { gap: 8px; }
}

/* ---------- 12. 小屏微调（iPhone SE / 360 安卓） ---------- */
@media (max-width: 400px) {
  .sec { font-size: 23px; }
  #hero h1 { font-size: 27px; }
  .orbit { --size: 360px; --r: 148px; --node: 62px; --core: 144px; }
  .core-n { font-size: 11px; }
  .core-d { font-size: 8px; }
  .logo-chip { width: 104px; height: 64px; }
  .logo-chip img { max-height: 36px; }
  .c-date { font-size: 11.5px; }
  #cityPick .pick-t { font-size: 15px; }
  #cityPick .pick-s { font-size: 9px; }
  .sr-signup { font-size: 12px; padding: 10px 10px; }
}
