:root{
  --nf-void:#14121A;--nf-panel:#1A1620;--nf-panel2:#221b28;
  --nf-cyan:#b5487a;--nf-violet:#7b2d6b;--nf-amber:#f0c66a;
  --nf-text:#f4f0ea;--nf-mut:#a9a2b5;--nf-line:rgba(224,163,200,.16);
}
/* NEONFORM 年龄门（全站）—— 使用独立类，不污染主题 */
.nf-age{position:fixed;inset:0;z-index:99999;background:rgba(20,18,26,.97);
  display:flex;align-items:center;justify-content:center;text-align:center;padding:24px;font-family:Georgia,'Times New Roman',serif}
.nf-age[hidden]{display:none!important}
.nf-age-box{max-width:460px;color:var(--nf-text)}
.nf-age-logo{font-family:Georgia,'Times New Roman',serif;font-weight:700;font-size:30px;letter-spacing:.12em;color:#fff;margin-bottom:22px}
.nf-age-logo span{color:var(--nf-cyan)}
.nf-age-box h2{font-family:Georgia,'Times New Roman',serif;font-size:30px;color:#fff;margin:0 0 14px}
.nf-age-box p{color:var(--nf-mut);margin:0 0 26px;font-size:14px;line-height:1.7;font-family:'Helvetica Neue',Arial,sans-serif}
.nf-age-btns{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.nf-age-btn{padding:14px 24px;font-family:Georgia,'Times New Roman',serif;font-size:12px;letter-spacing:.06em;
  border-radius:7px;cursor:pointer;border:1px solid var(--nf-line);transition:.2s;background:transparent;color:var(--nf-text)}
.nf-age-btn.primary{background:var(--nf-cyan);color:#2a0f1d;font-weight:700;border-color:var(--nf-cyan)}
.nf-age-btn.primary:hover{background:#d4729e;box-shadow:0 0 22px rgba(181,72,122,.4)}
.nf-age-btn.ghost:hover{border-color:var(--nf-violet);color:#e0a3c8}

/* ============================================================
   NEONFORM 全站深色赛博皮肤
   覆盖 Fashion 主题 scheme-1 的 RGB 变量（本文件在主题变量之后加载）
   ============================================================ */
.color-scheme-1{
  --color-background:20,18,26;      /* 深空底 #14121A */
  --color-text:244,240,234;         /* 浅紫白 */
  --color-light-text:169,162,181;   /* 柔和灰紫 */
  --color-entry-line:46,41,56;   /* 边框 */
  --color-button-background:181,72,122;
  --color-button-text:255,255,255;
  --color-media-background:26,22,32;
  --color-card-background:26,22,32;
}
/* header 与公告栏：深色半透明，霓虹分隔线 */
.header-section,.announcement-bar{background-color:rgba(20,18,26,.92)!important}
.header-section{backdrop-filter:blur(14px)}
.header-section.divider,.header-section .header__container-bottom{border-color:rgba(224,163,200,.16)!important}
.header-section.transparent{background:linear-gradient(180deg,rgba(20,18,26,.95),rgba(20,18,26,.75))!important}
.theme-sticky-header--sticky .header-section.transparent .header__container{background:transparent!important}
/* 店铺名与导航文字使用浅色 */
.header-section .header__logo,.header-section .header__logo-heading,
.header-section a,.header-section button,.header-section span{color:#f4f0ea!important}
.header-section .header__container-bottom a:hover{color:var(--nf-cyan)!important}
/* 公告栏文字 */
.announcement-bar,.announcement-bar a,.announcement-bar span{color:#c9c2d4!important}
/* 内层白底元素（真正可见的白色来源）—— 强制覆盖 */
.announcement-bar__group-item,.announcement-bar__carousel-wrapper,
.announcement-bar .page-width,.header__container,
.header-search-bar__form,.header__container-top,.header__container-bottom{
  background-color:rgba(20,18,26,.94)!important;
}
.header-search-bar__form input,.header-section input{
  background-color:rgba(30,27,48,.9)!important;color:#f4f0ea!important;
  border-color:rgba(224,163,200,.25)!important;
}
.header-search-bar__form input::placeholder{color:#a9a2b5!important}
/* 搜索框兜底：header 内任何 input/form 都用深色，覆盖主题内联白底 */
header input,header form,header [class*="search"] input,header [class*="search"] form,
.header-section input,.header-section form,[class*="header-search"] input,[class*="header-search"] form{
  background-color:#221b28!important;color:#f4f0ea!important;
  border:1px solid rgba(224,163,200,.25)!important;border-radius:6px!important;
}
header input::placeholder,[class*="header-search"] input::placeholder{color:#a9a2b5!important}
/* body 底色兜底，避免加载瞬间白屏 */
body{background-color:#14121A}

/* ============================================================
   加购按钮对齐修正 v2（2026-11-24 17:00）
   根因：同一行商品卡的「描述」文字行数不同，导致其下方的
   Add to cart 按钮高低不齐。修复=让卡片信息区等高撑满，
   按钮 margin-top:auto 统一沉到卡片底部。
   ============================================================ */
/* 1) 商品卡本体：flex 纵向，图片固定、信息区撑满剩余高度 */
html body .block-product-card{
  display:flex;
  flex-direction:column;
  height:100%;
}
/* 2) 信息区：纵向布局并 flex:1 撑满（覆盖主题 gap 设置） */
html body .block-product-card .block-product-card-info{
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  height:100%;
}
/* 3) 加购按钮容器沉底——描述无论几行，按钮都贴卡片底部同一水平线 */
html body .block-product-card .block-product-card-info > theme-product-form.block-product-buy-button-wrapper,
html body .block-product-card .block-product-card-info > [class*="buy-button-wrapper"]{
  margin-top:auto;
  width:100%;
  box-sizing:border-box;
  padding-top:8px;
}
/* 4) 按钮本体：等高、文字居中、撑满宽度 */
html body .block-product-card .block-product-buy-button{
  width:100%;
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
}

/* 5) 产品详情页：数量框与加购按钮同一行时等高对齐（保留） */
html body .block-product-buy-button-group{
  align-items:stretch;
}
html body .block-product-buy-button-group .quantity-selector__input,
html body .block-product-buy-button-group .block-product-buy-button-wrapper{
  align-self:stretch;
  min-height:48px;
}
html body .block-product-buy-button-group .block-product-buy-button-wrapper .block-product-buy-button{
  width:100%;
  white-space:nowrap;
}

/* ===== v3 兜底：统一「价格 + 描述」区高度，从根源消除按钮错位 ===== */
/* 价格行不换行：两个价格始终同一行，避免因宽度差异折行把按钮顶下去 */
html body .block-product-card .block-product-price{
  display:flex;
  flex-wrap:nowrap;
  align-items:baseline;
  gap:8px;
  min-height:26px;
  white-space:nowrap;
}
html body .block-product-card .block-product-price .block-product-price__compare-at,
html body .block-product-card .block-product-price [class*="compare"],
html body .block-product-card .block-product-price s{
  font-size:.85em;
}
/* 描述区固定 2 行高度：无论商品描述有无/长短，占位高度一致 */
html body .block-product-card .block-product-card__description,
html body .block-product-card theme-product-expander{
  display:block;
  min-height:42px;
  max-height:42px;
  overflow:hidden;
}
html body .block-product-card .block-product-card__description .product-expander__content{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  max-height:42px;
}
/* 标题固定 2 行：商品名长短不一也统一高度 */
html body .block-product-card .block-product-title{
  min-height:42px;
  max-height:42px;
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}

/* ============================================================
   v4 悬浮加购按钮 + 清理空白（2026-11-25）
   目标：所有页面的标准产品卡（集合页/搜索页/首页精选/推荐），
   加购按钮统一改成首页同款的「图片上悬浮文字长条」，并清除
   信息区因描述占位/固定高度产生的空白，按钮沉底对齐。
   ============================================================ */

/* ---- 1) 把图片层的圆形 quick-add 改造成悬浮文字长条 ---- */
/* 两个 layer 都改成 absolute 相对图片定位；layer-image-wrapper 本身是 relative */
html body .block-product-card .block-product-card__layer{
  position:absolute;
  height:auto!important;
}
/* 折扣角标 / 售罄角标层：贴左上，不铺满 */
html body .block-product-card .block-product-card__layer:has(.block-product-card__discount-tag),
html body .block-product-card .block-product-card__layer:has(.block-product-card__sold-out){
  top:12px;left:12px;right:auto;bottom:auto;
  padding:0;
}
/* 加购按钮层：贴图片底部，横向铺满 */
html body .block-product-card .block-product-card__layer:has(.block-product-card__quick-add){
  left:14px;right:14px;bottom:14px;top:auto;
  display:flex;
  align-items:flex-end;
  padding:0;
}
/* 关键：button 外包着 theme-product-form → form，必须都铺满，否则 width:100% 失效 */
html body .block-product-card .block-product-card__layer:has(.block-product-card__quick-add) theme-product-form,
html body .block-product-card .block-product-card__layer:has(.block-product-card__quick-add) theme-product-form form{
  display:block;
  width:100%;
  margin:0;
}

/* 圆形按钮 → 横向长条，赛博风格，hover 显现 */
html body .block-product-card .block-product-card__quick-add{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:auto;
  min-height:42px;
  padding:11px 8px;
  border-radius:6px;
  border:1px solid rgba(181,72,122,.5);
  background:rgba(20,18,26,.88);
  color:#fff;
  font-family:Georgia,'Times New Roman',serif;
  font-size:11px;
  letter-spacing:.08em;
  text-align:center;
  opacity:0;
  transform:translateY(6px);
  transition:opacity .2s,transform .2s,background .2s;
}
/* 用 CSS 追加文案（button 内只有图标 svg） */
html body .block-product-card .block-product-card__quick-add::after{
  content:'ADD TO CART';
}
/* 隐藏原 svg 图标 */
html body .block-product-card .block-product-card__quick-add .icon-quick-add,
html body .block-product-card .block-product-card__quick-add svg{
  display:none!important;
}
/* hover 整卡时显现并高亮 */
html body .block-product-card:hover .block-product-card__quick-add,
html body .block-product-card__layer-image-wrapper:hover .block-product-card__quick-add{
  opacity:1;
  transform:translateY(0);
  background:var(--nf-cyan,#b5487a);
  border-color:var(--nf-cyan,#b5487a);
  color:#2a0f1d;
}
/* fade-in layer 的 opacity 由主题控制，强制在 hover 时显示整层 */
html body .block-product-card__layer-image-wrapper:hover .block-product-card__layer.fade-in{opacity:1}
/* 触屏无 hover：常驻显示 */
@media(hover:none){
  html body .block-product-card .block-product-card__quick-add{
    opacity:1;
    transform:translateY(0);
    background:rgba(20,18,26,.88);
    border-color:rgba(181,72,122,.5);
    color:#fff;
  }
}

/* ---- 2) 隐藏信息区常驻文字按钮（悬浮风格：图片按钮为唯一入口） ---- */
html body .block-product-card .block-product-card-info > theme-product-form.block-product-buy-button-wrapper,
html body .block-product-card .block-product-card-info > [class*="buy-button-wrapper"],
html body .block-product-card .block-product-card-info .block-product-buy-button-wrapper{
  display:none!important;
}

/* ---- 3) 清理空白：去掉描述占位、价格/标题的多余固定高度 ---- */
/* 描述区：没有文案就完全不占位，有文案则 2 行截断，去掉下方空档 */
html body .block-product-card .block-product-card__description,
html body .block-product-card theme-product-expander{
  display:-webkit-box!important;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  min-height:0!important;
  max-height:42px!important;
  overflow:hidden!important;
  margin:0!important;
}
html body .block-product-card .block-product-card-info{
  row-gap:8px;
}
/* 标题：保留两行截断但去掉底部空白，让卡片更紧凑 */
html body .block-product-card .block-product-title{
  min-height:0!important;
  margin:0!important;
}
/* 价格：单行不占位多余高度 */
html body .block-product-card .block-product-price{
  min-height:0!important;
  margin:0!important;
}
