
:root {
  --primary: #2b2b2b;
  --primary-light: #4a4a4a;
  --accent: #c8192f;
  --accent-hover: #a31224;
  --bg: #ffffff;
  --bg-gray: #f5f5f5;
  --line: #e5e5e5;
  --text: #333333;
  --text-light: #666666;
  --text-lighter: #999999;
  --radius: 4px;
  --shadow: 0 2px 8px rgba(0,0,0,.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 14px; outline: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.hidden { display: none !important; }

/* ---------------- 顶部会员栏 ---------------- */
.member-bar {
  background: #1f1f1f;
  color: #cfcfcf;
  font-size: 12px;
  position: relative;
  z-index: 1001;
}
.member-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 34px;
}
.member-bar a { color: #cfcfcf; margin-right: 16px; transition: color .2s; }
.member-bar a:hover { color: #fff; }
.member-bar .cart-info { display: flex; align-items: center; }
.member-bar .cart-info .sep { color: #555; margin: 0 12px 0 0; }
.member-right a:last-child { margin-right: 0; }
.cart-count { color: #ffb400; font-weight: 700; margin-left: 4px; }

/* ---------------- 头部 Logo + 搜索 ---------------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo img { height: 52px; width: auto; }
.search-box {
  flex: 1;
  max-width: 460px;
  display: flex;
  border: 2px solid var(--primary);
  border-radius: 4px;
  overflow: hidden;
  height: 40px;
}
.search-box input {
  flex: 1;
  border: none;
  padding: 0 14px;
  font-size: 14px;
}
.search-box button {
  width: 88px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  transition: background .2s;
}
.search-box button:hover { background: var(--primary-light); }
.header-tools { display: flex; align-items: center; gap: 18px; }
.header-tools .tool { text-align: center; color: var(--text-light); font-size: 12px; }
.header-tools .tool .ico { font-size: 22px; display: block; margin-bottom: 2px; }
.header-tools .tool:hover { color: var(--accent); }

/* ---------------- 导航 ---------------- */
.main-nav {
  background: var(--primary);
}
.nav-list {
  display: flex;
  position: relative;
}
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: block;
  padding: 13px 26px;
  color: #e8e8e8;
  font-size: 15px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.nav-list > li > a:hover,
.nav-list > li.active > a { background: #000; color: #fff; }
.nav-list .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 200px;
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
  border-top: 3px solid var(--accent);
  display: none;
  z-index: 999;
}
.nav-list li:hover .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 10px 18px;
  color: var(--text);
  font-size: 14px;
  border-bottom: 1px solid #f2f2f2;
  transition: background .15s, color .15s;
}
.dropdown a:hover { background: var(--bg-gray); color: var(--accent); }
.nav-toggle {
  display: none;
  background: var(--primary);
  color: #fff;
  font-size: 24px;
  padding: 10px 16px;
  width: 100%;
  text-align: left;
}

/* ---------------- Banner ---------------- */
.banner {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: #2b2b2b;
}
.banner img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.banner-caption {
  position: absolute;
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  max-width: 480px;
  text-shadow: 0 2px 12px rgba(0,0,0,.55);
}
.banner-caption h2 { font-size: 34px; font-weight: 700; letter-spacing: 2px; margin-bottom: 10px; }
.banner-caption p { font-size: 16px; opacity: .92; }

/* ---------------- 区块通用 ---------------- */
.section { padding: 34px 0; }

.section-gray {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-title {
  text-align: left;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.section-title h3 {
  font-size: 22px;
  color: var(--primary);
  letter-spacing: .5px;
  font-weight: 700;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
  line-height: 1.25;
}
.section-title h3::after { display: none; }
.section-title p { color: var(--text-lighter); font-size: 13px; margin: 0; }
.section-more { text-align: right; margin-top: 18px; }
.section-more a {
  display: inline-block;
  padding: 0 0 2px;
  border: none;
  border-bottom: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 0;
  font-size: 14px;
  transition: color .2s, border-color .2s;
}
.section-more a:hover { background: none; color: var(--accent); border-color: var(--accent); }

/* ---------------- 大图横幅分区 ---------------- */
.photo-band {
  position: relative;
  height: 340px;
  overflow: hidden;
  background: #111;
}
.photo-band img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.photo-band .pb-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.photo-band h3 {
  color: #fff;
  font-size: 30px;
  letter-spacing: 2px;
  font-weight: 700;
  text-shadow: 0 2px 16px rgba(0,0,0,.7);
  padding-left: 14px;
  border-left: 4px solid #fff;
}
.photo-band p {
  color: rgba(255,255,255,.92);
  margin-top: 10px;
  font-size: 15px;
  padding-left: 18px;
  text-shadow: 0 1px 10px rgba(0,0,0,.7);
}

/* ---------------- 分类导航卡片 ---------------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.cat-card {
  background: #fff;
  border: none;
  border-radius: 0;
  text-align: left;
  padding: 0;
  transition: none;
}
.cat-card:hover { box-shadow: none; transform: none; }
.cat-card .cat-pic {
  display: block;
  position: relative;
  overflow: hidden;
  padding-bottom: 100%;
  background: #fff;
}
.cat-card .cat-pic img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s;
}
.cat-card:hover .cat-pic img { transform: scale(1.05); }
.cat-card h4 {
  font-size: 15px;
  margin: 10px 0 3px;
  color: var(--text);
  font-weight: 600;
}
.cat-card p { font-size: 12px; color: var(--text-lighter); }

/* ---------------- 产品卡片 ---------------- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 18px;
}
.prod-card {
  background: #fff;
  border: none;
  border-radius: 0;
  overflow: visible;
  transition: none;
}
.prod-card:hover { box-shadow: none; transform: none; }
.prod-card .pic {
  display: block;
  position: relative;
  overflow: hidden;
  padding-bottom: 100%; /* 正方形商品图 */
  background: #fff;
}
.prod-card .pic img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s;
}
.prod-card:hover .pic img { transform: scale(1.05); }
.prod-card .flag {
  position: absolute;
  top: 0; left: 0;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  padding: 2px 9px;
  border-radius: 0;
}
.prod-card .flag.blue { background: #2b6cb0; }
.prod-card .info { padding: 10px 2px 0; text-align: left; }
.prod-card .name {
  font-size: 13px;
  color: var(--text);
  min-height: 40px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prod-card .name:hover { color: var(--accent); }
.prod-card .en { font-size: 11px; color: var(--text-lighter); margin-top: 3px; }
.prod-card .price {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  margin-top: 6px;
}
.prod-card .buy-btn {
  margin-top: 8px;
  display: block;
  width: 100%;
  background: var(--primary);
  color: #fff;
  border-radius: 0;
  padding: 8px 0;
  font-size: 13px;
  letter-spacing: 1px;
  transition: background .2s;
}
.prod-card .buy-btn:hover { background: #000; }

/* ---------------- 新闻列表 ---------------- */
.news-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 4px;
  border-bottom: 1px dashed var(--line);
}
.news-list li a { color: var(--text); font-size: 14px; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.news-list li a:hover { color: var(--accent); }
.news-list .date { color: var(--text-lighter); font-size: 13px; margin-left: 16px; white-space: nowrap; }

/* ---------------- 服务优势 ---------------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.svc-card {
  background: transparent;
  border: none;
  border-left: 1px solid var(--line);
  padding: 4px 22px;
  text-align: left;
  border-radius: 0;
}
.svc-card:first-child { border-left: none; padding-left: 0; }
.svc-card h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--primary);
  font-weight: 700;
  padding-left: 10px;
  border-left: 3px solid var(--primary);
  line-height: 1.3;
}
.svc-card p { font-size: 13px; color: var(--text-light); line-height: 1.8; }

/* ---------------- 关于我们简介 ---------------- */
.about-strip {
  display: flex;
  gap: 30px;
  align-items: center;
}
.about-strip .about-text { flex: 1; }
.about-strip .about-text h3 {
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
  line-height: 1.3;
}
.about-strip .about-text p { color: var(--text-light); font-size: 14px; text-indent: 2em; margin-bottom: 10px; }
.about-strip .about-pic { flex: 1; }
.about-strip .about-pic img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 0;
  box-shadow: none;
}

/* ---------------- 页脚 ---------------- */
.site-footer {
  background: #222;
  color: #b5b5b5;
  padding: 36px 0 0;
  margin-top: 20px;
}
.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 30px;
  padding-bottom: 26px;
}
.footer-cols h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 8px;
}
.footer-cols h4::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 28px; height: 2px;
  background: var(--accent);
}
.footer-cols p, .footer-cols li { font-size: 13px; line-height: 1.9; }
.footer-cols a:hover { color: #fff; }
.footer-cols .brand { font-size: 15px; color: #fff; margin-bottom: 10px; font-weight: 700; }
.copyright {
  border-top: 1px solid #333;
  padding: 16px 0;
  text-align: center;
  font-size: 12px;
  color: #888;
}
.copyright a { color: #aaa; }
.copyright a:hover { color: #fff; }

/* ---------------- 页面头部 ---------------- */
.page-head {
  background: #fff;
  padding: 26px 0 0;
  border-bottom: 1px solid var(--line);
}
.page-head h1 {
  font-size: 22px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: .5px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
  line-height: 1.2;
}
.page-head .crumbs { font-size: 13px; color: var(--text-lighter); margin-top: 8px; padding-bottom: 12px; }
.page-head .crumbs a:hover { color: var(--accent); }
.page-body { padding: 26px 0 50px; }

/* ---------------- 列表页：左分类树 + 右商品网格 ---------------- */
.list-layout { display: flex; gap: 30px; align-items: flex-start; }
.side-cats { width: 190px; flex: 0 0 190px; border: 1px solid var(--line); }
.side-cats .side-title {
  font-size: 14px;
  color: var(--primary);
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  letter-spacing: .5px;
}
.side-cats .side-group {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 600;
  padding: 12px 14px 6px;
  background: #fff;
}
.side-cats a {
  display: block;
  padding: 7px 14px 7px 24px;
  font-size: 13px;
  color: var(--text-light);
  transition: color .2s, padding-left .2s;
}
.side-cats a:hover { color: var(--accent); padding-left: 28px; }
.side-cats a.active { color: var(--accent); font-weight: 700; }
.list-main { flex: 1; min-width: 0; }
/* 列表页内联页头 */
.page-head-inline {
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.page-head-inline h1 {
  font-size: 20px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: .5px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
  line-height: 1.2;
}
.page-head-inline .crumbs { font-size: 12px; color: var(--text-lighter); margin-top: 7px; padding-left: 16px; }
.page-head-inline .crumbs a:hover { color: var(--accent); }
.list-main .list-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.list-main .list-toolbar .count { color: var(--text-lighter); font-size: 13px; }

/* ---------------- 列表页筛选 ---------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.filter-bar a {
  padding: 4px 0;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--text-light);
  font-size: 14px;
  transition: color .2s, border-color .2s;
}
.filter-bar a:hover { color: var(--primary); }
.filter-bar a.active { color: var(--primary); font-weight: 700; border-bottom-color: var(--primary); }

/* ---------------- 详情页 ---------------- */
.pd-wrap { display: flex; gap: 34px; }
.pd-gallery { flex: 1; max-width: 480px; }
.pd-main-pic {
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  position: relative;
  padding-bottom: 100%; /* 主图强制正方形 */
  background: #fff;
}
.pd-main-pic img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pd-thumbs img {
  width: 72px; height: 72px;
  object-fit: cover;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .2s;
}
.pd-thumbs img.active, .pd-thumbs img:hover { border-color: var(--accent); }
.pd-info { flex: 1; }
.pd-info h1 { font-size: 24px; color: var(--primary); margin-bottom: 6px; }
.pd-info .en { color: var(--text-lighter); font-size: 13px; margin-bottom: 16px; }
.pd-price-box {
  background: #fff;
  border: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 16px 2px;
  margin-bottom: 18px;
}
.pd-price-box .label { font-size: 13px; color: var(--text-light); }
.pd-price-box .price {
  color: var(--accent);
  font-size: 30px;
  font-weight: 700;
  margin-top: 4px;
}
.pd-price-box .hint { font-size: 12px; color: var(--text-lighter); margin-top: 4px; }
.pd-spec { margin-bottom: 20px; }
.pd-spec h3 { font-size: 15px; color: var(--primary); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.pd-spec table { width: 100%; font-size: 13px; }
.pd-spec td { padding: 7px 8px; border-bottom: 1px dashed var(--line); }
.pd-spec td:first-child { width: 130px; color: var(--text-light); background: #fff; }
.pd-actions { display: flex; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 34px;
  border-radius: var(--radius);
  font-size: 15px;
  letter-spacing: 2px;
  transition: all .2s;
  text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-dark { background: var(--primary); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-line { border: 1px solid var(--primary); color: var(--primary); background: #fff; }
.btn-line:hover { background: var(--primary); color: #fff; }
.pd-detail { margin-top: 40px; }
.pd-detail h3 {
  font-size: 18px;
  color: var(--primary);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 18px;
}
.pd-detail p { color: var(--text-light); margin-bottom: 12px; line-height: 1.9; }
.pd-detail .detail-imgs img { margin: 10px auto; border-radius: var(--radius); }

/* ---------------- 购物车 ---------------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  background: #fff;
  font-size: 13px;
  color: var(--text-light);
  font-weight: 600;
  padding: 12px 8px;
  text-align: left;
  border-bottom: 2px solid var(--primary);
}
.cart-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.cart-table .ci { display: flex; align-items: center; gap: 12px; }
.cart-table .ci img { width: 66px; height: 66px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.cart-table .ci a:hover { color: var(--accent); }
.amount-box { display: flex; align-items: center; }
.amount-box button {
  width: 30px; height: 30px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 16px;
  line-height: 1;
}
.amount-box input {
  width: 46px; height: 30px;
  border: 1px solid var(--line);
  border-left: none; border-right: none;
  text-align: center;
}
.cart-summary {
  margin-top: 22px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
  padding: 18px 0;
  background: #fff;
  border-top: 1px solid var(--line);
  border-radius: 0;
}
.cart-summary .total { font-size: 15px; }
.cart-summary .total .num { color: var(--accent); font-size: 26px; font-weight: 700; }
.cart-empty { text-align: center; padding: 60px 0; color: var(--text-lighter); }
.cart-empty .big { font-size: 48px; margin-bottom: 12px; }

/* ---------------- 表单 ---------------- */
.form-panel {
  max-width: 460px;
  margin: 0 auto;
  background: #fff;
  border: none;
  border-top: 2px solid var(--primary);
  border-radius: 0;
  padding: 30px 0;
  box-shadow: none;
}
.form-panel h2 { text-align: center; color: var(--primary); margin-bottom: 6px; }
.form-panel .sub { text-align: center; color: var(--text-lighter); font-size: 13px; margin-bottom: 22px; }
.form-item { margin-bottom: 16px; }
.form-item label { display: block; font-size: 13px; color: var(--text-light); margin-bottom: 6px; }
.form-item input, .form-item textarea, .form-item select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  transition: border-color .2s;
}
.form-item input:focus, .form-item textarea:focus { border-color: var(--primary); }
.form-item textarea { min-height: 110px; resize: vertical; }
.form-item .row { display: flex; gap: 10px; }
.form-item .row input { flex: 1; }
.btn-block { width: 100%; display: block; }
.form-foot { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-light); }
.form-foot a { color: var(--accent); }
.agree-line { font-size: 12px; color: var(--text-lighter); display: flex; align-items: flex-start; gap: 6px; }
.agree-line input { width: auto; margin-top: 2px; }
.agree-line a { color: var(--accent); }

/* ---------------- 留言板 ---------------- */
.msg-panel { max-width: 720px; margin: 0 auto; }
.msg-panel .form-panel { max-width: 100%; }
.msg-list { margin-top: 30px; }
.msg-list h3 { font-size: 16px; color: var(--primary); border-bottom: 2px solid var(--primary); padding-bottom: 8px; margin-bottom: 16px; }
.msg-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
  background: #fff;
}
.msg-item .who { display: flex; justify-content: space-between; margin-bottom: 6px; }
.msg-item .who b { color: var(--primary); font-size: 14px; }
.msg-item .who span { color: var(--text-lighter); font-size: 12px; }
.msg-item p { color: var(--text-light); font-size: 13px; }

/* ---------------- 通用页面内容 ---------------- */
.page-content { max-width: 900px; margin: 0 auto; color: var(--text-light); line-height: 2; }
.page-content h3 { color: var(--primary); font-size: 18px; margin: 26px 0 10px; }
.page-content h4 { color: var(--primary); font-size: 15px; margin: 18px 0 8px; }
.page-content p { margin-bottom: 10px; text-indent: 2em; }
.page-content ol, .page-content ul { margin: 8px 0 14px 2em; }
.page-content li { margin-bottom: 6px; }
.page-content .note {
  background: #fff;
  border-left: 3px solid var(--primary);
  padding: 4px 0 4px 16px;
  margin: 14px 0;
  font-size: 13px;
  color: var(--text-light);
  line-height: 2;
}
.page-content table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13px; }
.page-content td, .page-content th { border: 1px solid var(--line); padding: 8px 10px; background: #fff; color: var(--primary); font-weight: 700; text-align: left; border-bottom: 2px solid var(--primary); }
.page-content img { margin: 12px auto; border-radius: 0; }

/* ---------------- 新闻详情 ---------------- */
.news-detail { max-width: 860px; margin: 0 auto; }
.news-detail h1 { font-size: 24px; color: var(--primary); margin-bottom: 10px; }
.news-detail .meta { color: var(--text-lighter); font-size: 13px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.news-detail .meta span { margin-right: 20px; }

/* ---------------- 弹层 ---------------- */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.82);
  color: #fff;
  padding: 12px 30px;
  border-radius: 4px;
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.toast.show { opacity: 1; }

/* ---------------- 返回顶部 ---------------- */
.back-top {
  position: fixed;
  right: 22px;
  bottom: 70px;
  padding: 8px 14px;
  background: #fff;
  color: var(--text-light);
  border: 1px solid var(--line);
  border-radius: 0;
  font-size: 13px;
  letter-spacing: 1px;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  z-index: 900;
  cursor: pointer;
}
.back-top.show { display: flex; }
.back-top:hover { background: #fff; color: var(--accent); border-color: var(--accent); }

/* ---------------- 交易链路：步骤条 ---------------- */
.step-bar {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0 0 26px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.step-bar li {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-lighter);
  position: relative;
}
.step-bar li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 12px;
  background: #fff;
  color: var(--text-lighter);
}
.step-bar li.done { color: var(--text-light); }
.step-bar li.done span { border-color: var(--text-light); color: var(--text-light); }
.step-bar li.active { color: var(--primary); font-weight: 700; }
.step-bar li.active span { border-color: var(--primary); background: var(--primary); color: #fff; }
.step-bar li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
}

/* ---------------- 交易链路：确认订单 ---------------- */
.checkout-wrap { display: flex; gap: 28px; align-items: flex-start; }
.checkout-main { flex: 1; min-width: 0; }
.checkout-side { width: 330px; flex: 0 0 330px; }
.co-block {
  border: 1px solid var(--line);
  padding: 20px 22px;
  margin-bottom: 20px;
  background: #fff;
}
.co-block h3 {
  font-size: 15px;
  color: var(--primary);
  padding-left: 10px;
  border-left: 3px solid var(--primary);
  margin-bottom: 16px;
}
.co-ship { font-size: 13px; color: var(--text-light); line-height: 2; }
.form-item label em { color: var(--accent); font-style: normal; margin-left: 2px; }

.pay-methods { display: flex; flex-direction: column; gap: 10px; }
.pay-method {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color .2s;
}
.pay-method input { display: none; }
.pay-method b { font-size: 14px; color: var(--text); font-weight: 600; }
.pay-method span { font-size: 12px; color: var(--text-lighter); }
.pay-method.active { border-color: var(--primary); }
.pay-method.active b { color: var(--primary); }

.co-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.co-item img { width: 54px; height: 54px; object-fit: cover; border: 1px solid var(--line); flex: 0 0 54px; }
.co-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.co-item-info a, .co-item-info .ci-name { font-size: 13px; color: var(--text); line-height: 1.5; }
.co-item-info a:hover { color: var(--accent); }
.co-item-info span { font-size: 12px; color: var(--text-lighter); }
.co-item-sum { font-size: 13px; color: var(--accent); font-weight: 700; flex: 0 0 auto; }
.co-empty { font-size: 13px; color: var(--text-lighter); padding: 10px 0; }
.co-empty a { color: var(--accent); }
.co-total { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.co-total .row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-light); padding: 5px 0; }
.co-total .row b { color: var(--text); font-weight: 600; }
.co-total .row.grand { margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 14px; }
.co-total .row.grand .num { color: var(--accent); font-size: 22px; font-weight: 700; }
.co-block .btn-block { margin-top: 16px; }
.btn.disabled { opacity: .5; cursor: not-allowed; }
.co-back { display: block; text-align: center; font-size: 13px; color: var(--text-lighter); margin-top: 12px; }
.co-back:hover { color: var(--accent); }

/* ---------------- 交易链路：支付页 ---------------- */
.pay-wrap { max-width: 760px; margin: 0 auto; }
.pay-box { border: 1px solid var(--line); padding: 26px 30px; background: #fff; }
.pay-head { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 20px; }
.pay-head h2 { font-size: 19px; color: var(--primary); margin-bottom: 6px; }
.pay-hint { font-size: 13px; color: var(--text-light); }
.pay-hint b { color: var(--accent); }
.pay-order { border: 1px solid var(--line); padding: 16px 20px; margin-bottom: 22px; }
.pay-order .row { display: flex; justify-content: space-between; gap: 20px; font-size: 13px; color: var(--text-light); padding: 6px 0; }
.pay-order .row b { color: var(--text); font-weight: 600; text-align: right; word-break: break-all; }
.pay-order .row.grand { margin-top: 8px; padding-top: 12px; border-top: 1px dashed var(--line); align-items: baseline; }
.pay-order .row.grand .num { color: var(--accent); font-size: 26px; font-weight: 700; }
.pay-qr { display: flex; gap: 30px; align-items: flex-start; }
.qr-box { flex: 0 0 220px; text-align: center; border: 1px solid var(--line); padding: 16px; }
.qr-box img { width: 100%; max-width: 188px; display: block; margin: 0 auto; }
.qr-box p { font-size: 12px; color: var(--text-light); margin-top: 10px; line-height: 1.8; }
.qr-box b { color: var(--primary); }
.pay-actions { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.pay-safe { font-size: 12px; color: var(--text-lighter); line-height: 1.9; margin-top: 4px; }

/* ---------------- 交易链路：支付成功页 ---------------- */
.success-wrap { max-width: 760px; margin: 0 auto; }
.success-box { border: 1px solid var(--line); padding: 26px 30px; background: #fff; }
.success-head { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 20px; }
.success-head h2 { font-size: 19px; color: var(--primary); margin-bottom: 6px; }
.success-head p { font-size: 13px; color: var(--text-light); }
.success-items { margin-top: 22px; }
.success-items h3 { font-size: 15px; color: var(--primary); padding-left: 10px; border-left: 3px solid var(--primary); margin-bottom: 12px; }
.success-actions { display: flex; gap: 12px; margin-top: 24px; }
.success-note { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.success-note p { font-size: 13px; color: var(--text-light); line-height: 2; }
.success-note b { color: var(--primary); }

/* ---------------- 分类页：商品清单 ---------------- */
.cat-products { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 20px; }
.cat-prod-title {
  font-size: 16px;
  color: var(--primary);
  padding-left: 10px;
  border-left: 3px solid var(--primary);
  margin: 22px 0 14px;
  font-weight: 700;
}
.cat-prod-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-prod {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.cat-prod img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.cat-prod .cp-name { font-size: 13px; color: var(--text); line-height: 1.6; }
.cat-prod:hover .cp-name { color: var(--accent); }
.cat-prod .cp-price { font-size: 14px; color: var(--accent); font-weight: 700; }

/* ---------------- 手机端 ---------------- */
@media (max-width: 992px) {
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .pd-wrap { flex-direction: column; }
  .about-strip { flex-direction: column; }
  .banner-caption h2 { font-size: 24px; }
  .list-layout { gap: 20px; }
  .side-cats { width: 160px; flex: 0 0 160px; }
  .photo-band { height: 280px; }
  .checkout-wrap { flex-direction: column; }
  .checkout-side { width: 100%; flex: none; }
  .step-bar li { font-size: 12px; }
}
@media (max-width: 768px) {
  .member-bar .container { height: 30px; }
  .member-bar .member-right { display: none; }
  .header-inner { flex-wrap: wrap; }
  .logo { order: 1; }
  .header-tools { order: 2; }
  .search-box { order: 3; flex-basis: 100%; max-width: none; }
  .nav-toggle { display: block; }
  .nav-list {
    display: none;
    flex-direction: column;
    background: var(--primary);
  }
  .nav-list.open { display: flex; }
  .nav-list > li > a { border-bottom: 1px solid #3a3a3a; }
  .nav-list .dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    background: #3a3a3a;
  }
  .nav-list li.open-dd .dropdown { display: block; }
  .dropdown a { color: #ddd; border-bottom: 1px solid #444; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 18px; }
  .section { padding: 24px 0; }
  .section-title h3 { font-size: 20px; }
  .banner-caption { left: 6%; max-width: 80%; }
  .banner-caption h2 { font-size: 20px; }
  .banner-caption p { font-size: 13px; }
  .banner { height: 320px; }
  .pd-info h1 { font-size: 19px; }
  .cart-table th { display: none; }
  .cart-table td { display: block; text-align: right; padding: 10px 8px; border: none; }
  .cart-table tr { display: block; border-bottom: 2px solid var(--line); padding: 10px 0; }
  .cart-table .ci { justify-content: flex-end; }
  .cart-table td::before { content: attr(data-label); float: left; color: var(--text-light); }
  .cart-summary { flex-direction: column; align-items: stretch; text-align: center; }
  .form-panel { padding: 24px 18px; border: none; box-shadow: none; }
  .pd-thumbs img { width: 56px; height: 56px; }
  /* 列表页左分类树：窄屏改为顶部横排，避免挤压商品区 */
  .list-layout { flex-direction: column; gap: 18px; }
  .side-cats { width: 100%; flex: none; border: 1px solid var(--line); }
  .side-cats .side-title { padding: 10px 12px; }
  .side-cats .side-group { padding: 10px 12px 4px; }
  .side-cats a { padding: 7px 12px; }
  .side-cats a:hover { padding-left: 16px; }
  .list-main { width: 100%; }
  .page-head-inline h1 { font-size: 18px; }
  /* 实拍横幅移动端降高 */
  .photo-band { height: 220px; }
  .photo-band h3 { font-size: 21px; }
  .photo-band p { font-size: 13px; }
  /* 关于我们配图移动端降高 */
  .about-strip .about-pic img { height: 220px; }
  /* 交易链路移动端 */
  .step-bar { padding: 12px 0; }
  .step-bar li { font-size: 11px; gap: 4px; }
  .step-bar li span { width: 18px; height: 18px; font-size: 11px; }
  .pay-box, .success-box { padding: 20px 16px; }
  .pay-qr { flex-direction: column; align-items: stretch; }
  .qr-box { flex: none; }
  .pay-order .row { flex-direction: column; gap: 2px; }
  .pay-order .row b { text-align: left; }
  .success-actions { flex-wrap: wrap; }
  .success-actions .btn { flex: 1 1 auto; text-align: center; }
  .co-block { padding: 16px 14px; }
  .back-top { right: 12px; bottom: 60px; padding: 6px 10px; font-size: 12px; }
  .cat-prod-list { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-prod .cp-name { font-size: 12px; }
}
