/* ==========================================================================
   Apex Velocity — Single Product Page
   File: apex-product.css
   ========================================================================== */

/* ============================================
   Material Symbols 加载期防闪烁
   ============================================ */
.material-symbols-outlined {
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    vertical-align: middle;
    line-height: 1;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    letter-spacing: 0;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    display: inline-block;
    min-width: 1em;
    text-align: center;
}
.fonts-loading .material-symbols-outlined { visibility: hidden; }
.fonts-loaded .material-symbols-outlined { visibility: visible; }


/* ============================================
   Design Tokens（统一变量，唯一定义）
   ============================================ */
.apex-product-page {
    /* —— 颜色 —— */
    --surface: #0b0c0f;
    --surface-elevated: #16171c;
    --surface-elevated-2: #1c1e24;
    --surface-stroke: rgba(255,255,255,0.06);
    --surface-stroke-strong: rgba(255,255,255,0.12);

    --on-surface: #ffffff;
    --on-surface-variant: #d1d5db;
    --text-muted: #9ca3af;
    --text-tertiary: #6b7280;

    --primary: #ff7a00;
    --primary-hover: #ff8c1f;
    --primary-soft: rgba(255,122,0,0.1);
    --primary-stroke: rgba(255,122,0,0.4);
    --on-primary: #000000;

    /* —— 卡片背景渐变（暗黑统一） —— */
    --card-gradient: linear-gradient(180deg, #16171c 0%, #0f1014 100%);
    --card-shadow: 0 20px 40px rgba(0,0,0,0.5);
    --card-shadow-hover: 0 30px 60px rgba(0,0,0,0.6);

    /* —— 字体 —— */
    --font-display: 'Sora', sans-serif;
    --font-body: 'Roboto Flex', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* —— 字号 Scale —— */
    --fs-display-xl: clamp(42px, 6.5vw, 72px);  /* Section Title */
    --fs-display-lg: clamp(36px, 5vw, 56px);    /* Hero Title */
    --fs-numeric-xl: clamp(48px, 6vw, 72px);    /* Hero Price */
    --fs-numeric-lg: clamp(36px, 4vw, 48px);    /* Spec Value */

    /* —— 布局 —— */
    --container-max: 1280px;
    --margin-desktop: 64px;
    --margin-mobile: 20px;
    --gutter: 24px;
}

/* ============================================
   全局重置（仅产品页作用域）
   ============================================ */
.apex-product-page {
    background: var(--surface);
    color: var(--on-surface);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.apex-product-page * { box-sizing: border-box; }
.apex-product-page img { max-width: 100%; height: auto; display: block; }
.apex-product-page a { color: inherit; text-decoration: none; transition: color .2s; }
.apex-product-page a:hover { color: var(--primary); }
.apex-product-page button { font-family: inherit; cursor: pointer; }

/* 隐藏 Flatsome 默认产品页元素 */
.apex-product-page .product-page-title,
.apex-product-page .product-info-inner > .product-short-description,
.apex-product-page .woocommerce-tabs,
.apex-product-page .related.products,
.apex-product-page .up-sells {
    display: none !important;
}

.apex-product-page section { padding: clamp(72px, 9vw, 110px) 0; }
.apex-product-page section:first-of-type { padding-top: 0; }

.apex-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--margin-desktop);
}

/* ============================================
   Section 公共标题
   ============================================ */
.apex-section-title {
    font-family: var(--font-display);
    font-size: var(--fs-display-xl);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--on-surface);
    margin: 0 0 56px;
    text-align: center;
}
.apex-section-subtitle {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: -36px auto 56px;
    text-align: center;
    max-width: 560px;
}

/* ============================================
   面包屑
   ============================================ */
.apex-breadcrumb {
    padding: 24px 0;
    border-bottom: 1px solid var(--surface-stroke);
}
.apex-breadcrumb__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.apex-breadcrumb__list a:hover { color: var(--primary); }
.apex-breadcrumb__sep { color: var(--text-tertiary); margin: 0 4px; }


/* ==========================================================================
   1. HERO 购买区
   ========================================================================== */
.apex-hero-product { padding: 64px 0 80px; }

.apex-hero-product__grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: start;
}

/* —— 图集 —— */
.apex-gallery { position: relative; }
.apex-gallery__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
    background: var(--primary);
    color: var(--on-primary);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(255,122,0,0.35);
}
.apex-gallery__main {
    background: var(--surface-elevated);
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.apex-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .5s;
}
.apex-gallery__main:hover img { transform: scale(1.04); }

/* 缩略图：横向滚动 */
.apex-gallery__thumbs {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
}
.apex-gallery__thumbs::-webkit-scrollbar { display: none; }
.apex-gallery__thumb {
    flex: 0 0 calc((100% - 48px) / 5);
    background: var(--surface-elevated);
    border: 2px solid var(--surface-stroke);
    border-radius: 10px;
    aspect-ratio: 1 / 1;
    padding: 0;
    overflow: hidden;
    transition: border-color .2s;
    scroll-snap-align: start;
}
.apex-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.apex-gallery__thumb.is-active { border-color: var(--primary); }
.apex-gallery__thumb:hover { border-color: var(--primary-stroke); }
.apex-gallery__thumb--video {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}
.apex-gallery__thumb--video .material-symbols-outlined { font-size: 32px; }

/* —— 信息侧 —— */
.apex-hero-product__info {
    position: sticky;
    top: 120px;
    padding: 8px 0 0;
}

.apex-hero-product__eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-soft);
    border: 1px solid var(--primary-stroke);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.apex-hero-product__title {
    font-family: var(--font-display);
    font-size: var(--fs-display-lg);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--on-surface);
    margin: 0 0 12px;
}
.apex-hero-product__subtitle {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 0 24px;
}

/* 评分 */
.apex-hero-product__rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.apex-hero-product__rating .star-rating {
    font-size: 16px;
    color: var(--primary);
}
.apex-hero-product__review-count {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: underline;
}
.apex-hero-product__review-count:hover { color: var(--primary); }

/* 价格 */
.apex-hero-product__price {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin: 0 0 28px;
    flex-wrap: wrap;
}
.apex-price-sale,
.apex-price-sale .woocommerce-Price-amount,
.apex-price-sale bdi {
    font-family: var(--font-mono);
    font-size: var(--fs-numeric-xl);
    font-weight: 700;
    line-height: 1;
    color: var(--primary);
}
.apex-price-regular,
.apex-price-regular .woocommerce-Price-amount,
.apex-price-regular bdi {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 500;
    color: var(--text-tertiary);
    text-decoration: line-through;
}
.apex-price-save {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--on-primary);
    background: var(--primary);
    padding: 4px 10px;
    border-radius: 6px;
}

/* 倒计时 */
.apex-countdown {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface-elevated);
    border: 1px solid var(--surface-stroke);
    border-left: 4px solid var(--primary);
    padding: 14px 18px;
    margin-bottom: 24px;
    border-radius: 10px;
}
.apex-countdown .material-symbols-outlined { color: var(--primary); }
.apex-countdown__label {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--on-surface);
    flex: 1;
}
.apex-countdown__digits {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.05em;
}

/* 加购表单 */
.apex-hero-product__form { margin-bottom: 24px; }
.apex-hero-product__form .variations { width: 100%; margin-bottom: 16px; }
.apex-hero-product__form .variations td { padding: 0 0 16px; display: block; }
.apex-hero-product__form .variations label {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.apex-hero-product__form select {
    width: 100%;
    padding: 14px 16px;
    background: var(--surface-elevated-2);
    border: 1px solid var(--surface-stroke-strong);
    color: var(--on-surface);
    font-family: var(--font-body);
    font-size: 15px;
    border-radius: 8px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239ca3af' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}
.apex-hero-product__form .quantity {
    display: inline-flex;
    margin-right: 12px;
    border: 1px solid var(--surface-stroke-strong);
    border-radius: 8px;
    overflow: hidden;
}
.apex-hero-product__form .quantity input {
    width: 70px;
    height: 56px;
    background: var(--surface-elevated-2);
    border: none;
    color: var(--on-surface);
    text-align: center;
    font-family: var(--font-mono);
    font-size: 16px;
}
.apex-hero-product__form .single_add_to_cart_button {
    background: var(--primary);
    color: var(--on-primary);
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0 32px;
    height: 56px;
    border-radius: 10px;
    border: none;
    transition: all .25s ease;
    width: calc(100% - 95px);
}
.apex-hero-product__form .single_add_to_cart_button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* 赠品 */
.apex-hero-gift {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--surface-elevated);
    border: 1px solid var(--surface-stroke);
    padding: 16px;
    margin-bottom: 24px;
    border-radius: 10px;
}
.apex-hero-gift .material-symbols-outlined {
    color: var(--primary);
    font-size: 32px;
    flex-shrink: 0;
}
.apex-hero-gift__text h3 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--on-surface);
    margin: 0 0 4px;
}
.apex-hero-gift__text p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* 服务承诺 */
.apex-hero-product__perks {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.apex-hero-product__perks li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.apex-hero-product__perks .material-symbols-outlined {
    color: var(--primary);
    font-size: 18px;
}


/* ==========================================================================
   2. TRUST BADGES
   ========================================================================== */
.apex-trust__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gutter);
}
.apex-trust__card {
    background: var(--card-gradient);
    border: 1px solid var(--surface-stroke);
    padding: 40px 32px;
    text-align: center;
    border-radius: 16px;
    transition: border-color .3s, transform .3s;
}
.apex-trust__card:hover {
    border-color: var(--primary-stroke);
    transform: translateY(-4px);
}
.apex-trust__icon {
    color: var(--primary);
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}
.apex-trust__title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--on-surface);
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.apex-trust__desc {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}


/* ==========================================================================
   3. CORE PERFORMANCE
   ========================================================================== */
.apex-core-specs__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: var(--gutter);
    align-items: stretch;
}
.apex-spec-card {
    background: var(--card-gradient);
    border: 1px solid var(--surface-stroke);
    border-radius: 16px;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--card-shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.apex-spec-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-stroke);
    box-shadow: var(--card-shadow-hover);
}
.apex-spec-card__label {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.apex-spec-card__value {
    display: block;
    font-family: var(--font-mono);
    font-size: var(--fs-numeric-lg);
    font-weight: 800;
    line-height: 1;
    color: var(--on-surface);
    margin-bottom: 12px;
}
.apex-spec-card__sub {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    padding-top: 12px;
    border-top: 1px solid var(--surface-stroke);
    margin-top: auto;
}


/* ==========================================================================
   4. PRECISION ENGINEERING
   ========================================================================== */
.apex-engineering__layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 40px;
    align-items: stretch;
}
.apex-engineering__tabs {
    display: flex;
    flex-direction: column;
    background: var(--surface-elevated);
    border: 1px solid var(--surface-stroke);
    border-radius: 16px;
    padding: 16px 0;
}
.apex-engineering__tab {
    display: block;
    width: 100%;
    text-align: left;
    padding: 22px 28px;
    background: transparent;
    border: none;
    border-left: 4px solid transparent;
    transition: all .25s ease;
}
.apex-engineering__tab:hover { background: var(--surface-elevated-2); }
.apex-engineering__tab.is-active {
    background: var(--surface-elevated-2);
    border-left-color: var(--primary);
}
.apex-engineering__tab h3 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--on-surface);
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.apex-engineering__tab p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.apex-engineering__panels {
    background: var(--surface-elevated);
    border: 1px solid var(--surface-stroke);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow-hover);
}
.apex-engineering__panel { display: none; }
.apex-engineering__panel.is-active { display: block; }
.apex-engineering__image {
    background: var(--surface);
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.apex-engineering__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.apex-engineering__content { padding: 40px; }
.apex-engineering__metric {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 12px;
}
.apex-engineering__title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    color: var(--on-surface);
    margin: 0 0 16px;
}
.apex-engineering__desc {
    font-size: 16px;
    line-height: 1.7;
    color: var(--on-surface-variant);
}
.apex-engineering__desc p { margin: 0 0 12px; }
.apex-engineering__desc p:last-child { margin: 0; }


/* ==========================================================================
   5. BUILT FOR REALITY
   ========================================================================== */
.apex-reality__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gutter);
}
.apex-reality__card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface-elevated);
    box-shadow: var(--card-shadow);
    aspect-ratio: 4 / 5;
    transition: transform .35s ease, box-shadow .35s ease;
}
.apex-reality__card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
}
.apex-reality__image {
    position: absolute;
    inset: 0;
}
.apex-reality__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.apex-reality__card:hover .apex-reality__image img { transform: scale(1.06); }
.apex-reality__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 32px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
}
.apex-reality__num {
    display: block;
    font-family: var(--font-mono);
    font-size: 40px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}
.apex-reality__title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--on-surface);
    margin: 0 0 8px;
}
.apex-reality__desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--on-surface-variant);
    margin: 0;
}


/* ==========================================================================
   6. TECHNICAL SPECS
   ========================================================================== */
.apex-tech__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gutter);
}
.apex-tech__card {
    background: var(--card-gradient);
    border: 1px solid var(--surface-stroke);
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: var(--card-shadow);
}
.apex-tech__group-title {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--surface-stroke);
}
.apex-tech__list { list-style: none; margin: 0; padding: 0; }
.apex-tech__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--surface-stroke);
}
.apex-tech__row:last-child { border-bottom: none; }
.apex-tech__label {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.apex-tech__value {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 600;
    color: var(--on-surface);
}


/* ==========================================================================
   7. GEOMETRY & SIZING
   ========================================================================== */
.apex-geometry__layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}
.apex-geometry__image {
    background: var(--surface-elevated);
    border: 1px solid var(--surface-stroke);
    border-radius: 16px;
    padding: 48px;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.apex-geometry__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.apex-geometry__list { list-style: none; margin: 0; padding: 0; }
.apex-geometry__row {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--surface-stroke);
}
.apex-geometry__row:last-child { border-bottom: none; }
.apex-geometry__letter {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: var(--on-primary);
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.apex-geometry__label {
    font-size: 14px;
    color: var(--text-muted);
}
.apex-geometry__value {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 600;
    color: var(--on-surface);
}


/* ==========================================================================
   8. WHAT'S INCLUDED
   ========================================================================== */
.apex-box__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.apex-box__card,
.apex-box__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
    min-height: 140px;
    background: var(--card-gradient);
    border: 1px solid var(--surface-stroke);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
    overflow: hidden;
}
.apex-box__card::before,
.apex-box__item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity .3s ease;
}
.apex-box__card:hover,
.apex-box__item:hover {
    transform: translateY(-4px);
    border-color: var(--primary-stroke);
    box-shadow: var(--card-shadow-hover);
}
.apex-box__card:hover::before,
.apex-box__item:hover::before { opacity: 1; }
.apex-box__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-soft);
    border: 1px solid var(--primary-stroke);
    color: var(--primary);
    font-size: 28px;
    transition: transform .3s ease, background .3s ease;
}
.apex-box__card:hover .apex-box__icon,
.apex-box__item:hover .apex-box__icon {
    transform: scale(1.05);
    background: rgba(255,122,0,0.18);
}
.apex-box__name {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--on-surface);
}


/* ==========================================================================
   9. FREQUENTLY ASKED
   ========================================================================== */
.apex-faq-product__tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 40px;
    padding: 8px;
    background: var(--card-gradient);
    border: 1px solid var(--surface-stroke);
    border-radius: 999px;
    max-width: fit-content;
}
.apex-faq-product__tab {
    appearance: none;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: color .25s ease, background .25s ease;
}
.apex-faq-product__tab:hover {
    color: var(--on-surface);
    background: rgba(255,255,255,0.04);
}
.apex-faq-product__tab.is-active {
    color: var(--on-surface);
    background: var(--primary);
    box-shadow: 0 4px 14px rgba(255,122,0,0.35);
}

.apex-faq-product__list {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.apex-faq-product__item {
    background: var(--card-gradient);
    border: 1px solid var(--surface-stroke);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color .3s, box-shadow .3s;
}
.apex-faq-product__item:hover { border-color: var(--surface-stroke-strong); }
.apex-faq-product__item[open] {
    border-color: var(--primary-stroke);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.apex-faq-product__item.is-hidden { display: none; }
.apex-faq-product__q {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--on-surface);
    user-select: none;
}
.apex-faq-product__q::-webkit-details-marker,
.apex-faq-product__q::marker { display: none; }
.apex-faq-product__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--surface-stroke-strong);
    color: var(--text-muted);
    font-size: 20px;
    transition: transform .35s ease, background .3s, border-color .3s, color .3s;
}
.apex-faq-product__item[open] .apex-faq-product__icon {
    transform: rotate(180deg);
    background: var(--primary-soft);
    border-color: var(--primary-stroke);
    color: var(--primary);
}
.apex-faq-product__a {
    padding: 0 24px 24px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--on-surface-variant);
    animation: apexFaqSlide .35s ease;
}
.apex-faq-product__a p {
    margin: 18px 0 0;
    padding-left: 16px;
    border-left: 3px solid var(--primary-stroke);
}
.apex-faq-product__a p:first-child { margin-top: 18px; }
.apex-faq-product__a a {
    color: var(--primary);
    border-bottom: 1px solid var(--primary-stroke);
}
@keyframes apexFaqSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ==========================================================================
   10. OUR PROMISE
   ========================================================================== */
.apex-promise__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gutter);
    list-style: none;
    margin: 0;
    padding: 0;
}
.apex-promise__card,
.apex-promise__item {
    background: var(--card-gradient);
    border: 1px solid var(--surface-stroke);
    border-top: 4px solid var(--primary);
    border-radius: 16px;
    padding: 36px 24px;
    text-align: center;
    transition: transform .3s, border-color .3s;
}
.apex-promise__card:hover,
.apex-promise__item:hover {
    transform: translateY(-4px);
}
.apex-promise__icon {
    color: var(--primary);
    font-size: 56px;
    margin-bottom: 16px;
    display: block;
}
.apex-promise__title,
.apex-promise__item-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--on-surface);
    margin: 0 0 12px;
}
.apex-promise__desc,
.apex-promise__item-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}


/* ==========================================================================
   11. RIDER FEEDBACK
   ========================================================================== */
.apex-reviews__summary {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    padding: 48px;
    background: var(--card-gradient);
    border: 1px solid var(--surface-stroke);
    border-radius: 20px;
    box-shadow: var(--card-shadow-hover);
    margin-bottom: 48px;
    align-items: center;
}
.apex-reviews__big {
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    display: block;
    margin-bottom: 8px;
}
.apex-reviews__score .star-rating {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 8px;
}
.apex-reviews__score p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}
.apex-reviews__bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.apex-reviews__bar-row {
    display: grid;
    grid-template-columns: 50px 1fr 50px;
    gap: 16px;
    align-items: center;
}
.apex-reviews__bar-star {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
}
.apex-reviews__bar-track {
    background: var(--surface-elevated-2);
    height: 8px;
    border-radius: 6px;
    overflow: hidden;
}
.apex-reviews__bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-hover));
    border-radius: 6px;
    transition: width .5s;
}
.apex-reviews__bar-count {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    text-align: right;
}

/* WooCommerce 评论列表包装 */
.apex-reviews__list .commentlist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.apex-reviews__list .commentlist li {
    background: var(--surface-elevated);
    border: 1px solid var(--surface-stroke);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--card-shadow);
}
.apex-reviews__list .comment_container {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 16px;
}
.apex-reviews__list .avatar { border-radius: 50%; width: 64px; height: 64px; }
.apex-reviews__list .meta strong {
    font-family: var(--font-display);
    color: var(--on-surface);
    font-size: 16px;
}
.apex-reviews__list .meta time {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.apex-reviews__list .star-rating { color: var(--primary); margin: 8px 0; }
.apex-reviews__list .description {
    color: var(--on-surface-variant);
    line-height: 1.7;
}
#review_form_wrapper {
    margin-top: 48px;
    padding: 32px;
    background: var(--card-gradient);
    border: 1px solid var(--surface-stroke);
    border-radius: 16px;
}
#review_form .comment-reply-title {
    font-family: var(--font-display);
    color: var(--on-surface);
    font-size: 24px;
}
#review_form input[type=text],
#review_form input[type=email],
#review_form textarea {
    background: var(--surface);
    border: 1px solid var(--surface-stroke-strong);
    color: var(--on-surface);
    padding: 14px 16px;
    width: 100%;
    border-radius: 10px;
    font-family: var(--font-body);
}
#review_form .submit {
    background: var(--primary);
    color: var(--on-primary);
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 14px 32px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background .25s;
}
#review_form .submit:hover { background: var(--primary-hover); }


/* ==========================================================================
   12. COMPLETE THE SETUP（关联推荐）
   ========================================================================== */
.apex-related__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gutter);
}
.apex-related__card {
    background: var(--card-gradient);
    border: 1px solid var(--surface-stroke);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color .3s, transform .3s;
}
.apex-related__card:hover {
    border-color: var(--primary-stroke);
    transform: translateY(-4px);
}
.apex-related__image {
    display: block;
    background: var(--surface);
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.apex-related__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
}
.apex-related__body {
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.apex-related__title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--on-surface);
    margin: 0;
}
.apex-related__title a:hover { color: var(--primary); }
.apex-related__price,
.apex-related__price .woocommerce-Price-amount,
.apex-related__price bdi {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    color: var(--on-surface);
}
.apex-related__price del,
.apex-related__price del .woocommerce-Price-amount {
    color: var(--text-tertiary);
    margin-right: 8px;
    font-size: 14px;
}
.apex-related__price ins {
    background: transparent;
    color: var(--primary);
    text-decoration: none;
}
.apex-related__cta {
    background: transparent;
    border: 2px solid var(--surface-stroke-strong);
    color: var(--on-surface);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all .2s;
    text-align: center;
    display: inline-block;
}
.apex-related__cta:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}


/* ==========================================================================
   响应式 — Tablet（≤1024px）
   ========================================================================== */
@media (max-width: 1024px) {
    .apex-container { padding: 0 32px; }

    .apex-hero-product__grid { gap: 48px; }
    .apex-hero-product__info { position: static; }

    .apex-trust__grid,
    .apex-promise__grid { grid-template-columns: repeat(2, 1fr); }
    .apex-core-specs__grid { grid-template-columns: repeat(2, 1fr); }

    .apex-reality__grid,
    .apex-tech__grid { grid-template-columns: 1fr 1fr; }

    .apex-related__grid { grid-template-columns: repeat(2, 1fr); }
    .apex-box__grid { grid-template-columns: repeat(3, 1fr); }

    .apex-engineering__layout { grid-template-columns: 1fr; }
    .apex-engineering__tabs {
        flex-direction: row;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .apex-engineering__tabs::-webkit-scrollbar { display: none; }
    .apex-engineering__tab {
        flex: 0 0 auto;
        min-width: 200px;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    .apex-engineering__tab.is-active {
        border-left: none;
        border-bottom-color: var(--primary);
    }
}

/* ==========================================================================
   响应式 — Mobile（≤768px）— 接续上次
   ========================================================================== */
@media (max-width: 768px) {
    .apex-product-page section { padding: 64px 0; }
    .apex-container { padding: 0 var(--margin-mobile); }
    .apex-section-title { margin-bottom: 36px; }
    .apex-section-subtitle { margin: -24px auto 32px; font-size: 15px; }

    /* Hero 上下堆叠 */
    .apex-hero-product { padding: 32px 0 48px; }
    .apex-hero-product__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .apex-gallery__main { aspect-ratio: 3 / 2; }
    .apex-gallery__thumb { flex: 0 0 calc((100% - 36px) / 4); }

    .apex-hero-product__info { padding: 0; }
    .apex-hero-product__title { font-size: clamp(28px, 8vw, 36px); }
    .apex-hero-product__subtitle { font-size: 15px; }

    .apex-hero-product__price { gap: 10px; margin-bottom: 20px; }
    .apex-price-sale { font-size: clamp(36px, 10vw, 48px); }

    /* 加购按钮全宽 */
    .apex-hero-product__form .quantity {
        display: flex;
        width: 100%;
        margin: 0 0 12px;
    }
    .apex-hero-product__form .quantity input { flex: 0 0 80px; }
    .apex-hero-product__form .single_add_to_cart_button { width: 100%; }

    .apex-hero-product__perks { gap: 14px; }

    /* 信任徽章 2x2 */
    .apex-trust__grid { gap: 12px; }
    .apex-trust__card { padding: 28px 20px; }
    .apex-trust__icon { font-size: 40px; }
    .apex-trust__title { font-size: 15px; }
    .apex-trust__desc { font-size: 13px; }

    /* Core 2 列 */
    .apex-core-specs__grid { gap: 12px; }
    .apex-spec-card { padding: 28px 24px; min-height: 200px; }

    /* Reality 单列 */
    .apex-reality__grid { grid-template-columns: 1fr; }
    .apex-reality__card { aspect-ratio: 4 / 3; }
    .apex-reality__body { padding: 24px; }
    .apex-reality__num { font-size: 32px; }
    .apex-reality__title { font-size: 20px; }

    /* Tech 单列 */
    .apex-tech__grid { grid-template-columns: 1fr; }
    .apex-tech__card { padding: 28px 24px; }

    /* Engineering 紧凑 */
    .apex-engineering__tab { min-width: 160px; padding: 16px 20px; }
    .apex-engineering__tab h3 { font-size: 14px; }
    .apex-engineering__tab p { font-size: 12px; }
    .apex-engineering__content { padding: 28px 24px; }
    .apex-engineering__metric { font-size: 36px; }
    .apex-engineering__title { font-size: 22px; }
    .apex-engineering__desc { font-size: 14px; }

    /* Geometry 上下 */
    .apex-geometry__layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .apex-geometry__image {
        padding: 32px;
        aspect-ratio: 16 / 10;
    }

    /* Box 2 列 */
    .apex-box__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .apex-box__card,
    .apex-box__item { padding: 20px; min-height: 120px; gap: 14px; }
    .apex-box__icon { width: 44px; height: 44px; font-size: 24px; }

    /* FAQ 紧凑 + Tab 横滚 */
    .apex-faq-product__tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        max-width: 100%;
        scrollbar-width: none;
    }
    .apex-faq-product__tabs::-webkit-scrollbar { display: none; }
    .apex-faq-product__tab { padding: 8px 16px; font-size: 13px; }
    .apex-faq-product__q { padding: 18px 20px; font-size: 15px; }
    .apex-faq-product__a { padding: 0 20px 20px; font-size: 14px; }

    /* Promise 2x2 */
    .apex-promise__grid { gap: 12px; }
    .apex-promise__card,
    .apex-promise__item { padding: 28px 20px; }
    .apex-promise__icon { font-size: 44px; }
    .apex-promise__title,
    .apex-promise__item-title { font-size: 16px; }
    .apex-promise__desc,
    .apex-promise__item-desc { font-size: 13px; }

    /* Reviews 上下 */
    .apex-reviews__summary {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px 24px;
    }
    .apex-reviews__big { font-size: 56px; }

    /* Related 横向滑动 */
    .apex-related__grid {
        grid-template-columns: repeat(4, 78%);
        gap: 16px;
        overflow-x: auto;
        padding-bottom: 16px;
        scrollbar-width: none;
        scroll-snap-type: x mandatory;
    }
    .apex-related__grid::-webkit-scrollbar { display: none; }
    .apex-related__card { scroll-snap-align: start; }

    /* Countdown 紧凑 */
    .apex-countdown { padding: 12px 16px; gap: 8px; }
    .apex-countdown__label { font-size: 11px; }
    .apex-countdown__digits { font-size: 16px; }
}

/* ==========================================================================
   响应式 — Small Mobile（≤480px）
   ========================================================================== */
@media (max-width: 480px) {
    .apex-trust__grid,
    .apex-core-specs__grid,
    .apex-promise__grid,
    .apex-box__grid {
        grid-template-columns: 1fr;
    }
    .apex-tech__grid,
    .apex-reality__grid { grid-template-columns: 1fr; }

    .apex-engineering__tab { min-width: 140px; }

    /* Box 横向卡片化 */
    .apex-box__card,
    .apex-box__item {
        flex-direction: row;
        align-items: center;
        min-height: auto;
    }

    .apex-related__grid { grid-template-columns: repeat(4, 85%); }
}
/* ==========================================================================
   ✅ FIX-01: 全局暗黑底（关键 — 之前漏了这条）
   作用：让整个 Flatsome wrapper 变暗，避免左右两侧露白
   ========================================================================== */
body.single-product,
body.product-template-default,
body.single-product .page-wrapper,
body.product-template-default .page-wrapper,
body.single-product #wrapper,
body.product-template-default #wrapper,
body.single-product #main,
body.product-template-default #main {
    background: var(--surface) !important;
}

/* main 容器自身也要保证全宽暗底 */
.apex-product-page {
    width: 100%;
    background: var(--surface);
}


/* ==========================================================================
   ✅ FIX-02: Hero 主图卡片改为白底（对齐设计稿）
   产品图本身是透明 PNG，需要白色卡片背景才能显示出"产品摄影"质感
   ========================================================================== */
.apex-gallery__main {
    background: #ffffff;
    border-radius: 12px;
}
.apex-gallery__main img {
    object-fit: contain;
    padding: 32px;
}

/* PC 端比例 4:3，移动端 3:2 */
@media (min-width: 1024px) {
    .apex-gallery__main { aspect-ratio: 4 / 3; }
}
@media (max-width: 1023px) {
    .apex-gallery__main { aspect-ratio: 3 / 2; }
    .apex-gallery__main img { padding: 16px; }
}


/* ==========================================================================
   ✅ FIX-03: Hero 区右侧购买信息区强化（对齐截图右侧浮空问题）
   ========================================================================== */
@media (min-width: 1024px) {
    .apex-hero-product__grid {
        grid-template-columns: 1.1fr 1fr;
        gap: 64px;
        align-items: start;
    }
    .apex-hero-product__info {
        position: sticky;
        top: 120px;
        max-width: none;
        width: 100%;
    }
    /* Hero Title 在 PC 端更震撼 */
    .apex-hero-product__title {
        font-size: clamp(40px, 4.5vw, 56px);
        line-height: 1.05;
    }
}


/* ==========================================================================
   ✅ FIX-04: 缩略图卡片背景统一（避免和主图白底产生跳跃感）
   缩略图保持暗黑卡片，但内部图片白底
   ========================================================================== */
.apex-gallery__thumb {
    background: #ffffff;
}
.apex-gallery__thumb img {
    object-fit: contain;
    padding: 6px;
}


/* ==========================================================================
   ✅ FIX-05: Best Seller 徽章定位（贴主图卡片内左上角）
   ========================================================================== */
.apex-gallery { position: relative; }
.apex-gallery__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
}


/* ==========================================================================
   ✅ FIX-06: Core Performance 模块视觉对齐设计稿
   修复点：
   1. 数值改为橙色（核心视觉锚点）
   2. Section Title 左对齐 + 橙色装饰条
   3. 数值字号放大 + 不换行 + 字重加粗
   4. 卡片等高 + 留白加大
   5. 副文颜色提亮
   ========================================================================== */

/* —— Section Title：左对齐 + 橙色装饰条 —— */
.apex-core-specs .apex-section-title {
    text-align: left;
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin-left: 0;
    margin-bottom: 56px;
}

/* —— Grid 等高 + 间距收敛 —— */
.apex-core-specs__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 20px;
    align-items: stretch;
}

/* —— 卡片：放大留白，统一最小高度 —— */
.apex-core-specs__grid .apex-spec-card {
    background: var(--card-gradient);
    border: 1px solid var(--surface-stroke);
    border-radius: 16px;
    padding: 36px 36px 32px;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
    box-shadow: var(--card-shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.apex-core-specs__grid .apex-spec-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-stroke);
    box-shadow: var(--card-shadow-hover);
}

/* —— 1️⃣ 顶部小标签（PEAK POWER）：浅灰 mono —— */
.apex-core-specs__grid .apex-spec-card__label {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0;
}

/* —— 2️⃣ 主数值（1500W）：橙色巨大 —— */
.apex-core-specs__grid .apex-spec-card__value {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(44px, 5.5vw, 72px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--primary);
    margin: 0;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* 禁止 <br> 撑高 + 移除旧版分隔线 */
.apex-core-specs__grid .apex-spec-card__value br { display: none; }
.apex-core-specs__grid .apex-spec-card__value::after { display: none; content: none; }

/* —— 3️⃣ 底部副文（Brushless Hub Motor）：白色提亮 + 顶部分隔线 —— */
.apex-core-specs__grid .apex-spec-card__sub {
    display: block;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--on-surface);
    margin: auto 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--surface-stroke);
}


/* ==========================================================================
   响应式适配
   ========================================================================== */
@media (max-width: 1024px) {
    .apex-core-specs__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .apex-core-specs__grid .apex-spec-card {
        padding: 32px 28px 28px;
        min-height: 220px;
    }
    .apex-core-specs__grid .apex-spec-card__value {
        font-size: clamp(40px, 8vw, 60px);
    }
}

@media (max-width: 600px) {
    .apex-core-specs__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .apex-core-specs__grid .apex-spec-card {
        padding: 24px 20px 20px;
        min-height: 180px;
        gap: 16px;
    }
    .apex-core-specs .apex-section-title {
        padding-left: 16px;
        margin-bottom: 36px;
    }
    .apex-core-specs__grid .apex-spec-card__value {
        font-size: clamp(36px, 11vw, 52px);
    }
    .apex-core-specs__grid .apex-spec-card__sub {
        font-size: 13px;
        padding-top: 12px;
    }
}

@media (max-width: 380px) {
    .apex-core-specs__grid {
        grid-template-columns: 1fr;
    }
}
/* ==========================================================================
   ✅ FIX-07: Precision Engineering 模块视觉对齐（最终决议）
   - 左 Tab 卡片化（独立卡片 + hover 右移 + Active 橙色高亮）
   - 右 Panel 暗黑卡片（图片 + 大数值 + 标题 + 描述）
   - 数值 clamp(56px, 7vw, 88px) 橙色巨大
   - 响应式 ≤1024 横向滚动 Tab
   ========================================================================== */

/* —— Section Title（与 Core 风格一致：左对齐 + 装饰条） —— */
.apex-engineering .apex-section-title {
    text-align: left;
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin-left: 0;
    margin-bottom: 56px;
    font-family: var(--font-display);
    font-size: clamp(42px, 6.5vw, 72px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--on-surface);
}
/* 取消可能残留的 ::before 装饰条 */
.apex-engineering .apex-section-title::before { content: none; display: none; }

/* —— Section 容器 —— */
.apex-engineering {
    background: var(--surface);
    padding: clamp(72px, 9vw, 110px) 0;
}

/* —— 双栏 Layout：左 Tab 列表 + 右 Panel —— */
.apex-engineering__layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 48px;
    align-items: start;
    background: transparent;
    border: none;
    padding: 0;
}

/* ==========================================================================
   左侧 Tab 列表
   ========================================================================== */
.apex-engineering__tabs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: transparent;
    border: none;
    padding: 0;
}

/* —— 单个 Tab：独立卡片，圆角 + 左侧透明边框（Active 时变橙） —— */
.apex-engineering__tab {
    display: block;
    width: 100%;
    text-align: left;
    background: var(--card-gradient);
    border: 1px solid var(--surface-stroke);
    border-left: 3px solid transparent;
    border-radius: 12px;
    padding: 22px 24px;
    cursor: pointer;
    position: relative;
    transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.apex-engineering__tab:hover {
    border-color: var(--primary-stroke);
    transform: translateX(4px);
}

/* —— Active 高亮：橙色边框 + 橙色渐变背景 + 左侧橙色竖条 —— */
.apex-engineering__tab.is-active {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(255,122,0,0.08) 0%, rgba(255,122,0,0.02) 100%);
}
.apex-engineering__tab.is-active::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
}

/* —— Tab 内的 H3 标题 —— */
.apex-engineering__tab h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--on-surface);
    margin: 0 0 6px;
}

/* —— Tab 内的描述 —— */
.apex-engineering__tab p {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0;
}


/* ==========================================================================
   右侧 Panel 容器
   ========================================================================== */
.apex-engineering__panels {
    position: relative;
    min-height: 560px;
    background: transparent;
    border: none;
}

.apex-engineering__panel {
    display: none;
    background: var(--card-gradient);
    border: 1px solid var(--surface-stroke);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow-hover);
}
.apex-engineering__panel.is-active {
    display: block;
    animation: apexEngFadeIn .4s ease;
}
@keyframes apexEngFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* —— Panel 图片区 —— */
.apex-engineering__image {
    width: 100%;
    height: 380px;
    overflow: hidden;
    background: var(--surface);
    aspect-ratio: auto;
}
.apex-engineering__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.apex-engineering__panel.is-active:hover .apex-engineering__image img {
    transform: scale(1.04);
}

/* —— Panel 内容区 —— */
.apex-engineering__content {
    padding: 40px 48px 48px;
}

/* —— 巨大数值（1500W / 100MI / FULL） —— */
.apex-engineering__metric {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(56px, 7vw, 88px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--primary);
    margin: 0 0 12px;
}

/* —— Panel 标题（"Peak Power Motor"） —— */
.apex-engineering__title {
    font-family: var(--font-display);
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--on-surface);
    margin: 0 0 16px;
}

/* —— Panel 描述 —— */
.apex-engineering__desc {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-muted);
}
.apex-engineering__desc p { margin: 0 0 12px; }
.apex-engineering__desc p:last-child { margin: 0; }


/* ==========================================================================
   响应式：Tablet（≤1024px）改横向滚动 Tab
   ========================================================================== */
@media (max-width: 1024px) {
    .apex-engineering__layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .apex-engineering__tabs {
        flex-direction: row;
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 8px;
        gap: 10px;
    }
    .apex-engineering__tabs::-webkit-scrollbar { display: none; }

    .apex-engineering__tab {
        flex-shrink: 0;
        min-width: 240px;
        border-left: 1px solid var(--surface-stroke);
        border-bottom: 3px solid transparent;
    }
    .apex-engineering__tab:hover {
        transform: translateY(-2px);
    }
    .apex-engineering__tab.is-active {
        border-color: var(--primary);
        border-bottom-color: var(--primary);
    }
    .apex-engineering__tab.is-active::before {
        left: 50%;
        top: auto;
        bottom: -1px;
        transform: translateX(-50%);
        width: 60%;
        height: 3px;
        border-radius: 3px 3px 0 0;
    }

    .apex-engineering__panels { min-height: auto; }
    .apex-engineering__image { height: 320px; }
    .apex-engineering__content { padding: 32px 28px 36px; }
}

@media (max-width: 600px) {
    .apex-engineering .apex-section-title {
        padding-left: 16px;
        margin-bottom: 36px;
    }
    .apex-engineering__tab {
        min-width: 200px;
        padding: 18px 20px;
    }
    .apex-engineering__tab h3 { font-size: 15px; }
    .apex-engineering__tab p { font-size: 12px; }
    .apex-engineering__image { height: 240px; }
    .apex-engineering__content { padding: 28px 24px 32px; }
    .apex-engineering__metric { font-size: clamp(44px, 12vw, 64px); }
    .apex-engineering__title { font-size: 22px; }
    .apex-engineering__desc { font-size: 15px; }
}
/* ==========================================================================
   ✅ FIX-08: Built For Reality 模块视觉对齐（最终决议）
   - 2 列网格（不是 3 列），间距 24px
   - 上图下文结构（图片 280px + 暗黑卡片 body）
   - 数字角标右上角巨大半透明橙色水印（核心视觉锚点）
   - 暗黑渐变卡片 + Hover 橙色描边 + 大阴影
   ========================================================================== */

/* —— Section Title（与 Core / Engineering 统一） —— */
.apex-reality .apex-section-title {
    text-align: left;
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin-left: 0;
    margin-bottom: 56px;
    font-family: var(--font-display);
    font-size: clamp(42px, 6.5vw, 72px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--on-surface);
}
.apex-reality .apex-section-title::before { content: none; display: none; }

/* —— Section 容器 —— */
.apex-reality {
    background: var(--surface);
    padding: clamp(72px, 9vw, 110px) 0;
}

/* ==========================================================================
   2 列卡片网格
   ========================================================================== */
.apex-reality__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* ==========================================================================
   单张卡片（上图下文结构）
   ========================================================================== */
.apex-reality__card,
.apex-reality__item {
    position: relative;
    background: var(--card-gradient);
    border: 1px solid var(--surface-stroke);
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: auto;
    box-shadow: var(--card-shadow);
    transition: transform .35s ease, border-color .3s ease, box-shadow .3s ease;
}
.apex-reality__card:hover,
.apex-reality__item:hover {
    transform: translateY(-6px);
    border-color: var(--primary-stroke);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

/* —— 图片区：固定高度 280px —— */
.apex-reality__image {
    position: relative;
    inset: auto;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--surface);
    aspect-ratio: auto;
}
.apex-reality__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.apex-reality__card:hover .apex-reality__image img,
.apex-reality__item:hover .apex-reality__image img {
    transform: scale(1.05);
}

/* ==========================================================================
   内容区（必须 relative，作为 num 角标的定位锚点）
   ========================================================================== */
.apex-reality__body {
    position: relative;
    inset: auto;
    padding: 56px 40px 40px;
    background: transparent;
}

/* —— 🔥 核心视觉：右上角巨大半透明橙色数字水印 —— */
.apex-reality__num {
    position: absolute;
    top: 20px;
    right: 28px;
    display: block;
    font-family: var(--font-mono);
    font-size: clamp(56px, 7vw, 84px);
    font-weight: 800;
    line-height: 1;
    color: var(--primary);
    opacity: 0.18;
    letter-spacing: -0.04em;
    pointer-events: none;
    margin: 0;
    z-index: 1;
}

/* —— 卡片标题 —— */
.apex-reality__title {
    position: relative;
    z-index: 2;
    font-family: var(--font-display);
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--on-surface);
    margin: 0 0 16px;
}

/* —— 卡片描述 —— */
.apex-reality__desc {
    position: relative;
    z-index: 2;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0;
    max-width: 100%;
}


/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1024px) {
    .apex-reality__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .apex-reality__image { height: 240px; }
    .apex-reality__body { padding: 48px 32px 32px; }
    .apex-reality__num {
        font-size: clamp(48px, 9vw, 72px);
        top: 16px;
        right: 24px;
    }
}

@media (max-width: 768px) {
    .apex-reality__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .apex-reality__image { height: 220px; }
    .apex-reality__body { padding: 44px 28px 28px; }
    .apex-reality__num {
        font-size: 56px;
        top: 14px;
        right: 22px;
    }
    .apex-reality__title { font-size: 22px; }
    .apex-reality__desc { font-size: 14px; }
}

@media (max-width: 480px) {
    .apex-reality__image { height: 180px; }
    .apex-reality__body { padding: 36px 24px 24px; }
    .apex-reality .apex-section-title {
        padding-left: 16px;
        margin-bottom: 36px;
    }
}
/* ==========================================================================
   ✅ FIX-09: Technical Specs 模块视觉对齐（最终决议）
   - 2 列网格，间距 24px（桌面），单列响应式
   - 卡片渐变背景 + 圆角 20px + 阴影
   - 组标题 18px 橙色全大写
   - 行：左灰标签 + 右白数值（justify-content: space-between）
   ========================================================================== */

/* —— Section Title（与其他模块统一） —— */
.apex-tech .apex-section-title {
    text-align: left;
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin-left: 0;
    margin-bottom: 56px;
    font-family: var(--font-display);
    font-size: clamp(42px, 6.5vw, 72px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--on-surface);
}
.apex-tech .apex-section-title::before { content: none; display: none; }

/* —— Section 容器 —— */
.apex-tech {
    background: var(--surface);
    padding: clamp(72px, 9vw, 110px) 0;
}

/* ==========================================================================
   2 列卡片网格
   ========================================================================== */
.apex-tech__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* ==========================================================================
   单张卡片：渐变 + 圆角 + 阴影
   ========================================================================== */
.apex-tech__card {
    background: var(--card-gradient);
    border: 1px solid var(--surface-stroke);
    border-radius: 20px;
    padding: 40px 44px;
    box-shadow: var(--card-shadow);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.apex-tech__card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-stroke);
    box-shadow: var(--card-shadow-hover);
}

/* ==========================================================================
   组标题（POWERTRAIN / DRIVETRAIN & BRAKES / FRAME & CAPACITY）
   ========================================================================== */
.apex-tech__group-title {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--surface-stroke);
}

/* ==========================================================================
   参数列表
   ========================================================================== */
.apex-tech__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.apex-tech__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--surface-stroke);
}
.apex-tech__row:last-child { border-bottom: none; }

/* —— 左侧标签（Motor / Battery） —— */
.apex-tech__label {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-muted);
}

/* —— 右侧数值（1500W / 48V 15-25Ah） —— */
.apex-tech__value {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--on-surface);
    text-align: right;
}


/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1024px) {
    .apex-tech__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .apex-tech__card { padding: 36px 32px; }
}

@media (max-width: 768px) {
    .apex-tech__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .apex-tech__card { padding: 32px 28px; }
    .apex-tech__group-title { font-size: 16px; margin-bottom: 20px; }
    .apex-tech__row { padding: 14px 0; }
    .apex-tech__label { font-size: 13px; }
    .apex-tech__value { font-size: 14px; }
}

@media (max-width: 480px) {
    .apex-tech__card { padding: 28px 22px; }
    .apex-tech .apex-section-title {
        padding-left: 16px;
        margin-bottom: 36px;
    }
}
/* ==========================================================================
   ✅ FIX-10: Geometry & Sizing 模块视觉对齐（最终决议）
   - 左右 1:1 等分（图片 + 参数表）
   - 字母用橙色实心方块（不是文字色）
   - 标签灰色普通正文，数值白色 600
   - 图片直接显示（不加灰色卡片框）
   ========================================================================== */

/* —— Section Title（与其他模块统一） —— */
.apex-geometry .apex-section-title {
    text-align: left;
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin-left: 0;
    margin-bottom: 56px;
    font-family: var(--font-display);
    font-size: clamp(42px, 6.5vw, 72px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--on-surface);
}
.apex-geometry .apex-section-title::before { content: none; display: none; }

/* —— Section 容器 —— */
.apex-geometry {
    background: var(--surface);
    padding: clamp(72px, 9vw, 110px) 0;
}

/* ==========================================================================
   左右 1:1 布局
   ========================================================================== */
.apex-geometry__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* ==========================================================================
   左侧：几何示意图（无卡片包装，直接显示）
   ========================================================================== */
.apex-geometry__image {
    background: var(--card-gradient);
    border: 1px solid var(--surface-stroke);
    border-radius: 16px;
    padding: 32px;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}
.apex-geometry__image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0;
    display: block;
}

/* ==========================================================================
   右侧：参数列表
   ========================================================================== */
.apex-geometry__list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--card-gradient);
    border: 1px solid var(--surface-stroke);
    border-radius: 16px;
    padding: 8px 32px;
    box-shadow: var(--card-shadow);
}

.apex-geometry__row {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--surface-stroke);
}
.apex-geometry__row:last-child { border-bottom: none; }

/* —— 🔥 字母锚点：橙色实心方块（不是文字色） —— */
.apex-geometry__letter {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: var(--on-primary);
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 14px;
    line-height: 1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255,122,0,0.25);
}

/* —— 标签（Reach / Stack / Top Tube） —— */
.apex-geometry__label {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-muted);
}

/* —— 数值（450mm / 620mm / 6'4"） —— */
.apex-geometry__value {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--on-surface);
    text-align: right;
    white-space: nowrap;
}


/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1024px) {
    .apex-geometry__layout { gap: 40px; }
    .apex-geometry__image { padding: 24px; }
    .apex-geometry__list { padding: 8px 24px; }
}

@media (max-width: 768px) {
    .apex-geometry__layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .apex-geometry__image {
        aspect-ratio: 16 / 10;
        padding: 32px;
    }
    .apex-geometry__list { padding: 8px 24px; }
    .apex-geometry__row {
        grid-template-columns: 32px 1fr auto;
        gap: 16px;
        padding: 14px 0;
    }
    .apex-geometry__letter {
        width: 32px;
        height: 32px;
        font-size: 13px;
        border-radius: 6px;
    }
    .apex-geometry__label { font-size: 13px; }
    .apex-geometry__value { font-size: 14px; }
}

@media (max-width: 480px) {
    .apex-geometry .apex-section-title {
        padding-left: 16px;
        margin-bottom: 36px;
    }
    .apex-geometry__image { padding: 20px; }
    .apex-geometry__list { padding: 4px 18px; }
}
/* ==========================================================================
   ✅ FIX-11: What's Included 模块视觉对齐（最终决议）
   - 4 列网格（桌面），响应式收敛 3→2→1
   - 卡片暗黑渐变 + 圆角 16px + 顶部橙色装饰线（hover 显现）
   - 图标 48×48 圆角方框 + 橙色背景 + 橙色 icon
   - 名称首字符（数量前缀）橙色 mono 强化
   - 移动端最小屏改横排卡片
   ========================================================================== */

/* —— Section Title（与其他模块统一） —— */
.apex-box .apex-section-title {
    text-align: left;
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin-left: 0;
    margin-bottom: 56px;
    font-family: var(--font-display);
    font-size: clamp(42px, 6.5vw, 72px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--on-surface);
}
.apex-box .apex-section-title::before { content: none; display: none; }

/* —— Section 容器 —— */
.apex-box {
    background: var(--surface);
    padding: clamp(72px, 9vw, 110px) 0;
    color: var(--on-surface);
}

/* ==========================================================================
   4 列响应式网格
   ========================================================================== */
.apex-box__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* ==========================================================================
   单张装箱卡片（兼容 __card 和 __item 两种命名）
   ========================================================================== */
.apex-box__card,
.apex-box__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 28px 24px;
    min-height: 144px;
    background: var(--card-gradient);
    border: 1px solid var(--surface-stroke);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    text-align: left;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
    overflow: hidden;
}

/* —— 顶部橙色装饰线（默认隐藏，hover 显现） —— */
.apex-box__card::before,
.apex-box__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
    opacity: 0;
    transition: opacity .3s ease;
}

.apex-box__card:hover,
.apex-box__item:hover {
    transform: translateY(-4px);
    border-color: var(--primary-stroke);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6),
                0 0 0 1px rgba(255,122,0,0.15);
}
.apex-box__card:hover::before,
.apex-box__item:hover::before {
    opacity: 1;
}

/* ==========================================================================
   图标：48×48 圆角方框 + 橙色背景 + 橙色 icon
   ========================================================================== */
.apex-box__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-soft);
    border: 1px solid var(--primary-stroke);
    color: var(--primary);
    font-size: 28px;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 28;
    flex-shrink: 0;
    transition: background .3s ease, transform .3s ease;
}
.apex-box__card:hover .apex-box__icon,
.apex-box__item:hover .apex-box__icon {
    background: rgba(255,122,0,0.18);
    transform: scale(1.05);
}

/* ==========================================================================
   名称：首字符（数量前缀如 "1×"）橙色 mono 强化
   ========================================================================== */
.apex-box__name {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.005em;
    color: var(--on-surface);
    margin: 0;
}
.apex-box__name::first-letter {
    font-family: var(--font-mono);
    color: var(--primary);
    font-weight: 800;
}


/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1024px) {
    .apex-box__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .apex-box__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .apex-box__card,
    .apex-box__item {
        padding: 22px 20px;
        min-height: 124px;
        gap: 14px;
    }
    .apex-box__icon {
        width: 44px;
        height: 44px;
        font-size: 24px;
        border-radius: 10px;
    }
    .apex-box__name { font-size: 14px; }
}

@media (max-width: 480px) {
    .apex-box .apex-section-title {
        padding-left: 16px;
        margin-bottom: 36px;
    }
    .apex-box__grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    /* 单列时改横排（图标在左，名称在右） */
    .apex-box__card,
    .apex-box__item {
        flex-direction: row;
        align-items: center;
        min-height: auto;
        padding: 18px 20px;
        gap: 16px;
    }
    .apex-box__icon {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
}
/* ==========================================================================
   ✅ FIX-12: Frequently Asked 模块视觉对齐（最终决议）
   - Section Title 居中，无装饰条（叙事区 vs 参数区的视觉分层）
   - Tab 胶囊导航：圆角胶囊容器 + Active 橙色实心带阴影
   - FAQ 卡片：暗黑渐变 + 圆角 16 + Open 橙描边 + 大阴影
   - 分类小标签 __cat 胶囊化
   - Chevron 圆形按钮 + Open 旋转变橙
   - 答案区：顶部橙色渐变分隔 + 段落左侧橙色引用条
   ========================================================================== */

/* —— Section Title：居中、无装饰条（与 Core 等参数区刻意区分） —— */
.apex-faq-product .apex-section-title {
    text-align: center;
    border-left: none;
    padding-left: 0;
    margin: 0 auto 14px;
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--on-surface);
}
.apex-faq-product .apex-section-title::before { content: none; display: none; }

.apex-faq-product .apex-section-subtitle {
    text-align: center;
    margin: 0 auto 40px;
    max-width: 520px;
    padding-left: 0;
}

/* —— Section 容器 —— */
.apex-faq-product {
    background: var(--surface);
    padding: clamp(72px, 9vw, 110px) 0;
    color: var(--on-surface);
}

/* ==========================================================================
   分类导航 Tab（胶囊容器内的胶囊按钮）
   ========================================================================== */
.apex-faq-product__tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 40px;
    padding: 8px;
    background: var(--card-gradient);
    border: 1px solid var(--surface-stroke);
    border-radius: 999px;
    max-width: fit-content;
}

.apex-faq-product__tab {
    appearance: none;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: color .25s ease, background .25s ease, transform .2s ease;
}
.apex-faq-product__tab:hover {
    color: var(--on-surface);
    background: rgba(255,255,255,0.04);
}
.apex-faq-product__tab.is-active {
    color: var(--on-surface);
    background: var(--primary);
    box-shadow: 0 4px 14px rgba(255,122,0,0.35);
}
.apex-faq-product__tab.is-active:hover {
    background: var(--primary-hover);
    color: var(--on-surface);
}

/* ==========================================================================
   FAQ 列表
   ========================================================================== */
.apex-faq-product__list {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ==========================================================================
   单条 FAQ 卡片
   ========================================================================== */
.apex-faq-product__item {
    background: var(--card-gradient);
    border: 1px solid var(--surface-stroke);
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
    transition: border-color .3s ease, box-shadow .3s ease;
}
.apex-faq-product__item:hover {
    border-color: var(--surface-stroke-strong);
}
.apex-faq-product__item[open] {
    border-color: var(--primary-stroke);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5),
                0 0 0 1px rgba(255,122,0,0.1);
}
.apex-faq-product__item.is-hidden { display: none; }

/* ==========================================================================
   Summary（问题行）
   ========================================================================== */
.apex-faq-product__q {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.apex-faq-product__q::-webkit-details-marker,
.apex-faq-product__q::marker {
    display: none;
}

/* —— 分类小标签（如 PHP 渲染了 __cat 元素） —— */
.apex-faq-product__cat {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-soft);
    border: 1px solid var(--primary-stroke);
    padding: 4px 10px;
    border-radius: 6px;
    min-width: 80px;
    text-align: center;
}

/* —— 问题文字（兼容 __qtext 显式包装 和 直接 span 两种结构） —— */
.apex-faq-product__qtext,
.apex-faq-product__q > span:not(.apex-faq-product__cat):not(.material-symbols-outlined) {
    flex: 1;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--on-surface);
}

/* —— 展开图标：圆形按钮（兼容 __chevron 和 __icon 两种命名） —— */
.apex-faq-product__chevron,
.apex-faq-product__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--surface-stroke-strong);
    color: var(--text-muted);
    font-size: 20px;
    transition: transform .35s cubic-bezier(0.4, 0, 0.2, 1),
                background .3s ease,
                border-color .3s ease,
                color .3s ease;
}
.apex-faq-product__item[open] .apex-faq-product__chevron,
.apex-faq-product__item[open] .apex-faq-product__icon {
    transform: rotate(180deg);
    background: var(--primary-soft);
    border-color: var(--primary-stroke);
    color: var(--primary);
}

/* ==========================================================================
   Answer（答案区）
   ========================================================================== */
.apex-faq-product__a {
    padding: 0 24px 24px;
    position: relative;
    margin: 0;
    border-top: none;
    animation: apexFaqSlideDown .35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* —— 顶部橙色渐变细线分隔 —— */
.apex-faq-product__a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg,
                transparent 0%,
                rgba(255,122,0,0.3) 50%,
                transparent 100%);
}

/* —— 答案区内容上间距（避免贴顶） —— */
.apex-faq-product__a > * {
    padding-top: 18px;
}

/* —— 段落：左侧橙色引用条 —— */
.apex-faq-product__a p {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.75;
    color: var(--on-surface-variant);
    margin: 0 0 12px;
    padding-left: 16px;
    border-left: 3px solid rgba(255,122,0,0.6);
}
.apex-faq-product__a p:last-child {
    margin-bottom: 0;
}

/* —— 列表 —— */
.apex-faq-product__a ul,
.apex-faq-product__a ol {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.75;
    color: var(--on-surface-variant);
    padding-left: 36px;
    margin: 0 0 12px;
}
.apex-faq-product__a li {
    margin-bottom: 6px;
}

/* —— 链接 —— */
.apex-faq-product__a a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid var(--primary-stroke);
    transition: border-color .2s ease;
}
.apex-faq-product__a a:hover {
    border-bottom-color: var(--primary);
}

/* —— 展开动画 —— */
@keyframes apexFaqSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 768px) {
    .apex-faq-product { padding: 64px 0; }
    .apex-faq-product .apex-section-subtitle { margin-bottom: 28px; }

    /* Tab 横向滚动 */
    .apex-faq-product__tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        max-width: calc(100% - 32px);
        margin-bottom: 28px;
        padding: 6px;
        scrollbar-width: none;
    }
    .apex-faq-product__tabs::-webkit-scrollbar { display: none; }
    .apex-faq-product__tab {
        padding: 8px 16px;
        font-size: 13px;
    }

    /* Summary 重排：分类标签换到上方 */
    .apex-faq-product__q {
        flex-wrap: wrap;
        padding: 18px 20px;
        gap: 10px;
    }
    .apex-faq-product__cat {
        order: -1;
        flex-basis: auto;
        min-width: 0;
    }
    .apex-faq-product__qtext,
    .apex-faq-product__q > span:not(.apex-faq-product__cat):not(.material-symbols-outlined) {
        flex-basis: calc(100% - 48px);
        font-size: 15px;
    }
    .apex-faq-product__chevron,
    .apex-faq-product__icon {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }

    /* 答案区紧凑 */
    .apex-faq-product__a {
        padding: 0 20px 20px;
    }
    .apex-faq-product__a::before {
        left: 20px;
        right: 20px;
    }
    .apex-faq-product__a p {
        font-size: 14px;
        padding-left: 14px;
    }
}

@media (max-width: 480px) {
    .apex-faq-product__list { padding: 0 4px; }
    .apex-faq-product__q { padding: 16px 18px; }
    .apex-faq-product__a { padding: 0 18px 18px; }
}
/* ==========================================================================
   ✅ FIX-13: Our Promise to You 模块视觉对齐（最终决议 v2）
   - Section 顶部径向橙色光晕（800×400 圆形渐变）
   - Section Title 居中，无装饰条
   - 4 列网格（桌面）→ 2 列（≤1024）→ 2 列（≤768）→ 1 列横排（≤480）
   - 卡片暗黑渐变 + 圆角 20px + 顶部橙色渐变细线（hover 延展）
   - 图标三层圆环系统：径向光晕 + 软背景圆 + Hover 描边圆
   - 图标使用 Material Symbols 实心填充版（FILL: 1, wght: 600）
   - 标题强制 2 行对齐（min-height: 2.7em + text-wrap: balance）
   - Hover 上浮 6px + 大阴影 + 橙色光晕内描边
   ========================================================================== */

/* ==========================================================================
   Section 容器：暗黑底色 + 顶部径向橙色光晕
   ========================================================================== */
.apex-promise {
    position: relative;
    background: #0b0c0f;
    padding: clamp(80px, 10vw, 140px) 0;
    color: var(--on-surface);
    overflow: hidden;
}

/* —— 顶部径向光晕（核心氛围效果） —— */
.apex-promise::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 122, 0, 0.12) 0%,
        rgba(255, 122, 0, 0.04) 30%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}

.apex-promise .apex-container {
    position: relative;
    z-index: 1;
}

/* —— Section Title：居中、无装饰条 —— */
.apex-promise .apex-section-title {
    text-align: center;
    border-left: none;
    padding-left: 0;
    margin: 0 auto 14px;
    color: var(--on-surface);
    font-family: var(--font-display);
    font-size: clamp(42px, 6.5vw, 72px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}
.apex-promise .apex-section-title::before { content: none; display: none; }

.apex-promise .apex-section-subtitle {
    text-align: center;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 56px;
    padding-left: 0;
}

/* ==========================================================================
   4 列网格
   ========================================================================== */
.apex-promise__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ==========================================================================
   单张卡片
   ========================================================================== */
.apex-promise__item,
.apex-promise__card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 24px 32px;
    min-height: 280px;
    background: linear-gradient(180deg, #16171c 0%, #0f1014 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

/* —— 顶部橙色渐变细线（默认 60% 宽，Hover 延展到 80%） —— */
.apex-promise__item::before,
.apex-promise__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff7a00, transparent);
    opacity: 0.3;
    transition: opacity 0.4s ease, width 0.4s ease;
}

.apex-promise__item:hover,
.apex-promise__card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 122, 0, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(255, 122, 0, 0.15);
}

.apex-promise__item:hover::before,
.apex-promise__card:hover::before {
    opacity: 1;
    width: 80%;
}

/* ==========================================================================
   图标三层圆环系统
   ========================================================================== */

/* —— 第一层：72×72 径向橙色光晕容器 —— */
.apex-promise__icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: radial-gradient(
        circle at center,
        rgba(255, 122, 0, 0.18) 0%,
        rgba(255, 122, 0, 0.08) 60%,
        transparent 100%
    );
    margin: 0 auto 22px;
    flex-shrink: 0;
}

/* —— 第二层 ::before：Hover 时出现的最外层描边圆（缩放 0.9→1） —— */
.apex-promise__icon-wrap::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 122, 0, 0.2);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

/* —— 第三层 ::after：内层软背景圆 + 描边（始终可见） —— */
.apex-promise__icon-wrap::after {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: rgba(255, 122, 0, 0.1);
    border: 1px solid rgba(255, 122, 0, 0.3);
    transition: background 0.3s ease, border-color 0.3s ease;
    pointer-events: none;
}

/* —— Hover：外圈描边显现 + 内层背景加深 —— */
.apex-promise__item:hover .apex-promise__icon-wrap::before,
.apex-promise__card:hover .apex-promise__icon-wrap::before {
    opacity: 1;
    transform: scale(1);
}

.apex-promise__item:hover .apex-promise__icon-wrap::after,
.apex-promise__card:hover .apex-promise__icon-wrap::after {
    background: rgba(255, 122, 0, 0.18);
    border-color: rgba(255, 122, 0, 0.5);
}

/* ==========================================================================
   图标本身（Material Symbols 实心填充版）
   ========================================================================== */
.apex-promise__icon {
    position: relative;
    z-index: 2;
    font-size: 36px !important;
    color: var(--primary);
    font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 36;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.apex-promise__item:hover .apex-promise__icon,
.apex-promise__card:hover .apex-promise__icon {
    transform: scale(1.08);
}

/* ==========================================================================
   兼容：如果 PHP 模板没有 __icon-wrap 包装（裸 __icon）
   ========================================================================== */
.apex-promise__item > .apex-promise__icon:not(.apex-promise__icon-wrap *),
.apex-promise__card > .apex-promise__icon:not(.apex-promise__icon-wrap *) {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: radial-gradient(
        circle at center,
        rgba(255, 122, 0, 0.18) 0%,
        rgba(255, 122, 0, 0.08) 60%,
        transparent 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    font-size: 36px;
    color: var(--primary);
}

/* ==========================================================================
   文字区
   ========================================================================== */
.apex-promise__text {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* —— 标题：强制 2 行对齐（核心排版决议） —— */
.apex-promise__item-title,
.apex-promise__title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.015em;
    color: var(--on-surface);
    margin: 0 0 12px;
    text-wrap: balance;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
    min-height: 2.7em;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* —— 描述 —— */
.apex-promise__item-desc,
.apex-promise__desc {
    font-family: var(--font-body);
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--text-muted);
    margin: auto 0 0;
    max-width: 100%;
}


/* ==========================================================================
   响应式：平板 2 列居中
   ========================================================================== */
@media (max-width: 1024px) and (min-width: 769px) {
    .apex-promise__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
    }
    .apex-promise__item,
    .apex-promise__card { min-height: 260px; }
    .apex-promise__item-title,
    .apex-promise__title {
        font-size: 19px;
        min-height: auto;
    }
}

/* ==========================================================================
   响应式：手机大屏 2 列紧凑
   ========================================================================== */
@media (max-width: 768px) and (min-width: 481px) {
    .apex-promise { padding: 80px 0 64px; }
    .apex-promise::before {
        width: 500px;
        height: 300px;
        top: -150px;
    }
    .apex-promise .apex-section-subtitle { margin-bottom: 40px; }
    .apex-promise__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .apex-promise__item,
    .apex-promise__card {
        padding: 28px 18px 24px;
        min-height: 220px;
    }
    .apex-promise__icon-wrap {
        width: 60px;
        height: 60px;
        margin-bottom: 18px;
    }
    .apex-promise__icon {
        font-size: 28px !important;
        font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 28;
    }
    .apex-promise__item-title,
    .apex-promise__title {
        font-size: 15px;
        line-height: 1.3;
        min-height: 2.6em;
        margin-bottom: 10px;
    }
    .apex-promise__item-desc,
    .apex-promise__desc {
        font-size: 12.5px;
        line-height: 1.6;
    }
}

/* ==========================================================================
   响应式：手机小屏 单列横排卡片
   ========================================================================== */
@media (max-width: 480px) {
    .apex-promise { padding: 64px 0 56px; }
    .apex-promise::before {
        width: 400px;
        height: 240px;
        top: -120px;
    }
    .apex-promise .apex-section-subtitle {
        margin-bottom: 32px;
        font-size: 14px;
    }
    .apex-promise__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    /* 横排卡片：图标在左，文字在右 */
    .apex-promise__item,
    .apex-promise__card {
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 20px;
        gap: 16px;
        min-height: auto;
    }
    .apex-promise__icon-wrap {
        flex-shrink: 0;
        width: 56px;
        height: 56px;
        margin: 0;
    }
    .apex-promise__icon-wrap::before { inset: -5px; }
    .apex-promise__icon-wrap::after { inset: 5px; }
    .apex-promise__icon {
        font-size: 26px !important;
        font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 26;
    }
    .apex-promise__text {
        flex: 1;
        min-width: 0;
        text-align: left;
    }
    .apex-promise__item-title,
    .apex-promise__title {
        font-size: 15px;
        line-height: 1.3;
        margin: 0 0 4px;
        min-height: auto;
        display: block;
        text-align: left;
    }
    .apex-promise__item-desc,
    .apex-promise__desc {
        font-size: 13px;
        line-height: 1.55;
        margin: 0;
    }
}

/* ==========================================================================
   响应式：超小屏 360px 以下
   ========================================================================== */
@media (max-width: 360px) {
    .apex-promise__item,
    .apex-promise__card {
        padding: 16px;
        gap: 12px;
    }
    .apex-promise__icon-wrap {
        width: 48px;
        height: 48px;
    }
    .apex-promise__icon {
        font-size: 22px !important;
        font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 22;
    }
    .apex-promise__item-title,
    .apex-promise__title { font-size: 14px; }
    .apex-promise__item-desc,
    .apex-promise__desc { font-size: 12px; }
}
/* ==========================================================================
   ✅ FIX-09: Rider Feedback (.apex-reviews) — v2 终极决议
   - Section 顶部径向光晕（与 Promise 呼应，但用蓝紫色调区分）
   - Summary 卡片：左大数值 + 中星级分布 + 右快速行动 三栏
   - Big 数值升级：橙色 88px 巨型 + 满分 /5 灰色辅助
   - 进度条加百分比 + 数量双标签
   - 评论列表卡片化 + 头像首字母圆环 + Verified 徽章
   - 1-5 星筛选 Tab（与 FAQ 呼应的胶囊样式）
   - 表单与列表用 56px gap 分割
   ========================================================================== */

/* ==========================================================================
   Section 容器：顶部径向光晕 + 暗黑底
   ========================================================================== */
.apex-reviews {
    position: relative;
    background: #0b0c0f;
    padding: clamp(80px, 10vw, 140px) 0 !important;
    color: #fff;
    overflow: hidden;
}

/* —— 顶部径向光晕（呼应 Promise，但更柔和） —— */
.apex-reviews::before {
    content: '';
    position: absolute;
    top: -240px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 480px;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 122, 0, 0.10) 0%,
        rgba(255, 122, 0, 0.03) 35%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}

.apex-reviews .apex-container {
    position: relative;
    z-index: 1;
}

/* —— Section Title：居中、无装饰条 —— */
.apex-reviews .apex-section-title {
    text-align: center;
    border-left: none !important;
    padding-left: 0 !important;
    margin: 0 auto 14px !important;
    color: #fff !important;
    font-family: 'Sora', sans-serif !important;
    font-size: clamp(42px, 6.5vw, 72px) !important;
    font-weight: 700 !important;
    line-height: 1.05 !important;
    letter-spacing: -0.02em !important;
    text-transform: uppercase !important;
}
.apex-reviews .apex-section-title::before {
    content: none !important;
    display: none !important;
}

.apex-reviews .apex-section-subtitle {
    text-align: center;
    font-family: 'Roboto Flex', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #9ca3af;
    max-width: 560px;
    margin: 0 auto 56px;
    padding-left: 0;
}

/* ==========================================================================
   Summary 卡片：三栏布局（左数值 + 中分布 + 右行动）
   ========================================================================== */
.apex-reviews__summary {
    display: grid;
    grid-template-columns: 280px 1fr 220px;
    gap: 56px;
    align-items: center;
    padding: 48px 56px;
    background: linear-gradient(180deg, #16171c 0%, #0f1014 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    margin-bottom: 56px;
    position: relative;
    overflow: hidden;
}

/* —— Summary 顶部橙色装饰线 —— */
.apex-reviews__summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff7a00, transparent);
    opacity: 0.5;
}

/* ==========================================================================
   左栏：超大数值评分
   ========================================================================== */
.apex-reviews__score {
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding-right: 40px;
}

.apex-reviews__big {
    font-family: 'Sora', sans-serif;
    font-size: clamp(72px, 9vw, 112px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #ff7a00;
    display: block;
    margin: 0 0 8px;
    text-shadow: 0 0 40px rgba(255, 122, 0, 0.25);
}

/* —— "/5" 满分辅助文字（如果 PHP 输出）—— */
.apex-reviews__big-max {
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    font-weight: 500;
    color: #6b7280;
    margin-left: 4px;
    letter-spacing: 0;
}

/* —— Star Rating（WooCommerce 原生）—— */
.apex-reviews__score .star-rating {
    display: inline-block;
    font-size: 18px !important;
    color: #ff7a00 !important;
    margin: 0 0 12px;
    letter-spacing: 4px;
}

.apex-reviews__score .star-rating::before,
.apex-reviews__score .star-rating span::before {
    color: inherit !important;
}

.apex-reviews__score p {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 13px;
    color: #9ca3af;
    margin: 0;
    line-height: 1.5;
}

.apex-reviews__score p strong {
    color: #fff;
    font-weight: 600;
}

/* ==========================================================================
   中栏：星级分布条
   ========================================================================== */
.apex-reviews__bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.apex-reviews__bar-row {
    display: grid;
    grid-template-columns: 56px 1fr 60px;
    align-items: center;
    gap: 16px;
    transition: transform 0.3s ease;
}

.apex-reviews__bar-row:hover {
    transform: translateX(4px);
}

/* —— 左侧星级标签（"5 ★"） —— */
.apex-reviews__bar-star {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 4px;
}

.apex-reviews__bar-star::after {
    content: '★';
    color: #ff7a00;
    font-size: 14px;
}

/* —— 进度条轨道 —— */
.apex-reviews__bar-track {
    background: rgba(255, 255, 255, 0.06);
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* —— 进度条填充：橙色渐变 + 微光晕 —— */
.apex-reviews__bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff7a00 0%, #ff9a2e 100%);
    border-radius: 999px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 12px rgba(255, 122, 0, 0.4);
    position: relative;
}

/* —— 进度条尾部高光（动态感） —— */
.apex-reviews__bar-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 16px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
    border-radius: 999px;
}

/* —— 右侧数量标签 —— */
.apex-reviews__bar-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    color: #9ca3af;
    text-align: right;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   右栏：快速行动 CTA（"Write a Review" 按钮）
   ========================================================================== */
.apex-reviews__cta-wrap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-left: 40px;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.apex-reviews__cta-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #9ca3af;
    text-align: center;
    margin: 0 0 4px;
}

.apex-reviews__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: #ff7a00;
    color: #fff !important;
    font-family: 'Sora', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 122, 0, 0.3);
}

.apex-reviews__cta:hover {
    background: #ff8c1f;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255, 122, 0, 0.45);
    color: #fff !important;
}

.apex-reviews__cta .material-symbols-outlined {
    font-size: 18px !important;
    font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 18;
}

/* —— 验证徽章（"Verified Buyers Only"）—— */
.apex-reviews__cta-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Roboto Flex', sans-serif;
    font-size: 11px;
    color: #6b7280;
    line-height: 1.4;
}

.apex-reviews__cta-trust .material-symbols-outlined {
    font-size: 14px !important;
    color: #ff7a00;
    font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 14;
}

/* ==========================================================================
   星级筛选 Tab（呼应 FAQ 胶囊样式）
   ========================================================================== */
.apex-reviews__filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    padding: 8px;
    background: linear-gradient(180deg, #16171c, #0f1014);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.apex-reviews__filter {
    appearance: none;
    border: none;
    background: transparent;
    font-family: 'Roboto Flex', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
    padding: 9px 18px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.25s ease, background 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.apex-reviews__filter:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.apex-reviews__filter.is-active {
    color: #fff;
    background: #ff7a00;
    box-shadow: 0 4px 14px rgba(255, 122, 0, 0.35);
}

.apex-reviews__filter-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    opacity: 0.7;
}

/* ==========================================================================
   评论列表
   ========================================================================== */
.apex-reviews__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* —— WooCommerce commentlist 兼容 —— */
.apex-reviews__list .commentlist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* —— 单条评论卡片 —— */
.apex-reviews__list .comment,
.apex-reviews__list .commentlist > li,
.apex-reviews__item {
    position: relative;
    background: linear-gradient(180deg, #16171c 0%, #0f1014 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 28px 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

/* —— 顶部 hover 描边线 —— */
.apex-reviews__list .comment::before,
.apex-reviews__list .commentlist > li::before,
.apex-reviews__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff7a00, transparent);
    transition: width 0.4s ease;
}

.apex-reviews__list .comment:hover,
.apex-reviews__list .commentlist > li:hover,
.apex-reviews__item:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 122, 0, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 122, 0, 0.1);
}

.apex-reviews__list .comment:hover::before,
.apex-reviews__list .commentlist > li:hover::before,
.apex-reviews__item:hover::before {
    width: 100%;
}

/* —— 评论容器：头像 + 内容 双栏 —— */
.apex-reviews__list .comment_container {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 20px;
    align-items: start;
}

/* —— 头像：圆环 + 占位 —— */
.apex-reviews__list .avatar,
.apex-reviews__avatar {
    width: 56px !important;
    height: 56px !important;
    border-radius: 50%;
    border: 2px solid rgba(255, 122, 0, 0.3);
    object-fit: cover;
    background: rgba(255, 122, 0, 0.08);
    box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.05);
}

/* —— 头像首字母占位（无头像时）—— */
.apex-reviews__avatar-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 122, 0, 0.25) 0%, rgba(255, 122, 0, 0.08) 100%);
    border: 2px solid rgba(255, 122, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sora', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #ff7a00;
    box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.05);
    text-transform: uppercase;
}

/* —— 评论内容 —— */
.apex-reviews__list .comment-text,
.apex-reviews__list .description,
.apex-reviews__content {
    color: #d1d5db !important;
    font-family: 'Roboto Flex', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    margin: 12px 0 0;
}

/* —— 头部 Meta：用户名 + 日期 + 验证 —— */
.apex-reviews__list .meta,
.apex-reviews__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.apex-reviews__list .meta strong,
.apex-reviews__author {
    font-family: 'Sora', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #fff !important;
    letter-spacing: -0.005em;
}

.apex-reviews__list .meta time,
.apex-reviews__date {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #6b7280 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* —— "Verified Purchase" 徽章 —— */
.apex-reviews__verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ff7a00;
    background: rgba(255, 122, 0, 0.1);
    border: 1px solid rgba(255, 122, 0, 0.3);
    padding: 3px 8px;
    border-radius: 6px;
}

.apex-reviews__verified .material-symbols-outlined {
    font-size: 12px !important;
    font-variation-settings: 'FILL' 1, 'wght' 700, 'GRAD' 0, 'opsz' 12;
}

/* —— 评论星级 —— */
.apex-reviews__list .star-rating {
    display: inline-block;
    font-size: 13px !important;
    color: #ff7a00 !important;
    margin: 6px 0 8px !important;
    letter-spacing: 2px;
}

/* —— 评论隐藏（按筛选过滤）—— */
.apex-reviews__item.is-hidden,
.apex-reviews__list .comment.is-hidden {
    display: none;
}

/* ==========================================================================
   评论表单（Write a Review）
   ========================================================================== */
.apex-reviews__form-wrap,
#review_form_wrapper {
    margin-top: 56px;
    padding: 48px 56px;
    background: linear-gradient(180deg, #16171c 0%, #0f1014 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* —— 表单顶部分隔渐变线 —— */
.apex-reviews__form-wrap::before,
#review_form_wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 122, 0, 0.4), transparent);
}

#review_form #reply-title,
.apex-reviews__form-title {
    font-family: 'Sora', sans-serif !important;
    font-size: clamp(24px, 3vw, 32px) !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin: 0 0 24px !important;
    letter-spacing: -0.01em;
}

#review_form label {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    color: #9ca3af !important;
    margin-bottom: 8px !important;
    display: block !important;
}

.apex-reviews__list textarea,
#review_form textarea,
#review_form input[type="text"],
#review_form input[type="email"] {
    width: 100% !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    color: #fff !important;
    padding: 14px 18px !important;
    font-family: 'Roboto Flex', sans-serif !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.apex-reviews__list textarea:focus,
#review_form textarea:focus,
#review_form input[type="text"]:focus,
#review_form input[type="email"]:focus {
    border-color: rgba(255, 122, 0, 0.5) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    outline: none !important;
}

#review_form textarea {
    min-height: 140px !important;
    resize: vertical;
}

/* —— 提交按钮 —— */
.apex-reviews__list input[type="submit"],
#review_form input[type="submit"],
#review_form .submit {
    background: #ff7a00 !important;
    color: #fff !important;
    font-family: 'Sora', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    padding: 14px 32px !important;
    border-radius: 12px !important;
    border: none !important;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 122, 0, 0.3) !important;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease !important;
}

.apex-reviews__list input[type="submit"]:hover,
#review_form input[type="submit"]:hover {
    background: #ff8c1f !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255, 122, 0, 0.45) !important;
}

/* —— 评分选择（WooCommerce 原生）—— */
#review_form .stars {
    display: inline-flex;
    gap: 4px;
}

#review_form .stars a {
    color: rgba(255, 255, 255, 0.2) !important;
    font-size: 22px !important;
    transition: color 0.2s ease;
}

#review_form .stars a:hover,
#review_form .stars.selected a.active,
#review_form .stars.selected a:not(.active) ~ a {
    color: #ff7a00 !important;
}

/* ==========================================================================
   "Load More" 按钮
   ========================================================================== */
.apex-reviews__load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 40px auto 0;
    padding: 14px 32px;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 122, 0, 0.4);
    border-radius: 999px;
    font-family: 'Sora', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    width: fit-content;
}

.apex-reviews__load-more-wrap {
    display: flex;
    justify-content: center;
}

.apex-reviews__load-more:hover {
    background: rgba(255, 122, 0, 0.1);
    border-color: #ff7a00;
    transform: translateY(-1px);
}

.apex-reviews__load-more .material-symbols-outlined {
    font-size: 18px !important;
    transition: transform 0.3s ease;
}

.apex-reviews__load-more:hover .material-symbols-outlined {
    transform: translateY(2px);
}

/* ==========================================================================
   响应式：平板（≤1024px）
   ========================================================================== */
@media (max-width: 1024px) {
    .apex-reviews__summary {
        grid-template-columns: 240px 1fr;
        gap: 40px;
        padding: 40px;
    }
    /* 右栏 CTA 移到下方占满双栏 */
    .apex-reviews__cta-wrap {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding-left: 0;
        padding-top: 32px;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }
    .apex-reviews__cta-label {
        text-align: left;
        margin: 0;
    }
}

/* ==========================================================================
   响应式：手机大屏（≤768px）
   ========================================================================== */
@media (max-width: 768px) {
    .apex-reviews::before {
        width: 600px;
        height: 360px;
        top: -180px;
    }

    /* Summary 上下堆叠 */
    .apex-reviews__summary {
        grid-template-columns: 1fr !important;
        gap: 28px;
        padding: 32px 24px;
        margin-bottom: 40px;
    }
    .apex-reviews__score {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding-right: 0;
        padding-bottom: 28px;
    }
    .apex-reviews__big {
        font-size: 80px;
    }

    /* 右栏 CTA */
    .apex-reviews__cta-wrap {
        flex-direction: column;
        gap: 10px;
        padding-left: 0;
        padding-top: 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        padding-top: 24px;
    }
    .apex-reviews__cta-label { text-align: center; }

    /* 进度条左标签收缩 */
    .apex-reviews__bar-row {
        grid-template-columns: 44px 1fr 48px;
        gap: 12px;
    }

    /* 筛选 Tab 横向滚动 */
    .apex-reviews__filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        max-width: 100%;
        scrollbar-width: none;
        padding: 6px;
    }
    .apex-reviews__filters::-webkit-scrollbar { display: none; }
    .apex-reviews__filter {
        padding: 8px 14px;
        font-size: 12px;
        flex-shrink: 0;
    }

    /* 评论卡片紧凑 */
    .apex-reviews__list .comment,
    .apex-reviews__list .commentlist > li,
    .apex-reviews__item {
        padding: 22px 20px;
    }
    .apex-reviews__list .comment_container {
        grid-template-columns: 44px 1fr;
        gap: 14px;
    }
    .apex-reviews__list .avatar,
    .apex-reviews__avatar,
    .apex-reviews__avatar-placeholder {
        width: 44px !important;
        height: 44px !important;
        font-size: 18px;
    }
    .apex-reviews__list .meta strong,
    .apex-reviews__author {
        font-size: 15px !important;
    }
    .apex-reviews__list .comment-text,
    .apex-reviews__list .description,
    .apex-reviews__content {
        font-size: 14px;
        line-height: 1.65;
    }

    /* 表单紧凑 */
    .apex-reviews__form-wrap,
    #review_form_wrapper {
        padding: 32px 24px;
        margin-top: 40px;
    }
}

/* ==========================================================================
   响应式：手机小屏（≤480px）
   ========================================================================== */
@media (max-width: 480px) {
    .apex-reviews__big {
        font-size: 64px;
    }
    .apex-reviews__summary {
        padding: 24px 20px;
        border-radius: 18px;
    }
    .apex-reviews__bar-row {
        grid-template-columns: 38px 1fr 40px;
        gap: 10px;
    }
    .apex-reviews__bar-track {
        height: 8px;
    }
    .apex-reviews__list .comment,
    .apex-reviews__list .commentlist > li,
    .apex-reviews__item {
        padding: 20px 16px;
        border-radius: 14px;
    }
    .apex-reviews__list .meta,
    .apex-reviews__meta {
        gap: 8px;
    }
    .apex-reviews__form-wrap,
    #review_form_wrapper {
        padding: 24px 20px;
        border-radius: 18px;
    }
}
/* ==========================================================================
   ✅ FIX-15: Complete the Setup (.apex-related) — v2 收敛终极决议
   - 收敛 L1080 / L1283 / L3132 / L3539 / L3637 五处零散代码
   - 修复 L3543~L3661 价格补丁的大括号错位 bug
   - 统一与 Promise / Reviews 的视觉语言（顶部光晕 + 卡片家族）
   - 强化 mix-blend-mode 产品图融入暗色背景
   - 完整的 WooCommerce 价格 / Add-to-Cart / View Cart / Variations 兼容
   ========================================================================== */

/* ==========================================================================
   1. Section 容器：呼应 Promise 的顶部分隔渐变线
   ========================================================================== */
.apex-related {
    position: relative;
    background: #0d0e11;
    padding: clamp(80px, 10vw, 140px) 0 !important;
    color: #fff;
    overflow: hidden;
}

/* —— 顶部细分割渐变线（衔接上方 Reviews 区）—— */
.apex-related::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(80%, 800px);
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 122, 0, 0.3),
        transparent
    );
    z-index: 1;
}

/* —— 底部柔和橙色光晕（呼应 Promise 顶部光晕，但反向）—— */
.apex-related::after {
    content: '';
    position: absolute;
    bottom: -300px;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 500px;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 122, 0, 0.06) 0%,
        rgba(255, 122, 0, 0.02) 35%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}

.apex-related .apex-container {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   2. Section Title / Subtitle：居中、无装饰条
   ========================================================================== */
.apex-related .apex-section-title {
    text-align: center !important;
    border-left: none !important;
    padding-left: 0 !important;
    margin: 0 auto 14px !important;
    color: #fff !important;
    font-family: 'Sora', sans-serif !important;
    font-size: clamp(42px, 6.5vw, 72px) !important;
    font-weight: 700 !important;
    line-height: 1.05 !important;
    letter-spacing: -0.02em !important;
    text-transform: uppercase !important;
}
.apex-related .apex-section-title::before {
    content: none !important;
    display: none !important;
}

.apex-related .apex-section-subtitle {
    text-align: center;
    font-family: 'Roboto Flex', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #9ca3af;
    max-width: 640px;
    margin: 0 auto 56px !important;
    padding-left: 0;
}

/* ==========================================================================
   3. 4 列网格
   ========================================================================== */
.apex-related__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 0 !important;
}

/* ==========================================================================
   4. 卡片本体
   ========================================================================== */
.apex-related__card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #16171c 0%, #0f1014 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

.apex-related__card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 122, 0, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(255, 122, 0, 0.15);
}

/* —— 顶部 hover 描边线（0→80% 横扫） —— */
.apex-related__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff7a00, transparent);
    transition: width 0.4s ease;
    z-index: 3;
}

.apex-related__card:hover::before {
    width: 80%;
}

/* ==========================================================================
   5. 产品图区域（mix-blend-mode 黑色背景融入魔法）
   ========================================================================== */
.apex-related__image {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: #0b0c0f;
    overflow: hidden;
    isolation: isolate;
}

/* —— 底部渐变遮罩：让图片下沿溶解到卡片底色 —— */
.apex-related__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 60%,
        rgba(15, 16, 20, 0.4) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.apex-related__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    /* 🔥 核心魔法：mix-blend-mode: luminosity 让白底产品图融入黑色卡片 */
    mix-blend-mode: luminosity;
    filter: brightness(1.05) contrast(0.95);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                mix-blend-mode 0.3s ease,
                filter 0.3s ease;
}

/* —— Hover：图片恢复原色 + 微缩放 —— */
.apex-related__card:hover .apex-related__image img {
    transform: scale(1.04);
    mix-blend-mode: normal;
    filter: brightness(1) contrast(1);
}

/* ==========================================================================
   6. Body 区（标题 + 价格 + CTA）
   ========================================================================== */
.apex-related__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px 22px 26px;
    gap: 14px;
}

/* —— 产品标题：3 行限制 —— */
.apex-related__title {
    font-family: 'Sora', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.01em;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.4em * 3);
}

.apex-related__title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.25s ease;
}

.apex-related__title a:hover {
    color: #ff7a00;
}

/* ==========================================================================
   7. 价格区（修复版：彻底重构 L3539~L3661 的错位补丁）
   ========================================================================== */

/* —— 价格容器：flex 布局 —— */
.apex-related__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 8px;
    margin-top: auto; /* 推到 Body 底部对齐 */
    line-height: 1.3;
    font-family: 'JetBrains Mono', monospace;
    font-size: 17px;
    font-weight: 600;
}

/* —— 价格区所有文字默认白色 —— */
.apex-related__price,
.apex-related__price *,
.apex-related__price .price,
.apex-related__price .woocommerce-Price-amount,
.apex-related__price .woocommerce-Price-amount.amount,
.apex-related__price .woocommerce-Price-currencySymbol,
.apex-related__price bdi,
.apex-related__price span:not(.screen-reader-text) {
    color: #ffffff !important;
    font-family: 'JetBrains Mono', monospace !important;
}

/* —— 单价数值 —— */
.apex-related__price .woocommerce-Price-amount {
    font-size: 17px;
    font-weight: 600;
    display: inline-block;
}

/* —— 货币符号略小 —— */
.apex-related__price .woocommerce-Price-currencySymbol {
    font-size: 0.85em;
    margin-right: 1px;
    vertical-align: baseline;
    opacity: 0.85;
}

/* —— bdi 元素继承父样式 —— */
.apex-related__price bdi {
    font-family: inherit;
    font-weight: inherit;
    color: inherit;
}

/* —— 隐藏屏幕阅读器冗余文字（"Price range:" / "from" 等） —— */
.apex-related__price .screen-reader-text,
.apex-related__price .from,
.apex-related__price .price-range-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* —— 价格区间分隔符 "–" 保持 inline —— */
.apex-related__price > span:not(.screen-reader-text) {
    display: inline;
}

/* ==========================================================================
   8. 折扣价：原价（删除线灰色） + 现价（橙色突出）
   ========================================================================== */

/* —— 原价（删除线灰色）—— */
.apex-related__price del,
.apex-related__price del *,
.apex-related__price del .woocommerce-Price-amount,
.apex-related__price del .woocommerce-Price-currencySymbol,
.apex-related__price del bdi {
    color: #6b7280 !important;
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
    text-decoration-color: rgba(107, 114, 128, 0.6);
    font-size: 14px;
    font-weight: 500;
    opacity: 0.85;
    margin-right: 4px;
}

/* —— 现价（橙色突出）—— */
.apex-related__price ins,
.apex-related__price ins *,
.apex-related__price ins .woocommerce-Price-amount,
.apex-related__price ins .woocommerce-Price-currencySymbol,
.apex-related__price ins bdi {
    color: #ff7a00 !important;
    text-decoration: none !important;
    background: transparent !important;
    font-size: 18px;
    font-weight: 700;
}

/* —— 现价货币符号也橙色 —— */
.apex-related__price ins .woocommerce-Price-currencySymbol {
    opacity: 1;
}

/* ==========================================================================
   9. CTA "Add to Cart" 按钮
   ========================================================================== */
.apex-related__cta,
.apex-related__cta.button,
.apex-related__body .button.product_type_simple,
.apex-related__body .added_to_cart + .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    background: #ff7a00 !important;
    color: #fff !important;
    font-family: 'Sora', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer;
    margin-top: 4px;
    transition: background 0.3s ease,
                transform 0.2s ease,
                box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.25);
}

.apex-related__cta:hover,
.apex-related__cta.button:hover {
    background: #ff8c1f !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 122, 0, 0.4);
    color: #fff !important;
}

.apex-related__cta:active,
.apex-related__cta.button:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(255, 122, 0, 0.3);
}

/* —— 已加入购物车状态（WooCommerce ajax_add_to_cart）—— */
.apex-related__cta.added,
.apex-related__cta.button.added {
    background: rgba(255, 122, 0, 0.15) !important;
    color: #ff7a00 !important;
    border: 1px solid rgba(255, 122, 0, 0.4) !important;
    box-shadow: none !important;
}

.apex-related__cta.added::after,
.apex-related__cta.button.added::after {
    content: ' ✓';
    margin-left: 6px;
    font-weight: 700;
}

/* —— 加载中状态（WooCommerce ajax loading）—— */
.apex-related__cta.loading,
.apex-related__cta.button.loading {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
}

.apex-related__cta.loading::after,
.apex-related__cta.button.loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: apexRelatedSpin 0.8s linear infinite;
    vertical-align: middle;
}

@keyframes apexRelatedSpin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   10. "View Cart" 链接（加购成功后自动追加）
   ========================================================================== */
.apex-related__body .added_to_cart {
    display: block;
    text-align: center;
    margin-top: 8px;
    padding: 8px 12px;
    font-family: 'Roboto Flex', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: color 0.25s ease,
                background 0.25s ease,
                border-color 0.25s ease;
}

.apex-related__body .added_to_cart:hover {
    color: #ff7a00;
    background: rgba(255, 122, 0, 0.08);
    border-color: rgba(255, 122, 0, 0.3);
}

/* —— 加车提示信息（WooCommerce 默认 woocommerce-message）—— */
.apex-related__card .woocommerce-message {
    background: rgba(255, 122, 0, 0.1) !important;
    border: 1px solid rgba(255, 122, 0, 0.3) !important;
    color: #ff7a00 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    margin-top: 8px !important;
}

/* ==========================================================================
   11. 变体产品（"Select options"）
   ========================================================================== */
.apex-related__cta.product_type_variable,
.apex-related__cta.product_type_grouped,
.apex-related__cta.product_type_external {
    background: transparent !important;
    color: #ff7a00 !important;
    border: 1px solid rgba(255, 122, 0, 0.4) !important;
    box-shadow: none !important;
}

.apex-related__cta.product_type_variable:hover,
.apex-related__cta.product_type_grouped:hover,
.apex-related__cta.product_type_external:hover {
    background: rgba(255, 122, 0, 0.1) !important;
    border-color: #ff7a00 !important;
    color: #ff7a00 !important;
}

/* ==========================================================================
   12. 缺货状态
   ========================================================================== */
.apex-related__card .out-of-stock,
.apex-related__card .outofstock-badge {
    display: inline-block;
    margin-top: 4px;
    padding: 4px 10px;
    background: rgba(107, 114, 128, 0.15);
    color: #9ca3af !important;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 6px;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

/* —— 整张卡片在缺货时降低透明度 —— */
.apex-related__card.outofstock {
    opacity: 0.7;
}

.apex-related__card.outofstock .apex-related__image img {
    filter: grayscale(0.5) brightness(0.9);
}

/* ==========================================================================
   13. 角标徽章（New / Sale / Hot 等）
   ========================================================================== */
.apex-related__badge,
.apex-related__card .onsale {
    position: absolute !important;
    top: 14px !important;
    left: 14px !important;
    z-index: 4 !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 5px 10px !important;
    background: #ff7a00 !important;
    color: #fff !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.4) !important;
    min-height: auto !important;
    min-width: auto !important;
    line-height: 1.2 !important;
    border: none !important;
    margin: 0 !important;
}

/* —— "New" 徽章（绿色）—— */
.apex-related__badge--new {
    background: #2ff1ba !important;
    color: #064a35 !important;
    box-shadow: 0 4px 12px rgba(47, 241, 186, 0.3) !important;
}

/* ==========================================================================
   14. 响应式：平板（≤1024px）
   ========================================================================== */
@media (max-width: 1024px) and (min-width: 769px) {
    .apex-related__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

/* ==========================================================================
   15. 响应式：手机大屏（≤768px）
   ========================================================================== */
@media (max-width: 768px) and (min-width: 481px) {
    .apex-related {
        padding: 72px 0 84px !important;
    }
    .apex-related::after {
        bottom: -200px;
        width: 700px;
        height: 360px;
    }
    .apex-related .apex-section-subtitle {
        margin-bottom: 40px !important;
    }
    .apex-related__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .apex-related__body {
        padding: 20px 18px 22px;
        gap: 12px;
    }
    .apex-related__title {
        font-size: 15px;
        -webkit-line-clamp: 2;
        min-height: calc(1.4em * 2);
    }

    /* 价格字号收紧 */
    .apex-related__price {
        font-size: 15px;
    }
    .apex-related__price .woocommerce-Price-amount {
        font-size: 15px !important;
    }
    .apex-related__price ins,
    .apex-related__price ins .woocommerce-Price-amount {
        font-size: 16px !important;
    }
    .apex-related__price del,
    .apex-related__price del .woocommerce-Price-amount {
        font-size: 13px !important;
    }

    .apex-related__cta,
    .apex-related__cta.button {
        padding: 12px 16px !important;
        font-size: 12px !important;
    }
}

/* ==========================================================================
   16. 响应式：手机小屏（≤480px）— 横排卡片
   ========================================================================== */
@media (max-width: 480px) {
    .apex-related {
        padding: 64px 0 72px !important;
    }
    .apex-related::after {
        bottom: -160px;
        width: 500px;
        height: 280px;
    }
    .apex-related .apex-section-subtitle {
        font-size: 14px;
        margin-bottom: 32px !important;
    }

    /* 单列横排 */
    .apex-related__grid {
        grid-template-columns: 1fr;
        gap: 14px;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }

    /* 卡片改横排：图左 + 内容右 */
    .apex-related__card {
        flex-direction: row;
    }

    .apex-related__image {
        width: 140px;
        flex-shrink: 0;
        aspect-ratio: 1 / 1;
    }
    .apex-related__image img {
        padding: 12px;
    }

    .apex-related__body {
        padding: 16px;
        gap: 10px;
        flex: 1;
        min-width: 0;
    }
    .apex-related__title {
        font-size: 14px;
        -webkit-line-clamp: 2;
        min-height: auto;
    }

    /* 价格 */
    .apex-related__price {
        font-size: 14px;
    }
    .apex-related__price .woocommerce-Price-amount {
        font-size: 14px !important;
    }
    .apex-related__price ins,
    .apex-related__price ins .woocommerce-Price-amount {
        font-size: 15px !important;
    }
    .apex-related__price del,
    .apex-related__price del .woocommerce-Price-amount {
        font-size: 12px !important;
    }

    .apex-related__cta,
    .apex-related__cta.button {
        padding: 10px 14px !important;
        font-size: 11px !important;
    }

    /* 横排时角标位置调整 */
    .apex-related__badge,
    .apex-related__card .onsale {
        top: 8px !important;
        left: 8px !important;
        font-size: 9px !important;
        padding: 4px 8px !important;
    }
}
/* ==========================================================================
   ✅ FIX-16: Hero Product (.apex-hero-product) — v3 复刻
   - 修复左右栏比例：5:5 → 7:5（图大、信息也充足）
   - 图片融入暗黑卡片（与产品图本身的暗黑摄影呼应）
   - 缩略图 4 等分方块 + 圆角 + 橙色选中描边
   - 右栏垂直节奏重构：每个模块之间 24~32px 呼吸感
   - 标题字号自适应（短标题不撑爆，长标题优雅换行）
   - WooCommerce 下拉框改造为色块选择器（视觉降级方案）
   ========================================================================== */

/* ==========================================================================
   1. Hero Section 容器
   ========================================================================== */
.apex-hero-product {
    background: #0b0c0f;
    padding: 48px 0 80px;
    color: #fff;
}

/* ==========================================================================
   2. 主网格：7fr 左 + 5fr 右（核心修复）
   ========================================================================== */
.apex-hero-product__grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 64px;
    align-items: start;
    max-width: 1440px;
    margin: 0 auto;
}

/* —— 右栏 Sticky 跟随滚动 —— */
.apex-hero-product__info {
    position: sticky;
    top: 24px;
    padding-top: 8px;
}

/* ==========================================================================
   3. 左栏图片：主图嵌入暗黑卡片
   ========================================================================== */
.apex-gallery {
    position: relative;
}

/* —— Best Seller 角标重新定位 —— */
.apex-gallery__badge {
    position: absolute !important;
    top: 20px !important;
    left: 20px !important;
    z-index: 10 !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 6px 12px !important;
    background: #ff7a00 !important;
    color: #fff !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    border-radius: 8px !important;
    box-shadow: 0 6px 16px rgba(255, 122, 0, 0.4) !important;
    border: none !important;
    line-height: 1 !important;
}

/* —— 主图卡片：暗黑背景 + mix-blend-mode 融入 —— */
.apex-gallery__main {
    position: relative;
    aspect-ratio: 1 / 1;
    background: linear-gradient(180deg, #16171c 0%, #0f1014 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

/* —— 主图卡片底部渐变遮罩 —— */
.apex-gallery__main::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 60%,
        rgba(15, 16, 20, 0.5) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.apex-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 40px;
    /* 🔥 核心魔法：白底产品图融入暗色卡片 */
    
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                mix-blend-mode 0.3s ease,
                filter 0.3s ease;
}

.apex-gallery__main:hover img {
    transform: scale(1.04);

}

/* —— WooCommerce 原生 zoom 兼容 —— */
.apex-gallery__main .woocommerce-product-gallery__image {
    width: 100%;
    height: 100%;
}

/* —— 上一张/下一张箭头（如果有）—— */
.apex-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease;
}

.apex-gallery__main:hover .apex-gallery__nav {
    opacity: 1;
}

.apex-gallery__nav:hover {
    background: rgba(255, 122, 0, 0.8);
}

.apex-gallery__nav--prev { left: 16px; }
.apex-gallery__nav--next { right: 16px; }

/* ==========================================================================
   4. 缩略图：4 等分方块（5 等分太挤）
   ========================================================================== */
.apex-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.apex-gallery__thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    background: linear-gradient(180deg, #16171c 0%, #0f1014 100%);
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.3s ease;
    padding: 0;
}

.apex-gallery__thumb:hover {
    border-color: rgba(255, 122, 0, 0.5);
    transform: translateY(-2px);
}

.apex-gallery__thumb.is-active {
    border-color: #ff7a00;
    box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.15);
}

.apex-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 缩略图不用 mix-blend-mode，保持原色一致性 */
    transition: transform 0.4s ease;
}

.apex-gallery__thumb:hover img {
    transform: scale(1.05);
}

/* —— 视频缩略图（带播放按钮）—— */
.apex-gallery__thumb--video {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1b20 0%, #0a0b0f 100%);
}

.apex-gallery__thumb--video::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 122, 0, 0.15) 0%, transparent 60%);
}

.apex-gallery__thumb--video .material-symbols-outlined {
    position: relative;
    z-index: 2;
    font-size: 36px !important;
    color: #ff7a00 !important;
    font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 36;
}

/* ==========================================================================
   5. 右栏：Eyebrow（系列标签）
   ========================================================================== */
.apex-hero-product__eyebrow {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 122, 0, 0.08);
    border: 1px solid rgba(255, 122, 0, 0.4);
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    color: #ff7a00 !important;
    margin-bottom: 20px !important;
    line-height: 1.4 !important;
}

/* ==========================================================================
   6. 右栏：H1 主标题（核心修复 —— 标题不再被压扁）
   ========================================================================== */
.apex-hero-product__title {
    font-family: 'Sora', sans-serif !important;
    /* 🔥 关键：用 clamp 让长标题自适应缩小，避免单字独占一行 */
    font-size: clamp(28px, 3.2vw, 44px) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
    color: #fff !important;
    margin: 0 0 14px !important;
    /* 🔥 关键：避免单字断行 */
    text-wrap: balance;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
}

/* ==========================================================================
   7. 右栏：副标题
   ========================================================================== */
.apex-hero-product__subtitle {
    font-family: 'Roboto Flex', sans-serif !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
    color: #9ca3af !important;
    margin: 0 0 28px !important;
    font-weight: 400 !important;
}

/* ==========================================================================
   8. 右栏：价格区
   ========================================================================== */
.apex-hero-product__price {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    gap: 12px 16px !important;
    margin: 0 0 24px !important;
}

/* 售价（橙色大字）—— 比 v2 适度缩小，避免与标题竞争 */
.apex-hero-product__price .apex-price-sale,
.apex-hero-product__price .apex-price-sale *,
.apex-hero-product__price .apex-price-sale .woocommerce-Price-amount,
.apex-hero-product__price .apex-price-sale .woocommerce-Price-currencySymbol,
.apex-hero-product__price .apex-price-sale bdi {
    color: #ff7a00 !important;
    font-family: 'Sora', sans-serif !important;
    font-size: clamp(36px, 4.5vw, 52px) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    line-height: 1 !important;
    text-decoration: none !important;
}

.apex-hero-product__price .apex-price-sale .woocommerce-Price-currencySymbol {
    font-size: 0.55em !important;
    vertical-align: super;
    margin-right: 2px;
    opacity: 0.85;
}

/* 原价（删除线） */
.apex-hero-product__price .apex-price-regular {
    color: #9ca3af !important;
    font-family: 'Roboto Flex', sans-serif !important;
    font-size: clamp(16px, 1.8vw, 20px) !important;
    font-weight: 500 !important;
    text-decoration: line-through !important;
    text-decoration-thickness: 2px !important;
    text-decoration-color: rgba(156, 163, 175, 0.6) !important;
    line-height: 1 !important;
}

/* SAVE 徽章 */
.apex-hero-product__price .apex-price-save {
    display: inline-flex !important;
    align-items: center !important;
    padding: 6px 12px !important;
    background: #ff7a00 !important;
    color: #fff !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    border-radius: 6px !important;
    line-height: 1 !important;
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.3) !important;
}

/* ==========================================================================
   9. 右栏：倒计时
   ========================================================================== */
.apex-countdown {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    margin: 0 0 24px !important;
    background: linear-gradient(180deg, #16171c 0%, #0f1014 100%);
    border: 1px solid rgba(255, 122, 0, 0.25);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.apex-countdown::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: #ff7a00;
}

.apex-countdown .material-symbols-outlined {
    font-size: 20px !important;
    color: #ff7a00;
    font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 20;
    flex-shrink: 0;
}

.apex-countdown__label {
    flex: 1;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    color: #fff !important;
    line-height: 1.3;
}

.apex-countdown__digits {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    color: #ff7a00 !important;
    background: rgba(255, 122, 0, 0.08);
    padding: 6px 10px;
    border-radius: 6px;
    min-width: 110px;
    text-align: center;
    flex-shrink: 0;
}

/* ==========================================================================
   10. 右栏：变体选择 —— 改造下拉框
   ========================================================================== */
.apex-hero-product__form {
    margin: 0 0 24px;
}

/* —— 变体表格容器 —— */
.apex-hero-product__form .variations {
    width: 100%;
    margin: 0 0 20px !important;
    border: none !important;
}

.apex-hero-product__form .variations tr {
    display: block;
    margin-bottom: 16px;
}

.apex-hero-product__form .variations td {
    display: block;
    padding: 0 !important;
    border: none !important;
}

/* —— 变体标签（VERSION / COLOR） —— */
.apex-hero-product__form .variations label,
.apex-hero-product__form .variations th {
    display: block !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    color: #9ca3af !important;
    margin-bottom: 10px !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* —— 下拉框美化 —— */
.apex-hero-product__form .variations select,
.apex-hero-product__form .variations_form select {
    width: 100% !important;
    padding: 14px 44px 14px 16px !important;
    background: linear-gradient(180deg, #16171c 0%, #0f1014 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    color: #fff !important;
    font-family: 'Sora', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ff7a00' d='M6 8L0 0h12z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 18px center !important;
    background-size: 12px 8px !important;
}

.apex-hero-product__form .variations select:hover,
.apex-hero-product__form .variations_form select:hover {
    border-color: rgba(255, 122, 0, 0.5) !important;
}

.apex-hero-product__form .variations select:focus {
    outline: none !important;
    border-color: #ff7a00 !important;
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.15) !important;
}

/* —— "Clear" 重置链接 —— */
.apex-hero-product__form .reset_variations {
    color: #9ca3af !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    margin-top: 8px !important;
    display: inline-block !important;
}

.apex-hero-product__form .reset_variations:hover {
    color: #ff7a00 !important;
}

/* —— 单一变体提示（"Choose your version"）—— */
.apex-hero-product__form .single_variation_wrap {
    margin-top: 16px;
}

.apex-hero-product__form .woocommerce-variation-price {
    display: none; /* 隐藏变体价格，因为顶部已有 */
}

.apex-hero-product__form .woocommerce-variation-availability {
    margin-bottom: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #2ff1ba;
}

.apex-hero-product__form .stock.in-stock {
    color: #2ff1ba !important;
}

.apex-hero-product__form .stock.out-of-stock {
    color: #ffb4ab !important;
}

/* ==========================================================================
   11. 右栏：赠品卡（gift card）
   ========================================================================== */
.apex-hero-gift {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px 18px;
    margin: 0 0 24px !important;
    background: linear-gradient(180deg, #16171c 0%, #0f1014 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

/* —— 赠品卡左侧橙色装饰条 —— */
.apex-hero-gift::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: #ff7a00;
}

.apex-hero-gift .material-symbols-outlined {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 122, 0, 0.1);
    border: 1px solid rgba(255, 122, 0, 0.3);
    border-radius: 10px;
    color: #ff7a00 !important;
    font-size: 22px !important;
    font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 22;
    flex-shrink: 0;
}

.apex-hero-gift__text h3 {
    font-family: 'Sora', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: #fff !important;
    margin: 0 0 4px !important;
    line-height: 1.3 !important;
}

.apex-hero-gift__text p {
    font-family: 'Roboto Flex', sans-serif !important;
    font-size: 13px !important;
    color: #9ca3af !important;
    margin: 0 !important;
    line-height: 1.45 !important;
}

/* ==========================================================================
   12. 右栏：数量 + 加购按钮（横排）
   ========================================================================== */

/* —— 数量输入框 —— */
.apex-hero-product__form .quantity {
    display: inline-flex !important;
    align-items: stretch !important;
    background: linear-gradient(180deg, #16171c 0%, #0f1014 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    overflow: hidden;
    margin: 0 12px 0 0 !important;
    flex-shrink: 0;
    height: 56px;
}

/* 隐藏默认 +/- 按钮，用伪元素自定义 */
.apex-hero-product__form .quantity .qty {
    width: 100px !important;
    height: 100% !important;
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    text-align: center !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    padding: 0 8px !important;
    -moz-appearance: textfield;
}

.apex-hero-product__form .quantity .qty::-webkit-outer-spin-button,
.apex-hero-product__form .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.apex-hero-product__form .quantity .qty:focus {
    outline: none !important;
}

/* WooCommerce/Flatsome 自带 +/- 按钮美化 */
.apex-hero-product__form .quantity .plus,
.apex-hero-product__form .quantity .minus {
    background: transparent !important;
    border: none !important;
    color: #9ca3af !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    width: 36px !important;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apex-hero-product__form .quantity .plus:hover,
.apex-hero-product__form .quantity .minus:hover {
    color: #ff7a00 !important;
    background: rgba(255, 122, 0, 0.08) !important;
}

/* —— 加购按钮（核心 CTA） —— */
.apex-hero-product__form .single_add_to_cart_button,
.apex-hero-product__form button.single_add_to_cart_button,
.apex-hero-product__form .button.single_add_to_cart_button {
    width: calc(100% - 124px) !important;
    height: 56px !important;
    padding: 0 24px !important;
    background: #ff7a00 !important;
    color: #fff !important;
    font-family: 'Sora', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 122, 0, 0.35) !important;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.apex-hero-product__form .single_add_to_cart_button:hover {
    background: #ff8c1f !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255, 122, 0, 0.5) !important;
}

.apex-hero-product__form .single_add_to_cart_button:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(255, 122, 0, 0.4) !important;
}

/* —— 变体未选择时按钮置灰 —— */
.apex-hero-product__form .single_add_to_cart_button.disabled,
.apex-hero-product__form .single_add_to_cart_button.wc-variation-selection-needed {
    background: rgba(255, 122, 0, 0.3) !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    box-shadow: none !important;
}

.apex-hero-product__form .single_add_to_cart_button.disabled:hover {
    transform: none;
    background: rgba(255, 122, 0, 0.3) !important;
    box-shadow: none !important;
}

/* ==========================================================================
   13. 右栏：服务承诺（3 栏）
   ========================================================================== */
.apex-hero-product__perks {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px !important;
    list-style: none !important;
    margin: 28px 0 0 !important;
    padding: 20px 0 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.apex-hero-product__perks li {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-family: 'Sora', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    color: #fff !important;
    line-height: 1.3 !important;
}

.apex-hero-product__perks li .material-symbols-outlined {
    font-size: 18px !important;
    color: #ff7a00 !important;
    flex-shrink: 0;
    font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 18;
}

/* ==========================================================================
   14. 响应式：平板（≤1024px）—— 主图缩小，但仍保持 7:5
   ========================================================================== */
@media (max-width: 1200px) {
    .apex-hero-product__grid {
        gap: 48px;
    }
}

@media (max-width: 1024px) {
    .apex-hero-product {
        padding: 32px 0 64px;
    }
    .apex-hero-product__grid {
        grid-template-columns: 6fr 5fr;
        gap: 40px;
    }
    .apex-hero-product__title {
        font-size: clamp(26px, 3vw, 36px) !important;
    }
    .apex-gallery__main img {
        padding: 32px;
    }
}

/* ==========================================================================
   15. 响应式：平板小屏（≤900px）—— 上下堆叠
   ========================================================================== */
@media (max-width: 900px) {
    .apex-hero-product__grid {
        grid-template-columns: 1fr;
        gap: 32px;
        max-width: 720px;
    }
    .apex-hero-product__info {
        position: static;
        padding-top: 0;
    }
    /* 单列时主图限制最大高度 */
    .apex-gallery__main {
        max-height: 560px;
    }
    .apex-gallery__thumbs {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ==========================================================================
   16. 响应式：手机（≤768px）
   ========================================================================== */
@media (max-width: 768px) {
    .apex-hero-product {
        padding: 24px 0 48px;
    }
    .apex-hero-product__grid {
        gap: 24px;
        max-width: 100%;
    }
    .apex-gallery__main {
        border-radius: 16px;
    }
    .apex-gallery__main img {
        padding: 24px;
    }
    .apex-gallery__badge {
        top: 12px !important;
        left: 12px !important;
        font-size: 10px !important;
        padding: 5px 10px !important;
    }
    .apex-gallery__thumbs {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    .apex-hero-product__title {
        font-size: clamp(24px, 7vw, 32px) !important;
    }
    .apex-hero-product__price .apex-price-sale {
        font-size: clamp(32px, 9vw, 42px) !important;
    }
    .apex-countdown {
        flex-wrap: wrap;
        gap: 8px 12px;
    }
    .apex-countdown__digits {
        font-size: 16px !important;
        min-width: 0;
        flex: 1;
    }
    /* 数量 + 加购按钮换行 */
    .apex-hero-product__form .quantity {
        width: 100% !important;
        margin: 0 0 12px 0 !important;
    }
    .apex-hero-product__form .quantity .qty {
        width: 100% !important;
    }
    .apex-hero-product__form .single_add_to_cart_button {
        width: 100% !important;
        height: 56px !important;
    }
    .apex-hero-product__perks {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .apex-hero-product__perks li {
        padding: 10px 14px;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 8px;
    }
}

/* ==========================================================================
   17. 响应式：手机小屏（≤480px）
   ========================================================================== */
@media (max-width: 480px) {
    .apex-gallery__main {
        border-radius: 14px;
    }
    .apex-gallery__main img {
        padding: 16px;
    }
    .apex-gallery__thumb {
        border-radius: 8px;
        border-width: 1.5px;
    }
    .apex-hero-product__title {
        font-size: 26px !important;
    }
    .apex-hero-product__subtitle {
        font-size: 14px !important;
    }
}

/* ==========================================================================
   ✅ FIX-FINAL: Hero 布局 + 缩略图轮播 + 灰度修复（合并最终版）
   ========================================================================== */

/* ============================================
   1. 容器 + Hero 6:4 网格（保留 FIX-18 的部分）
   ============================================ */
.apex-product-page .apex-container {
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
    box-sizing: border-box;
}

.apex-hero-product__grid {
    display: grid;
    grid-template-columns: minmax(0, 58fr) minmax(420px, 42fr);
    gap: 48px;
    align-items: start;
}

.apex-hero-product__gallery,
.apex-hero-product__info {
    min-width: 0;
    width: 100%;
}

@media (max-width: 1024px) {
    .apex-hero-product__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .apex-product-page .apex-container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 640px) {
    .apex-hero-product__grid {
        gap: 24px;
    }
    .apex-product-page .apex-container {
        padding-left: 16px;
        padding-right: 16px;
    }
}


/* ============================================
   2. 标题排版
   ============================================ */
.apex-hero-product__title {
    font-size: clamp(28px, 2.4vw, 40px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 12px 0 8px;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
}

.apex-hero-product__eyebrow {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 122, 0, 0.12);
    border: 1px solid rgba(255, 122, 0, 0.4);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #ff7a00;
    text-transform: uppercase;
}

.apex-hero-product__subtitle {
    color: #9ca3af;
    font-size: 15px;
    margin: 4px 0 16px;
}


/* ============================================
   3. 🔥 核武器级灰度滤镜清除
   ============================================ */
.apex-product-page,
.apex-product-page *,
.apex-product-page *::before,
.apex-product-page *::after,
.apex-hero-product,
.apex-hero-product *,
.apex-hero-product__gallery,
.apex-hero-product__gallery *,
.apex-gallery,
.apex-gallery * {
    filter: none !important;
    -webkit-filter: none !important;
}

.apex-product-page img,
.apex-hero-product img,
.apex-gallery img,
.apex-gallery__main img,
.apex-gallery__thumb img {
    filter: none !important;
    -webkit-filter: none !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
}

/* 移除任何 hover 时的 filter 切换 */
.apex-product-page *:hover,
.apex-hero-product *:hover,
.apex-gallery *:hover,
.apex-gallery img:hover,
.apex-gallery__main:hover img,
.apex-gallery__thumb:hover img {
    filter: none !important;
    -webkit-filter: none !important;
}


/* ============================================
   4. 主图（正方形 + contain 不裁切）
   ============================================ */
.apex-gallery {
    position: relative;
    width: 100%;
    visibility: visible !important;
    opacity: 1 !important;
}

.apex-gallery__main {
    width: 100%;
    aspect-ratio: 1 / 1;              /* ✅ 改正方形 */
    background: #f5f5f5;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.apex-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: contain;               /* ✅ contain 保证不裁切 */
    display: block;
}

/* Best Seller 徽章 */
.apex-gallery__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
    padding: 6px 14px;
    background: #ff7a00;
    color: #000;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.4);
}


/* ============================================
   5. 缩略图：flex 横滚 + 箭头永远可见
   ============================================ */
.apex-gallery__thumbs-wrap {
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    width: 100%;
    position: relative;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
}

.apex-gallery__nav {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    flex: 0 0 36px !important;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #d1d5db;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    visibility: visible !important;
    opacity: 1;
    transition: background 0.25s ease,
                border-color 0.25s ease,
                color 0.25s ease,
                opacity 0.25s ease,
                transform 0.15s ease;
}

.apex-gallery__nav:hover {
    background: rgba(255, 122, 0, 0.18);
    border-color: rgba(255, 122, 0, 0.5);
    color: #ff7a00;
}

.apex-gallery__nav:active {
    transform: scale(0.92);
}

/* 禁用态更明显 */
.apex-gallery__nav[disabled] {
    opacity: 0.25;
    pointer-events: none;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02);
}

.apex-gallery__nav .material-symbols-outlined {
    font-size: 22px !important;
    line-height: 1;
    color: inherit !important;
}

.apex-gallery__thumbs {
    display: flex !important;
    flex-wrap: nowrap !important;
    flex: 1 1 auto !important;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    min-width: 0;
    height: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.apex-gallery__thumbs::-webkit-scrollbar {
    display: none;
}

.apex-gallery__thumb {
    flex: 0 0 calc((100% - 36px) / 4) !important;
    aspect-ratio: 1 / 1;
    background: #1a1a1a;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    scroll-snap-align: start;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    transition: border-color 0.25s ease, transform 0.2s ease;
}

.apex-gallery__thumb:hover {
    border-color: rgba(255, 122, 0, 0.5);
}

.apex-gallery__thumb.is-active {
    border-color: #ff7a00;
    box-shadow: 0 0 0 1px #ff7a00;
}

.apex-gallery__thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.apex-gallery__thumb--video {
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #ff7a00;
}

.apex-gallery__thumb--video .material-symbols-outlined {
    font-size: 36px !important;
}


/* ============================================
   6. 价格区 / 倒计时 / 加购按钮 / Perks
   ============================================ */
.apex-hero-product__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px;
    margin: 16px 0;
}

.apex-price-sale {
    font-size: 36px;
    font-weight: 800;
    color: #ff7a00;
    line-height: 1;
}

.apex-price-regular {
    font-size: 18px;
    color: #6b7280;
    text-decoration: line-through;
}

.apex-price-save {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    background: #ff7a00;
    color: #000;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.apex-countdown {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 122, 0, 0.08);
    border: 1px solid rgba(255, 122, 0, 0.3);
    border-radius: 10px;
    margin: 16px 0;
}

.apex-countdown__digits {
    margin-left: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    font-weight: 700;
    color: #ff7a00;
    letter-spacing: 0.05em;
}

.apex-hero-product__form .single_add_to_cart_button,
.apex-hero-product__form button[type="submit"] {
    width: 100%;
    padding: 16px 24px !important;
    background: #ff7a00 !important;
    color: #000 !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.25s ease;
}

.apex-hero-product__form .single_add_to_cart_button:hover {
    background: #ff8a1f !important;
    transform: translateY(-1px);
}

.apex-hero-product__perks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.apex-hero-product__perks li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    font-size: 11px;
    color: #9ca3af;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.apex-hero-product__perks .material-symbols-outlined {
    color: #ff7a00;
    font-size: 22px !important;
}


/* ============================================
   7. 响应式（缩略图）
   ============================================ */
@media (max-width: 1024px) {
    .apex-gallery__nav {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        flex: 0 0 32px !important;
    }
}

@media (max-width: 768px) {
    .apex-gallery__thumb {
        flex: 0 0 calc((100% - 24px) / 3) !important;
    }
}

@media (max-width: 480px) {
    .apex-gallery__nav {
        display: none !important;
    }
    .apex-gallery__thumb {
        flex: 0 0 calc((100% - 24px) / 4) !important;
    }
}
/* ==========================================================================
   ✅ FIX-21: 修复 Variation 下拉框 <option> 列表白底白字
   ========================================================================== */

/* —— <option> 元素：必须显式给颜色，否则继承 <select> 的 white 导致白底白字 —— */
.apex-hero-product__form .variations select option,
.apex-hero-product__form .variations_form select option,
.apex-hero-product__form select option {
    background: #16171c !important;
    color: #ffffff !important;
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 14px;
}

/* —— "Choose an option" 占位符（disabled option）—— */
.apex-hero-product__form .variations select option[disabled],
.apex-hero-product__form .variations_form select option[disabled],
.apex-hero-product__form select option[disabled] {
    background: #0f1014 !important;
    color: #9ca3af !important;
    font-style: italic;
}

/* —— 选中态（hover/focus）option：橙色高亮 —— */
.apex-hero-product__form .variations select option:checked,
.apex-hero-product__form .variations_form select option:checked,
.apex-hero-product__form select option:checked {
    background: linear-gradient(0deg, #ff7a00 0%, #ff7a00 100%) !important;
    color: #ffffff !important;
    font-weight: 700;
}

/* —— Firefox 专属：option hover 态 —— */
@-moz-document url-prefix() {
    .apex-hero-product__form .variations select option:hover,
    .apex-hero-product__form .variations_form select option:hover {
        background: rgba(255, 122, 0, 0.2) !important;
        color: #ff7a00 !important;
    }
}
/* ==========================================================================
   ✅ FIX-22: 修复 Variation 下拉框文字垂直对齐 / 高度
   ========================================================================== */

.apex-hero-product__form .variations select,
.apex-hero-product__form .variations_form select,
.apex-hero-product__form select {
    /* 🔥 显式高度：消除 Flatsome 全局 form 高度污染 */
    height: 52px !important;
    min-height: 52px !important;
    line-height: 1.4 !important;

    /* 重设 padding：上下用百分比让文字垂直居中 */
    padding: 0 44px 0 18px !important;

    /* 强制单行 + 居中 */
    display: flex !important;
    align-items: center !important;

    /* 字号略增到 15px，更清晰 */
    font-size: 15px !important;
    font-weight: 600 !important;

    /* 防 Flatsome 给 select 加 vertical-align 偏移 */
    vertical-align: middle !important;

    /* 防止文本溢出 */
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/* —— Firefox 不支持 select 用 flex，回退方案 —— */
@-moz-document url-prefix() {
    .apex-hero-product__form .variations select,
    .apex-hero-product__form .variations_form select,
    .apex-hero-product__form select {
        display: block !important;
        padding: 14px 44px 14px 18px !important;
        line-height: 1.4 !important;
    }
}

/* —— Safari / Chrome：select 内部文字基线对齐保护 —— */
@supports (-webkit-appearance: none) {
    .apex-hero-product__form .variations select,
    .apex-hero-product__form .variations_form select {
        padding: 14px 44px 14px 18px !important;
        display: block !important;
        line-height: 24px !important;
    }
}

/* ==========================================================================
   ✅ FIX-MOBILE-01: Trust Badges 移动端横向滑动(露边暗示 + scroll-snap)
   ========================================================================== */
@media (max-width: 768px) {
    /* 让滑动区域突破 .apex-container 的左右 padding,实现真·全宽滑动 */
    .apex-trust .apex-container {
        padding-left: 0;
        padding-right: 0;
    }

    .apex-trust__grid {
        display: flex;
        grid-template-columns: none;
        gap: 14px;
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* 首尾留白 = 容器的 margin-mobile,保证视觉上和其他 section 对齐 */
        padding: 4px var(--margin-mobile) 16px;
        margin: 0;
    }
    .apex-trust__grid::-webkit-scrollbar { display: none; }

    .apex-trust__card {
        flex: 0 0 65%;          /* 单卡占 65% 视口,刻意露出下一张约 30% */
        max-width: 260px;        /* 防止超大屏卡片过宽 */
        min-width: 220px;
        scroll-snap-align: start;
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .apex-trust__card {
        flex: 0 0 70%;
        min-width: 200px;
    }
}

/* ==========================================================================
   ✅ FIX-MOBILE-02: Core Performance 数值长词不被裁切
   策略:允许换行 + 紧字距 + 长词智能断行 + 取消 nowrap
   ========================================================================== */
@media (max-width: 768px) {
    .apex-core-specs__grid .apex-spec-card__value {
        white-space: normal;          /* 取消 nowrap,允许换行 */
        overflow: visible;            /* 取消裁切 */
        text-overflow: clip;
        word-break: break-word;
        overflow-wrap: anywhere;      /* 长词 (450LBS / 7-SPEED) 智能折行 */
        letter-spacing: -0.025em;     /* 紧字距,减少占用宽度 */
        line-height: 1.05;
        font-size: clamp(34px, 9.5vw, 48px);
    }
}

@media (max-width: 600px) {
    .apex-core-specs__grid .apex-spec-card {
        padding: 22px 18px 20px;       /* 微缩内边距,让数值有更多可用宽度 */
    }
    .apex-core-specs__grid .apex-spec-card__value {
        font-size: clamp(30px, 9vw, 42px);
    }
    .apex-core-specs__grid .apex-spec-card__label {
        font-size: 11px;                /* 标签也轻微收缩,平衡卡片视觉 */
        letter-spacing: 0.12em;
    }
}

@media (max-width: 380px) {
    .apex-core-specs__grid .apex-spec-card__value {
        font-size: clamp(28px, 8.5vw, 38px);
    }
}

/* ==========================================================================
   ✅ FIX-MOBILE-05: Engineering 移动端改 Accordion(取代横滑 Tab)
   策略:Tab 和 Panel 在移动端"虚拟配对"成一张折叠卡片
   PC 端逻辑完全不变,只在 ≤1024px 重构视觉
   ========================================================================== */

@media (max-width: 1024px) {
    /* ① 取消之前 FIX-MOBILE-03 的 mask + 横滑样式(避免冲突) */
    .apex-engineering__tabs {
        -webkit-mask-image: none !important;
        mask-image: none !important;
        padding: 0 !important;
        scrollbar-width: none;
    }
    .apex-engineering__tabs::-webkit-scrollbar { display: none; }

    /* ② 布局改为单列纵向堆叠,Tab 列表整体作为"卡片头部容器" */
    .apex-engineering__layout {
        display: block;          /* 不再用 grid,改成纯 block 流 */
        gap: 0;
    }

    /* ③ Tab 列表:纵向 flex,每张 Tab 变成"折叠卡片头" */
    .apex-engineering__tabs {
        display: flex;
        flex-direction: column;
        gap: 12px;
        overflow: visible;       /* 关键:不再横向滚动 */
        padding: 0;
        margin: 0 0 0 0;
    }

    /* ④ 单个 Tab → 卡片头(全宽 + 圆角 + 右侧箭头指示) */
    .apex-engineering__tab {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        flex-shrink: 1;
        min-width: 0;
        width: 100%;
        padding: 20px 56px 20px 24px;  /* 右侧留 56px 给箭头 */
        background: var(--card-gradient);
        border: 1px solid var(--surface-stroke);
        border-left: 1px solid var(--surface-stroke);
        border-bottom: 3px solid transparent;
        border-radius: 14px;
        text-align: left;
        position: relative;
        cursor: pointer;
        transition: border-color 0.3s ease, background 0.3s ease;
    }
    .apex-engineering__tab:hover { transform: none; }

    /* ⑤ Active(展开)状态:橙色边框 + 渐变背景 + 箭头旋转 */
    .apex-engineering__tab.is-active {
        border-color: var(--primary);
        border-bottom-color: var(--primary);
        background: linear-gradient(180deg, rgba(255,122,0,0.08) 0%, rgba(255,122,0,0.02) 100%);
    }
    .apex-engineering__tab.is-active::before {
        content: none;            /* 取消之前的左侧/底部装饰条 */
        display: none;
    }

    /* ⑥ 右侧 Chevron 箭头(伪元素,自动旋转) */
    .apex-engineering__tab::after {
        content: '';
        position: absolute;
        top: 50%;
        right: 22px;
        width: 10px;
        height: 10px;
        border-right: 2px solid var(--text-muted);
        border-bottom: 2px solid var(--text-muted);
        transform: translateY(-75%) rotate(45deg);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                    border-color 0.3s ease;
        pointer-events: none;
    }
    .apex-engineering__tab.is-active::after {
        border-right-color: var(--primary);
        border-bottom-color: var(--primary);
        transform: translateY(-25%) rotate(-135deg);  /* 箭头朝上 */
    }

    /* ⑦ Tab 内文字精简(标题 + 副标题 紧凑) */
    .apex-engineering__tab h3 {
        font-size: 16px;
        margin: 0 0 4px;
        line-height: 1.25;
    }
    .apex-engineering__tab p {
        font-size: 13px;
        margin: 0;
        line-height: 1.4;
        color: var(--text-muted);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* ==========================================================================
       Panels 容器:不再固定位置,改为"插槽"模式
       PC 端是 Tabs | Panels 左右排,移动端这里简单用 display: contents
       让每个 Panel 能"配对"到对应 Tab 下方
       ========================================================================== */
    .apex-engineering__panels {
        display: contents;        /* 关键:让 panels 容器透明化,子 panel 直接成为 layout 子元素 */
        background: transparent;
        border: none;
        min-height: 0;
        box-shadow: none;
    }

    /* ⑧ Panel 默认隐藏(高度 0 + opacity),配合 JS is-active 类展开 */
    .apex-engineering__panel {
        display: block;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        background: var(--card-gradient);
        border: 1px solid var(--surface-stroke);
        border-radius: 14px;
        margin: -8px 0 12px;       /* 负 margin 让 panel 视觉上"贴住"上方 Tab */
        transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.4s ease,
                    margin 0.4s ease;
        animation: none;            /* 取消之前的 fadeIn 动画 */
    }

    .apex-engineering__panel.is-active {
        max-height: 1200px;        /* 足够大,覆盖最长内容 */
        opacity: 1;
        border-color: var(--primary-stroke);
        margin: -8px 0 16px;
    }

    /* ⑨ Panel 内部图片高度收敛 */
    .apex-engineering__image {
        height: 200px;
    }
    .apex-engineering__content {
        padding: 24px 22px 28px;
    }
    .apex-engineering__metric {
        font-size: clamp(40px, 11vw, 56px);
    }
    .apex-engineering__title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    .apex-engineering__desc {
        font-size: 14.5px;
        line-height: 1.6;
    }
}

@media (max-width: 600px) {
    .apex-engineering__tab {
        padding: 18px 50px 18px 20px;
    }
    .apex-engineering__tab h3 { font-size: 15px; }
    .apex-engineering__tab p { font-size: 12.5px; }
    .apex-engineering__image { height: 180px; }
    .apex-engineering__content {
        padding: 22px 20px 24px;
    }
}
/* ==========================================================================
   ✅ FIX-MOBILE-04: Rider Feedback "Add a Review" 表单视觉重置
   定位的 3 个问题:
   1. .review-form-inner.has-border —— Flatsome 默认蓝边
   2. .stars 里 <a> 的 "X of 5 stars" 文字泄漏
   3. comment-form-rating 整体排版混乱
   ========================================================================== */

/* —— 1. 干掉 Flatsome 的 has-border 蓝边,改用 Apex 暗黑卡片 —— */
.apex-reviews #review_form_wrapper,
.apex-reviews #review_form,
.apex-reviews #review_form .col-inner,
.apex-reviews .review-form-inner,
.apex-reviews .review-form-inner.has-border {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* —— 2. 重新包装整个表单为 Apex 风格暗黑卡片 —— */
.apex-reviews #review_form_wrapper {
    margin-top: 56px !important;
    padding: 36px 36px 32px !important;
    background: linear-gradient(180deg, #16171c 0%, #0f1014 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4) !important;
    position: relative;
    overflow: hidden;
}

/* 表单顶部橙色装饰线(与 Promise / Reviews summary 呼应) */
.apex-reviews #review_form_wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff7a00, transparent);
    opacity: 0.4;
}

/* —— 3. 标题"Add a review" —— */
.apex-reviews #reply-title.comment-reply-title,
.apex-reviews .comment-reply-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--on-surface);
    letter-spacing: -0.01em;
    margin: 0 0 24px;
    padding: 0;
    border: none;
    display: block;
}
.apex-reviews .comment-reply-title small a {
    font-size: 13px;
    color: var(--text-muted);
    margin-left: 12px;
    font-weight: 400;
}

/* ==========================================================================
   星级选择器(.comment-form-rating)— 核心修复
   原始 DOM: <p class="stars"><a><a><a><a><a></a></p>
   每个 <a> 的文字是 "1 of 5 stars"... 我们要把文字隐藏只留 ★
   ========================================================================== */
.apex-reviews .comment-form-rating {
    margin: 0 0 24px;
    padding: 0;
    border: none;
}

.apex-reviews .comment-form-rating > label[for="rating"] {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 12px;
}

/* 星星容器:横向 flex 排列,去掉所有默认边框 */
.apex-reviews .comment-form-rating p.stars,
.apex-reviews p.stars {
    display: flex !important;
    flex-direction: row !important;
    gap: 4px;
    margin: 0;
    padding: 0;
    border: none !important;
    background: transparent !important;
    line-height: 1;
}

/* 单个星星按钮:重置一切 + 用 :before 显示 ★ */
.apex-reviews p.stars a {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 32px;
    text-indent: -9999px;        /* 把 "1 of 5 stars" 文字踢出可视区 */
    overflow: hidden;
    border: none !important;
    border-left: none !important;  /* 重要:覆盖你之前 .apex-faq__a 那种全局 border-left 污染 */
    background: transparent !important;
    padding: 0;
    margin: 0;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.apex-reviews p.stars a::before {
    content: '★';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-indent: 0;
    font-size: 28px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.18);
    transition: color 0.2s ease, transform 0.2s ease;
}

/* Hover / 当前 hover 之前的星星都点亮 */
.apex-reviews p.stars a:hover::before,
.apex-reviews p.stars a.active::before {
    color: var(--primary);
    transform: scale(1.1);
}

/* 已选中的星级:直接 active 类(WooCommerce 行为) */
.apex-reviews p.stars.selected a.active::before,
.apex-reviews p.stars.selected a:not(.active)::before {
    color: rgba(255, 255, 255, 0.18);
}
.apex-reviews p.stars.selected a.active ~ a::before {
    color: rgba(255, 255, 255, 0.18);
}
.apex-reviews p.stars.selected a.active::before,
.apex-reviews p.stars.selected a.active ~ a:hover::before {
    color: var(--primary);
}

/* 兜底:如果 WooCommerce 给了 .star-1 ~ .star-5 类,也能正确点亮 */
.apex-reviews p.stars a.star-1,
.apex-reviews p.stars a.star-2,
.apex-reviews p.stars a.star-3,
.apex-reviews p.stars a.star-4,
.apex-reviews p.stars a.star-5 {
    width: 32px;
    height: 32px;
}

/* ==========================================================================
   评论文本框 + 提交按钮
   ========================================================================== */
.apex-reviews .comment-form-comment {
    margin: 0 0 24px;
}
.apex-reviews .comment-form-comment label[for="comment"] {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 12px;
}
.apex-reviews #commentform textarea#comment,
.apex-reviews textarea#comment {
    width: 100%;
    min-height: 140px;
    background: var(--surface) !important;
    border: 1px solid var(--surface-stroke-strong) !important;
    color: var(--on-surface) !important;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    padding: 16px 18px;
    border-radius: 12px;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.apex-reviews textarea#comment:focus {
    outline: none;
    border-color: var(--primary-stroke) !important;
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.12) !important;
}

/* —— Submit 按钮 —— */
.apex-reviews .form-submit {
    margin: 24px 0 0;
}
.apex-reviews .form-submit input.submit,
.apex-reviews input#submit.submit {
    background: var(--primary) !important;
    color: var(--on-primary) !important;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 14px 36px;
    border: none !important;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    box-shadow: 0 8px 24px rgba(255, 122, 0, 0.25);
}
.apex-reviews .form-submit input.submit:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 122, 0, 0.35);
}

/* ==========================================================================
   响应式:移动端紧凑
   ========================================================================== */
@media (max-width: 768px) {
    .apex-reviews #review_form_wrapper {
        padding: 28px 22px 24px !important;
        margin-top: 40px !important;
        border-radius: 16px !important;
    }
    .apex-reviews .comment-reply-title { font-size: 20px; margin-bottom: 20px; }
    .apex-reviews p.stars a {
        width: 36px;
        height: 36px;
    }
    .apex-reviews p.stars a::before {
        font-size: 32px;
    }
    .apex-reviews textarea#comment {
        min-height: 120px;
        font-size: 14px;
    }
    .apex-reviews .form-submit input.submit {
        width: 100%;
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .apex-reviews #review_form_wrapper {
        padding: 24px 18px 22px !important;
    }
    .apex-reviews p.stars { gap: 6px; }
}

/* ==========================================================================
   ✅ MIN-FIX-01: 隐藏 (store manager) / (admin) 等角色标识
   WP/WC 默认会在评论作者后面输出 <em class="says">(store manager)</em>
   ========================================================================== */
.apex-reviews .commentlist .says,
.apex-reviews .commentlist .meta em,
.apex-reviews .commentlist .comment-author em,
.apex-reviews .commentlist em.role,
.apex-reviews .woocommerce-Reviews .says {
    display: none !important;
}

/* ==========================================================================
   ✅ MIN-FIX-03: 隐藏评论表单的 select#rating(消除 "Rate..." 闪现)
   WC 的 JS 隐藏会有延迟,这里用 CSS 永久强制隐藏,绕开 FOUC
   ========================================================================== */
.apex-reviews #rating,
.apex-reviews select#rating,
.apex-reviews .comment-form-rating select {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* ==========================================================================
   ✅ STAR-FINAL: 评论星级系统终极重写
   核心策略:
   1. 完全抛弃 WC 的 star 字体(网站根本没加载它)
   2. 完全抛弃 :before 的字符渲染,改用纯 SVG 背景图
   3. 评论列表星级:用 background-image + percentage mask 实现 0~100% 任意比例
   4. 表单选择器:正常 row 顺序 + :has() 反选,1→5 从左到右
   ========================================================================== */


/* ==========================================================================
   PART A:评论列表 / Hero / Summary 星级展示
   原理:
   - 背景层(空心星):整个 .star-rating 容器铺满 5 颗灰色 ☆ 的 SVG
   - 前景层(实心星):内层 <span> 通过 width 百分比露出对应数量的橙色 ★
   - 用 SVG data URI 完全消除字体依赖
   ========================================================================== */

/* —— 容器:固定宽度,清空所有继承,作为星级"画布" —— */
.apex-reviews .star-rating {
    position: relative !important;
    display: inline-block !important;
    width: 6em !important;
    height: 1.2em !important;
    overflow: hidden !important;
    /* 背景层:5 颗灰色空心星(用 SVG,确保跨浏览器一致) */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='20' viewBox='0 0 100 20'><g fill='%23404040'><polygon points='10,2 12.4,7.5 18,8.2 13.7,12.5 14.7,18.2 10,15.4 5.3,18.2 6.3,12.5 2,8.2 7.6,7.5'/><polygon points='30,2 32.4,7.5 38,8.2 33.7,12.5 34.7,18.2 30,15.4 25.3,18.2 26.3,12.5 22,8.2 27.6,7.5'/><polygon points='50,2 52.4,7.5 58,8.2 53.7,12.5 54.7,18.2 50,15.4 45.3,18.2 46.3,12.5 42,8.2 47.6,7.5'/><polygon points='70,2 72.4,7.5 78,8.2 73.7,12.5 74.7,18.2 70,15.4 65.3,18.2 66.3,12.5 62,8.2 67.6,7.5'/><polygon points='90,2 92.4,7.5 98,8.2 93.7,12.5 94.7,18.2 90,15.4 85.3,18.2 86.3,12.5 82,8.2 87.6,7.5'/></g></svg>") !important;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    /* 清空 WC 字体相关 */
    font-size: 16px !important;
    font-family: inherit !important;
    color: transparent !important;
    line-height: 1.2 !important;
    text-indent: -9999px !important;
    margin: 0 0 12px;
}

/* 干掉 WC 默认 :before 的星字体输出(防止冲突) */
.apex-reviews .star-rating::before {
    content: none !important;
    display: none !important;
}

/* —— 前景层:内层 <span> 用 width 百分比露出橙色实心星 —— */
.apex-reviews .star-rating > span {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
    /* 前景:5 颗橙色实心星 */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='20' viewBox='0 0 100 20'><g fill='%23ff7a00'><polygon points='10,2 12.4,7.5 18,8.2 13.7,12.5 14.7,18.2 10,15.4 5.3,18.2 6.3,12.5 2,8.2 7.6,7.5'/><polygon points='30,2 32.4,7.5 38,8.2 33.7,12.5 34.7,18.2 30,15.4 25.3,18.2 26.3,12.5 22,8.2 27.6,7.5'/><polygon points='50,2 52.4,7.5 58,8.2 53.7,12.5 54.7,18.2 50,15.4 45.3,18.2 46.3,12.5 42,8.2 47.6,7.5'/><polygon points='70,2 72.4,7.5 78,8.2 73.7,12.5 74.7,18.2 70,15.4 65.3,18.2 66.3,12.5 62,8.2 67.6,7.5'/><polygon points='90,2 92.4,7.5 98,8.2 93.7,12.5 94.7,18.2 90,15.4 85.3,18.2 86.3,12.5 82,8.2 87.6,7.5'/></g></svg>") !important;
    background-size: 6em 100% !important;       /* 关键:背景大小 = 容器全宽,这样 width 百分比正好"截取"对应数量的星 */
    background-repeat: no-repeat !important;
    background-position: left center !important;
    /* 隐藏所有文字 */
    color: transparent !important;
    text-indent: -9999px !important;
    font-size: 16px !important;
    /* span 的 width 由 WC inline style 控制(width:100% 显示 5 颗,width:80% 显示 4 颗) */
}

/* 清掉 span 的 :before 默认输出 */
.apex-reviews .star-rating > span::before {
    content: none !important;
    display: none !important;
}

/* 隐藏 span 内任何文本子节点(strong.rating 等) */
.apex-reviews .star-rating > span > * {
    display: none !important;
}


/* ==========================================================================
   PART B:Add a Review 表单 — 5 星交互选择器
   原理:正常 row 顺序 + :has(~ a:hover) 反选实现"前面星跟着亮"
   ========================================================================== */

.apex-reviews .comment-form-rating p.stars,
.apex-reviews p.stars {
    display: inline-flex !important;
    flex-direction: row !important;     /* 正常顺序:左 1 → 右 5 */
    gap: 4px !important;
    margin: 0;
    padding: 0;
    background: transparent !important;
    border: none !important;
}

.apex-reviews p.stars a {
    display: inline-block !important;
    position: relative;
    width: 32px !important;
    height: 32px !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
    border: none !important;
    border-left: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
}

/* 默认:全部空心灰(用 SVG,不依赖字体) */
.apex-reviews p.stars a::before {
    content: '' !important;
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='%23404040'><polygon points='12,2 14.9,8.6 22,9.3 16.5,14.4 18,21.5 12,17.8 6,21.5 7.5,14.4 2,9.3 9.1,8.6'/></svg>") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    transition: transform 0.15s ease;
}

/* —— 🔥 当前 hover 的 <a>:橙色 —— */
.apex-reviews p.stars a:hover::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='%23ff7a00'><polygon points='12,2 14.9,8.6 22,9.3 16.5,14.4 18,21.5 12,17.8 6,21.5 7.5,14.4 2,9.3 9.1,8.6'/></svg>") !important;
    transform: scale(1.08);
}

/* —— 🔥 hover 当前 <a> 时,它前面的兄弟 <a> 也亮(用 :has 反选)—— */
.apex-reviews p.stars a:has(~ a:hover)::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='%23ff7a00'><polygon points='12,2 14.9,8.6 22,9.3 16.5,14.4 18,21.5 12,17.8 6,21.5 7.5,14.4 2,9.3 9.1,8.6'/></svg>") !important;
}

/* —— 已选中状态:.selected .active 这颗及它前面的兄弟亮 —— */
.apex-reviews p.stars.selected a.active::before,
.apex-reviews p.stars.selected a:has(~ a.active)::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='%23ff7a00'><polygon points='12,2 14.9,8.6 22,9.3 16.5,14.4 18,21.5 12,17.8 6,21.5 7.5,14.4 2,9.3 9.1,8.6'/></svg>") !important;
}

/* —— 兜底方案:基于 .star-1 ~ .star-5 类(WC 老版本)—— */
.apex-reviews p.stars.selected.star-5 a::before { 
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='%23ff7a00'><polygon points='12,2 14.9,8.6 22,9.3 16.5,14.4 18,21.5 12,17.8 6,21.5 7.5,14.4 2,9.3 9.1,8.6'/></svg>") !important;
}
.apex-reviews p.stars.selected.star-4 a:nth-child(-n+4)::before { 
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='%23ff7a00'><polygon points='12,2 14.9,8.6 22,9.3 16.5,14.4 18,21.5 12,17.8 6,21.5 7.5,14.4 2,9.3 9.1,8.6'/></svg>") !important;
}
.apex-reviews p.stars.selected.star-3 a:nth-child(-n+3)::before { 
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='%23ff7a00'><polygon points='12,2 14.9,8.6 22,9.3 16.5,14.4 18,21.5 12,17.8 6,21.5 7.5,14.4 2,9.3 9.1,8.6'/></svg>") !important;
}
.apex-reviews p.stars.selected.star-2 a:nth-child(-n+2)::before { 
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='%23ff7a00'><polygon points='12,2 14.9,8.6 22,9.3 16.5,14.4 18,21.5 12,17.8 6,21.5 7.5,14.4 2,9.3 9.1,8.6'/></svg>") !important;
}
.apex-reviews p.stars.selected.star-1 a:nth-child(1)::before { 
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='%23ff7a00'><polygon points='12,2 14.9,8.6 22,9.3 16.5,14.4 18,21.5 12,17.8 6,21.5 7.5,14.4 2,9.3 9.1,8.6'/></svg>") !important;
}
/* ==========================================================================
   ✅ FIX: Section Title 移动端字号修复
   作用：防止 .apex-section-title 在小屏溢出
   影响范围：仅移动端，桌面完全不受影响
   ========================================================================== */

@media (max-width: 768px) {
    .apex-section-title {
        font-size: clamp(26px, 7vw, 36px) !important;
        letter-spacing: -0.015em !important;
        margin-bottom: 32px !important;
    }
}

@media (max-width: 480px) {
    .apex-section-title {
        font-size: clamp(22px, 6.5vw, 28px) !important;
        letter-spacing: -0.01em !important;
        margin-bottom: 24px !important;
    }
}
