/* ============================================================================
 * 美天机电官网 公共样式（头部 / 页脚 / 按钮 / 移动菜单 / 浮动条）
 * 版权所有 (C) 西安尊云信息科技有限公司
 * Author: 缘境 (yvsm@zunyunkeji.com)
 * ============================================================================ */
:root{
  --navy:#3a3a3a;
  --navy-dark:#262626;
  --dark:#1f1f1f;
  --orange:#f45608;
  --orange-hot:#ff6a1a;
  --orange-deep:#d8450a;
  --bg:#f5f5f5;
  --line:#e8e8e8;
  --text:#222;
  --muted:#777;
  --white:#fff;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:"Outfit","PingFang SC","Microsoft YaHei","Hiragino Sans GB","WenQuanYi Micro Hei",sans-serif;color:var(--text);background:#fff;line-height:1.6;font-size:14px;display:flex;flex-direction:column;min-height:100vh}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}
ul{list-style:none}
.en{font-family:Outfit,sans-serif;letter-spacing:.04em}
.wrap{width:min(1600px,94%);margin:0 auto}

/* ===== HEADER ===== */
.site-header{background:#fff;position:sticky;top:0;z-index:1000;box-shadow:0 2px 12px rgba(0,0,0,.06)}
.header-inner{display:flex;align-items:center;gap:20px;padding:12px 0;min-height:72px}
.brand{display:flex;align-items:center;gap:14px;flex-shrink:0}
.brand img{width:50px;height:50px;border-radius:11px;box-sizing:border-box;object-fit:contain;display:block}
.brand-name{display:flex;flex-direction:column;align-items:flex-start;line-height:1.2;white-space:nowrap}
.brand-name b{font-size:24px;font-weight:800;color:var(--navy-dark);letter-spacing:2px}
.brand-name em{font-style:normal;font-family:Outfit,sans-serif;font-size:12px;font-weight:700;color:var(--orange);letter-spacing:3px;margin-top:3px;text-transform:uppercase}
.brand-slogan{display:flex;flex-direction:column;line-height:1.35;white-space:nowrap;border-left:1px solid var(--line);padding-left:16px;margin-left:2px}
.brand-slogan b{font-size:17px;font-weight:700;color:var(--navy-dark);letter-spacing:1px}
.brand-slogan em{font-style:normal;font-size:14px;color:var(--muted);letter-spacing:2px;margin-top:3px}
.nav-list{display:flex;justify-content:center;align-items:center;flex:1;gap:14px}
.nav-item{position:relative}
.nav-item>a{display:block;padding:12px 20px;font-size:18px;font-weight:400;color:var(--text);transition:.2s;white-space:nowrap}
.nav-item:hover>a,.nav-item.active>a{color:var(--orange)}
.nav-item.active>a,.nav-item:hover>a{box-shadow:inset 0 -2px 0 var(--orange)}
.dropdown{position:absolute;left:50%;transform:translateX(-50%) translateY(10px);min-width:160px;background:#fff;box-shadow:0 14px 36px rgba(0,0,0,.14);opacity:0;visibility:hidden;transition:.2s;padding:8px 0;border-radius:0 0 6px 6px;z-index:20;text-align:center}
.nav-item:hover .dropdown{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0)}
.dropdown a{display:block;padding:11px 18px;font-size:14px;color:#333;white-space:nowrap;text-align:center}
.dropdown a:hover{background:#fff5f0;color:var(--orange)}
.header-tools{display:flex;align-items:center;gap:14px;flex-shrink:0}
.tel-box{display:flex;align-items:center;gap:6px;color:var(--orange);font-weight:700;font-size:16px;font-family:Outfit,sans-serif}
.tel-box svg{width:18px;height:18px;fill:var(--orange)}
.lang-switch{display:flex;gap:4px;font-size:14px}
.lang-switch a{border:1px solid var(--line);padding:5px 12px;border-radius:3px;font-size:14px;color:var(--text)}
.lang-switch a.active{background:var(--dark);color:#fff;border-color:var(--dark)}

/* mobile hamburger + drawer */
.nav-toggle{display:none;width:44px;height:44px;background:none;border:none;cursor:pointer;flex-direction:column;justify-content:center;align-items:center;gap:5px;padding:0;margin-left:18px}
.nav-toggle span{display:block;width:24px;height:2.5px;background:var(--navy-dark);border-radius:2px;transition:.3s}
.mobile-mask{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:1500;opacity:0;visibility:hidden;transition:.3s}
.mobile-nav{position:fixed;top:0;right:-300px;width:280px;max-width:82vw;height:100%;background:#fff;z-index:1600;transition:right .35s ease;overflow-y:auto;box-shadow:-8px 0 30px rgba(0,0,0,.18)}
.mobile-nav .m-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff}
.mobile-nav .m-head b{font-size:17px;color:var(--navy-dark)}
.mobile-nav .m-close{width:36px;height:36px;background:none;border:none;font-size:24px;cursor:pointer;color:var(--muted);line-height:1}
.mobile-nav>a.m-top{display:block;padding:15px 22px;font-size:16px;font-weight:700;color:var(--navy-dark);border-bottom:1px solid var(--line)}
.mobile-nav>a.m-top.active{color:var(--orange)}
.mobile-nav .m-sub a{display:block;padding:11px 22px 11px 40px;font-size:14px;color:var(--muted);border-bottom:1px solid #f2f2f2}
.mobile-nav .m-sub a:hover{color:var(--orange)}
.mobile-nav .m-contact{padding:20px 22px;background:var(--bg);font-size:14px;color:var(--muted);line-height:2}
.mobile-nav .m-contact .tel{color:var(--orange);font-size:20px;font-weight:800;font-family:Outfit,sans-serif}
body.nav-open .mobile-mask{opacity:1;visibility:visible}
body.nav-open .mobile-nav{right:0}
body.nav-open{overflow:hidden}

/* ===== COMMON BUTTONS ===== */
.btn-primary{display:inline-block;background:var(--orange);color:#fff;padding:12px 32px;font-weight:700;border-radius:2px;transition:.25s}
.btn-primary:hover{background:var(--orange-deep)}
.btn-ghost{display:inline-block;margin-left:12px;border:1px solid rgba(255,255,255,.7);color:#fff;padding:11px 28px;font-weight:600;border-radius:2px;transition:.25s}
.btn-ghost:hover{background:#fff;color:var(--navy)}
.btn-outline{display:inline-block;border:2px solid var(--orange);color:var(--orange);padding:11px 40px;font-weight:700;border-radius:24px;transition:.25s;font-size:14px;text-align:center}
.btn-outline:hover{background:var(--orange);color:#fff}
/* 电话咨询按钮：PC端无动作，不显示手型 */
@media(min-width:769px){
  a.js-tel{cursor:default}
  a.js-tel:hover{background:transparent;color:var(--orange)}
}

/* ===== SECTION HEAD ===== */
.sec{padding:80px 0}
.sec-head{text-align:center;margin-bottom:48px}
.sec-head .en{display:block;font-size:14px;color:var(--orange);font-weight:700;letter-spacing:.16em;margin-bottom:8px;text-transform:uppercase}
.sec-head h3{font-size:34px;font-weight:800;color:var(--navy-dark);position:relative;display:inline-block;padding-bottom:16px}
.sec-head h3::after{content:"";position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:56px;height:3px;background:var(--orange)}
.sec-head h3 span{color:var(--muted);font-weight:500;font-size:18px;margin-left:10px}
.sec-head p{margin-top:16px;color:#9a9a9a;font-size:15px;font-weight:400;letter-spacing:1px}
.sec-bg{background:var(--bg);position:relative;overflow:hidden}

/* ===== FOOTER ===== */
.footer{background:#2b2b2b;color:rgba(255,255,255,.78);font-size:14px;margin-top:auto}
.footer-top{display:grid;grid-template-columns:1.7fr .7fr .7fr 1fr;gap:44px;padding:60px 0 50px;align-items:center}
.footer-brand{display:flex;flex-direction:column}
.footer-brand .brand{margin-bottom:20px}
.footer-brand .brand-name b{color:#fff}
.footer-brand .brand-name em{color:var(--orange-hot)}
.footer-brand .f-desc{line-height:1.9;font-size:14px;opacity:.82;margin-bottom:20px}
.f-contact li{display:flex;gap:10px;align-items:flex-start;margin-bottom:14px;font-size:14px;list-style:none;line-height:1.6}
.f-contact svg{width:18px;height:18px;fill:var(--orange-hot);flex-shrink:0;margin-top:3px}
.footer-col h4{color:#fff;font-size:16px;margin-bottom:20px;position:relative;padding-bottom:12px;font-weight:700}
.footer-col h4::after{content:"";position:absolute;left:0;bottom:0;width:30px;height:2px;background:var(--orange)}
.footer-col ul{list-style:none}
.footer-col li{margin-bottom:13px;font-size:14px}
.footer a{transition:.2s}
.footer a:hover{color:var(--orange-hot)}
.footer-contact{background:var(--orange);border-radius:12px;padding:30px 26px;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;box-shadow:0 18px 44px rgba(216,69,10,.4);justify-self:center;width:100%;max-width:420px}
.fc-tel-label{font-size:14px;opacity:.95;margin-bottom:6px;font-weight:500}
.fc-tel-row{display:flex;align-items:center;gap:10px;font-size:30px;font-weight:800;font-family:Outfit,sans-serif;letter-spacing:.01em;line-height:1.1;margin-bottom:8px;justify-content:center}
.fc-tel-row svg{width:28px;height:28px;fill:#fff;flex-shrink:0}
.fc-sub{font-size:14px;opacity:.94;margin-bottom:22px}
.fc-qrs{display:flex;gap:24px;justify-content:center}
.fc-qr{text-align:center;flex:0 0 auto}
.fc-qr .qr-box{background:#fff;padding:8px;border-radius:8px;width:120px;height:120px;display:grid;place-items:center}
.fc-qr img{width:100%;height:100%;object-fit:contain;display:block}
.fc-qr span{display:block;font-size:14px;margin-top:10px;font-weight:500}
.footer-bottom{border-top:1px solid rgba(255,255,255,.12);padding:20px 0;display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:14px;opacity:.8}

/* ===== FLOAT BAR ===== */
.float-bar{position:fixed;right:0;top:42%;z-index:1200;display:flex;flex-direction:column}
.float-item{width:50px;height:50px;background:var(--navy);color:#fff;display:grid;place-items:center;cursor:pointer;border-bottom:1px solid rgba(255,255,255,.12);position:relative;transition:.2s}
.float-item:hover{background:var(--orange)}
.float-item svg{width:22px;height:22px;fill:#fff}
.float-panel{position:absolute;right:58px;top:50%;transform:translateY(-50%);background:#fff;color:var(--text);padding:14px;border-radius:6px;box-shadow:0 10px 30px rgba(0,0,0,.18);opacity:0;visibility:hidden;transition:.2s;min-width:150px;white-space:nowrap}
.float-item:hover .float-panel{opacity:1;visibility:visible}
.float-panel::after{content:"";position:absolute;right:-6px;top:50%;width:12px;height:12px;background:#fff;transform:translateY(-50%) rotate(45deg)}
.float-panel strong{display:block;font-size:14px;color:var(--orange);margin-bottom:4px}
.float-panel span{font-weight:700;font-family:Outfit,sans-serif;font-size:14px}
.float-panel img{width:120px;margin:6px auto;display:block}
.float-panel .tip{font-size:14px;color:var(--muted);text-align:center}

/* ===== RESPONSIVE (shared) ===== */
@media(max-width:1400px){ .brand-slogan-head{display:none} }
@media(max-width:1024px){
  .nav-list{display:none}
  .tel-box{display:none}
  .nav-toggle{display:flex}
  .float-bar{display:none}
  .footer-top{grid-template-columns:1fr 1fr;gap:36px}
  .footer-contact{grid-column:1 / -1}
}
@media(max-width:768px){
  .footer-top{display:block;padding:40px 0 32px}
  .footer-col,.footer-contact{display:none}
  .footer-brand .brand{margin-bottom:14px}
  .f-contact li{margin-bottom:12px}
  .sec{padding:56px 0}
}
@media(max-width:640px){
  .brand img{width:42px;height:42px}
  .brand-name b{font-size:20px}
  .brand-name{gap:0}
}
