/* 下载按钮（A 方案：安卓 / 苹果 双按钮） */
.dl-slot { display: block; }

.dl-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.dl-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: .5px;
    white-space: nowrap;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
    border: none;
}

.dl-btn:hover,
.dl-btn:active {
    transform: translateY(-1px);
    filter: brightness(1.05);
    color: #fff !important;
}

.dl-btn span { position: relative; z-index: 2; line-height: 1; }

.dl-btn svg {
    position: relative;
    z-index: 2;
    width: 1.15em;
    height: 1.15em;
    fill: currentColor;
    flex: none;
}

/* 尺寸 */
.dl-lg { height: 54px; padding: 0 22px; font-size: 18px; flex: 1; }
.dl-sm { height: 34px; padding: 0 12px; font-size: 13px; }

/* 配色 */
.dl-android { background: linear-gradient(180deg, #ffb02e, #ff7a00) !important; background-color: #ff8a00 !important; }
.dl-ios     { background: linear-gradient(180deg, #565656, #151515) !important; background-color: #222 !important; }

/* 顶栏：窄按钮 */
.specialTop .mo { width: auto !important; }
.specialTop .dl-row { gap: 6px; }
.specialTop .dl-btn.dl-sm { height: 31px; padding: 0 10px; font-size: 12px; }

/* 主区域 */
.specialApp .dl-slot { margin-top: 14px; }
.specialApp .dl-row { gap: 12px; }

/* 底部悬浮栏 */
#dl-bottom-wrap { width: 40% !important; }
#dl-bottom-wrap .dl-row { gap: 6px; }
#dl-bottom-wrap .dl-btn { height: 26px; font-size: 10px; padding: 0 7px; gap: 4px; box-shadow: none; }
#dl-bottom-wrap .dl-btn svg { width: 11px; height: 11px; }

/* ===== 主按钮高亮：霓虹呼吸 + 光带扫过 + 波纹 ===== */
.dl-main-wrap {
    position: relative;
    display: flex;
    flex: 1;
    min-width: 0;
}

.dl-main-wrap .dl-btn { width: 100%; }

/* 光带 */
.dl-lg::after {
    content: "";
    position: absolute;
    top: -60%;
    left: -40%;
    width: 28%;
    height: 220%;
    background: linear-gradient(100deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, .55) 50%,
        rgba(255, 255, 255, 0) 100%);
    transform: skewX(-22deg);
    animation: dl-shine 3.4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes dl-shine {
    0%   { left: -40%; opacity: 0; }
    12%  { opacity: 1; }
    42%  { left: 118%; opacity: 1; }
    55%  { left: 118%; opacity: 0; }
    100% { left: 118%; opacity: 0; }
}

/* 霓虹呼吸 */
.dl-lg.dl-android { animation: dl-neon-android 2.2s ease-in-out infinite; }
.dl-lg.dl-ios     { animation: dl-neon-ios 2.2s ease-in-out .35s infinite; }

@keyframes dl-neon-android {
    0%, 100% { transform: scale(1); box-shadow: 0 6px 16px rgba(255, 122, 0, .35), 0 0 0 2px rgba(255, 190, 90, .50), 0 0 12px 2px rgba(255, 150, 30, .35), inset 0 0 0 1px rgba(255, 255, 255, .35); }
    50%      { transform: scale(1.02); box-shadow: 0 10px 30px rgba(255, 122, 0, .60), 0 0 0 5px rgba(255, 210, 130, .95), 0 0 34px 12px rgba(255, 150, 30, .75), inset 0 0 0 2px rgba(255, 255, 255, .85); }
}

@keyframes dl-neon-ios {
    0%, 100% { transform: scale(1); box-shadow: 0 6px 16px rgba(0, 0, 0, .40), 0 0 0 2px rgba(130, 195, 255, .45), 0 0 12px 2px rgba(120, 190, 255, .30), inset 0 0 0 1px rgba(255, 255, 255, .25); }
    50%      { transform: scale(1.02); box-shadow: 0 10px 30px rgba(0, 0, 0, .50), 0 0 0 5px rgba(170, 220, 255, .90), 0 0 34px 12px rgba(120, 190, 255, .70), inset 0 0 0 2px rgba(255, 255, 255, .75); }
}

/* 波纹：从按钮边缘向外扩散 */
.dl-ring {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    border: 3px solid rgba(255, 205, 120, .95);
    opacity: 0;
    pointer-events: none;
    animation: dl-ring 2.6s ease-out infinite;
}

.dl-main-wrap.dl-ring-ios .dl-ring {
    border-color: rgba(150, 210, 255, .95);
    animation-delay: 1.3s;
}

.dl-main-wrap .dl-ring:nth-of-type(2) { animation-delay: 1.3s; }
.dl-main-wrap.dl-ring-ios .dl-ring:nth-of-type(2) { animation-delay: .5s; }

@keyframes dl-ring {
    0%   { transform: scale(1); opacity: .85; }
    70%  { transform: scale(1.05, 1.30); opacity: 0; }
    100% { transform: scale(1.05, 1.30); opacity: 0; }
}

.dl-main-wrap:hover .dl-ring { animation-duration: 1.6s; }

@media (prefers-reduced-motion: reduce) {
    .dl-lg,
    .dl-lg::after,
    .dl-ring { animation: none !important; }
}

@media (max-width: 768px) {
    .dl-lg { height: 46px; padding: 0 14px; font-size: 15px; }
    .specialApp .dl-row { gap: 8px; }
    .specialTop .dl-btn.dl-sm { height: 28px; padding: 0 8px; font-size: 11px; }
    .specialTop .dl-btn svg { width: 12px; height: 12px; }
    #dl-bottom-wrap { width: 46% !important; }
}
