
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: #f7f6f3;
    color: #161616;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "PingFang SC",
        "Helvetica Neue",
        Arial,
        sans-serif;
}

body {
    min-height: 100vh;
}

button, input {
    font: inherit;
}

button {
    cursor: pointer;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;

    height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding:
        calc(env(safe-area-inset-top) + 10px)
        18px
        10px;

    background: rgba(247,246,243,.94);
    backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(0,0,0,.05);
}

.brand-name {
    font-weight: 760;
    letter-spacing: 3px;
    font-size: 17px;
}

.brand-sub {
    margin-top: 3px;
    font-size: 9px;
    letter-spacing: 2px;
    color: #777;
}

.pick-top {
    border: 0;
    background: #161616;
    color: white;

    border-radius: 22px;

    padding: 9px 13px;

    font-size: 12px;
}

.pick-top span {
    margin-left: 5px;
    opacity: .72;
}

.hero {
    padding: 26px 16px 14px;
}

.hero h1 {
    margin: 0;
    font-size: 27px;
    font-weight: 650;
    letter-spacing: -.8px;
}

.hero p {
    margin: 7px 0 0;
    color: #888;
    font-size: 12px;
}

.search-wrap {
    padding: 2px 16px 15px;
}

.search {
    width: 100%;
    height: 44px;

    border: 0;
    outline: none;

    border-radius: 14px;
    padding: 0 15px;

    background: #fff;

    box-shadow:
        0 1px 0 rgba(0,0,0,.03),
        0 6px 20px rgba(0,0,0,.025);

    font-size: 14px;
}

.product-count {
    padding: 0 17px 12px;
    color: #8c8c8c;
    font-size: 11px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));

    gap: 9px;

    padding: 0 9px 110px;
}

.card {
    background: white;
    border-radius: 16px;
    overflow: hidden;

    box-shadow:
        0 5px 22px rgba(0,0,0,.035);

    position: relative;
}

.card-img-wrap {
    position: relative;

    width: 100%;
    aspect-ratio: 3 / 4;

    background: #eee;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    display: block;
}

.card-body {
    padding: 10px 10px 12px;
}

.card-title {
    font-size: 13px;
    line-height: 1.35;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    margin-top: 6px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 7px;
}

.card-sku {
    font-size: 10px;
    color: #999;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-price {
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
}

.pick-circle {
    position: absolute;

    right: 9px;
    bottom: 9px;

    width: 32px;
    height: 32px;

    border-radius: 50%;
    border: none;

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

    background: rgba(255,255,255,.94);
    color: #111;

    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,.13);
}

.pick-circle.active {
    background: #111;
    color: #fff;
}


.image-count {
    position: absolute;

    left: 9px;
    bottom: 9px;

    padding: 5px 8px;

    border-radius: 10px;

    background: rgba(20,20,20,.72);
    color: white;

    font-size: 9px;
    line-height: 1;

    backdrop-filter: blur(8px);
}

.detail-count {
    margin-top: 8px;

    color: #aaa;
    font-size: 11px;
}

.sku-box {
    margin-top: 19px;
    padding-top: 16px;

    border-top: 1px solid rgba(0,0,0,.06);
}

.sku-box-title {
    margin-bottom: 10px;

    color: #777;
    font-size: 11px;
}

.sku-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;
}

.sku-tag {
    padding: 7px 10px;

    border-radius: 9px;

    background: #f4f3f0;
    color: #333;

    font-size: 11px;
    line-height: 1.2;
}


.detail-btn {
    width: 100%;
    height: 34px;

    margin-top: 10px;

    border: 0;
    border-radius: 10px;

    background: #f4f3f0;
    color: #333;

    font-size: 11px;
    font-weight: 600;
}

.detail-head {
    height: 54px;

    position: sticky;
    top: 76px;
    z-index: 25;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    padding: 0 14px;

    background: rgba(247,246,243,.96);
    backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(0,0,0,.04);
}

.detail-brand {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.detail-head-space {
    width: 100%;
}

.detail-hero {
    position: relative;
    background: #f0efec;
}

.detail-cover {
    display: block;

    width: 100%;
    max-height: 82vh;

    object-fit: contain;
}

.detail-photo-count {
    position: absolute;

    right: 14px;
    bottom: 14px;

    padding: 7px 10px;

    border-radius: 12px;

    background: rgba(20,20,20,.68);
    color: white;

    backdrop-filter: blur(10px);

    font-size: 10px;
}

.product-section {
    margin-top: 10px;

    padding: 20px 0;

    background: white;
}

.section-title-wrap {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    padding: 3px 18px 18px;
}

.section-title {
    padding: 0 18px 14px;

    font-size: 13px;
    font-weight: 650;

    letter-spacing: 1px;
}

.section-title-wrap .section-title {
    padding: 0;

    white-space: nowrap;
}

.section-line {
    height: 1px;
    flex: 1;

    max-width: 60px;

    background: rgba(0,0,0,.12);
}

.detail-image-list {
    width: 100%;

    background: white;
}

.detail-long-image {
    display: block;

    width: 100%;
    height: auto;

    margin: 0;
    padding: 0;

    object-fit: contain;
}

.detail-video {
    display: block;

    width: calc(100% - 28px);

    margin: 0 14px 14px;

    border-radius: 14px;

    background: #000;
}

.detail-bottom-space {
    height: 30px;
}


/* =========================================
   实体女装 商品图片左右滑动浏览器
   ========================================= */

.swipe-gallery-wrap {
    position: relative;

    width: 100%;

    background: #f1f0ed;

    overflow: hidden;
}

.swipe-gallery {
    width: 100%;

    display: flex;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    overscroll-behavior-x: contain;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;

    touch-action: pan-x;
}

.swipe-gallery::-webkit-scrollbar {
    display: none;
}

.swipe-slide {
    flex: 0 0 100%;

    width: 100%;

    scroll-snap-align: start;
    scroll-snap-stop: always;

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

    background: #f1f0ed;

    min-height: 55vh;
    max-height: 82vh;
}

.swipe-slide img {
    display: block;

    width: 100%;
    height: auto;

    max-height: 82vh;

    object-fit: contain;

    user-select: none;
    -webkit-user-select: none;

    -webkit-user-drag: none;
}

.swipe-counter {
    position: absolute;

    right: 14px;
    bottom: 15px;

    z-index: 8;

    min-width: 52px;

    padding: 7px 11px;

    border-radius: 16px;

    background: rgba(20,20,20,.70);
    color: #fff;

    text-align: center;

    font-size: 11px;
    font-weight: 550;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.swipe-tip {
    position: absolute;

    left: 50%;
    bottom: 15px;

    transform: translateX(-50%);

    z-index: 7;

    padding: 7px 11px;

    border-radius: 15px;

    background: rgba(255,255,255,.80);
    color: #555;

    font-size: 10px;

    white-space: nowrap;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    pointer-events: none;

    animation: swipeTipFade 4s forwards;
}

@keyframes swipeTipFade {

    0%,
    65% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}


.detail {
    padding-bottom: 110px;
}

.detail-head {
    height: 54px;

    position: sticky;
    top: 76px;
    z-index: 25;

    display: flex;
    align-items: center;

    background: rgba(247,246,243,.95);
    backdrop-filter: blur(18px);

    padding: 0 14px;

    border-bottom: 1px solid rgba(0,0,0,.04);
}

.back {
    border: 0;
    background: transparent;

    padding: 8px 10px 8px 0;
    font-size: 14px;
}

.gallery {
    display: flex;
    overflow-x: auto;

    scroll-snap-type: x mandatory;

    scrollbar-width: none;

    background: #eee;
}

.gallery::-webkit-scrollbar {
    display: none;
}

.gallery img {
    flex: 0 0 100%;

    width: 100%;
    max-height: 82vh;

    object-fit: contain;

    background: #f0efec;

    scroll-snap-align: start;
}

.detail-info {
    background: white;
    padding: 22px 18px;
}

.detail-title {
    font-size: 19px;
    font-weight: 650;
    line-height: 1.4;
}

.detail-price {
    margin-top: 11px;

    font-size: 21px;
    font-weight: 700;
}

.detail-sku {
    margin-top: 8px;

    color: #888;
    font-size: 12px;
}

.detail-actions {
    margin-top: 20px;
}

.add-pick {
    width: 100%;
    height: 48px;

    border: 0;
    border-radius: 14px;

    background: #161616;
    color: #fff;

    font-weight: 600;
}

.add-pick.active {
    background: #e9e7e2;
    color: #222;
}

.video-section {
    padding: 18px;
    background: #fff;
    margin-top: 10px;
}

.video-section video {
    width: 100%;
    border-radius: 13px;
    background: #000;
}

.bottom-pick {
    position: fixed;

    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));

    z-index: 45;

    height: 62px;

    display: none;
    align-items: center;
    justify-content: space-between;

    padding: 8px 9px 8px 16px;

    border-radius: 19px;

    background: rgba(24,24,24,.96);
    color: white;

    box-shadow:
        0 14px 40px rgba(0,0,0,.23);

    backdrop-filter: blur(20px);
}

.bottom-pick.visible {
    display: flex;
}

.bottom-pick small {
    display: block;
    font-size: 9px;
    color: #aaa;
}

.bottom-pick strong {
    display: block;
    margin-top: 2px;
    font-size: 14px;
}

.bottom-pick button {
    border: 0;

    height: 44px;
    border-radius: 14px;

    padding: 0 18px;

    background: white;
    color: #111;

    font-size: 12px;
    font-weight: 650;
}

.sheet-mask {
    position: fixed;
    inset: 0;

    z-index: 80;

    background: rgba(0,0,0,.25);
    backdrop-filter: blur(3px);

    opacity: 0;
    visibility: hidden;

    transition: .25s;
}

.sheet-mask.open {
    opacity: 1;
    visibility: visible;
}

.pick-sheet {
    position: fixed;

    left: 0;
    right: 0;
    bottom: 0;

    z-index: 90;

    max-height: 78vh;

    background: #f7f6f3;

    border-radius: 24px 24px 0 0;

    padding:
        18px
        16px
        calc(18px + env(safe-area-inset-bottom));

    transform: translateY(105%);
    transition: .28s ease;

    box-shadow:
        0 -20px 60px rgba(0,0,0,.15);
}

.pick-sheet.open {
    transform: translateY(0);
}

.sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sheet-head strong {
    display: block;
    font-size: 17px;
}

.sheet-head small {
    color: #999;
    letter-spacing: 2px;
    font-size: 9px;
}

.sheet-head button {
    width: 34px;
    height: 34px;

    border-radius: 50%;
    border: 0;

    background: white;

    font-size: 20px;
}

.pick-list {
    margin-top: 15px;

    max-height: 48vh;
    overflow-y: auto;
}

.pick-row {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    gap: 10px;

    align-items: center;

    padding: 9px 0;

    border-bottom: 1px solid rgba(0,0,0,.05);
}

.pick-row img {
    width: 58px;
    height: 72px;

    border-radius: 9px;
    object-fit: cover;
}

.pick-row strong {
    display: block;
    font-size: 12px;
}

.pick-row small {
    display: block;
    margin-top: 4px;

    font-size: 10px;
    color: #999;
}

.remove-pick {
    border: 0;
    background: transparent;
    color: #999;
}

.copy-btn {
    width: 100%;
    height: 50px;

    margin-top: 15px;

    border: 0;
    border-radius: 15px;

    background: #161616;
    color: white;

    font-weight: 650;
}

.empty {
    padding: 90px 20px;
    text-align: center;
    color: #999;
}

@media (min-width: 700px) {
    body {
        max-width: 620px;
        margin: auto;
        box-shadow: 0 0 60px rgba(0,0,0,.06);
    }

    .bottom-pick {
        max-width: 590px;
        margin: auto;
    }

    .pick-sheet {
        max-width: 620px;
        margin: auto;
    }
}


/* ===== 本次新增：图片结构 / 放大 / 订购单 ===== */

.hg-main-gallery-wrap {
    position: relative;
    background: #f1f0ed;
}

.hg-expand-btn {
    position: absolute;

    left: 14px;
    bottom: 15px;

    z-index: 9;

    height: 32px;

    padding: 0 13px;

    border: 0;
    border-radius: 16px;

    background:
        rgba(255,255,255,.90);

    color: #222;

    font-size: 10px;

    backdrop-filter: blur(10px);
}


.hg-detail-section {
    margin-top: 10px;

    background: white;

    padding-top: 18px;
}

.hg-detail-images {
    width: 100%;
}

.hg-detail-image-item {
    position: relative;

    width: 100%;

    margin: 0;
    padding: 0;
}

.hg-detail-image-item img {
    display: block;

    width: 100%;
    height: auto;

    margin: 0;

    cursor: zoom-in;
}

.hg-detail-expand {
    position: absolute;

    right: 13px;
    bottom: 13px;

    width: 34px;
    height: 34px;

    border: 0;
    border-radius: 50%;

    background:
        rgba(255,255,255,.88);

    color: #222;

    font-size: 15px;

    box-shadow:
        0 3px 12px
        rgba(0,0,0,.10);
}


.hg-zoom-viewer {
    position: fixed;

    inset: 0;

    z-index: 1000;

    display: none;
    flex-direction: column;

    background: #080808;
}

.hg-zoom-viewer.open {
    display: flex;
}

.hg-zoom-top {
    height:
        calc(
            56px +
            env(safe-area-inset-top)
        );

    padding:
        env(safe-area-inset-top)
        15px
        0;

    display: grid;

    grid-template-columns:
        1fr auto 1fr;

    align-items: center;

    color: white;
}

.hg-zoom-close {
    width: 38px;
    height: 38px;

    border: 0;
    border-radius: 50%;

    background:
        rgba(255,255,255,.12);

    color: white;

    font-size: 23px;
}

.hg-zoom-title {
    font-size: 12px;
}

.hg-zoom-title span {
    margin-left: 5px;

    color: #aaa;
}

.hg-zoom-stage {
    flex: 1;

    min-height: 0;

    overflow: auto;

    display: flex;

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

    touch-action: none;
}

.hg-zoom-image {
    display: block;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;

    transform-origin: center center;

    transition:
        transform .15s ease;

    cursor: zoom-in;
}

.hg-zoom-bottom {
    padding:
        10px
        18px
        calc(
            17px +
            env(safe-area-inset-bottom)
        );
}

.hg-zoom-controls {
    display: flex;

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

    gap: 18px;
}

.hg-zoom-controls button {
    width: 42px;
    height: 42px;

    border-radius: 50%;

    border:
        1px solid
        rgba(255,255,255,.17);

    background:
        rgba(255,255,255,.10);

    color: white;

    font-size: 21px;
}

.hg-zoom-controls span {
    min-width: 55px;

    text-align: center;

    color: white;

    font-size: 11px;
}

.hg-zoom-hint {
    margin-top: 9px;

    text-align: center;

    color: #888;

    font-size: 9px;
}


.hg-order-page {
    padding:
        35px
        15px
        110px;
}

.hg-order-brand {
    font-size: 13px;
    font-weight: 750;

    letter-spacing: 3px;
}

.hg-order-page h1 {
    margin:
        14px 0 5px;

    font-size: 27px;
}

.hg-order-page > p {
    margin:
        0 0 22px;

    color: #999;

    font-size: 11px;
}

.hg-order-list {
    display: flex;

    flex-direction: column;

    gap: 9px;
}

.hg-order-row {
    display: grid;

    grid-template-columns:
        88px 1fr;

    gap: 13px;

    padding: 10px;

    border-radius: 16px;

    background: white;

    box-shadow:
        0 4px 20px
        rgba(0,0,0,.035);
}

.hg-order-row img {
    width: 88px;
    height: 112px;

    border-radius: 11px;

    object-fit: cover;
}

.hg-order-content {
    padding: 4px 2px;

    min-width: 0;
}

.hg-order-content strong {
    display: block;

    font-size: 13px;

    line-height: 1.4;
}

.hg-order-sku {
    margin-top: 7px;

    color: #999;

    font-size: 10px;
}

.hg-order-bottom {
    display: flex;

    justify-content:
        space-between;

    align-items: center;

    margin-top: 21px;
}

.hg-order-bottom span,
.hg-order-bottom b {
    font-size: 13px;
}

.hg-order-back {
    width: 100%;
    height: 48px;

    margin-top: 16px;

    border: 0;
    border-radius: 14px;

    background: #161616;

    color: white;

    font-weight: 650;
}

.hg-simple-toast {
    position: fixed;

    left: 50%;
    bottom: 100px;

    z-index: 1500;

    transform:
        translate(-50%, 12px);

    padding:
        10px 15px;

    max-width:
        calc(100% - 50px);

    border-radius: 13px;

    background:
        rgba(20,20,20,.92);

    color: white;

    font-size: 11px;

    text-align: center;

    opacity: 0;

    pointer-events: none;

    transition: .2s;
}

.hg-simple-toast.show {
    opacity: 1;

    transform:
        translate(-50%, 0);
}

