/* ===== 分类 ===== */
.category-divider {
    position: relative;
    margin: 1rem 0;
    text-align: center;
}

/* 第一条分类线距离顶栏更近 */
.category-section:first-child .category-divider {
    margin-top: 0.5rem;
}

.category-name {
    display: inline-block;
    position: relative;
    padding: 0.5rem 1.5rem;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.category-name::before,
.category-name::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #6694CC, transparent);
}

.category-name::before {
    right: 100%;
    margin-right: 1rem;
}

.category-name::after {
    left: 100%;
    margin-left: 1rem;
}

/* ===== 应用块 ===== */
.app-box {
    display: grid;
    grid-template-columns: 70px 1fr 120px;
    gap: 1.2rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 1.3rem 1.2rem;
    margin: 1rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* 应用图标 */
.app-logo-frame {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    align-self: center;
    background: transparent;
}

.app-logo {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    object-position: center;
    transform: scale(1.08);
    transition: transform 0.3s ease;
}

/* 内容区域 */
.app-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.16rem;
    min-width: 0;
}

.app-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.22rem;
    min-width: 0;
}

.app-title {
    font-size: 1.5rem;
    color: #1e293b;
    width: 100%;
    margin: 0;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-description {
    font-size: 0.78rem;
    color: #677589;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 下载按钮 */
.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4595F2;
    color: white;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
    align-self: center;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
}

.download-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.download-btn:active {
    background: #1d4ed8;
    transform: translateY(0);
}

/* ===== 电脑端双列分类布局 ===== */
@media (min-width: 769px) {
    .container {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        gap: 0.75rem 1rem;
        max-width: 1440px;
        padding: 0.75rem 1rem 1.25rem;
    }

    .category-section {
        min-width: 0;
    }

    .category-section .category-divider.fl-line {
        margin: 0.5rem 0 0.35rem;
    }

    .category-name {
        padding: 0.35rem 1.25rem;
    }

    .app-box {
        grid-template-columns: 58px minmax(0, 1fr) auto;
        gap: 0.85rem;
        margin: 0.65rem 0;
        padding: 0.95rem 1rem;
    }

    .app-logo-frame {
        width: 58px;
        height: 58px;
    }

    .app-title {
        font-size: 1.1rem;
    }

    .app-description {
        font-size: 0.76rem;
        line-height: 1.45;
    }

    .download-btn {
        padding: 0.6rem 0.85rem;
        font-size: 0.78rem;
    }

}

/* ===== 适配 ===== */
@media (max-width: 768px) {
    .app-box {
        grid-template-columns: 50px 1fr 80px;
        gap: 1rem;
        padding: 1.1rem 1rem;
        margin: 0.8rem 0;
    }

    .app-logo-frame {
        width: 50px;
        height: 50px;
    }

    .app-title {
        font-size: 1rem;
    }

    .app-description {
        font-size: 0.78rem;
        -webkit-line-clamp: 1;
    }

    .download-btn {
        padding: 0.6rem;
        font-size: 0.76rem;
    }
}

/* 超🐔小屏幕优化 */
@media (max-width: 480px) {
    .site-title {
        font-size: 1.5rem;
    }

    .app-box {
        grid-template-columns: 40px 1fr 70px;
        gap: 0.8rem;
        padding: 0.9rem 0.8rem;
    }

    .app-logo-frame {
        width: 40px;
        height: 40px;
    }

    .app-title {
        font-size: 0.95rem;
    }

    .download-btn {
        padding: 0.5rem;
        font-size: 0.72rem;
    }
}

.version {
    display: inline-block;
    background: rgba(124, 209, 254, 0.15);
    color: #386AAC;
    padding: 0.1rem 0.44rem;
    border-radius: 999px;
    font-size: 0.76rem;
    line-height: 1.3;
    font-weight: 500;
    margin: 0;
}

/* 移动端调整 */
@media (max-width: 768px) {
    .version {
        padding: 0.08rem 0.4rem;
        font-size: 0.72rem;
    }
}
