#pwa-install-guide-root {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.62);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

#pwa-install-guide-root.is-open {
    opacity: 1;
    visibility: visible;
}

#pwa-install-guide-root .pwa-dl-wrap {
    width: min(86vw, 21.5rem);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

#pwa-install-guide-root .pwa-dl-close {
    width: 1.85rem;
    height: 1.85rem;
    margin: 0 0.15rem 0.45rem 0;
    padding: 0.28rem;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
}

#pwa-install-guide-root .pwa-dl-close img {
    width: 100%;
    height: 100%;
    display: block;
}

#pwa-install-guide-root .pwa-dl-box {
    width: 100%;
    overflow: hidden;
    background: #fff;
    border-radius: 0.85rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

#pwa-install-guide-root .pwa-dl-top {
    position: relative;
    height: 8.6rem;
    background: linear-gradient(180deg, #2fd56c 0%, #12a84e 100%);
    clip-path: polygon(0 0, 100% 0, 100% 74%, 50% 100%, 0 74%);
}

#pwa-install-guide-root .pwa-dl-brand {
    height: 74%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
}

#pwa-install-guide-root .pwa-dl-brand img {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

#pwa-install-guide-root .pwa-dl-bottom {
    margin-top: -0.35rem;
    padding: 0.35rem 1rem 1.05rem;
}

#pwa-install-guide-root .pwa-dl-title {
    margin: 0 0 0.35rem;
    color: #1f2430;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.3;
}

#pwa-install-guide-root .pwa-dl-lead,
#pwa-install-guide-root .pwa-dl-desc-text,
#pwa-install-guide-root .pwa-dl-tips-text {
    color: #7b8494;
    font-size: 0.82rem;
    line-height: 1.45;
    white-space: pre-line;
}

#pwa-install-guide-root .pwa-dl-lead {
    margin: 0;
}

#pwa-install-guide-root .pwa-dl-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.9rem 0 0.95rem;
}

#pwa-install-guide-root .pwa-dl-btn {
    position: relative;
    overflow: hidden;
    flex: 1;
    height: 2.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 0;
    border-radius: 0.55rem;
    background: linear-gradient(180deg, #1aaa55 0%, #0b7d3a 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(18, 168, 78, 0.28);
}

#pwa-install-guide-root .pwa-dl-btn img,
#pwa-install-guide-root .pwa-dl-btn span {
    position: relative;
    z-index: 1;
}

#pwa-install-guide-root .pwa-dl-btn img {
    width: 1.25rem;
    height: 1.25rem;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

#pwa-install-guide-root .pwa-dl-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -70%;
    width: 45%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    animation: pwa-dl-shine 2.4s ease-in-out infinite;
}

#pwa-install-guide-root .pwa-dl-kf {
    flex: 0 0 2.7rem;
    width: 2.7rem;
    height: 2.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0.55rem;
    background: #0b7d3a;
    cursor: pointer;
}

#pwa-install-guide-root .pwa-dl-kf img {
    width: 1.25rem;
    height: 1.25rem;
}

#pwa-install-guide-root .pwa-dl-desc-title {
    margin: 0 0 0.35rem;
    color: #1f2430;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
}

#pwa-install-guide-root .pwa-dl-desc-text {
    margin: 0;
}

#pwa-install-guide-root .pwa-dl-tips {
    margin-top: 0.85rem;
    padding: 0.7rem 0.75rem;
    border-radius: 0.65rem;
    background: #f3f5f8;
}

#pwa-install-guide-root .pwa-dl-tips-top {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.25rem;
    color: #1f2430;
    font-size: 0.86rem;
    font-weight: 700;
}

#pwa-install-guide-root .pwa-dl-tips-top img {
    width: 1.05rem;
    height: 1.05rem;
    flex-shrink: 0;
}

#pwa-install-guide-root .pwa-dl-tips-text {
    margin: 0;
}

#pwa-install-guide-root .pwa-dl-ios-card {
    width: 100%;
    background: #fff;
    color: #1f2430;
    border-radius: 0.85rem;
    padding: 1rem 0.9rem 1.1rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

#pwa-install-guide-root .pwa-dl-ios-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
    font-size: 1rem;
    font-weight: 700;
}

#pwa-install-guide-root .pwa-dl-ios-x {
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

#pwa-install-guide-root .pwa-dl-ios-info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.9rem;
}

#pwa-install-guide-root .pwa-dl-ios-info img {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.55rem;
    object-fit: cover;
}

#pwa-install-guide-root .pwa-dl-ios-info div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.82rem;
}

#pwa-install-guide-root .pwa-dl-ios-info span:last-child {
    color: #6b7280;
}

#pwa-install-guide-root .pwa-dl-ios-steps {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    font-size: 0.84rem;
    line-height: 1.4;
}

#pwa-install-guide-root .pwa-dl-ios-steps img {
    width: 1.1rem;
    height: 1.1rem;
    vertical-align: middle;
}

#pwa-install-guide-root .pwa-dl-ios-steps span {
    font-weight: 700;
}

@keyframes pwa-dl-shine {
    0% { left: -70%; }
    55%, 100% { left: 130%; }
}
