﻿/*
Theme Name: Spoolwise Light
Template: astra
Description: Spoolwise 白色极简主题（Astra 子主题），桌面与移动端统一
Version: 1.0.0
Author: Spoolwise
*/

/* ==========================================================================
   1. 设计变量
   ========================================================================== */
:root {
  --sw-bg: #FAF9F7;
  --sw-surface: #FFFFFF;
  --sw-ink: #14121A;
  --sw-ink-2: #3A3542;
  --sw-muted: #6E6879;
  --sw-line: #E9E6EE;
  --sw-line-2: #E0DBEA;
  --sw-accent: #FF4FA3;
  --sw-accent-hover: #E93E92;
  --sw-soft: #F5F2FA;
  --sw-r-card: 16px;
  --sw-r-btn: 12px;
  --sw-r-pill: 999px;
  --sw-shadow: 0 1px 2px rgba(16, 12, 24, .05);
  --sw-shadow-lg: 0 10px 30px rgba(16, 12, 24, .07);
  --sw-maxw: 1240px;
  --sw-font: "Inter", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ==========================================================================
   2. 基础
   ========================================================================== */
html, body,
body.ast-separate-container, body.ast-plain-container,
.hfeed, .site, #page, #content, .site-content, .content-area {
  background: var(--sw-bg) !important;
  color: var(--sw-ink) !important;
  font-family: var(--sw-font) !important;
  -webkit-font-smoothing: antialiased;
}

body p, body li, .entry-content,
.woocommerce-product-details__short-description {
  color: var(--sw-ink-2);
  font-family: var(--sw-font);
  line-height: 1.75;
}

html body h1, html body h2, html body h3, html body h4, html body h5, html body h6,
html body h1[class], html body h2[class], html body h3[class],
html body .entry-title, html body .product_title,
html body .woocommerce-loop-product__title,
html body .site-title, html body .site-title a,
html body .sw-h1, html body .sw-h, html body .sw-sec, html body .sw-sec-title,
html body h2.sw-sec, html body h1.sw-h1,
html body .sw-persona h3, html body .sw-card h3 {
  font-family: var(--sw-font) !important;
  color: var(--sw-ink) !important;
  letter-spacing: -.02em !important;
  text-transform: none !important;
  font-weight: 700 !important;
}
html body h1, html body .sw-h1, html body h1.sw-h1 {
  font-weight: 800 !important;
  letter-spacing: -.03em !important;
}

a { color: var(--sw-ink); }
a:hover { color: var(--sw-accent); }
.ast-container, .site-content .ast-container { max-width: var(--sw-maxw); }

/* ==========================================================================
   3. 头部
   ========================================================================== */
.site-header, .ast-primary-header-bar, .main-header-bar,
.ast-above-header, .ast-below-header, #masthead {
  background: rgba(250, 249, 247, .94) !important;
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--sw-line) !important;
  box-shadow: none !important;
}
.site-title a, .site-title { font-weight: 800 !important; letter-spacing: -.03em !important; color: var(--sw-ink) !important; }

.main-header-menu .menu-link,
.ast-builder-menu-1 .menu-item > .menu-link,
.ast-nav-menu .menu-link,
.ast-builder-menu-mobile .main-navigation .menu-item > .menu-link {
  color: var(--sw-ink) !important;
  font-weight: 500 !important;
  font-family: var(--sw-font) !important;
}
.main-header-menu .menu-link:hover,
.main-header-menu .current-menu-item > .menu-link,
.ast-builder-menu-1 .menu-item.current-menu-item > .menu-link { color: var(--sw-accent) !important; }

.menu-toggle, .ast-mobile-menu-trigger-minimal, #ast-mobile-header .menu-toggle {
  background: var(--sw-surface) !important;
  background-image: none !important;
  border: 1px solid var(--sw-line) !important;
  border-radius: var(--sw-r-btn) !important;
  box-shadow: var(--sw-shadow) !important;
  color: var(--sw-ink) !important;
}
.menu-toggle svg, .menu-toggle .ast-menu-toggle { fill: var(--sw-ink) !important; stroke: var(--sw-ink) !important; }
.ast-header-custom-item a, .ast-builder-layout-element a { color: var(--sw-ink) !important; }

/* ==========================================================================
   4. 按钮
   ========================================================================== */
.button, .wp-block-button__link, button[type=submit],
.single_add_to_cart_button, .checkout-button, #place_order,
.wc-block-components-button {
  font-family: var(--sw-font) !important;
  font-weight: 600 !important;
  border-radius: var(--sw-r-btn) !important;
  transition: background-color .18s ease, border-color .18s ease, transform .12s ease;
}
.button.alt, .wp-block-button__link, .single_add_to_cart_button,
.checkout-button, #place_order {
  background-image: none !important;
  background-color: var(--sw-accent) !important;
  border: 1px solid var(--sw-accent) !important;
  color: #fff !important;
  box-shadow: none !important;
}
.button.alt:hover, .wp-block-button__link:hover, .single_add_to_cart_button:hover,
.checkout-button:hover, #place_order:hover {
  background-color: var(--sw-accent-hover) !important;
  border-color: var(--sw-accent-hover) !important;
  color: #fff !important;
}
.wp-block-button.is-style-outline .wp-block-button__link,
.button:not(.alt), .ast-button {
  background: var(--sw-surface) !important;
  background-image: none !important;
  border: 1px solid var(--sw-line-2) !important;
  color: var(--sw-ink) !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.button:not(.alt):hover { border-color: var(--sw-ink) !important; color: var(--sw-ink) !important; }

/* ==========================================================================
   5. 首页区块（真实类名：sw-hero3 / sw-persona / sw-card / sw-trustbar）
   ========================================================================== */
.sw-hero3, .wp-block-group.sw-hero3 {
  background: linear-gradient(180deg, #FFFFFF 0%, #F7F4FB 100%) !important;
  border: 1px solid var(--sw-line) !important;
  border-radius: 24px !important;
  padding: 56px 40px !important;
  box-shadow: var(--sw-shadow-lg) !important;
  overflow: hidden;
  position: relative;
}
.sw-hero3::before, .sw-hero3::after { display: none !important; }   /* 干掉旧的光斑 */
.sw-kicker, .sw-hero3 .sw-kicker {
  color: var(--sw-muted) !important;
  font-size: 12px !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
}
.sw-h1, .sw-hero3 .sw-h1 {
  font-size: clamp(32px, 4.4vw, 56px) !important;
  line-height: 1.06 !important;
  background: none !important;
  -webkit-text-fill-color: var(--sw-ink) !important;
  color: var(--sw-ink) !important;
}
.sw-sub, .sw-hero3 .sw-sub { color: var(--sw-ink-2) !important; font-size: 16.5px !important; }

h2.sw-sec { font-size: clamp(22px, 2.4vw, 30px) !important; margin-bottom: 22px !important; }

/* persona 卡片 */
.sw-persona, .wp-block-group.sw-persona {
  background: var(--sw-surface) !important;
  border: 1px solid var(--sw-line) !important;
  border-radius: 20px !important;
  padding: 22px !important;
  box-shadow: var(--sw-shadow) !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.sw-persona:hover { transform: translateY(-3px); box-shadow: var(--sw-shadow-lg); border-color: var(--sw-line-2) !important; }
.sw-persona img { border-radius: 14px !important; }
.sw-persona h3, .sw-persona .wp-block-heading { font-size: 19px !important; }
.sw-persona p, .sw-persona .sw-tb { color: var(--sw-muted) !important; font-size: 14px !important; }

/* 通用卡片 */
.sw-card, .wp-block-group.sw-card {
  background: var(--sw-surface) !important;
  border: 1px solid var(--sw-line) !important;
  border-radius: 20px !important;
  padding: 24px !important;
}
.sw-card * { color: var(--sw-ink-2) !important; }
.sw-card h3, .sw-card .wp-block-heading { color: var(--sw-ink) !important; }

/* 信任条 */
.sw-trustbar, .wp-block-group.sw-trustbar {
  background: var(--sw-soft) !important;
  border: 1px solid var(--sw-line) !important;
  border-radius: var(--sw-r-pill) !important;
}
.sw-trustbar *, .sw-trustrow * { color: var(--sw-muted) !important; }

/* 分类名 / 小字 */
.sw-catname { color: var(--sw-ink) !important; font-weight: 600 !important; }
.sw-tb, .sw-need-sub, .sw-parts .sw-tb { color: var(--sw-muted) !important; }
.sw-parts, .sw-needs, .sw-guides, .sw-news, .sw-popular { background: transparent !important; }

/* 首页图片 */
.wp-block-image img { border-radius: 14px; }

/* ==========================================================================
   6. 商品列表
   ========================================================================== */
.woocommerce ul.products li.product,
.ast-woocommerce-container ul.products li.product {
  background: var(--sw-surface) !important;
  border: 1px solid var(--sw-line) !important;
  border-radius: var(--sw-r-card) !important;
  padding: 12px !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-3px);
  box-shadow: var(--sw-shadow-lg);
  border-color: var(--sw-line-2) !important;
}
.woocommerce ul.products li.product a img {
  border-radius: 10px !important;
  background: var(--sw-surface) !important;
  aspect-ratio: 1 / 1;
  object-fit: contain !important;
}
.woocommerce-loop-product__title { font-size: 15.5px !important; font-weight: 600 !important; color: var(--sw-ink) !important; line-height: 1.35 !important; }

.price, .price bdi, .price ins, .woocommerce-Price-amount {
  color: var(--sw-ink) !important;
  -webkit-text-fill-color: var(--sw-ink) !important;
  font-weight: 700 !important;
  font-family: var(--sw-font) !important;
}
.price del, .price del .woocommerce-Price-amount { color: var(--sw-muted) !important; }
.woocommerce ul.products li.product .price { font-size: 15px !important; }

.onsale, .woocommerce span.onsale {
  background: var(--sw-accent) !important;
  border-radius: var(--sw-r-pill) !important;
  color: #fff !important;
  font-size: 11px !important;
  padding: 3px 10px !important;
  box-shadow: none !important;
}
.star-rating span::before, .star-rating::before { color: var(--sw-accent) !important; }

/* ==========================================================================
   7. 商品详情
   ========================================================================== */
.woocommerce div.product div.images,
.woocommerce div.product div.summary { background: transparent !important; }
.woocommerce div.product div.images img {
  border-radius: var(--sw-r-card) !important;
  background: var(--sw-surface) !important;
}
.woocommerce div.product .flex-control-thumbs img {
  border-radius: 10px !important;
  border: 1px solid var(--sw-line) !important;
  background: var(--sw-surface) !important;
}
.woocommerce div.product .flex-control-thumbs li img.flex-active { border-color: var(--sw-accent) !important; }
.woocommerce div.product .product_title { font-size: clamp(24px, 3vw, 36px) !important; }
.woocommerce div.product p.price { font-size: 26px !important; }
.woocommerce div.product form.cart .variations select,
.woocommerce div.product form.cart .variations label { color: var(--sw-ink) !important; font-family: var(--sw-font) !important; }
.quantity input.qty {
  background: var(--sw-surface) !important;
  border: 1px solid var(--sw-line-2) !important;
  border-radius: 10px !important;
  color: var(--sw-ink) !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: var(--sw-soft) !important;
  border: 1px solid var(--sw-line) !important;
  border-radius: var(--sw-r-pill) !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--sw-ink) !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--sw-ink) !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #fff !important; }

/* ==========================================================================
   8. 表单 / 结账 / 表格
   ========================================================================== */
input[type=text], input[type=email], input[type=tel], input[type=password],
input[type=search], input[type=number], select, textarea {
  background: var(--sw-surface) !important;
  color: var(--sw-ink) !important;
  border: 1px solid var(--sw-line-2) !important;
  border-radius: 10px !important;
  font-family: var(--sw-font) !important;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--sw-accent) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(255, 79, 163, .12) !important;
}
.woocommerce form .form-row label { color: var(--sw-ink) !important; font-weight: 500 !important; }

.woocommerce table.shop_table {
  background: var(--sw-surface) !important;
  border: 1px solid var(--sw-line) !important;
  border-radius: var(--sw-r-card) !important;
  border-collapse: separate !important;
  overflow: hidden;
}
.woocommerce table.shop_table th { background: var(--sw-soft) !important; color: var(--sw-ink) !important; }
.woocommerce table.shop_table td { color: var(--sw-ink-2) !important; border-color: var(--sw-line) !important; }

.woocommerce-info, .woocommerce-message, .woocommerce-error {
  border-radius: var(--sw-r-btn) !important;
  border-top-color: var(--sw-accent) !important;
  background: var(--sw-surface) !important;
  color: var(--sw-ink-2) !important;
}
.woocommerce-info::before, .woocommerce-message::before { color: var(--sw-accent) !important; }

/* ==========================================================================
   9. 页脚
   ========================================================================== */
.site-footer, #colophon, .ast-footer-copyright,
.site-primary-footer-wrap, .site-below-footer-wrap, .footer-widgets {
  background: var(--sw-soft) !important;
  border-top: 1px solid var(--sw-line) !important;
  color: var(--sw-muted) !important;
}
.site-footer a, #colophon a, .site-footer .widget a { color: var(--sw-ink) !important; }
.site-footer a:hover { color: var(--sw-accent) !important; }
.site-footer h2, .site-footer .widget-title { color: var(--sw-ink) !important; font-size: 14px !important; }

/* ==========================================================================
   10. 面包屑 / 分页
   ========================================================================== */
.woocommerce-breadcrumb, .woocommerce-breadcrumb a { color: var(--sw-muted) !important; font-size: 13px !important; }
.page-numbers { color: var(--sw-ink) !important; border: 1px solid var(--sw-line) !important; border-radius: 10px !important; background: var(--sw-surface) !important; }
.page-numbers.current { background: var(--sw-accent) !important; color: #fff !important; border-color: var(--sw-accent) !important; }

/* ==========================================================================
   11. 移动端
   ========================================================================== */
@media (max-width: 921px) {
  .sw-hero3 { padding: 32px 20px !important; border-radius: 18px !important; }
  .sw-h1 { font-size: 30px !important; }
  .sw-sub { font-size: 15px !important; }
  .sw-persona, .wp-block-group.sw-persona { padding: 16px !important; border-radius: 16px !important; }
  .woocommerce ul.products li.product { padding: 10px !important; }
  .woocommerce-loop-product__title { font-size: 14px !important; }
  .woocommerce ul.products li.product .price { font-size: 14px !important; }
  .woocommerce div.product .product_title { font-size: 24px !important; }
  .woocommerce div.product p.price { font-size: 22px !important; }
}


/* ==========================================================================
   12. 新首页：按分类布局（无旧装修图）
   ========================================================================== */
.sw-hero {
  background: linear-gradient(180deg, #FFFFFF 0%, #F7F4FB 100%);
  border: 1px solid var(--sw-line);
  border-radius: 24px;
  padding: 64px 56px;
  box-shadow: var(--sw-shadow-lg);
  margin-bottom: 22px;
}
.sw-kicker {
  margin: 0 0 14px;
  color: var(--sw-muted);
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
}
.sw-title {
  margin: 0 0 16px;
  font-size: clamp(32px, 4.6vw, 58px) !important;
  line-height: 1.05 !important;
  font-weight: 800 !important;
  letter-spacing: -.03em !important;
  max-width: 16ch;
}
.sw-lead {
  margin: 0 0 26px;
  max-width: 62ch;
  color: var(--sw-ink-2);
  font-size: 16.5px;
  line-height: 1.7;
}
.sw-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.sw-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px;
  border-radius: var(--sw-r-btn);
  font-size: 14.5px; font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--sw-line-2);
  background: var(--sw-surface);
  color: var(--sw-ink);
  transition: background .16s ease, border-color .16s ease, transform .12s ease;
}
.sw-btn:hover { border-color: var(--sw-ink); color: var(--sw-ink); transform: translateY(-1px); }
.sw-btn-pri { background: var(--sw-accent); border-color: var(--sw-accent); color: #fff; }
.sw-btn-pri:hover { background: var(--sw-accent-hover); border-color: var(--sw-accent-hover); color: #fff; }

/* 信任条 */
.sw-trust {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  justify-content: center;
  padding: 16px 20px;
  margin-bottom: 44px;
  background: var(--sw-soft);
  border: 1px solid var(--sw-line);
  border-radius: var(--sw-r-pill);
  color: var(--sw-muted);
  font-size: 13px;
}

/* 分类区块 */
.sw-catsec { margin: 0 0 56px; }
.sw-catsec-hd {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 6px;
}
.sw-catsec-hd h2 {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 32px) !important;
  font-weight: 800 !important;
  letter-spacing: -.02em !important;
}
.sw-more { color: var(--sw-muted); font-size: 13.5px; text-decoration: none; white-space: nowrap; }
.sw-more:hover { color: var(--sw-accent); }
.sw-catsec-sub {
  margin: 0 0 20px;
  color: var(--sw-muted);
  font-size: 14.5px;
  max-width: 70ch;
}

/* 商品网格间距 */
.sw-catsec ul.products { margin: 0 !important; }
.sw-catsec ul.products li.product { margin-bottom: 0 !important; }

/* 指南列表 */
.sw-guides {
  background: var(--sw-surface);
  border: 1px solid var(--sw-line);
  border-radius: 20px;
  padding: 28px 30px;
  margin-bottom: 40px;
}
.sw-guide-list {
  list-style: none; margin: 14px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
}
.sw-guide-list li { margin: 0; }
.sw-guide-list a {
  color: var(--sw-ink);
  text-decoration: none;
  font-size: 14.5px;
  line-height: 1.55;
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--sw-line);
}
.sw-guide-list a:hover { color: var(--sw-accent); border-bottom-color: var(--sw-accent); }

@media (max-width: 921px) {
  .sw-hero { padding: 30px 20px; border-radius: 18px; margin-bottom: 16px; }
  .sw-title { font-size: 30px !important; max-width: none; }
  .sw-lead { font-size: 15px; }
  .sw-btn { flex: 1 1 auto; }
  .sw-trust { justify-content: flex-start; font-size: 12.5px; padding: 12px 16px; margin-bottom: 30px; }
  .sw-catsec { margin-bottom: 40px; }
  .sw-catsec-hd h2 { font-size: 22px !important; }
  .sw-guides { padding: 20px; }
  .sw-guide-list { grid-template-columns: 1fr; gap: 4px; }
}

/* ==========================================================================
   13. 首页容器与遗留样式修正
   ========================================================================== */
/* 内容区左右留白 + 居中 */
.home .entry-content,
.page-template-default .entry-content,
.entry-content {
  max-width: var(--sw-maxw);
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box;
}

/* 信任条：压掉旧青色主题 */
html body .sw-trust,
html body .sw-trust span,
html body .sw-trust b,
html body .sw-trust a {
  color: var(--sw-muted) !important;
  text-decoration: none !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}
html body .sw-trust {
  background: var(--sw-soft) !important;
  border: 1px solid var(--sw-line) !important;
  border-radius: var(--sw-r-pill) !important;
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
  align-items: center;
  padding: 12px 20px !important;
  margin: 0 0 42px !important;
}
html body .sw-trust br { display: none !important; }

/* 按钮去掉下划线 */
html body .sw-btn,
html body .sw-btn:hover,
html body .sw-more,
html body .sw-guide-list a {
  text-decoration: none !important;
}

/* 分类标题与大标题颜色兜底 */
html body .sw-catsec-hd h2,
html body .sw-title,
html body .sw-guides h2 {
  color: var(--sw-ink) !important;
}
html body .sw-catsec-sub,
html body .sw-more,
html body .sw-lead,
html body .sw-kicker {
  color: var(--sw-muted) !important;
}

/* 商品卡里的分类小字（Astra 默认显示 product_cat） */
html body ul.products li.product .ast-woo-product-category,
html body ul.products li.product .posted_in,
html body ul.products li.product .ast-woocommerce-product-category {
  color: var(--sw-muted) !important;
  font-size: 11.5px !important;
  letter-spacing: .04em;
  text-transform: uppercase;
}

@media (max-width: 921px) {
  .home .entry-content, .entry-content { padding-left: 16px !important; padding-right: 16px !important; }
  html body .sw-trust { justify-content: flex-start; margin-bottom: 26px !important; padding: 10px 14px !important; }
}

/* ==========================================================================
   14. 列表页筛选条 / 商品页促销与分享（压掉旧青色）
   ========================================================================== */
html body .sw-filters {
  background: var(--sw-surface) !important;
  border: 1px solid var(--sw-line) !important;
  border-radius: var(--sw-r-card) !important;
  padding: 14px 16px !important;
  margin: 18px 0 26px !important;
}
html body .sw-flabel {
  color: var(--sw-muted) !important;
  font-size: 11.5px !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}
html body .sw-chip,
html body .sw-chip-mini {
  background: var(--sw-soft) !important;
  color: var(--sw-ink) !important;
  border: 1px solid var(--sw-line) !important;
  border-radius: var(--sw-r-pill) !important;
  font-size: 12.5px !important;
  padding: 5px 12px !important;
  text-decoration: none !important;
}
html body .sw-chip:hover,
html body .sw-chip-mini:hover {
  border-color: var(--sw-ink) !important;
  color: var(--sw-ink) !important;
}
html body .sw-chip.is-active,
html body .sw-chip[aria-pressed="true"] {
  background: var(--sw-ink) !important;
  color: #fff !important;
  border-color: var(--sw-ink) !important;
}
html body .sw-clear { color: var(--sw-muted) !important; font-size: 12.5px !important; }

/* 商品页促销条 */
html body .sw-promos,
html body .sw-promos a,
html body .sw-firstorder,
html body .sw-freeship,
html body .sw-goal,
html body .sw-goal-txt,
html body .sw-goal-hit {
  color: var(--sw-ink-2) !important;
  background: transparent !important;
  border-color: var(--sw-line) !important;
}
html body .sw-promos a,
html body .sw-firstorder a,
html body .sw-freeship a {
  color: var(--sw-accent) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}
html body .sw-promos span,
html body .sw-firstorder span,
html body .sw-freeship span {
  background: var(--sw-soft) !important;
  border: 1px dashed var(--sw-line-2) !important;
  border-radius: 8px !important;
  color: var(--sw-ink) !important;
  padding: 3px 8px !important;
}

/* 发货提示 */
html body .sw-delivery,
html body .sw-delivery * {
  color: var(--sw-ink-2) !important;
  background: transparent !important;
}
html body .sw-delivery-dot {
  background: #1F8A4C !important;
  box-shadow: none !important;
}

/* 分享 */
html body .sw-share,
html body .sw-share-label,
html body .sw-share-btn {
  color: var(--sw-muted) !important;
  background: transparent !important;
  border-color: var(--sw-line) !important;
  text-decoration: none !important;
}
html body .sw-share-btn {
  border: 1px solid var(--sw-line) !important;
  border-radius: var(--sw-r-pill) !important;
  padding: 5px 12px !important;
  font-size: 12.5px !important;
}
html body .sw-share-btn:hover { border-color: var(--sw-ink) !important; color: var(--sw-ink) !important; }

/* 商品页顶部 WELCOME10 旧青色条 */
html body .sw-has-sticky ~ * .woocommerce-info,
html body .woocommerce-info {
  background: var(--sw-soft) !important;
  border: 1px solid var(--sw-line) !important;
  color: var(--sw-ink-2) !important;
  border-radius: var(--sw-r-btn) !important;
}
html body .woocommerce-info a { color: var(--sw-accent) !important; }

/* ==========================================================================
   15. 购物车 / 结账 / 账户
   ========================================================================== */
.woocommerce-cart .entry-content,
.woocommerce-checkout .entry-content,
.woocommerce-account .entry-content { max-width: 1120px; margin: 0 auto !important; }

/* 购物车表格 */
.woocommerce-cart table.cart {
  background: var(--sw-surface) !important;
  border: 1px solid var(--sw-line) !important;
  border-radius: var(--sw-r-card) !important;
}
.woocommerce-cart table.cart th { background: var(--sw-soft) !important; color: var(--sw-ink) !important; }
.woocommerce-cart table.cart td { border-color: var(--sw-line) !important; color: var(--sw-ink-2) !important; }
.woocommerce-cart table.cart img { border-radius: 10px !important; width: 72px !important; }

/* 购物车按钮组 */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  background: var(--sw-accent) !important;
  border-color: var(--sw-accent) !important;
  color: #fff !important;
  border-radius: var(--sw-r-btn) !important;
  font-weight: 600 !important;
  padding: 14px 20px !important;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  background: var(--sw-accent-hover) !important;
  border-color: var(--sw-accent-hover) !important;
}

/* 优惠券 */
.woocommerce-cart .coupon .input-text {
  background: var(--sw-surface) !important;
  border: 1px solid var(--sw-line-2) !important;
  border-radius: 10px !important;
  color: var(--sw-ink) !important;
}

/* 结账两栏 */
.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review {
  background: var(--sw-surface) !important;
  border: 1px solid var(--sw-line) !important;
  border-radius: var(--sw-r-card) !important;
  padding: 22px !important;
}
.woocommerce-checkout h3 {
  font-size: 18px !important;
  margin-bottom: 14px !important;
  color: var(--sw-ink) !important;
}
.woocommerce-checkout #order_review_heading { margin-top: 8px !important; }

/* 结账支付方式 */
.woocommerce-checkout #payment {
  background: var(--sw-soft) !important;
  border-radius: var(--sw-r-card) !important;
}
.woocommerce-checkout #payment ul.payment_methods {
  border-bottom: 1px solid var(--sw-line) !important;
}
.woocommerce-checkout #payment div.payment_box {
  background: var(--sw-surface) !important;
  color: var(--sw-ink-2) !important;
  border-radius: 10px !important;
}
.woocommerce-checkout #payment div.payment_box::before { display: none !important; }
.woocommerce-checkout #place_order {
  background: var(--sw-accent) !important;
  border: 1px solid var(--sw-accent) !important;
  color: #fff !important;
  border-radius: var(--sw-r-btn) !important;
  font-weight: 700 !important;
  padding: 15px 22px !important;
  width: 100%;
}
.woocommerce-checkout #place_order:hover { background: var(--sw-accent-hover) !important; }

/* Stripe 卡表单容器：保持默认渲染，只统一外框 */
.woocommerce-checkout .stripe-card-element,
.woocommerce-checkout #stripe-card-element,
.woocommerce-checkout .wc-stripe-elements-field {
  background: var(--sw-surface) !important;
  border: 1px solid var(--sw-line-2) !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  min-height: 44px;
}

/* 账户页 */
.woocommerce-account .woocommerce-MyAccount-navigation {
  background: var(--sw-surface) !important;
  border: 1px solid var(--sw-line) !important;
  border-radius: var(--sw-r-card) !important;
  padding: 10px !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  color: var(--sw-ink) !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  display: block;
  text-decoration: none !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
  background: var(--sw-soft) !important;
  color: var(--sw-accent) !important;
}
.woocommerce-account .woocommerce-MyAccount-content {
  background: var(--sw-surface) !important;
  border: 1px solid var(--sw-line) !important;
  border-radius: var(--sw-r-card) !important;
  padding: 22px !important;
}

/* 空购物车提示 */
.woocommerce-cart .cart-empty,
.woocommerce-cart .return-to-shop { text-align: center; }
.return-to-shop .button,
.woocommerce-cart .return-to-shop .button {
  background: var(--sw-accent) !important;
  border-color: var(--sw-accent) !important;
  color: #fff !important;
  border-radius: var(--sw-r-btn) !important;
}

@media (max-width: 921px) {
  .woocommerce-cart table.cart td, .woocommerce-cart table.cart th { font-size: 13.5px !important; }
  .woocommerce-checkout #customer_details,
  .woocommerce-checkout #order_review { padding: 16px !important; }
}

/* ==========================================================================
   16. 满减进度条 / 优惠提示（去掉彩虹渐变与青色）
   ========================================================================== */
html body .sw-goal,
html body .sw-goal-txt,
html body .sw-goal * {
  color: var(--sw-ink-2) !important;
}
html body .sw-goal {
  background: var(--sw-surface) !important;
  border: 1px solid var(--sw-line) !important;
  border-radius: var(--sw-r-card) !important;
  padding: 16px 18px !important;
}
html body .sw-goal-txt b,
html body .sw-goal-txt strong,
html body .sw-goal-txt span {
  color: var(--sw-ink) !important;
}
html body .sw-goal-bar,
html body .sw-goal-bar > span,
html body .sw-goal-bar > div {
  background: var(--sw-accent) !important;
  background-image: none !important;
  border-radius: var(--sw-r-pill) !important;
}
html body .sw-goal-bar {
  background: var(--sw-line) !important;
  height: 6px !important;
  overflow: hidden;
}
html body .sw-goal-hit { color: #1F8A4C !important; }

/* 页面里所有遗留青色强调 */
html body a[style*="00e5ff"],
html body .sw-coupon,
html body .sw-coupon * { color: var(--sw-accent) !important; }

/* ==========================================================================
   17. 移动端购物车：表格改卡片
   ========================================================================== */
@media (max-width: 921px) {
  .woocommerce-cart .entry-content,
  .woocommerce-checkout .entry-content,
  .woocommerce-account .entry-content,
  .woocommerce-cart .woocommerce,
  .woocommerce-checkout .woocommerce {
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box;
  }

  .woocommerce-cart table.cart.shop_table,
  .woocommerce-cart table.cart.shop_table tbody { display: block !important; border: 0 !important; background: transparent !important; }

  .woocommerce-cart table.cart.shop_table thead { display: none !important; }

  .woocommerce-cart table.cart.shop_table tr.cart_item {
    display: grid !important;
    grid-template-columns: 92px 1fr;
    gap: 10px 14px;
    align-items: start;
    background: var(--sw-surface) !important;
    border: 1px solid var(--sw-line) !important;
    border-radius: 14px !important;
    padding: 14px !important;
    margin-bottom: 12px;
    position: relative;
  }

  .woocommerce-cart table.cart.shop_table td {
    display: block !important;
    border: 0 !important;
    padding: 0 !important;
    width: auto !important;
  }

  /* 图片占左列 */
  .woocommerce-cart table.cart.shop_table td.product-thumbnail {
    grid-row: 1 / span 3;
    grid-column: 1;
  }
  .woocommerce-cart table.cart.shop_table td.product-thumbnail img {
    width: 92px !important;
    height: 92px !important;
    object-fit: contain;
    border-radius: 10px !important;
    background: #fff;
  }

  /* 名称 */
  .woocommerce-cart table.cart.shop_table td.product-name {
    grid-column: 2;
    grid-row: 1;
    font-size: 14px !important;
    line-height: 1.4 !important;
    padding-right: 26px !important;
  }

  /* 数量 + 小计 */
  .woocommerce-cart table.cart.shop_table td.product-quantity {
    grid-column: 2; grid-row: 2;
  }
  .woocommerce-cart table.cart.shop_table td.product-quantity .quantity { display: inline-block; }
  .woocommerce-cart table.cart.shop_table td.product-quantity input.qty {
    width: 64px !important; min-height: 36px !important; text-align: center;
  }
  .woocommerce-cart table.cart.shop_table td.product-subtotal {
    grid-column: 2; grid-row: 3;
    font-weight: 700 !important;
    color: var(--sw-ink) !important;
    font-size: 15px !important;
  }

  /* 单价与删除：隐藏单价，删除按钮浮到右上 */
  .woocommerce-cart table.cart.shop_table td.product-price { display: none !important; }
  .woocommerce-cart table.cart.shop_table td.product-remove {
    position: absolute !important;
    top: 8px; right: 8px;
  }
  .woocommerce-cart table.cart.shop_table td.product-remove a.remove {
    color: var(--sw-muted) !important;
    background: var(--sw-soft) !important;
    width: 24px; height: 24px; line-height: 22px;
    border-radius: 50%;
    font-size: 15px;
  }
  .woocommerce-cart table.cart.shop_table td.product-remove a.remove:hover {
    background: var(--sw-accent) !important; color: #fff !important;
  }

  /* 操作按钮 */
  .woocommerce-cart table.cart.shop_table td.actions {
    display: block !important;
    border: 0 !important;
    padding: 6px 0 0 !important;
  }
  .woocommerce-cart table.cart.shop_table td.actions .coupon { display: flex; gap: 8px; margin-bottom: 10px; }
  .woocommerce-cart table.cart.shop_table td.actions .coupon .input-text { flex: 1; }
  .woocommerce-cart table.cart.shop_table td.actions .button { width: 100%; }

  /* 购物车总计 */
  .woocommerce-cart .cart-collaterals .cart_totals {
    background: var(--sw-surface) !important;
    border: 1px solid var(--sw-line) !important;
    border-radius: 14px !important;
    padding: 16px !important;
  }
}

/* 移动端购物车：去掉表格前缀标签 + 标题留白 */
@media (max-width: 921px) {
  .woocommerce-cart table.cart td::before,
  .woocommerce-cart table.cart th::before,
  .woocommerce-checkout table.shop_table td::before { display: none !important; content: none !important; }

  .woocommerce-cart .entry-title,
  .woocommerce-checkout .entry-title,
  .woocommerce-account .entry-title,
  .woocommerce-cart h1.page-title,
  .woocommerce-cart .woocommerce h1 {
    padding-left: 16px !important;
    padding-right: 16px !important;
    font-size: 28px !important;
    margin-bottom: 12px !important;
  }
  .woocommerce-cart .woocommerce,
  .woocommerce-checkout .woocommerce { padding: 0 16px !important; }
}

/* ==========================================================================
   18. 页脚（Astra footer builder）
   ========================================================================== */
.site-footer,
.site-primary-footer-wrap,
.site-below-footer-wrap,
.ast-footer-copyright,
.footer-widgets {
  background: var(--sw-surface) !important;
  border-top: 1px solid var(--sw-line) !important;
  color: var(--sw-muted) !important;
}
.site-footer .ast-container { padding-top: 40px; padding-bottom: 34px; }
.site-footer .widget-title,
.site-footer h2,
.site-footer .ast-footer-copyright p {
  color: var(--sw-ink) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 12px !important;
}
.site-footer .widget,
.site-footer p,
.site-footer li,
.site-footer span { color: var(--sw-muted) !important; font-size: 13.5px !important; line-height: 1.75 !important; }
.site-footer a { color: var(--sw-ink) !important; text-decoration: none !important; }
.site-footer a:hover { color: var(--sw-accent) !important; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 8px !important; }
.site-footer .ast-footer-copyright { border-top: 1px solid var(--sw-line) !important; padding: 16px 0 !important; }
.site-footer .ast-footer-copyright,
.site-footer .ast-footer-copyright p { color: var(--sw-muted) !important; font-size: 12.5px !important; }
/* 页脚社交/支付图标 */
.site-footer .ast-builder-social-element svg,
.site-footer svg { fill: var(--sw-muted) !important; }
.site-footer .ast-builder-social-element:hover svg { fill: var(--sw-accent) !important; }
/* 返回顶部 */
.ast-scroll-top-icon, #ast-scroll-top {
  background: var(--sw-ink) !important;
  color: #fff !important;
  border-radius: var(--sw-r-pill) !important;
}

/* ==========================================================================
   19. 商品详情页：图册与信息区细节
   ========================================================================== */
.woocommerce div.product div.images .flex-viewport { border-radius: var(--sw-r-card) !important; }
.woocommerce div.product div.images .woocommerce-product-gallery__image img {
  border-radius: var(--sw-r-card) !important;
}
.woocommerce div.product .flex-control-thumbs {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 8px !important;
  margin-top: 10px !important;
}
.woocommerce div.product .flex-control-thumbs li { width: 100% !important; margin: 0 !important; }
.woocommerce div.product .flex-control-thumbs li img {
  border-radius: 10px !important;
  border: 1px solid var(--sw-line) !important;
  background: #fff !important;
  aspect-ratio: 1/1;
  object-fit: cover;
}
.woocommerce div.product div.summary .product_title { line-height: 1.15 !important; }
.woocommerce div.product form.cart {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  margin-top: 16px !important;
}
.woocommerce div.product form.cart .quantity { flex: 0 0 auto; }
.woocommerce div.product form.cart button.single_add_to_cart_button {
  flex: 1 1 200px;
  min-height: 48px;
  font-size: 15.5px !important;
}
.woocommerce div.product form.cart .variations { width: 100%; }
.woocommerce div.product form.cart .variations select {
  width: 100% !important;
  min-height: 44px !important;
}

/* 相关商品 / 追加销售 区块标题 */
.related.products > h2,
.upsells.products > h2 {
  font-size: 22px !important;
  margin: 34px 0 16px !important;
}

@media (max-width: 921px) {
  .woocommerce div.product .flex-control-thumbs { grid-template-columns: repeat(4, 1fr) !important; }
  .woocommerce div.product form.cart button.single_add_to_cart_button { flex: 1 1 100%; }
}

/* ==========================================================================
   20. 页脚支付图标 / 最近浏览区块
   ========================================================================== */
/* 支付方式图标行（旧主题是淡青色） */
.site-footer .sw-pay,
.site-footer .sw-pay *,
.site-footer .sw-payments,
.site-footer .sw-payments *,
.site-footer .sw-payicons,
.site-footer .sw-payicons * {
  color: var(--sw-muted) !important;
  fill: var(--sw-muted) !important;
  opacity: 1 !important;
  letter-spacing: .1em !important;
  font-size: 12px !important;
}
.site-footer img[src*="visa"],
.site-footer img[src*="mastercard"],
.site-footer img[src*="paypal"],
.site-footer img[src*="amex"],
.site-footer img[src*="apple"],
.site-footer img[src*="google"] {
  filter: grayscale(1) opacity(.55);
  height: 20px; width: auto;
}

/* 最近浏览 */
.sw-recent-wrap, .sw-recent { background: transparent !important; padding-left: 24px !important; padding-right: 24px !important; }
.sw-recent h2, .sw-recent-wrap h2, .sw-recent-title {
  font-size: 22px !important;
  margin: 30px 0 14px !important;
  padding-left: 0 !important;
  color: var(--sw-ink) !important;
}
.sw-recent-grid, .sw-rgrid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.sw-recent-grid a, .sw-rgrid a {
  background: var(--sw-surface) !important;
  border: 1px solid var(--sw-line) !important;
  border-radius: var(--sw-r-card) !important;
  padding: 10px !important;
  text-decoration: none !important;
  color: var(--sw-ink) !important;
  display: block;
}
.sw-recent-grid img, .sw-rgrid img { border-radius: 10px !important; width: 100% !important; aspect-ratio: 1/1; object-fit: contain; }

@media (max-width: 921px) {
  .sw-recent-wrap, .sw-recent { padding-left: 16px !important; padding-right: 16px !important; }
  .sw-recent-grid, .sw-rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 页脚支付图标行（真实类名 .sw-payicons） */
html body .sw-payicons {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
  align-items: center;
  padding: 18px 0 6px !important;
}
html body .sw-payicons span,
html body .sw-payicons div,
html body .sw-payicons li,
html body .sw-payicons a {
  color: var(--sw-muted) !important;
  fill: var(--sw-muted) !important;
  font-size: 11.5px !important;
  letter-spacing: .12em !important;
  text-transform: uppercase;
  background: transparent !important;
  border: 0 !important;
  opacity: .85 !important;
  text-shadow: none !important;
}
html body .sw-payicons svg { fill: var(--sw-muted) !important; opacity: .8 !important; }
html body .sw-payicons img { filter: grayscale(1) opacity(.6) !important; height: 18px; width: auto; }

/* 移动端信任条居中 */
@media (max-width: 921px) {
  html body .sw-trust {
    justify-content: center !important;
    text-align: center !important;
    gap: 8px 18px !important;
    padding: 12px 16px !important;
  }
  html body .sw-trust span { text-align: center !important; flex: 0 0 auto; }
}

/* 页脚运费条（.sw-freeship）居中 */
html body .sw-freeship {
  text-align: center !important;
  justify-content: center !important;
  display: block !important;
  padding: 10px 16px !important;
  color: var(--sw-muted) !important;
  background: var(--sw-soft) !important;
  border-top: 1px solid var(--sw-line) !important;
  border-bottom: 1px solid var(--sw-line) !important;
  font-size: 13px !important;
}
html body .sw-freeship * { color: var(--sw-muted) !important; text-align: center !important; }

/* 首页信任条（.sw-trust）兜底居中 */
html body .sw-trust,
html body .sw-trust * {
  text-align: center !important;
}
html body .sw-trust { justify-content: center !important; }

/* 支付图标行：覆盖旧主题的 -webkit-text-fill-color（灰色渐变字） */
html body div.sw-payicons span,
html body div.sw-payicons a,
html body .footer-widgets .sw-payicons span {
  color: #6E6879 !important;
  -webkit-text-fill-color: #6E6879 !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  opacity: 1 !important;
  font-weight: 600 !important;
  font-size: 11.5px !important;
  letter-spacing: .12em !important;
}

/* ==========================================================================
   21. 移动端菜单（抽屉）样式：大字、分组、易点
   ========================================================================== */
@media (max-width: 921px) {
  .ast-mobile-header-wrap .main-header-menu,
  #ast-mobile-header .main-header-menu {
    background: var(--sw-surface) !important;
    border-top: 1px solid var(--sw-line) !important;
    padding: 8px 0 20px !important;
  }
  #ast-mobile-header .main-header-menu .menu-item > .menu-link,
  .ast-mobile-header-wrap .main-header-menu .menu-item > .menu-link {
    color: var(--sw-ink) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 14px 20px !important;
    border-bottom: 1px solid var(--sw-line) !important;
    text-decoration: none !important;
  }
  /* 一级项没有任何图标，保持干净 */
  #ast-mobile-header .main-header-menu .menu-item > .menu-link:hover,
  #ast-mobile-header .main-header-menu .menu-item.current-menu-item > .menu-link {
    color: var(--sw-accent) !important;
    background: var(--sw-soft) !important;
  }

  /* 子菜单（分类）：缩进 + 浅灰底 + 小字 */
  #ast-mobile-header .main-header-menu .sub-menu,
  .ast-mobile-header-wrap .main-header-menu .sub-menu {
    background: var(--sw-bg) !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 4px 0 !important;
    margin: 0 !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    display: block !important;
  }
  #ast-mobile-header .main-header-menu .sub-menu .menu-item > .menu-link {
    font-size: 15px !important;
    font-weight: 500 !important;
    padding: 11px 20px 11px 36px !important;
    color: var(--sw-ink-2) !important;
    border-bottom: 1px solid var(--sw-line) !important;
  }

  /* 展开箭头 */
  #ast-mobile-header .main-header-menu .menu-item-has-children > .menu-link .ast-icon,
  #ast-mobile-header .main-header-menu .ast-menu-toggle { color: var(--sw-muted) !important; }
}

/* ==========================================================================
   22. 自定义移动端头部 + 抽屉
   ========================================================================== */
.sw-mheader { display: none; }

@media (max-width: 921px) {
  /* 隐藏 Astra 自带头部（桌面导航在手机上会挤成一排文字） */
  #ast-desktop-header, #ast-mobile-header, .ast-mobile-header-wrap, .site-header { display: none !important; }
  .sw-mheader {
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 9990;
    padding: 14px 16px;
    background: rgba(250, 249, 247, .96);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--sw-line);
  }
  .sw-mlogo {
    font-size: 21px; font-weight: 800; letter-spacing: -.03em;
    color: var(--sw-ink) !important; text-decoration: none !important;
  }
  .sw-mhdr-actions { display: flex; align-items: center; gap: 8px; }
  .sw-msrch {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 12px;
    background: var(--sw-surface); border: 1px solid var(--sw-line);
    color: var(--sw-ink) !important;
  }
  .sw-mburger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
    width: 42px; height: 42px; padding: 11px 10px;
    background: var(--sw-surface); border: 1px solid var(--sw-line);
    border-radius: 12px; cursor: pointer;
  }
  .sw-mburger span { display: block; height: 2px; background: var(--sw-ink); border-radius: 2px; }
  .sw-mburger span:nth-child(2) { width: 70%; }

  /* 抽屉 */
  .sw-mdrawer {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(12, 8, 20, .35);
    opacity: 0; transition: opacity .2s ease;
    display: flex; justify-content: flex-end;
  }
  .sw-mdrawer.is-open { opacity: 1; }
  .sw-mdrawer > * { }
  .sw-mdrawer-hd {
    display: none;
  }
  .sw-mnav {
    width: 86%; max-width: 360px; height: 100%;
    background: var(--sw-surface);
    box-shadow: -12px 0 40px rgba(16,12,24,.18);
    padding: 18px 0 30px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .22s ease;
  }
  .sw-mdrawer.is-open .sw-mnav { transform: translateX(0); }
  .sw-mnav a {
    display: block; padding: 14px 22px;
    color: var(--sw-ink) !important; text-decoration: none !important;
    font-size: 16px; font-weight: 600;
    border-bottom: 1px solid var(--sw-line);
  }
  .sw-mnav a:hover { color: var(--sw-accent) !important; background: var(--sw-soft); }
  .sw-mnav .sw-msub {
    padding-left: 38px; font-size: 15px; font-weight: 500;
    color: var(--sw-ink-2) !important;
  }
  .sw-mgroup {
    padding: 18px 22px 8px;
    font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--sw-muted); font-weight: 700;
  }
  .sw-mclose {
    position: absolute; top: 12px; right: 12px;
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid var(--sw-line); background: var(--sw-surface);
    font-size: 22px; line-height: 1; color: var(--sw-ink);
    display: none;
  }
  /* 顶部留出空间，避免内容贴边 */
  body.sw-light { padding-top: 0 !important; }
}

/* 移动端购物车图标 + 数量角标 */
@media (max-width: 921px) {
  .sw-mcart {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 12px;
    background: var(--sw-surface); border: 1px solid var(--sw-line);
    color: var(--sw-ink) !important; text-decoration: none !important;
  }
  .sw-mcart-count {
    position: absolute; top: -6px; right: -6px;
    min-width: 19px; height: 19px; padding: 0 5px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--sw-accent); color: #fff !important;
    font-size: 11px; font-weight: 700; line-height: 1;
    border-radius: 999px;
    border: 2px solid var(--sw-bg);
  }
  /* 抽屉打开时按钮仍可点 */
  .sw-mburger, .sw-mcart, .sw-msrch { position: relative; z-index: 9991; }
}

/* 强制隐藏 Astra 头部（#masthead 必须显式处理，否则会盖住自定义头） */
@media (max-width: 921px) {
  html body #masthead,
  html body header.site-header,
  html body #ast-desktop-header,
  html body #ast-mobile-header,
  html body .ast-mobile-header-wrap {
    display: none !important;
    height: 0 !important;
    visibility: hidden !important;
  }
  html body .sw-mheader {
    display: flex !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 9995 !important;
  }
  /* WP 管理栏登录时会让位 */
  body.admin-bar .sw-mheader { top: 32px !important; }
}

/* 抽屉的 hidden 必须真正生效，否则透明遮罩会挡住汉堡按钮 */
@media (max-width: 921px) {
  .sw-mdrawer[hidden] { display: none !important; }
  .sw-mdrawer:not([hidden]) { display: flex !important; }
  /* 遮罩层不拦截头部按钮区域 */
  .sw-mdrawer { pointer-events: auto; }
  .sw-mdrawer .sw-mnav { pointer-events: auto; }
}

/* 抽屉最终形态：实心白面板、无透明度动画、层级别冲突 */
@media (max-width: 921px) {
  .sw-mdrawer {
    position: fixed !important;
    inset: 0 !important;
    display: flex !important;
    justify-content: flex-end;
    background: rgba(12, 8, 20, .38) !important;
    opacity: 1 !important;
    transition: none !important;
    z-index: 99999 !important;
  }
  .sw-mdrawer[hidden] { display: none !important; }
  .sw-mdrawer .sw-mnav {
    background: #FFFFFF !important;
    width: 88% !important;
    max-width: 380px !important;
    height: 100% !important;
    overflow-y: auto !important;
    box-shadow: -16px 0 48px rgba(16, 12, 24, .22) !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .sw-mdrawer .sw-mnav a { background: #FFFFFF !important; }
  .sw-mdrawer .sw-mnav a:hover { background: #F5F2FA !important; }
  .sw-mdrawer .sw-mgroup { background: #FAF9F7 !important; }
}

/* ==========================================================================
   23. 移动端搜索面板
   ========================================================================== */
@media (max-width: 921px) {
  .sw-msrch { cursor: pointer; background: var(--sw-surface); }
  .sw-msearch {
    position: fixed; inset: 0; z-index: 100000;
    background: #FFFFFF;
    padding: 16px;
    display: flex; flex-direction: column; gap: 14px;
  }
  .sw-msearch[hidden] { display: none !important; }
  .sw-msearch-form { display: flex; gap: 8px; }
  .sw-msearch-form input[type=search] {
    flex: 1; min-height: 48px; font-size: 16px;
    border: 1px solid var(--sw-line-2); border-radius: 12px;
    padding: 0 14px; background: var(--sw-surface); color: var(--sw-ink);
  }
  .sw-msearch-form input[type=search]:focus { border-color: var(--sw-accent); outline: none; }
  .sw-msearch-form button {
    min-height: 48px; padding: 0 18px; border-radius: 12px;
    background: var(--sw-accent); border: 1px solid var(--sw-accent);
    color: #fff; font-weight: 700; font-size: 15px;
  }
  .sw-msclose {
    align-self: flex-start; background: none; border: 0;
    color: var(--sw-muted); font-size: 15px; padding: 6px 2px;
  }
}

/* 桌面端也保证搜索框可用（结果页那个被 Astra 压成 0 宽） */
html body .search-form input[type=search],
html body .ast-search-menu-icon input[type=search] {
  width: auto !important;
  min-width: 220px !important;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--sw-line-2) !important;
  border-radius: 10px !important;
  background: var(--sw-surface) !important;
  color: var(--sw-ink) !important;
}

/* 顶部图标尺寸兜底（搜索图标曾被压成 0 宽） */
@media (max-width: 921px) {
  .sw-mheader .sw-msrch,
  .sw-mheader .sw-mcart { display: inline-flex !important; align-items: center; justify-content: center; }
  .sw-mheader .sw-msrch svg,
  .sw-mheader .sw-mcart svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    flex: 0 0 20px !important;
    display: block !important;
    stroke: #14121A !important;
    fill: none !important;
  }
  .sw-mheader .sw-mburger span { background: #14121A !important; }
}

/* ==========================================================================
   24. 联系渠道：页脚联系条 + 悬浮 WhatsApp
   ========================================================================== */
.sw-contact {
  background: var(--sw-surface);
  border-top: 1px solid var(--sw-line);
  padding: 34px 24px;
}
.sw-contact-inner { max-width: var(--sw-maxw); margin: 0 auto; }
.sw-contact-hd { margin-bottom: 18px; }
.sw-contact-hd strong {
  display: block; font-size: 20px; font-weight: 800;
  letter-spacing: -.02em; color: var(--sw-ink); margin-bottom: 6px;
}
.sw-contact-hd span { color: var(--sw-muted); font-size: 14px; }
.sw-contact-list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.sw-contact-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--sw-bg);
  border: 1px solid var(--sw-line);
  border-radius: 14px;
  text-decoration: none !important;
  transition: border-color .16s ease, transform .12s ease;
}
.sw-contact-item:hover { border-color: var(--sw-line-2); transform: translateY(-1px); }
.sw-ci-ic {
  width: 38px; height: 38px; flex: 0 0 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px;
  background: var(--sw-soft);
  color: var(--sw-ink); font-size: 12px; font-weight: 800; letter-spacing: .02em;
}
.sw-ci-tx b { display: block; font-size: 14.5px; color: var(--sw-ink); }
.sw-ci-tx small { display: block; font-size: 12.5px; color: var(--sw-muted); margin-top: 2px; }

/* 悬浮 WhatsApp */
.sw-fab-wa {
  position: fixed; right: 16px; bottom: 18px; z-index: 9990;
  width: 52px; height: 52px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #25D366; color: #fff !important;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .35);
  text-decoration: none !important;
}
.sw-fab-wa:hover { transform: translateY(-2px); }
.sw-fab-wa svg { width: 26px; height: 26px; }

@media (max-width: 921px) {
  .sw-contact { padding: 26px 16px; }
  .sw-contact-list { grid-template-columns: 1fr; gap: 10px; }
  .sw-fab-wa { bottom: 16px; right: 14px; width: 48px; height: 48px; }
}

/* 联系条改为两列（Email + WhatsApp） */
.sw-contact-list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
@media (max-width: 921px) { .sw-contact-list { grid-template-columns: 1fr !important; } }

/* ==========================================================================
   25. 详情长图：去掉图片之间的空隙，做成连续长图
   ========================================================================== */
html body .woocommerce-Tabs-panel--description,
html body #tab-description,
html body .woocommerce-product-details__short-description,
html body .single-product .entry-content {
  padding: 0 !important;
}

html body .woocommerce-Tabs-panel--description p,
html body #tab-description p,
html body .woocommerce-product-details__short-description p,
html body .single-product .entry-content p {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}

html body .woocommerce-Tabs-panel--description p:has(img),
html body #tab-description p:has(img),
html body .woocommerce-product-details__short-description p:has(img),
html body .single-product .entry-content p:has(img) {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
}

html body .woocommerce-Tabs-panel--description img,
html body #tab-description img,
html body .woocommerce-product-details__short-description img,
html body .single-product .entry-content img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  vertical-align: top !important;
  object-fit: contain;
}

/* 段落里有文字时仍保留一点间距 */
html body .woocommerce-Tabs-panel--description p:not(:has(img)) {
  margin: 0 0 14px !important;
  line-height: 1.75 !important;
  font-size: 15px !important;
}

/* 修正：只对"纯图片段落"清零，普通文字段落恢复正常行高 */
html body .single-product .entry-content p:not(:has(img)),
html body .woocommerce-Tabs-panel--description p:not(:has(img)),
html body #tab-description p:not(:has(img)),
html body .woocommerce-product-details__short-description p:not(:has(img)),
html body .woocommerce-product-details__short-description,
html body .woocommerce div.product .summary p,
html body .woocommerce div.product .summary .woocommerce-product-details__short-description {
  line-height: 1.75 !important;
  font-size: 15px !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
}
html body .woocommerce div.product .summary p:last-child { margin-bottom: 0 !important; }

/* 标题后的第一段不要贴太紧 */
html body .woocommerce-Tabs-panel--description h2,
html body .woocommerce-Tabs-panel--description h3 {
  line-height: 1.25 !important;
  margin: 28px 0 10px !important;
  font-size: 24px !important;
}
html body .woocommerce-Tabs-panel--description li {
  line-height: 1.7 !important;
  font-size: 15px !important;
  margin-bottom: 8px !important;
}

/* ==========================================================================
   26. 商品页吸底购买栏（旧组件 #sw-sticky-cart 改成白色主题）
   ========================================================================== */
html body #sw-sticky-cart {
  background: rgba(255, 255, 255, .97) !important;
  backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--sw-line) !important;
  box-shadow: 0 -8px 24px rgba(16, 12, 24, .08) !important;
  padding: 10px 14px !important;
  gap: 12px;
  align-items: center;
}
html body #sw-sticky-cart .sw-sc-price {
  font-family: var(--sw-font) !important;
  font-size: 19px !important;
  font-weight: 800 !important;
  color: var(--sw-ink) !important;
  -webkit-text-fill-color: var(--sw-ink) !important;
  letter-spacing: -.02em !important;
}
html body #sw-sticky-cart .sw-sc-btn {
  background: var(--sw-accent) !important;
  background-image: none !important;
  border: 1px solid var(--sw-accent) !important;
  border-radius: 12px !important;
  color: #fff !important;
  font-family: var(--sw-font) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  padding: 13px 16px !important;
  box-shadow: none !important;
}
html body #sw-sticky-cart .sw-sc-btn:hover { background: var(--sw-accent-hover) !important; }
html body.sw-has-sticky { padding-bottom: 78px !important; }

/* ==========================================================================
   27. 商品页主图：源图 800px，限制展示尺寸避免放大发虚
   ========================================================================== */
html body .woocommerce div.product div.images,
html body .woocommerce div.product div.summary {
  max-width: 100% !important;
}
html body .woocommerce div.product div.images {
  max-width: 800px !important;
}
html body .woocommerce div.product div.images .woocommerce-product-gallery__image img,
html body .woocommerce div.product div.images img {
  width: 100% !important;
  max-width: 800px !important;
  height: auto !important;
  image-rendering: auto;
}
/* 桌面两栏时，主图列也限制在 800px */
@media (min-width: 922px) {
  html body .woocommerce div.product div.images { width: 46% !important; }
  html body .woocommerce div.product div.summary { width: 50% !important; float: right; }
}
/* 缩略图：100px 源图 → 显示 72px，不再放大 */
html body .woocommerce div.product .flex-control-thumbs li img {
  max-width: 100% !important;
}

/* ==========================================================================
   28. 自建在线聊天控件
   ========================================================================== */
.sw-chat { position: fixed; right: 18px; bottom: 18px; z-index: 99990; font-family: var(--sw-font, "Inter", sans-serif); }
.sw-chat-fab {
  display: inline-flex; align-items: center; gap: 8px;
  height: 52px; padding: 0 20px 0 16px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--sw-accent, #FF4FA3); color: #fff;
  box-shadow: 0 10px 26px rgba(255, 79, 163, .34);
  font-size: 15px; font-weight: 700;
}
.sw-chat-fab-ic { font-size: 18px; }
.sw-chat.is-open .sw-chat-fab { display: none; }
.sw-chat-panel {
  width: 360px; max-width: calc(100vw - 32px);
  height: 520px; max-height: calc(100vh - 120px);
  background: #fff; border: 1px solid var(--sw-line, #E9E6EE);
  border-radius: 16px; box-shadow: 0 20px 50px rgba(16,12,24,.18);
  display: flex; flex-direction: column; overflow: hidden;
}
.sw-chat-panel[hidden] { display: none !important; }
.sw-chat-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--sw-line, #E9E6EE);
  background: var(--sw-soft, #F5F2FA);
}
.sw-chat-head strong { display: block; font-size: 15px; color: var(--sw-ink, #14121A); }
.sw-chat-head small { display: block; font-size: 12px; color: var(--sw-muted, #6E6879); margin-top: 2px; }
.sw-chat-close { border: 0; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: var(--sw-muted, #6E6879); }
.sw-chat-log { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.sw-chat-msg { max-width: 82%; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.sw-chat-me { align-self: flex-end; background: var(--sw-accent, #FF4FA3); color: #fff; border-bottom-right-radius: 4px; }
.sw-chat-shop { align-self: flex-start; background: var(--sw-soft, #F5F2FA); color: var(--sw-ink, #14121A); border-bottom-left-radius: 4px; }
.sw-chat-form { display: grid; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--sw-line, #E9E6EE); background: #fff; }
.sw-chat-form input, .sw-chat-form textarea {
  width: 100%; border: 1px solid var(--sw-line-2, #D9D4E2); border-radius: 10px;
  padding: 9px 11px; font-size: 14px; font-family: inherit; color: var(--sw-ink, #14121A);
  background: #fff;
}
.sw-chat-form textarea { resize: vertical; min-height: 56px; }
.sw-chat-form button[type=submit] {
  border: 0; border-radius: 10px; padding: 11px 16px; cursor: pointer;
  background: var(--sw-accent, #FF4FA3); color: #fff; font-weight: 700; font-size: 14px;
}
.sw-chat-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.sw-chat-alt { font-size: 12px; color: var(--sw-muted, #6E6879); }
.sw-chat-alt a { color: var(--sw-accent, #FF4FA3); }
@media (max-width: 921px) {
  .sw-chat { right: 14px; bottom: 14px; }
  .sw-chat-panel { width: calc(100vw - 28px); height: 70vh; }
  .sw-chat-fab { height: 48px; padding: 0 16px; }
}

/* 聊天控件优化：位置抬高避免与返回顶部重叠、移动端更紧凑、未读角标 */
.sw-chat { position: fixed; right: 18px; bottom: 88px; z-index: 99988; }
.sw-chat-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #14121A; color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 999px; border: 2px solid var(--sw-bg, #FAF9F7);
}
.sw-chat-badge[hidden] { display: none !important; }
.sw-chat-hint { font-size: 12.5px; color: var(--sw-muted, #6E6879); background: var(--sw-soft, #F5F2FA); padding: 8px 10px; border-radius: 10px; }
@media (max-width: 921px) {
  .sw-chat { right: 14px; bottom: 80px; }
  .sw-chat-panel { width: calc(100vw - 28px); height: 58vh; max-height: 520px; }
  .sw-chat-log { padding: 12px 14px; }
  .sw-chat-form { padding: 10px 14px 12px; gap: 6px; }
  .sw-chat-form input, .sw-chat-form textarea { font-size: 16px; } /* 防 iOS 自动放大 */
}

/* 聊天：时间戳 + 快捷问句 */
.sw-chat-msg { position: relative; }
.sw-chat-time { display: block; margin-top: 4px; font-size: 10.5px; opacity: .65; text-align: right; }
.sw-chat-quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 10px; background: #fff; }
.sw-chat-quick button {
  border: 1px solid var(--sw-line-2, #D9D4E2); background: var(--sw-soft, #F5F2FA);
  color: var(--sw-ink-2, #3D3949); font-size: 12.5px; padding: 6px 10px;
  border-radius: 999px; cursor: pointer; font-family: inherit;
}
.sw-chat-quick button:hover { border-color: var(--sw-accent, #FF4FA3); color: var(--sw-accent, #FF4FA3); }

/* 移动端抽屉：二级/三级折叠 */
.sw-mnav details.sw-mdet{margin:0;border:0;background:#FFFFFF}
.sw-mnav details.sw-mdet > summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;padding:14px 22px;font-size:16px;font-weight:600;color:#14121a;border-bottom:1px solid var(--sw-line,#ece9f1)}
.sw-mnav details.sw-mdet > summary::-webkit-details-marker{display:none}
.sw-mnav details.sw-mdet > summary::after{content:"+";font-weight:400;font-size:18px;color:#8a8494;margin-left:10px;line-height:1}
.sw-mnav details.sw-mdet[open] > summary::after{content:"\2212"}
.sw-mnav details.sw-mdet .sw-msub{padding:12px 22px 12px 38px;font-size:15px;font-weight:500;color:#4a4458 !important;background:#FFFFFF;border-bottom:1px solid #F3F0F7}
.sw-mnav details.sw-mdet-2{margin-left:22px;border-left:1px solid #EDE9F2;background:#FFFFFF}
.sw-mnav details.sw-mdet-2 > summary{padding:11px 22px 11px 16px;font-size:14.5px;font-weight:600}
.sw-mnav details.sw-mdet-2 .sw-msub{padding:10px 22px 10px 30px;font-size:14px;border-bottom:1px solid #F7F5FA}
.sw-mnav details.sw-mdet[open]{padding-bottom:2px}

/* 首页：键帽快捷类目 chips */
.sw-qchips{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 20px}
.sw-qchips a{display:inline-flex;align-items:center;height:34px;padding:0 14px;border-radius:999px;border:1px solid #E4DFEC;background:#fff;color:#14121a !important;font-size:13.5px;font-weight:600;text-decoration:none !important;transition:.15s}
.sw-qchips a:hover{border-color:#FF4FA3;color:#FF4FA3 !important;background:#FFF5FA}
.sw-qchips a.sw-qchip-all{background:#14121a;border-color:#14121a;color:#fff !important}
.sw-qchips a.sw-qchip-all:hover{background:#FF4FA3;border-color:#FF4FA3;color:#fff !important}
@media(max-width:640px){.sw-qchips{flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px;-webkit-overflow-scrolling:touch}.sw-qchips a{white-space:nowrap;flex:0 0 auto}}

/* 聊天：商品卡片 + 快捷选项 */
.sw-chat-cards{display:flex;flex-direction:column;gap:8px;margin:10px 0 6px}
.sw-chat-card{display:flex;gap:10px;background:#fff;border:1px solid #ECE9F1;border-radius:12px;padding:8px}
.sw-chat-card img{width:64px;height:64px;object-fit:cover;border-radius:8px;flex:0 0 auto;background:#F5F2FA}
.sw-chat-card-b{flex:1;min-width:0}
.sw-chat-card-n{font-weight:600;font-size:13px;color:#14121a;text-decoration:none;display:block;line-height:1.3}
.sw-chat-card-p{font-size:12.5px;color:#C2185B;font-weight:700;margin-top:3px}
.sw-chat-card-m{font-size:11.5px;color:#6E6879;margin-top:2px}
.sw-chat-card-a{display:flex;gap:8px;margin-top:7px}
.sw-chat-card-a a{font-size:12px;padding:4px 11px;border-radius:999px;text-decoration:none;line-height:1.5}
.sw-cc-view{border:1px solid #E4DFEC;color:#14121a}
.sw-cc-add{background:#FF4FA3;color:#fff}
.sw-chat-quick{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 4px}
.sw-chat-quick button{font-size:12px;padding:6px 12px;border-radius:999px;border:1px solid #FFC9E1;background:#FFF5FA;color:#C2185B;cursor:pointer;font-weight:600}
.sw-chat-quick button:hover{background:#FFE6F2}

/* 聊天面板：给消息区留空间 */
.sw-chat-id{margin:0 0 2px}
.sw-chat-id summary{font-size:12px;color:#7A7486;cursor:pointer;padding:2px 0;list-style:none}
.sw-chat-id summary::-webkit-details-marker{display:none}
.sw-chat-id[open] summary{color:#14121a;font-weight:600}
.sw-chat-id input{margin-top:6px}
.sw-chat-log{min-height:240px}
@media(max-width:921px){
  .sw-chat-panel{height:min(76vh,640px) !important;max-height:640px !important}
  .sw-chat-log{min-height:220px}
}
