/* TERENCE 官方商城（Store）页面样式 —— 颜色/字体继承官网 zuoan.css */

/* ---------- Hero 搜索区 ---------- */
.store-hero{
  background:#fff;
  /* 修复② 上下留白等高：标题上方的留白 = 搜索框到下方分割线的留白 */
  padding:56px 0 56px;
  border-bottom:1px solid #ededed;
  text-align:center;
}
.store-hero__title{
  font-size:30px; font-weight:700; color:#151515; margin:0 0 14px;
}
.store-hero__sub{
  font-size:14px; color:#666; margin:0 auto 30px; max-width:680px; line-height:1.7;
}
.store-search-wrap{ max-width:680px; margin:0 auto; position:relative; }
.store-search.media-search{ position:relative; width:100%; display:block; margin:0; height:50px; }
.store-search.media-search input{
  width:100%; height:50px; border-radius:25px; border:1px solid #ddd; background:#fff;
  padding:0 60px 0 22px; font-size:14px; color:#333; outline:none;
  transition:border-color .25s, box-shadow .25s;
}
.store-search.media-search input:focus{ border-color:var(--svc-brand,#dbbc87); box-shadow:0 0 0 4px rgba(219,188,135,.12); }
.store-search.media-search button{
  position:absolute; right:2px; top:50%; transform:translateY(-50%);
  width:48px; height:48px; line-height:48px; border:none; background:transparent;
  color:#333; font-size:18px; cursor:pointer; transition:color .2s;
}
.store-search.media-search button:hover{ color:var(--svc-brand,#dbbc87); }

/* 搜索建议下拉 */
.store-suggest{
  position:absolute; left:0; right:0; top:calc(100% + 8px); background:#fff;
  border-radius:18px; box-shadow:0 12px 40px rgba(0,0,0,.12); border:1px solid #eee;
  padding:10px 0; opacity:0; visibility:hidden; transform:translateY(-6px);
  transition:opacity .2s, transform .2s, visibility .2s; z-index:100; text-align:left;
  max-height:420px; overflow:auto;
}
.store-suggest.show{ opacity:1; visibility:visible; transform:translateY(0); }
.store-suggest__item{
  display:block; padding:11px 20px; color:#333; font-size:14px;
  text-decoration:none; cursor:pointer; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.store-suggest__item:hover{ background:#fbf6ec; color:var(--tm-color-brand,#dbbc87); }
.store-suggest__tag{ font-size:11px; color:var(--tm-color-brand,#dbbc87); margin-left:8px; }

/* ---------- 区块 ---------- */
.store-section{
  background:#f8f8f8;       /* 线上商城：浅灰底 = 官网 .bgf8 / #f8f8f8 */
  padding:52px 0;
  scroll-margin-top:86px;   /* 修复④ 锚点定位时避开顶部固定导航 */
}
.store-section + .store-section{ border-top:1px solid #ececec; }
/* 修复③ 品牌门店区块：白色底 */
.store-section--white{ background:#fff; }
.store-section__head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:16px; margin-bottom:26px; flex-wrap:wrap;
}
.store-section__title{ font-size:22px; font-weight:700; color:#151515; margin:0; }
.store-section__title small{ font-weight:400; color:#999; font-size:13px; margin-left:8px; }

/* ---------- 修复④ 左右滑动图标（线上商城保留） ---------- */
.store-nav{ display:flex; align-items:center; gap:10px; flex:0 0 auto; }
.store-nav-btn{
  width:40px; height:40px; border-radius:50%; border:1px solid #dcdcdc; background:#fff;
  color:#151515; font-size:17px; line-height:1; cursor:pointer; display:flex;
  align-items:center; justify-content:center;
  box-shadow:0 2px 6px rgba(0,0,0,.06);
  transition:background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.store-nav-btn:is(:hover,:active){ background:var(--svc-brand,#dbbc87); border-color:var(--svc-brand,#dbbc87); color:#fff; box-shadow:0 4px 12px rgba(219,188,135,.35); }
.store-nav-btn:active{ transform:translateY(1px); }
.store-nav-btn[disabled]{ opacity:.4; cursor:default; background:#fff; border-color:#e2e2e2; box-shadow:none; }
.store-nav-btn i{ line-height:1; }

/* ---------- 线上商城：2 行轮播（Swiper，每列 2 张 = 2 行） ---------- */
.store-swiper{
  overflow:hidden;
  box-sizing:border-box;
  padding:28px 32px 48px; /* 轮播保留裁切，卡片阴影在内侧完整显示 */
}
.store-swiper .swiper-wrapper{ align-items:flex-start; }
.store-swiper .swiper-slide{ height:auto; }
.store-col{ display:flex; flex-direction:column; gap:22px; }

/* 首页同款「分段轮播进度条」 */
.store-progress{
  display:flex; justify-content:center; align-items:center; gap:20px; margin-top:26px;
}
.store-progress .swiper-pagination-bullet{
  width:120px; height:5px; border-radius:3px; background:#e2e2e2; opacity:1;
  margin:0 !important; cursor:pointer; overflow:hidden; position:relative; display:block;
  transition:background .3s;
}
.store-progress .swiper-pagination-bullet:hover{ background:#cfcfcf; }
.store-progress .swiper-pagination-bullet-active{ background:#e2e2e2; }
.store-progress .swiper-pagination-bullet-active::before{
  content:""; position:absolute; left:0; top:0; height:100%; width:0;
  background-color:var(--svc-brand,#dbbc87);
  animation:storeProgressAnim linear forwards;
  animation-duration:var(--progress-duration, 4.2s);
  z-index:1;
}
@keyframes storeProgressAnim{ from{ width:0; } to{ width:100%; } }

/* ---------- 品牌门店：筛选大卡片 + 信息流网格 ---------- */
.store-filter-card{
  display:flex; align-items:center; gap:18px; flex-wrap:wrap;
  background:#fff;                    /* 修复③① 筛选卡片白底 */
  border:1px solid #ededed; border-radius:18px;
  padding:20px 24px; margin-bottom:26px;
  box-shadow:0 2px 10px rgba(0,0,0,.03);
}
.store-filter-card__label{
  font-size:14px; font-weight:700; color:#151515; display:flex; align-items:center; gap:8px;
}
.store-filter-card__label i{ color:var(--svc-brand,#dbbc87); }
.store-filter-card__fields{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; }

/* 修复③② 自定义下拉箭头，与右侧保留间距 */
.store-filter-card select{
  -webkit-appearance:none; -moz-appearance:none; appearance:none;
  border:1px solid #dcdcdc; border-radius:12px;
  padding:11px 42px 11px 16px; font-size:14px;
  background-color:#f8f8f8; color:#1d1d1f; outline:none; cursor:pointer; min-width:190px;  /* 修复③ 选择框底 = #f8f8f8 */
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23151515' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 16px center;   /* 箭头距右边缘 16px */
  box-shadow:0 1px 2px rgba(0,0,0,.02);
}
.store-filter-card select:focus{ border-color:var(--svc-brand,#dbbc87); box-shadow:0 0 0 3px rgba(219,188,135,.15); }
.store-filter-card select::-ms-expand{ display:none; }

.store-grid{
  display:grid; grid-template-columns:repeat(2, 1fr); gap:22px; align-items:start;  /* 修复⑤ 2 列等宽 */
}

/* ---------- 卡片（白底，无配图则更矮） ---------- */
.store-card{
  background:#fff;                    /* 修复⑥ 所有卡片白底 */
  border-radius:18px; border:1px solid #ededed;
  box-shadow:0 2px 10px rgba(0,0,0,.03);
  overflow:hidden; display:flex; flex-direction:column;
  text-decoration:none; color:inherit;
  transition:transform .35s cubic-bezier(.25,.46,.45,.94), box-shadow .35s cubic-bezier(.25,.46,.45,.94);
}
.store-card:hover{ transform:translateY(-6px); box-shadow:0 16px 34px rgba(0,0,0,.10); }
.store-card--hl{ animation:storePulse 1.6s ease; }
@keyframes storePulse{ 0%{ box-shadow:0 0 0 0 rgba(219,188,135,.5);} 100%{ box-shadow:0 0 0 14px rgba(219,188,135,0);} }

.store-card__img{ position:relative; width:100%; aspect-ratio:16/10; background:#f2f2f2; overflow:hidden; }
.store-card__img img{ width:100%; height:100%; object-fit:cover; display:block; }

/* 官方商城卡片配图：固定 480×200 比例（2.4:1），contain 保证 logo 不被裁切 */
.store-swiper .store-card__img{ aspect-ratio:480/200; }
.store-swiper .store-card__img img{ object-fit:contain; }
.store-card__body{ padding:18px 20px 20px; display:flex; flex-direction:column; }
.store-card__name{ font-size:17px; font-weight:700; color:#151515; margin-bottom:8px; }
.store-card__meta{ font-size:13px; color:#666; line-height:1.75; }
.store-card__meta i{ color:var(--svc-brand,#dbbc87); margin-right:7px; width:14px; text-align:center; }
.store-card__desc{ font-size:13px; color:#666; line-height:1.7; }

.store-empty{ display:none; padding:40px 0; text-align:center; color:#999; font-size:14px; }

/* ---------- 分页：沿用官网 /News/ 列表页同款结构（.page-item/.page-link/.page-num） ---------- */
/* 官网色值：文字 #333、描边 #dee2e6、当前页 #333 底白字；hover 底色 #f8f8f8、字号 12px */
.store-pager nav.my-5{ margin:36px 0 0 !important; padding:0; }
.store-pager .page-num,
.store-pager .page-link{
  position:relative; display:block; padding:.5rem .75rem; margin-left:-1px;
  line-height:1.25; font-size:12px; text-decoration:none; cursor:pointer;
  color:#333 !important; background-color:#fff; border:1px solid #dee2e6;
  transition:background-color .2s, color .2s, border-color .2s;
}
.store-pager .page-num:hover,
.store-pager .page-link:hover{ color:#333 !important; background-color:#f8f8f8 !important; text-decoration:none; }
.store-pager .page-num:active,
.store-pager .page-link:active,
.store-pager .page-num:focus,
.store-pager .page-link:focus{ outline:none; box-shadow:none; }
.store-pager .page-num-current,
.store-pager .page-num-current:hover{
  z-index:1; color:#fff !important; background-color:#333 !important; border-color:#333 !important;
}
.store-pager .page-disabled,
.store-pager .page-disabled:hover{ color:#b5b5b5 !important; background-color:#fff !important; cursor:default; pointer-events:none; }

@media (max-width:991px){
  .store-hero{ padding:48px 0 48px; }   /* 移动端同样保持上下等高留白 */
  .store-section{ scroll-margin-top:70px; }
  .store-section{ padding:40px 0; }
  /* 移动端：标题（含副标题）占左侧，滑动按钮固定右上，避免同行拥挤溢出 */
  .store-section__head{ display:block; position:relative; padding-right:96px; min-height:40px; margin-bottom:20px; }
  .store-section__title{ line-height:1.35; }
  .store-section__title small{ display:block; margin:6px 0 0; }
  .store-nav{ position:absolute; right:0; top:0; }
  .store-grid{ grid-template-columns:1fr; gap:16px; }
  .store-filter-card{ padding:16px 18px; gap:12px; }
  .store-filter-card select{ min-width:0; width:100%; }
  .store-filter-card__fields{ width:100%; }
  .store-progress{ gap:12px; margin-top:20px; }
  .store-progress .swiper-pagination-bullet{ width:70px; }
  .store-nav-btn{ width:36px; height:36px; font-size:15px; }
  .store-pager nav.my-5{ margin-top:28px !important; }
}
/* 与官网一致：小屏隐藏数字页码，只留 首页/上一页/下一页/尾页 */
@media (max-width:576px){
  .store-pager .page-num{ display:none; }
}

/* 商城正文排版：桌面与移动端保持一致 */
body .svc-content .store-hero .store-hero__title{font-family:var(--svc-font-title)!important;font-size:30px!important;font-weight:400!important}
body .svc-content .store-section .store-section__title{font-family:var(--svc-font-title)!important;font-size:20px!important;font-weight:400!important}
body .svc-content .store-section .store-section__title small{font-family:var(--svc-font-body)!important;font-size:14px!important;font-weight:400!important}
body .svc-content .store-section .store-filter-card__label,
body .svc-content .store-section .store-card__name{font-family:var(--svc-font-title)!important;font-size:16px!important;font-weight:400!important}
body .svc-content .store-section .store-filter-card select,
body .svc-content .store-section .store-filter-card select option{font-family:var(--svc-font-title)!important;font-size:14px!important;font-weight:400!important}
body .svc-content .store-hero :is(p,input,button,span,a,small),
body .svc-content .store-section :is(p,li,div,a,span,label,input,button,small,strong,b){font-size:14px!important}
body .svc-content .store-section .store-filter-card__label,
body .svc-content .store-section .store-card__name{font-size:16px!important}
body .svc-content .store-hero input::placeholder{font-size:14px!important}

/* 品牌门店卡片：独立于线上商城卡片，保留原有排版规则。 */
.store-grid{gap:24px;}
.store-card--shop{border-color:var(--tm-color-border,#e6e6e6); box-shadow:0 4px 18px rgba(0,0,0,.035);}
.store-card--shop:hover{transform:translateY(-3px); box-shadow:0 12px 28px rgba(0,0,0,.08);}
.store-card--shop:focus-visible{outline:2px solid var(--tm-color-brand,#dbbc87); outline-offset:3px;}
.store-card--shop .store-card__img{aspect-ratio:16/9;}
.store-card--shop .store-card__body{padding:22px 24px 24px;}
.store-card--shop .store-card__name{margin:0 0 16px; padding-bottom:16px; border-bottom:1px solid var(--tm-color-border,#e6e6e6);}
.store-card--shop .store-card__meta{display:flex; align-items:flex-start; gap:10px; min-width:0;}
.store-card--shop .store-card__meta + .store-card__meta{margin-top:10px;}
.store-card--shop .store-card__meta span{min-width:0; overflow-wrap:anywhere;}
.store-card--shop .store-card__icon{display:block; flex:0 0 18px; width:18px; height:18px; margin-top:3px; color:var(--tm-color-brand,#dbbc87);}
@media (max-width:991px){
  .store-grid{gap:16px;}
  .store-card--shop .store-card__body{padding:20px;}
}
@media (prefers-reduced-motion:reduce){
  .store-card--shop{transition:none;}
  .store-card--shop:hover{transform:none;}
}

@media (max-width:991px){
  .store-swiper{padding-left:20px; padding-right:20px;}
}
