/*
Theme Name: MobiParts Inquiry
Description: B2B 手机配件询盘站主题，配合 mu-plugin inquiry-site.php 使用（产品/轮播/全局设置后台可配）。
Version: 1.0.0
Author: MobiParts
*/

:root{
  --blue:#1b7bd4; --blue-dark:#0f5ea8; --green:#22c55e; --green-dark:#16a34a;
  --ink:#1a2333; --ink2:#55617a; --line:#e6ecf3; --bg:#f6f9fc;
}
*{margin:0;padding:0;box-sizing:border-box}
body{font-family:-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:var(--ink);background:#fff;line-height:1.55}
img{display:block;max-width:100%;height:auto}
a{text-decoration:none;color:inherit}
.wrap{max-width:1200px;margin:0 auto;padding:0 24px}

/* announcement bar */
.topbar{background:var(--blue-dark);color:#dcecfb;font-size:13px}
.topbar .wrap{display:flex;justify-content:space-between;align-items:center;height:36px}
.topbar .right{display:flex;gap:16px;align-items:center}

/* nav */
.nav{position:sticky;top:0;background:#fff;border-bottom:1px solid var(--line);z-index:50}
.nav .wrap{display:flex;align-items:center;gap:28px;height:64px}
.logo{display:flex;align-items:center;gap:8px;font-size:20px;font-weight:700;color:var(--blue)}
.logo small{display:block;font-size:10px;font-weight:400;color:var(--ink2);letter-spacing:.04em}
.menu{display:flex;gap:22px;margin-left:auto;font-size:15px;color:var(--ink)}
.menu a:hover{color:var(--blue)}
.btn{display:inline-flex;align-items:center;gap:8px;padding:10px 20px;border-radius:6px;font-weight:600;font-size:15px;border:0;cursor:pointer}
.btn-blue{background:var(--blue);color:#fff}
.btn-blue:hover{background:var(--blue-dark)}
.btn-green{background:var(--green);color:#fff}
.btn-green:hover{background:var(--green-dark)}

/* hero */
.hero{background:linear-gradient(180deg,#f2f8fe 0%,#fff 100%)}
.hero .wrap{display:grid;grid-template-columns:1.05fr .95fr;gap:32px;align-items:center;padding:56px 24px 40px}
.hero h1{font-size:52px;line-height:1.12;letter-spacing:-.01em}
.hero h1 .accent{color:var(--blue)}
.hero .sub{margin-top:14px;font-size:17px;color:var(--ink2)}
.checks{margin-top:22px;display:grid;grid-template-columns:1fr 1fr;gap:12px 24px}
.check{display:flex;gap:10px;font-size:15px}
.check b{display:block}
.check span{color:var(--ink2);font-size:13px}
.tick{flex:0 0 22px;height:22px;border-radius:50%;background:var(--blue);color:#fff;display:grid;place-items:center;font-size:12px;margin-top:2px}
.hero .cta{margin-top:26px;display:flex;gap:14px}
.hero .micro{margin-top:16px;font-size:13px;color:var(--ink2)}
.hero .micro i{color:var(--green);font-style:normal}
.hero-img{border-radius:16px;overflow:hidden;box-shadow:0 18px 40px -22px rgba(15,94,168,.25)}
.hero-img img{width:100%;border-radius:16px}

/* stats */
.stats{border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.stats .wrap{display:grid;grid-template-columns:repeat(5,1fr);padding:26px 24px}
.stat{display:flex;gap:12px;align-items:center;justify-content:center}
.stat .ico{width:40px;height:40px;border-radius:10px;background:#eaf3fc;display:grid;place-items:center}
.stat .ico img{width:26px;height:26px;object-fit:contain}
.stat b{font-size:20px;display:block;line-height:1.2}
.stat span{font-size:12.5px;color:var(--ink2)}

/* products */
.section{padding:56px 0}
.sec-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:26px}
.sec-head h2{font-size:30px}
.sec-head a{color:var(--blue);font-size:14px;font-weight:600}
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.card{border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden;transition:box-shadow .18s,transform .18s}
.card:hover{box-shadow:0 14px 30px -16px rgba(15,94,168,.28);transform:translateY(-2px)}
.card .ph{aspect-ratio:1/1;background:#fff;display:grid;place-items:center;padding:14px}
.card .ph img{width:100%;height:100%;object-fit:contain}
.card .body{padding:14px 16px 16px;border-top:1px solid var(--line)}
.card .model{font-size:12px;color:var(--blue);font-weight:700;letter-spacing:.04em}
.card .name{font-size:15px;font-weight:600;margin-top:2px}
.card .more{display:inline-block;margin-top:8px;font-size:13px;color:var(--blue);font-weight:600}

/* factory */
.factory{background:var(--bg)}
.factory .wrap{display:grid;grid-template-columns:1fr 1fr;gap:36px;align-items:center}
.factory h2{font-size:28px;margin-bottom:10px}
.factory p{color:var(--ink2);font-size:15px}
.fstats{margin:22px 0;display:grid;grid-template-columns:1fr 1fr;gap:18px}
.fstat{border-left:3px solid var(--blue);padding-left:14px}
.fstat b{font-size:24px;color:var(--blue)}
.fstat span{display:block;font-size:13px;color:var(--ink2)}
.factory-img{border-radius:14px;overflow:hidden;border:1px solid var(--line);min-height:300px;display:grid;place-items:center}
.factory-img img{width:100%;height:100%;object-fit:cover}
.logo-img{height:34px;width:auto;object-fit:contain}

/* certs */
.certs .badges{display:flex;gap:36px;justify-content:center;align-items:center;flex-wrap:wrap;margin-top:8px}
.cert{width:96px;height:96px;border:2px solid #22314a;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:19px;letter-spacing:.02em;color:#22314a;background:#fff}
.cert small{font-size:9px;font-weight:600;display:block;text-align:center;color:#5a6a86}

/* why us */
.why .wrap{display:grid;grid-template-columns:repeat(5,1fr);gap:22px}
.feat{text-align:center;padding:8px}
.feat .ico{width:52px;height:52px;margin:0 auto 10px;border-radius:14px;background:#eaf3fc;display:grid;place-items:center}
.feat .ico img{width:34px;height:34px;object-fit:contain}
.feat b{font-size:15px}
.feat p{font-size:13px;color:var(--ink2);margin-top:6px}

/* cta banner */
.banner{background:linear-gradient(90deg,var(--blue-dark),var(--blue));color:#fff}
.banner .wrap{display:flex;align-items:center;justify-content:space-between;padding:38px 24px;gap:24px}
.banner h2{font-size:26px}
.banner p{opacity:.85;font-size:14px;margin-top:4px}

/* footer */
footer{background:#0e1c2e;color:#9db1c8;font-size:14px}
footer .wrap{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:32px;padding:48px 24px 32px}
footer h4{color:#fff;font-size:15px;margin-bottom:14px}
footer li{list-style:none;margin-bottom:8px}
footer a:hover{color:#fff}
footer .brand{color:#fff;font-size:19px;font-weight:700;margin-bottom:10px}
.copy{border-top:1px solid #1d3049;text-align:center;padding:16px;font-size:13px}

/* floating whatsapp */
.wa-float{position:fixed;right:22px;bottom:22px;width:56px;height:56px;border-radius:50%;background:var(--green);display:grid;place-items:center;box-shadow:0 10px 24px -8px rgba(34,197,94,.6);z-index:60}
.wa-float svg{width:30px;height:30px;fill:#fff}
.wa-sticky{display:none}

/* product detail */
.crumbs{font-size:13px;color:var(--ink2);padding:18px 0 0}
.crumbs a{color:var(--blue)}
.pdetail{display:grid;grid-template-columns:1fr 1fr;gap:40px;padding:28px 0 56px}
.pdetail .main-img{border:1px solid var(--line);border-radius:14px;background:#fff;display:grid;place-items:center;padding:20px;aspect-ratio:1/1}
.pdetail .main-img img{max-height:100%;object-fit:contain}
.thumbs{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap}
.thumbs button{width:72px;height:72px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:6px;cursor:pointer}
.thumbs button.active{border-color:var(--blue)}
.thumbs img{width:100%;height:100%;object-fit:contain}
.pdetail h1{font-size:30px;line-height:1.25}
.pdetail .p-model{color:var(--blue);font-weight:700;font-size:14px;letter-spacing:.04em;margin-bottom:6px}
.pdetail .p-desc{color:var(--ink2);margin:16px 0 24px}
.pdetail .cta-row{display:flex;gap:14px;flex-wrap:wrap}
.p-meta{margin-top:26px;border-top:1px solid var(--line);padding-top:16px;font-size:14px;color:var(--ink2)}
.p-meta div{margin-bottom:6px}

/* generic page */
.page-body{padding:40px 0 64px;max-width:820px}
.page-body h1{font-size:32px;margin-bottom:18px}
.page-body p{margin-bottom:14px;color:var(--ink2)}

/* hamburger (mobile nav) */
.hamburger{display:none;flex-direction:column;justify-content:center;gap:5px;width:40px;height:40px;background:none;border:0;cursor:pointer;padding:8px}
.hamburger span{display:block;height:2px;background:var(--ink);border-radius:2px}

@media (max-width:900px){
  .hero .wrap{grid-template-columns:1fr;padding-top:36px}
  .hero h1{font-size:36px}
  .hero .cta{flex-wrap:wrap}
  .checks{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}
  .grid{grid-template-columns:repeat(2,1fr);gap:14px}
  .stats .wrap{grid-template-columns:repeat(2,1fr);gap:16px}
  .factory .wrap{grid-template-columns:1fr}
  .why .wrap{grid-template-columns:repeat(2,1fr)}
  footer .wrap{grid-template-columns:1fr 1fr}
  .hamburger{display:flex}
  .nav-cta{display:none}
  .menu{display:none;position:absolute;top:64px;left:0;right:0;background:#fff;border-bottom:1px solid var(--line);flex-direction:column;gap:0;padding:8px 24px 16px;box-shadow:0 12px 24px -12px rgba(15,94,168,.18)}
  .menu.open{display:flex}
  .menu a{padding:11px 0;border-bottom:1px solid var(--line);font-size:16px}
  .menu a:last-child{border-bottom:0}
  .topbar .right .hide-m{display:none}
  .pdetail{grid-template-columns:1fr}
  .wa-sticky{display:flex;position:fixed;left:0;right:0;bottom:0;background:var(--green);color:#fff;justify-content:center;align-items:center;gap:8px;padding:13px;font-weight:700;z-index:60}
  .wa-float{display:none}
  body{padding-bottom:52px}
}

@media (max-width:480px){
  .grid{grid-template-columns:1fr 1fr;gap:10px}
  .stats .wrap,.why .wrap{grid-template-columns:1fr 1fr}
  .hero h1{font-size:30px}
  .card .name{font-size:14px}
}
