@charset "UTF-8";

/* Common section headings */
.hero-slider h2,
.latest-apps h2,
.android-games h2,
.android-software h2 {
    font-size: 28px; /* Prominent headings */
    color: #333;
    margin-bottom: 30px; /* Increased margin */
    text-align: left;
    padding-left: 20px; /* Align with container padding */
    font-weight: 800; /* Extra bold */
}

/* Common section backgrounds/shadows */
.latest-apps, .android-games, .android-software {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08); /* Consistent shadow with common.css */
    margin-bottom: 35px; /* More spacing between sections */
    padding: 30px 0; /* Adjust padding for sections */
}


/* Latest Apps - 图文两列/单列布局 */
.latest-app-list {
    padding: 0 20px; /* Apply list padding */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); /* Two columns on PC */
    gap: 25px; /* Gap between items */
}

.latest-app-item {
    background-color: #FAF8F6; /* Slightly off-white background for items */
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05); /* Soft inner shadow */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #F0EFEF;
    display: flex;
    gap: 20px;
}

.latest-app-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.latest-app-item a {
    display: flex;
    align-items: center;
    gap: 20px; /* Space between icon and info */
    color: inherit;
}

.latest-app-item .app-icon-wrapper {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFDAB9; /* PeachPuff background for icon */
    border-radius: 18px; /* Rounded icon wrapper */
    overflow: hidden;
    border: 1px solid #FFCBA5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.latest-app-item .app-icon {
    width: 70px; /* Smaller icon inside wrapper */
    height: 70px;
    object-fit: contain;
    border-radius: 12px;
}

.latest-app-item .app-info {
    flex-grow: 1;
    text-align: left;
}

.latest-app-item h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #333;
    font-weight: 700;
}

.latest-app-item p {
    font-size: 15px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.latest-app-item .app-category {
    display: inline-block;
    background-color: #FFE4B5; /* Moccasin */
    color: #D2691E; /* Chocolate */
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 600;
}


/* Android Games - 简洁卡片 Swiper 布局 */
.android-games .swiper-container {
    height: auto;
    padding: 20px 0; /* Vertical padding for content */
    background-color: #FAF8F6;
    box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.04); /* Inner shadow */
    position: relative;
    border-radius: 0;
}

.android-games .swiper-wrapper {
    align-items: stretch;
}

.game-simple-card {
    width: 160px; /* Fixed width for each game card slide */
    flex-shrink: 0;
    padding: 0 15px; /* Spacing between cards in carousel */
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.game-simple-card a {
    background-color: #ffffff;
    border-radius: 15px; /* More rounded game cards */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    text-align: center;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #F0EFEF;
}

.game-simple-card a:hover {
    transform: translateY(-7px) rotateZ(-1deg); /* Slight lift and rotate on hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.game-simple-card .game-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 20px; /* Highly rounded game icons */
    margin-bottom: 12px;
    border: 1px solid #FFEBCD; /* BlanchedAlmond border */
}

.game-simple-card h3 {
    font-size: 18px;
    margin-bottom: 6px;
    color: #333;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.game-simple-card p {
    font-size: 14px;
    color: #777;
    margin-bottom: 0;
}


/* Android Software - 扁平小卡片网格布局 */
.software-compact-grid {
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); /* More items per row, compact */
    gap: 15px; /* Smaller gap */
}

.software-grid-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    padding: 15px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #F0EFEF;
}

.software-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.software-grid-card a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.software-grid-card .software-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%; /* Circular icons */
    margin-bottom: 10px;
    border: 2px solid #FFDAB9; /* PeachPuff border for circular icons */
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.software-grid-card h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.software-grid-card p {
    font-size: 13px;
    color: #777;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}


/* Specific styling for view-more buttons within sections */
.latest-apps .view-more,
.android-games .view-more,
.android-software .view-more {
    display: block;
    width: fit-content;
    margin: 30px auto 0;
}
.software-grid-card:nth-last-child(1){
        display: none;
    }
/* Mobile specific adjustments for index page */
@media (max-width: 768px) {
    .software-grid-card:nth-last-child(1){
        display: block;
    }
    .hero-slider h2,
    .latest-apps h2,
    .android-games h2,
    .android-software h2 {
        font-size: 22px;
        padding-left: 0;
        text-align: center;
        margin-bottom: 25px;
    }

    .latest-apps, .android-games, .android-software {
        padding: 25px 0;
        margin-bottom: 30px;
    }

    /* Latest Apps - Mobile */
    .latest-app-list {
        padding: 0 15px;
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }
    .latest-app-item {
        padding: 15px;
    }
    .latest-app-item a {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .latest-app-item .app-icon-wrapper {
        width: 80px;
        height: 80px;
        border-radius: 15px;
        margin: 0 auto;
    }
    .latest-app-item .app-icon {
        width: 55px;
        height: 55px;
        border-radius: 10px;
    }
    .latest-app-item h3 {
        font-size: 18px;
        margin-bottom: 6px;
    }
    .latest-app-item p {
        font-size: 14px;
        margin-bottom: 8px;
    }
    .latest-app-item .app-category {
        font-size: 12px;
        padding: 4px 10px;
    }


    /* Android Games Swiper - Mobile */
    .game-simple-card {
        width: 140px;
        padding: 0 10px;
    }
    .game-simple-card a {
        padding: 15px;
        border-radius: 12px;
    }
    .game-simple-card .game-icon {
        width: 80px;
        height: 80px;
        border-radius: 18px;
        margin-bottom: 10px;
    }
    .game-simple-card h3 {
        font-size: 16px;
    }
    .game-simple-card p {
        font-size: 13px;
    }

    /* Android Software Grid - Mobile */
    .software-compact-grid {
        padding: 0 15px;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); /* 2 columns on mobile */
        gap: 12px;
    }
    .software-grid-card {
        padding: 12px;
        border-radius: 8px;
    }
    .software-grid-card .software-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 8px;
    }
    .software-grid-card h3 {
        font-size: 14px;
    }
    .software-grid-card p {
        font-size: 11px;
    }
    

    .view-more {
        margin: 25px auto 0;
    }
}