/* ENIS × home72 复制站 —— 版式按 home72.com 实测结构 1:1 复刻
   量取依据：home72 style.css / index.css 的实测取值
   容器 1080px（原站 <1280 屏时 JS 固定为 1080），正文 12px 微软雅黑，
   描边 #e8e8e8，正文 #2F2F2F，链接 #006bd0，浅底 #f0f0f0。 */

:root {
  --w: 1080px;
  --ink: #2f2f2f;
  --ink-2: #3f3f3f;
  --muted: #9e9e9e;
  --line: #e8e8e8;
  --blue: #006bd0;
  --bg-soft: #f0f0f0;
  --bg-page: #fff;
  --price: #d40000;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-size: 12px;
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", Arial, sans-serif;
  line-height: 150%;
  color: var(--ink);
  background: var(--bg-page);
  min-width: 1180px;
}
a { text-decoration: none; color: var(--ink); }
a:hover { color: var(--blue); }
li { list-style: none; }
img { display: block; border: 0; }
input, select, button { font-family: inherit; font-size: 12px; outline: none; }
.wrap { width: var(--w); margin: 0 auto; }
.clear { clear: both; }

/* ---------- 顶部细条 ---------- */
.fd_top0 { background: #f5f5f5; border-bottom: 1px solid var(--line); height: 30px; line-height: 30px; }
.fd_top0 .left { float: left; color: var(--muted); }
.fd_top0 .left b { color: var(--ink-2); font-weight: normal; }
.fd_top0 .right { float: right; }
.fd_top0 .right li { float: left; padding: 0 12px; color: var(--ink-2); }
.fd_top0 .right li em { font-style: normal; color: var(--blue); }
.fd_top0 .right img { display: inline-block; vertical-align: middle; margin-left: 6px; }

/* ---------- 头部：logo + 搜索 ---------- */
.fd_top1 { padding: 18px 0 12px; }
.fd_top1 .logo { float: left; width: 220px; }
.fd_top1 .logo a { display: block; }
.fd_top1 .logo svg { display: block; }
.fd_top1 .search { float: left; width: 640px; margin-left: 40px; }
.fd_top1 .search .row { display: flex; }
.fd_top1 .search select {
  width: 132px; height: 34px; border: 1px solid var(--blue); border-right: 0;
  padding: 0 8px; color: var(--ink-2); background: #fff;
}
.fd_top1 .search input[type=text] {
  flex: 1; height: 34px; border: 1px solid var(--blue); padding: 0 10px; font-size: 13px;
}
.fd_top1 .search button {
  width: 84px; height: 34px; background: var(--blue); color: #fff; border: 0; cursor: pointer;
  font-size: 13px; letter-spacing: 2px;
}
.fd_top1 .search button:hover { background: #0057ab; }
.fd_top1 .hot { margin-top: 8px; color: var(--muted); }
.fd_top1 .hot a { color: var(--muted); margin-right: 12px; }
.fd_top1 .hot a:hover { color: var(--blue); }
.fd_top1 .slogan { float: right; text-align: right; color: var(--muted); line-height: 20px; padding-top: 6px; }
.fd_top1 .slogan b { color: var(--ink); font-size: 15px; }

/* ---------- 导航条 ---------- */
.fd_top2 { background: #f0f0f0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fd_top2 .navs { position: relative; height: 36px; line-height: 36px; }
.fd_top2 .cat { float: left; position: relative; }
.fd_top2 .cat .t {
  width: 210px; height: 36px; background: #2f2f2f; color: #fff; font-size: 14px;
  padding-left: 14px; font-weight: bold;
}
.fd_top2 .links { float: left; }
.fd_top2 .links li { float: left; padding: 0 22px; font-size: 14px; }
.fd_top2 .links li a { color: var(--ink-2); }
.fd_top2 .links li a:hover { color: var(--blue); }

/* 全部分类 mega menu */
.fd30_cat {
  position: absolute; left: 0; top: 36px; width: 970px; background: #fff; z-index: 40;
  border: 1px solid var(--line); border-top: 0; box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
  display: none;
}
.fd_top2 .cat:hover .fd30_cat { display: block; }
.fd30_cat .cols { display: flex; padding: 12px 0 14px; }
.fd30_cat .col { width: 235px; padding: 0 12px; }
.fd30_cat .col h3 { height: auto; background: none; text-align: left; padding: 0 0 6px; font-size: 14px; color: var(--ink); }
.fd30_cat .col h3 a { color: var(--ink); }
.fd30_cat .col li { line-height: 26px; height: 26px; overflow: hidden; }
.fd30_cat .col li a { color: var(--ink-2); font-size: 12px; }
.fd30_cat .col li a:hover { color: var(--blue); }
.fd30_cat .col li.more a { color: var(--blue); }

/* ---------- 轮播 ---------- */
.ads { position: relative; margin-top: 12px; }
.ads .slide { display: none; }
.ads .slide.on { display: block; }
.ads .slide img { width: var(--w); height: 460px; object-fit: cover; }
.ads .dots { position: absolute; left: 50%; bottom: 16px; margin-left: -30px; text-align: center; }
.ads .dots i { display: inline-block; width: 10px; height: 10px; background: rgba(255, 255, 255, .6); margin: 0 4px; cursor: pointer; border-radius: 50%; }
.ads .dots i.on { background: var(--blue); }
.ads .arrows span {
  position: absolute; top: 50%; margin-top: -22px; width: 44px; height: 44px; line-height: 42px;
  text-align: center; background: rgba(0, 0, 0, .35); color: #fff; font-size: 26px; cursor: pointer;
}
.ads .arrows .prev { left: 10px; }
.ads .arrows .next { right: 10px; }

/* ---------- 楼层 ---------- */
.goods_cat { margin-top: 26px; }
.goods_cat .i_t { position: relative; height: 40px; background: #f0f0f0; border-bottom: 2px solid var(--blue); }
.goods_cat .i_t span { float: left; font-size: 18px; font-weight: bold; line-height: 40px; padding-left: 12px; }
.goods_cat .i_t .more { position: absolute; right: 12px; top: 12px; color: var(--ink-2); text-decoration: underline; }
.goods_cat_info { display: flex; flex-wrap: wrap; border: 1px solid var(--line); border-top: 0; }
.prcitem { width: 216px; padding: 14px 0 12px; }
.prcitem .p { height: 216px; overflow: hidden; }
.prcitem .p img { width: 216px; height: 216px; object-fit: cover; transition: transform .35s; }
.prcitem .p:hover img { transform: scale(1.06); }
.prcitem .name { height: 36px; line-height: 18px; overflow: hidden; margin-top: 8px; padding: 0 12px; color: var(--ink-2); }
.prcitem .name a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prcitem .prices { padding: 0 12px; margin-top: 4px; }
.prcitem .prices em { font-style: normal; color: var(--price); font-size: 14px; font-weight: bold; }
.prcitem .btn { margin: 8px 12px 0; display: inline-block; border: 1px solid var(--blue); color: var(--blue); padding: 3px 12px; }
.prcitem .btn:hover { background: var(--blue); color: #fff; }

/* ---------- 服务保障条 ---------- */
.index_topmes { margin-top: 26px; border: 1px solid var(--line); background: #fafafa; }
.index_topmes li { float: left; width: 20%; text-align: center; line-height: 46px; color: var(--ink-2); font-size: 14px; }

/* ---------- 页脚 ---------- */
.footer_wrap { margin-top: 30px; background: #f5f5f5; border-top: 1px solid var(--line); padding: 24px 0 18px; }
.footer { display: flex; }
.footer .col { width: 200px; }
.footer dt { font-weight: bold; color: var(--ink); margin-bottom: 8px; }
.footer dd { line-height: 26px; color: var(--muted); }
.footer dd a { color: var(--muted); }
.footer dd a:hover { color: var(--blue); }
.footer .phone p { line-height: 24px; color: var(--muted); }
.footer .phone .num { font-size: 18px; color: var(--ink); font-weight: bold; }
.footer .qr { text-align: center; }
.footer .qr img { width: 140px; margin: 6px 0; }
.footer .copy { margin-top: 16px; border-top: 1px solid #e2e2e2; padding-top: 12px; color: var(--muted); text-align: center; line-height: 22px; }

/* ---------- 右侧悬浮 ---------- */
.right_nav { position: fixed; right: 0; top: 50%; margin-top: -180px; z-index: 50; }
.right_nav li { position: relative; width: 58px; height: 58px; background: #f7f7f7; border: 1px solid var(--line); border-bottom: 0; }
.right_nav li:last-child { border-bottom: 1px solid var(--line); }
.right_nav .it { text-align: center; color: var(--ink-2); font-size: 11px; padding-top: 8px; }
.right_nav .it i { display: block; font-style: normal; font-size: 13px; color: var(--blue); margin-bottom: 2px; }
.right_nav .ii { position: absolute; right: 58px; top: -1px; width: 190px; background: #fff; border: 1px solid var(--line);
  padding: 14px; display: none; box-shadow: -2px 2px 8px rgba(0, 0, 0, .08); }
.right_nav li:hover .ii { display: block; }
.right_nav .ii p { line-height: 22px; color: var(--ink-2); }
.right_nav .ii img { width: 150px; margin: 6px 0; }
.right_nav .count { position: absolute; right: 8px; top: 4px; background: var(--price); color: #fff;
  border-radius: 8px; padding: 0 5px; font-size: 11px; display: none; }

/* ---------- 左侧楼层导航 ---------- */
.gotop { position: fixed; left: 0; top: 120px; z-index: 50; width: 34px; }
.gotop li { width: 34px; height: 34px; line-height: 34px; text-align: center; background: #f7f7f7;
  border: 1px solid var(--line); border-bottom: 0; color: var(--ink-2); font-size: 12px; cursor: pointer; }
.gotop li:last-child { border-bottom: 1px solid var(--line); }
.gotop li b { display: none; }
.gotop li:hover { background: #2f2f2f; }
.gotop li:hover b { display: inline; color: #fff; }
.gotop li:hover span { display: none; }

/* ---------- 内页：分类页 ---------- */
.crumb { padding: 14px 0; color: var(--muted); }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--blue); }
.crumb span { margin: 0 6px; }
.cat-head { border: 1px solid var(--line); border-bottom: 0; background: #f0f0f0; padding: 14px 16px; }
.cat-head h1 { font-size: 18px; color: var(--ink); }
.cat-head .subs { margin-top: 8px; }
.cat-head .subs a { display: inline-block; margin-right: 14px; color: var(--ink-2); }
.cat-head .subs a:hover { color: var(--blue); }
.cat-grid { display: flex; flex-wrap: wrap; border: 1px solid var(--line); }
.cat-grid .cell { width: 25%; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cat-grid .cell:nth-child(4n) { border-right: 0; }
.cat-grid .cell .p { height: 220px; overflow: hidden; }
.cat-grid .cell .p img { width: 100%; height: 220px; object-fit: cover; transition: transform .35s; }
.cat-grid .cell .p:hover img { transform: scale(1.05); }
.cat-grid .cell .name { margin-top: 10px; padding: 0 14px; height: 34px; overflow: hidden; color: var(--ink-2); line-height: 17px; }
.cat-grid .cell .prices { padding: 0 14px; }
.cat-grid .cell .prices em { font-style: normal; color: var(--price); font-size: 14px; font-weight: bold; }
.pager { padding: 22px 0; text-align: center; }
.pager a, .pager span {
  display: inline-block; min-width: 30px; height: 28px; line-height: 28px; padding: 0 9px;
  border: 1px solid var(--line); margin: 0 3px; background: #fff;
}
.pager a:hover { border-color: var(--blue); color: var(--blue); }
.pager span.cur { background: var(--blue); border-color: var(--blue); color: #fff; }
.pager a.disabled { color: var(--muted); cursor: default; }

/* ---------- 内页：商品详情 ---------- */
.goods-detail { display: flex; padding: 10px 0 30px; }
.gd-gallery { width: 460px; }
.gd-main { width: 460px; height: 460px; overflow: hidden; border: 1px solid var(--line); position: relative; }
.gd-main img { width: 460px; height: 460px; object-fit: cover; }
.gd-thumbs { margin-top: 10px; }
.gd-thumbs img { width: 72px; height: 72px; object-fit: cover; border: 1px solid var(--line); margin-right: 8px; cursor: pointer; }
.gd-thumbs img.on { border-color: var(--blue); }
.gd-info { flex: 1; padding-left: 30px; }
.gd-info h1 { font-size: 20px; line-height: 30px; color: var(--ink); font-weight: normal; }
.gd-price { background: #f7f7f7; border: 1px solid var(--line); padding: 16px; margin: 14px 0; }
.gd-price .tag { color: var(--muted); }
.gd-price .num { color: var(--price); font-size: 26px; font-weight: bold; margin-left: 8px; }
.gd-price .act { margin-top: 14px; }
.gd-price .act a, .gd-price .act button {
  display: inline-block; border: 1px solid var(--blue); color: var(--blue); padding: 7px 26px; margin-right: 12px; cursor: pointer;
  background: #fff; font-size: 13px;
}
.gd-price .act a:hover, .gd-price .act button:hover { background: var(--blue); color: #fff; }
.gd-price .act .buy { background: var(--blue); color: #fff; }
.gd-price .act .buy:hover { background: #0057ab; }
.gd-attrs { border: 1px solid var(--line); border-top: 0; padding: 6px 16px 12px; }
.gd-attrs li { line-height: 26px; color: var(--ink-2); border-bottom: 1px dashed #f0f0f0; }
.gd-attrs li b { color: var(--muted); font-weight: normal; display: inline-block; width: 150px; }
.gd-attrs li span { color: var(--ink); }
.gd-cats { margin-top: 14px; color: var(--muted); }
.gd-cats a { color: var(--ink-2); margin-right: 10px; }
.gd-cats a:hover { color: var(--blue); }

/* ---------- 购物车 ---------- */
.cart-wrap { padding: 20px 0 40px; }
.cart-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); }
.cart-table th { background: #f0f0f0; font-weight: normal; color: var(--ink-2); padding: 10px; border-bottom: 1px solid var(--line); }
.cart-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: center; }
.cart-table td.pic { width: 110px; }
.cart-table td.pic img { width: 90px; height: 90px; object-fit: cover; }
.cart-table td.name { text-align: left; }
.cart-table .num-input { width: 60px; height: 26px; text-align: center; border: 1px solid var(--line); }
.cart-total { text-align: right; padding: 16px 4px; color: var(--ink-2); }
.cart-total b { color: var(--price); font-size: 20px; }
.cart-empty { padding: 60px 0; text-align: center; color: var(--muted); }
.cart-empty a { color: var(--blue); }

/* ---------- 搜索页 ---------- */
.search-page { padding: 20px 0 40px; }
.search-page h1 { font-size: 18px; margin-bottom: 14px; }
.search-hit { border-bottom: 1px solid var(--line); padding: 14px 0; display: flex; }
.search-hit .pic { width: 160px; }
.search-hit .pic img { width: 160px; height: 160px; object-fit: cover; }
.search-hit .info { flex: 1; padding-left: 20px; }
.search-hit .info h3 { font-size: 15px; font-weight: normal; color: var(--ink); margin-bottom: 8px; }
.search-hit .info .price { color: var(--price); font-weight: bold; margin-bottom: 8px; }
.search-hit .info .meta { color: var(--muted); }

/* 提示 */
.tips { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(0, 0, 0, .78);
  color: #fff; padding: 14px 26px; font-size: 14px; z-index: 99; display: none; }
.toast { position: fixed; right: 70px; bottom: 40px; background: #2f2f2f; color: #fff; padding: 10px 18px;
  font-size: 13px; z-index: 99; display: none; }
