* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", Arial, sans-serif;
    background: #05070c;
    color: #f8fafc;
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

img {
    display: block;
    max-width: 100%;
}

.page {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 16px 14px 28px;
    background:
            radial-gradient(circle at top left, rgba(34, 197, 94, 0.16), transparent 34%),
            radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 30%),
            linear-gradient(180deg, #101827 0%, #05070c 100%);
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 2px 14px;
}

.header-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ffffff;
}

.header-subtitle {
    margin-top: 4px;
    font-size: 14px;
    color: #94a3b8;
}

.search-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(30, 41, 59, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #7cff4d;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(124, 255, 77, 0.22);
}

.notice {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 14px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.92);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    border: 1px solid rgba(124, 255, 77, 0.18);
}

.notice-icon {
    flex: 0 0 auto;
    margin-right: 8px;
    font-size: 18px;
}

.notice-label {
    flex: 0 0 auto;
    margin-right: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #7cff4d;
}

.notice-scroll {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.notice-text {
    display: inline-block;
    padding-left: 100%;
    font-size: 14px;
    color: #cbd5e1;
    animation: marquee 12s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.page-main {
    width: 100%;
}

/* Banner 图片轮播 */
.banner-wrap {
    margin-bottom: 16px;
}

.banner-scroll {
    display: flex;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    border-radius: 22px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.banner-scroll::-webkit-scrollbar {
    display: none;
}

.banner {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 168px;
    border-radius: 22px;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: #111827;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.48);
    border: 1px solid rgba(124, 255, 77, 0.14);
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}

.banner-dot {
    width: 7px;
    height: 7px;
    border: none;
    border-radius: 999px;
    background: #475569;
    transition: all 0.25s ease;
    cursor: pointer;
}

.banner-dot.active {
    width: 18px;
    background: #7cff4d;
}

/* 通用区块 */
.section {
    margin-bottom: 16px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.92);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(124, 255, 77, 0.14);
}

.section-head {
    padding: 16px 16px 0;
}

.section-head.compact {
    padding: 16px 16px 0;
}

.section-head h2 {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
}

.section-head p {
    margin-top: 4px;
    font-size: 13px;
    color: #94a3b8;
}

/* 图标宫格标题 */
.icon-grid-title-wrap {
    position: relative;
    width: calc(100% - 4px);
    margin: 0 auto 4px;
}

.icon-grid-title-frame {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
}

.icon-grid-title-text {
    position: absolute;
    left: 50%;
    top: 50%;
    max-width: 54%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: 900;
    color: #9cff4f;
    line-height: 1;
    text-align: center;
    letter-spacing: 1px;
    text-shadow:
            0 0 6px rgba(31, 255, 119, 0.95),
            0 0 12px rgba(31, 255, 119, 0.65);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    pointer-events: none;
}

.icon-grid-section {
    padding-top: 0;
}

.icon-grid-subtitle {
    margin: 0 14px 4px;
    font-size: 12px;
    line-height: 1.4;
    color: #94a3b8;
    text-align: center;
}

/* 图标宫格 */
.app-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    row-gap: 16px;
    padding: 10px 8px 16px;
}

.app-item {
    text-align: center;
    min-width: 0;
}

.app-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 6px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b, #334155);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(124, 255, 77, 0.16);
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-name {
    display: block;
    font-size: 12px;
    color: #e5e7eb;
    line-height: 1.15;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* 双列推荐 */
.recommend-section {
    margin-bottom: 16px;
}

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.recommend-section .section-head {
    padding: 0 2px 8px;
}

.recommend-card {
    display: flex;
    align-items: center;
    min-height: 68px;
    padding: 6px 8px;
    border-radius: 15px;
    background: rgba(15, 23, 42, 0.92);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
    min-width: 0;
    border: 1px solid rgba(124, 255, 77, 0.14);
}

.recommend-icon {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    margin-right: 6px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b, #334155);
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(124, 255, 77, 0.16);
}

.recommend-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommend-info {
    min-width: 0;
    flex: 1;
}

.recommend-title {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 2px;
    line-height: 1.15;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.recommend-desc {
    display: -webkit-box;
    font-size: 10px;
    line-height: 1.25;
    color: #94a3b8;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 空数据 */
.empty-card {
    width: 100%;
    min-height: 80px;
    padding: 20px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.92);
    color: #94a3b8;
    font-size: 14px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(124, 255, 77, 0.14);
}

.grid-empty {
    grid-column: 1 / -1;
}

.list-empty {
    grid-column: 1 / -1;
}

@media (max-width: 360px) {
    .page {
        padding: 14px 10px 24px;
    }

    .header-title {
        font-size: 25px;
    }

    .header-subtitle {
        font-size: 13px;
    }

    .banner {
        height: 150px;
        border-radius: 20px;
    }

    .icon-grid-title-wrap {
        width: 100%;
        margin-bottom: 3px;
    }

    .icon-grid-title-text {
        max-width: 52%;
        font-size: 14px;
    }

    .app-grid {
        row-gap: 14px;
        padding: 8px 6px 14px;
    }

    .app-icon {
        width: 54px;
        height: 54px;
        border-radius: 16px;
    }

    .app-name {
        font-size: 11px;
    }

    .recommend-grid {
        gap: 6px;
        margin-bottom: 6px;
    }

    .recommend-card {
        min-height: 64px;
        padding: 5px 6px;
        border-radius: 14px;
    }

    .recommend-icon {
        width: 46px;
        height: 46px;
        margin-right: 5px;
        border-radius: 13px;
    }

    .recommend-title {
        font-size: 12px;
    }

    .recommend-desc {
        font-size: 10px;
    }
}