/* 全站移动端覆盖：在不改变桌面视觉基准的前提下统一窄屏导航与内容密度。 */
@media (max-width: 760px) {
  :root { --gutter: 20px; }
  html { font-size: 16px; }
  body { overflow-x: clip; }
  header { z-index: 200; }
  .nav { position: relative; height: 72px; padding-inline: 0; }
  .brand { position: absolute; top: 50%; left: 50%; z-index: 2; gap: 6px; transform: translate(-50%, -50%); }
  .brand-logo--nav-bird, .brand-logo--bird, .brand-bird { height: 30px; }
  .brand-logo--nav-wordmark, .brand-logo--wordmark, .brand-word { display: block !important; content: url('../img/brand/blackcrow-nav-wordmark1.png'); height: 17px; width: auto; }
  .nav-right { position: relative; width: 100%; height: 72px; margin: 0 !important; justify-content: flex-start; }
  .nav-right .lang { position: absolute; top: 0; right: 72px; left: auto; order: 2; height: 72px; }
  .lang-btn { width: 52px; padding-inline: 0; }
  .lang-btn #langName { display: none; }
  .lang-menu { left: 0; right: auto; min-width: 156px; max-height: calc(100dvh - 82px); overflow-y: auto; }
  .lang-menu button { min-height: 42px; font-size: 14px; }
  .nav-cta { order: 3; display: inline-flex !important; align-items: center; justify-content: center; width: 72px; min-width: 72px; height: 72px; margin-left: auto; padding: 0 18px; text-align: center; white-space: normal; word-break: normal; overflow-wrap: break-word; line-height: 1.55; letter-spacing: .14em; }
  .burger { order: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 52px; margin-left: 0 !important; padding: 6px; color: var(--fg, #fff); background: transparent; border: 0; }
  .burger span { display: block; width: 24px; height: 2px; background: currentColor; }
  .navlinks, .nav.open .navlinks { position: absolute; top: 72px; right: 0; left: 0; display: none; max-height: calc(100dvh - 72px); margin: 0; padding: 14px 20px 22px; overflow-y: auto; background: rgba(8, 8, 8, .98); border-bottom: 1px solid var(--line, rgba(255,255,255,.12)); box-shadow: 0 20px 40px rgba(0,0,0,.35); }
  .nav.open .navlinks { display: flex !important; flex-direction: column; gap: 0; }
  .navlinks li { width: 100%; }
  .navlinks a { display: block; padding: 13px 0; font-size: 13px; line-height: 1.45; letter-spacing: .22em; }
  .navlinks a::after { bottom: 7px; transition: none; }
  .navlinks a:active, .navlinks a:active::after { color: var(--gold); width: 100%; }
  footer { padding-top: 48px; }
  .foot-top { gap: 28px; }
  .foot-bottom { align-items: flex-start; }
  .qr-popover { left: auto; right: 0; }

  /* 首页 */
  .hero-inner { padding-bottom: 106px; }
  .hero h1 { font-size: clamp(44px, 13vw, 62px); line-height: 1; }
  .hero .lead { margin: 18px 0 0; font-size: 15px; line-height: 1.65; }
  .scrollcue { bottom: 24px; }
  .statement { padding-block: 72px; }
  .statement h2 { font-size: clamp(34px, 10.2vw, 48px); }
  .statement .watermark { width: min(68vw, 300px); }
  .svc-card { min-height: 276px; }
  .work-rail { margin-inline: -20px; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .studio-grid { gap: 30px; }
  .map-tabs { top: 8px; right: 8px; gap: 4px; }
  .map-tab { max-width: 76px; padding: 5px 7px; overflow: hidden; font-size: 10px; letter-spacing: .04em; text-overflow: ellipsis; }
  .map-card { right: 8px; bottom: 8px; left: auto; width: min(54vw, 220px); max-width: calc(100% - 16px); gap: 3px; padding: 8px 10px; }
  .map-eyebrow { font-size: 9px; letter-spacing: .12em; }
  .map-addr { display: -webkit-box; overflow: hidden; font-size: 11px; line-height: 1.35; letter-spacing: 0; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .map-go { margin-top: 0; font-size: 9px; letter-spacing: .08em; }
  .cta-blk { padding-block: 78px; }

  /* 服务页 */
  .svc-hero { min-height: 470px; padding-top: 132px; padding-bottom: 46px; }
  .svc-hero h1 { font-size: clamp(42px, 12vw, 58px); }
  .svc-tabs { grid-template-columns: 1fr; }
  .svc-tab { min-height: 194px; }
  .svc-visual { min-height: 280px; }
  .detail-copy { min-height: auto; padding-block: 54px; }
  .delivery-grid article { min-height: 0; padding-block: 28px; }

  /* 关于页 */
  .flow-head { min-height: 88svh; padding-top: 116px; padding-bottom: 52px; }
  .flow-head h1 { font-size: clamp(42px, 12vw, 58px); }
  .content-track { padding-top: 76px; padding-bottom: 92px; }
  .story-intro { grid-template-columns: 1fr; gap: 22px; padding-bottom: 76px; }
  .story-card { padding: 24px 20px; }
  .story-card .offices, .story-card .benefits { grid-template-columns: 1fr; }
  .story-card .timeline { grid-template-columns: 1fr; }
  .story-card .timeline div { border-right: 0; border-bottom: 1px solid var(--line); }
  .story-card .timeline div:last-child { border-bottom: 0; }

  /* 作品页：无限画布仍可拖拽，单击卡片后详情改为适合阅读的单列。 */
  .cv-viewport { touch-action: none; }
  .cv-hint { bottom: 18px; font-size: 11px; letter-spacing: .16em; white-space: nowrap; }
  .lb-hero { height: 100svh; min-height: 0; }
  .lb-inner { padding: 24px 20px 74px; }
  .lb-inner h2 { white-space: normal; }
  .lb-official-logo { width: min(74vw, 300px); }
  .lb-art { object-fit: contain; transform: none; background: #050505; }
  .project-article { padding-inline: 20px; }

  /* 招聘页 */
  .roles-apply { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .apply-qr img, .qr-placeholder { width: 100%; height: auto; aspect-ratio: 1; }
  .people canvas { opacity: 0; transition: opacity .16s ease; }
}

/* 逐页移动端收束：避免页面自身旧断点覆盖共享的窄屏布局。 */
@media (max-width: 760px) {
  footer .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; }
  footer .foot-brand { grid-column: 1 / -1; }
  footer .foot-col { min-width: 0; }
  footer .foot-col address, footer .foot-col a { overflow-wrap: anywhere; }

  /* 服务页的工作方式改为可完整阅读的纵向步骤。 */
  .process .process-list { display: grid; grid-template-columns: 1fr; gap: 0; overflow: visible; }
  .process .process-list::before { top: 38px; right: auto; bottom: 38px; left: 18px; width: 1px; height: auto; }
  .process .process-list article { grid-template-columns: 46px minmax(0, 1fr); min-height: 0; padding: 20px 0; }
  .process .process-list b { width: 36px; height: 36px; }

  /* 移动端不启用作品灯箱，避免小屏无法完整查看时出现遮罩。 */
  #lbScrim { display: none !important; }
  #lbScrim { z-index: 400; }
  #lbScrim .lb-close { top: 88px; right: 16px; z-index: 410; width: 44px; height: 44px; }

  /* 关于页：路线延展为整段内容的背景，内容不再依赖 SVG 到达才显示。 */
  .about-flow .source-line, #aboutFlow ~ .outlook .outlook-sprouts, body:has(#aboutFlow) .bc-scroll-indicator { display: none !important; }
  /* 移动端直接进入内容，移除内页重复的首屏标题。 */
  .svc-hero,
  body:has(.roles) > main > .hero,
  .about-flow .flow-head { display: none !important; }
  .svc-hero + .overview { padding-top: 84px; }
  .about-flow .content-track { padding-top: 84px; padding-bottom: 32px; }
  .about-flow .story-reveal, .about-flow .story-intro, #aboutFlow ~ .outlook.story-reveal { opacity: 1 !important; visibility: visible !important; clip-path: none !important; transform: none !important; }
  #aboutFlow .story-card .media-slot { width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; }
  #aboutFlow .story-card.life .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* 招聘页保留两列信息密度，并让人物画布完整落在区块内。 */
  .career-details .benefit-list, .career-details .process-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .career-details .benefit-item, .career-details .process-list li { min-height: 170px; padding: 16px 12px 18px; border: 0; border-bottom: 1px solid var(--line); }
  .career-details .benefit-item:nth-child(odd), .career-details .process-list li:nth-child(odd) { border-right: 1px solid var(--line); }
  .career-details .benefit-item:nth-last-child(-n+2), .career-details .process-list li:nth-last-child(-n+2) { border-bottom: 0; }
  .career-details .benefit-item h3, .career-details .process-list h3 { font-size: 16px; }
  .career-details .benefit-item p, .career-details .process-list p { font-size: 12px; line-height: 1.55; }
  .career-details .process-list li { display: block; }
  .career-details .process-mark { display: flex; align-items: center; gap: 8px; width: auto; }
  .career-details .process-list h3 { margin-top: 16px; }
  body .people { min-height: 420px; }
  body .people .people-copy { padding-top: 40px; }
  body .people.crowd-ready canvas { opacity: .78; }
  body .people canvas { right: 0; bottom: 0; left: 0; height: 70%; transform: translateY(5%); }
  body .people + footer { padding-top: 0; }
}

@media (max-width: 390px) {
  .lang-btn { padding-inline: 11px; }
  .burger { width: 46px; }
}

/* 全站页脚：移动端隐藏 Logo，直接展示四个二维码及其说明。 */
@media (max-width: 760px) {
  footer { padding: 26px 0 16px !important; }
  footer .foot-top { display: grid; grid-template-columns: 1fr; gap: 18px; padding-bottom: 16px !important; }
  footer .foot-brand { display: none !important; }
  footer .foot-top > .foot-col:not(.foot-qr):not(:last-child) { display: none; }
  footer .foot-qr { grid-column: 1; display: block; }
  footer .foot-qr h5 { display: block; margin-bottom: 8px; font-size: 10px !important; line-height: 1.25 !important; }
  footer .foot-qr .qr-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-items: start; }
  footer .foot-qr .qr-entry { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 5px; min-width: 0; width: 100%; }
  footer .foot-qr .qr-mark { display: none; }
  footer .foot-qr .qr-label { display: block; order: 2; max-width: 100%; overflow-wrap: anywhere; white-space: normal; text-align: center; font-size: 10px !important; line-height: 1.3 !important; }
  footer .foot-qr .qr-popover { position: static; order: 1; display: block; width: 100%; max-width: 78px; padding: 4px; opacity: 1; visibility: visible; transform: none; pointer-events: auto; background: #fff; border: 1px solid var(--gold); }
  footer .foot-qr .qr-popover img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
  footer .foot-col { min-width: 0; }
  footer .foot-col h5 { margin-bottom: 6px; font-size: 10px !important; line-height: 1.25 !important; }
  footer .foot-top > .foot-col:last-child { grid-column: 1 / -1; }
  footer .foot-col address { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px !important; line-height: 1.45 !important; }
  footer .foot-col address br { display: none; }
  footer .foot-col address span { overflow-wrap: anywhere; }
  footer .foot-bottom { display: grid !important; grid-template-columns: 1fr; gap: 3px; padding-top: 12px !important; }
  footer .foot-bottom p, footer .foot-bottom span { margin: 0; font-size: 9px !important; line-height: 1.35 !important; }

  /* 动态页面在脚本执行前不再先套用桌面动画状态，避免首屏闪烁和二次排版。 */
  html.has-reveal [data-reveal], [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .media-slot.has-media img { transition: none !important; transform: none !important; }
}
