/* =====================================================
   CG引流 · 账号商城
   ===================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { height: 100%; }

body {
  font-family: Ubuntu, 'Open Sans', Helvetica, Arial, -apple-system,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: #222;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; }

.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 10px;
}
.container:before, .container:after { display: table; content: " "; }
.container:after { clear: both; }
.flex { display: flex; align-items: center; }
.flexbox { display: flex; align-items: center; }

/* ============ 顶部深灰横幅 hdr-top ============ */
.hdr-top {
  display: block;
  background-color: #434343;
}
.hdr-top .flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  color: #fff;
}
.hdr-top p {
  font-size: 12px;
  font-weight: 300;
  color: #fff;
  margin: 0;
  line-height: 30px;
}
#navigation_right { display: flex; align-items: center; gap: 16px; }
#navigation_right a { color: #fff; font-size: 12px; line-height: 30px; }
#navigation_right a:hover { text-decoration: underline; }
#navigation_right .authorization { display: flex; align-items: center; gap: 14px; }
#navigation_right .login-icon { width: 14px; height: 14px; vertical-align: middle; margin-right: 4px; }
#language { display: flex; gap: 8px; }
#language .en { font-weight: 700; }
#language a { color: #fff; }

/* ============ 中导航 hdr-middle ============ */
.hdr-middle {
  background-color: #fff;
  box-shadow: 0 0 2px 0 rgba(0, 0, 0, .4);
  position: relative;
  z-index: 20;
}
.hdr-middle .container { padding: 0 15px; }
#head_menu { display: flex; align-items: center; flex-wrap: wrap; }
#head_menu > li { position: relative; }
#head_menu > li > a {
  display: block;
  font-size: 14px;
  color: #222;
  padding: 10px 12px;
}
#head_menu > li > a:hover { color: #2fb241; }
#nav_support a {
  display: block;
  color: #2fb241 !important;
  font-weight: 700;
  padding: 10px 12px;
}
.darr > ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  background: #fff;
  border: 1px solid #e5e3e3;
  min-width: 260px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}
.darr:hover > ul { display: block; }
.darr > ul a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  color: #5e5e5e;
}
.darr > ul a:hover { background: #f9f9f9; color: #000; }

/* ============ 底导航 hdr-bottom ============ */
.hdr-bottom { display: block; }
.hdr-bottom .flex {
  padding: 8px 15px;
  display: flex;
  font-size: 18px;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
#head_navigation { display: flex; align-items: center; gap: 10px; }
#logo { display: inline-block; }
#logo img { display: block; height: 40px; }
#logo .logo-text {
  font-size: 16px;
  font-weight: 700;
  color: #222;
  display: inline-flex;
  align-items: center;
  line-height: 30px;
  letter-spacing: .3px;
}
#logo .logo-text .dot { color: #2fb241; margin: 0 2px; }

/* 分类下拉 */
.head-category-navigation { position: relative; }
.head-category-navigation button {
  padding: 4px 40px 4px 12px;
  border: 1px solid #dddfe1;
  border-radius: 3px;
  position: relative;
  font-size: 13px;
  line-height: 20px;
  background: #fff;
  cursor: pointer;
  color: #222;
}
.head-category-navigation button:after {
  position: absolute;
  top: 0;
  right: 0;
  content: '';
  display: block;
  width: 26px;
  height: 26px;
  background: url(/static/img/new/arrow.png) no-repeat center;
}
.head-category-navigation button img { width: 12px; height: 12px; margin: 0 9px 2px 0; }
.head-menu {
  display: none;
  position: absolute;
  top: 40px;
  left: 0;
  z-index: 999;
  margin: 0 15px;
  padding: 0;
  background: #e5e3e3;
  border-radius: 3px 0 0 3px;
  width: 207px;
  min-height: 200px;
}
.head-category-navigation.open .head-menu { display: block; }
.head-menu > li { position: relative; }
.head-menu > li > a {
  color: #5e5e5e;
  padding: 7px 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  background: url(/static/img/new/right-arr.png) no-repeat 188px center;
}
.head-menu > li > a img { width: 17px; height: 17px; filter: grayscale(100%); }
.head-menu > li > a:hover { background-color: #f9f9f9; color: #000; }
.head-menu > li > a:hover img { filter: none; }
.head-menu > li > ul {
  display: none;
  position: absolute;
  top: 0;
  left: 207px;
  background: #f9f9f9;
  width: 207px;
  min-height: 100%;
  border-radius: 0 3px 3px 0;
  padding: 8px 0;
}
.head-menu > li:hover > ul { display: block; }
.head-menu > li > ul a {
  display: block;
  padding: 7px 13px;
  font-size: 14px;
  color: #5e5e5e;
}
.head-menu > li > ul a:hover { background: #efeeee; }
.head-menu .view-all a { color: #2fb241; }
.head-menu .view-all a:hover { color: #2fb241; }

/* 搜索 */
.head-search { display: flex; align-items: center; gap: 0; }
.head-search .search-input-wrap { position: relative; }
.head-search input.search-input {
  border: 1px solid #dddfe1;
  border-radius: 3px 0 0 3px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 24px;
  width: 220px;
  outline: none;
}
.section-btn-search-main .btn-search-main {
  padding: 6px 14px;
  border: 1px solid #dddfe1;
  border-left: none;
  border-radius: 0 3px 3px 0;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 24px;
  color: #222;
  display: flex;
  align-items: center;
  gap: 6px;
}
.section-btn-search-main .btn-search-main img { width: 15px; height: 15px; }
.section-btn-search-main .btn-search-main:hover { color: #2fb241; }

/* ============ 高级搜索面板 ============ */
.search-panel {
  padding: 10px 30px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid #e6e8ea;
}
.search-panel-header { font-size: 16px; font-weight: 700; line-height: 18px; color: #222; }
.search-panel-filters {
  display: flex;
  flex-direction: row;
  padding: 20px 0;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 18px;
}
.search-panel-filters .params-label { display: block; font-size: 13px; color: #555; margin-bottom: 6px; }
.search-panel-filters .cost, .search-panel-filters .qty { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.search-panel-filters input {
  width: 100px;
  padding: 5px 8px;
  border: 1px solid #dddfe1;
  border-radius: 3px;
  font-size: 14px;
  outline: none;
}
.catalog-filters-currency { color: #8e8e8e; font-size: 14px; }
.catalog-filters-separator { color: #8e8e8e; }
.section-catalog-filter-tags { flex: 1; min-width: 200px; }
.tags-items { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pill {
  font-size: 13px;
  padding: 4px 12px;
  border: 1px solid #dddfe1;
  border-radius: 14px;
  cursor: pointer;
  color: #555;
  background: #fff;
  user-select: none;
}
.tag-pill.active { background: #2fb241; color: #fff; border-color: #2fb241; }
.section-catalog-filter-buttons { display: flex; gap: 12px; align-items: center; }
.section-catalog-filter-reset { cursor: pointer; font-size: 13px; color: #8e8e8e; }
.section-catalog-filter-reset:hover { color: #222; }
.btn-search-filters {
  background: #2fb241;
  color: #fff;
  border: 1px solid #1b962c;
  border-radius: 4px;
  padding: 7px 16px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-search-filters:hover { background: #03a819; }

/* ============ 跑马灯 ============ */
.marquee {
  background-color: #e6ed1a;
  width: 100%;
  overflow: hidden;
  text-align: center;
  font-weight: 700;
  padding: 4px 0;
  font-size: 16px;
  font-family: 'Open Sans', Ubuntu, sans-serif;
  color: #000;
}
.marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 15s linear infinite;
  white-space: nowrap;
}
.marquee span:hover { animation-play-state: paused; }
@keyframes marquee { 0% { transform: translate(0, 0); } 100% { transform: translate(-100%, 0); } }

/* ============ 分类区块 soc-category ============ */
section.soc-category {
  border-top: 1px solid #e6e8ea;
  background-color: #eff3f6;
  padding: 5px 0 15px 0;
}
section.soc-category .flex { padding: 0 15px; }

/* 面包屑 */
.wrap-breadcrumbs { background: #eff3f6; padding: 8px 0; }
#breadcrumbs { font-size: 13px; color: #8e8e8e; display: flex; flex-wrap: wrap; gap: 2px; }
#breadcrumbs a { color: #8e8e8e; }
#breadcrumbs a:hover { color: #2fb241; }
#breadcrumbs .divider { margin: 0 5px; color: #ccc; }
#breadcrumbs .current { color: #222; }

/* 子分类 tab */
.cat-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 14px; }
.ctab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid #dddfe1;
  border-radius: 3px;
  font-size: 13px;
  color: #555;
}
.ctab:hover { color: #2fb241; border-color: #2fb241; }
.ctab.active { background: #2fb241; color: #fff; border-color: #2fb241; font-weight: 700; }
.ctab .cnt { font-size: 12px; opacity: .8; }

/* ============ 分类标题栏 soc-title ============ */
.soc-title {
  background-color: #434343;
  height: 34px;
  display: flex;
  margin-top: 20px;
  padding: 0 9px;
  border: none;
  justify-content: space-between;
  align-items: center;
  border-radius: 4px 4px 0 0;
}
.soc-title h2.soc-name {
  font-size: 13px;
  line-height: 34px;
  font-weight: 700;
  padding: 0;
  color: #fff;
  flex: 1;
}
.soc-title h2.soc-name a { color: #fff; }
.soc-title h2.soc-name a:hover { text-decoration: underline; }
.soc-title h2.soc-name .sep { color: #8e8e8e; font-weight: 400; margin: 0 6px; }
.soc-title > .catalog-th {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}
.soc-title .catalog-th p { text-align: center; color: #fff; font-size: 13px; line-height: 34px; padding-right: 4px; }
.soc-title p.soc-qty, .soc-title p.soc-cost, .soc-title p.soc-cost-label, .soc-title p.soc-control { color: #fff; }

.sort-btn {
  width: 20px;
  height: 14px;
  cursor: pointer;
  display: inline-block;
}
.sort-btn-down { background: url(/static/img/icons/sort-catalog-down.svg) no-repeat center; }
.sort-btn-up { background: url(/static/img/icons/sort-catalog-up.svg) no-repeat center; }
.sort-btn-main { background: url(/static/img/icons/sort-catalog-main.svg) no-repeat center; }

/* ============ 商品行 soc-body ============ */
.socs { background: transparent; }
.soc-body {
  padding: 5px 9px;
  min-height: 40px;
  margin-top: 4px;
  font-size: 13px;
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #e6e8ea;
  border-radius: 3px;
}
.soc-body a { color: #000; }
.soc-img { min-width: 28px; display: flex; align-items: center; }
.soc-img img { width: 22px; display: block; }
.soc-text {
  padding: 0 3px 0 8px;
  width: 687px;
  flex-grow: 0;
  line-height: 1.25;
  word-break: break-all;
}
.soc-text p { margin: 0; }
.soc-text p a {
  color: #464646;
  font-size: 13px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.soc-text p a:hover { color: #2fb241; }
.soc-text a.learn-more { display: none; }
.soc-text .desc { font-size: 12px; color: #9eaeb7; margin-top: 2px; word-break: break-all; }
.soc-meta { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin-top: 3px; }
.soc-meta .badges-container { margin-top: 0; }
.soc-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 0; }
.soc-tag {
  display: inline-block;
  font-size: 11px;
  line-height: 1;
  color: #5a7a8a;
  background: #eef3f6;
  border: 1px solid #e2e8ee;
  border-radius: 3px;
  padding: 3px 6px;
}

.soc-price { display: none; }
.soc-qty, .soc-cost, .soc-cost-label, .soc-cell, .soc-control {
  text-align: center;
  flex-shrink: 0;
}
.soc-qty { width: 90px; font-size: 13px; color: #222; }
.soc-cost-label { width: 90px; color: #8e8e8e; font-size: 12px; }
.soc-cost { width: 95px; font-size: 13px; color: #222; font-weight: 700; }
.soc-cell, .soc-control, .button-wrap { width: 100px; }

.soc-cell button.basket-button {
  display: inline-block;
  position: relative;
  padding-left: 29px;
  height: 27px;
  width: 80px;
  line-height: 25px;
  border: 1px solid #229f33;
  background-color: #2fb241;
  text-align: center;
  color: #fff;
  font-size: 13px;
  border-radius: 4px;
  cursor: pointer;
}
.soc-cell button.basket-button:before {
  content: "";
  position: absolute;
  top: -1px;
  left: 2px;
  right: 2px;
  height: 1px;
  width: calc(100% - 4px);
  background-color: #70bd7b;
}
.soc-cell button.basket-button:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 2px;
  right: 2px;
  width: calc(100% - 4px);
  height: 1px;
  background-color: #67b972;
}
.soc-cell button.basket-button img { position: absolute; left: 6px; top: 50%; margin-top: -8px; width: 16px; }
.soc-cell button.basket-button:hover:enabled { background-color: #03a819; }
.soc-cell button.basket-button:disabled { background-color: #ccc; border-color: #ccc; cursor: not-allowed; }

/* ============ 查看全部按钮 ============ */
.expand_subcat_button {
  width: 100%;
  height: 27px;
  border-radius: 3px;
  border: 1px solid #2fb241;
  background-color: transparent;
  color: #2fb241;
  margin: 8px 0;
  transition: all .2s;
  cursor: pointer;
}
.expand_subcat_button:hover { background-color: #2fb241; color: #fff; }
.expand_subcat_button.hide_subcat { border: 1px solid #b6b6b6; color: #b6b6b6; }
.expand_subcat_button.hide_subcat:hover { background-color: #b6b6b6; color: #fff; }

/* ============ 徽章 ============ */
.badges-container { display: flex; gap: 5px; margin-top: 5px; flex-wrap: wrap; }
.item-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 500;
  line-height: 100%;
  height: 20px;
}
.item-badge img { margin-right: 3px; }
.guarantee-badge { padding: 0 4px; background-color: #e2ffe6; color: #2fb241; gap: 2px; }
.guarantee-badge__img { width: 12px; height: 15px; }
.new-badge { padding: 0 6px; background-color: #e5deff; color: #a488ff; font-weight: 700; }
.star-badge { padding: 0 6px; background-color: #fff5d5; color: #e9ab00; gap: 2px; font-weight: 700; }
.star-badge__img { width: 14px; height: 13px; }
.rejects-badge { padding: 0 4px; background-color: #e2ffe6; color: #2fb241; gap: 2px; font-weight: 700; }
.rejects-badge__img { width: 14px; height: 12px; }
.orders-badge { padding: 0 4px; color: #9eaeb7; gap: 2px; font-weight: 700; opacity: 70%; }
.orders-badge__img { width: 14px; height: 14px; }

/* ============ 详情页 ============ */
.magazines-body { padding: 20px 15px 40px 15px; background-color: #eff3f6; }
.recat h1 { font-size: 20px; font-weight: 700; text-transform: uppercase; color: #000; margin: 16px 0 14px; line-height: 1.2; }
.magazines-left {
  width: 200px;
  font-size: 13px;
  float: left;
  background: #fff;
  border: 1px solid #e5e8eb;
  border-radius: 8px;
  padding: 20px 18px;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.magazines-left .mag-img { width: 100%; text-align: center; }
.magazines-left .mag-img img {
  padding: 10px;
  width: 88px;
  height: 88px;
  background-color: #f7f9fa;
  margin-bottom: 14px;
  border-radius: 8px;
  object-fit: contain;
}
.magazines-left p { color: #313131; margin: 0 0 12px; line-height: 1.6; }
.magazines-left .bold { font-weight: 700; }
.magazines-left .green { color: #2fb241; }
.magazines-left .price { font-size: 16px; font-weight: 700; }
.magazines-left a.subscribe_button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  height: 38px;
  line-height: 38px;
  border: 1px solid #229f33;
  background-color: #2fb241;
  text-align: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  margin: 4px 0 12px;
  box-sizing: border-box;
}
.magazines-left a.subscribe_button:hover { background-color: #03a819; }
.magazines-left a.subscribe_button img { width: 18px; height: 18px; }
.magazines-left .disabled_link { background-color: #ccc; border-color: #ccc; pointer-events: none; color: #000; }
.magazines-left .muted { color: #999; font-size: 12px; margin: 0; }

.magazines-right {
  margin-left: 218px;
  background: #fff;
  border: 1px solid #e5e8eb;
  border-radius: 8px;
  padding: 26px 30px;
  font-size: 14px;
  color: #333;
  line-height: 1.75;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  min-height: 340px;
  box-sizing: border-box;
}
.magazines-right p { margin: 10px 0; }
.magazines-right strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin: 24px 0 8px;
}
.magazines-right strong:first-child { margin-top: 0; }
.magazines-right ul { margin: 8px 0 8px 20px; padding: 0; list-style: disc; }
.magazines-right li { margin: 6px 0; color: #444; }
.magazines-right a { color: #2fb241; }
.advice-body { padding: 15px 15px 30px 15px; background-color: #eff3f6; border-top: 1px solid #e2e5e8; }
.advice-body p { font-family: Ubuntu, sans-serif; color: #222; margin: 15px 0; line-height: 1.5; }
.advice-body span { color: #999; }
.advice-body ul { padding-left: 18px; list-style: disc; margin: 5px 0 10px; }
.advice-body li { margin-bottom: 4px; color: #555; }
.advice-body a { color: #2fb241; }
.clear { clear: both; }

/* ============ footer ============ */
#footer {
  background: #434343;
  color: #fff;
  margin-top: 30px;
}
#footer_navigation {
  background: #434343;
  padding: 18px 0;
  border-bottom: 1px solid #6d6d6e;
}
#footer_navigation .container { display: flex; flex-wrap: wrap; gap: 40px; }
#footer_navigation h4 { font-size: 14px; color: #fff; margin-bottom: 8px; font-weight: 700; }
#footer_navigation a { color: #b9b9b9; font-size: 13px; display: block; margin-bottom: 5px; }
#footer_navigation a:hover { color: #fff; }
#footer_contacts { padding: 12px 0; }
#footer_contacts .text { float: right; color: #858585; margin: 0; padding: 0; font-size: 13px; }
#footer_contacts li { display: inline-block; }
#footer_contacts li a { display: block; line-height: 30px; color: #fff; }
#footer_contacts li + li { margin-left: 30px; }
.ftr-logo { font-size: 18px; color: #fff; font-weight: 400; }

/* ============ 购物车抽屉 ============ */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 199; display: none; }
.overlay.show { display: block; }
.basket-drawer {
  position: fixed; top: 0; right: 0; width: 360px; max-width: 100vw; height: 100vh;
  background: #fff; z-index: 200; box-shadow: -6px 0 24px rgba(0,0,0,.16);
  transform: translateX(100%); transition: transform .22s; display: flex; flex-direction: column;
}
.basket-drawer.open { transform: translateX(0); }
.basket-drawer-head { background: #434343; color: #fff; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; font-size: 15px; }
.basket-drawer-head .close { cursor: pointer; font-size: 18px; }
.basket-items { flex: 1; overflow-y: auto; padding: 10px 14px; }
.basket-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #e6e8ea; }
.basket-item .bi-name { font-size: 13px; font-weight: 600; flex: 1; word-break: break-all; }
.basket-item .bi-price { font-size: 13px; font-weight: 700; }
.basket-item .bi-qty { width: 46px; text-align: center; font-size: 13px; border: 1px solid #dddfe1; border-radius: 3px; padding: 3px; }
.basket-item .bi-del { cursor: pointer; color: #e33; font-size: 15px; }
.basket-foot { border-top: 1px solid #e6e8ea; padding: 12px 14px; }
.basket-total { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.basket-total span { color: #2fb241; }
.checkout-btn { display: block; width: 100%; text-align: center; background: #2fb241; color: #fff; border: 1px solid #1b962c; border-radius: 4px; padding: 11px; font-size: 15px; font-weight: 600; cursor: pointer; }
.checkout-btn:hover { background: #03a819; }
.basket-count { display: inline-flex; align-items: center; justify-content: center; background: #f33; color: #fff; border-radius: 50%; min-width: 16px; height: 16px; font-size: 10px; font-weight: 700; margin-left: 3px; padding: 0 4px; }

/* ============ 绑定余额抽屉 ============ */
.bind-drawer {
  position: fixed;
  top: 0;
  right: -360px;
  width: 340px;
  height: 100%;
  background: #fff;
  z-index: 200;
  box-shadow: -2px 0 12px rgba(0,0,0,.12);
  transition: right .25s;
  display: flex;
  flex-direction: column;
}
.bind-drawer.open { right: 0; }
.bind-body { padding: 16px; }
.bind-body input {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}
.bind-body input:focus { outline: none; border-color: #2fb241; }

/* ============ 后台 ============ */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid #e6e8ea; border-radius: 4px; padding: 14px; }
.stat .label { font-size: 12px; color: #8e8e8e; }
.stat .value { font-size: 20px; font-weight: 700; margin-top: 3px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid #e6e8ea; }
th { color: #8e8e8e; font-weight: 500; }
tr:hover td { background: #f9f9f9; }
.btn { display: inline-block; padding: 8px 16px; background: #2fb241; color: #fff; border: 1px solid #1b962c; border-radius: 4px; font-size: 13px; cursor: pointer; font-weight: 600; }
.btn:hover { background: #03a819; }
.btn.ghost { background: #fff; color: #555; border: 1px solid #dddfe1; }
.btn.ghost:hover { border-color: #2fb241; color: #2fb241; }
.muted { color: #8e8e8e; }
.green { color: #2fb241; }
.gold { color: #e9ab00; }
.mt { margin-top: 14px; }
.mb { margin-bottom: 14px; }
.small { font-size: 12px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; color: #555; margin-bottom: 5px; }
.form-group input, .form-group select { width: 100%; padding: 8px 10px; border: 1px solid #dddfe1; border-radius: 3px; font-size: 13px; outline: none; }
.form-group input:focus, .form-group select:focus { border-color: #2fb241; }

/* ============ 响应式 ============ */
@media (max-width: 1200px) {
  .soc-text { width: auto; flex-grow: 1; }
}
@media (max-width: 991px) {
  .hdr-middle { display: none; }
}
@media (max-width: 767px) {
  /* ===== 商品行：移动端卡片化（两行）===== */
  .soc-body {
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 12px;
    gap: 8px 10px;
  }
  .soc-img { min-width: 44px; }
  .soc-img img { width: 42px; height: 42px; object-fit: contain; }
  .soc-text {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 0 0 10px;
  }
  .soc-text p a {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
    font-size: 14px;
  }
  /* 库存 & 价格挪到第二行，恢复显示 */
  .soc-qty {
    display: block;
    width: auto;
    order: 10;
    font-size: 12px;
    color: #8e8e8e;
  }
  .soc-cost-label { display: none; }
  .soc-cost {
    display: block;
    width: auto;
    order: 11;
    font-size: 16px;
    font-weight: 700;
    color: #e4393c;
  }
  .button-wrap { order: 12; width: auto; margin-left: auto; }
  .soc-cell { width: auto; }
  .soc-cell button.basket-button { width: 76px; }

  /* 标题栏：隐藏库存/价格表头与排序按钮，只留名称和总数 */
  .soc-title .catalog-th { display: none; }
  .soc-title p.soc-cost-label,
  .soc-title p.soc-cost,
  .soc-title p.soc-qty { display: none; }
  .soc-title p.soc-control { font-size: 11px; padding-right: 6px; }

  /* ===== 顶部搜索区：分类按钮和搜索各占一行 ===== */
  .hdr-bottom .flex { flex-direction: column; align-items: stretch; }
  #head { gap: 8px; }
  .head-category-navigation { width: 100%; }
  .head-category-navigation button { width: 100%; }
  .head-search { width: 100%; }
  .head-search form { flex: 1; min-width: 0; }
  .head-search input.search-input { width: 100%; flex: 1; }
  .head-menu { width: calc(100% - 30px); }
  .head-menu > li > ul { position: relative; left: 0; width: 100%; }
}
@media (max-width: 400px) {
  .soc-text p a { font-size: 13px; }
  .soc-cost { font-size: 15px; }
  .soc-cell button.basket-button { width: 68px; font-size: 12px; }
}

/* ============ 登录态邮箱（顶部） ============ */
.user-email { color: #fff; font-size: 12px; margin-right: 4px; }

/* ============ 注册 / 登录页 ============ */
.auth-page { padding: 40px 0 60px; background-color: #eff3f6; }
.auth-box {
  max-width: 420px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e6e8ea;
  border-radius: 6px;
  padding: 30px 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}
.auth-box h1 { font-size: 22px; font-weight: 700; color: #222; margin: 0 0 6px; }
.auth-box .auth-sub { font-size: 13px; color: #8e8e8e; margin: 0 0 20px; }
.auth-box label { display: block; font-size: 13px; color: #444; margin: 14px 0 6px; }
.auth-box input {
  width: 100%;
  height: 40px;
  border: 1px solid #dddfe1;
  border-radius: 3px;
  padding: 0 12px;
  font-size: 14px;
  color: #222;
  box-sizing: border-box;
}
.auth-box input:focus { outline: none; border-color: #2fb241; }
.auth-box .auth-btn {
  width: 100%;
  height: 42px;
  margin-top: 22px;
  border: none;
  border-radius: 3px;
  background-color: #2fb241;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.auth-box .auth-btn:hover { background-color: #03a819; }
.auth-box .auth-msg { font-size: 13px; color: #d52823; margin: 14px 0 0; min-height: 18px; }
.auth-box .auth-alt { font-size: 13px; color: #666; margin: 14px 0 0; text-align: center; }
.auth-box .auth-alt a { color: #2fb241; font-weight: 600; }

/* ============ 帮助 / FAQ / 条款页 ============ */
.info-page { padding-bottom: 50px; }
.info-content {
  max-width: 900px;
  margin: 20px auto 0;
  background: #fff;
  border: 1px solid #e6e8ea;
  border-radius: 4px;
  padding: 28px 34px;
  line-height: 1.7;
  color: #333;
}
.info-content h1 { font-size: 24px; font-weight: 700; color: #222; margin: 0 0 18px; }
.info-content h2.faq-group { font-size: 18px; font-weight: 700; color: #2fb241; margin: 26px 0 12px; padding-bottom: 6px; border-bottom: 1px solid #e6e8ea; }
.info-content h3 { font-size: 16px; font-weight: 700; color: #222; margin: 22px 0 10px; }
.info-content p { margin: 10px 0; font-size: 14px; }
.info-content ul, .info-content ol { margin: 10px 0 10px 22px; font-size: 14px; }
.info-content li { margin: 4px 0; }
.info-content a { color: #2fb241; }
.info-content .help-link { margin: 6px 0; }
.info-content .help-link a { font-size: 15px; color: #222; }
.info-content .help-link a:hover { color: #2fb241; }
.faq-item { border: 1px solid #e6e8ea; border-radius: 3px; margin-bottom: 10px; overflow: hidden; }
.faq-q { background: #f5f7f9; padding: 12px 16px; font-weight: 700; font-size: 14px; color: #222; }
.faq-a { padding: 12px 16px; font-size: 14px; color: #444; }
.faq-a p { margin: 6px 0; }
.rule-wrap p { margin: 10px 0; font-size: 14px; color: #444; line-height: 1.8; }
.rule-wrap h3 {
  font-size: 17px; font-weight: 700; color: #2fb241;
  border-left: 4px solid #2fb241; padding-left: 10px;
  margin: 26px 0 14px; line-height: 1.4;
}
