/* ===============================
 * style-v2.css — 数链优选 样式系统化升级 (优化版)
 * 目标：变量化、组件化、响应式、可访问性、可维护
 * 更新：基于专业建议进行了全面优化和代码现代化。
 * =============================== */

/* ===== 1) Design Tokens 令牌（全局变量） ===== */
:root {
  /* 色板 */
  --ey-brand: #e61f4d;
  --ey-brand-2: #b96551;
  --ey-ink: #101113;
  --ey-ink-2: #333333;
  --ey-muted: #666666;
  --ey-subtle: #999999;
  --ey-border: #e6e8eb;
  --ey-bg: #ffffff;
  --ey-surface: #ffffff;
  --ey-card: #ffffff;
  --ey-bg-alt: #f6f7f9; /* 新增: 用于一些次要背景 */

  /* 语义色 */
  --ey-success: #11b396;
  --ey-danger: #ff5b5b;
  --ey-warning: #ffb020;
  --ey-info: #388bfd;

  /* 圆角 & 阴影 */
  --ey-radius-sm: 8px;
  --ey-radius-md: 12px;
  --ey-radius-lg: 16px;
  --ey-shadow-color: rgba(0, 0, 0, 0.1); /* 新增: 阴影颜色分离 */
  --ey-shadow-sm: 0 1px 3px var(--ey-shadow-color);
  --ey-shadow-md: 0 6px 20px var(--ey-shadow-color);
  --ey-shadow-lg: 0 12px 30px var(--ey-shadow-color);

  /* 间距 */
  --ey-s-1: 4px;
  --ey-s-2: 8px;
  --ey-s-3: 12px;
  --ey-s-4: 16px;
  --ey-s-5: 20px;
  --ey-s-6: 24px;
  --ey-s-8: 32px;
  --ey-s-10: 40px;
  --ey-s-12: 48px;

  /* 字体系统 */
  --ey-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --ey-line-height-base: 1.7; /* 新增: 基础行高 */
  --ey-line-height-tight: 1.4; /* 新增: 紧凑行高 */
  --ey-font-weight-normal: 400; /* 新增: 默认字重 */
  --ey-font-weight-bold: 700; /* 新增: 加粗字重 */
  --ey-fs-xs: 12px;
  --ey-fs-sm: 14px;
  --ey-fs-md: 16px;
  --ey-fs-lg: 18px;
  --ey-fs-xl: 20px;
  --ey-fs-2xl: 26px;

  /* 容器 & 断点 */
  --ey-container: 1200px;
  --ey-safe-x: 12px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
  
  /* 动效 */
  --ey-transition-base: .2s ease; /* 新增: 统一过渡效果 */
  
  /* 布局变量 */
  --ey-header-height-mobile: 64px; /* 新增: 移动端头部高度 */
}

/* ===== 2) Base & Reset（温和型，避免破坏第三方） ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth; /* 新增：平滑滚动 */
  scroll-padding-top: var(--ey-header-height-mobile); /* 新增：优化移动端 fixed header 下的锚点定位 */
}

body {
  margin: 0;
  color: var(--ey-ink-2);
  background: var(--ey-bg);
  font: var(--ey-font-weight-normal) var(--ey-fs-md)/var(--ey-line-height-base) var(--ey-font);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--ey-transition-base); /* 优化: 增加过渡 */
}

a:hover {
  opacity: .85;
}

:focus-visible {
  outline: 2px solid var(--ey-brand);
  outline-offset: 2px;
  border-radius: 4px; /* 新增: 让焦点轮廓更美观 */
}

/* ===== 3) 容器与工具 ===== */
.w-container {
  width: min(var(--ey-container), 92%);
  margin-inline: auto; /* 使用逻辑属性 */
}

/* 老工具类保留，内部变量化，建议逐步淘汰 */
.pt10 { padding-top: var(--ey-s-3); }
.pb10 { padding-bottom: var(--ey-s-3); }
.mt20 { margin-top: var(--ey-s-6); }
.mt30 { margin-top: var(--ey-s-8); }
.text-center { text-align: center; }

/*
 * [!] 以下旧版间距类已废弃，请在项目中移除。
 * 现代布局应使用 Flex/Grid 的 gap 属性或在组件内部使用 --ey-s-* 变量来控制间距。
 * .margin, .margin-top, .margin-right, .margin-bottom, .margin-left
 * .blank-small, .blank-middle, .blank-big, .blank-large
 */

/* ===== 4) 头部：导航附加区域 & LOGO ===== */
.navbar-addon a {
  margin-left: var(--ey-s-3);
}

.navbar-addon img {
  width: 20px;
  margin-bottom: 5px;
}

.navbar-addon i {
  font-size: var(--ey-fs-md);
}

.navbar-logo img {
  height: 50px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* 移动端吸顶场景 */
@media (max-width: 992px) {
  .w-container.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    background: var(--ey-bg);
    box-shadow: var(--ey-shadow-sm);
  }
  body {
    padding-top: var(--ey-header-height-mobile); /* 使用变量 */
  }
}

/* ===== 5) 标题条（首页区块标题） ===== */
.index-title {
  margin: var(--ey-s-12) auto;
  text-align: center;
}

.index-title .index-title-t {
  position: relative;
  display: inline-block;
  padding: 0 var(--ey-s-5);
  font-size: var(--ey-fs-lg);
  color: var(--ey-bg); /* 使用变量 */
  background: var(--ey-ink); /* 使用变量 */
  border-radius: var(--ey-radius-sm);
}

.index-title .index-title-t.m-line::before,
.index-title .index-title-t.m-line::after {
  content: "";
  position: absolute;
  top: 50%;
  height: 1px;
  background: var(--ey-ink); /* 使用变量 */
  width: 100%;
  z-index: -1;
}

.index-title .index-title-t.m-line::before { left: 50%; }
.index-title .index-title-t.m-line::after { right: 50%; }

.index-title .index-title-b {
  margin-top: var(--ey-s-2);
  color: var(--ey-muted);
  font-size: var(--ey-fs-sm);
}

.index-title .index-title-b span {
  margin: 0 var(--ey-s-3);
}

/* ===== 6) 产品列表（卡片化） ===== */
.products-list {
  margin-top: var(--ey-s-8);
}

.products-list .item {
  position: relative;
  padding: var(--ey-s-3);
  font-size: 0;
  box-sizing: border-box;
}

.products-list .item .img {
  position: relative;
  border-radius: var(--ey-radius-md);
  overflow: hidden;
  background: var(--ey-bg-alt);
  border: 1px solid var(--ey-border);
  box-shadow: var(--ey-shadow-sm);
  transition: transform var(--ey-transition-base), box-shadow var(--ey-transition-base); /* 优化: 过渡效果在元素本身上 */
}

.products-list .item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  transform: translateZ(0);
}

.products-list .item .img .fadein {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
}

.products-list .item .title {
  margin-top: var(--ey-s-3);
  text-align: center;
}

.products-list .item .title a {
  width: 100%;
  line-height: 1.6;
  font-size: var(--ey-fs-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.products-list .item .price {
  margin-top: var(--ey-s-1);
  font: var(--ey-font-weight-bold) var(--ey-fs-md)/1.5 var(--ey-font);
  display: inline-block;
  width: 100%;
  text-align: center;
  color: var(--ey-ink);
}

.products-list .item:hover .img {
  box-shadow: var(--ey-shadow-md);
  transform: translateY(-4px); /* 加大位移 */
}

/* ===== 7) 热门产品区（背景强化与可读性） ===== */
.hot-product {
  height: 747px;
  margin-top: 50px;
  background: url(../images/pro_bg.jpg) center/cover fixed no-repeat;
  position: relative;
  overflow: hidden;
}

.hot-product::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .35));
}

.hot-product .index-title {
  position: relative;
  z-index: 1;
}

.hot-product .index-title .index-title-b {
  color: var(--ey-bg); /* 使用变量 */
}

.hot-product .flip > .flip-body > .flip-item {
  box-sizing: border-box;
}

.hot-product .flip > .flip-body > .flip-item .txt {
  text-align: center;
  background: var(--ey-card); /* 使用变量 */
  width: 100%;
  padding: var(--ey-s-3); /* 使用变量 */
  border: 1px solid var(--ey-border);
  border-radius: var(--ey-radius-sm);
}

.hot-product .flip > .flip-body > .flip-item .txt .title {
  width: 100%;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hot-product .flip > .flip-body > .flip-item .txt .price {
  font-weight: var(--ey-font-weight-bold);
}

.hot-product .flip > .flip-body > .flip-item:hover .title,
.hot-product .flip > .flip-body > .flip-item:hover .price {
  color: var(--ey-ink-2);
}

/* 移动端：禁用 fixed 背景以提高性能 */
@media (max-width: 992px) {
  .hot-product {
    background-attachment: scroll;
    height: 652px;
  }
}

/* ===== 8) 资讯卡（new-list、news-list） ===== */
.mini-w90 {
  max-width: 90%;
  margin: 0 auto;
}

.new-list {
  margin-top: -40px !important; /* [!] 警告: 负值外边距和!important是代码坏味道，建议从布局层面解决。*/
}

.new-list .item img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--ey-radius-md);
  border: 1px solid var(--ey-border);
}

.new-list .item .title {
  width: 100%;
  padding: var(--ey-s-5) 0;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  color: var(--ey-ink);
}

.new-list .item .info {
  font-size: var(--ey-fs-xs);
  color: var(--ey-subtle);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.new-list .item .more {
  display: inline-block;
  margin-top: var(--ey-s-5);
  font-size: var(--ey-fs-xs);
  cursor: pointer;
  color: var(--ey-brand);
}

.news-list .item {
  margin-bottom: var(--ey-s-10);
  display: flex;
  gap: var(--ey-s-4);
}

.news-list .item:last-child {
  margin-bottom: 0;
}

.news-list .item .img {
  flex: 0 0 42%;
}

.news-list .item .img img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--ey-radius-md);
}

.news-list .item .txt {
  flex: 1;
}

.news-list .item .txt .title {
  font-size: var(--ey-fs-xl);
  font-weight: var(--ey-font-weight-bold);
  line-height: var(--ey-line-height-tight);
}

.news-list .item .txt .desc {
  margin-top: var(--ey-s-3);
  font-size: var(--ey-fs-sm);
  color: var(--ey-subtle);
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-list .item .txt .time {
  margin-top: var(--ey-s-3);
  font-size: var(--ey-fs-sm);
  color: var(--ey-subtle);
}

@media (max-width: 992px) {
  .new-list .item img,
  .news-list .item .img img {
    aspect-ratio: auto;
  }
  .news-list .item {
    display: block;
  }
  .news-list .item .img {
    margin-bottom: var(--ey-s-3);
  }
}

/* ===== 9) 分页 ===== */
.page {
  width: 100%;
  text-align: center;
  padding-top: var(--ey-s-8);
}

.pageList {
  overflow: hidden;
}

.pageList ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.pageList ul li {
  line-height: 30px;
  display: inline-block;
  margin: 0 2px;
  font-size: 0;
}

.pageList ul li a {
  background: var(--ey-bg-alt);
  color: var(--ey-muted);
  padding: var(--ey-s-1) var(--ey-s-3);
  border: 1px solid var(--ey-border);
  font-size: var(--ey-fs-md);
  border-radius: var(--ey-radius-sm);
  transition: background var(--ey-transition-base), color var(--ey-transition-base), border-color var(--ey-transition-base); /* 增加过渡 */
}

.pageList ul li a.selected,
.pageList ul li a:hover {
  background: var(--ey-ink);
  border-color: var(--ey-ink);
  color: var(--ey-bg);
}

.pageList ul li a.disable {
  color: var(--ey-subtle);
  pointer-events: none;
  background: #fdfdfd;
}

/* ===== 10) 面包屑 / 站点导航 ===== */
.site-nav {
  font-size: var(--ey-fs-sm);
  padding: var(--ey-s-4) var(--ey-s-3);
  color: var(--ey-subtle);
}

.site-nav a {
  color: var(--ey-subtle);
}

.header-banner {
  text-align: center;
  width: 100%;
  height: 250px;
  background: #555 center/cover no-repeat;
}

.header-banner .banner-txt {
  display: inline-block;
  padding: var(--ey-s-3) 0;
  color: var(--ey-bg);
  font-size: var(--ey-fs-2xl);
  border-bottom: 2px solid var(--ey-bg);
  margin-top: 80px;
}

@media (max-width: 992px) {
  .header-banner {
    display: none;
  }
}

/* ===== 11) 详情页（文章） ===== */
.detail-main {
  padding: var(--ey-s-8);
  background: var(--ey-surface);
  border: 1px solid var(--ey-border);
  border-radius: var(--ey-radius-md);
}

.detail-main .title {
  font-size: var(--ey-fs-2xl);
  font-weight: 800;
  margin-bottom: var(--ey-s-4);
  line-height: 1.25;
}

.detail-main .article-info {
  font-size: var(--ey-fs-sm);
  color: var(--ey-subtle);
}

.detail-main .article-info span {
  margin-right: var(--ey-s-3);
}

.detail-main .article-con {
  margin-top: var(--ey-s-5);
}

.detail-main .article-con img {
  max-width: 100%;
  border-radius: var(--ey-radius-sm);
}

.detail-main .article-paeg {
  margin-top: var(--ey-s-8);
  display: flex;
  justify-content: space-between;
  gap: var(--ey-s-4);
}

.detail-main .article-paeg a {
  color: var(--ey-muted);
}

@media (min-width: 1024px) {
  .pc-bor {
    border: 1px solid var(--ey-border);
    border-radius: var(--ey-radius-md);
  }
  .news-detail .news-detail-l {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .news-detail .news-detail-r {
    padding-right: 0 !important;
  }
}

/* 右侧栏（热门/猜你喜欢） */
.detail-right {
  padding: var(--ey-s-4);
}

.detail-right .title {
  width: 100%;
  border-bottom: 1px solid var(--ey-border);
}

.detail-right .title span {
  display: inline-block;
  font-size: var(--ey-fs-lg);
  font-weight: var(--ey-font-weight-bold);
  padding: 0 var(--ey-s-3) var(--ey-s-3);
}

.detail-right .hot-list .item {
  display: flex;
  margin-top: var(--ey-s-5);
  gap: var(--ey-s-3);
}

.detail-right .hot-list .item .item-l {
  width: 100px;
  height: 60px;
  flex-shrink: 0;
}

.detail-right .hot-list .item .item-l img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--ey-radius-sm);
}

.detail-right .hot-list .item .item-r {
  flex: 1;
  min-width: 0;
}

.detail-right .hot-list .item .item-r .tit {
  font-size: var(--ey-fs-sm);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail-right .hot-list .item .item-r .tit a {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-right .hot-list .item .item-r .num {
  font-size: var(--ey-fs-xs);
  color: var(--ey-subtle);
}

/* 右侧：热门产品 */
.detail-right .prohot-list {
  margin-top: var(--ey-s-5);
}

.detail-right .prohot-list .item {
  margin-bottom: var(--ey-s-3);
}

.detail-right .prohot-list .item .img {
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: var(--ey-radius-sm);
  border: 1px solid var(--ey-border);
}

.detail-right .prohot-list .item .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-right .prohot-list .item .txt {
  margin-top: var(--ey-s-2);
}

.detail-right .prohot-list .item .txt .tit a {
  width: 100%;
  text-align: center;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: var(--ey-fs-sm);
  color: var(--ey-muted);
}

.detail-right .prohot-list .item .txt .price {
  width: 100%;
  display: block;
  font-size: var(--ey-fs-md);
  text-align: center;
  line-height: 1;
  color: var(--ey-subtle);
}


/* ===== 12) 商品详情（相册 + 信息栏 + Tab） ===== */
.detail-pro {
  padding: var(--ey-s-4);
}

.pro-imgbox {
  width: 100%;
  overflow: hidden;
}

.pro-imgbox .tb-pic a {
  display: inline-block;
  text-align: center;
  vertical-align: middle;
}

.pro-imgbox .tb-pic a img {
  vertical-align: middle;
}

.pro-imgbox .tb-s310 a {
  height: auto;
  width: 100%;
}

.pro-imgbox .tb-s310,
.pro-imgbox .tb-s310 img {
  height: auto;
  width: 100%;
  border-radius: var(--ey-radius-md);
  border: 1px solid var(--ey-border);
}

.pro-imgbox .tb-thumb {
  margin-top: var(--ey-s-3);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--ey-s-2);
}

.pro-imgbox .tb-thumb li {
  width: 70px;
  height: 70px;
  overflow: hidden;
  border: 2px solid transparent; /* 优化: 默认透明边框占位 */
  border-radius: var(--ey-radius-sm);
  transition: border-color var(--ey-transition-base);
}

.pro-imgbox .tb-thumb li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pro-imgbox .tb-thumb .tb-selected {
  border-color: var(--ey-ink);
}

/* 放大镜层（移动端关闭） */
div.zoomDiv {
  z-index: 999;
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: var(--ey-surface);
  border: 1px solid var(--ey-border);
  display: none;
  text-align: center;
  overflow: hidden;
}

div.zoomMask {
  position: absolute;
  background: url(../images/mask.png) repeat;
  cursor: move;
  z-index: 1;
}

@media (max-width: 992px) {
  div.zoomDiv, div.zoomMask {
    display: none !important;
  }
  .pro-imgbox .tb-thumb li {
    width: 56px;
    height: 56px;
  }
}

.pro-infobox {
  padding: var(--ey-s-3) var(--ey-s-3) 0 var(--ey-s-8);
}

.pro-infobox .w-lable {
  width: 50px;
  color: var(--ey-subtle);
}

.pro-infobox .pro-title {
  font-size: var(--ey-fs-xl);
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: var(--ey-s-3);
}

.pro-infobox .pro-desc {
  font-size: var(--ey-fs-sm);
  color: var(--ey-subtle);
  line-height: 1.7;
}

.pro-infobox .pro-type {
  margin-top: var(--ey-s-5);
}

.pro-infobox .pro-item {
  display: flex;
  font-size: var(--ey-fs-sm);
  align-items: center;
  gap: var(--ey-s-2);
}

.pro-infobox .pro-item-l {
  color: var(--ey-subtle);
}

.pro-infobox .pro-item-r {
  flex: 1;
}

.pro-infobox .pro-price {
  margin-top: var(--ey-s-5);
  align-items: center;
}

.pro-infobox .pro-price .pro-item-r {
  font-size: 30px;
  font-weight: 800;
  color: var(--ey-ink);
}

/* 规格/标签 */
.pro-infobox .pro-type .type-tags {
  margin-top: var(--ey-s-3);
}

.pro-infobox .pro-type .type-tags .type-tag {
  display: inline-block;
  margin: 3px var(--ey-s-3) 3px 0;
  text-align: center;
  padding: 0 var(--ey-s-3);
  line-height: 32px;
  border: 1px solid var(--ey-border);
  color: var(--ey-ink-2);
  border-radius: 20px;
  cursor: pointer;
  transition: var(--ey-transition-base);
}

.pro-infobox .pro-type .type-tags .type-tag:hover {
  border-color: var(--ey-brand);
  color: var(--ey-brand);
}

.pro-infobox .pro-type .type-tags .type-tag.btn-selected {
  border-color: var(--ey-brand);
  background: var(--ey-brand);
  color: var(--ey-bg);
}

.pro-infobox .pro-type .type-tags .type-tag.disabled {
  color: var(--ey-subtle);
  border-style: dashed;
  cursor: not-allowed;
  background-color: var(--ey-bg-alt);
}

.pro-infobox .pro-type .type-tags > div {
  display: table-cell;
}

.pro-infobox .pro-type .type-tags .type-name {
  line-height: 30px;
}

/* 数量与按钮 */
.pro-infobox .pro-quantity {
  margin-top: var(--ey-s-5);
}

.pro-infobox .pro-quantity .pro-item-r {
  display: flex;
}

.pro-infobox .pro-quantity .minus,
.pro-infobox .pro-quantity .plus {
  border: 1px solid var(--ey-border);
  background: none;
  height: 40px;
  width: 40px;
  border-radius: 6px;
}

.pro-infobox .pro-quantity .input_num {
  border-top: 1px solid var(--ey-border);
  border-bottom: 1px solid var(--ey-border);
  border-left: none;
  border-right: none;
  background: var(--ey-bg);
  height: 40px;
  width: 56px;
  text-align: center;
}

.pro-infobox .pro-btns {
  margin-top: var(--ey-s-6);
  font-size: 0;
}

.pro-infobox .pro-btns .oper-bt {
  font-size: var(--ey-fs-sm);
  display: inline-block;
  color: var(--ey-bg);
  padding: var(--ey-s-3) var(--ey-s-5);
  border: 0;
  border-radius: var(--ey-radius-sm);
  transition: var(--ey-transition-base);
}

.pro-infobox .pro-btns .oper-bt.bt1 {
  background: var(--ey-ink);
  margin-right: var(--ey-s-3);
}

.pro-infobox .pro-btns .oper-bt.bt2 {
  background: var(--ey-success);
}

.pro-infobox .pro-btns .oper-bt:hover {
  transform: translateY(-2px);
  box-shadow: var(--ey-shadow-sm);
}

/* Tab */
.product-tab {
  width: 100%;
  margin-top: var(--ey-s-8);
}

.product-tab .nav.nav-tabs {
  border-bottom: 0;
  border-top: 1px solid var(--ey-border);
}

.product-tab .nav.nav-tabs > li > a {
  border-radius: 0;
  color: var(--ey-ink);
  border: 1px solid transparent;
  padding: var(--ey-s-3) var(--ey-s-4);
}

.product-tab .nav.nav-tabs > li.active > a {
  border: 1px solid transparent;
  border-top: 2px solid var(--ey-ink);
  font-weight: var(--ey-font-weight-bold);
  color: var(--ey-ink);
}

.product-content {
  padding: var(--ey-s-5);
}

.product-content img {
  max-width: 100%;
  border-radius: var(--ey-radius-sm);
}

.product-content .pro-spec {
  font-size: var(--ey-fs-sm);
  color: var(--ey-muted);
}

/* ===== 13) 页脚 ===== */
.footer {
  margin-top: var(--ey-s-8);
}

.footer .footer-t {
  background: var(--ey-ink-2);
  color: #8b8b8b;
  padding: var(--ey-s-10) var(--ey-s-3);
}

.footer .footer-t .footer-t-l span {
  display: block;
  font-size: var(--ey-fs-sm);
}

.footer .footer-t .footer-t-l .title {
  margin-bottom: var(--ey-s-3);
  font-size: var(--ey-fs-md);
  display: flex;
  align-items: center;
  gap: var(--ey-s-3);
}

.footer .footer-t .title img {
  margin-right: 0;
}

.footer-t-l .title img {
  height: 35px;
  width: auto;
  display: inline-block;
  filter: brightness(0) invert(1);
}

.footer .footer-t .footer-t-r {
  margin-top: var(--ey-s-3);
  text-align: right;
}

.footer .footer-t .footer-t-r div {
  display: inline-block;
  width: 85px;
  font-size: var(--ey-fs-sm);
  color: #8b8b8b;
  text-align: center;
  margin-left: var(--ey-s-5);
}

.footer .footer-t .footer-t-r div img {
  width: 85px;
  height: 85px;
}

.footer .footer-t .footer-t-r div span {
  width: 100%;
  display: block;
  margin-top: var(--ey-s-2);
}

.footer .footer-b {
  background: #252525;
  padding: var(--ey-s-4) 0;
  text-align: center;
  font-size: var(--ey-fs-sm);
  color: #777;
}

.footer .footer-b p a {
  color: #777;
}

/* 移动端页脚排版优化 */
@media (max-width: 992px) {
  .footer .footer-t {
    padding: var(--ey-s-5) var(--ey-s-3) var(--ey-s-3);
  }
  .footer .footer-t .footer-t-r {
    text-align: center;
  }
}

/* ===== 14) 弹窗（登录注册） ===== */
.dialog {
  border-radius: var(--ey-radius-lg);
  border: 0;
  margin: 0 auto;
  box-shadow: var(--ey-shadow-lg);
  background: var(--ey-surface);
}

.dialog .dialog-head {
  font-size: var(--ey-fs-lg);
  border-bottom: 0;
  background: var(--ey-surface);
  color: var(--ey-ink-2);
}

.dialog .dialog-head .close {
  float: right;
  line-height: 24px;
}

.dialog .dialog-body {
  padding: var(--ey-s-3) var(--ey-s-10) var(--ey-s-10);
  position: relative;
}

.dialog .dialog-body .icon-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  color: var(--ey-ink);
  font-size: 2rem;
  cursor: pointer;
}

.dialog-body h3 {
  font-size: var(--ey-fs-2xl);
  font-weight: var(--ey-font-weight-bold);
  color: var(--ey-ink-2);
  margin-bottom: var(--ey-s-3);
}

.dialog-body .form-group {
  padding-bottom: var(--ey-s-5);
}

.dialog-body .input,
.dialog-body .textarea,
.dialog-body select {
  height: 48px;
  line-height: 24px;
  padding: 0 var(--ey-s-3);
  border: 1px solid var(--ey-border);
  width: 100%;
  display: block;
  border-radius: var(--ey-radius-sm);
  background: var(--ey-bg);
  transition: border-color var(--ey-transition-base), box-shadow var(--ey-transition-base);
}
/* 新增：输入框交互效果 */
.dialog-body .input:focus,
.dialog-body .textarea:focus,
.dialog-body select:focus {
  outline: none;
  border-color: var(--ey-brand);
  box-shadow: 0 0 0 2px rgba(230, 31, 77, 0.2);
}

.dialog-body .textarea {
  padding: var(--ey-s-3);
  height: auto;
}

.dialog-body .label {
  padding-bottom: var(--ey-s-3);
  display: block;
  line-height: 24px;
}

.dialog-body select {
  padding-right: 30px;
  color: var(--ey-ink-2);
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  background: url(../images/select-down.png) no-repeat right 50%;
}

/* 第三方登录按钮 */
.register .bnt-login {
  margin: 0 auto;
  text-align: center;
}

.register .bnt-login span {
  display: inline-block;
  color: var(--ey-bg);
  font-size: 22px;
  width: 48px;
  height: 48px;
  line-height: 48px;
  margin-right: var(--ey-s-3);
  border-radius: 50%;
  transition: opacity var(--ey-transition-base);
}

.register .bnt-login span:hover {
  opacity: .9;
  cursor: pointer;
}

.register .bnt-login span.weixin { background: #38B624; }
.register .bnt-login span.qq { background: #1F92DF; }
.register .bnt-login span.weibo { background: #FF6000; }

.button.bg-yellow {
  color: var(--ey-bg) !important;
  background: var(--ey-success);
}

.button.bg-yellow:hover {
  color: var(--ey-bg) !important;
  border-color: var(--ey-success) !important;
  background-color: var(--ey-success) !important;
}

/* Tab 切换条 */
.register .tab {
  font-size: 0;
}

.register .tab li {
  cursor: pointer;
  display: inline-block;
  position: relative;
  font-size: 20px;
  width: 60px;
  color: var(--ey-muted);
  margin: 0 0 var(--ey-s-10) 0;
}

.register .tab li::before {
  background: var(--ey-border);
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  transition: transform .3s;
}

.register .tab li.cur {
  color: var(--ey-brand);
}

.register .tab li.cur::before {
  background: var(--ey-brand);
}

/* 分割线 */
.register .line {
  margin: 0;
  padding: 0;
  position: relative;
  text-align: center;
}

.register .line span {
  display: inline-block;
  font-size: var(--ey-fs-sm);
  padding: 0 var(--ey-s-5);
  position: relative;
  z-index: 1;
  background: var(--ey-bg-alt) !important;
}

.register .line hr {
  background: var(--ey-border);
  height: 1px;
  border: 0;
  margin: var(--ey-s-3) 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

/* ===== 15) 登录状态下的用户菜单 ===== */
.log-in {
  position: absolute;
  top: 29px;
  right: 5px;
}

.log-in .button-group .button {
  padding: 0;
  line-height: 18px;
  font-size: 20px;
}

.log-in a.user-ico {
  width: 32px;
  height: 32px;
  line-height: 32px;
  background: #ECEFF5;
  display: block;
  border-radius: 50%;
}

.log-in a.user-head {
  width: 32px;
  height: 32px;
  overflow: hidden;
  display: block;
  border-radius: 50%;
}

.log-in a.user-head img {
  width: 32px;
  height: 32px;
  object-fit: cover;
}

.log-in .drop-menu {
  margin: 12px 0 0;
  min-width: 140px;
  border-radius: var(--ey-radius-md);
  box-shadow: var(--ey-shadow-md);
  padding: var(--ey-s-3) 0;
  left: -40px;
  border: 1px solid var(--ey-border);
  background: var(--ey-surface);
}

.log-in .drop-menu li {
  padding: 0 var(--ey-s-3);
  height: 38px;
  text-align: left;
  display: flex;
  align-items: center;
}

.log-in .drop-menu li a {
  height: 38px;
  line-height: 38px;
  display: block;
  width: 100%;
  border-radius: var(--ey-radius-sm);
  padding: 0 var(--ey-s-2);
  transition: background-color var(--ey-transition-base);
}

.log-in .drop-menu li a:hover {
  background: var(--ey-bg-alt);
}

/* 顶尖角 */
.log-in .button-group ul::before,
.log-in .button-group ul::after {
  content: '';
  position: absolute;
  top: -8px;
  left: 50px;
  display: inline-block;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
}

.log-in .button-group ul::before {
  border-bottom: 8px solid var(--ey-bg);
  filter: drop-shadow(0 -1px 0 var(--ey-border));
}

.log-in .button-group ul::after {
  border-bottom: 8px solid transparent;
}

/* ===== 16) PC 端一些细节 ===== */
@media (min-width: 1024px) {
  .detail-main .article-paeg div:nth-child(2) {
    text-align: right;
  }
  .detail-right .prohot-list .item .img {
    height: auto;
  }
  .list-title {
    display: none;
  }
}
@media (min-width: 1280px) {
  .w-container {
    max-width: var(--ey-container);
  }
  .index-title {
    margin: 70px auto;
  }
  .products-list .item .title a {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .pro-imgbox .tb-s310,
  .pro-imgbox .tb-s310 a,
  .pro-imgbox .tb-s310 img {
    height: 400px;
    width: 400px;
  }
  .detail-right .prohot-list .item .img {
    height: 152px;
  }
  .product-content {
    padding: var(--ey-s-5);
  }
  .list-title {
    display: none;
  }
}

/* ===== 17) 无障碍与动效保护 ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}