html {
    width: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    background-color: #fff;
}

.page-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.page-loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loading-panel {
    max-width: 360px;
    width: calc(100% - 48px);
    padding: 28px 24px;
    border-radius: 16px;
}

.page-loading-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}

.page-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: #18c729;
    border-radius: 50%;
    animation: page-spin 0.9s linear infinite;
}

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

.page-loading-text {
    color: #cfcfcf;
    font-size: 15px;
    letter-spacing: 0.2px;
}

.page-error-icon {
    width: 46px;
    height: 46px;
    color: #ff6b6b;
}

.page-error-text {
    color: #ffd0d0;
    font-size: 14px;
    line-height: 1.5;
}

.page-retry-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #18c729;
    color: #000;
    border: none;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.page-retry-btn:hover {
    background: #19d92c;
}

.page-retry-btn:active {
    transform: scale(0.98);
}

.flex {
    display: flex;
}

.column {
    flex-direction: column;
}

.full-height {
    min-height: 100vh;
    justify-content: space-between;
}

/* ===== 上部分 ===== */
.top-section {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 80px 60px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    gap: 100px;
}

.left-content {
    max-width: 480px;
}

.green-title {
    font-size: 42px;
    font-weight: bold;
    color: #000000;
    line-height: 1.3;
    margin: 0 0 20px 0;
}

.sub-text {
    font-size: 16px;
    color: #848484;
    line-height: 1.6;
    margin: 0;
}

.right-illustration {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.illustration-img {
    max-width: 420px;
    width: 100%;
    border-radius: 20px;
}

/* ===== 下部分 ===== */
.bottom-section {
    padding: 40px 60px 60px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    flex: 1;
}

.download-row {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #e2e2e2;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 20px 28px;
    margin-bottom: 0px;
    cursor: pointer;
    transition: background 0.2s;
}

.download-row:hover {
    /* background: #7a4823; */
}

.platform-icon {
    width: 48px;
    height: 48px;
    background: #000;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.platform-icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.platform-name {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    flex: 1;
}

.download-btn {
    background: #18c729;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    padding: 10px 32px;
    border-radius: 24px;
    flex-shrink: 0;
}

#ios-download-label {
    background: #000;
    color: #fff;
}

#android-download-label {
    background: #000;
}

.button-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.download-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.install-guide {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4b4b4b;
    font-size: 14px;
    margin-top: 8px;
    cursor: pointer;
    transition: color 0.2s;
}

.install-guide:hover {
    color: #000;
}

.android-status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 24px;
    margin-top: 8px;
    padding-right: 4px;
    font-size: 13px;
}

.status-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4b4b4b;
}

.spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-top-color: #18c729;
    border-radius: 50%;
    flex-shrink: 0;
    animation: status-spin 0.8s linear infinite;
}

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

.status-error {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ff6b6b;
}

.retry-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.retry-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.mb20 {
    margin-bottom: 20px;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .top-section {
        flex-direction: column-reverse;
        padding: 40px 24px;
        text-align: center;
        gap: 0px;
    }

    .green-title {
        font-size: 28px;
    }

    .sub-text {
        font-size: 14px;
    }

    .right-illustration {
        justify-content: center;
        /* margin-top: 30px; */
    }

    .illustration-img {
        max-width: 260px;
    }

    .bottom-section {
        padding: 24px;
    }

    .button-row {
        flex-direction: column;
        align-items: center;
    }

    .download-col {
        width: 100%;
    }

    .download-row {
        /* width: 100%; */
        padding: 16px 20px;
        gap: 14px;
    }

    .platform-icon {
        width: 40px;
        height: 40px;
    }

    .platform-icon svg {
        width: 22px;
        height: 22px;
    }

    .platform-name {
        font-size: 15px;
    }

    .download-btn {
        padding: 8px 20px;
        font-size: 14px;
    }

    .android-status {
        justify-content: flex-start;
        padding-right: 0;
    }

    .status-error {
        flex-wrap: wrap;
    }
}