@charset "UTF-8";
/* ==========================================================================
   YeShe — Product detail
   ========================================================================== */

.ys-pdp__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

/* ---------- Gallery ---------- */
.ys-pdp__gallery { position: sticky; top: 116px; }
.ys-pdp__stage {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--ys-surface-alt);
    border-radius: var(--ys-radius-lg);
    overflow: hidden;
}
.ys-pdp__stage img {
    width: 100%; height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    padding: 6%;
    transition: opacity .25s var(--ys-ease);
}
.ys-pdp__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.ys-thumb {
    width: 74px; height: 74px;
    padding: 6px;
    border: 1px solid var(--ys-line);
    border-radius: var(--ys-radius);
    background: var(--ys-surface-alt);
    cursor: pointer;
    transition: border-color var(--ys-dur) var(--ys-ease);
}
.ys-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ys-thumb:hover { border-color: var(--ys-line-strong); }
.ys-thumb.is-active { border-color: var(--ys-ink); }

/* ---------- Buy box ---------- */
.ys-pdp__info { padding-top: 4px; }
.ys-pdp__title {
    font-family: var(--ys-font-display);
    font-size: clamp(26px, 3.2vw, 40px);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.08;
    margin-bottom: 10px;
}
.ys-pdp__subtitle { font-size: 16px; color: var(--ys-muted); margin-bottom: 20px; }
.ys-pdp__price {
    display: flex; align-items: baseline; gap: 12px;
    padding-bottom: 18px; margin-bottom: 18px;
    border-bottom: 1px solid var(--ys-line);
    flex-wrap: wrap;
}
.ys-pdp__pricenow { font-size: 28px; font-weight: 700; }
.ys-price__was { font-size: 16px; color: var(--ys-muted); text-decoration: line-through; }
.ys-pdp__save {
    display: inline-flex; align-items: center;
    font-size: 12px; font-weight: 800; letter-spacing: .04em;
    color: #fff; background: linear-gradient(135deg, #d02e26, #b3261e);
    padding: 3px 9px; border-radius: 999px;
}
/* 多规格价格区间提示 */
.ys-pdp__pricerange {
    margin: -8px 0 16px;
    font-size: 12.5px;
    color: var(--ys-muted);
}
.ys-pdp__pricerange strong { color: var(--ys-ink); font-weight: 800; font-variant-numeric: tabular-nums; }

/* 详情内容下移到价格下方（取消 Product Details 标题） */
.ys-pdp__desc {
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--ys-body);
    padding: 0 0 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--ys-line);
}
.ys-pdp__desc p { margin: 0 0 10px; }
.ys-pdp__desc p:last-child { margin-bottom: 0; }

/* 购买表单：数量与按钮各占一行，按钮全宽更醒目 */
.ys-pdp__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}
.ys-qty {
    display: inline-flex; align-items: center;
    border: 1px solid var(--ys-line-strong);
    border-radius: var(--ys-radius);
    overflow: hidden;
    flex: 0 0 auto;
}
.ys-qty__btn {
    width: 44px; height: 54px;
    border: 0; background: transparent;
    font-size: 19px; line-height: 1;
    cursor: pointer; color: var(--ys-ink);
    transition: background var(--ys-dur) var(--ys-ease);
}
.ys-qty__btn:hover { background: var(--ys-surface); }
.ys-qty input {
    width: 54px; height: 54px;
    border: 0; border-left: 1px solid var(--ys-line); border-right: 1px solid var(--ys-line);
    text-align: center; font-size: 15px; font-weight: 700;
    -moz-appearance: textfield;
    appearance: textfield;
    background: #fff;
}
.ys-qty input::-webkit-outer-spin-button,
.ys-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ys-qty input:focus { outline: none; }
/* 数量 + 实时小计行：左数量选择器，右侧单价 × 数量 = 合计 */
.ys-qtyrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 12px;
    background: var(--ys-surface);
    border: 1px solid var(--ys-line);
    border-radius: var(--ys-radius);
}
.ys-qtyrow .ys-qty { border-color: var(--ys-line-strong); }
.ys-qtyrow__price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    line-height: 1.2;
}
.ys-qtyrow__calc { font-size: 12px; color: var(--ys-muted); font-variant-numeric: tabular-nums; }
.ys-qtyrow__total {
    font-family: var(--ys-font-display);
    font-size: 19px;
    font-weight: 800;
    color: var(--ys-ink);
    font-variant-numeric: tabular-nums;
}
.ys-pdp__add { flex: 1; }

/* ---------- Spec list ---------- */
.ys-spec { margin: 0 0 30px; border-top: 1px solid var(--ys-line); }
.ys-spec__row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid var(--ys-line);
    font-size: 14px;
}
.ys-spec__row dt { color: var(--ys-muted); letter-spacing: .04em; }
.ys-spec__row dd { margin: 0; color: var(--ys-ink); font-weight: 500; }

/* ---------- Promise：一排三卡，下方留白与后续区块隔开 ---------- */
.ys-pdp__promise {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 4px;
    margin-bottom: 30px;
}
.ys-promise {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px 15px;
    background: var(--ys-surface);
    border: 1px solid var(--ys-line);
    border-radius: var(--ys-radius-lg);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.ys-promise:hover { border-color: rgba(10, 10, 10, .28); box-shadow: 0 8px 20px rgba(10, 10, 10, .06); transform: translateY(-2px); }
.ys-promise__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(10, 10, 10, .05);
    color: var(--ys-ink);
    margin-bottom: 2px;
}
.ys-promise strong { font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.ys-promise span { font-size: 12.5px; line-height: 1.55; color: var(--ys-muted); }

/* ---------- Detail body ---------- */
.ys-article__body {
    font-size: 15.5px;
    line-height: 1.8;
    color: var(--ys-body);
}
.ys-article__body h2,
.ys-article__body h3 {
    margin: 34px 0 12px;
    font-size: 20px;
}
.ys-article__body h2:first-child,
.ys-article__body h3:first-child { margin-top: 0; }
.ys-article__body p { margin: 0 0 16px; }
.ys-article__body ul,
.ys-article__body ol { margin: 0 0 18px; padding-left: 22px; }
.ys-article__body ul { list-style: disc; }
.ys-article__body ol { list-style: decimal; }
.ys-article__body li { margin-bottom: 7px; }
.ys-article__body img { border-radius: var(--ys-radius); margin: 18px 0; }
.ys-article__body a { text-decoration: underline; text-underline-offset: 3px; }
.ys-article__body table { margin: 18px 0; font-size: 14px; }
.ys-article__body th,
.ys-article__body td { border: 1px solid var(--ys-line); padding: 10px 12px; text-align: left; }
.ys-article__body th { background: var(--ys-surface); font-weight: 700; }

@media (max-width: 900px) {
    .ys-pdp__grid { grid-template-columns: 1fr; gap: 32px; }
    .ys-pdp__gallery { position: static; }
}
@media (max-width: 560px) {
    .ys-spec__row { grid-template-columns: 100px 1fr; gap: 10px; }
}

/* ---------- 评分行（购买盒内） ---------- */
.ys-pdp__rating {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 2px 0 14px;
    text-decoration: none;
}
.ys-pdp__rating-text { font-size: 13.5px; color: var(--ys-muted); }
.ys-pdp__rating-num { font-size: 16px; font-weight: 800; color: var(--ys-ink); }
.ys-pdp__rating:hover .ys-pdp__rating-num { text-decoration: underline; text-underline-offset: 3px; }
.ys-pdp__lede {
    margin: 0 0 18px;
    font-family: var(--ys-font-display);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.5;
    color: var(--ys-body);
}

/* ⭐️ 表情星星：空心 ☆ 由 CSS 控制，实心 ⭐ 切换 content */
.ys-stars { display: inline-flex; align-items: center; gap: 2px; }
.ys-star { font-style: normal; font-size: 15px; line-height: 1; color: rgba(10, 10, 10, .22); }
.ys-star::before { content: '☆'; }
.ys-star.is-on { color: #f5a623; }
.ys-star.is-on::before { content: '⭐'; }

/* ---------- 规格选择器（参考图风格：Scent 药丸 + Bundle 三列卡片） ---------- */
.ys-pdp__optgroup { margin: 0 0 20px; }
.ys-pdp__optlabel-row {
    display: flex; align-items: baseline; gap: 8px;
    margin-bottom: 12px;
}
.ys-pdp__optlabel {
    font-size: 13px; font-weight: 800; letter-spacing: .02em;
    color: var(--ys-ink); text-transform: uppercase;
}
.ys-pdp__optlabel-value {
    font-size: 12.5px; font-weight: 700;
    color: var(--ys-muted);
    background: var(--ys-surface);
    border: 1px solid var(--ys-line);
    padding: 2px 9px;
    border-radius: 999px;
}

/* Scent 药丸按钮（参考图：圆角胶囊 + 深色激活态） */
.ys-optbtns { display: flex; flex-wrap: wrap; gap: 10px; }
.ys-optbtn {
    position: relative;
    border: 1.5px solid var(--ys-line);
    background: #fff;
    color: var(--ys-ink);
    border-radius: 999px;
    padding: 10px 22px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .01em;
    cursor: pointer;
    transition: all .2s var(--ys-ease);
}
.ys-optbtn:hover {
    border-color: var(--ys-ink);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 10, 10, .08);
}
.ys-optbtn.is-active {
    background: linear-gradient(180deg, #1a1d24 0%, #2b2f36 100%);
    border-color: #1a1d24;
    color: #fff;
    box-shadow: 0 6px 18px rgba(10, 10, 10, .22), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.ys-optbtn.is-active::after {
    content: '';
    position: absolute;
    top: 7px; right: 8px;
    width: 6px; height: 6px;
    background: #6ee7b7;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(110, 231, 183, .25);
}

/* Bundle 三列卡片（参考图：突出卡片 + 顶部角标） */
.ys-bundles {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.ys-bundle {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 18px 10px 15px;
    background: #fff;
    border: 1.5px solid var(--ys-line);
    border-radius: var(--ys-radius-lg);
    cursor: pointer;
    transition: all .2s var(--ys-ease);
    margin-top: 6px;
    overflow: visible;
}
.ys-bundle::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, .02) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s ease;
}
.ys-bundle:hover {
    border-color: var(--ys-ink);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(10, 10, 10, .08);
}
.ys-bundle.is-active {
    background: linear-gradient(180deg, #fafbfc 0%, #f1f3f5 100%);
    border-color: var(--ys-ink);
    box-shadow: 0 8px 22px rgba(10, 10, 10, .10), inset 0 0 0 1px var(--ys-ink);
}
.ys-bundle.is-active::before { opacity: 1; }
.ys-bundle.is-oos { opacity: .45; cursor: not-allowed; }
.ys-bundle__name { font-size: 15.5px; font-weight: 800; color: var(--ys-ink); letter-spacing: -.01em; }
.ys-bundle__price {
    font-size: 13px; font-weight: 600; color: var(--ys-muted);
    transition: color .2s ease;
    display: inline-flex; align-items: baseline; gap: 6px;
}
.ys-bundle__price del.ys-bundle__orig { color: rgba(10, 10, 10, .35); font-size: 11.5px; font-weight: 500; }
.ys-bundle.is-active .ys-bundle__price { color: var(--ys-ink); }
.ys-bundle__badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #d02e26 0%, #ff5a4a 100%);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(208, 46, 38, .35);
}
.ys-bundle.is-active .ys-bundle__badge {
    box-shadow: 0 6px 18px rgba(208, 46, 38, .45);
}

/* ---------- 分类/分享 ---------- */
.ys-pdp__meta-link { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ys-pdp__share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 22px;
    padding-top: 16px;
    border-top: 1px solid var(--ys-line);
}
.ys-pdp__share-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ys-muted);
    margin-right: 2px;
}
.ys-pdp__share-btn {
    border: 1px solid var(--ys-line);
    background: var(--ys-surface);
    border-radius: 999px;
    padding: 5px 13px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.ys-pdp__share-btn:hover { border-color: var(--ys-ink); transform: translateY(-1px); }

/* ============ 评论区 ============ */
.ys-rv {
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
    margin-top: 28px;
}
.ys-rv__summary {
    position: sticky;
    top: 116px;
    padding: 24px;
    background: var(--ys-surface);
    border: 1px solid var(--ys-line);
    border-radius: var(--ys-radius-lg);
}
.ys-rv__avg { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 18px; }
.ys-rv__avg-num { font-family: var(--ys-font-display); font-size: 46px; font-weight: 700; line-height: 1; }
.ys-stars--lg .ys-star { font-size: 18px; }
.ys-rv__count { font-size: 12.5px; color: var(--ys-muted); }
.ys-rv__dist { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 7px; }
.ys-rv__dist-row { display: grid; grid-template-columns: 44px 1fr 26px; align-items: center; gap: 8px; }
.ys-rv__dist-star { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; color: var(--ys-muted); }
.ys-rv__dist-bar { height: 7px; background: rgba(10, 10, 10, .07); border-radius: 999px; overflow: hidden; }
.ys-rv__dist-fill { display: block; height: 100%; background: var(--ys-accent, #c98a2c); border-radius: 999px; }
.ys-rv__dist-num { font-size: 12px; color: var(--ys-muted); text-align: right; }
.ys-rv__hint { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--ys-muted); text-align: center; }
.ys-rv__hint--ok { display: flex; align-items: center; justify-content: center; gap: 5px; color: var(--ys-success, #1f7a3f); font-weight: 600; }

/* 表单 */
.ys-rv__form {
    padding: 22px;
    margin-bottom: 26px;
    background: var(--ys-surface);
    border: 1px solid var(--ys-line);
    border-radius: var(--ys-radius-lg);
}
.ys-rv__form-title { margin: 0 0 14px; font-size: 17px; }
.ys-rv__form-stars { display: flex; align-items: center; gap: 4px; margin-bottom: 12px; }
/* 写评论表单的 ⭐️ 表情星级（::before 切换 ☆ / ⭐） */
.ys-rv__star {
    border: 0; background: none; padding: 2px; cursor: pointer;
    font-size: 22px; line-height: 1;
    color: rgba(10, 10, 10, .22);
    transition: transform .15s ease;
}
.ys-rv__star::before { content: '☆'; }
.ys-rv__star.is-on::before, .ys-rv__star.is-hover::before { content: '⭐'; }
.ys-rv__star:hover { transform: scale(1.15); }
.ys-rv__star-text { margin-left: 8px; font-size: 12.5px; color: var(--ys-muted); }
.ys-rv__form textarea {
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    padding: 12px 14px;
    border: 1px solid var(--ys-line);
    border-radius: var(--ys-radius);
    font: inherit;
    font-size: 14.5px;
    background: #fff;
}
.ys-rv__form textarea:focus { outline: none; border-color: var(--ys-ink); }
.ys-rv__form-actions { display: flex; gap: 10px; margin-top: 14px; }

/* 列表 */
.ys-rv__headrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.ys-rv__headrow .ys-title { margin-bottom: 0; }
.ys-rv__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ys-rv__item {
    padding: 20px 22px;
    background: var(--ys-surface);
    border: 1px solid var(--ys-line);
    border-radius: var(--ys-radius-lg);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.ys-rv__item:hover { border-color: rgba(10, 10, 10, .24); box-shadow: 0 8px 22px rgba(10, 10, 10, .06); }
.ys-rv__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ys-rv__avatar {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    background: linear-gradient(135deg, var(--ys-ink), #555);
}
.ys-rv__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ys-rv__name { font-weight: 700; font-size: 14px; }
.ys-rv__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--ys-success, #1f7a3f);
}
.ys-rv__date { margin-left: auto; font-size: 12.5px; color: var(--ys-muted); font-variant-numeric: tabular-nums; }
/* 评语下方一行：左 Verified by shop 徽章，右 Was this helpful? 点赞 */
.ys-rv__helpline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--ys-line);
}
.ys-rv__shopbadge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .03em;
    color: var(--ys-success, #1f7a3f);
    background: rgba(31, 122, 63, .08);
    border: 1px solid rgba(31, 122, 63, .22);
    padding: 4px 11px;
    border-radius: 999px;
    white-space: nowrap;
}
.ys-rv__helpful-wrap { display: inline-flex; align-items: center; gap: 12px; }
.ys-rv__helpful-q { font-size: 13px; font-weight: 700; color: var(--ys-muted); }
.ys-rv__content { margin: 10px 0 0; font-size: 14.5px; line-height: 1.75; color: var(--ys-body); }
.ys-rv__foot { display: flex; align-items: center; gap: 10px; }
.ys-rv__like {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--ys-line);
    background: var(--ys-surface);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ys-muted);
    cursor: pointer;
    transition: all .18s ease;
}
.ys-rv__like:hover { border-color: var(--ys-ink); color: var(--ys-ink); transform: translateY(-1px); }
.ys-rv__like.is-liked {
    color: #c81e42;
    border-color: rgba(200, 30, 66, .4);
    background: rgba(200, 30, 66, .06);
}
.ys-rv__like.is-liked svg { fill: #c81e42; stroke: #c81e42; }
.ys-rv__like-label { color: inherit; }
.ys-rv__empty { padding: 36px 0; text-align: center; color: var(--ys-muted); font-size: 14px; }

/* 分页 */
.ys-rv__pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--ys-line);
    font-size: 13px;
}
.ys-rv__pager-btn {
    text-decoration: none;
    font-weight: 600;
    padding: 7px 16px;
    border: 1px solid var(--ys-line);
    border-radius: 999px;
    transition: all .18s ease;
}
.ys-rv__pager-btn:hover { border-color: var(--ys-ink); }
.ys-rv__pager-info { color: var(--ys-muted); }

@media (max-width: 900px) {
    .ys-rv { grid-template-columns: 1fr; }
    .ys-rv__summary { position: static; }
}
@media (max-width: 640px) {
    .ys-pdp__promise { grid-template-columns: 1fr; }
    .ys-bundles { grid-template-columns: 1fr; }
    .ys-optbtns { gap: 8px; }
    .ys-optbtn { padding: 9px 16px; font-size: 13px; }
    .ys-rv__headrow .ys-btn { width: 100%; }
    .ys-rv__helpline { justify-content: flex-start; }
}
