:root {
    --red: #cf111d;
    --ink: #26272a;
    --muted: #74777c;
    --line: #e7e7e7;
    --soft: #f7f6f4;
    --max: 1180px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    background: #fff
}

a {
    text-decoration: none;
    color: inherit
}

.page {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh
}

.hero {
    height: 310px;
    color: #fff;
    position: relative;
    overflow: hidden;
    background: linear-gradient(112deg, #5c080e, #8d0b14 42%, #b40e19 72%, #7a0a12)
}

.hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 78% 30%, rgba(255, 255, 255, .12), transparent 24%), linear-gradient(120deg, transparent 0 56%, rgba(255, 255, 255, .055) 56% 57%, transparent 57%)
}

.hero:after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    right: 4%;
    top: -300px;
    box-shadow: 0 0 0 86px rgba(255, 255, 255, .025), 0 0 0 172px rgba(255, 255, 255, .018)
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--max);
    height: 100%;
    margin: auto;
    padding: 0 24px;
    display: flex;
    justify-content: flex-end;
    align-items: center
}

.hero-copy {
    text-align: right
}

.hero-en {
    font-size: 62px;
    font-weight: 700;
    line-height: .8;
    letter-spacing: -2px;
    color: rgba(255, 255, 255, .16)
}

.hero h1 {
    font-size: 39px;
    margin: -3px 0 26px;
    font-weight: 500
}

.hero-links {
    display: flex;
    justify-content: flex-end;
    gap: 34px
}

.hero-links a {
    font-size: 16px;
    padding-bottom: 7px;
    border-bottom: 2px solid rgba(255, 255, 255, .55)
}

.category-stream {
    scroll-margin-top: 12px
}

.category-stream:empty {
    display: none
}

.featured {
    min-height: 590px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
    content-visibility: auto;
    contain-intrinsic-size: 615px
}

.featured.alt {
    background: var(--soft)
}

.featured-inner {
    max-width: var(--max);
    width: 100%;
    margin: auto;
    display: grid;
    grid-template-columns: 48% 52%;
    align-items: center;
    gap: 58px
}

.featured.reverse .preview {
    order: 2
}

.featured.reverse .info {
    order: 1
}

.preview {
    height: 385px;
    display: grid;
    place-items: center;
    position: relative;
    perspective: 1200px
}

.laptop {
    position: relative;
    width: min(94%, 530px);
    aspect-ratio: 16/10;
    transform: rotateX(1deg);
    filter: drop-shadow(0 25px 24px rgba(24, 25, 29, .2))
}

.laptop-lid {
    position: absolute;
    inset: 0 3% 8%;
    padding: 10px;
    border-radius: 13px 13px 6px 6px;
    background: linear-gradient(145deg, #30343b, #111318);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12)
}

.laptop-screen {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 5px;
    background: #111820
}

.laptop-base {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 3%;
    height: 8%;
    border-radius: 2px 2px 16px 16px;
    background: linear-gradient(#d9dcdf, #8e949a);
    transform: perspective(240px) rotateX(55deg);
    transform-origin: top
}

.laptop-base:after {
    content: "";
    position: absolute;
    width: 17%;
    height: 24%;
    left: 41.5%;
    top: 16%;
    border-radius: 0 0 5px 5px;
    background: #7f858b
}

.device-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center
}

.device-placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #18222d, #0d141c);
    color: #e32530;
    font-size: 42px;
    font-weight: 900
}

.phone-device {
    position: relative;
    width: 205px;
    height: 385px;
    padding: 10px;
    border-radius: 34px;
    background: linear-gradient(145deg, #34383e, #101215);
    box-shadow: 0 25px 38px rgba(24, 25, 29, .23)
}

.phone-device:before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    z-index: 2;
    width: 34%;
    height: 17px;
    transform: translateX(-50%);
    border-radius: 0 0 11px 11px;
    background: #111318
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 26px;
    overflow: hidden;
    background: #f7f7f7
}

.phone-placeholder {
    height: 100%;
    padding: 58px 18px 20px;
    background: linear-gradient(180deg, #fff, #f1f2f4);
    color: var(--red);
    font-weight: 800
}

.phone-placeholder strong {
    display: block;
    font-size: 24px;
    margin-bottom: 28px
}

.phone-placeholder i {
    display: block;
    height: 54px;
    margin: 10px 0;
    border-radius: 9px;
    background: #fff;
    border-left: 4px solid var(--red);
    box-shadow: 0 4px 15px rgba(0, 0, 0, .07)
}

.info h2 {
    font-size: 32px;
    margin: 0 0 11px;
    font-weight: 500;
    word-break: break-word;
    overflow-wrap: break-word
}

.meta {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 0 18px
}

.meta .secondary {
    width: 100%;
    color: #8b8e92
}

.info h3 {
    font-size: 19px;
    margin: 0 0 13px;
    font-weight: 500;
    word-break: break-word
}

.description {
    color: #62666a;
    line-height: 1.9;
    font-size: 14px;
    margin: 0 0 8px;
    word-break: break-word;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: max-height .3s
}

.description.expanded {
    -webkit-line-clamp: unset;
    overflow: visible
}

.desc-toggle {
    display: inline-block;
    color: var(--red);
    font-size: 13px;
    cursor: pointer;
    margin-bottom: 20px;
    user-select: none
}

.desc-toggle:hover {
    text-decoration: underline
}

.download-box {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap
}

.download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 250px;
    min-height: 68px;
    padding: 0 27px;
    border-radius: 38px;
    background: #eef2f3;
    color: #111;
    font-size: 21px;
    font-weight: 700;
    box-shadow: 0 9px 19px rgba(29, 31, 35, .13);
    transition: .2s
}

.download.primary {
    min-width: 290px;
    font-size: 24px
}

.download:hover {
    transform: translateY(-2px)
}

.download-icon {
    width: 35px;
    height: 35px;
    border: 4px solid;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 25px;
    line-height: 1
}

.platform-symbol {
    font-size: 24px
}

.download .platform-symbol {
    width: 30px;
    height: 30px
}

.other-platforms {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 21px;
    margin-top: 9px
}

.other-platforms>span {
    font-size: 12px;
    color: #999
}

.platform-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #555;
    font-size: 13px;
    font-weight: 700
}

.stream-loader {
    height: 2px
}

.list-wrap {
    max-width: var(--max);
    margin: auto;
    padding: 48px 24px 70px
}

.app-list {
    padding: 0;
    margin: 0;
    list-style: none
}

.app-row {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    min-height: 112px;
    padding: 20px 4px;
    border-bottom: 1px solid var(--line);
    content-visibility: auto;
    contain-intrinsic-size: 112px
}

.app-icon {
    width: 58px;
    height: 58px;
    border-radius: 13px;
    background: #fff;
    border: 1px solid #e0e1e3;
    box-shadow: 0 4px 11px rgba(30, 32, 36, .07);
    display: grid;
    place-items: center;
    overflow: hidden
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.app-icon .fallback {
    color: var(--red);
    font-size: 22px;
    font-weight: 900
}

.app-title {
    display: flex;
    align-items: baseline;
    gap: 17px;
    margin-bottom: 7px
}

.app-title strong {
    font-size: 17px;
    word-break: break-word
}

.app-title span {
    font-size: 12px;
    color: #8a8d91
}

.app-desc {
    margin: 0 0 7px;
    font-size: 13px;
    color: #63676b;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word
}

.app-extra {
    font-size: 11px;
    color: #999
}

.row-actions {
    display: flex;
    gap: 9px;
    align-items: center
}

.row-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 106px;
    height: 40px;
    padding: 0 15px;
    border-radius: 21px;
    background: #eef2f3;
    color: #222;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 3px 9px rgba(30, 32, 36, .08)
}

.loading {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 13px
}

.loading:before {
    content: "";
    width: 16px;
    height: 16px;
    margin-right: 9px;
    border: 2px solid #ddd;
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin .8s linear infinite
}

.loading.done:before {
    display: none
}

.error {
    max-width: 900px;
    margin: 50px auto;
    padding: 22px;
    border-left: 4px solid var(--red);
    background: #fff3f4;
    color: #8b1119
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.site-footer {
    padding: 28px 24px;
    text-align: center;
    border-top: 1px solid var(--line);
    background: var(--soft);
    margin-top: auto
}

.footer-inner {
    max-width: var(--max);
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: #999;
    flex-wrap: wrap
}

.footer-inner a {
    color: #999
}

.footer-inner a:hover {
    color: var(--red)
}

@media(max-width:600px) {
    .footer-inner {
        flex-direction: column;
        gap: 6px
    }
}

@media(max-width:960px) {
    .featured-inner {
        grid-template-columns: 44% 56%;
        gap: 40px
    }

    .laptop-photo {
        width: min(100%, 460px)
    }

    .laptop {
        min-width: 0;
        width: min(94%, 460px)
    }

    .phone-photo {
        height: 320px;
        transform: scale(1.15)
    }
}

@media(max-width:800px) {
    .hero {
        height: 250px
    }

    .hero-en {
        font-size: 45px
    }

    .hero h1 {
        font-size: 33px
    }

    .featured {
        padding: 50px 22px;
        min-height: 0;
        contain-intrinsic-size: 520px
    }

    .featured-inner {
        grid-template-columns: 40% 60%;
        gap: 28px
    }

    .preview {
        height: auto;
        min-height: 240px;
        max-height: 360px;
        overflow: visible
    }

    .laptop-photo {
        width: min(100%, 380px)
    }

    .laptop {
        min-width: 0;
        width: min(94%, 380px)
    }

    .phone-photo {
        height: 280px;
        transform: scale(1)
    }

    .download.primary {
        min-width: 245px;
        font-size: 21px
    }
}

@media(max-width:600px) {
    .hero {
        height: 205px
    }

    .hero-inner {
        justify-content: flex-start
    }

    .hero-copy {
        text-align: left
    }

    .hero-en {
        font-size: 38px
    }

    .hero h1 {
        font-size: 28px;
        margin-bottom: 22px
    }

    .hero-links {
        justify-content: flex-start;
        gap: 24px
    }

    .hero-links a {
        font-size: 13px
    }

    .featured {
        padding: 38px 17px;
        contain-intrinsic-size: 700px
    }

    .featured-inner {
        display: flex;
        flex-direction: column;
        gap: 15px
    }

    .featured.reverse .preview,
    .featured.reverse .info {
        order: initial
    }

    .preview {
        width: 100%;
        height: auto;
        min-height: 180px;
        max-height: 320px
    }

    .laptop {
        width: 92%;
        min-width: 0
    }

    .phone-device {
        height: 235px;
        width: 126px;
        border-radius: 24px;
        padding: 6px
    }

    .phone-screen {
        border-radius: 19px
    }

    .phone-device:before {
        top: 5px;
        height: 11px
    }

    .phone-placeholder {
        padding: 37px 10px 10px
    }

    .phone-placeholder strong {
        font-size: 16px;
        margin-bottom: 15px
    }

    .phone-placeholder i {
        height: 30px;
        margin: 6px 0
    }

    .info {
        width: 100%
    }

    .info h2 {
        font-size: 24px
    }

    .description {
        line-height: 1.7
    }

    .download,
    .download.primary {
        width: 100%;
        min-width: 0;
        min-height: 62px;
        font-size: 20px
    }

    .meta {
        gap: 2px 12px
    }

    .other-platforms {
        justify-content: center
    }

    .list-wrap {
        padding: 28px 16px 50px
    }

    .app-row {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 12px;
        padding: 17px 0
    }

    .app-icon {
        width: 48px;
        height: 48px;
        border-radius: 11px
    }

    .app-title {
        display: block;
        margin-bottom: 4px
    }

    .app-title strong {
        font-size: 16px
    }

    .app-title span {
        display: block;
        margin-top: 3px
    }

    .app-desc {
        font-size: 12px
    }

    .row-actions {
        grid-column: 1/-1;
        justify-content: flex-end
    }

    .row-download {
        min-width: 98px
    }
}

.platform-symbol {
    width: 26px;
    height: 26px;
    display: inline-grid;
    place-items: center;
    color: #4a4d51
}

.platform-symbol svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor
}

.real-device {
    position: relative;
    isolation: isolate
}

.real-device .device-frame {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none
}

.real-device .device-content {
    position: absolute;
    z-index: 2;
    overflow: hidden;
    background: #101317
}

.real-device .device-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center
}

.laptop-photo {
    width: min(100%, 560px);
    aspect-ratio: 3/2;
    filter: drop-shadow(0 22px 24px rgba(24, 25, 29, .18))
}

.laptop-photo .device-content {
    left: 12.75%;
    top: 11.2%;
    width: 74.55%;
    height: 68.5%;
    border-radius: 1px
}

.phone-photo {
    height: 380px;
    aspect-ratio: 857/1536;
    filter: drop-shadow(0 22px 22px rgba(24, 25, 29, .2))
}

.phone-photo .device-content {
    left: 5.7%;
    right: 5.1%;
    top: 3.5%;
    bottom: 3.9%;
    border-radius: 8.5%/4.8%
}

.dynamic-island {
    position: absolute;
    z-index: 3;
    top: 5.5%;
    left: 50%;
    width: 25%;
    height: 3.45%;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #050505;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04)
}

.real-device .device-placeholder,
.real-device .phone-placeholder {
    width: 100%;
    height: 100%
}

@media(max-width:600px) {
    .laptop-photo {
        width: 100%
    }

    .phone-photo {
        height: 235px
    }
}

.laptop-photo .device-frame {
    position: absolute;
    inset: 0
}

.laptop-screen-shell {
    clip-path: inset(7.4% 10.9% 15.8% 11% round 2.2%)
}

.laptop-base-shell {
    clip-path: polygon(2.2% 83.8%, 10.7% 80.4%, 89.3% 80.4%, 97.8% 83.8%, 97.8% 91.5%, 94% 93.2%, 6% 93.2%, 2.2% 91.5%)
}

.real-device.verified-frame .unused {
    display: none
}

.real-device {
    filter: drop-shadow(0 22px 24px rgba(24, 25, 29, .18))
}

.real-device .device-frame {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    object-fit: contain
}

.real-device .device-content {
    z-index: 1
}

.laptop-photo {
    width: min(100%, 560px);
    aspect-ratio: 3944/2564
}

.laptop-photo .device-content {
    left: 14.69%;
    top: 11.7%;
    width: 70.65%;
    height: 67.56%;
    border-radius: 0;
    z-index: 9;
}

.phone-photo {
    height: 380px;
    aspect-ratio: 1419/2796;
    transform: scale(1.3);
}

.phone-photo .device-content {
    left: 7.05%;
    top: 4.33%;
    width: 84.57%;
    height: 92.35%;
    right: auto;
    bottom: auto;
    border-radius: 8%
}

.dynamic-island,
.laptop-screen-shell+.laptop-base-shell {
    display: none
}

@media(max-width:600px) {
    .phone-photo {
        height: 235px;
        transform: none
    }
}

/* clickable device preview */
.real-device.clickable {
    cursor: pointer
}

.real-device.clickable:hover .device-image {
    transform: scale(1.02);
    transition: transform .3s
}

/* lightbox overlay */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center
}

.lightbox-overlay.active {
    display: flex
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .88)
}

.lightbox-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    height: 100%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 60px
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 16px;
    z-index: 10;
    width: 44px;
    height: 44px;
    font-size: 32px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background .2s
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, .15)
}

.lightbox-swiper {
    width: 100%;
    height: 100%
}

.lightbox-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center
}

.lightbox-swiper .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
    user-select: none
}

.lightbox-pagination.swiper-pagination-bullets .swiper-pagination-bullet {
    background: #fff;
    opacity: .5;
    width: 10px;
    height: 10px
}

.lightbox-pagination.swiper-pagination-bullets .swiper-pagination-bullet-active {
    opacity: 1;
    background: #fff
}

.lightbox-prev,
.lightbox-next {
    color: #fff !important;
    --swiper-navigation-size: 36px
}

.lightbox-counter {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .75);
    font-size: 14px;
    z-index: 10
}

@media(max-width:600px) {
    .lightbox-container {
        padding: 50px 12px 40px
    }

    .lightbox-close {
        top: 6px;
        right: 6px;
        font-size: 28px
    }
}

/* 横屏手机预览 */
.phone-photo.landscape {
    width: 380px;
    height: 205px;
    aspect-ratio: unset
}

.phone-photo.landscape .device-frame {
    transform: rotate(90deg);
    transform-origin: center center;
    width: auto;
    height: 100%
}

.phone-photo.landscape .device-content {
    left: 12%;
    right: 12%;
    top: 15%;
    bottom: 12%;
    width: auto;
    height: auto;
    border-radius: 4%
}

@media(max-width:960px) {
    .phone-photo.landscape {
        width: 320px;
        height: 172px
    }
}

@media(max-width:600px) {
    .phone-photo.landscape {
        width: 100%;
        height: 0;
        padding-bottom: 53%;
        position: relative
    }

    .phone-photo.landscape .device-frame {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(90deg);
        height: 90%;
        width: auto
    }

    .phone-photo.landscape .device-content {
        left: 18%;
        right: 18%;
        top: 18%;
        bottom: 18%
    }
}