/* ========================================
   Anya & Kimo - 串口调试助手下载页
   2026-06-10
   ======================================== */

/* ---- 主内容区 ---- */
.main {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
    padding: 120px 32px 80px;
    text-align: center;
}

/* ---- Logo ---- */
.logo-box {
    display: inline-block;
    margin-bottom: 32px;
}

.logo-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
}

/* ---- 标题 ---- */
.title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #ff6b9d 45%, #c44dff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ---- 版本徽章 ---- */
.version {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #ff6b9d;
    background: rgba(255, 107, 157, 0.1);
    border: 1px solid rgba(255, 107, 157, 0.2);
    margin-bottom: 48px;
}

.version::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #4ade80;
    border-radius: 50%;
    margin-right: 8px;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.25;
    }
}

/* ---- 下载卡片 ---- */
.download-card {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 36px 32px;
    backdrop-filter: blur(16px);
    overflow: hidden;
    text-align: center;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 157, 0.5), transparent);
}

.card-badge {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ff6b9d;
    margin-bottom: 24px;
}

/* ---- 平台切换 ---- */
.platforms {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.platform {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
}

.platform.active {
    background: rgba(255, 107, 157, 0.12);
    border-color: rgba(255, 107, 157, 0.35);
    color: #fff;
}

.platform:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.platform:not(:disabled):hover {
    border-color: rgba(255, 107, 157, 0.3);
    background: rgba(255, 107, 157, 0.06);
}

.platform svg {
    opacity: 0.7;
}

.platform.active svg {
    opacity: 1;
}

/* ---- 下载按钮 ---- */
.dl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #ff6b9d, #c44dff);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.dl-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.dl-btn:hover::after {
    transform: translateX(100%);
}

.dl-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 107, 157, 0.4);
}

.dl-info {
    margin-top: 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}

/* ---- 特性 ---- */
.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 500px;
    margin: 20px auto 0;
}

.feat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    transition: all 0.3s;
}

.feat:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 107, 157, 0.2);
    color: rgba(255, 255, 255, 0.85);
}

.feat-icon {
    font-size: 18px;
    flex-shrink: 0;
}

/* ---- 响应式 ---- */
@media (max-width: 540px) {
    .main {
        padding: 100px 16px 60px;
    }

    .title {
        font-size: 26px;
    }

    .subtitle {
        font-size: 14px;
    }

    .logo-img {
        width: 100px;
        height: 100px;
    }

    .logo-ring {
        width: 150px;
        height: 150px;
    }

    .download-card {
        padding: 28px 20px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .dl-btn {
        padding: 16px;
        font-size: 15px;
    }
}