:root{
  --bg:#f4f6fb;
  --nav:#1f2a37;
  --hero1:#2f7aa6;
  --hero2:#1f3a57;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --line:#e5e7eb;

  --orange:#f59e0b;
  --orange2:#fb923c;
  --btnDark:#1f2937;
  --btnSoft:#334155;

  --shadow:0 10px 30px rgba(15,23,42,.08);
  --radius:16px;
  --radius2:12px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  color:var(--text);
  background:var(--bg);
}

a{color:inherit;text-decoration:none}
.container{max-width:1180px;margin:0 auto;padding:0 18px}
.small{font-size:12px;color:var(--muted)}
.muted{color:var(--muted)}
.hr{height:1px;background:var(--line);margin:18px 0}

.navbar{
  position:sticky; top:0; z-index:999;
  background:linear-gradient(180deg,#233244,#1d2835);
  box-shadow:0 6px 18px rgba(0,0,0,.12);
}
.navbar .inner{
  height:72px;
  display:flex; align-items:center; justify-content:space-between;
  gap:16px;
}
.brand{
  display:flex;align-items:center;gap:10px;min-width:200px;
}
.brand .logo-dot{
  width:34px;height:34px;border-radius:10px;
  background:rgba(255,255,255,.08);
  display:flex;align-items:center;justify-content:center;
  border:1px solid rgba(255,255,255,.10);
}
.brand .title{
  font-weight:900;
  letter-spacing:.2px;
  font-size:16px; /* 放大 */
  color:#fff;
}
.brand .title .zm{color:var(--orange)}
.brand .tag{
  margin-left:10px;
  font-size:13px;
  color:rgba(255,255,255,.75);
  padding:4px 10px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  background:rgba(255,255,255,.06);
}

.nav-right{
  display:flex;align-items:center;gap:14px;
}
.nav-links{
  display:flex;align-items:center;gap:14px;
}
.nav-links a{
  color:rgba(255,255,255,.92);
  font-size:17px; /* 再放大 */
  font-weight:800;
  padding:8px 8px;
  border-radius:10px;
}
.nav-links a:hover{
  background:rgba(255,255,255,.07);
}

.searchbar{
  flex:1;
  display:flex;align-items:center;gap:10px;
  max-width:640px;
}
.searchbar .box{
  flex:1;
  height:40px; /* 缩窄高度 */
  background:#fff;
  border-radius:999px;
  display:flex;align-items:center;
  padding:0 14px;
  box-shadow:0 10px 22px rgba(0,0,0,.10);
}
.searchbar input{
  width:100%;
  border:none;outline:none;
  font-size:14px;
}
.searchbar .btn{
  height:40px; /* 同步 */
  padding:0 16px;
  border:none;
  border-radius:999px;
  background:linear-gradient(135deg,var(--orange),var(--orange2));
  color:#111827;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 10px 22px rgba(245,158,11,.25);
}
.searchbar .btn:hover{filter:brightness(.98)}

.hero{
  background: radial-gradient(1200px 600px at 15% 20%, rgba(245,158,11,.18) 0%, rgba(245,158,11,0) 55%),
              linear-gradient(135deg,var(--hero1),var(--hero2));
  color:#fff;
  padding:44px 0 30px 0;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .9fr;
  gap:22px;
  align-items:stretch;
}
.hero h1{
  margin:6px 0 10px 0;
  font-size:44px;
  letter-spacing:.5px;
}
.hero p{
  margin:0 0 14px 0;
  font-size:15px;
  color:rgba(255,255,255,.86);
}
.hero-actions{
  display:flex; gap:12px; flex-wrap:wrap;
  margin-top:14px;
}
.btn{
  border:none; cursor:pointer;
  border-radius:14px;
  padding:12px 16px;
  font-weight:800;
  display:inline-flex;
  align-items:center;
  gap:10px;
  box-shadow:0 12px 26px rgba(0,0,0,.12);
}
.btn.primary{
  background:linear-gradient(135deg,var(--orange),var(--orange2));
  color:#111827;
}
.btn.secondary{
  background:rgba(255,255,255,.14); /* 不再白色透明看不见 */
  color:#fff;
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
}
.btn.ghost{
  background:rgba(17,24,39,.35);
  color:#fff;
  border:1px solid rgba(255,255,255,.16);
}
.btn:hover{transform:translateY(-1px)}
.icon{
  width:18px;height:18px; /* 图标变大 */
  display:inline-block;
}

.hero-card{
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
  border-radius:18px;
  padding:16px 18px;
  backdrop-filter: blur(10px);
  box-shadow:0 16px 40px rgba(0,0,0,.18);
}
.hero-card h3{
  margin:2px 0 10px 0;
  font-size:16px;
}
.hero-card ul{
  margin:0; padding-left:18px;
  color:rgba(255,255,255,.88);
}
.hero-card li{margin:8px 0; font-size:14px}
.hero-card .check{
  display:flex;align-items:center;justify-content:space-between;
  border-top:1px dashed rgba(255,255,255,.18);
  padding-top:10px;
  margin-top:12px;
  font-size:12px;
  color:rgba(255,255,255,.72);
}

.section{padding:22px 0}
.panel{
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  border:1px solid rgba(15,23,42,.06);
  padding:16px;
}
.panel-row{
  display:flex;align-items:center;justify-content:space-between;
  gap:14px; flex-wrap:wrap;
}
.badge{
  display:inline-flex;align-items:center;gap:8px;
  padding:6px 10px;border-radius:999px;
  background:rgba(245,158,11,.14);
  border:1px solid rgba(245,158,11,.25);
  color:#7c2d12;
  font-size:12px;font-weight:800;
}
.cta-right{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
}
.pill{
  background:#f8fafc;border:1px solid var(--line);
  border-radius:999px;
  padding:8px 12px;
  font-size:13px;
}
.pill b{font-size:14px}
.btn-mini{
  border:none;cursor:pointer;
  border-radius:12px;
  padding:10px 14px;
  font-weight:900;
  background:linear-gradient(135deg,var(--orange),var(--orange2));
  color:#111827;
}

.h2{
  display:flex;align-items:flex-end;justify-content:space-between;
  gap:12px;
  margin:22px 0 12px 0;
}
.h2 h2{margin:0;font-size:22px}
.grid-8{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
}
.cat{
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 10px 22px rgba(15,23,42,.06);
  transition:.15s ease;
}
.cat:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(15,23,42,.10)}
.cat .img{
  height:92px;
  background:linear-gradient(135deg,#e2e8f0,#f8fafc);
  display:flex;align-items:center;justify-content:center;
}
.cat .img img{width:100%;height:100%;object-fit:cover}
.cat .body{padding:12px}
.cat .name{font-weight:900}
.cat .desc{font-size:12px;color:var(--muted);margin-top:6px}

.products{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
}
.pcard{
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 10px 22px rgba(15,23,42,.06);
  transition:.15s ease;
}
.pcard:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(15,23,42,.10)}
.pimg{
  height:130px;
  background:linear-gradient(135deg,#e2e8f0,#f8fafc);
}
.pimg img{width:100%;height:100%;object-fit:cover}
.pbody{padding:12px}
.ptitle{font-weight:900}
.pmeta{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}
.tag{
  font-size:12px;color:#334155;
  background:#f1f5f9;border:1px solid #e2e8f0;
  padding:5px 10px;border-radius:999px;
}
.price{font-weight:900;margin-top:6px}
.pfoot{
  display:flex;align-items:center;justify-content:space-between;
  padding:10px 12px;
  border-top:1px solid var(--line);
  font-size:12px;color:var(--muted);
}

.footer{
  background:linear-gradient(180deg,#233244,#1d2835);
  color:rgba(255,255,255,.85);
  padding:26px 0;
  margin-top:30px;
}
.footer .cols{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap:18px;
  align-items:start;
}
.footer h4{margin:0 0 10px 0;color:#fff}
.footer a{color:rgba(255,255,255,.85)}
.footer a:hover{text-decoration:underline}
.footer .bottom{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.12);
  display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;
  font-size:12px;
}

/* responsive */
@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr}
  .grid-8{grid-template-columns:repeat(2,1fr)}
  .products{grid-template-columns:repeat(2,1fr)}
  .searchbar{max-width:520px}
}
@media (max-width: 520px){
  .nav-links{display:none}
  .searchbar{max-width:100%}
  .grid-8{grid-template-columns:1fr}
  .products{grid-template-columns:1fr}
  .hero h1{font-size:34px}
}


/* Brand clickable */
a.home-link{
  display:inline-flex;
  align-items:center;
  gap:0;
  padding:8px 10px;
  border-radius:12px;
  color:#fff;
}
a.home-link:hover{
  background:rgba(255,255,255,.08);
}


/* Bigger badge for 招募中 */
.badge.big{
  font-size:14px;
  padding:8px 12px;
  font-weight:900;
  color:#111827;
  background:linear-gradient(135deg, rgba(245,158,11,.95), rgba(251,146,60,.92));
  border:1px solid rgba(245,158,11,.55);
  box-shadow:0 10px 22px rgba(245,158,11,.22);
}


/* hero-spacing-override */
.hero{
  padding-top: 28px !important;
  padding-bottom: 26px !important;
}
.hero h1,
.hero .hero-title{
  margin-bottom: 14px !important;  /* 标题到小文字的距离 */
}
.hero p,
.hero .hero-sub,
.hero .subtitle{
  margin-top: 0 !important;
  margin-bottom: 18px !important;  /* 小文字到按钮行的距离 */
  line-height: 1.75 !important;
}
.hero .cta-row,
.hero .actions,
.hero .hero-actions{
  margin-top: 0 !important;
  gap: 14px !important;
}


/* hero-button-override */
.hero .btn,
.hero .cta-row .btn,
.hero .actions .btn{
  padding: 11px 16px !important;
  border-radius: 14px !important;
}



/* brand-size-override */
.brand .title{ font-size:26px !important; }


/* ===== ZMgate Brand (exact control) ===== */
a.zmgate-brand{
  display:inline-flex !important;
  align-items:baseline !important;   /* key: baseline alignment */
  gap:0;
  text-decoration:none !important;
  cursor:pointer;
}
a.zmgate-brand .zg-main{
  display:inline-flex;
  align-items:baseline;
  font-size:26px !important;        /* ZMgate 26px */
  line-height:1 !important;
  font-weight:700;
}
a.zmgate-brand .zg-zm{
  color:#ff7a1a !important;         /* orange, adjust to your exact theme */
  display:inline-block;
}
a.zmgate-brand .zg-gate{
  color:#ffffff !important;
  display:inline-block;
}
a.zmgate-brand .zg-com{
  font-size:14px !important;        /* com stays smaller */
  line-height:1 !important;
  color:#ffffff !important;
  margin-left:2px;
  display:inline-block;
  opacity:.92;
}
/* ===== end ===== */

/* =========================
   NAVBAR TUNING (override)
   ========================= */

/* 1) 全站 container 加宽：减少左右空白（你说两边留白太宽） */
.container{
  max-width: 1440px !important;   /* 你想更窄/更宽就改这里：1360/1520 都行 */
  padding-left: 18px !important;
  padding-right: 18px !important;
}

/* 2) 顶部导航栏三段布局更舒展 */
.navbar .inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

/* 3) 左侧品牌块：让品牌更大 + com 也放大 */
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 320px;
}

/* 你的品牌链接是 .title.home-link */
.brand .title.home-link{
  display:inline-flex;
  align-items:flex-end;      /* 让 ZM 与 gate 视觉同一高度 */
  gap:4px;
  text-decoration:none;
  line-height:1;
}

/* 主体：ZMgate（继续放大） */
.brand .title .brand-main{
  display:inline-flex;
  align-items:baseline;
  font-size:32px;            /* 你说“不够大继续放大”：先给 32px */
  font-weight:900;
  letter-spacing:.2px;
}

/* ZM：橙色 */
.brand .title .zm{
  color:#ff7a18;
}

/* gate：白色 */
.brand .title .gate{
  color:#ffffff;
}

/* .com：适当放大，不再太小 */
.brand .title .dotcom{
  font-size:20px;            /* 原来你想 16，这里提高到 20 */
  font-weight:800;
  color:rgba(255,255,255,.92);
  transform: translateY(-2px);
}

/* 4) 顶部搜索框：再加长一些 + 高度更协调 */
.searchbar{
  flex: 1;
  max-width: 860px;          /* “搜索框再加长一些” */
  min-width: 420px;
}

.searchbar .box{
  flex:1;
}

.searchbar input{
  width:100%;
  height:42px;
  padding:0 14px;
  font-size:14px;
}

.searchbar .btn{
  height:42px;
  padding:0 18px;
  font-size:14px;
}

/* 5) 右侧导航：字号放大 + 更分散 */
.nav-right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  min-width: 520px;
}

.nav-links{
  display:flex;
  align-items:center;
  gap:22px;                  /* 分散一点 */
}

.nav-links a{
  font-size:16px;            /* 导航整体再放大 */
  font-weight:800;
  opacity:.95;
  white-space:nowrap;
}

.nav-links a:hover{
  opacity:1;
}

/* 6) 小屏自适应（避免挤爆） */
@media (max-width: 1100px){
  .searchbar{ max-width: 520px; min-width: 260px; }
  .nav-right{ min-width: 360px; }
  .nav-links{ gap:14px; }
  .nav-links a{ font-size:15px; }
  .brand .title .brand-main{ font-size:28px; }
  .brand .title .dotcom{ font-size:18px; }
}


/* ===== FORCE OVERRIDE (ensure visible changes) ===== */
.container{ max-width: 1480px !important; padding-left:18px !important; padding-right:18px !important; }

.brand .title.home-link{ display:inline-flex !important; align-items:flex-end !important; gap:6px !important; line-height:1 !important; }
.brand .title.home-link .brand-main{ font-size:36px !important; font-weight:900 !important; }  /* ZMgate 放大 */
.brand .title.home-link .dotcom{ font-size:22px !important; font-weight:800 !important; opacity:.95 !important; transform: translateY(-2px) !important; } /* .com 放大 */
.brand .title.home-link .gate{ color:#fff !important; }
.brand .title.home-link .zm{ color:#ff7a18 !important; }

.searchbar{ flex:1 !important; max-width: 980px !important; min-width: 460px !important; } /* 搜索框加长 */
.searchbar input{ height:42px !important; }

.nav-links a{ font-size:16px !important; font-weight:800 !important; }



/* ZMGATE OVERRIDE 2026-02-02 */
/* 只改：导航品牌大小/对齐、搜索框更长、首屏左右两块靠近、首屏背景变亮。其它不动 */

/* ========== 1) 顶部品牌：ZMgate 更大，.com 也变大，ZM/gate 同一高度 ========== */
.navbar .brand .zmgate-brand{
  display:inline-flex !important;
  align-items:baseline !important;
  gap:6px !important;
  line-height:1 !important;
  text-decoration:none !important;
}

.navbar .brand .zmgate-brand .zg-main{
  display:inline-flex !important;
  align-items:baseline !important;
  font-size:44px !important;     /* ZMgate 更大（不够再加到 48） */
  font-weight:900 !important;
  letter-spacing:.2px !important;
}

.navbar .brand .zmgate-brand .zg-zm{ color:#ff7a18 !important; }
.navbar .brand .zmgate-brand .zg-gate{ color:#ffffff !important; }

.navbar .brand .zmgate-brand .zg-com{
  font-size:24px !important;     /* .com 放大 */
  font-weight:800 !important;
  color:rgba(255,255,255,.92) !important;
  transform: translateY(-2px) !important;
}

/* ========== 2) 搜索框：再加长一点（只影响顶部导航） ========== */
.navbar .searchbar{
  flex:1 !important;
  max-width:1100px !important;
  min-width:520px !important;
}
.navbar .searchbar input{ height:42px !important; }
.navbar .searchbar .btn{ height:42px !important; }

/* ========== 3) 首屏左右两块：中间太空 -> 靠近一些 ========== */
.hero .hero-grid{
  gap:14px !important;
  grid-template-columns: 1.05fr 0.95fr !important;
}

/* 右侧卡片别太宽，避免把中间撑空 */
.hero .hero-grid > :last-child{
  max-width: 620px !important;
  justify-self:end !important;
}

/* ========== 4) 首屏背景：变亮一点（只改 hero） ========== */
.hero{
  position:relative !important;
  background: linear-gradient(120deg, #3a97ad 0%, #2b6ea0 55%, #24457a 100%) !important;
}
.hero:before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 420px at 18% 20%, rgba(255,255,255,.16), rgba(255,255,255,0) 60%),
    radial-gradient(760px 380px at 80% 28%, rgba(255,210,160,.10), rgba(255,255,255,0) 65%);
  pointer-events:none;
}
.hero .container{ position:relative; z-index:1; }

/* END ZMGATE OVERRIDE 2026-02-02 */


/* ===== NAV FIX: tag single-line + remove tiny icon + move search right ===== */

/* 1) 删除 ZMgate.com 左边的小图标（不改 HTML，直接隐藏） */
.navbar .brand .logo-dot{
  display:none !important;
}

/* 2) 让品牌区永远单行，不换行挤压 */
.navbar .brand{
  display:flex !important;
  align-items:center !important;
  flex-wrap:nowrap !important;
  gap:12px !important;
}

/* 3) “B2B2C 跨境供应平台”强制单行显示（不换行） */
.navbar .brand .tag{
  display:inline-block !important;
  white-space:nowrap !important;
  line-height:1 !important;
  font-size:13px !important;     /* 稍微调小一点更稳 */
  opacity:.9 !important;
  margin-left:10px !important;
}

/* 4) 搜索框整体往右挪一点（给品牌+tag留空间） */
.navbar .searchbar{
  margin-left:26px !important;
}

/* END NAV FIX */
.navbar .brand{ min-width:520px !important; }
.navbar .searchbar{ margin-left:38px !important; }

/* =========================
   NAV RECOVER 2026-02-02
   目的：修复搜索框右移过头导致右侧导航出屏
   只改 navbar，不动其它区域
   ========================= */

/* 1) 隐藏品牌前的小图标（你说可删） */
.navbar .brand .logo-dot{
  display:none !important;
}

/* 2) 三段布局：左(品牌) 中(搜索) 右(导航) */
.navbar .inner{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:18px !important;
}

/* 3) 品牌块：不要再用 min-width 把空间吃死 */
.navbar .brand{
  display:flex !important;
  align-items:center !important;
  flex-wrap:nowrap !important;
  gap:12px !important;

  flex:0 0 auto !important;
  min-width:0 !important;
  max-width:520px !important;
}

/* 4) “B2B2C 跨境供应平台”强制单行，但别挤爆：必要时省略号 */
.navbar .brand .tag{
  display:inline-block !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;

  max-width:170px !important;
  line-height:1 !important;
  font-size:12px !important;
  opacity:.9 !important;
  margin-left:10px !important;
}

/* 5) 搜索框：占中间主要空间，但不要再用 margin-left 推走 */
.navbar .searchbar{
  flex:1 1 520px !important;
  max-width:860px !important;     /* 你要“加长”，但要给右侧留位置 */
  min-width:420px !important;
  margin-left:0 !important;       /* 关键：撤销你刚才的 26/38px 右移 */
}

/* 6) 右侧导航：固定为自适应宽度，保证在屏幕内 */
.navbar .nav-right{
  flex:0 0 auto !important;
  min-width:0 !important;
}

/* 7) 右侧导航文字：稍微收紧间距，避免挤出屏幕 */
.navbar .nav-links{
  display:flex !important;
  align-items:center !important;
  gap:18px !important;
}
.navbar .nav-links a{
  font-size:15px !important;
  font-weight:800 !important;
  white-space:nowrap !important;
}

/* 8) 小屏兜底：屏幕窄时自动“让搜索框变短”，优先保住右侧菜单 */
@media (max-width: 1400px){
  .navbar .searchbar{ max-width:720px !important; }
  .navbar .brand .tag{ max-width:140px !important; }
}
@media (max-width: 1200px){
  .navbar .searchbar{ max-width:560px !important; min-width:300px !important; }
  .navbar .nav-links{ gap:14px !important; }
  .navbar .nav-links a{ font-size:14px !important; }
}

/* ===== END NAV RECOVER 2026-02-02 ===== */


/* ===== Fix: show full images on home cards (no cropping) ===== */

/* category card image area */
.cat .img{
  aspect-ratio: 4 / 3;
  height: auto !important;
  overflow: hidden;
  background: #f3f4f6;
}
.cat .img img{
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important; /*关键：不裁切*/
  display: block;
}

/* product card image area */
.pcard .pimg{
  aspect-ratio: 4 / 3;
  height: auto !important;
  overflow: hidden;
  background: #f3f4f6;
}
.pcard .pimg img{
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important; /*关键：不裁切*/
  display: block;
}
