* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:"Microsoft YaHei","PingFang SC",sans-serif; background:#141518; color:#eee; }
a { text-decoration:none; color:inherit; }
img { display:block; width:100%; }
.wrap { max-width:960px; margin:0 auto; padding:0 14px; }

/* 顶栏 */
.topbar { position:sticky; top:0; z-index:9; background:rgba(20,21,24,.95); border-bottom:1px solid #2a2c31; }
.topbar .wrap { display:flex; align-items:center; justify-content:space-between; height:54px; }
.logo { font-size:17px; font-weight:bold; color:#fff; }
.logo em { font-style:normal; color:#e63c2e; }
.nav a { margin-left:16px; font-size:14px; color:#bbb; }
.nav a:hover { color:#fff; }
@media (max-width:640px){
  .topbar .wrap { height:50px; flex-wrap:nowrap; align-items:center; padding:0 10px; }
  .logo { font-size:15px; flex-shrink:0; }
  .nav { width:auto; margin-top:0; margin-left:12px; flex:1; overflow-x:auto; white-space:nowrap; -webkit-overflow-scrolling:touch; scrollbar-width:none; mask-image:linear-gradient(90deg,transparent 0,#000 14px,#000 calc(100% - 18px),transparent); }
  .nav::-webkit-scrollbar { display:none; }
  .nav a { margin-left:0; margin-right:18px; font-size:14px; display:inline-block; }
}

/* 主视觉·轮播 */
.hero { position:relative; height:420px; overflow:hidden; }
.hero img.slide { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 78%; opacity:0; transition:opacity 1.1s ease; }
.hero img.slide.on { opacity:1; }
.hero .mask { position:absolute; inset:0; z-index:1; background:linear-gradient(180deg,transparent 45%,rgba(20,21,24,.92)); }
.hero .htxt { position:absolute; left:0; right:0; bottom:24px; padding:0 18px; z-index:2; }
.hero .htxt .tag { display:inline-block; background:#e63c2e; color:#fff; font-size:12px; font-weight:bold; padding:3px 12px; border-radius:4px; letter-spacing:2px; }
.hero .htxt h1 { font-size:30px; line-height:1.25; color:#fff; margin:10px 0 4px; text-shadow:0 2px 14px rgba(0,0,0,.8); }
.hero .htxt h1 em { font-style:normal; color:#ffb64d; }
.hero .htxt .hs { color:#eee; font-size:13px; letter-spacing:1px; text-shadow:0 1px 8px rgba(0,0,0,.8); }
.hero .htxt .hs b { color:#07c160; }
.hero .dots { text-align:center; margin-top:12px; }
.hero .dots i { display:inline-block; width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,.3); margin:0 4px; transition:.3s; }
.hero .dots i.on { background:#ffb64d; transform:scale(1.25); }
@media (max-width:640px){ .hero { height:350px; } .hero .htxt h1 { font-size:24px; } .hero .htxt { bottom:16px; } }

/* 通用区块 */
.sec { padding:34px 0 6px; }
.sec h2 { font-size:22px; color:#fff; margin-bottom:4px; }
.sec h2 span { color:#e63c2e; }
.sec .sub { color:#888; font-size:13px; margin-bottom:18px; }

/* 卖点四条 */
.points { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.pt { background:#1d1f24; border:1px solid #2a2c31; border-radius:10px; padding:16px 10px; text-align:center; }
.pt b { display:block; font-size:15px; color:#ffb64d; margin-bottom:6px; }
.pt i { font-style:normal; font-size:12px; color:#999; }
@media (max-width:640px){ .points { grid-template-columns:repeat(2,1fr);} }

/* 车型网格 */
.brands { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
.brand-tag { background:#23252b; border:1px solid #33363d; color:#aaa; font-size:12px; padding:4px 12px; border-radius:999px; }
.grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
@media (max-width:640px){ .grid { grid-template-columns:repeat(2,1fr);} }
.card { position:relative; display:block; background:#1d1f24; border:1px solid #2a2c31; border-radius:10px; padding:18px 12px; text-align:center; transition:.15s; }
.card:hover { border-color:#e63c2e; transform:translateY(-2px); }
.card b { font-size:15px; color:#fff; display:block; margin-bottom:6px; }
.card .st { font-size:11px; color:#777; }
.card.have .st { color:#4caf7d; font-weight:bold; }
.card .badge { position:absolute; top:-7px; right:8px; background:#e63c2e; color:#fff; font-size:10px; padding:2px 8px; border-radius:999px; }

/* 豆腐块·图卡（淘宝货架式） */
.card.pcard { padding:0; overflow:hidden; text-align:left; }
.card.pcard img { width:100%; aspect-ratio:4/3; object-fit:cover; background:#14151a; }
.card.pcard.wide img { aspect-ratio:2.8/1; }
.card.pcard .badge { top:8px; right:8px; font-size:11px; }
.card.pcard .cb { padding:9px 11px 11px; }
.card.pcard b { margin-bottom:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.brand-tag.ask { cursor:pointer; color:#ffb64d; border-color:#4a3c22; }
.brand-tag.ask:hover { background:#2c2515; }
.brand-tag.ask b { font-weight:normal; }

/* 产品页 */
.pimg { border-radius:10px; overflow:hidden; margin-bottom:10px; }
.pcols { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:10px; }
@media (max-width:640px){ .pcols { grid-template-columns:1fr 1fr; } }
.buybox { background:#1d1f24; border:1px solid #2a2c31; border-radius:10px; padding:18px; margin:14px 0; }
.buybox .price { color:#e63c2e; font-size:26px; font-weight:bold; }
.buybox .price s { color:#888; font-size:15px; font-weight:normal; margin-left:8px; }
.buybox .tag-save { display:inline-block; background:#ffb64d; color:#141518; font-size:12px; font-weight:bold; padding:2px 10px; border-radius:999px; margin-left:8px; vertical-align:middle; }
.btn { display:inline-block; background:#e63c2e; color:#fff; font-size:16px; font-weight:bold; padding:12px 34px; border-radius:8px; margin:12px 0; }
.btn.alt { background:#25a35a; }
.back { color:#888; font-size:13px; display:inline-block; margin:10px 0; }

/* 阶梯批发价 */
.tiers { display:flex; gap:8px; margin:12px 0 6px; }
.tier { flex:1; text-align:center; background:#14151a; border:1px solid #2a2c31; border-radius:8px; padding:8px 2px; }
.tier b { display:block; color:#ffb64d; font-size:18px; }
.tier span { font-size:11px; color:#888; }
.tier.hot { border-color:#e63c2e; }
.tier.hot b { color:#ff6a5c; }

/* 详情长图 */
.detail img { margin-bottom:8px; border-radius:10px; }

/* 联系 */
.contact { background:#1d1f24; border-top:2px solid #e63c2e; padding:30px 0; margin-top:36px; }
.contact p { color:#ccc; font-size:14px; line-height:2; }
.contact b { color:#ffb64d; }

/* 底部 */
footer { text-align:center; color:#555; font-size:12px; padding:20px 0 90px; }
.tbd { color:#666; font-style:italic; }

/* 悬浮下单条（手机） */
.floatbuy { position:fixed; left:0; right:0; bottom:0; z-index:20; display:none; }
.floatbuy .inner { max-width:960px; margin:0 auto; display:flex; gap:10px; background:rgba(20,21,24,.96); border-top:1px solid #2a2c31; padding:10px 14px; }
.floatbuy a, .floatbuy button { flex:1; text-align:center; font-size:15px; font-weight:bold; padding:11px 0; border-radius:8px; border:none; }
.floatbuy .fb-shop { background:#07c160; color:#fff; }
.floatbuy .fb-tel { background:#e63c2e; color:#fff; }
@media (max-width:720px){ .floatbuy { display:block; } }

/* 小店弹窗 */
.shop-modal { display:none; position:fixed; inset:0; z-index:50; background:rgba(0,0,0,.72); align-items:center; justify-content:center; padding:18px; }
.shop-modal.show { display:flex; }
.sm-card { background:#1d1f24; border:1px solid #33363d; border-radius:14px; max-width:420px; width:100%; padding:22px 20px; }
.sm-title { text-align:center; color:#07c160; font-size:18px; font-weight:bold; margin-bottom:14px; }
.sm-step { color:#ccc; font-size:13px; line-height:1.9; }
.sm-step b { color:#ffb64d; }
.sm-code { background:#14151a; border:1px dashed #07c160; color:#8fe0b0; font-size:12px; padding:10px; border-radius:8px; margin:12px 0; word-break:break-all; user-select:all; }
.sm-copy { width:100%; background:#07c160; color:#fff; border:none; font-size:15px; font-weight:bold; padding:12px 0; border-radius:8px; }
.sm-alt { color:#777; font-size:11px; margin-top:10px; line-height:1.6; }
.sm-close { text-align:center; color:#888; font-size:14px; margin-top:14px; cursor:pointer; }
.sm-toast { position:fixed; left:50%; bottom:90px; transform:translateX(-50%); background:rgba(0,0,0,.85); color:#fff; font-size:14px; padding:10px 18px; border-radius:8px; opacity:0; transition:.25s; z-index:60; pointer-events:none; max-width:86vw; text-align:center; }
.sm-toast.show { opacity:1; }

/* 找老板·聊天气泡（美洽入口强化版） */
#fs-chat { position:fixed; right:14px; bottom:76px; z-index:30; background:#07c160; color:#fff; border-radius:999px; padding:11px 16px; font-size:14px; font-weight:bold; box-shadow:0 4px 16px rgba(0,0,0,.4); cursor:pointer; display:flex; gap:6px; align-items:center; user-select:none; animation:fspop .5s ease; }
#fs-chat:active { transform:scale(.94); }
@media (min-width:721px) { #fs-chat { bottom:26px; } }
@keyframes fspop { from { opacity:0; transform:translateY(12px);} to { opacity:1; transform:none; } }


/* 顶栏钉死语言切换按钮（不随导航横滑） */
.langbtn{flex:0 0 auto;background:#3b82f6;color:#fff !important;border-radius:999px;padding:5px 12px;font-size:13px;font-weight:bold;margin-left:10px;white-space:nowrap;text-decoration:none;align-self:center}
.langbtn:hover{background:#2f6fd6;color:#fff !important}
@media(max-width:640px){.langbtn{padding:4px 9px;font-size:12px;margin-left:8px}}
