/* ==========================================================================
   glb.css — 果老板 UI 结构移植（橙色版）
   结构/间距/交互照搬 guolaoban.com，绿→橙映射：
   green → brand-500 / green-deep → brand-600 / green-dark → brand-800
   强调色（价格/按钮/角标）保留亮橙 #FF7A1A
   ========================================================================== */

:root {
  --g-main:   #EB6617;   /* 主结构色（导航/标题条/选中态）*/
  --g-deep:   #D2540B;   /* 深一档 */
  --g-dark:   #6F2C0E;   /* 工具条/页脚深色 */
  --g-soft:   #FFF2E6;   /* 浅底（果老板 orange-soft 原值，选中/hover 底色可见）*/
  --g-accent: #FF7A1A;   /* 强调：价格/加入询价按钮/角标 */
  --g-accent-deep: #E5640A;
  --g-ink:    #23302A;
  --g-ink-2:  #55655C;
  --g-ink-3:  #88968D;
  --g-line:   #E9E3DE;
  --g-radius: 4px;
  --g-shadow: 0 6px 20px rgba(174, 65, 9, .08);
  --g-shadow-lg: 0 12px 34px rgba(174, 65, 9, .13);
}

/* ===== 全站底色（果老板浅灰）===== */
body { background: #F4F6F5; }

/* ===== 页脚（深橙棕，与工具条同色系）===== */
.site-footer { background: var(--g-dark); }
.site-footer .footer__brand .brand__name { color: #fff; }
.site-footer a:hover { color: var(--g-accent); }

/* ===== 工具条（覆盖 .topbar）===== */
.topbar { background: var(--g-dark); color: rgba(255,255,255,.7); font-size: 12.5px; }
.topbar__in { height: 34px; min-height: 34px; padding-block: 0; }
.topbar__tag { color: rgba(255,255,255,.7); }
.topbar__links { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar__links a { color: rgba(255,255,255,.7); }
.topbar__links a:hover { color: #fff; }

/* ===== 头部（覆盖 .site-header）===== */
.site-header { background: #fff; border-bottom: 1px solid var(--g-line); position: relative; z-index: 30; }
.site-header__in { height: 84px; min-height: 84px; gap: 28px; }
.brand__name { font-size: 19px; font-weight: 800; letter-spacing: .5px; }
.brand__sub { font-size: 9.5px; letter-spacing: .14em; }

/* 搜索框（覆盖 .search）*/
.search {
  flex: 1; max-width: 620px; height: 46px;
  border: 2px solid var(--g-main); border-radius: 4px;
  background: #fff; overflow: hidden; padding: 0; gap: 0; margin-inline: 0;
}
.search__cat { font-size: 14px; font-weight: 600; padding: 0 14px; border-right: 1px solid var(--g-line); }
.search svg { width: 17px; height: 17px; }
.search input { font-size: 14px; padding: 0 14px; }
.search button {
  height: 100%; padding: 0 24px; border: none;
  background: var(--g-main); color: #fff; font-size: 15px; font-weight: 700;
}
.search button:hover { background: var(--g-deep); }

/* 询价单按钮（覆盖 .inquiry-btn）— 果老板 cartbtn 风格 */
.inquiry-btn {
  display: flex; align-items: center; gap: 9px;
  height: 44px; padding: 0 18px;
  background: #fff !important; color: var(--g-ink) !important;
  border: 1.5px solid var(--g-line) !important;
  border-radius: 4px; font-size: 14.5px; font-weight: 700;
  box-shadow: none !important;
}
.inquiry-btn:hover { border-color: var(--g-main) !important; box-shadow: var(--g-shadow) !important; }
.inquiry-count {
  min-width: 20px; height: 20px; border-radius: 999px;
  background: var(--g-accent); color: #fff; font-size: 12px;
  display: grid; place-items: center; padding: 0 5px;
  margin-inline-start: 0;
}

/* ===== 分类导航条（通栏，果老板 catnav 原版结构）===== */
.nav--bar { background: var(--g-main); position: sticky; top: 0; z-index: 29; padding: 0; }
.catnav-in { display: flex; align-items: center; height: 48px; gap: 4px; }
.catnav-all {
  display: flex; align-items: center; gap: 9px;
  background: var(--g-deep); color: #fff;
  font-size: 15px; font-weight: 700;
  height: 48px; padding: 0 20px; margin-right: 8px; flex: none;
}
.catnav-all svg { width: 18px; height: 18px; }
.catnav-link {
  color: rgba(255,255,255,.9); font-size: 14.5px; font-weight: 600;
  padding: 0 14px; height: 48px;
  display: flex; align-items: center; white-space: nowrap;
  transition: background .18s, color .18s;
}
.catnav-link:hover { background: rgba(255,255,255,.14); color: #fff; }
.catnav-link[aria-current="page"] { background: rgba(255,255,255,.14); color: #fff; }
@media (max-width: 960px) {
  .catnav-in { overflow-x: auto; white-space: nowrap; }
  .catnav-link { padding: 0 12px; }
  .catnav-all { display: none; }
}

/* ===== 商城主体 ===== */
.market {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  gap: 18px;
  padding-top: 18px;
  padding-bottom: 40px;
  align-items: start;
}

/* 左侧栏 */
.market-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 66px; }
.side-box { background: #fff; border-radius: var(--g-radius); border: 1px solid var(--g-line); overflow: hidden; }
.side-title {
  font-size: 13px; font-weight: 800; letter-spacing: .08em;
  color: #fff; background: var(--g-main); padding: 11px 16px;
}
.side-cats { list-style: none; margin: 0; padding: 0; }
.side-cats li { border-bottom: 1px solid var(--g-line); }
.side-cats li:last-child { border-bottom: none; }
.cat-item, .use-item {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 11px 16px; border: none; background: none; cursor: pointer;
  font-size: 14.5px; line-height: 1.45; color: var(--g-ink-2); text-align: left;
  transition: background .16s, color .16s;
}
.cat-item span { min-width: 0; overflow-wrap: anywhere; }
.cat-item i { font-style: normal; font-size: 12px; color: var(--g-ink-3); font-variant-numeric: tabular-nums; }
.cat-item:hover i { color: var(--g-deep); }

/* 选中/hover：底色 + 左侧 3px 竖条（border-left 实现，避免 box-shadow 渲染歧义）*/
.cat-item.active, .use-item.active {
  background: #FFF2E6; color: var(--g-accent-deep); font-weight: 700;
  box-shadow: none; border-left: 3px solid var(--g-accent);
  padding-left: 13px;
}
.cat-item:hover:not(.active), .use-item:hover:not(.active) {
  background: var(--g-soft); color: var(--g-deep);
}

.side-card { background: #fff; border: 1px solid var(--g-line); border-radius: var(--g-radius); padding: 18px 16px; }
.side-serve h4 { font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.side-serve p { font-size: 13px; color: var(--g-ink-2); line-height: 1.75; }
.side-tel {
  background: linear-gradient(150deg, var(--g-deep), var(--g-main));
  border: none; color: #fff; text-align: center;
}
.side-tel h4 { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.8); margin-bottom: 6px; }
.side-phone { display: block; font-size: 20px; font-weight: 800; color: #fff; letter-spacing: .3px; }
.side-phone:hover { color: #FFD9A8; }
.side-tel p { font-size: 12px; color: rgba(255,255,255,.7); margin-top: 6px; }

/* 主体列 */
.maincol { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* Banner 行 */
.banner-row { display: grid; grid-template-columns: minmax(0,1fr) 240px; gap: 14px; }
.glb-banner {
  position: relative; overflow: hidden; border-radius: var(--g-radius);
  padding: 38px 36px; min-height: 250px;
  background: linear-gradient(135deg, #8A340C 0%, #D2540B 55%, #EB6617 100%);
  color: #fff; display: flex; align-items: center;
}
.banner-bg span { position: absolute; border-radius: 50%; pointer-events: none; }
.banner-bg span:first-child { width: 300px; height: 300px; right: -80px; top: -120px; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%); }
.banner-bg span:last-child { width: 220px; height: 220px; left: -90px; bottom: -120px; background: radial-gradient(circle, rgba(255,122,26,.35), transparent 70%); }
.banner-text { position: relative; }
.banner-tag { font-size: 13px; font-weight: 700; color: #FFD9A8; margin-bottom: 12px; letter-spacing: .06em; }
.glb-banner h1, .glb-banner h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; line-height: 1.28; margin-bottom: 12px; letter-spacing: -.01em; }
.glb-banner h1 span, .glb-banner h2 span { color: #FFC078; }
.banner-text > p { color: rgba(255,255,255,.82); font-size: 15px; margin-bottom: 22px; }
.banner-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-orange-g {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 24px; border-radius: 4px;
  background: var(--g-accent); color: #fff; font-size: 15px; font-weight: 700;
  box-shadow: 0 6px 18px rgba(255,122,26,.35);
  transition: transform .18s, background .18s;
}
.btn-orange-g:hover { background: var(--g-accent-deep); transform: translateY(-2px); }
.btn-ghost-g {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 24px; border-radius: 4px;
  background: rgba(255,255,255,.15); color: #fff; border: 1.5px solid rgba(255,255,255,.4);
  font-size: 15px; font-weight: 700; transition: background .18s;
}
.btn-ghost-g:hover { background: rgba(255,255,255,.25); }

.promo-stack-g { display: flex; flex-direction: column; gap: 14px; }
.promo-g {
  flex: 1; border-radius: var(--g-radius); padding: 22px 20px;
  display: flex; flex-direction: column; justify-content: center;
  color: #fff; position: relative; overflow: hidden;
}
.promo-g b { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.promo-g span { font-size: 13px; color: rgba(255,255,255,.8); }
.promo-a { background: linear-gradient(140deg, #C97B1B, #FF7A1A); }
.promo-b { background: linear-gradient(140deg, #EB6617, #6F2C0E); }

/* 服务条（果老板 1px 分隔风格）*/
.featbar-g {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--g-line);
  border: 1px solid var(--g-line); border-radius: var(--g-radius); overflow: hidden;
}
.featbar-g li { display: flex; align-items: center; gap: 12px; background: #fff; padding: 16px 20px; }
.featbar-g b { display: block; font-size: 14.5px; font-weight: 700; }
.featbar-g span { font-size: 12.5px; color: var(--g-ink-3); }

/* 白卡片区块 */
.block { background: #fff; border: 1px solid var(--g-line); border-radius: var(--g-radius); padding: 22px; }
.block-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding-bottom: 14px; margin-bottom: 18px; border-bottom: 2px solid var(--g-soft);
}
.block-head h2 { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 9px; }
.block-head h2::before { content: ""; width: 4px; height: 19px; border-radius: 3px; background: var(--g-main); }
.block-head h2 small { font-size: 11px; font-weight: 700; color: var(--g-accent); letter-spacing: .12em; }
.block-head a { font-size: 13.5px; color: var(--g-ink-3); font-weight: 600; }
.block-head a:hover { color: var(--g-main); }
.result-count { font-size: 13.5px; color: var(--g-ink-3); }
.result-count b { color: var(--g-accent); font-size: 15px; }

/* 热销横排（竖卡）*/
.hot-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hcard {
  display: flex; flex-direction: column;
  border: 1px solid var(--g-line); border-radius: 4px; overflow: hidden; background: #fff;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.hcard:hover { border-color: var(--g-main); box-shadow: var(--g-shadow); transform: translateY(-3px); }
.hcard-img { aspect-ratio: 1 / 1; display: block; }
.hcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; background: #fff; }
.hcard-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.hcard-body h3 { font-size: 14.5px; font-weight: 700; margin-bottom: 4px; line-height: 1.45; }
.hcard-body p { font-size: 12.5px; color: var(--g-ink-3); margin-bottom: 8px; }
.g-price { font-size: 19px; font-weight: 800; color: var(--g-accent); margin-top: auto; }
.g-price small { font-size: 12px; font-weight: 700; }

/* 筛选条 */
.filterbar { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.chip-g {
  padding: 7px 16px; border-radius: 999px; border: 1px solid var(--g-line); background: #fff;
  font-size: 13.5px; color: var(--g-ink-2); cursor: pointer; font-weight: 600;
  transition: all .16s;
}
.chip-g:hover { border-color: var(--g-main); color: var(--g-deep); }
.chip-g.active { background: var(--g-main); border-color: var(--g-main); color: #fff; }

/* 商品网格（3 列）*/
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.pcard {
  border: 1px solid var(--g-line); border-radius: 4px; overflow: hidden; background: #fff;
  display: flex; flex-direction: column;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.pcard:hover { border-color: var(--g-main); box-shadow: var(--g-shadow-lg); transform: translateY(-3px); }
.pimg { position: relative; aspect-ratio: 1 / 1; display: block; background: #fff; }
.pimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ptag {
  position: absolute; left: 10px; top: 10px;
  font-size: 11.5px; font-weight: 700; color: #fff;
  padding: 3px 10px; border-radius: 4px;
}
.ptag.hot { background: var(--g-accent); }
.ptag.new { background: var(--g-main); }
.pbody { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.pbody h3 { font-size: 15px; font-weight: 700; line-height: 1.45; margin-bottom: 6px; }
.pdesc { font-size: 13px; color: var(--g-ink-3); line-height: 1.6; margin-bottom: 10px; }
.pspec { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pspec li {
  font-size: 11.5px; color: var(--g-deep); background: var(--g-soft);
  padding: 3px 9px; border-radius: 4px; font-weight: 600;
}
.pfoot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding-top: 12px; border-top: 1px dashed var(--g-line);
}
.pprice { font-size: 19px; font-weight: 800; color: var(--g-accent); white-space: nowrap; }
.pbtn {
  height: 36px; padding: 0 15px; border: none; border-radius: 4px;
  background: var(--g-accent); color: #fff;
  font-size: 13.5px; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: background .18s;
}
.pbtn:hover { background: var(--g-accent-deep); }
.pbtn.added { background: var(--g-main); cursor: default; }

/* 悬浮询价单 */
.float-cart {
  position: fixed; right: 20px; bottom: 22px; z-index: 60;
  width: 64px; height: 64px; border-radius: 6px;
  background: linear-gradient(140deg, var(--g-main), var(--g-deep));
  color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  box-shadow: 0 10px 26px rgba(174, 65, 9, .35);
  transition: transform .18s;
}
.float-cart:hover { transform: translateY(-3px); }
.float-cart span { font-size: 10.5px; font-weight: 600; }
.float-cart b {
  position: absolute; right: -4px; top: -4px;
  min-width: 22px; height: 22px; border-radius: 999px;
  background: var(--g-accent); color: #fff; font-size: 12px;
  display: grid; place-items: center; padding: 0 5px;
  border: 2px solid #fff;
}

/* ===== 响应式 ===== */
@media (max-width: 1100px) {
  .search__cat { display: none; }
  .hot-row { grid-template-columns: repeat(2, 1fr); }
  .pgrid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 960px) {
  .market { grid-template-columns: 1fr; }
  .market-side { position: static; }
  .side-cats { display: flex; flex-wrap: wrap; }
  .side-cats li { border: none; }
  .cat-item, .use-item {
    width: auto; border-radius: 999px; box-shadow: none !important;
    border: 1px solid var(--g-line); padding: 8px 14px; font-size: 13.5px;
  }
  .cat-item i { margin-left: 6px; }
  .banner-row { grid-template-columns: 1fr; }
  .promo-stack-g { flex-direction: row; }
  .featbar-g { grid-template-columns: 1fr 1fr; }
  .site-header__in { height: auto; flex-wrap: wrap; padding: 14px 0; gap: 14px; }
}
@media (max-width: 560px) {
  .hot-row { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: 1fr; }
  .featbar-g { grid-template-columns: 1fr; }
  .promo-stack-g { flex-direction: column; }
  .glb-banner { padding: 28px 22px; min-height: auto; }
  .float-cart { width: 56px; height: 56px; right: 14px; bottom: 14px; }
  .topbar__links { display: none; }
  .topbar__in { height: auto; padding: 7px 0; }
}
