/* ============================================================
   lsbe.cn 品牌蓝绿视觉层 v2  |  2026-11-12
   仅覆盖样式，不改任何 DOM / PHP / <head> 内容。
   回滚：删除三语模板中引用 ui-v2.css 的那一行 link 即可。
   品牌色取自官网 logo：NicePaper 蓝 #14508C + 草绿 #8DC63F
   ============================================================ */
:root{
  --blue:#14508C; --blue-d:#0B3B6B; --green:#8DC63F; --green-d:#5E8F22;
  --mist:#F5F8FC; --ink:#0C2137; --muted:#60748A; --line:#E1E9F2;
}

/* 1. 中文字体兜底：现网只声明 Inter，中文回落到系统默认 */
body, body *{
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'PingFang SC',
              'Hiragino Sans GB','Microsoft YaHei','Segoe UI',sans-serif !important;
}

/* 2. 按钮收敛到品牌色：去掉黄色脉冲、紫色渐变、红色悬浮按钮 */
[class*="bg-yellow-400"]{
  background-color:var(--green) !important; color:#fff !important;
  animation:none !important; box-shadow:0 8px 22px rgba(141,198,63,.26) !important;
}
[class*="bg-yellow-400"]:hover{background-color:var(--green-d) !important}
.pulse-anim{animation:none !important}
[class*="bg-blue-600"]{background-color:var(--blue) !important}
[class*="bg-blue-600"]:hover{background-color:var(--blue-d) !important}
[class*="bg-green-600"]{background-color:var(--green) !important}
[class*="bg-green-600"]:hover{background-color:var(--green-d) !important}
button[class*="bg-red-600"]{
  background-color:var(--blue) !important;
  box-shadow:0 10px 28px rgba(20,80,140,.30) !important;
}
[class*="bg-red-50"]{background-color:var(--mist) !important}
[class*="text-red-600"]{color:var(--blue) !important}
[style*="667eea"]{background-image:linear-gradient(100deg,var(--blue),var(--green)) !important}

/* 3. 全站 Hero 遮罩：深灰紫暗调 -> 品牌蓝调（英俄与移动端生效） */
#home [class*="from-blue-900/60"]{
  background:linear-gradient(100deg,rgba(11,59,107,.82),rgba(20,80,140,.62) 55%,rgba(11,59,107,.55)) !important;
}

/* 4. 区块背景节奏：灰白交替改为雾蓝 / 纯白 */
#about,#production,#certificates,#latest-news,section[class*="bg-gray-50"]{
  background-color:var(--mist) !important;
}
#products,section[class*="bg-white"]{background-color:#fff !important}
#about h2,#products h2,#production h2,#certificates h2,#latest-news h2{
  color:var(--blue-d) !important; letter-spacing:-.015em;
}

/* 5. 卡片与表单 */
.product-card{
  border-radius:18px !important; border:1px solid var(--line) !important;
  box-shadow:0 4px 18px rgba(12,46,86,.05) !important;
}
.product-card:hover{
  transform:translateY(-6px) !important;
  box-shadow:0 16px 36px rgba(12,46,86,.12) !important;
}
section a[class*="rounded-2xl"]{border-radius:18px !important; border-color:var(--line) !important}
#certificates img{background:#fff; border-radius:12px}
input:focus,textarea:focus{
  border-color:var(--blue) !important;
  box-shadow:0 0 0 3px rgba(20,80,140,.10) !important; outline:none !important;
}

/* 6. 悬浮联系框 / 微信二维码弹窗：保留现网 DOM，只强化视觉 */
.float-panel{
  border:1px solid var(--line) !important; border-radius:18px !important;
  box-shadow:0 18px 48px rgba(12,46,86,.18) !important;
}
.float-panel img,#wechat-modal img{border-radius:12px; background:#fff}
.animate-bounce{animation-duration:2.4s !important}

/* 7. 中文首页桌面端：左文案 + 右车间实拍（结构性重排，仅 CSS）
      英俄站与 <=1023px 保持现网原布局，规避跨语种适配风险 */
@media (min-width:1024px){
  html[lang="zh-CN"] #home{background:#F5F8FC !important; min-height:min(78vh,720px) !important}
  html[lang="zh-CN"] #home > .absolute.inset-0.z-0{left:43% !important; width:57% !important; right:0 !important}
  html[lang="zh-CN"] #home > .absolute.inset-0.z-0 > div[class*="bg-gradient"]{
    background:linear-gradient(90deg,#F5F8FC 0%,rgba(245,248,252,.55) 14%,rgba(11,59,107,.16) 100%) !important;
  }
  html[lang="zh-CN"] #home > .absolute.inset-0.z-0 > div[class*="opacity-10"]{display:none !important}
  html[lang="zh-CN"] #home > .relative.z-30{
    max-width:none !important; margin:0 !important; padding-left:6vw !important;
    padding-right:50% !important; text-align:left !important;
  }
  html[lang="zh-CN"] #home > .relative.z-30::before{
    content:""; display:block; width:56px; height:5px; border-radius:4px;
    background:var(--green); margin-bottom:22px;
  }
  html[lang="zh-CN"] #hero-title{
    color:var(--ink) !important; font-size:clamp(32px,3.2vw,52px) !important;
    line-height:1.28 !important; letter-spacing:-.02em;
  }
  html[lang="zh-CN"] #hero-subtitle{
    color:#40566E !important; max-width:560px !important;
    margin-left:0 !important; font-size:19px !important;
  }
  html[lang="zh-CN"] #home .grid.grid-cols-2{
    max-width:620px !important; margin-left:0 !important; gap:12px !important;
  }
  html[lang="zh-CN"] #home .stat-card{
    background:#fff !important; border:1px solid var(--line) !important;
    box-shadow:0 8px 26px rgba(12,46,86,.07) !important; backdrop-filter:none !important;
  }
  html[lang="zh-CN"] #home .stat-card *{color:var(--muted) !important}
  html[lang="zh-CN"] #home .stat-card > div:first-child,
  html[lang="zh-CN"] #home .stat-card > div:first-child *{color:var(--blue) !important}
  html[lang="zh-CN"] #hero-cta{justify-content:flex-start !important}
  html[lang="zh-CN"] #hero-cta [class*="bg-white/10"]{
    background:#fff !important; color:var(--blue) !important;
    border:1px solid #C9DDF2 !important; backdrop-filter:none !important;
  }
}


/* ---- 上线后微调 2026-11-12 ---- */
.gradient-text{background-image:linear-gradient(100deg,#14508C,#8DC63F) !important}
@media (min-width:1024px){
  html[lang="zh-CN"] #home > .absolute.inset-0.z-0{left:50% !important; width:50% !important}
  html[lang="zh-CN"] #home > .relative.z-30{padding-right:54% !important}
  html[lang="zh-CN"] #hero-title{font-size:clamp(30px,2.9vw,46px) !important; max-width:600px}
  html[lang="zh-CN"] #home .stat-card .text-blue-200{white-space:nowrap; font-size:12px !important}
}
/* ============================================================
   lsbe.cn 手机端视觉补强补丁  |  待确认后上线
   仅 <=1023px 生效；不新增 DOM、不改任何文字、不动 PHP 与 <head>
   上线方式：把本段追加到服务器 ui-v2.css 末尾，并把三语模板中
             ui-v2.css?v=2 改成 ?v=3（破 CDN 12h 缓存）
   回滚：删除追加段，或把 ?v=3 改回 ?v=2（缓存期内）
   ============================================================ */

@media (max-width:1023px){

  /* A. 三语通用：排版节奏与可点区域 ------------------------------ */
  section{padding-top:56px !important; padding-bottom:56px !important}
  .product-card{
    border-radius:16px !important; border:1px solid #E1E9F2 !important;
    box-shadow:0 6px 20px rgba(12,46,86,.07) !important;
  }
  .product-card:hover{transform:none !important}       /* 手机上取消位移，避免误触抖动 */
  #about h2,#products h2,#production h2,#certificates h2,#latest-news h2{
    font-size:clamp(23px,6.4vw,30px) !important; line-height:1.35 !important;
  }

  /* 表单：16px 防 iOS 聚焦自动缩放（真实体验问题，不是样式偏好） */
  input,textarea,select,button{font-size:16px !important}
  input,textarea{border-radius:12px !important}

  /* 资质图标：手机上改 3 列，避免 2 列过大 / 4 列糊成一片 */
  #certificates .grid{grid-template-columns:repeat(3,1fr) !important; gap:10px !important}
  #certificates img{border:1px solid #E1E9F2 !important; padding:4px !important}

  /* 悬浮联系框：收窄并贴边，别压住正文和按钮 */
  .float-panel{
    max-width:min(78vw,286px) !important;
    box-shadow:0 10px 30px rgba(12,46,86,.16) !important;
  }
  /* 底部扫码横条：手机上改为两列，不占满整屏 */
  .qr-extra-bar{flex-wrap:wrap !important; justify-content:center !important; gap:10px !important}
  .qr-extra-bar > *{flex:0 0 auto !important}

  /* 表格溢出保护 */
  table{display:block !important; overflow-x:auto !important; -webkit-overflow-scrolling:touch}

  /* B. 中文首页 Hero：移动端专属（桌面分栏仍只在 >=1024px 生效） --- */
  html[lang="zh-CN"] #home > .absolute.inset-0.z-0 > div[class*="bg-gradient"]{
    background:linear-gradient(180deg,rgba(11,59,107,.88),rgba(11,59,107,.72) 55%,rgba(11,59,107,.86)) !important;
  }
  html[lang="zh-CN"] #home > .relative.z-30{
    padding-top:74px !important; padding-bottom:74px !important;
    text-align:left !important;
  }
  html[lang="zh-CN"] #home > .relative.z-30::before{
    content:""; display:block; width:44px; height:4px; border-radius:4px;
    background:#8DC63F; margin-bottom:18px;
  }
  html[lang="zh-CN"] #hero-title{
    font-size:clamp(28px,7.6vw,38px) !important;
    line-height:1.32 !important; letter-spacing:-.02em !important;
    text-shadow:0 2px 14px rgba(0,0,0,.18);
  }
  html[lang="zh-CN"] #hero-subtitle{
    font-size:clamp(14px,3.9vw,17px) !important;
    line-height:1.75 !important; margin-left:0 !important;
  }
  /* 数字卡：由压在背景图上的半透明玻璃卡 -> 白底实卡，手机上可读性差别最大 */
  html[lang="zh-CN"] #home .stat-card{
    background:#fff !important; border:1px solid #E1E9F2 !important;
    border-radius:14px !important; box-shadow:0 8px 22px rgba(0,0,0,.10) !important;
    backdrop-filter:none !important; padding:12px 10px !important;
  }
  html[lang="zh-CN"] #home .stat-card *{color:#60748A !important}
  html[lang="zh-CN"] #home .stat-card > div:first-child,
  html[lang="zh-CN"] #home .stat-card > div:first-child *{
    color:#14508C !important; font-size:clamp(20px,5.6vw,26px) !important;
  }
  html[lang="zh-CN"] #home .grid.grid-cols-2{gap:10px !important}
  html[lang="zh-CN"] #hero-cta{flex-direction:column !important; align-items:stretch !important; gap:10px !important}
  html[lang="zh-CN"] #hero-cta a,#hero-cta button{
    width:100% !important; text-align:center !important; min-height:48px !important;
  }
  html[lang="zh-CN"] #hero-cta [class*="bg-white/10"]{
    background:#fff !important; color:#14508C !important;
    border:1px solid #C9DDF2 !important; backdrop-filter:none !important;
  }
}

/* 超窄屏（<=380px）额外收敛 */
@media (max-width:380px){
  #certificates .grid{grid-template-columns:repeat(2,1fr) !important}
  html[lang="zh-CN"] #home .grid.grid-cols-2{grid-template-columns:repeat(2,1fr) !important}
  .float-panel{max-width:min(72vw,250px) !important}
}
/* 2026-11-13 窄屏 Hero 防溢出：只约束盒宽与换行，不改字号、不改文字 */
@media (max-width:1023px){
  html[lang="zh-CN"] #home > .relative.z-30{
    padding-left:16px !important; padding-right:16px !important;
    max-width:100% !important; box-sizing:border-box !important;
  }
  html[lang="zh-CN"] #hero-title{
    max-width:100% !important; overflow-wrap:anywhere !important;
    word-break:break-word !important;
  }
  html[lang="zh-CN"] #hero-subtitle{
    max-width:100% !important; overflow-wrap:anywhere !important;
  }
}
