* {
    box-sizing: border-box;
}

html {
    background: #f5f7fb;
}

body {
    margin: 0;
    color: #202124;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    letter-spacing: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
}

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

img {
    display: block;
    max-width: 100%;
}

.mobile-page {
    background: #f5f7fb;
}

.mobile-shell {
    width: min(100%, 780px);
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    padding-bottom: 16px;
}

.download-section {
    padding: 40px 20px;
    background: linear-gradient(180deg, #e8f0ff 0%, #fff 100%);
}

.download-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin: 0 0 30px;
}

.app-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
    max-width: 800px;
    margin: 0 auto;
}

.app-info {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.app-icon {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

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

.app-details {
    flex: 1;
}

.app-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    font-size: 15px;
    color: #666;
    line-height: 1.8;
}

.download-button {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    margin-bottom: 8px;
    transition: transform .2s, box-shadow .2s;
}

.backup-download {
    text-align: center;
    font-size: 13px;
    color: #4d76e8;
    cursor: pointer;
    margin-bottom: 15px;
    text-decoration: none;
    display: block;
    padding: 0;
}

.backup-download:hover {
    text-decoration: underline;
}

.invite-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.invite-code-box {
    flex: 1;
    background: #fff;
    border: 1px dashed #d9d9d9;
    border-radius: 8px;
    padding: 12px 15px;
}

.invite-code {
    font-size: 13px;
    color: #666;
}

.invite-code strong {
    color: #333;
    font-size: 14px;
    margin-left: 3px;
    letter-spacing: 1px;
}

.card-button {
    display: inline-block;
    background: #5b7df6;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background .3s;
    white-space: nowrap;
}

.card-button:hover {
    background: #4a6de5;
}

@media (min-width: 769px) {
    .app-info {
        align-items: center;
    }
}


.content-section {
    padding: 24px 22px;
    border-top: 10px solid #f5f7fb;
}

.content-section h2 {
    margin: 0 0 16px;
    font-size: 21px;
    line-height: 1.25;
    font-weight: 750;
}

.rich-text {
    color: #596170;
    font-size: 15px;
    line-height: 1.85;
}

.screenshots-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}

.screenshots-row::-webkit-scrollbar {
    display: none;
}

.screenshot-item {
    position: relative;
    flex: 0 0 calc(50% - 6px);
    margin: 0;
    aspect-ratio: 9 / 16;
    border-radius: 12px;
    overflow: hidden;
    background: #eef2f7;
    scroll-snap-align: start;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .08);
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ratings-section {
    background: #fff;
}

.rating-summary {
    display: grid;
    grid-template-columns: 118px 1fr 96px;
    gap: 12px;
    align-items: center;
    margin-bottom: 22px;
}

.rating-number strong {
    display: block;
    font-size: 60px;
    line-height: .95;
    font-weight: 400;
}

.rating-number span,
.rating-count {
    color: #9aa3af;
    font-size: 13px;
}

.rating-bars {
    display: grid;
    gap: 8px;
}

.rating-bar {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 8px;
    align-items: center;
    color: #ffb000;
    font-size: 13px;
    white-space: nowrap;
}

.rating-bar::after {
    content: "";
    grid-column: 2;
    grid-row: 1;
    height: 5px;
    border-radius: 999px;
    background: #e5e7eb;
}

.rating-bar i {
    display: block;
    grid-column: 2;
    grid-row: 1;
    height: 5px;
    border-radius: 999px;
    background: #ffb000;
    z-index: 1;
}

.review-card {
    border-radius: 16px;
    background: #f8fafc;
    padding: 22px;
}

.review-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.review-head strong {
    font-size: 17px;
}

.review-head time,
.review-author {
    color: #8a94a3;
    font-size: 13px;
}

.stars {
    color: #ffb000;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.review-card p {
    margin: 0;
    color: #2f3745;
    font-size: 15px;
    line-height: 1.8;
}

.review-author {
    margin-top: 18px;
    text-align: right;
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #edf0f5;
    padding: 13px 0;
    color: #9aa3af;
}

.info-row strong {
    color: #1f2937;
    font-weight: 600;
    text-align: right;
}

.disclaimer {
    margin: 18px 0 0;
    color: #8a94a3;
    font-size: 13px;
    line-height: 1.7;
}

.footer-nav {
    width: min(100%, 780px);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    padding: 20px 16px 26px;
    background: #fff;
    color: #5b7df6;
    border-top: 1px solid #edf0f5;
}

.footer-nav small {
    width: 100%;
    text-align: center;
    color: #9aa3af;
    font-size: 12px;
}

.pc-page {
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #eef5ff, #f6fff8 55%, #fff9ee);
}

.pc-backdrop {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(91, 125, 246, .24), transparent 28%),
        radial-gradient(circle at 82% 25%, rgba(82, 196, 26, .18), transparent 30%),
        radial-gradient(circle at 50% 88%, rgba(255, 176, 0, .18), transparent 28%);
}

.pc-shell {
    min-height: calc(100vh - 68px);
    display: grid;
    place-items: center;
    padding: 36px 24px 24px;
    position: relative;
}

.pc-card {
    width: min(500px, 100%);
    border-radius: 26px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 24px 70px rgba(29, 51, 99, .18);
    padding: 54px 64px 46px;
    text-align: center;
    position: relative;
    backdrop-filter: blur(12px);
}

.pc-card h1 {
    margin: 0 0 28px;
    font-size: 24px;
    font-weight: 600;
}

.pc-logo {
    width: 168px;
    height: 168px;
    object-fit: cover;
    border-radius: 38px;
    margin: 0 auto 24px;
    box-shadow: 0 16px 34px rgba(46, 105, 225, .18);
}

.pc-card h2 {
    margin: 0 0 28px;
    font-size: 32px;
}

.qr-panel {
    display: inline-flex;
    padding: 22px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
}

.pc-card p {
    color: #7b8494;
    line-height: 1.8;
    margin: 24px 0 0;
}

.legal-page {
    --legal-bg: #f5f5f3;
    --legal-text: #111110;
    --legal-muted: #8a8a85;
    --legal-line: #e5e5e0;
    --legal-accent: #1a6aff;
    background: var(--legal-bg);
    color: var(--legal-text);
    min-height: 100vh;
    line-height: 1.7;
}

.legal-wrap {
    width: min(680px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 80px;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--legal-muted);
    font-size: 13px;
    margin-bottom: 28px;
}

.legal-back:hover {
    color: var(--legal-accent);
}

.legal-wrap h1 {
    margin: 0 0 8px;
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.25;
}

.legal-updated {
    color: var(--legal-muted);
    font-size: 12.5px;
    margin-bottom: 32px;
}

.legal-card {
    background: #fff;
    border: 1px solid var(--legal-line);
    border-radius: 20px;
    padding: 32px 30px;
    box-shadow: 0 1px 12px rgba(0, 0, 0, .05);
}

.legal-card h3 {
    margin: 26px 0 10px;
    color: var(--legal-text);
    font-size: 15.5px;
    font-weight: 700;
}

.legal-card h3:first-child {
    margin-top: 0;
}

.legal-card p {
    margin: 0 0 10px;
    color: #3a3a38;
    font-size: 14px;
    line-height: 1.85;
}

.legal-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    color: var(--legal-muted);
    font-size: 12.5px;
}

.legal-footer a {
    color: var(--legal-muted);
    border-bottom: 1px solid var(--legal-line);
}

.legal-footer a:hover {
    color: var(--legal-accent);
    border-color: var(--legal-accent);
}

@media (max-width: 640px) {
    .download-section {
        padding: 30px 15px;
    }

    .download-title {
        margin-bottom: 30px;
        font-size: 22px;
    }

    .app-card {
        padding: 20px;
    }

    .app-info {
        gap: 25px;
        align-items: flex-start;
        margin-bottom: 30px;
    }

    .app-icon {
        width: 90px;
        height: 90px;
        border-radius: 16px;
    }

    .app-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        font-size: 14px;
    }

    .content-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .invite-section {
        gap: 10px;
    }

    .invite-code-box {
        flex: 1;
        min-width: 0;
    }

    .rating-summary {
        grid-template-columns: 118px 1fr;
    }

    .rating-count {
        grid-column: 2;
    }

    .rating-number strong {
        font-size: 58px;
    }

    .rating-bar {
        grid-template-columns: 58px 1fr;
        font-size: 12px;
    }

    .pc-card {
        padding: 42px 30px 34px;
    }

    .pc-logo {
        width: 140px;
        height: 140px;
    }

    .legal-wrap {
        width: calc(100% - 32px);
        padding-top: 36px;
    }

    .legal-card {
        padding: 24px 20px;
    }
}
