/*
Theme Name: 逐岸 ACTIVE
Theme URI: https://www.wetsuitmall.com/
Author: 逐岸潜水服商城
Description: 逐岸潜水服商城官方主题。基于 WordPress 模板层级与 Gutenberg 区块，完整 WooCommerce 支持，移动端优先响应式。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: wetsuit-active
*/

/* ============================================================
   1. 设计令牌
   ============================================================ */
:root {
  --wsm-orange: #f47b4d;
  --wsm-orange-dark: #e5663a;
  --wsm-orange-light: #fff0e9;
  --wsm-ink: #1a1a1a;
  --wsm-gray: #666;
  --wsm-gray-light: #999;
  --wsm-line: #eae5dd;
  --wsm-cream: #faf7f2;
  --wsm-white: #fff;
  --wsm-radius: 4px;
  --wsm-radius-lg: 12px;
  --wsm-shadow: 0 2px 16px rgba(0,0,0,.05);
  --wsm-shadow-hover: 0 10px 28px rgba(0,0,0,.10);
  --wsm-font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --wsm-container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--wsm-font);
  color: var(--wsm-ink);
  background: var(--wsm-white);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--wsm-orange); }
h1,h2,h3,h4,h5,h6 { font-weight: 600; line-height: 1.3; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--wsm-orange); outline-offset: 2px; }

.wsm-container { width: 100%; max-width: var(--wsm-container); margin: 0 auto; padding: 0 20px; }
.wsm-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ============================================================
   2. 顶部条 + 头部
   ============================================================ */
.wsm-topbar { background: var(--wsm-orange); color: #fff; font-size: 11px; padding: 7px 0; text-align: center; letter-spacing: .5px; }

.wsm-site-header { background: #fff; border-bottom: 1px solid var(--wsm-line); position: sticky; top: 0; z-index: 100; }
.wsm-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 20px; }
.wsm-logo img { height: 34px; width: auto; }
.wsm-logo span { font-size: 19px; font-weight: 700; letter-spacing: 3px; }

.wsm-primary-nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.wsm-primary-nav a { font-size: 13px; font-weight: 600; color: var(--wsm-ink); position: relative; padding: 26px 0; display: inline-block; }
.wsm-primary-nav a:hover { color: var(--wsm-orange); }
.wsm-primary-nav li.current-menu-item > a,
.wsm-primary-nav li.current_page_item > a { color: var(--wsm-orange); }
.wsm-primary-nav li.menu-item-has-children > a::after { content: ''; display: inline-block; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-left: 6px; vertical-align: middle; }
.wsm-primary-nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 170px; background: #fff; box-shadow: var(--wsm-shadow-hover); border: 1px solid var(--wsm-line); border-radius: var(--wsm-radius); list-style: none; margin: 0; padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; }
.wsm-primary-nav li { position: relative; }
.wsm-primary-nav li.menu-item-has-children:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.wsm-primary-nav .sub-menu a { display: block; padding: 8px 18px; font-size: 13px; }
.wsm-primary-nav .sub-menu .sub-menu { left: 100%; top: 0; }

.wsm-header-actions { display: flex; align-items: center; gap: 14px; }
.wsm-icon-btn { background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; color: var(--wsm-ink); position: relative; }
.wsm-icon-btn:hover { color: var(--wsm-orange); }
.wsm-icon-btn svg { width: 18px; height: 18px; }
.wsm-cart-count { position: absolute; top: 0; right: -2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--wsm-orange); color: #fff; font-size: 10px; font-weight: 700; line-height: 17px; text-align: center; display: none; box-shadow: 0 0 0 2px #fff; }
.wsm-btn-cta { background: var(--wsm-orange); color: #fff; padding: 9px 20px; border-radius: 30px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.wsm-btn-cta:hover { background: var(--wsm-orange-dark); color: #fff; }
.wsm-menu-toggle { display: none; }

/* ============================================================
   3. 首页 Hero 轮播
   ============================================================ */
.wsm-hero { position: relative; height: min(76vh, 720px); min-height: 480px; overflow: hidden; background: #234; }
.wsm-hero-slides { position: absolute; inset: 0; }
.wsm-hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.wsm-hero-slide.active { opacity: 1; }
.wsm-hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.wsm-hero-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.45)); }
.wsm-hero-content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; z-index: 2; padding: 0 20px; }
.wsm-hero-content h1 { font-size: clamp(32px, 5vw, 68px); font-weight: 700; letter-spacing: 2px; margin: 0 0 18px; text-shadow: 0 2px 20px rgba(0,0,0,.3); }
.wsm-hero-content p { font-size: clamp(14px, 1.6vw, 20px); margin: 0 0 30px; letter-spacing: 1px; }
.wsm-hero-btn { display: inline-block; background: #fff; color: var(--wsm-ink); padding: 14px 38px; border-radius: 40px; font-size: 14px; font-weight: 600; transition: .2s; }
.wsm-hero-btn:hover { background: var(--wsm-orange); color: #fff; transform: translateY(-2px); }
.wsm-hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--wsm-ink); font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.wsm-hero-arrow:hover { background: #fff; }
.wsm-hero-prev { left: 24px; } .wsm-hero-next { right: 24px; }
.wsm-hero-dots { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.wsm-hero-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.5); border: 0; cursor: pointer; padding: 0; }
.wsm-hero-dot.active { background: #fff; width: 26px; border-radius: 5px; }

/* ============================================================
   4. 通用区块
   ============================================================ */
.wsm-section { padding: 72px 0; }
.wsm-section-cream { background: var(--wsm-cream); }
.wsm-section-head { text-align: center; margin-bottom: 44px; }
.wsm-section-head h2 { font-size: clamp(24px, 3vw, 36px); margin-bottom: 10px; }
.wsm-section-head p { color: var(--wsm-gray); font-size: 14px; margin: 0; }
.wsm-eyebrow { color: var(--wsm-orange); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; display: block; }

.wsm-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.wsm-feature { display: flex; align-items: center; gap: 14px; padding: 22px; background: #fff; border: 1px solid var(--wsm-line); border-radius: var(--wsm-radius); }
.wsm-feature-icon { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; background: var(--wsm-orange-light); color: var(--wsm-orange); display: flex; align-items: center; justify-content: center; }
.wsm-feature-icon svg { width: 20px; height: 20px; }
.wsm-feature h4 { font-size: 14px; margin: 0 0 2px; }
.wsm-feature p { font-size: 12px; color: var(--wsm-gray-light); margin: 0; }

/* 分类图文 */
.wsm-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.wsm-cat { position: relative; border-radius: var(--wsm-radius); overflow: hidden; aspect-ratio: 3/4; display: block; }
.wsm-cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.wsm-cat:hover img { transform: scale(1.06); }
.wsm-cat::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.65)); }
.wsm-cat-body { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; color: #fff; padding: 22px; }
.wsm-cat-body h3 { font-size: 20px; margin: 0 0 4px; }
.wsm-cat-body span { font-size: 12px; opacity: .85; }

/* 商品网格 */
.wsm-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.wsm-product-card { background: #fff; border: 1px solid var(--wsm-line); border-radius: var(--wsm-radius); overflow: hidden; display: flex; flex-direction: column; transition: .25s; }
.wsm-product-card:hover { transform: translateY(-5px); box-shadow: var(--wsm-shadow-hover); border-color: transparent; }
.wsm-product-card > a:first-child { display: block; aspect-ratio: 1; overflow: hidden; }
.wsm-product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.wsm-product-card:hover img { transform: scale(1.05); }
.wsm-product-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.wsm-product-title { font-size: 14px; font-weight: 600; margin: 0 0 8px; line-height: 1.4; }
.wsm-product-price { color: var(--wsm-orange); font-size: 18px; font-weight: 700; margin: 0 0 16px; }
.wsm-product-price del { color: var(--wsm-gray-light); font-size: 13px; font-weight: 400; margin-right: 6px; }
.wsm-product-card .button { margin-top: auto; }

/* 按钮 */
.wsm-btn { display: inline-block; background: var(--wsm-orange); color: #fff; border: 0; border-radius: 30px; padding: 11px 24px; font-size: 13px; font-weight: 600; cursor: pointer; transition: .2s; text-align: center; }
.wsm-btn:hover { background: var(--wsm-orange-dark); color: #fff; }
.wsm-btn-outline { background: transparent; color: var(--wsm-ink); border: 1px solid var(--wsm-line); }
.wsm-btn-outline:hover { border-color: var(--wsm-orange); color: var(--wsm-orange); background: transparent; }

/* 品牌条 */
.wsm-brands { display: flex; justify-content: center; align-items: center; gap: 50px; flex-wrap: wrap; padding: 10px 0; }
.wsm-brand { font-size: 22px; font-weight: 700; letter-spacing: 2px; color: #bbb; }

/* CTA 横幅 */
.wsm-cta { background: var(--wsm-ink); color: #fff; padding: 64px 0; text-align: center; }
.wsm-cta h2 { font-size: clamp(24px, 3vw, 36px); margin-bottom: 12px; }
.wsm-cta p { color: #bbb; margin-bottom: 26px; }

/* ============================================================
   5. 内页 / 文章 / 区块内容
   ============================================================ */
.wsm-page-hero { position: relative; height: 300px; overflow: hidden; background: #234; }
.wsm-page-hero img { width: 100%; height: 100%; object-fit: cover; }
.wsm-page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.55)); }
.wsm-page-hero-inner { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; color: #fff; }
.wsm-page-hero h1 { font-size: clamp(28px, 4vw, 44px); margin: 0 0 8px; }
.wsm-breadcrumb-list { font-size: 12px; opacity: .9; }
.wsm-breadcrumb-list a { color: #fff; }
.wsm-entry { max-width: 900px; margin: 0 auto; padding: 56px 20px 80px; }
.wsm-entry h2 { font-size: 26px; margin: 40px 0 16px; padding-left: 14px; border-left: 3px solid var(--wsm-orange); }
.wsm-entry h3 { font-size: 20px; margin: 30px 0 12px; }
.wsm-entry p, .wsm-entry li { font-size: 15px; color: #444; line-height: 1.9; }
.wsm-entry img { border-radius: var(--wsm-radius); margin: 20px 0; }
.wsm-entry blockquote { border-left: 3px solid var(--wsm-orange); background: var(--wsm-cream); padding: 18px 22px; margin: 20px 0; }

/* FAQ 折叠 */
.wsm-faq-item { border: 1px solid var(--wsm-line); border-radius: var(--wsm-radius); margin-bottom: 12px; background: #fff; }
.wsm-faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 18px 22px; font-size: 15px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.wsm-faq-q::after { content: '+'; font-size: 22px; color: var(--wsm-orange); font-weight: 400; }
.wsm-faq-item.open .wsm-faq-q::after { content: '−'; }
.wsm-faq-a { display: none; padding: 0 22px 20px; color: var(--wsm-gray); line-height: 1.8; }
.wsm-faq-item.open .wsm-faq-a { display: block; }

/* ============================================================
   6. WooCommerce
   ============================================================ */
.wsm-shop-wrap { padding: 56px 0 80px; }
.wsm-shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.wsm-shop-toolbar h1 { font-size: 32px; margin: 0; }
.woocommerce-result-count, .woocommerce-ordering { font-size: 13px; color: var(--wsm-gray); }
.woocommerce-ordering select { padding: 8px 12px; border: 1px solid var(--wsm-line); border-radius: var(--wsm-radius); background: #fff; }

/* 商品详情 */
.wsm-pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 40px; background: #fff; border: 1px solid var(--wsm-line); border-radius: var(--wsm-radius); }
.wsm-pdp-gallery-main { aspect-ratio: 1; overflow: hidden; border-radius: var(--wsm-radius); background: var(--wsm-cream); }
.wsm-pdp-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.wsm-pdp-thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.wsm-pdp-thumbs img { width: 74px; height: 74px; object-fit: cover; border: 2px solid transparent; border-radius: var(--wsm-radius); cursor: pointer; }
.wsm-pdp-thumbs img.active { border-color: var(--wsm-orange); }
.wsm-pdp-title { font-size: 28px; margin: 0 0 10px; }
.wsm-pdp-subtitle { color: var(--wsm-gray-light); font-size: 13px; margin: 0 0 18px; }
.wsm-pdp-pricebox { display: flex; align-items: baseline; gap: 12px; background: linear-gradient(90deg, var(--wsm-orange-light), transparent); padding: 14px 16px; border-radius: var(--wsm-radius); margin-bottom: 16px; flex-wrap: wrap; }
.wsm-pdp-price { font-size: 34px; font-weight: 700; color: var(--wsm-orange); }
.wsm-pdp-price del { font-size: 14px; color: #bbb; font-weight: 400; }
.wsm-pdp-sales { margin-left: auto; font-size: 12px; color: var(--wsm-gray-light); }
.wsm-pdp-promos { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 12px; color: var(--wsm-gray); margin-bottom: 22px; }
.wsm-promo-tag { background: var(--wsm-orange-light); color: var(--wsm-orange); border: 1px solid #ffd9c7; padding: 3px 9px; border-radius: var(--wsm-radius); font-size: 11px; }
.wsm-pdp-attr { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.wsm-attr-label { flex: 0 0 44px; font-size: 13px; color: var(--wsm-gray); padding-top: 8px; }
.wsm-attr-vals { display: flex; flex-wrap: wrap; gap: 10px; }
.wsm-attr-val { display: inline-block; padding: 7px 16px; border: 1px solid #ddd; border-radius: var(--wsm-radius); font-size: 13px; color: #555; cursor: pointer; background: #fff; }
.wsm-attr-val.selected { border-color: var(--wsm-orange); color: var(--wsm-orange); background: var(--wsm-orange-light); font-weight: 600; }
.wsm-qty { display: inline-flex; align-items: center; border: 1px solid #ddd; border-radius: var(--wsm-radius); overflow: hidden; }
.wsm-qty button { border: 0; background: var(--wsm-cream); width: 34px; height: 36px; font-size: 16px; cursor: pointer; }
.wsm-qty input { border: 0; width: 54px; height: 36px; text-align: center; outline: none; -moz-appearance: textfield; }
.wsm-pdp-actions { display: flex; gap: 14px; margin-top: 26px; }
.wsm-pdp-actions button { flex: 1; padding: 15px 0 !important; border: 0; border-radius: var(--wsm-radius) !important; font-size: 15px !important; font-weight: 600 !important; cursor: pointer; }
.wsm-btn-buy { background: var(--wsm-ink) !important; color: #fff !important; }

/* WooCommerce 原生加购表单美化：原生数量 + 单个加购按钮 */
.wsm-pdp-info form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.wsm-pdp-info form.cart .quantity { display: inline-flex; align-items: center; border: 1px solid #ddd; border-radius: var(--wsm-radius); overflow: hidden; height: 46px; background: #fff; }
.wsm-pdp-info form.cart .quantity input.qty { width: 56px; height: 44px; border: 0; text-align: center; font-size: 14px; outline: none; -moz-appearance: textfield; padding: 0; }
.wsm-pdp-info form.cart .quantity input.qty::-webkit-outer-spin-button,
.wsm-pdp-info form.cart .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.wsm-pdp-info form.cart button.single_add_to_cart_button {
  flex: 1; min-width: 200px; height: 46px; padding: 0 28px !important;
  background: var(--wsm-orange) !important; color: #fff !important;
  border: 0 !important; border-radius: var(--wsm-radius) !important;
  font-size: 15px !important; font-weight: 600 !important; cursor: pointer;
}
.wsm-pdp-info form.cart button.single_add_to_cart_button:hover { background: var(--wsm-orange-dark) !important; }

.wsm-pdp-tabs { background: #fff; margin-top: 28px; border: 1px solid var(--wsm-line); border-radius: var(--wsm-radius); overflow: hidden; }
.wsm-tabs-nav { display: flex; border-bottom: 2px solid var(--wsm-line); overflow-x: auto; }
.wsm-tabs-nav span { padding: 18px 30px; font-size: 14px; font-weight: 600; color: var(--wsm-gray); cursor: pointer; white-space: nowrap; position: relative; }
.wsm-tabs-nav span.active { color: var(--wsm-orange); }
.wsm-tabs-nav span.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--wsm-orange); }
.wsm-tab-panel { display: none; padding: 32px 40px; }
.wsm-tab-panel.active { display: block; }
.wsm-param-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.wsm-param-table th, .wsm-param-table td { border: 1px solid var(--wsm-line); padding: 13px 18px; text-align: left; }
.wsm-param-table th { background: var(--wsm-cream); width: 24%; font-weight: 600; }

/* 购物车 / 结算 */
.wsm-cart-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--wsm-radius); overflow: hidden; }
.wsm-cart-table th, .wsm-cart-table td { padding: 16px; border-bottom: 1px solid var(--wsm-line); text-align: left; font-size: 14px; }
.wsm-cart-table th { background: var(--wsm-cream); font-weight: 600; }
.wsm-cart-table img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--wsm-radius); }
.woocommerce form .form-row input, .woocommerce form .form-row textarea, .woocommerce form .form-row select { border: 1px solid var(--wsm-line); border-radius: var(--wsm-radius); padding: 10px 12px; }
.woocommerce form .form-row label { font-size: 13px; }
.woocommerce .button { background: var(--wsm-orange) !important; color: #fff !important; border: 0 !important; border-radius: 30px !important; padding: 11px 24px !important; font-weight: 600 !important; }
.woocommerce .button:hover { background: var(--wsm-orange-dark) !important; }
.woocommerce-info, .woocommerce-message, .woocommerce-error { border-radius: var(--wsm-radius); padding: 14px 18px; font-size: 14px; }

/* ============================================================
   7. 页脚
   ============================================================ */
.wsm-site-footer { background: var(--wsm-cream); border-top: 1px solid var(--wsm-line); padding: 56px 0 0; }
.wsm-footer-widgets { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.wsm-footer-widget h3 { font-size: 15px; margin: 0 0 18px; padding-bottom: 10px; border-bottom: 2px solid var(--wsm-orange); display: inline-block; }
.wsm-footer-widget p, .wsm-footer-widget li { font-size: 13px; color: var(--wsm-gray); line-height: 1.9; }
.wsm-footer-widget ul { list-style: none; padding: 0; margin: 0; }
.wsm-footer-widget a { color: var(--wsm-gray); }
.wsm-footer-widget a:hover { color: var(--wsm-orange); }
.wsm-footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.wsm-footer-bottom { border-top: 1px solid var(--wsm-line); padding: 18px 0; text-align: center; font-size: 12px; color: var(--wsm-gray-light); display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }

/* 加购提示 */
.wsm-toast { position: fixed; right: 26px; bottom: 26px; z-index: 9999; display: flex; align-items: center; gap: 16px; min-width: 220px; padding: 14px 20px; border-radius: var(--wsm-radius); background: rgba(26,26,26,.94); color: #fff; font-size: 14px; box-shadow: var(--wsm-shadow-hover); opacity: 0; transform: translateY(16px); transition: .25s; }
.wsm-toast.show { opacity: 1; transform: translateY(0); }
.wsm-toast a { color: #ff9e77; font-weight: 600; }

/* ============================================================
   8. 响应式
   ============================================================ */
@media (max-width: 1100px) {
  .wsm-primary-nav ul { gap: 18px; }
  .wsm-primary-nav a { font-size: 12px; }
  .wsm-products, .wsm-cats { grid-template-columns: repeat(3, 1fr); }
  .wsm-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .wsm-menu-toggle { display: inline-flex; }
  .wsm-primary-nav { position: fixed; top: 0; right: -100%; width: min(84vw, 340px); height: 100vh; background: #fff; box-shadow: -8px 0 30px rgba(0,0,0,.15); transition: right .3s; padding: 80px 24px 24px; z-index: 200; overflow-y: auto; }
  .wsm-primary-nav.open { right: 0; }
  .wsm-primary-nav ul { flex-direction: column; gap: 0; }
  .wsm-primary-nav a { display: block; padding: 14px 0; font-size: 15px; border-bottom: 1px solid var(--wsm-line); }
  .wsm-primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding-left: 16px; }
  .wsm-nav-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 150; }
  .wsm-nav-backdrop.show { display: block; }
  .wsm-pdp { grid-template-columns: 1fr; gap: 28px; padding: 20px; }
  .wsm-footer-widgets { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .wsm-products, .wsm-cats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .wsm-container { padding: 0 16px; }
  .wsm-header-inner { min-height: 62px; }
  .wsm-logo img { height: 28px; }
  .wsm-btn-cta { display: none; }
  .wsm-header-actions { gap: 6px; }
  .wsm-section { padding: 48px 0; }
  .wsm-hero { height: 68vh; min-height: 440px; }
  .wsm-hero-arrow { width: 38px; height: 38px; }
  .wsm-hero-prev { left: 10px; } .wsm-hero-next { right: 10px; }
  .wsm-products, .wsm-cats, .wsm-features { grid-template-columns: 1fr; }
  .wsm-cat { aspect-ratio: 16/9; }
  .wsm-shop-toolbar h1 { font-size: 26px; }
  .wsm-pdp-title { font-size: 23px; }
  .wsm-pdp-price { font-size: 28px; }
  .wsm-pdp-info form.cart button.single_add_to_cart_button { min-width: 0; width: 100%; }
  .wsm-pdp-sales { margin-left: 0; width: 100%; }
  .wsm-pdp-actions { flex-direction: column; }
  .wsm-tab-panel { padding: 20px; }
  .wsm-tabs-nav span { padding: 14px 18px; font-size: 13px; }
  .wsm-param-table th { width: 36%; }
  .wsm-cart-table th, .wsm-cart-table td { padding: 10px; font-size: 12px; }
  .wsm-footer-widgets { grid-template-columns: 1fr; }
  .wsm-entry { padding: 36px 16px 60px; }
  .wsm-toast { right: 12px; bottom: 12px; left: 12px; min-width: 0; }
  .woocommerce-cart-form .shop_table thead { display: none; }
  .woocommerce-cart-form .shop_table tr { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--wsm-line); padding: 12px 0; }
  .woocommerce-cart-form .shop_table td { border: 0; }
}

/* WooCommerce 原生商品循环网格（商城/分类页） */
.wsm-shop-wrap ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.wsm-shop-wrap ul.products::before,
.wsm-shop-wrap ul.products::after { display: none; }
.wsm-shop-wrap ul.products li.product { margin: 0 !important; padding: 0; width: auto !important; float: none !important; background: #fff; border: 1px solid var(--wsm-line); border-radius: var(--wsm-radius); overflow: hidden; display: flex; flex-direction: column; }
.wsm-shop-wrap ul.products li.product a { display: block; }
.wsm-shop-wrap ul.products li.product img { width: 100% !important; height: auto; display: block; }
.wsm-shop-wrap ul.products li.product .woocommerce-loop-product__title { font-size: 15px; padding: 0 18px 6px; color: var(--wsm-ink); font-weight: 600; }
.wsm-shop-wrap ul.products li.product .price { padding: 0 18px; color: var(--wsm-orange); font-weight: 700; font-size: 15px; }
.wsm-shop-wrap ul.products li.product .button { margin: 0 18px 18px; text-align: center; background: var(--wsm-orange) !important; color: #fff !important; border-radius: var(--wsm-radius) !important; }
.wsm-shop-wrap .woocommerce-result-count { color: var(--wsm-gray); font-size: 13px; }
.wsm-shop-wrap .woocommerce-ordering select { border: 1px solid var(--wsm-line); border-radius: var(--wsm-radius); padding: 8px 12px; }

/* ============ 新增首页模块（对齐参考站） ============ */
.wsm-split-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.wsm-split-cat { position: relative; display: block; border-radius: var(--wsm-radius); overflow: hidden; aspect-ratio: 4/5; }
.wsm-split-cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.wsm-split-cat:hover img { transform: scale(1.06); }
.wsm-split-cat::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.6)); }
.wsm-split-cat-body { position: absolute; left: 24px; bottom: 24px; z-index: 2; color: #fff; }
.wsm-split-cat-body h3 { font-size: 24px; margin: 0 0 6px; color: #fff; }
.wsm-split-cat-body span { font-size: 13px; opacity: .9; }
.wsm-split-cat-btn { position: absolute; right: 20px; bottom: 24px; z-index: 2; background: var(--wsm-orange); color: #fff; font-size: 13px; font-weight: 600; padding: 10px 18px; border-radius: 999px; transition: .2s; }
.wsm-split-cat:hover .wsm-split-cat-btn { transform: translateY(-2px); }

.wsm-mini-cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.wsm-mini-cat { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.wsm-mini-cat-img { display: block; width: 100%; border-radius: 50%; overflow: hidden; aspect-ratio: 1/1; border: 3px solid transparent; transition: .2s; background: var(--wsm-cream); }
.wsm-mini-cat:hover .wsm-mini-cat-img { border-color: var(--wsm-orange); }
.wsm-mini-cat-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wsm-mini-cat-name { font-size: 13px; color: var(--wsm-ink); font-weight: 600; }

.wsm-banner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; background: var(--wsm-cream); border-radius: var(--wsm-radius); padding: 48px; }
.wsm-banner-text h2 { font-size: 30px; margin: 10px 0 16px; }
.wsm-banner-text p { color: var(--wsm-gray); line-height: 1.9; margin: 0 0 24px; }
.wsm-banner-img img { width: 100%; border-radius: var(--wsm-radius); display: block; }
.wsm-btn-dark { background: var(--wsm-ink) !important; color: #fff !important; }
.wsm-btn-dark:hover { background: #3a3a3a !important; color: #fff !important; }
.wsm-btn-sm { padding: 9px 18px !important; font-size: 13px !important; }

.wsm-why { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.wsm-why-list { list-style: none; padding: 0; margin: 0 0 26px; }
.wsm-why-list li { padding: 12px 0; border-bottom: 1px solid var(--wsm-line); color: var(--wsm-gray); line-height: 1.8; font-size: 14px; }
.wsm-why-list li strong { color: var(--wsm-ink); margin-right: 6px; }
.wsm-why-img img { width: 100%; border-radius: var(--wsm-radius); display: block; }

.wsm-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.wsm-review { background: #fff; border: 1px solid var(--wsm-line); border-radius: var(--wsm-radius); padding: 28px; margin: 0; }
.wsm-stars { color: #f5a623; font-size: 16px; letter-spacing: 3px; margin-bottom: 14px; }
.wsm-review blockquote { margin: 0 0 16px; color: var(--wsm-gray); line-height: 1.9; font-size: 14px; }
.wsm-review figcaption { font-weight: 600; font-size: 14px; color: var(--wsm-ink); }

.wsm-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.wsm-post-card { background: #fff; border: 1px solid var(--wsm-line); border-radius: var(--wsm-radius); overflow: hidden; display: flex; flex-direction: column; }
.wsm-post-thumb { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--wsm-cream); }
.wsm-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; display: block; }
.wsm-post-card:hover .wsm-post-thumb img { transform: scale(1.05); }
.wsm-post-body { padding: 20px 22px 24px; }
.wsm-post-date { font-size: 12px; color: var(--wsm-orange); font-weight: 600; }
.wsm-post-body h3 { font-size: 17px; margin: 8px 0 10px; line-height: 1.5; }
.wsm-post-body h3 a { color: var(--wsm-ink); }
.wsm-post-body p { color: var(--wsm-gray); font-size: 13px; line-height: 1.8; margin: 0; }

/* 立即购买按钮（与原生加购按钮并排） */
.wsm-pdp-info form.cart button.wsm-btn-buy { flex: 1; min-width: 180px; height: 46px; padding: 0 28px !important; background: var(--wsm-ink) !important; color: #fff !important; border: 0 !important; border-radius: var(--wsm-radius) !important; font-size: 15px !important; font-weight: 600 !important; cursor: pointer; }
.wsm-pdp-info form.cart button.wsm-btn-buy:hover { background: #3a3a3a !important; }

/* WooCommerce 原生提示条 */
.wsm-container > .woocommerce-message,
.wsm-container > .woocommerce-info,
.wsm-container > .woocommerce-error { border-radius: var(--wsm-radius); padding: 14px 18px; margin: 0 0 20px; background: #fff8f3; border-top-color: var(--wsm-orange); list-style: none; }
.wsm-container > .woocommerce-message::before { color: var(--wsm-orange); }

/* 新模块移动端适配 */
@media (max-width: 992px) {
  .wsm-mini-cats { grid-template-columns: repeat(3, 1fr); }
  .wsm-banner, .wsm-why { grid-template-columns: 1fr; padding: 0; }
  .wsm-banner { padding: 28px; }
  .wsm-reviews, .wsm-posts { grid-template-columns: 1fr; }
  .wsm-split-cats { grid-template-columns: 1fr; }
  .wsm-split-cat { aspect-ratio: 16/9; }
  .wsm-shop-wrap ul.products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .wsm-shop-wrap ul.products { grid-template-columns: 1fr; }
}
