/* ============================
   VIIcode Online-only 专题页面
============================ */

.vii-online-page {
    width: 100%;
    max-width: 1344px;
    margin: 0 auto;
    background: #fff;
    color: #111;
    font-family: inherit;
}

.vii-online-page * {
    box-sizing: border-box;
}

.vii-online-page img {
    display: block;
    width: 100%;
}

/* 顶部主视觉 */

.vii-online-hero {
    width: 100%;
    overflow: hidden;
    margin-bottom: 40px;
}

.vii-online-hero img {
    height: auto;
}

/* 导航 */

.vii-online-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    padding: 20px 20px 20px;
}

.vii-online-nav a {
    position: relative;
    color: #333;
    font-size: 16px;
    text-decoration: none;
    padding-bottom: 12px;
}

.vii-bestseller-heading .widget-title {
    margin: 0 0 30px;
    color: #1E1E1E;
    font-family: var(--vii-home-serif);
    font-size: 30px;
    font-weight: 400;
    line-height: 43px;
    text-align: center;
}
.vii-category-products{
    max-width: calc(100% - 96px);
    margin: auto;
}

/* image */
.product-thumb .image {
    position: relative;
    display: flex;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0 0 30px;
    padding: 0;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    background: #f6f6f6;
    border: 0;
}

.product-thumb
.image a {
    display: flex;

    width: 100%;
    height: 100%;

    align-items: center;
    justify-content: center;
}

.product-thumb
.image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    margin: auto;
    object-fit: contain;
    transition:
        transform .3s ease;
}


.product-thumb:hover
.image img {
    transform: scale(1.02);
}

.vii-category-products {
    display: grid;
    width: 1440px;
    margin-top: 0;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap:
        100px
        24px;
}


/* =========================================================
   CAPTION
   ========================================================= */

.caption {
    display: flex;

    width: 100%;

    padding:
        0
        12px;

    flex: 1;
    flex-direction: column;

    align-items: center;

    text-align: center;
}


/* name */
.product-name {
    margin: 0 0 10px;
    color: #303030;
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
}
.vii-product-description{
    color: #757575;
    font-size: 14px;
    line-height: 17px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-name a {
    color: inherit;

    text-decoration: none;
}


/* tagline */
.vii-product-tagline {
    min-height: 38px;
    margin:0 0 8px;
    color: #777;
    font-size: 12px;
    font-weight: 400;
    line-height: 19px;
    text-align: center;
}

/* 节日主视觉 */
.vii-online-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

/* 背景图片 */
.vii-online-hero > img {
    display: block;
    width: 100%;
    height: auto;
}

/* 左侧文字 */
.vii-online-hero-content {
    position: absolute;
    left: 9.5%;
    top: 45%;
    transform: translateY(-50%);
    width: 35%;
    text-align: center;
    color: #fff;
    line-height: 1.6;
}

/* 主标题 */
.vii-online-hero-content h2 {
    font-family: "Times New Roman", serif;
    font-size: clamp(22px, 2vw, 36px);
    font-weight: 400;
    margin: 0 0 2px;
    color: #fff;
}

/* 副标题 */
.vii-online-hero-content h1 {
    font-family: "Times New Roman", serif;
    font-size: clamp(24px, 2.2vw, 40px);
    font-weight: 400;
    margin: 0 0 16px;
    color: #fff;
}

/* 描述文字 */
.vii-online-hero-content p {
    font-size: clamp(12px, .85vw, 16px);
    line-height: 1.8;
    font-weight: 400;
    margin: 0;
    color: #fff;
}

/* 手机端 */
@media (max-width: 767px) {
    .vii-online-hero-content {
        left: 4%;
        width: 46%;
    }

    .vii-online-hero-content h2 {
        font-size: 16px;
    }

    .vii-online-hero-content h1 {
        font-size: 17px;
        margin-bottom: 7px;
    }

    .vii-online-hero-content p {
        font-size: 9px;
        line-height: 1.6;
    }

    .vii-online-hero-content p br {
        display: none;
    }
}
/* =========================================================
   PRICE
   ========================================================= */
.price {
    min-height: 17px;
    margin: 20px 0 30px;
    color: #303030;
    font-size: 16px;
    font-weight: 400;
    line-height: 19px;
}

.price-old {
    margin-right: 7px;

    color: #999;

    font-size: 14px;

    text-decoration: line-through;
}
.price-new {
    color: #333;
    font-size: 14px;
}


/* =========================================================
   PRODUCT BUTTONS
   ========================================================= */
.product-button-wrapper {
    display: flex;

    width: 100%;

    margin-top: auto;

    align-items: center;
    justify-content: center;

    gap: 9px;

    background: transparent;

    border: 0;
}


/* wishlist */
.product-button-wrapper
.btn-wishlist {
    display: inline-flex !important;

    width: 36px;
    min-width: 36px;
    height: 36px;

    margin: 0;
    padding: 0;

    align-items: center;
    justify-content: center;

    color: #333;

    background: #fff;

    border: 1px solid #ddd;
    border-radius: 0;

    box-shadow: none;
}
.vii-online-nav {
    display: flex;
    justify-content: center;
    gap: 86px;
    border-bottom: none;
    background: #fff;
    margin: 0px 0 50px;
}

.vii-online-nav li a {
    color: #303030;
    border: none !important;
    background: transparent !important;
    padding: 0px;
    line-height: 22px;
    font-size: 18px;
}

.vii-online-nav li.active a {
    color: #303030;
    padding-bottom: 2px;
    border-bottom: 2px solid #303030 !important;
    font-weight: 700;
}

.vii-online-nav li a:hover {
    color: #111;
}
.vii-wishlist-icon {
    display: block;
    width: 17px;
    height: 17px;
    fill: none;

    stroke: currentColor;
    stroke-width: 1.5;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* buy */
.product-button-wrapper .vii-buy-now,.product-button-wrapper .btn-primary {
    display: inline-flex;
    width: 146px;
    min-width: 146px;
    height: 44px;
    margin: 0;
    align-items: center;
    justify-content: center;
    color: #333;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0;
    box-shadow: none;
    font-size: 14px;
    font-weight: 400;
    line-height: 44px;
    text-shadow: none;
}


.product-button-wrapper
.vii-buy-now:hover,
.product-button-wrapper
.btn-primary:hover {
    color: #000;
    background: #f7f7f7;
    border-color: #999;
}

.vii-online-nav a.active {
    font-weight: 600;
}

.vii-online-nav a.active:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #111;
}

/* 内容区域 */

.vii-online-section {
    width: 100%;
}

.vii-online-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7%;
    padding: 0 11.2% 100px;
    
}

/* 图片区域 */

.vii-online-image {
    width: 48%;
    flex-shrink: 0;
}

.vii-online-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* 文字区域 */

.vii-online-info {
    width: 45%;
    text-align: center;
}

.vii-online-info h2 {
    font-size: 30px;
    font-weight: 400;
    color: #333;
    margin: 0 0 30px;
    line-height: 1.5;
}

.vii-online-info > p,
.vii-online-description p {
    font-size: 14px;
    line-height: 2;
    color: #444;
    margin: 0;
}

.vii-online-rules {
    margin: 15px 0 30px;
}

.vii-online-rules p {
    font-size: 14px;
    line-height: 1.9;
    margin: 0;
    color: #444;
}

/* 按钮 */

.vii-btn-black,
.vii-btn-white {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 136px;
    height: 48px;
    padding: 0 20px;
    font-size: 14px;
    text-decoration: none !important;
    transition: .3s;
}

.vii-btn-black {
    background: #000;
    color: #fff !important;
    border: 1px solid #000;
}

.vii-btn-black:hover {
    background: #333;
    color: #fff !important;
}

.vii-btn-white {
    background: #fff;
    color: #111 !important;
    border: 1px solid #111;
}

.vii-btn-white:hover {
    background: #111;
    color: #fff !important;
}

/* 双按钮 */

.vii-online-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* 细则 */

.vii-online-link {
    display: block;
    margin-top: 30px;
    color: #555;
    font-size: 13px;
    text-decoration: underline;
}

/* ============================
   平板
============================ */

@media (min-width: 768px) and (max-width: 1024px) {

    .vii-online-row {
        padding: 0 5% 65px;
        gap: 5%;
    }

    .vii-online-info h2 {
        font-size: 25px;
    }

}

/* ============================
   手机端
============================ */

@media (max-width: 767px) {

    .vii-online-nav {
        gap: 28px;
        padding: 30px 10px 35px;
    }
    .vii-category-products {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        row-gap: 100px;
        max-width: calc(100% - 32px);
    }

    .vii-online-nav a {
        font-size: 13px;
    }

    .vii-online-row {
        flex-direction: column;
        gap: 25px;
        padding: 0 15px 50px;
    }

    .vii-online-image,
    .vii-online-info {
        width: 100%;
    }

    .vii-online-info h2 {
        font-size: 23px;
        margin-bottom: 20px;
    }

    .vii-online-info > p,
    .vii-online-description p,
    .vii-online-rules p {
        font-size: 13px;
    }

    .vii-online-rules {
        margin: 15px 0 25px;
    }

    .vii-online-buttons {
        gap: 10px;
    }

    .vii-btn-black,
    .vii-btn-white {
        min-width: 120px;
        height: 44px;
        font-size: 13px;
    }

    .vii-online-link {
        margin-top: 22px;
    }

}


/* 活動條款彈窗 */
.layui-layer-content{
    padding: 60px 60px;
    color: #333;
    font-size: 14px;
    line-height: 24px;
    background: #fff;
}

.vii-terms-content h4 {
    margin: 0 0 20px;
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

.vii-terms-scroll p {
    margin: 0px;
    font-weight: 400;
}

.vii-terms-scroll::-webkit-scrollbar {
    width: 4px;
}

.vii-terms-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}


@media (max-width: 767px) {
    .vii-terms-content {
        padding: 20px;
    }

    .vii-terms-scroll {
        max-height: 55vh;
    }
}


/* 积分须知弹窗 */
.vii-points-content {
    color: #333;
    font-size: 14px;
    line-height: 24px;
    background: #fff;
}

.vii-points-content h3 {
    margin: 0 0 20px;
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

.vii-points-content p {
    margin: 0px;
    font-weight: 400;
}

/* 手机适配 */
@media (max-width: 767px) {
    .vii-points-content {
        padding: 20px;
        font-size: 12px;
    }

    .vii-points-content h3 {
        font-size: 15px;
    }
}

/* 弹窗统一样式 */
.vii-terms-layer,
.vii-points-layer {
    border: 1px solid #ddd !important;
    border-radius: 0 !important;
    box-shadow: 0 10px 40px rgba(0,0,0,.15) !important;
}

/* 弹窗内容 */
.vii-terms-layer .layui-layer-content,
.vii-points-layer .layui-layer-content {
    box-sizing: border-box;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* 关闭按钮 */
.vii-terms-layer .layui-layer-setwin,
.vii-points-layer .layui-layer-setwin {
    top: 12px;
    right: 12px;
}

/* 手机端 */
@media (max-width: 767px) {
    .vii-terms-layer .layui-layer-content,
    .vii-points-layer .layui-layer-content {
        padding: 22px 18px;
    }
}