
@media (min-width: 760px) {
  .company {
    grid-template-columns: 200px 1fr;
  }
}

/* ============================================================
   平板  ≤ 1024
   ============================================================ */
@media (max-width: 1024px) {

  /* —— 双列布局全部转单列 —— */
  .hero__grid,
  .story,
  .csr,
  .split,
  .contact {
    grid-template-columns: 1fr;
  }

  /* 故事侧栏不再吸顶 */
  .story__aside {
    position: static;
  }

  /* 反向 split 的视觉块归位 */
  .split--rev .split__visual {
    order: 0;
  }

  /* 首屏：单列后面包舞台略收高，避免占满视口 */
  .hero__stage {
    min-height: 280px;
    margin-top: 10px;
  }

  .bread-hero {
    width: min(60%, 320px);
  }

  /* —— 三列网格转两列 —— */
  .services,
  .news {
    grid-template-columns: repeat(2, 1fr);
  }

  /* —— 数字亮点 4 → 2x2，重排内部分隔线 —— */
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(2) {
    border-right: none;
  }

  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-bottom: 1px solid rgba(251, 246, 236, 0.14);
  }

  /* —— 理念行：描述换行占满整行 —— */
  .philo__row {
    grid-template-columns: 64px 1fr;
  }

  .philo__d {
    grid-column: 1 / -1;
    padding-left: 82px;
    margin-top: 4px;
  }

  /* —— 页脚 4 → 2 列 —— */
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* —— 联系信息卡与表单卡间距收紧 —— */
  .contact {
    gap: 24px;
  }
}

/* ============================================================
   手机  ≤ 640
   ============================================================ */
@media (max-width: 640px) {

  /* —— 抽屉导航（≤900 即启用，见下方独立断点；此处补单列细节） —— */

  /* 首屏字号与间距收紧，避免长标题溢出 */
  .hero {
    padding-top: 44px;
    padding-bottom: 56px;
  }

  .hero h1 {
    font-size: clamp(2rem, 8.4vw, 2.7rem);
  }

  .hero__meta {
    gap: 16px;
    margin-top: 2rem;
  }

  .hero__meta b {
    font-size: 1.25rem;
  }

  .hero__stage {
    min-height: 220px;
  }

  .bread-hero {
    width: min(72%, 260px);
  }

  /* 滚动提示在窄屏隐藏，省空间 */
  .scroll-cue {
    display: none;
  }

  /* —— 网格全部单列 —— */
  .services,
  .news,
  .foot-grid {
    grid-template-columns: 1fr;
  }

  /* 产品网格：窄屏两列等宽，卡片更紧凑 */
  .prod-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .prod__top {
    height: 130px;
  }

  .prod__emoji {
    font-size: 3.2rem;
  }

  .prod__body {
    padding: 14px 14px 18px;
  }

  .prod__body h3 {
    font-size: 1.05rem;
  }

  .prod__body p {
    font-size: 0.82rem;
    line-height: 1.6;
  }

  .prod__tag {
    font-size: 0.58rem;
    padding: 0.25em 0.55em;
  }

  /* 横向滑轨卡片在窄屏略窄，露出下一张诱导滑动 */
  .prod {
    flex-basis: 72%;
  }

  /* —— 理念行：编号与图标收紧，描述不再缩进 —— */
  .philo__row {
    grid-template-columns: 44px 1fr;
    gap: 12px;
  }

  .philo__num {
    font-size: 1.2rem;
  }

  .philo__ic {
    width: 42px;
    height: 42px;
  }

  .philo__ic svg {
    width: 32px;
    height: 32px;
  }

  .philo__d {
    padding-left: 0;
  }

  .philo__mid {
    gap: 12px;
  }

  /* —— 概念胶囊：窄屏占满整行，点击区更大 —— */
  .concept {
    flex-direction: column;
    align-items: stretch;
  }

  .concept__pill {
    justify-content: flex-start;
  }

  /* —— 数字亮点保持 2x2，字号略收 —— */
  .stat {
    padding: 22px 12px;
  }

  .stat b {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }

  /* —— 联系：地图变矮，标签缩小 —— */
  .map iframe {
    height: 240px;
  }

  .map__pin {
    top: 12px;
    left: 12px;
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  /* —— 页头品牌字略收 —— */
  .brand .word b {
    font-size: 1.3rem;
  }

  .brand .mark {
    width: 40px;
    height: 40px;
  }

  /* —— 跑马灯字号略收，避免单条过长 —— */
  .marquee__item {
    padding: 0.7em 1.1em;
    font-size: 0.92rem;
  }

  /* —— CTA 横幅幽灵面包隐藏，省渲染 —— */
  .cta-band .ghost-bread {
    display: none;
  }

  /* —— 版块纵向间距整体收紧 —— */
  .sec {
    padding: 56px 0;
  }

  .page-hero {
    padding: 40px 0 32px;
  }
}

/* ============================================================
   抽屉导航断点  ≤ 900
   （独立于布局断点：860–1024 区间为「单列布局 + 展开导航」亦可，
     但中文 5 项 + Logo + 按钮在 <900 易挤，故 900 起收为抽屉）
   ============================================================ */
@media (max-width: 900px) {

  .site-header .wrap {
    justify-content: flex-start;
  }

  .burger {
    display: block;
    flex: 0 0 44px;
    margin-left: auto;
  }

  .main-navigation {
    width: 0;
    flex: 0 0 0;
  }

  .nav {
    position: fixed;
    inset: 78px 0 auto 0;
    z-index: 55;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 8px clamp(20px, 5vw, 56px) 20px;
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    transition: transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  body.menu-open .nav {
    transform: translateY(0);
  }

  .nav li {
    display: block;
  }

  .nav a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .nav a::after {
    display: none;
  }

  .nav li:last-child a {
    border-bottom: none;
  }

  /* 抽屉内的 CTA 按钮占满整行 */
  .nav .btn {
    margin-top: 14px;
    justify-content: center;
    width: 100%;
  }
}

/* ============================================================
   超小屏  ≤ 380
   ============================================================ */
@media (max-width: 380px) {

  .wrap {
    padding-inline: 16px;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 8.6vw, 2.2rem);
  }

  /* 极窄屏产品改单列，保证可读 */
  .prod-grid {
    grid-template-columns: 1fr;
  }

  .prod {
    flex-basis: 84%;
  }

  .foot-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ============================================================
   横屏手机：压低首屏高度，避免面包占满
   ============================================================ */
@media (max-width: 760px) and (orientation: landscape) {

  .hero {
    padding-top: 24px;
    padding-bottom: 28px;
  }

  .hero__stage {
    min-height: 150px;
  }

  .bread-hero {
    width: min(40%, 180px);
  }

  .scroll-cue {
    display: none;
  }
}

/* ============================================================
   纯触屏回退：去掉「粘滞 hover」，补「点击 active」反馈
   （让手机/平板也有可感知的交互反馈，而非死板静态）
   ============================================================ */
@media (hover: none) and (pointer: coarse) {

  /* 还原依赖 hover 的「持久」视觉，避免 tap 后颜色粘住 */
  .philo__row:hover {
    background: transparent;
    color: inherit;
    padding-inline: clamp(14px, 2vw, 26px);
  }

  .philo__row:hover .philo__num,
  .philo__row:hover .philo__t {
    color: var(--brown-deep);
  }

  .philo__row:hover .philo__num {
    color: var(--brown-mid);
  }

  .philo__row:hover .philo__d {
    color: var(--ink-soft);
  }

  .philo__row:hover .philo__ic svg {
    stroke: var(--brown);
  }

  .concept__pill:hover::before {
    transform: scaleX(0);
  }

  .concept__pill:hover {
    color: inherit;
    border-color: var(--line);
  }

  .concept__pill:hover .concept__ic {
    background: var(--beige);
  }

  .concept__pill:hover .concept__ic svg {
    stroke: var(--brown);
  }

  .svc:hover {
    transform: none;
    box-shadow: none;
  }

  .svc:hover::after {
    width: 0;
  }

  .svc:hover .svc__ic {
    background: var(--beige);
  }

  .svc:hover .svc__ic svg {
    stroke: var(--brown);
  }

  .prod:hover {
    transform: none;
    box-shadow: none;
  }

  .prod:hover .prod__emoji {
    transform: none;
  }

  .news__card:hover {
    transform: none;
    box-shadow: none;
  }

  /* —— 改为点击（active）瞬时反馈 —— */
  .btn:active {
    transform: translateY(-1px) scale(0.98);
  }

  .philo__row:active {
    background: var(--brown);
    color: var(--cream);
  }

  .philo__row:active .philo__num,
  .philo__row:active .philo__t {
    color: var(--cream);
  }

  .philo__row:active .philo__d {
    color: rgba(251, 246, 236, 0.85);
  }

  .philo__row:active .philo__ic svg {
    stroke: var(--cream);
  }

  .concept__pill:active::before {
    transform: scaleX(1);
  }

  .concept__pill:active {
    color: var(--cream);
  }

  .concept__pill:active .concept__ic {
    background: var(--cream);
  }

  .concept__pill:active .concept__ic svg {
    stroke: var(--brown);
  }

  .svc:active {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
  }

  .svc:active::after {
    width: 100%;
  }

  .svc:active .svc__ic {
    background: var(--brown);
  }

  .svc:active .svc__ic svg {
    stroke: var(--cream);
  }

  .prod:active {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
  }

  .news__card:active {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
  }

  .chip:active {
    transform: scale(0.96);
  }

  /* 触屏下横向滑轨确保手指可滑 */
  .rail {
    -webkit-overflow-scrolling: touch;
    scroll-padding-left: 4px;
  }
}

/* ============================================================
   尊重「减少动效」偏好（无障碍）
   ============================================================ */
@media (prefers-reduced-motion: reduce) {

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .bread-hero,
  .steam path,
  .marquee__track,
  .scroll-cue i::after {
    animation: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   追加：页脚 / 产品 / 招聘 三端适配
   ============================================================ */

/* ---- 平板 ≤1024 ---- */
@media (max-width: 1024px) {

  /* 产品对开页：保持两列但收紧 */
  .prod-spread {
    gap: clamp(20px, 3vw, 40px);
  }

  /* 招聘双价值：面包缩小 */
  .recruit-values__bread {
    width: 70px;
  }
}

/* ---- 手机 ≤640 ---- */
@media (max-width: 640px) {

  /* 产品对开页 → 单列，视觉在上 */
  .prod-spread {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 36px 0;
  }

  .prod-spread:nth-child(even) .prod-spread__visual {
    order: 0;
  }

  .prod-spread:nth-child(even) .prod-spread__info {
    order: 0;
    text-align: left;
  }

  .prod-spread:nth-child(even) .prod-spread__desc {
    margin-left: 0;
  }

  .prod-spread__blob {
    width: clamp(140px, 40vw, 200px);
  }

  /* 招聘双价值 → 单列，面包隐藏 */
  .recruit-values {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .recruit-values__bread {
    display: none;
  }

  /* 页脚信息 → 竖排 */
  .foot-info {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .foot-signoff__bubble {
    right: -20px;
    font-size: 0.7rem;
  }
}

/* ---- 触屏回退 ---- */
@media (hover: none) and (pointer: coarse) {
  .prod-spread:hover .prod-spread__blob {
    transform: none;
  }

  .prod-spread:active .prod-spread__blob {
    transform: scale(1.03);
  }
}

/* ============================================================
   三端收尾：媒体、表单和触控区域防溢出
   ============================================================ */
img,
video,
iframe {
  max-width: 100%;
}

input,
select,
textarea,
button {
  max-width: 100%;
}

@media (max-width: 900px) {
  .nav a,
  .burger,
  .btn,
  .totop {
    min-height: 44px;
  }

  body.menu-open {
    overflow: hidden;
  }
}

@media (max-width: 640px) {
  .h-display,
  .page-hero h1,
  .recruit-hero h1 {
    overflow-wrap: anywhere;
  }

  .wpforms-container input:not([type="checkbox"]):not([type="radio"]),
  .wpforms-container select,
  .wpforms-container textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
}
