:root {
    --store-blue: #087cf0;
    --store-text: #111114;
    --store-muted: #85858b;
    --store-line: #e7e7eb;
}

body {
    background: #f4f4f6;
}

.store-page {
    width: 100%;
    max-width: 620px;
    min-height: 100vh;
    margin: 0 auto;
    padding-bottom: 24px;
    overflow: hidden;
    background: #fff;
    color: var(--store-text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
    letter-spacing: 0;
    box-shadow: 0 0 36px rgba(0, 0, 0, .07);
}

.store-page *, .store-page *::before, .store-page *::after {
    box-sizing: border-box;
}

.store-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
    padding: 18px 26px 10px;
}

.store-circle-button {
    position: relative;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: rgba(248, 248, 250, .95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, .08);
    color: #161619;
}

.store-chevron {
    position: absolute;
    left: 21px;
    top: 17px;
    width: 16px;
    height: 16px;
    border-left: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    transform: rotate(45deg);
}

.store-share-icon {
    position: absolute;
    left: 17px;
    top: 19px;
    width: 19px;
    height: 20px;
    border: 2px solid currentColor;
    border-radius: 4px;
}

.store-share-icon::before {
    content: "";
    position: absolute;
    left: 5px;
    top: -10px;
    width: 8px;
    height: 8px;
    border-left: 2px solid currentColor;
    border-top: 2px solid currentColor;
    transform: rotate(45deg);
}

.store-share-icon::after {
    content: "";
    position: absolute;
    left: 8px;
    top: -11px;
    width: 2px;
    height: 15px;
    background: currentColor;
}

.store-content {
    padding: 18px 28px 0;
}

.store-product {
    display: grid;
    grid-template-columns: 156px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.store-app-icon {
    display: block;
    width: 156px;
    height: 156px;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 34px;
    object-fit: cover;
}

.store-product-copy {
    min-width: 0;
    padding-top: 2px;
}

.store-product-copy h1 {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--store-text);
    font-size: 30px;
    font-weight: 750;
    line-height: 1.08;
    letter-spacing: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.store-product-copy > p {
    display: -webkit-box;
    margin: 7px 0 13px;
    overflow: hidden;
    color: var(--store-muted);
    font-size: 17px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.store-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
}

.store-actions .install-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 98px;
    height: 38px;
    padding: 0 22px;
    border: 0;
    border-radius: 19px;
    background: var(--store-blue);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 38px;
    text-align: center;
    cursor: pointer;
}

.store-actions .msg-text {
    min-width: 120px;
    max-width: 100%;
    font-size: 13px;
    white-space: normal;
}

.store-actions .arouse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 2px solid var(--store-blue);
    border-radius: 50%;
    color: var(--store-blue);
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    order: 2;
}

.store-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 28px;
    padding: 20px 0 18px;
    border-top: 1px solid var(--store-line);
    border-bottom: 1px solid var(--store-line);
}

.store-metrics > div {
    display: flex;
    min-width: 0;
    padding: 0 10px;
    align-items: center;
    flex-direction: column;
    border-right: 1px solid var(--store-line);
    text-align: center;
}

.store-metrics > div:last-child {
    border-right: 0;
}

.store-metrics small {
    width: 100%;
    overflow: hidden;
    color: #aaaab0;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-metrics strong {
    display: block;
    max-width: 100%;
    margin: 7px 0 3px;
    overflow: hidden;
    color: #77777e;
    font-size: 24px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-metrics span {
    max-width: 100%;
    overflow: hidden;
    color: #9b9ba1;
    font-size: 11px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-metrics .store-stars {
    color: #77777e;
    font-size: 12px;
}

.store-gallery {
    display: flex;
    gap: 14px;
    margin: 28px -28px 0;
    padding: 0 28px 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

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

.store-preview {
    position: relative;
    width: min(76vw, 390px);
    min-width: min(76vw, 390px);
    height: 530px;
    overflow: hidden;
    border-radius: 26px;
    scroll-snap-align: start;
}

.store-preview-primary {
    background: linear-gradient(160deg, #0f50dc 0%, #147ce5 50%, #72d8ed 100%);
    color: #fff;
}

.store-preview-copy {
    position: relative;
    z-index: 2;
    padding: 42px 30px 0;
}

.store-preview-copy > span, .store-preview-secondary > span {
    font-size: 12px;
    font-weight: 800;
}

.store-preview h2 {
    margin: 9px 0;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0;
}

.store-preview-copy p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.4;
    opacity: .9;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.store-phone {
    position: absolute;
    left: 50%;
    bottom: -96px;
    display: flex;
    width: 77%;
    height: 345px;
    padding: 22px;
    align-items: center;
    flex-direction: column;
    border: 8px solid #111;
    border-radius: 38px;
    background: #fff;
    color: var(--store-text);
    transform: translateX(-50%);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .25);
}

.store-phone-status {
    display: flex;
    width: 100%;
    margin-bottom: 20px;
    justify-content: space-between;
    font-size: 10px;
}

.store-phone img {
    width: 76px;
    height: 76px;
    margin-bottom: 12px;
    border-radius: 18px;
    object-fit: cover;
}

.store-phone strong {
    max-width: 100%;
    overflow: hidden;
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-phone > span {
    margin: 5px 0 20px;
    color: var(--store-muted);
    font-size: 12px;
}

.store-phone i {
    width: 100%;
    height: 11px;
    margin: 5px 0;
    border-radius: 6px;
    background: #e9e9ed;
}

.store-phone i:nth-of-type(2) {
    width: 78%;
    align-self: flex-start;
}

.store-preview-secondary {
    padding: 42px 30px;
    background: #eef1f5;
    color: var(--store-text);
}

.store-preview-secondary img {
    position: absolute;
    left: 50%;
    bottom: 70px;
    width: 150px;
    height: 150px;
    border-radius: 34px;
    object-fit: cover;
    transform: translateX(-50%);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .18);
}

.store-uploaded-preview {
    background: #f2f2f5;
    border: 1px solid rgba(0, 0, 0, .07);
}

.store-uploaded-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-section {
    padding: 25px 0;
    border-top: 1px solid var(--store-line);
}

.store-section h2 {
    margin: 0 0 10px;
    font-size: 23px;
    font-weight: 750;
    letter-spacing: 0;
}

.store-section > p {
    color: #5f5f66;
    font-size: 15px;
    line-height: 1.55;
}

.store-information dl, .store-information dl div {
    margin: 0;
}

.store-information dl div {
    display: flex;
    min-height: 46px;
    padding: 12px 0;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f2;
    gap: 20px;
}

.store-information dt {
    color: var(--store-muted);
}

.store-information dd {
    margin: 0;
    text-align: right;
}

.store-disclaimer {
    padding: 20px 0 38px;
    color: #929299;
    font-size: 12px;
    line-height: 1.5;
}

.store-disclaimer p {
    margin-top: 5px;
}

.store-review-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.store-review-heading h2 {
    margin-bottom: 0;
}

.store-review-heading > strong {
    color: #6d6d73;
    font-size: 20px;
    white-space: nowrap;
}

.store-review-heading > strong span {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    text-align: right;
}

.store-review-list {
    display: flex;
    margin-right: -28px;
    margin-left: -28px;
    margin-top: 18px;
    padding: 0 28px 8px;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.store-review-list::-webkit-scrollbar {
    display: none;
}

.store-review {
    flex: 0 0 min(78vw, 340px);
    min-height: 154px;
    padding: 18px;
    border: 1px solid #e7e7eb;
    border-radius: 16px;
    background: linear-gradient(160deg, #f7f7f9 0%, #f1f2f5 100%);
    scroll-snap-align: start;
}

.store-review-meta {
    display: flex;
    align-items: center;
    gap: 9px;
}

.store-review-avatar {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #dcecff;
    color: var(--store-blue);
    font-size: 14px;
    font-weight: 700;
}

.store-review-meta div {
    min-width: 0;
}

.store-review-meta strong {
    display: block;
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-review-meta small {
    display: block;
    margin-top: 2px;
    color: #f2a000;
    font-size: 12px;
    letter-spacing: 1px;
}

.store-review p {
    display: -webkit-box;
    margin-top: 14px;
    overflow: hidden;
    color: #505057;
    font-size: 14px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.store-tabbar {
    position: fixed;
    z-index: 20;
    left: 50%;
    bottom: 0;
    display: grid;
    width: min(620px, 100%);
    height: 82px;
    padding: 9px 18px max(8px, env(safe-area-inset-bottom));
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid rgba(180, 180, 185, .55);
    background: rgba(250, 250, 252, .9);
    transform: translateX(-50%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.store-tabbar > span {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    color: #17171a;
    gap: 4px;
}

.store-tabbar small {
    font-size: 10px;
}

.store-tabbar b {
    position: relative;
    display: block;
    width: 24px;
    height: 23px;
}

.store-tabbar .active {
    color: var(--store-blue);
}

.store-tab-news {
    border: 3px solid currentColor;
    border-radius: 3px;
}

.store-tab-news::after {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    top: 5px;
    height: 3px;
    background: currentColor;
    box-shadow: 0 6px 0 currentColor;
}

.store-tab-rocket::before {
    content: "◆";
    position: absolute;
    inset: -4px 0 0;
    font-size: 27px;
    transform: rotate(-20deg);
}

.store-tab-stack::before {
    content: "";
    position: absolute;
    inset: 1px 2px 5px;
    border-radius: 3px;
    background: currentColor;
    box-shadow: 0 5px 0 -1px #fff, 0 8px 0 currentColor;
}

.store-tab-pin {
    border: 3px solid currentColor;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg) scale(.76);
}

.store-tab-pin::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 6px;
    width: 6px;
    height: 6px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.store-tab-search {
    width: 21px !important;
    height: 21px !important;
    border: 3px solid currentColor;
    border-radius: 50%;
}

.store-tab-search::after {
    content: "";
    position: absolute;
    right: -7px;
    bottom: -5px;
    width: 9px;
    height: 3px;
    border-radius: 2px;
    background: currentColor;
    transform: rotate(45deg);
}

@media (max-width: 520px) {
    .store-nav {
        height: 70px;
        padding: 14px 22px 6px;
    }

    .store-circle-button {
        width: 48px;
        height: 48px;
    }

    .store-chevron {
        left: 20px;
        top: 16px;
        width: 15px;
        height: 15px;
    }

    .store-share-icon {
        left: 15px;
        top: 18px;
    }

    .store-content {
        padding: 16px 22px 0;
    }

    .store-product {
        grid-template-columns: 128px minmax(0, 1fr);
        gap: 20px;
    }

    .store-app-icon {
        width: 128px;
        height: 128px;
        border-radius: 28px;
    }

    .store-product-copy h1 {
        font-size: 25px;
    }

    .store-product-copy > p {
        font-size: 15px;
    }

    .store-actions .install-btn {
        min-width: 82px;
        height: 34px;
        padding: 0 16px;
        border-radius: 17px;
        font-size: 16px;
        line-height: 34px;
    }

    .store-metrics {
        margin-top: 24px;
    }

    .store-metrics > div {
        padding: 0 6px;
    }

    .store-metrics strong {
        font-size: 20px;
    }

    .store-gallery {
        margin-right: -22px;
        margin-left: -22px;
        padding-right: 22px;
        padding-left: 22px;
    }
}

@media (max-width: 390px) {
    .store-content {
        padding-right: 18px;
        padding-left: 18px;
    }

    .store-product {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 16px;
    }

    .store-app-icon {
        width: 112px;
        height: 112px;
        border-radius: 25px;
    }

    .store-product-copy h1 {
        font-size: 22px;
    }

    .store-product-copy > p {
        margin: 5px 0 9px;
        font-size: 13px;
    }

    .store-actions .install-btn {
        min-width: 70px;
    }

    .store-metrics small, .store-metrics span {
        font-size: 9px;
    }

    .store-metrics strong {
        font-size: 17px;
    }

    .store-preview {
        min-width: 82vw;
        width: 82vw;
        height: 470px;
    }

    .store-review-list {
        margin-right: -18px;
        margin-left: -18px;
        padding-right: 18px;
        padding-left: 18px;
    }

    .store-review {
        flex-basis: 82vw;
    }
}