/* ==========================================================================
   Auras Shortcodes — 全局样式表
   对应: auras-shortcode.php
   版本号由 PHP 中的 AURAS_SC_VER 常量管理，修改样式后记得同步更新版本号。
   ========================================================================== */


/* ==========================================================================
   1. 分类导航 (auras_modern_cats)
   ========================================================================== */

/* 容器：CSS Grid 自动平分宽度 */
.auras-cats-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 移动端固定 4 列 */
    gap: 16px 12px;
    margin: 24px 0;
    width: 100%;
}
@media (min-width: 768px) {
    .auras-cats-wrap {
        grid-template-columns: repeat(var(--auras-cats-cols, 6), 1fr); /* PC 端列数由参数控制 */
        gap: 24px;
        margin: 36px 0;
    }
}

/* 移动端横向滑动模式：一行展示，露出后续内容，减少首屏占高 */
@media (max-width: 767px) {
    .auras-cats-wrap--mobile-scroll {
        display: flex;
        grid-template-columns: none;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 18px 0 20px;
        padding: 0 14px 8px 0;
        -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
        mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
    }
    .auras-cats-wrap--mobile-scroll::-webkit-scrollbar {
        display: none;
    }
    .auras-cats-wrap--mobile-scroll .auras-cat-item {
        flex: 0 0 clamp(78px, 23vw, 102px);
        scroll-snap-align: start;
    }
}

/* 卡片链接项 */
.auras-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    width: 100%;
    transition: transform 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.auras-cat-item:hover {
    transform: translateY(-4px);
}

/* 图片容器 */
.auras-cat-img-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%; /* 移动端：圆形 */
    overflow: hidden;
    margin-bottom: 10px;
    background: #fafafa;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s;
}
@media (min-width: 768px) {
    .auras-cat-img-box {
        border-radius: 16px; /* PC 端：大圆角卡片 */
        margin-bottom: 14px;
    }
}
.auras-cat-item:hover .auras-cat-img-box {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.auras-cat-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 文字 */
.auras-cat-title {
    font-size: 12px;
    font-weight: 600;
    color: #1a1210;
    text-align: center;
    line-height: 1.25;
    margin: 0;
}
@media (min-width: 768px) {
    .auras-cat-title {
        font-size: 15px;
        font-weight: 700;
    }
}
.auras-cat-count {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
    text-align: center;
}

/* ==========================================================================
   1.1 分类导航 - 无图胶囊模式补充样式
   ========================================================================== */

/* 外层容器：使用 Flex 自动换行排列，适应移动端紧凑布局 */
.auras-cats-wrap--text {
    display: flex;
    flex-wrap: wrap; 
    gap: 10px;
    margin: 16px 0;
    justify-content: center; /* 默认居中，如果需要左对齐可改为 flex-start */
}
@media (min-width: 768px) {
    .auras-cats-wrap--text {
        gap: 14px;
        margin: 24px 0;
    }
}
@media (max-width: 767px) {
    .auras-cats-wrap--text.auras-cats-wrap--mobile-scroll {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    .auras-cats-wrap--text.auras-cats-wrap--mobile-scroll .auras-cat-pill {
        flex: 0 0 auto;
        scroll-snap-align: start;
        white-space: nowrap;
    }
}

/* 胶囊按钮本体 */
.auras-cat-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fdf8f5; /* 配合你网站整体风格的暖白色底 */
    color: #222;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 40px; /* 大圆角形成胶囊状 */
    text-decoration: none !important;
    border: 1px solid #efe5df;
    transition: all 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}
@media (min-width: 768px) {
    .auras-cat-pill {
        font-size: 14px;
        padding: 12px 24px;
    }
}

/* 悬停与点击状态：加深反差引导点击 */
.auras-cat-pill:hover,
.auras-cat-pill:active {
    background: #c8102e; /* 呼应你网站的红色主色调 */
    color: #fff;
    border-color: #c8102e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.2);
}

/* 如果开启了显示数量，数字的样式 */
.auras-cat-count-pill {
    font-size: 11px;
    margin-left: 5px;
    opacity: 0.6;
    font-weight: 500;
}
.auras-cat-pill:hover .auras-cat-count-pill {
    opacity: 0.9;
}

/* ==========================================================================
   2. 双拼广告 Banner (auras_promo_banners)
   ========================================================================== */

.auras-promo-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0 0 40px;
}
@media (min-width: 768px) {
    .auras-promo-wrap {
        flex-direction: row;
        gap: 24px;
        margin: 0 0 60px;
    }
}

.auras-promo-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 16px;
    text-decoration: none !important;
    background: #111;
    width: 100%;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
@media (min-width: 768px) {
    .auras-promo-item {
        flex: 1;
        min-width: 0;
    }
}

/* 图片容器 */
.auras-promo-img-box {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
@media (min-width: 768px) {
    .auras-promo-img-box {
        aspect-ratio: unset;
        height: var(--auras-promo-height, 420px);
    }
}
.auras-promo-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.auras-promo-item:hover .auras-promo-img-box img {
    transform: scale(1.05);
}

/* 遮罩层 */
.auras-promo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
}

/* 文字内容区 */
.auras-promo-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 20px;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
@media (min-width: 768px) {
    .auras-promo-content {
        padding: 36px 30px;
    }
}

/* 角标 */
.auras-promo-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* 标题 */
.auras-promo-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px 0;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
@media (min-width: 768px) {
    .auras-promo-title {
        font-size: 28px;
        margin-bottom: 8px;
    }
}

/* 副描述 */
.auras-promo-desc {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 20px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
@media (min-width: 768px) {
    .auras-promo-desc {
        font-size: 17px;
        margin-bottom: 24px;
    }
}

/* 按钮 */
.auras-promo-btn {
    display: inline-block;
    background: #fff;
    color: #111 !important;
    font-size: 12px;
    font-weight: 800;
    padding: 12px 26px;
    border-radius: 6px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background 0.2s, transform 0.2s;
}
.auras-promo-item:hover .auras-promo-btn {
    background: #f4f4f4;
    transform: translateY(-2px);
}


/* ==========================================================================
   3. 区块标题 (auras_section_title)
   ========================================================================== */

/* 外层容器 */
.auras-sec-title-wrap {
    text-align: center;
    width: 100%;
    clear: both;
    display: flex;  
    flex-direction: column;  
    align-items: center;  
}

/* ── 间距引擎：通过 spacing 参数切换 ── */
.auras-sec-title-wrap--space-normal { padding: 45px 0 25px; }
.auras-sec-title-wrap--space-tight  { padding: 20px 0 20px; }
.auras-sec-title-wrap--space-none   { padding: 5px  0 15px; }

@media (min-width: 768px) {
    .auras-sec-title-wrap--space-normal { padding: 80px 0 45px; }
    .auras-sec-title-wrap--space-tight  { padding: 35px 0 30px; }
    .auras-sec-title-wrap--space-none   { padding: 10px 0 20px; }
}

/* 主标题文字 */
.auras-sec-title {
    font-size: 20px;
    font-weight: 500;
    color: #3a3a3a;
    line-height: 1.2;
    margin: 0 !important;
    letter-spacing: -0.3px;
    position: relative;
    z-index: 2;
}
@media (min-width: 768px) {
    .auras-sec-title {
        font-size: 28px;
    }
}

/* 风格 1：经典双横线夹标题 */
.auras-sec-title--style-1 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.auras-sec-title--style-1::before,
.auras-sec-title--style-1::after {
    content: "";
    display: block;
    width: 30px;
    height: 2px;
    background: #c8102e;
    border-radius: 2px;
    opacity: 0.55;
}
@media (min-width: 768px) {
    .auras-sec-title--style-1 {
        gap: 24px;
    }
    .auras-sec-title--style-1::before,
    .auras-sec-title--style-1::after {
        width: 50px;
    }
}

/* 风格 2：浅色背景大字底纹 */
.auras-sec-title__style-2 {
    display: grid;
    place-items: center;
    position: relative;
}
.auras-sec-title__style-2 > * {
    grid-area: 1 / 1;
}
.auras-sec-title__bg {
    font-size: 42px;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    letter-spacing: 2px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
    text-transform: uppercase;
    margin: 0 !important;
    line-height: 1;
}
@media (min-width: 768px) {
    .auras-sec-title__bg {
        font-size: 72px;
        letter-spacing: 6px;
    }
}

/* 风格 3：顶部小标签 + 主标题 */
.auras-sec-title__style-3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.auras-sec-title__tag {
    font-size: 11px;
    font-weight: 800;
    color: #c8102e;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.8;
    margin: 0 !important;
    line-height: 1;
}
@media (min-width: 768px) {
    .auras-sec-title__style-3 {
        gap: 16px;
    }
    .auras-sec-title__tag {
        font-size: 13px;
    }
}

/* 副标题/描述 */
.auras-sec-title-desc {
    font-size: 14px;
    color: #1a1210;
    margin: 16px auto 0;
    max-width: 600px;
    line-height: 1.5;
    font-weight: 400;
}
@media (min-width: 768px) {
    .auras-sec-title-desc {
        font-size: 16px;
        margin-top: 30px;
    }
}

/* 底部链接/按钮 */
.auras-sec-title-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    padding: 10px 24px;
    border: 1.5px solid #1a1210;
    color: #1a1210;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.25s ease;
}
/* 悬停时反转颜色 */
.auras-sec-title-link:hover {
    background: #1a1210;
    color: #ffffff;
}
@media (min-width: 768px) {
    .auras-sec-title-link {
        padding: 12px 32px;
        font-size: 15px;
        margin-top: 32px;
    }
}


/* ==========================================================================
   4. 流程步骤 (auras_how_it_works)
   ========================================================================== */

.auras-hiw-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 移动端：2×2 */
    gap: 16px;
    margin: 8px 0 32px;
}
@media (min-width: 768px) {
    .auras-hiw-wrap {
        grid-template-columns: repeat(4, 1fr); /* PC 端：单行 */
        gap: 0;
        margin: 8px 0 40px;
    }
}

.auras-hiw-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border-radius: 14px;
    padding: 20px 12px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.05);
    position: relative;
}
@media (min-width: 768px) {
    .auras-hiw-step {
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        padding: 24px 8px;
    }
    /* PC 端步骤间箭头 */
    .auras-hiw-step:not(:last-child)::after {
        content: "→";
        position: absolute;
        right: -14px;
        top: 46px;
        font-size: 20px;
        color: #c8102e;
        opacity: 0.45;
    }
}

/* 步骤序号圆标 */
.auras-hiw-num {
    position: absolute;
    top: 12px;
    left: calc(50% + 16px);
    width: 20px;
    height: 20px;
    background: #c8102e;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 图标背景圆 */
.auras-hiw-icon {
    font-size: 30px;
    background: #fdf0f0;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    flex-shrink: 0;
}
@media (min-width: 768px) {
    .auras-hiw-icon {
        width: 70px;
        height: 70px;
        font-size: 34px;
    }
}

/* 步骤标题 */
.auras-hiw-title {
    font-size: 14px;
    font-weight: 800;
    color: #1a1210;
    margin-bottom: 5px;
}
@media (min-width: 768px) {
    .auras-hiw-title {
        font-size: 15px;
    }
}

/* 步骤描述 */
.auras-hiw-desc {
    font-size: 12px;
    color: #6b5f5a;
    line-height: 1.45;
}
@media (min-width: 768px) {
    .auras-hiw-desc {
        font-size: 13px;
    }
}


/* ==========================================================================
   5. 数字证明条 (auras_proof_stats)
   ========================================================================== */

.auras-proof-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 移动端：2×2 */
    margin: 10px auto 30px;
    max-width: 1200px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 14px 0;
}
@media (min-width: 768px) {
    .auras-proof-wrap {
        grid-template-columns: repeat(4, 1fr);
        margin: 20px auto 40px;
        padding: 24px 0;
    }
}

.auras-proof-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8px 0;
}
@media (min-width: 768px) {
    .auras-proof-item {
        padding: 10px 0;
    }
    /* PC 端项目间分隔线 */
    .auras-proof-item:not(:last-child)::after {
        content: "";
        position: absolute;
        right: 0;
        top: 15%;
        height: 70%;
        width: 1px;
        background: rgba(0, 0, 0, 0.04);
    }
}

.auras-proof-num {
    font-size: 24px;
    font-weight: 800;
    color: #c8102e;
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}
@media (min-width: 768px) {
    .auras-proof-num {
        font-size: 34px;
        margin-bottom: 6px;
    }
}

.auras-proof-label {
    font-size: 11px;
    color: #666;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
@media (min-width: 768px) {
    .auras-proof-label {
        font-size: 12px;
    }
}


/* ==========================================================================
   6. 核心服务承诺 (auras_trust_features)
   ========================================================================== */

.auras-trust-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 移动端：2×2 */
    gap: 16px 8px;
    margin: 10px auto 30px;
    max-width: 1200px;
}
@media (min-width: 768px) {
    .auras-trust-wrap {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
        margin: 20px auto 40px;
    }
}

.auras-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* 图标背景圆 */
.auras-trust-icon {
    font-size: 20px;
    margin-bottom: 6px;
    background: #fdf8f5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (min-width: 768px) {
    .auras-trust-icon {
        font-size: 24px;
        width: 56px;
        height: 56px;
        margin-bottom: 10px;
    }
}

.auras-trust-title {
    font-size: 13px;
    font-weight: 700;
    color: #222;
    margin: 0 0 2px 0;
    line-height: 1.2;
}
@media (min-width: 768px) {
    .auras-trust-title {
        font-size: 15px;
        margin-bottom: 4px;
    }
}

.auras-trust-desc {
    font-size: 11px;
    color: #777;
    line-height: 1.3;
    margin: 0;
}
@media (min-width: 768px) {
    .auras-trust-desc {
        font-size: 12px;
    }
}


/* ==========================================================================
   7. 横向滑动特卖区 (auras_swipe_deals)
   ========================================================================== */

.auras-swipe-sec {
    margin: 0 0 40px;
}
@media (min-width: 768px) {
    .auras-swipe-sec {
        margin: 0 0 60px;
    }
}

/* 可选内置标题行（推荐改用 auras_section_title 短代码） */
.auras-swipe-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    padding: 0 4px;
}
.auras-swipe-header-title {
    font-size: 22px;
    font-weight: 800;
    color: #111;
    margin: 0;
    letter-spacing: -0.5px;
}

/* 横向滚动轨道 */
.auras-swipe-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 12px; /* 为卡片悬浮阴影留出空间 */
}
.auras-swipe-track::-webkit-scrollbar {
    display: none;
}
@media (min-width: 768px) {
    .auras-swipe-track {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        overflow-x: visible;
        gap: 24px;
        padding-bottom: 0;
    }
}

/* 商品卡片 */
.auras-swipe-card {
    scroll-snap-align: start;
    flex: 0 0 75%; /* 移动端：每次露出下一张 */
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    text-decoration: none !important;
    transition: box-shadow 0.3s, transform 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}
@media (min-width: 768px) {
    .auras-swipe-card {
        flex: unset;
    }
}
.auras-swipe-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transform: translateY(-3px);
}

/* 商品图片 */
.auras-swipe-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #fafafa;
}

/* 折扣圆形角标 */
.auras-swipe-sale-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #e81c4c;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(232, 28, 76, 0.3);
    z-index: 2;
}

/* 文字信息区 */
.auras-swipe-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.auras-swipe-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 价格区 */
.auras-swipe-price-wrap {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.auras-swipe-price-wrap ins {
    text-decoration: none;
    color: #e81c4c;
    font-size: 18px;
    font-weight: 800;
}
.auras-swipe-price-wrap del {
    color: #aaa;
    font-size: 13px;
}
.auras-swipe-price-wrap .woocommerce-Price-amount {
    color: inherit;
}
