/*
Theme Name: Py-Luxury
Theme URI: https://pyluxury.com/
Description: Py-Luxury 頂級復刻腕錶主題
Author: Py-Luxury
Version: 1.0
Text Domain: pyluxury
*/

/* Py-Luxury 仿站 — 页头 / Hero / 商品 / 博客 / 页脚 */

/* Google Fonts：走 @import，改一处整站生效 */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=Inter:wght@400;500;600&display=swap");

/* ---------- Base ---------- */
:root {
  --gold: #c8a15a;
  --gold-dark: #a9843f;
  --ink: #151515;
  --ink-soft: #3a3a3a;
  --muted: #777;
  --line: #e5e5e5;
  --bg: #ffffff;
  --bg-alt: #f7f7f7;
  --header-h: 87px;    /* logo 102px 宽 * 242/345 + 上下 padding 14 + 底边 1 */
  /* 1240：按 4 列商品栅格倒推的容器宽 */
  --container: 1240px;
  --container-sm: 920px;  /* 窄版容器，纯文字/列表页用 */
  /* 直角 */
  --radius: 0;
  /* 正文无衬线，大字标题衬线 */
  --font-body: ;
  --font-display: ;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-family: PingFang SC;
}

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

a { color: inherit; text-decoration: none; transition: color .2s ease, opacity .2s ease; }
/* 金色悬停只给导航和正文内链 */
.nav a:hover,
.breadcrumb a:hover,
.footer-col li a:hover,
.entry-content a:hover { color: var(--gold); }

h1, h2, h3, h4, h5 { color: var(--ink); margin: 0 0 .5em; line-height: 1.3; font-weight: 700; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* 窄版容器：和 .container 一起套 container-sm */
.container-sm {
  width: 100%;
  max-width: var(--container-sm);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Header ---------- */
/* 白底页头：文字图标用深色 */
.header {
  position: relative;
  z-index: 100;
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.header-main { padding: 7px 0; }

.header.has-sticky.is-stuck {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .1);   /* 白底上不需要原来那么重 */
  animation: slideDown .3s ease;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}

/* ---------- 首页页头：常驻吸顶 + 下滑收矮 ---------- */
/* 首页页头改用 sticky 吸顶，不做 fixed + slideDown */
.header.has-sticky-shrink { position: sticky; top: 0; }

/* 同优先级，靠写在后面压过上面那条 */
.header.has-sticky-shrink.is-stuck {
  position: sticky;
  left: auto;
  right: auto;
  animation: none;
}

/* 收矮：padding 7→2、logo 102→84 */
.header.has-sticky-shrink .header-main { transition: padding .25s ease; }
.header.has-sticky-shrink .logo img { transition: width .25s ease; }

.header.has-sticky-shrink.is-stuck .header-main { padding: 2px 0; }
.header.has-sticky-shrink.is-stuck .logo img { width: 84px; }

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo { flex: 0 0 auto; }
.logo img { width: 102px; height: auto; }

/* nav */
.nav { flex: 1 1 auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.nav-list > li { position: relative; }

/* 「首頁」右边那行小字，做成 li 里的 span */
.nav-list > li.nav-note-item {
  display: flex;
  align-items: center;
}
.nav-note {
  margin-left: 2px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .2px;
  color: var(--gold-dark);
  white-space: nowrap;
}

.nav-list > li > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .2px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.nav-list > li > a:hover,
.nav-list > li.is-open > a { color: var(--gold); }

.caret {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform .2s ease;
}
.has-dropdown.is-open .caret { transform: rotate(180deg); }

/* simple dropdown */
.dropdown {
  z-index: 2;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
  border-top: 2px solid var(--gold);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.has-dropdown:hover > .dropdown,
.has-dropdown.is-open > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 8px 18px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.dropdown li a:hover { background: var(--bg-alt); color: var(--gold); }

/* 首页「復刻腕錶」下拉的品牌名更长，单独放宽到 300px */
.dropdown-wide { min-width: 300px; }

/* 三级下拉：挂在二级里，从父项右侧展开 */
.dropdown li { position: relative; }

.dropdown .dropdown {
  top: -9px;                    /* 抵消父层 ul 的 padding: 8px 0，跟父项上沿对齐 */
  left: 100%;
  min-width: 200px;
  border-top: 0;
  border-left: 2px solid var(--gold);
  transform: translateX(8px);   /* 收起态改成横向滑入，不再往下掉 */
}
.dropdown .has-dropdown > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dropdown .caret { transform: rotate(-90deg); }            /* 三级父项箭头指右 */
.dropdown .has-dropdown:hover > .dropdown,
.dropdown .has-dropdown.is-open > .dropdown { transform: translateX(0); }
.dropdown .has-dropdown.is-open > a .caret { transform: rotate(0); }

/* mega menu */
.mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 8px);
  width: min(1080px, 92vw);
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .2);
  border-top: 2px solid var(--gold);
  padding: 26px 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}

.has-mega:hover > .mega,
.has-mega.is-open > .mega {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.mega-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 30px;
}

.mega-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-dark);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.mega-col ul + h4 { margin-top: 18px; }

.mega-col li a {
  display: block;
  padding: 5px 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.mega-col li a:hover { color: var(--gold); padding-left: 4px; }

/* ---------- 常驻搜索框 ---------- */
.header-search {
  position: relative;
  flex: 0 0 auto;
  width: 220px;               /* 再宽导航会换行，1100 里收窄 */
}
.header-search input {
  width: 100%;
  height: 38px;               /* 页头右侧一排按这个高度对齐 */
  padding: 0 36px 0 12px;     /* 右边留出放大镜按钮的位置 */
  /* 白底上用淡金描边 + 淡投影，聚焦转实金 */
  border: 1px solid rgba(200, 161, 90, .55);
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(21, 21, 21, .05);
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  outline: none;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.header-search input::placeholder { color: var(--muted); }
.header-search input:focus {
  border-color: var(--gold);   /* 淡金 → 实金，只有深浅之差，不跳 */
  box-shadow: 0 1px 3px rgba(21, 21, 21, .05), 0 0 0 3px rgba(200, 161, 90, .15);
}
/* 放大镜：框内右侧按钮，撑满一列 */
.header-search button {
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  width: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold);          /* 金色放大镜：页头唯一的暖色 */
  line-height: 0;
  cursor: pointer;
}
.header-search button:hover { color: var(--gold-dark); }

/* 手机端独立搜索条：桌面隐藏，849 以下显示 */
.mobile-search { display: none; }

/* 语言切换：内容是 TranslatePress 短代码输出的，样式在插件里，这边只管它在页头一排里别被挤 */
.lang-switch { flex: 0 0 auto; }

/* ---------- 首页专属：通栏金色导航行 ---------- */
.nav-bar { background: var(--gold); }

.nav-bar-inner {
  display: flex;
  align-items: center;
}

/* 金色底上的导航配色；窄屏导航是白色抽屉，交给下面 849 那套 */
@media (min-width: 850px) {
  .has-nav-bar .nav-bar-inner { padding-top: 7px; padding-bottom: 7px; transition: padding .25s ease; }
  .has-nav-bar .nav-list > li > a {
    padding: 9px 13px;
    font-size: 16px;
    color: var(--ink);
    transition: padding .25s ease, color .2s ease;
  }
  .has-nav-bar .nav-list > li > a:hover,
  .has-nav-bar .nav-list > li.is-open > a { color: #fff; }

  /* 吸顶时导航行也收矮一档 */
  .header.has-nav-bar.is-stuck .nav-bar-inner { padding-top: 1px; padding-bottom: 1px; }
  .header.has-nav-bar.is-stuck .nav-list > li > a { padding-top: 6px; padding-bottom: 6px; }
}

/* ---------- 首页专属：常驻搜索框（右侧按钮是放大镜图标） ---------- */
.has-nav-bar .header-search {
  width: 320px;
  display: flex;
  align-items: center;
}

.has-nav-bar .header-search input {
  height: 46px;
  padding: 0 54px 0 14px;     /* 右边留放大镜按钮的位置 */
  font-size: 14.5px;
}

.has-nav-bar .header-search button {
  top: 1px;
  right: 1px;
  bottom: 1px;
  width: 44px;
  border-radius: 0 2px 2px 0;
  background: var(--gold-dark);
  color: #fff;
  line-height: 0;
}
.has-nav-bar .header-search button:hover { background: #96742f; }

/* ---------- 首页专属：logo 右侧的「貨到付款」金色小标 ---------- */
.header-tag {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 7px 15px;
  border: 1px solid var(--gold);
  border-radius: 999px;                       /* 胶囊 */
  background: linear-gradient(135deg, rgba(200, 161, 90, .16), rgba(200, 161, 90, .04));
  box-shadow: 0 0 0 3px rgba(200, 161, 90, .09);   /* 淡金光晕，更跳 */
  color: var(--gold-dark);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .3px;
  white-space: nowrap;
}
.header-tag svg { flex: 0 0 auto; }

/* ---------- 首页专属：页头右侧社媒图标 ---------- */
.header-social {
  flex: 0 0 auto;
  margin-left: auto;          /* 把社媒和语言切换一起顶到右侧 */
  display: flex;
  align-items: center;
  gap: 2px;
}

.header-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--ink-soft);
}
.header-social a:hover { color: var(--gold-dark); }

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
  z-index: 90;
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

/* ---------- Hero ---------- */
/* 首页 banner：container 宽的 Swiper 轮播，大标题 + 小标题压在图片左下角 */
.hero { padding: 24px 0 0; }

/* 图箱：底图 2560×1120（扩展名 .jpg 但内容是 WebP）；图走 HTML 内联，这里只管打底和裁切 */
.hero-media {
  position: relative;
  min-height: 440px;   /* 箱宽 1240 时原比例高 542，这里裁掉一点 */
  background: var(--ink) center / cover no-repeat;
}
.hero picture { display: block; }   /* picture 转块级，避免基线间隙 */
.hero img { width: 100%; height: auto; display: block; }
.hero-link { display: block; }

/* 文字层：贴图箱左下角；深色垫底只铺内容这一块，右边留出的 padding 拿来渐隐 */
.hero-content {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  max-width: 100%;
  padding: 24px 110px 22px 24px;
  text-align: left;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(15, 15, 15, .74), rgba(15, 15, 15, .74) calc(100% - 110px), rgba(15, 15, 15, 0)),
    linear-gradient(0deg, rgba(15, 15, 15, .5), rgba(15, 15, 15, 0));
}
/* 首屏 h1、其余屏 h2，共用这一套字 */
.hero-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 1px;
  margin: 0;
  color: var(--gold);
}
.hero-title span { color: var(--gold); }   /* h1 内的强调 span，备用 */
/* 描述段：标题下一行，宽度决定整个文字块多宽 */
.hero-desc {
  max-width: 640px;
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .86);
}

/* 分页点：贴图箱右下角，小圆点，未选中白、选中金 */
.hero .hero-swiper .hero-pager {
  left: auto;
  right: 20px;
  top: auto;
  bottom: 18px;
  width: auto;
  --swiper-pagination-color: var(--gold);
  --swiper-pagination-bullet-inactive-color: #fff;
  --swiper-pagination-bullet-inactive-opacity: .5;
  --swiper-pagination-bullet-size: 8px;
}

/* 窄屏：图箱和左下的文字一起收 */
@media (max-width: 1100px) {
  .hero-media { min-height: 380px; }
  .hero-content { padding: 20px 110px 18px 20px; }
  .hero-title { font-size: 24px; }
}
@media (max-width: 849px) {
  .hero-media { min-height: 300px; }
  /* 窄屏文字占满宽度，垫底改成几乎铺满整块，只留最右边一点渐隐 */
  /* 底边多留一档，给右下角的分页点让出位置 */
  .hero-content {
    padding: 20px 24px 34px;
    background:
      linear-gradient(90deg, rgba(15, 15, 15, .82), rgba(15, 15, 15, .82) calc(100% - 24px), rgba(15, 15, 15, 0)),
      linear-gradient(0deg, rgba(15, 15, 15, .6), rgba(15, 15, 15, .35));
  }
  .hero-title { font-size: 20px; }
}
@media (max-width: 560px) {
  .hero { padding: 14px 0 0; }
  .hero-media { min-height: 240px; }
  .hero-content { padding: 16px 20px 30px; }
  .hero-title { font-size: 17px; }
  .hero-desc { margin-top: 8px; font-size: 13.5px; }
}

/* ---------- Sections ---------- */
.section { padding: 58px 0; }
/* 以面包屑开头的 section 收上内边距；849 那档要重写 */
.section:has(> .container:first-child > .breadcrumb) { padding-top: 26px; }
/* 首页 section 隔段铺浅灰，白卡才有依托 */
.section-alt { background: var(--bg-alt); }

.section-title {
  position: relative;
  text-align: center;
  font-family: var(--font-display);
  font-size: 31px;      /* 衬线体 x 高度小，同字号看着偏小，补回来 */
  font-weight: 600;     /* 加粗是最省事的层级手段，也是最没主见的 */
  letter-spacing: 1px;
  margin: 0 0 26px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.section-title::before,
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.section-title span { display: inline-block; }

/* 首页 section 头部：只剩标题一行，居中 */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 28px;
}
.section-head .section-title {
  display: block;          /* 撤掉撑线用的 flex */
  width: 100%;             /* 撑满才轮得到 text-align 生效 */
  text-align: center;
  line-height: 1.2;
  margin: 0;
}
.section-head .section-title::before,
.section-head .section-title::after { content: none; }

/* 文字链样式；首页已改回按钮，目前无人使用 */
.section-link {
  flex: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  transition: color .22s ease, border-color .22s ease;
}
.section-link:hover { color: var(--gold-dark); border-color: var(--gold-dark); }

/* 首页「查看所有」用上面的 .btn-row，别重复加 */

/* 首页标题下的描述，量度 920，负上边距抵掉 .section-head */
.section-intro {
  max-width: 920px;
  margin: -10px auto 30px;
  font-size: 14.5px;
  line-height: 1.95;
  text-align: center;
  color: var(--ink-soft);
}

/* ---------- Rows / grids ---------- */
.row {
  display: grid;
  gap: 20px;
}
/* 桌面 4 列，卡片 285px，不超过 300px 源图 */
/* #searchGrid 是搜索页的网格：那页没有侧栏，所以跟首页一样 4 列 */
#bestGrid,
#hqGrid,
#searchGrid { grid-template-columns: repeat(4, 1fr); }
/* 归档页右侧有 280px 分类栏，改 3 列才和首页卡片一样大 */
#shopGrid { grid-template-columns: repeat(3, 1fr); }
#blogGrid,
#feedbackGrid { grid-template-columns: repeat(4, 1fr); }
/* 首页品牌分类：8 项，4 列 × 2 行 */
#brandGrid { grid-template-columns: repeat(4, 1fr); }

/* ---------- Product card ---------- */
/* 细边框收住整张卡片，列表看起来更规整；不加圆角和阴影 */
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;      /* 图片放大时要裁掉溢出 */
  display: flex;
  flex-direction: column;
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fafafa;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-media img { transform: scale(1.07); }

/* 标签改白底细描边，不用实心金角标 */
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
     background: var(--gold);
    border-color: var(--gold);
    color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.4px;
  padding: 4px 8px;
  border-radius: 0;
  text-transform: uppercase;
}

/* badge 为空时隐藏 */
.product-badge:empty { display: none; }

/* 「快速預覽」已全站删除，唯一悬停反馈是图片放大 */

.product-body {
  padding: 12px 12px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* 3 行 × 15px × 1.45 ≈ 65px，跟着字号走 */
  min-height: 66px;
}
.product-title a:hover { color: var(--gold); }

.product-price {
  margin-top: auto;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--gold-dark);
}
.product-price .price-now { white-space: nowrap; }
/* 币种符号小一号 */
.product-price .price-cur { font-size: .85em; margin-right: 1px; }

/* ---------- 品牌分类卡（首页） ---------- */
.brand-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--ink);
}
.brand-media {
  aspect-ratio: 347 / 237;
  overflow: hidden;
  background: #fafafa;
}
.brand-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.brand-card:hover .brand-media img { transform: scale(1.05); }
.brand-title {
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .3px;
  text-align: center;
}

/* ---------- 買前先看真實反饋（首页） ---------- */
/* 卡片直接用文章那套 .post-card，见 front-page.php 的 #feedbackGrid */

/* 三个看点：胶囊标签，同新闻列表的分类标签 */
.feedback-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 0;
}
.feedback-points li {
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--gold-dark);
  font-size: 12.5px;
  font-weight: 600;
}

/* ---------- 廠貨對比（首页） ---------- */
/* 上面一张对比图（两个产品都在图里，不裁不缩放），下面一张三列表：項目 / 3K / BBF */
.compare {
  display: grid;
  gap: 30px;
}

/* 图限宽居中：源图只有 800 宽，铺满 1240 要放大；浅灰底铺满整行，跟表格一样宽 */
.compare-media { background: #fafafa; }
.compare-media img {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 0 auto;
}

/* 对比表：定宽布局，字段列窄、两个厂名各占一半，逐行左右对齐 */
.compare-specs {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}
.compare-specs th,
.compare-specs td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
/* 表头：浅底、两个厂名 */
.compare-specs thead th {
  background: var(--bg-alt);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
}
.compare-specs thead th:first-child { width: 108px; }
/* 行首字段名 */
.compare-specs tbody th {
  font-weight: 400;
  font-size: 13.5px;
  color: var(--muted);
  white-space: nowrap;
}
.compare-specs td { color: var(--ink); }
/* 最后一行不封底边 */
.compare-specs tbody tr:last-child th,
.compare-specs tbody tr:last-child td { border-bottom: 0; }

/* 选购建议：金调结论块，收尾 */
.compare-tip {
  max-width: var(--container-sm);
  margin: 30px auto 0;
  padding: 26px 24px;
  border: 1px solid rgba(200, 161, 90, .32);
  background: linear-gradient(135deg, rgba(200, 161, 90, .1), rgba(200, 161, 90, .02));
  text-align: center;
}
.compare-tip svg {
  display: block;
  margin: 0 auto 12px;
  color: var(--gold);
}
.compare-tip h4 {
  margin: 0 0 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--gold-dark);
}
.compare-tip p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink);
}

/* ---------- Slider（Swiper） ---------- */
/* 阴影/箭头的留白放 .swiper 外面，否则算进 slide 宽度 */
.slider { position: relative; padding: 4px 44px 14px; }
/* 不覆写 slide 高度，靠默认 100% + stretch 等高 */

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
  transition: background .2s ease, color .2s ease, opacity .2s ease;
}
.slider-btn:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.slider-btn.prev { left: 0; }
.slider-btn.next { right: 0; }
.slider-btn[disabled] { opacity: .35; cursor: default; }

/* ---------- Buttons ---------- */
/* 列表下方居中按钮的容器 */
.btn-row { text-align: center; margin-top: 30px; }

/* 细描边 + 宽字距；悬停反色不转金 */
.button {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 15px 40px;
  border-radius: 0;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  transition: background .22s ease, color .22s ease, border-color .22s ease;
}
.button:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.button.expand { min-width: 300px; }
/* 金色按钮：必须写在 .button:hover 之后才压得住 */
.button-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.button-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);

}

/* ---------- Blog ---------- */
.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease;
}
.post-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
  transform: translateY(-3px);
}

.post-media {
  display: block;          /* a 转块级，否则图片高度塌陷 */
  position: relative;
  padding-top: 100%;       /* 方形，跟产品图一致 */
  overflow: hidden;
  background: #fafafa;
}
.post-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.post-card:hover .post-media img { transform: scale(1.06); }

.post-body { padding: 16px 16px 20px; text-align: center; }

.post-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 8px;
  min-height: 74px;   /* 同 .product-title：3 行 × 16px × 1.5 = 72px */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* 带摘要的卡片（首页客户评价）：标题不预留三行高度 */
.post-title:has(+ .post-excerpt) { min-height: 0; }
.post-excerpt {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* ---------- Footer ---------- */
/* 白底页脚：浅灰字换深色，分隔线换 --line */
.footer-wrapper {
  background: #fff;
  color: var(--ink-soft);
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

.footer-main { padding: 52px 0 40px; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.footer-col h4 {
  color: var(--ink);
  font-size: 16px;
  letter-spacing: .5px;
  margin: 0 0 16px;
  padding-bottom: 10px;

}
.footer-col h4 a { color: inherit; }
.footer-col h4 a:hover { color: var(--gold); }

.footer-col li a {
  display: block;
  padding: 5px 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.footer-col li a:hover { color: var(--gold); padding-left: 4px; }

/* 三列页脚：内页用；首页是四列 */
.footer-cols-3 { grid-template-columns: repeat(3, 1fr); }

.footer-note { font-size: 14.5px; line-height: 1.7; margin: 0 0 14px; }
.footer-contact li a {
  color: var(--gold-dark);
  /* 邮箱长串允许任意字符断行 */
  overflow-wrap: anywhere;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  font-size: 13.5px;
  color: var(--muted);
}
.footer-bottom p { margin: 0; text-align: center; }

/* ---------- 右侧悬浮询盘工具 ---------- */
.inquiry {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 0;
  animation: iq-nudge 7s ease-in-out 3s infinite;
}

.inquiry-item {
  position: relative;
  display: flex;
  flex-direction: row-reverse;   /* 图标靠屏幕边缘，文字朝内容区 */
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: auto;
  min-width: 154px;              /* 三个按钮等宽，文字长短不一也对齐 */
  height: 58px;
  padding: 0 16px 0 22px;
  color: #fff;
  border-radius: 29px 0 0 29px;
  box-shadow: -3px 3px 14px rgba(0, 0, 0, .28);
  transition: filter .2s ease, transform .2s ease;
  animation: iq-in .55s cubic-bezier(.22, 1, .36, 1) backwards;
}
.inquiry-item:nth-child(1) { animation-delay: .15s; }
.inquiry-item:nth-child(2) { animation-delay: .28s; }
.inquiry-item:nth-child(3) { animation-delay: .41s; }

.inquiry-item svg {
  position: relative;
  width: 30px;
  height: 30px;
  animation: iq-breathe 2.4s ease-in-out infinite;
}
.inquiry-item:nth-child(2) svg { animation-delay: .3s; }
.inquiry-item:nth-child(3) svg { animation-delay: .6s; }

.inquiry-item:hover {
  color: #fff;
  filter: brightness(1.12);
  transform: translateX(-6px);
}

/* 脉冲光晕 */
.inquiry-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  pointer-events: none;
  animation: iq-pulse 2.4s cubic-bezier(.4, 0, .6, 1) infinite;
}
.inquiry-item:nth-child(2)::before { animation-delay: .3s; }
.inquiry-item:nth-child(3)::before { animation-delay: .6s; }

.inquiry-item.wechat   { background: #09bb07; }
.inquiry-item.whatsapp { background: #25d366; }
.inquiry-item.email    { background: var(--gold); }

/* 文字常驻，一眼看清三个入口 */
.inquiry-label {
  position: relative;
  white-space: nowrap;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}

/* ---------- 动效关键帧 ---------- */
@keyframes iq-in {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* 胶囊：光晕只微微外扩 */
@keyframes iq-pulse {
  0%   { transform: scale(1);     opacity: .45; }
  70%  { transform: scale(1.09);  opacity: 0; }
  100% { transform: scale(1.09);  opacity: 0; }
}

@keyframes iq-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.1); }
}

/* 周期性轻抖，吸引注意但不能太吵 */
@keyframes iq-nudge {
  0%, 91%, 100% { transform: translateY(-50%) translateX(0); }
  93%           { transform: translateY(-50%) translateX(-7px); }
  95%           { transform: translateY(-50%) translateX(3px); }
  97%           { transform: translateY(-50%) translateX(-4px); }
  99%           { transform: translateY(-50%) translateX(2px); }
}

/* 微信二维码弹层 */
.inquiry-qr {
  position: absolute;
  right: 166px;      /* 让开常驻文字的胶囊宽度 */
  top: 10px;
  width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 12px;
  text-align: center;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .22);
}
.inquiry-qr[hidden] { display: none; }
.inquiry-qr img { width: 100%; height: auto; border-radius: 6px; }
.inquiry-qr p { margin: 9px 0 0; font-size: 12.5px; color: var(--muted); }

/* ---------- 首页专属：圆形图标 + 左侧气泡 ---------- */
/* 首页悬浮入口：圆形图标 + 左侧气泡，只作用于 .inquiry-bubble */
.inquiry.inquiry-bubble {
  right: 22px;
  top: auto;
  bottom: 78px;              /* 回到顶部是 right:22 / bottom:22 / 44 高，这里 = 22 + 44 + 12 */
  transform: none;           /* 顶掉旧的 translateY(-50%) */
  gap: 10px;
  padding: 0;
  align-items: flex-end;     /* 气泡有长有短，靠右对齐圆形才连成一条竖线 */

}
.inquiry-bubble .inquiry-item {
  width: auto;               /* 顶掉 849 那档的 50×50 */
  height: auto;
  min-width: 0;
  padding: 0;
  gap: 10px;
  border-radius: 0;
  background: none;          /* 底色挪到圆形上 */
  box-shadow: none;          /* 阴影也挪走了 */
  justify-content: flex-start;   /* row-reverse 下 = 整行贴右 */
}
.inquiry-bubble .inquiry-item::before { content: none; }   /* 旧的脉冲光晕跟着胶囊走，这里不要 */
.inquiry-bubble .inquiry-item svg {
  width: 56px;
  height: 56px;
  padding: 14px;             /* 56 - 14×2 = 28px 图标 */
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
  animation: none;           /* 旧的是图标自己呼吸，现在改成整个圆悬停放大 */
  transition: transform .2s ease;
  position: relative;
  z-index: 1;                /* 气泡从圆后面滑出来 */
}
.inquiry-bubble .inquiry-item:hover { transform: none; filter: none; }   /* 旧的左移/提亮是给胶囊的 */
.inquiry-bubble .inquiry-item:hover svg { transform: scale(1.06); }
.inquiry-bubble .inquiry-item.wechat   svg { background: #09bb07; }
.inquiry-bubble .inquiry-item.whatsapp svg { background: #25d366; }
.inquiry-bubble .inquiry-item.email    svg { background: var(--gold); }
/* 气泡本体：白底墨字，默认收起，悬停从右往左滑出 */
.inquiry-bubble .inquiry-label {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  padding: 9px 14px;
  background: #fff;
  border-radius: 18px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2px;
  text-shadow: none;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .16);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translate(28px, -50%);
  transition: opacity .2s ease, transform .28s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .28s;
}
.inquiry-bubble .inquiry-item:hover .inquiry-label,
.inquiry-bubble .inquiry-item:focus-within .inquiry-label {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
  transition: opacity .2s ease, transform .28s cubic-bezier(.22, 1, .36, 1), visibility 0s;
}
.inquiry-bubble .inquiry-label::after {   /* 尖角：转 45° 的小方块，右边缘贴住圆形 */
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  width: 9px;
  height: 9px;
  background: #fff;
  transform: translateY(-50%) rotate(45deg);
}
/* 二维码弹在整条栏上方 */
.inquiry-bubble .inquiry-qr {
  right: 0;
  left: auto;
  top: auto;
  bottom: 100%;
  width: 220px;
  margin: 0 0 12px;
}
 
/* 窄屏圆形收小，图标保持 24px 观感 */
@media (max-width: 849px) {
  .inquiry.inquiry-bubble { gap: 8px; }
  .inquiry-bubble .inquiry-item { gap: 8px; }
  .inquiry-bubble .inquiry-item svg { width: 48px; height: 48px; padding: 12px; }
  .inquiry-bubble .inquiry-label { padding: 7px 12px; font-size: 12px; display: none;}
  .inquiry-bubble .inquiry-qr { width: min(200px, 56vw); }
}
@media (max-width: 560px) {
  .inquiry.inquiry-bubble { right: 14px; bottom: 70px; }   /* 跟着 .back-top 的 14 / 14 + 44 + 12 */
  .inquiry-bubble .inquiry-item svg { width: 46px; height: 46px; padding: 11px; }
}

/* ---------- Back to top ---------- */
.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 44px;
  height: 44px;
  border-radius: 0;          /* 方形 */
  border: 0;
  background: #a8a8a8;       /* 浅灰 */
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s ease;
}
.back-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: #8f8f8f; }

/* ==========================================================================
   Responsive
   ========================================================================== */
/* 4 列已是默认；这些覆盖须排在基础规则之后 */

@media (max-width: 1100px) {
  #bestGrid, #hqGrid, #searchGrid { grid-template-columns: repeat(3, 1fr); }
  .slider-track { grid-auto-columns: calc((100% - 40px) / 3); }

  /* 导航还横排时搜索框收窄，免得导航换行 */
  .header-search { width: 150px; }
  /* 首页顶栏多了「貨到付款」小标，搜索框收到 240 才放得下 */
  .has-nav-bar .header-search { width: 240px; }
}

@media (max-width: 849px) {
  :root { --header-h: 77px; }

  .nav-toggle { display: flex; }

  .logo { margin-right: auto; }
  .logo img { width: 88px; }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    max-width: 84vw;
    background: #fff;
    z-index: 95;
    overflow-y: auto;
    padding: 22px 0 40px;
    transform: translateX(-100%);
    transition: transform .3s ease;
    box-shadow: 2px 0 24px rgba(0, 0, 0, .2);
  }
  .nav.is-open { transform: translateX(0); }

  .nav-list { display: block; }
  .nav-list > li { border-bottom: 1px solid var(--line); }

  /* 抽屉里每行整宽点击，退回 block，小字不显示 */
  .nav-list > li.nav-note-item { display: block; }
  .nav-note { display: none; }

  .nav-list > li > a {
    display: block;
    padding: 14px 20px;
    color: var(--ink);
    font-size: 15px;
  }
  .nav-list > li > a .caret {
    float: right;
    margin-top: 9px;
    color: var(--muted);
  }

  /* dropdowns collapse inline on mobile */
  .dropdown,
  .mega {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    width: auto;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    border-top: 0;
    box-shadow: none;
    background: var(--bg-alt);
    transition: max-height .3s ease;
  }
  .has-dropdown.is-open > .dropdown,
  .has-mega.is-open > .mega { max-height: 1400px; }

  .mega-inner { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .mega-col { padding: 14px 20px; }
  .mega-col h4 { font-size: 12px; }
  .mega-col li a,
  .dropdown li a { padding: 8px 20px; font-size: 14px; }
  .dropdown li a { padding-left: 30px; }

  /* 三级在移动端收回内联折叠 */
  .dropdown .dropdown {
    position: static;
    left: auto;
    top: auto;
    min-width: 0;
    border-left: 0;
    transform: none;
  }
  .dropdown .dropdown li a { padding-left: 42px; }   /* 比二级再缩进一层 */
  .dropdown .caret { transform: rotate(0); }         /* 内联折叠的箭头朝下 */
  .dropdown .has-dropdown.is-open > a .caret { transform: rotate(180deg); }

  /* 桌面搜索框在手机端隐藏，改用 header 外面的独立搜索条 */
  .header-inner > .header-search { display: none; }
  .mobile-search {
    display: block;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
  }
  .mobile-search .header-search { width: 100%; }
  /* 16px 避免 iOS 聚焦输入框时自动放大页面 */
  .mobile-search .header-search input { height: 42px; padding: 0 52px 0 14px; font-size: 16px; }
  .mobile-search .header-search button {
    width: 44px;
    border-radius: 0 2px 2px 0;
    background: var(--gold-dark);
    color: #fff;
  }
  .mobile-search .header-search button:hover { background: #96742f; }

  /* 首页：导航行收进抽屉，金色通栏不占位；社媒和小标让位给汉堡和语言切换 */
  .has-nav-bar .nav-bar { background: transparent; }
  .has-nav-bar .nav-bar-inner { padding-top: 0; padding-bottom: 0; }
  .header-social { display: none; }
  .header-tag { display: none; }

  /* 汉堡 + logo + 语言同一行，间距收到 14 */
  .header-inner { gap: 14px; }

  #bestGrid, #hqGrid, #shopGrid, #brandGrid, #searchGrid { grid-template-columns: repeat(2, 1fr); }

  /* 对比：图与表之间收一档 */
  .compare { gap: 22px; }
  #blogGrid,
  #feedbackGrid { grid-template-columns: repeat(2, 1fr); }

  .slider { padding: 0 0 0 0; }
  .slider-track { grid-auto-columns: calc((100% - 20px) / 2); gap: 16px; }
  .slider-btn { display: none; }

  .section { padding: 40px 0; }
  /* 同桌面端那条，见 .section 基础规则旁边的注释 */
  .section:has(> .container:first-child > .breadcrumb) { padding-top: 20px; }
  .section-title { font-size: 20px; }

  /* 一行塞不下标题 + View all，竖排 */
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }

  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .button.expand { min-width: 0; width: 100%; padding: 13px 18px; }

  /* 询盘栏：移动端收成图标方块，文字标签隐藏 */
  .inquiry { gap: 6px; }
  .inquiry-item {
    min-width: 0;
    width: 50px;
    height: 50px;
    padding: 0;
    gap: 0;
    justify-content: center;
    border-radius: 14px 0 0 14px;
  }
  .inquiry-item svg { width: 24px; height: 24px; }
  .inquiry-label { display: none; }
  .inquiry-qr { right: 60px; width: min(200px, 56vw); }
  .inquiry-qr p { font-size: 12px; }
}

/* 无障碍：用户系统设置「减少动态效果」时关掉所有动画 */
@media (prefers-reduced-motion: reduce) {
  .inquiry,
  .inquiry-item,
  .inquiry-item svg,
  .inquiry-item::before {
    animation: none !important;
  }
  .inquiry-item::before { opacity: 0; }
}

@media (max-width: 560px) {
  #bestGrid, #hqGrid, #shopGrid, #searchGrid { grid-template-columns: repeat(2, 1fr); }

  .product-title { font-size: 13.5px; min-height: 60px; }   /* 3 行 = 58.7px，取 60 兜住 */

  .feedback-points { margin-top: 22px; gap: 8px; }
  .feedback-points li { padding: 4px 11px; font-size: 12px; }

  .compare-tip { margin-top: 26px; padding: 20px 16px; }
  .compare-tip h4 { letter-spacing: 2px; }
  .compare-tip p { font-size: 13.5px; }

  .compare-specs { font-size: 13px; }
  .compare-specs th,
  .compare-specs td { padding: 9px 10px; }
  .compare-specs thead th { font-size: 13px; }
  .compare-specs thead th:first-child { width: 72px; }
  .compare-specs tbody th { font-size: 12.5px; }

  /* ---------- 博客：手机端改成「左文右图」单列列表 ---------- */
  #blogGrid,
  #feedbackGrid { grid-template-columns: 1fr; gap: 0; }

  .post-card {
    display: flex;
    flex-direction: row-reverse;   /* 图靠右，文字靠左 */
    gap: 12px;
    min-height: 92px;
    padding: 12px 0;
    /* 去掉整圈边框，只留一条下分隔线 */
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }
  .post-card:last-child { border-bottom: 0; }
  /* 列表行不做上浮/投影，否则整行晃 */
  .post-card:hover { transform: none; box-shadow: none; }

  .post-media {
    flex: 0 0 120px;
    padding-top: 0;    /* 覆盖桌面端 56% 的比例占位，改由 flex 拉伸决定高度 */
    border-radius: 8px;/* 卡片不再裁切，圆角交给图片自己 */
  }

  .post-body {
    flex: 1;
    min-width: 0;      /* 关键：不加则长标题会把 flex 子项撑破 */
    padding: 0;        /* 文字贴左边缘与标题对齐 */
    text-align: left;  /* 桌面端居中，列表里要左对齐 */
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .post-title {
    font-size: 13.5px;
    line-height: 1.45;
    min-height: 0;          /* 列表里不需要 min-height 等高 */
    -webkit-line-clamp: 2;  /* 3 行压到 2 行，横条高度才收得住 */
    margin: 0 0 6px;
  }

  .footer-cols { grid-template-columns: 1fr; }
  .back-top { right: 14px; bottom: 14px; }
}

/* 博客栏目页：列表一行一个 + 右侧栏 */

/* ---------- 栏目头 ---------- */
.page-hero {
  background: var(--ink);
  color: #fff;
  padding: 46px 0 44px;
  text-align: center;
}

/* 内页统一保留面包屑（白底，不画底部分隔线） */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 30px;
}
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { margin: 0 8px; color: #c9c9c9; }

/* 仅供搜索引擎与读屏，视觉上不占位 */
.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;
}

.page-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: .5px;
  margin: 0;
  color: #fff;
}
.page-title::after {
  content: "";
  display: block;
  width: 54px;
  height: 2px;
  background: var(--gold);
  margin: 18px auto 0;
}

.page-desc {
  max-width: 780px;
  margin: 18px auto 0;
  font-size: 15px;
  line-height: 1.8;
  color: #b6b6b6;
}

/* ---------- 两栏骨架 ---------- */
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;   /* minmax(0,…) 否则长标题会顶宽左栏 */
  gap: 48px;
  align-items: start;
  /* 博客这类阅读页收回 920 并居中 */
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- 文章列表：一行一个 ---------- */
#postList {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.post-row {
  display: flex;
  gap: 24px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.post-row:last-child { padding-bottom: 0; border-bottom: 0; }

.post-row-media {
  display: block;
  position: relative;
  flex: 0 0 170px;      /* 方图，高度跟右侧文字块差不多，上下才对得齐 */
  aspect-ratio: 1 / 1;  /* 方形，跟产品图一致 */
  align-self: flex-start;  /* 不加这行会被 flex 拉伸，aspect-ratio 不生效 */
  overflow: hidden;
  border-radius: var(--radius);
  background: #fafafa;
}
.post-row-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.post-row:hover .post-row-media img { transform: scale(1.05); }


.post-row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-row-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 10px;
}
.post-row-title a { color: var(--ink); }
.post-row-title a:hover { color: var(--gold); }

.post-row-excerpt {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-row-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
}
.post-row-cat {
  padding: 2px 11px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--gold-dark);
  font-weight: 600;
}

/* ---------- 分页 ---------- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.page-numbers {
  min-width: 40px;
  height: 40px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.page-numbers:hover { border-color: var(--gold); color: var(--gold); }
.page-numbers.current {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.page-numbers.next { padding: 0 18px; }

/* ---------- 侧栏 ---------- */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  /* 侧栏比正文短，滚动时跟着走 */
  position: sticky;
  top: 110px;
}

.widget {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 22px;
}

.widget-title {
  position: relative;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.widget-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 44px;
  height: 2px;
  background: var(--gold);
}

/* 栏目链接直接排出来 */
.widget-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.widget-list li { border-bottom: 1px dashed var(--line); }
.widget-list li:last-child { border-bottom: 0; }

.widget-list a {
  display: block;
  position: relative;
  padding: 9px 36px 9px 0;   /* 右侧留出计数的位置，长标题自然换行 */
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  transition: color .2s ease, padding-left .2s ease;
}
.widget-list a:hover { color: var(--gold); padding-left: 5px; }

.widget-list .count {
  position: absolute;
  right: 0;
  top: 10px;
  font-size: 11.5px;
  color: var(--muted);
  background: var(--bg-alt);
  border-radius: 20px;
  padding: 1px 8px;
}

/* 近期文章 */
.widget-posts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.widget-posts a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.widget-post-date {
  flex: 0 0 auto;
  width: 45px;
  padding: 5px 0 6px;
  text-align: center;
  background: var(--bg-alt);
  border-radius: 6px;
  line-height: 1.15;
  transition: background .2s ease;
}
.widget-post-date b { display: block; font-size: 16px; font-weight: 800; color: var(--ink); }
.widget-post-date i {
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--muted);
}
.widget-post-title {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s ease;
}
.widget-posts a:hover .widget-post-title { color: var(--gold); }
.widget-posts a:hover .widget-post-date { background: var(--gold); }
.widget-posts a:hover .widget-post-date b,
.widget-posts a:hover .widget-post-date i { color: #fff; }

/* ---------- 栏目页响应式 ---------- */
@media (max-width: 1100px) {
  .blog-layout { grid-template-columns: minmax(0, 1fr) 264px; gap: 34px; }
  .post-row { gap: 20px; }
  .post-row-title { font-size: 17.5px; }
}

@media (max-width: 849px) {
  /* 侧栏移到列表下方 */
  .blog-layout { grid-template-columns: 1fr; gap: 40px; }
  .blog-sidebar { position: static; top: auto; }

  .post-row-media { flex: 0 0 150px; }
  .post-row-title { font-size: 16px; }
  .post-row-excerpt { font-size: 13px; }
}

/* 商品归档页：分类列表 + 商品网格 */

/* ---------- 工具条：结果数 + 排序 ---------- */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 12px 18px;
  margin-bottom: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.shop-count {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}
.shop-count b { color: var(--ink); font-weight: 800; }

/* 排序也排成列表，样式跟侧栏栏目统一 */
.shop-sort {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.shop-sort-label {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-right: 4px;
}
.shop-sort a {
  display: inline-block;
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 12.5px;
  color: var(--ink-soft);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.shop-sort a:hover { border-color: var(--gold); color: var(--gold); }
.shop-sort a.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  font-weight: 700;
}

/* ---------- 两栏布局 ---------- */
.shop-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);   /* minmax(0,…) 否则长商品名会顶宽右栏 */
  gap: 34px;
  align-items: start;
}

.shop-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ---------- 子级分类（二级、三级） ---------- */
.widget-list .children {
  list-style: none;
  margin: 0 0 8px;
  padding: 0 0 0 13px;
  border-left: 1px solid var(--line);
}
/* 子级靠缩进 + 左侧竖线分层级 */
.widget-list .children li { border-bottom: 0; }

.widget-list .children a {
  padding: 6px 32px 6px 0;
  font-size: 12.5px;
}
.widget-list .children .count { top: 8px; padding: 1px 6px; }

.widget-list .children .children { padding-left: 11px; margin-bottom: 4px; }
.widget-list .children .children a { font-size: 12px; padding: 5px 30px 5px 0; }
.widget-list .children .children .count { top: 7px; }

/* 侧栏分类折叠：有子分类的项右侧出箭头，子列表默认收起 */
.widget-list li.has-children { position: relative; }
.widget-list .cat-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 34px;
  height: 38px;          /* 和一级链接的行高对齐 */
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .2s ease;
}
.widget-list .cat-toggle:hover { color: var(--gold); }
.widget-list .cat-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -5px;
  border-radius: 4px;
}
.widget-list .cat-toggle::before {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);   /* 向下箭头 */
  transition: transform .2s ease;
}
.widget-list li.is-open > .cat-toggle::before {
  transform: translateY(1px) rotate(225deg);   /* 展开后朝上 */
}
.widget-list .children .cat-toggle { width: 30px; height: 32px; }
.widget-list .children .cat-toggle::before { width: 5px; height: 5px; }
.widget-list .children[hidden] { display: none; }

/* 当前所在分类 */
.widget-list li.is-current > a {
  color: var(--gold);
  font-weight: 700;
}
.widget-list li.is-current > a:hover { padding-left: 0; }

/* ---------- 商品归档响应式 ---------- */
@media (max-width: 1100px) {
  .shop-layout { grid-template-columns: 236px minmax(0, 1fr); gap: 26px; }
  .shop-toolbar { padding: 12px 15px; margin-bottom: 24px; }
}

@media (max-width: 849px) {
  /* 手机/平板竖屏：不显示分类侧栏，商品直接铺满 */
  .shop-layout { grid-template-columns: 1fr; gap: 34px; }
  .shop-sidebar { display: none; }

  .shop-toolbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .shop-sort { gap: 5px; }
  .shop-sort a { padding: 4px 11px; font-size: 12px; }
  .shop-sort-label { flex: 0 0 100%; margin: 0 0 2px; }
}

@media (max-width: 560px) {
  .page-hero { padding: 32px 0 30px; }
  .page-title { font-size: 26px; }
  .page-desc { font-size: 14px; }

  /* 同首页手机端：图右文左，只留下分隔线 */
  #postList { gap: 16px; }
  .post-row {
    flex-direction: row-reverse;
    gap: 14px;
    padding-bottom: 16px;
  }
  .post-row-media {
    flex: 0 0 96px;
    border-radius: 8px;
  }

  .post-row-title { font-size: 14.5px; margin-bottom: 6px; }
  .post-row-excerpt {
    font-size: 12.5px;
    line-height: 1.7;
    -webkit-line-clamp: 2;
    margin-bottom: 8px;
  }
  .post-row-meta { font-size: 11.5px; gap: 8px; }
  .post-row-cat { padding: 1px 9px; }

  .pagination { margin-top: 26px; padding-top: 20px; }
  .page-numbers { min-width: 36px; height: 36px; font-size: 13px; }
}

/* 博客详情页：左栏正文 + 右栏侧边 */

/* ---------- 文章头部 ---------- */
.entry-title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 16px;
}

.entry-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.entry-meta b { color: var(--ink-soft); font-weight: 600; }
.entry-cat {
  padding: 2px 11px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--gold-dark);
  font-weight: 600;
}
.entry-cat:hover { border-color: var(--gold); }
.entry-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #cccdcf;
}

/* ---------- 特色图 ---------- */
.entry-featured {
  margin: 26px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fafafa;
}
.entry-featured img { width: 100%; height: auto; display: block; }

/* ---------- 目录 ---------- */
.toc {
  margin: 26px 0 0;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--bg-alt);
  padding: 16px 20px;
}
.toc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.toc-title {
  font-size: 13.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--ink);
}
.toc-toggle {
  border: 0;
  background: none;
  padding: 2px 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold-dark);
  cursor: pointer;
  font-family: inherit;
}
.toc-toggle:hover { text-decoration: underline; }

.toc-list {
  margin: 14px 0 0;
  padding: 0 0 0 18px;
  font-size: 13.5px;
  line-height: 1.7;
}
.toc-list ol { margin: 2px 0 6px; padding-left: 18px; font-size: 13px; }
.toc-list li { margin-bottom: 4px; }
.toc-list a { color: var(--ink-soft); }
.toc-list a:hover { color: var(--gold); }
.toc-list[hidden] { display: none; }

/* ---------- 正文排版 ---------- */
.entry-content {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-top: 30px;
}
.entry-content > p:first-child { margin-top: 0; }

/* 详情页描述收回 920 居中 */
.product-description .entry-content {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.product-description .product-section-title {
  display: block;
  width: max-content;            /* 金色下划线只跟文字等长 */
  margin-left: auto;
  margin-right: auto;
}

.entry-content h2 {
  font-size: 23px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--ink);
  margin: 44px 0 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.entry-content h2:first-of-type { border-top: 0; padding-top: 0; }

.entry-content h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
  margin: 30px 0 10px;
}

.entry-content p { margin: 0 0 18px; }
.entry-content ul,
.entry-content ol { margin: 0 0 18px; padding-left: 22px; }
.entry-content li { margin-bottom: 7px; }
.entry-content strong { color: var(--ink); }

.entry-content a { color: var(--gold-dark); text-decoration: underline; }

.entry-content blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--gold);
  color: var(--muted);
  font-style: italic;
}

/* 正文配图 */
.entry-content figure {
  margin: 26px 0;
}
.entry-content figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: #fafafa;
}
.entry-content figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}

/* 表格 */
.table-wrap {
  margin: 26px 0;
  overflow-x: auto;              /* 窄屏横向滚动，不撑破正文 */
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 560px;
}
.entry-content th,
.entry-content td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.entry-content thead th {
  background: var(--bg-alt);
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}
.entry-content tbody tr:last-child td { border-bottom: 0; }
.entry-content tbody tr:hover { background: #fcfaf6; }

/* ---------- 文末标签 / 分享 ---------- */
.entry-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid var(--line);   /* 下边框由 .post-nav 的 border-top 承担 */
}
.entry-footer-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-right: 4px;
}
.entry-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
/* 必须挂在 .entry-tags 下面：标签归档页的 <body> 自带 class="tag"，
   裸 .tag 选择器会把整个页面当成标签胶囊，hover 时整页变淡黄 */
.entry-tags .tag {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 12.5px;
  color: var(--ink-soft);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.entry-tags .tag:hover { border-color: var(--gold); color: var(--gold); background: #fdfaf4; }

/* ==========================================================================
   FAQ 页
   ========================================================================== */
.section-payoff {
  max-width: 720px;
  margin: -14px auto 34px;
  text-align: center;
  font-size: 14.5px;
  color: var(--muted);
}

.section-content { max-width: 920px; margin: 0 auto; }

/* ---------- 分类选项卡 ---------- */
/* 选项平铺成列表，激活态：金底 + 金边 + 白字 */
.faq-tablist {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin: 0 0 30px;
}

.faq-tab {
  padding: 11px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.faq-tab:hover { border-color: var(--gold); color: var(--gold); }
.faq-tab[aria-selected="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.faq-panel[hidden] { display: none; }

/* ---------- 手风琴 ---------- */
.faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-topic {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-topic:hover { border-color: #d6d6d6; }
.faq-topic.is-open {
  border-color: var(--gold);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .06);
}

/* 每条问答的标题本身就是开关 */
.faq-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 15px 18px;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: color .2s ease;
}
.faq-title:hover { color: var(--gold); }

/* 纯 CSS 箭头，展开时翻转 */
.faq-title::after {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  transition: transform .25s ease;
}
.faq-topic.is-open .faq-title::after { transform: rotate(-135deg); margin-top: 4px; }

.faq-wrapper { padding: 0 18px 18px; }
.faq-wrapper[hidden] { display: none; }

.faq-wrapper p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.faq-wrapper p + p { margin-top: 12px; }

.faq-wrapper a {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.faq-wrapper a:hover { color: var(--gold); }

@media (max-width: 560px) {
  .section-payoff { font-size: 13.5px; margin: -8px auto 24px; }
  .faq-tablist { gap: 7px; margin-bottom: 22px; }
  .faq-tab { padding: 9px 16px; font-size: 11.5px; }
  .faq-list { gap: 10px; }
  .faq-title { padding: 13px 15px; font-size: 14px; }
  .faq-wrapper { padding: 0 15px 15px; }
  .faq-wrapper p { font-size: 14.5px; line-height: 1.75; }
}

/* ---------- 正文视频（直接嵌入 iframe） ---------- */
.video-embed {
  margin: 26px 0;
}
.video-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius);
  background: #000;
}
.video-embed figcaption { margin-top: 10px; font-size: 12.5px; line-height: 1.6; color: var(--muted); text-align: center; }

/* ---------- 上一篇 / 下一篇 ---------- */
.post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.post-nav-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.post-nav-item:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .07);
}
.post-nav-item.is-next { text-align: right; }

.post-nav-label {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.post-nav-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* ---------- 面板锚点偏移（吸顶头部会盖住标题） ---------- */
.toc-list a,
.entry-content h2,
.entry-content h3 {
  scroll-margin-top: 110px;
}

/* ---------- 详情页响应式 ---------- */
@media (max-width: 1100px) {
  .entry-title { font-size: 26px; }
  .entry-content h2 { font-size: 21px; }
  .entry-content h3 { font-size: 17px; }
}

@media (max-width: 849px) {
  .entry-content { font-size: 15px; }
  .entry-footer { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .entry-title { font-size: 21px; }
  .entry-meta { font-size: 11.5px; gap: 8px; padding-bottom: 16px; }
  .entry-dot { display: none; }
  .entry-featured { margin-top: 20px; }
  .toc { padding: 14px 16px; }
  .entry-content { font-size: 14.5px; margin-top: 24px; }
  .entry-content h2 { font-size: 18.5px; margin: 34px 0 12px; padding-top: 18px; }
  .entry-content h3 { font-size: 16px; margin: 24px 0 8px; }
  .entry-content figure { margin: 20px 0; }
  .video-embed { margin: 20px 0; }

  /* 窄屏上下排，避免标题挤成两行窄条 */
  .post-nav { grid-template-columns: 1fr; gap: 12px; margin-top: 30px; padding-top: 22px; }
  .post-nav-item.is-next { text-align: left; }
  .post-nav-item { padding: 15px 16px; }
}

/* ---------- Contact ---------- */
.contact-intro {
  max-width: 920px;
  margin: 0 auto 30px;
  text-align: center;
}

.contact-intro h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 10px;
}

.contact-intro p { margin: 0; color: var(--ink-soft); }

/* 表单上方说明 + 二维码，整块收在 920，和表单对齐 */
.contact-lead {
  max-width: 920px;
  margin: 0 auto 34px;
}

.contact-lead-text p {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--ink-soft);
}

.contact-lead-text p:last-child { margin-bottom: 0; }

/* 二维码居中放文字下面，按原图宽不缩放 */
.contact-qr {
  width: 220px;
  margin: 26px auto 0;
}

.contact-qr img {
  display: block;
  width: 100%;
  height: auto;
}

/* 二维码下面的微信号，跟悬浮弹窗里的那张同一套观感 */
.contact-qr p {
  margin: 9px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

.contact-form-wrap { max-width: 920px; margin: 0 auto; }

.contact-form {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 34px 36px;
}

.contact-field { margin-bottom: 20px; }

.contact-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.contact-field .req { font-weight: 400; color: var(--muted); }

.contact-field input,
.contact-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 15px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-field textarea { resize: vertical; min-height: 156px; display: block; }

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 161, 90, .15);
}

.contact-field input.is-invalid,
.contact-field textarea.is-invalid { border-color: #c0392b; }

.contact-actions .button {
  font-family: inherit;
  cursor: pointer;
}

.contact-status {
  margin: 14px 0 0;
  font-size: 14px;
  min-height: 1.3em;
}

.contact-status.is-ok { color: #2e7d32; }
.contact-status.is-error { color: #c0392b; }

/* ---------- 表单换成 Contact Form 7 之后（页面「联系表单简码」填了短代码）----------
   插件自带一套自己的 class，这里把它的几个元素拉回来对齐上面静态表单的观感。
   字段本身不用管：CF7 输出的还是 input/textarea，被 .contact-field 那几条后代选择器盖到。 */
/* CF7 每个控件外面套一层 span（插件 CSS 给了 position:relative），改成块级，
   跟静态表单里「input 直接是 .contact-field 的子元素」一致 */
.contact-form .wpcf7-form-control-wrap { display: block; }

/* 提示行：静态表单是 .contact-status 那种纯文字，CF7 默认给个 2px 蓝框。
   插件那条 .wpcf7 form.sent .wpcf7-response-output 选择器更具体，只能 !important 压掉边框；
   配色（成功绿 / 失败红）跟 .contact-status 的 is-ok / is-error 取同两个色值 */
.contact-form .wpcf7-response-output {
  margin: 14px 0 0;
  padding: 0;
  border: 0 none !important;
  font-size: 14px;
  min-height: 1.3em;
}
.contact-form-wrap form.sent .wpcf7-response-output { color: #2e7d32; }
.contact-form-wrap form.invalid .wpcf7-response-output,
.contact-form-wrap form.failed .wpcf7-response-output,
.contact-form-wrap form.aborted .wpcf7-response-output,
.contact-form-wrap form.spam .wpcf7-response-output,
.contact-form-wrap form.unaccepted .wpcf7-response-output { color: #c0392b; }

/* 校验不过时 CF7 是「输入框加 .wpcf7-not-valid + 下面一行红字」，
   静态表单是「输入框加 .is-invalid 变红边 + .contact-status 一行红字」，
   这里把前者那个类也染成同一个红，红色描边的观感就找齐了（红字是插件自带的 .wpcf7-not-valid-tip） */
.contact-form .contact-field .wpcf7-not-valid { border-color: #c0392b; }

/* 送出按钮：CF7 输出的是 <input type="submit">，不是静态表单那个 <button>，
   补两行让 .button 这套（内距/描边/字距）在它身上长成一样的 */
.contact-form input.wpcf7-submit {
  appearance: none;
  line-height: inherit;
}

@media (max-width: 560px) {
  .contact-form { padding: 22px 18px 26px; }
  .contact-actions .button { width: 100%; text-align: center; }
}
/* ---------- 关于页等静态内页 ---------- */
/* 正文复用 .entry-content，只收首尾间距 + 两端对齐 */
.page-body {
  margin-top: 0;
  text-align: justify;
}

.page-body > h3:first-child { margin-top: 0; }

.page-body > *:last-child { margin-bottom: 0; }

/* ==========================================================================
   客户评价页
   ========================================================================== */
/* 补回 .page-body 收掉的下边距；正文仍收在 920，下面栅格吃满容器 */
.reviews-intro { max-width: 920px; margin-bottom: 30px; }

.review-hint {
  margin: 20px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 图片灯箱 ---------- */
/* 外观交给 magnific-popup.min.css，这里只补滚动锁 */
body.mfp-zoom-out-cur { overflow: hidden; }

@media (max-width: 560px) {
  .review-hint { font-size: 12.5px; }
}

/* ==========================================================================
   产品详情页
   ========================================================================== */
/* 两栏：左图集 / 右摘要，不走 920 */
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}
.product-gallery,
.product-summary { min-width: 0; }

/* ---------- 图集 ---------- */
.gallery-main {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

/* 详情页图集左上角的「熱門」角标：配色/字号/内边距跟列表的 .product-badge 一致，
   只有定位不同 —— 这里外面 .gallery-main 有一圈 1px 描边，所以留 14px */
.gallery-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  background: var(--gold);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.4px;
  padding: 4px 8px;
  border-radius: 0;
  text-transform: uppercase;
}

/* 没勾「热门」时是空的，跟列表一样靠 :empty 藏掉 */
.gallery-badge:empty { display: none; }

/* 换图交给 Swiper */
.gallery-slide {
  display: block;
  line-height: 0;
}
.gallery-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.gallery-slide:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; }

.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  margin-top: -22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.gallery-nav:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.gallery-nav:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }

.gallery-thumbs { margin-top: 14px; }
.gallery-thumbs .swiper-wrapper { list-style: none; margin: 0; padding: 0; }
.gallery-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  line-height: 0;
  opacity: .6;
  transition: opacity .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.gallery-thumb img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.gallery-thumb:hover { opacity: 1; border-color: var(--gold); }
.swiper-slide-thumb-active .gallery-thumb {
  opacity: 1;
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}
.gallery-thumb:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- 摘要 ---------- */
.product-name {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

/* 标题下的作者信息：跟文章页 .entry-meta 同一套字号/颜色，但不画底线
   （价格下面已经有一条分隔线） */
.product-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: -4px 0 18px;
  font-size: 12.5px;
  color: var(--muted);
}
.product-meta b { color: var(--ink-soft); font-weight: 600; }

.product-summary .product-price-lg {
  margin: 0 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 26px;
}

.product-specs-title {
  margin: 0 0 10px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
}
/* 规格表：字段列不加粗，只给浅底 + hairline，不画外框 */
.product-specs table {
  width: 100%;
  margin: 0 0 22px;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.6;
}
.product-specs th,
.product-specs td {
  padding: 9px 13px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.product-specs th {
  width: 32%;
  font-weight: 400;          /* 不加粗，靠底色区分 */
  background: var(--bg-alt);
  color: var(--muted);
}
.product-specs td { color: var(--ink-soft); }
/* 最后一行不封底边 */
.product-specs tr:last-child th,
.product-specs tr:last-child td { border-bottom: 0; }

.product-note {
  margin: 0;
  font-size: 13.5px;
  font-style: italic;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 询盘入口（参考站这里是数量 + Add to cart，仿站不做购物车） ---------- */
.product-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  padding-top: 4px;
}
.product-cta .button { padding: 15px 40px; }
/* 咨询按钮用金色实底，加一层暖色投影，从摘要区里跳出来 */
.product-cta .button-gold {
  box-shadow: 0 6px 18px rgba(200, 161, 90, .3);
}
.product-cta .button-gold:hover {
  box-shadow: 0 8px 24px rgba(169, 132, 63, .35);
}

/* ---------- 描述 / 相关商品 ---------- */
.product-section { margin-top: 64px; }
.product-section-title {
  display: inline-block;
  margin: 0 0 22px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
}

/* 产品 FAQ：复用 faq.html 那套手风琴，整块铺满容器 */

/* 没有 .faq-topic 时整块（含 h2）消失，后端只循环 li */
.product-faq:not(:has(.faq-topic)) { display: none; }

/* .row 只有 grid + gap，列数按标识符给 */
.product-related-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* 描述区视频不受正文 860px 约束，这里单独给上限 */
.product-description .video-embed {
  max-width: 860px;              /* 与上面正文列同宽，左右边缘对齐 */
  margin: 30px auto 0;
}

/* 文章详情页相关推荐：列数和产品相关商品一致 */
.post-related-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .product-detail { gap: 32px; }
  .product-name { font-size: 21px; }
  .product-summary .product-price-lg { font-size: 23px; }
  .product-related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 849px) {
  .product-detail { grid-template-columns: 1fr; gap: 34px; }
  .product-name { font-size: 20px; }
  .gallery-nav { width: 38px; height: 38px; margin-top: -19px; }
  .product-section { margin-top: 48px; }
  .product-section-title { font-size: 17px; margin-bottom: 18px; }
  .product-related-grid,
  .post-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .post-related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  /* 缩略图列数由 js 里 Swiper 的 breakpoints 控制 */
  .gallery-nav { display: none; }       /* 手机上直接点缩略图换图 */
  .gallery-badge { top: 10px; left: 10px; padding: 4px 8px; font-size: 10px; }
  .product-detail { gap: 28px; }
  .product-cta { gap: 14px; }
  .product-cta .button { display: block; width: 100%; text-align: center; padding: 14px 20px; }
  .product-section { margin-top: 40px; }
}

/* 排版覆盖：大标题走衬线，放最后才压得过前面 */
/* 只给 ≥20px 的标题用衬线，小字号会糊 */
.page-title,
.entry-title,
.product-name,
.product-section-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .5px;
}