/* ============================================================
   首页手机端适配样式（index-mobile.css）
   从 index.html 内联 <style> 中抽取独立而成，仅对 <=980px / <=640px 生效
   注意：本文件必须在该页内联 <style> 之后引入，以保持原有层叠顺序
   修改样式后请同步更新 index.html 中的 ?v= 版本号
   ============================================================ */

/* 移动端加速动画 */
@media (max-width:980px){
  .reveal-up.reveal-on{animation-duration:.5s!important}
  .reveal-scale.reveal-on{animation-duration:.4s!important}
  .reveal-left.reveal-on,.reveal-right.reveal-on{animation-duration:.5s!important}
}

/* ===== 手机端响应式 ===== */
@media (max-width:980px){
  /* --- 移动端禁用悬停位移（触摸设备不需要）--- */
  .product-card:hover,.project-card:hover,.cert-card:hover,.cr-review-card:hover,
  .customer-story-card:hover,.about-data-item:hover,.ft-feature:hover,
  .primary-button:hover,.outline-button:hover,.ft-cta-btn:hover,
  .about-company-button:hover,.cr-score-item:hover{transform:none!important}
  .product-card:hover .product-media img,.project-card:hover .project-media img,
  .cert-card:hover .cert-box img,.news-feature:hover .news-feature-media img,
  .news-list-item:hover .news-thumb img{transform:none!important}
  .ft-links a:hover{padding-left:0!important}

  /* --- 根：强制重置缩放变量，防止 calc() 产生溢出 --- */
  :root{--scale:1!important}
  html{overflow-x:hidden!important}
  body{overflow-x:hidden!important;max-width:100vw!important}
  *,*::before,*::after{max-width:100vw}

  /* --- 解除缩放系统 --- */
  .scaled-section{height:auto!important;min-height:auto!important;overflow:hidden!important}
  #news.scaled-section[data-height="1200"]{height:auto!important}
  .stage{
    position:relative!important;
    width:100%!important;
    min-width:auto!important;
    transform:none!important;
    transform-origin:unset!important;
    height:auto!important;
    min-height:auto!important;
    left:0;
  }
  .stage-941,.stage-680,.stage-720,.stage-800,.stage-900,.stage-1320{height:auto!important;min-height:auto!important}
  .hero-stage,.products-stage,.projects-stage,.honors-stage,.news-stage,
  .about-stories-stage,.cr-stage,.footer-stage{height:auto!important;min-height:auto!important}

  /* --- Hero 首屏 --- */
  .hero-stage{
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:100px 0 50px;
    min-height:100vh;
  }
  .hero-stage::before,
  .hero-stage::after{inset:0!important}
  .hero-structure{inset:0!important;display:none}
  .hero-slider{position:absolute;inset:0;z-index:-5}
  .hero-video-wrap{position:absolute;inset:0;z-index:-5;overflow:hidden}
  /* 视频以原始比例撑开首屏，不再填满竖屏后裁掉两侧画面。 */
  #home.has-video{padding-top:44px}
  #home.has-video .hero-stage{display:block;padding:0;min-height:0!important}
  #home.has-video .hero-video-wrap{position:relative;inset:auto;z-index:0;width:100%}
  #home.has-video .hero-video{display:block;width:100%;height:auto;object-fit:contain}
  #home.has-video .hero-copy{position:absolute!important;top:50%!important;left:0!important;transform:translateY(-50%);padding:12px 16px}
  #home.has-video .hero-copy:not(.active){display:none}
  #home.has-video .hero-title{font-size:clamp(18px,5vw,32px)!important;line-height:1.15;margin:0}
  #home.has-video .hero-eyebrow{font-size:clamp(10px,2.5vw,14px)!important;margin:0 0 6px;letter-spacing:1px}
  #home.has-video .hero-desc{font-size:clamp(10px,2.5vw,14px)!important;line-height:1.4;margin:8px 0 0}
  .hero-slide{position:absolute;inset:0}
  .hero-copy{
    position:relative!important;
    top:auto!important;
    left:auto!important;
    width:100%!important;
    max-width:100%!important;
    padding:0 20px;
    opacity:0;
  }
  .hero-copy.active{opacity:1}
  .hero-title{font-size:clamp(32px,8vw,56px)!important;line-height:1.15}
  .hero-eyebrow{font-size:14px!important;margin-bottom:8px}
  .hero-desc{font-size:14px!important;line-height:1.7;max-width:100%}
  .hero-actions{
    position:relative!important;
    top:auto!important;
    left:auto!important;
    margin-top:24px;
    padding:0 20px;
    display:flex;
    flex-wrap:wrap;
    gap:12px;
  }
  .primary-button,.text-button{padding:14px 28px;font-size:15px;width:auto}
  .slider-prev,.slider-next{
    top:50%!important;
    transform:translateY(-50%)!important;
    width:40px;height:40px;font-size:20px;
    z-index:10;
  }
  .slider-prev{left:6px!important}
  .slider-next{right:6px!important}
  .slide-index{display:none}

  /* 数据面板：强制一排 */
  .stats-panel{
    position:relative!important;
    bottom:auto!important;
    left:auto!important;
    right:auto!important;
    display:flex!important;
    flex-wrap:nowrap!important;
    gap:4px;
    margin:16px 10px 0;
    padding:10px 0;
    width:auto!important;
    height:auto!important;
    justify-content:space-between;
    grid-template-columns:unset!important;
  }
  .stat-item{
    flex:1 1 0!important;
    min-width:0!important;
    height:auto!important;
    min-height:50px;
    padding:4px 2px;
    justify-content:center;
  }
  .stat-item > div{
    flex-direction:row!important;
    align-items:center!important;
    gap:4px!important;
  }
  .stat-left{align-items:flex-start!important;text-align:left!important}
  .stat-item:not(:last-child)::after{height:32px!important;top:50%!important;transform:translateY(-50%)!important}
  .stat-icon{width:22px!important;height:22px!important}
  .stat-number strong{font-size:18px!important}
  .stat-number small{font-size:10px!important}
  .stat-label{font-size:10px!important;margin-top:2px}

  /* --- 产品模块：手机端单列横排卡片（左图右文，不挤、信息完整）--- */
  .products-stage{padding:36px 14px 50px}
  .products-content{padding:0!important}
  .product-structure{display:none}
  .section-heading,.news-heading,.honors-intro{margin-bottom:22px}
  .section-title,.news-title,.honors-title{font-size:clamp(22px,5.5vw,32px)!important}
  .overline,.news-overline,.honors-overline{font-size:12px!important;letter-spacing:.14em!important}
  .section-desc{font-size:13px!important;line-height:1.7;margin-top:6px}
  .title-line{width:50px;height:2px;margin:10px auto 14px}
  .product-cards{
    display:flex!important;
    flex-direction:column!important;
    gap:12px;
    overflow:visible;
    padding-bottom:0;
    margin-top:6px!important;
  }
  .product-card-link{display:block;width:100%}
  .product-card{
    display:flex!important;
    flex-direction:row!important;
    align-items:stretch!important;
    border-radius:10px!important;
    border:1px solid rgba(255,255,255,.85)!important;
  }
  .product-media{
    flex:0 0 42%!important;
    width:auto!important;
    height:auto!important;
    min-height:112px;
    border-bottom:none!important;
    border-right:1px solid rgba(17,24,39,.07);
  }
  .product-body{
    flex:1!important;
    min-width:0!important;
    padding:10px 12px!important;
    display:flex;
    flex-direction:column;
    justify-content:center;
  }
  .product-name{font-size:15px!important;margin-bottom:4px}
  .product-meta{font-size:11px!important;line-height:1.5;margin-bottom:4px}
  .product-desc{font-size:12px!important;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .product-link{font-size:12px!important;margin-top:4px}
  .products-footer{margin-top:22px}
  .outline-button{min-width:auto!important;width:auto!important;padding:0 24px!important;font-size:16px!important;height:48px!important}

  /* --- 工程案例：手机端单列横排卡片（左图右文，与产品区一致）--- */
  .projects-stage{padding:36px 14px 50px}
  .projects-content{padding:0!important}
  .project-cards{
    display:flex!important;
    flex-direction:column!important;
    gap:12px;
    overflow:visible;
    margin-top:6px!important;
  }
  .project-card-link{display:block;width:100%}
  .project-card{
    height:auto!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:stretch!important;
    border-radius:10px!important;
    border:1px solid rgba(255,255,255,.85)!important;
  }
  .project-media{
    flex:0 0 42%!important;
    width:auto!important;
    min-width:auto!important;
    height:auto!important;
    min-height:112px;
    border-bottom:none!important;
    border-right:1px solid rgba(17,24,39,.08);
  }
  .project-body{
    flex:1!important;
    height:auto!important;
    min-width:0!important;
    padding:10px 12px!important;
    display:flex;
    flex-direction:column;
    justify-content:center;
  }
  .project-tag{font-size:15px!important;margin-bottom:4px}
  .project-desc{height:auto!important;min-height:auto!important;font-size:12px!important;line-height:1.6;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  .card-link{font-size:12px!important;margin-top:4px}
  .projects-footer{margin-top:22px}

  /* --- 荣誉资质 --- */
  .honors-stage{padding:40px 16px 50px}
  .honors-content{padding:0!important}
  .honors-intro{padding-left:16px!important;margin-bottom:24px!important}
  .honors-intro::before{height:60px!important;width:2px!important}
  .honors-overline{font-size:13px!important;letter-spacing:2px!important}
  .honors-title{font-size:clamp(22px,6vw,34px)!important}
  .honors-line{margin:10px 0!important}
  .honors-desc{font-size:13px!important;line-height:1.6}
  .honors-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:14px!important;
    padding:0!important;
    column-gap:14px!important;
  }
  .cert-card{text-align:center}
  .cert-box{
    width:100%!important;
    max-width:160px!important;
    height:auto!important;
    aspect-ratio:3/4;
    min-height:150px;
    margin:0 auto;
  }
  .cert-title{font-size:12px;margin-top:8px;max-width:160px;margin-left:auto;margin-right:auto}

  /* --- 新闻资讯 --- */
  .news-stage{padding:40px 16px 50px;height:auto!important}
  #news .stage{height:auto!important}
  .news-content{padding:0!important}
  .news-blueprint{display:none}
  .news-layout{grid-template-columns:1fr!important;gap:18px}
  .news-feature{min-height:auto!important}
  .news-feature-media{height:200px}
  .news-feature-body{padding:14px 18px}
  .news-feature-title{font-size:17px}
  .news-feature-desc{font-size:14px}
  .news-list-item{
    display:flex!important;
    flex-direction:column!important;
    grid-template-columns:unset!important;
  }
  .news-thumb{
    min-width:auto!important;
    width:100%!important;
    height:150px;
  }
  .news-item-title{font-size:15px}
  .news-footer-note{
    position:relative!important;
    left:auto!important;
    bottom:auto!important;
    font-size:14px!important;
    text-align:center;
    margin-top:24px;
    justify-content:center;
  }
  .news-more{margin-top:16px}

  /* --- 关于我们 --- */
  .about-stories-stage{padding:40px 16px 50px}
  .about-design-container{padding:0!important}
  .about-company-section{min-height:auto!important;padding-top:0;padding-bottom:0;border-bottom:none}
  .about-company-grid{grid-template-columns:1fr!important;gap:24px}
  .about-company-copy{padding:0!important;max-width:100%}
  .about-company-title{font-size:clamp(24px,6vw,36px)!important}
  .about-company-slogan{font-size:clamp(16px,3vw,20px)!important}
  .about-company-text{font-size:13px!important;line-height:1.7;max-width:100%}
  .about-company-media{
    width:100%!important;
    height:auto!important;
    min-height:220px;
  }
  .about-company-badge{padding:10px 16px}
  .about-company-badge strong{font-size:16px}
  .about-company-badge span{font-size:11px}

  /* 企业数据 */
  .about-data-section{height:auto!important;border-bottom:none;padding:0 16px 24px}
  .about-data-row{
    grid-template-columns:repeat(2,1fr)!important;
    height:auto!important;
    padding:0!important;
    gap:12px;
  }
  .about-data-item{height:auto!important;padding:14px 8px}
  .about-data-item:not(:last-child)::after{height:36px!important}
  .about-data-number strong{font-size:30px!important}
  .about-data-number span{font-size:16px!important}
  .about-data-label{font-size:11px!important}

  /* 客户风采 */
  .customer-stories-section{padding:24px 16px 36px}
  .customer-stories-title{font-size:clamp(24px,6vw,36px)!important}
  .customer-stories-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px}
  .customer-story-card{aspect-ratio:1/1}

  /* --- 客户评价 + 联系 --- */
  .cr-stage{padding:40px 16px 50px}
  .cr-content{padding:0!important}
  .cr-reviews{padding:0!important}
  .cr-reviews-layout{grid-template-columns:1fr!important;gap:20px}
  .cr-rating-summary{min-height:auto!important}
  .cr-rating-summary img{width:100px!important;height:100px!important}
  .cr-summary-slogan{font-size:22px!important}
  .cr-score-item{flex-direction:column;gap:4px;padding:10px}
  .cr-score-item h3{font-size:13px}
  .cr-stars{font-size:14px}
  .cr-review-grid{
    grid-template-columns:1fr!important;
    grid-template-rows:auto!important;
    height:auto!important;
    gap:12px;
  }
  .cr-review-card{
    grid-template-columns:72px minmax(0,1fr)!important;
    min-height:auto!important;
    gap:10px;
    padding:10px;
  }
  .cr-avatar{width:72px!important;min-height:80px!important;height:auto!important}
  .cr-review-country{font-size:14px}
  .cr-review-text{font-size:12px;-webkit-line-clamp:4}
  .cr-title{font-size:clamp(24px,6vw,36px)!important}
  .cr-subtitle{font-size:13px}
  .cr-heading{margin-bottom:20px}

  /* 联系我们表单 */
  .cr-contact{padding:0!important;border-top:none!important}
  .cr-contact-layout{grid-template-columns:1fr!important;gap:20px}
  .cr-contact-copy{
    padding:0!important;
    border-right:none!important;
  }
  .cr-contact-copy::after{display:none!important}
  .cr-contact-title-en{font-size:clamp(28px,8vw,48px)!important}
  .cr-contact-title-cn{font-size:clamp(22px,5vw,32px)!important}
  .cr-contact-desc{font-size:14px}
  .cr-contact-illustration{height:140px}
  .cr-form-panel{padding:0!important}
  .cr-form-title{font-size:28px!important}
  .cr-form-grid{grid-template-columns:1fr!important;gap:10px}
  .cr-field-full{grid-column:span 1!important}
  .cr-input,.cr-textarea{font-size:14px;padding:10px}

  /* --- Footer 页脚 --- */
  #footer.scaled-section{overflow:visible!important;padding-bottom:64px!important}
  #footer .stage{overflow:visible!important}
  .ft-cta{
    height:auto!important;
    padding:28px 16px!important;
  }
  .ft-cta-row{
    grid-template-columns:1fr!important;
    gap:14px!important;
    text-align:center;
  }
  .ft-cta-overline{font-size:14px!important;letter-spacing:2px!important}
  .ft-cta-title{font-size:clamp(20px,5.5vw,32px)!important}
  .ft-cta-contact{justify-content:center}
  .ft-cta-icon{width:44px!important;height:44px!important}
  .ft-cta-label{font-size:15px!important}
  .ft-cta-phone{font-size:20px!important}
  .ft-cta-btn{width:100%!important;height:48px!important;font-size:16px!important}
  .ft-cta::before,.ft-cta::after{display:none}

  .ft-main{padding:24px 16px!important}
  .ft-grid{
    grid-template-columns:1fr!important;
    gap:20px!important;
  }
  .ft-col{padding:0!important}
  .ft-col:not(:first-child)::before{display:none!important}
  .ft-brand-row{margin-bottom:12px!important}
  .ft-brand-row .brand-logo{height:36px!important}
  .ft-desc{font-size:13px!important;line-height:1.7;max-width:100%!important;margin-bottom:16px!important}
  .ft-features{grid-template-columns:repeat(3,1fr)!important;gap:10px;max-width:100%}
  .ft-feature-icon{width:48px!important;height:48px!important}
  .ft-feature-label{font-size:13px!important}
  .ft-col-title{font-size:18px!important;margin-bottom:10px!important}
  .ft-links{
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:wrap!important;
    overflow:visible!important;
    white-space:normal!important;
    gap:10px 16px;
  }
  .ft-links li{flex-shrink:0}
  .ft-links a{font-size:14px!important;white-space:nowrap}
  .ft-contact-list{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:10px 18px!important}
  .ft-contact-item{display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important;flex:0 0 auto!important;width:auto!important}
  .ft-contact-item > div:last-child{display:flex!important;flex-direction:row!important;align-items:center!important;flex-wrap:wrap!important;gap:2px 6px!important}
  .ft-contact-icon{width:26px!important;height:26px!important;flex:0 0 auto!important;border-width:1px!important}
  .ft-contact-label{font-size:12px!important;margin:0!important;white-space:nowrap}
  .ft-contact-text{font-size:13px!important;white-space:normal;word-break:break-all}

  .ft-bottom{margin:0 16px!important;padding-top:14px!important}
  .ft-bottom-row{
    grid-template-columns:1fr!important;
    gap:6px;
    text-align:center;
  }
  .ft-copyright,.ft-support{font-size:12px!important;white-space:normal!important}

  /* --- 浮动工具栏：改为底部横条 --- */
  .floating-tools{
    display:flex!important;
    flex-direction:row!important;
    position:fixed!important;
    z-index:999;
    bottom:0!important;
    top:auto!important;
    left:0!important;
    right:0!important;
    width:100%!important;
    height:auto!important;
    border:none!important;
    border-top:1px solid rgba(228,143,56,.85)!important;
    border-radius:0!important;
    box-shadow:0 -4px 16px rgba(0,0,0,.35);
    background:linear-gradient(180deg,rgba(9,17,21,.97),rgba(13,22,27,.96))!important;
  }
  .tool-link{
    flex:1!important;
    min-height:auto!important;
    height:50px!important;
    padding:4px 2px!important;
    gap:2px;
    font-size:10px!important;
  }
   /* 邮箱提示固定在底部工具栏上方，长地址自动换行并完整显示。 */
  .tool-tip{
    position:fixed!important;
    right:12px!important;
    bottom:64px!important;
    left:12px!important;
    top:auto!important;
    width:auto!important;
    max-width:calc(100vw - 24px)!important;
    transform:none!important;
    padding:10px 12px!important;
    font-size:14px!important;
    line-height:1.5!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    word-break:break-word!important;
    text-align:center;
  }
  /* 移动端：二维码在按钮上方弹出 */
  .qr-popup{
    right:auto!important;
    left:0!important;
    top:auto!important;
    bottom:calc(100% + 14px)!important;
    transform:none!important;
  }
  .tool-link:not(:last-child)::after{
    right:0!important;
    left:auto!important;
    top:6px!important;
    bottom:6px!important;
    width:1px!important;
    height:auto!important;
  }
  .tool-icon{width:22px!important;height:20px!important}
}

@media (max-width:640px){
  #home.has-video{padding-top:40px}
  /* 小屏导航更紧凑（保持单行完整显示） */

  .hero-stage{padding:90px 0 40px;min-height:100vh}
  .hero-copy{padding:0 14px}
  .hero-title{font-size:clamp(24px,7.5vw,38px)!important}
  .hero-eyebrow{font-size:11px!important}
  .hero-desc{font-size:12px!important}
  .hero-actions{padding:0 14px;flex-direction:column;gap:8px}
  .primary-button,.text-button{width:100%!important;text-align:center;height:48px!important}
  .slider-prev,.slider-next{width:34px!important;height:34px!important;font-size:18px!important}

  .stats-panel{margin:10px 6px 0;padding:8px 0}
  .stat-icon{width:20px!important;height:20px!important}
  .stat-number strong{font-size:16px!important}
  .stat-number small{font-size:9px!important}
  .stat-label{font-size:9px!important}
  .stat-item:not(:last-child)::after{height:24px!important}

  .products-stage,.projects-stage,.honors-stage,.news-stage,.about-stories-stage,.cr-stage{padding:28px 12px 36px}
  .section-heading{margin-bottom:18px}
  .section-title,.news-title,.honors-title,.customer-stories-title{font-size:clamp(20px,7vw,28px)!important}
  .section-desc{font-size:12px!important;line-height:1.6}
  .product-cards{gap:10px}
  .product-media{min-height:96px!important}
  .product-name{font-size:14px!important}
  .product-body{padding:8px 10px!important}
  .product-meta{font-size:10px!important}
  .product-desc{font-size:11px!important}
  .project-cards{gap:10px}
  .project-media{min-height:96px!important}
  .project-tag{font-size:14px!important}
  .project-desc{font-size:11px!important}
  .honors-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;column-gap:10px!important}
  .cert-box{min-height:130px;max-width:140px!important}
  .cert-title{font-size:11px;max-width:140px}
  .news-feature-media{height:160px}
  .news-thumb{height:130px}
  .news-feature-body{padding:12px 14px}
  .about-company-media{min-height:180px}
  .about-data-section{padding:0 12px 20px}
  .about-data-row{gap:8px}
  .about-data-number strong{font-size:26px!important}
  .customer-stories-section{padding:20px 12px 28px}
  .customer-stories-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px}
  .cr-review-card{grid-template-columns:56px minmax(0,1fr)!important;gap:8px}
  .cr-avatar{width:56px!important;min-height:64px!important}
  .cr-form-grid{gap:8px}
  .cr-input,.cr-textarea{font-size:13px;padding:8px}

  .ft-cta{padding:20px 12px!important}
  .ft-cta-overline{font-size:12px!important}
  .ft-cta-title{font-size:clamp(18px,6vw,26px)!important}
  .ft-cta-icon{width:36px!important;height:36px!important}
  .ft-cta-phone{font-size:18px!important}
  .ft-main{padding:20px 12px!important}
  .ft-grid{gap:16px!important}
  .ft-brand-row .brand-logo{height:30px!important}
  .ft-desc{font-size:12px!important}
  .ft-features{grid-template-columns:repeat(3,1fr)!important;gap:8px}
  .ft-feature-icon{width:40px!important;height:40px!important}
  .ft-feature-label{font-size:11px!important}
  .ft-col-title{font-size:16px!important}
  .ft-links{gap:10px}
  .ft-links a{font-size:13px!important}
  .ft-contact-icon{width:22px!important;height:22px!important}
  .ft-contact-text{font-size:12px!important}
  .ft-contact-label{font-size:11px!important}
  .ft-bottom{margin:0 12px!important}
  .ft-copyright,.ft-support{font-size:11px!important}
}
