@charset "UTF-8";
/* ============================================================
   产品列表（产品中心）展示区样式
   ------------------------------------------------------------
   内容与 assets/css/site.css 中的 .plist-* 完全一致。
   - /product-category/chanpin/ 及其品牌子页面是保留的 WordPress 页面，
     不能再加载整站样式（会改动页头页脚），所以只单独引用本文件；
   - 原来的 products.html 列表页已下线（首页「产品中心」指向上述分类页）。
   改 .plist-* 样式时，site.css 与本文件要一起改。
   ============================================================ */
:root { --ink: #1a1814; --gold: #8a6a3d; }

/* 列表外层：撑满容器，不受父级 flex 对齐方式影响 */
.plist-block { width: 100%; }

.plist-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 顶部品牌切换条：版式参照参考站产品分类页（sinostone.cn/list_104）
   —— 一级目录 20px / #666，悬停黑色 2px 下划线；右侧「当前位置」16px / #999 + 定位图标；下面一条细横线
   参考站不做常驻高亮：当前页只输出 aria-current，视觉上与其它标签一样，靠悬停区分 */
.plist-bar { background: #fff; border-bottom: 1px solid #e6e6e6; }
.plist-bar-in {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; padding-top: 44px;
}
.plist-tabs { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 60px; }
.plist-tab {
  position: relative; display: block; padding: 0 0 16px;
  border: 0; background: none; text-decoration: none;
  font-size: 20px; font-weight: 400; line-height: 1.4; color: #666; cursor: pointer;
  transition: color 0.3s;
}
.plist-tab::after {
  content: ""; position: absolute; left: 50%; bottom: -1px;
  width: 0; height: 2px; background: #111;
  transform: translateX(-50%); transition: width 0.3s;
}
/* 只在鼠标悬停（键盘 Tab 聚焦）时出现下划线 */
.plist-tab:hover,
.plist-tab:focus-visible { color: #263147; }
.plist-tab:hover::after,
.plist-tab:focus-visible::after { width: 100%; }

.plist-crumb {
  display: flex; align-items: center; flex-wrap: wrap;
  margin: 0 0 16px; font-size: 16px; line-height: 1.5; color: #999;
}
.plist-crumb-ico {
  width: 16px; height: 16px; margin-right: 8px; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; color: #999;
}
.plist-crumb a { color: #999; }
.plist-crumb a:hover { color: var(--gold); }
.plist-crumb-sep { margin: 0 8px; color: #c0c0c0; }
.plist-crumb-cur { color: #666; }

.plist-main { background: #f7f6f3; padding: 48px 0 72px; }
.plist-tools { display: flex; justify-content: flex-end; margin: 26px 0 40px; }
.plist-search {
  position: relative; display: flex; align-items: center;
  width: 25%; max-width: 300px; min-width: 200px;
  border-bottom: 1px solid var(--ink);
}
.plist-search-input {
  width: 100%; height: 40px; padding: 0 34px 0 0;
  border: 0; border-radius: 0; background: transparent;
  font: inherit; font-size: 16px; color: var(--ink); outline: none;
}
.plist-search-input::placeholder { color: #aaa; }
.plist-search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
/* 主题给 input[type="search"] 带了 1px 灰框，这里压掉，只留下面一条线 */
.plist-block .plist-search .plist-search-input {
  border: 0; background: transparent; box-shadow: none;
}
.plist-search-btn {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  border: 0; background: none; padding: 4px; line-height: 0;
  color: var(--ink); cursor: pointer;
}

.plist-grid {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap;
  column-gap: 2.5%; row-gap: 60px;
}
.plist-item { width: 31.6%; display: flex; flex-direction: column; margin: 0; }
.plist-grid:not(.is-ready) .plist-item:nth-child(n + 13) { display: none; }

.plist-pic {
  position: relative; display: block; padding-top: 66.668%;
  overflow: hidden; background: #e9e6df; z-index: 3;
}
.plist-pic > .plist-img {
  position: absolute; inset: 0; width: 100%; height: 100% !important;
  max-width: none; object-fit: cover; transition: transform 0.8s;
}
.plist-pic:hover > .plist-img { transform: scale(1.1); }

/* 悬停效果（同参考站 czlist 列表）：深蓝遮罩淡入，面板从图片上方滑到中间，
   面板里露出方图 + 产品名；名称比面板稍晚一步归位（同参考站 .info p） */
.plist-pic-mask {
  position: absolute; inset: 0; z-index: 2;
  background: rgba(37, 48, 70, 0.8);
  opacity: 0; transition: opacity 0.8s;
}
.plist-pic:hover .plist-pic-mask { opacity: 1; }
.plist-pic-info {
  position: absolute; left: 50%; top: -100%; z-index: 3;
  width: 48%; max-width: 215px; text-align: center;
  transform: translate(-50%, -50%);
  opacity: 0; transition: top 0.8s, opacity 0.8s;
}
.plist-pic:hover .plist-pic-info { top: 50%; opacity: 1; }
.plist-pic-info-img {
  display: block; width: 100%; max-width: 100%;
  aspect-ratio: 1 / 1; object-fit: cover;
}
.plist-pic-title {
  display: block; margin-top: 10px; padding: 0 6%;
  color: #fff; font-size: 16px; line-height: 1.5; text-align: center;
  transform: translateY(-100%); transition: transform 0.8s;
}
.plist-pic:hover .plist-pic-title { transform: translateY(0); }
.plist-media-empty {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(135deg, #d8c8a8, #8d6b3e);
  color: #fff; font-weight: 700; letter-spacing: 0.08em;
}

.plist-meta { position: relative; z-index: 2; padding: 3.5% 2% 4.6% 3%; background: #fff; flex: 1 1 auto; }
.plist-item:hover .plist-meta { box-shadow: 0 8px 18px rgba(0, 0, 0, 0.09); }
.plist-title { margin: 0; font-size: 20px; font-weight: 400; line-height: 1.45; color: #555; }
.plist-title a { color: inherit; }
.plist-pic:hover + .plist-meta .plist-title,
.plist-meta:hover .plist-title { color: var(--ink); }
.plist-code { margin: 6px 0 0; font-size: 12px; letter-spacing: 0.06em; color: #aaa; }

/* 触屏设备没有悬停：不显示悬停面板，避免点按后卡在遮罩状态 */
@media (hover: none) {
  .plist-pic-mask, .plist-pic-info { display: none; }
  .plist-pic:hover > .plist-img { transform: none; }
}

.plist-empty { margin: 56px 0 0; text-align: center; font-size: 15px; color: #999; }

.plist-pager {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 5px;
  margin-top: 56px;
}
.plist-pager button {
  min-width: 42px; height: 42px; padding: 0 8px;
  border: 1px solid #dcdcdc; border-radius: 3px; background: #fff;
  font: inherit; font-size: 14px; color: #aaa; cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.plist-pager button:hover { color: var(--ink); border-color: var(--ink); }
.plist-pager button.is-active {
  background: var(--ink); border-color: var(--ink); color: #fff;
}
.plist-pager button[disabled] { opacity: 0.45; cursor: default; }
.plist-pager button[disabled]:hover { color: #aaa; border-color: #dcdcdc; }

@media (max-width: 980px) {
  .plist-bar-in { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0; padding-top: 24px; }
  .plist-crumb { order: -1; margin: 0 0 12px; font-size: 14px; }
  .plist-tabs { gap: 28px; }
  .plist-tab { font-size: 16px; padding-bottom: 12px; }
  .plist-main { padding: 32px 0 56px; }
  .plist-tools { justify-content: flex-end; margin: 20px 0 28px; }
  .plist-search { width: 100%; max-width: 300px; }
  .plist-grid { row-gap: 40px; }
  .plist-item { width: 48.75%; }
  .plist-title { font-size: 18px; }
  .plist-pic-info { width: 42%; }
  .plist-pic-title { font-size: 14px; line-height: 1.4; }
}
@media (max-width: 640px) {
  .plist-grid { row-gap: 28px; }
  .plist-item { width: 100%; }
  .plist-pager { margin-top: 36px; }
}

/* 语种切换：本页不加载整站 site.css，规则限定在列表内部（含顶部切换条与搜索框） */
.plist-block [data-en] { display: none; }
html[lang="en"] .plist-block [data-zh] { display: none; }
html[lang="en"] .plist-block [data-en] { display: inline; }

/* ============================================================
   分类页专用：隐藏 WP 导出的旧「品牌菜单 + 绿色细分隔线」
   ------------------------------------------------------------
   .elementor-1109 是产品中心各分类页共用的 Elementor 归档模板，
   它自带的一行「玛高 | 华赛 | 海漾」和它下面的横线，已由本文件的
   .plist-bar（大字号品牌标签 + 当前位置 + 细横线）取代。
   这条规则不镜像到 site.css：其他页面不加载 plist.css，保持原样。
   ============================================================ */
.elementor-1109 .elementor-element-7bd401f8,
.elementor-1109 .elementor-element-c79b5d8 { display: none !important; }
