* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    text-decoration: none;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #0a1153;
    color: white;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

/* Optimized Logo Styles */
.logo a {
    font-size: clamp(18px, 5vw, 24px);
    /* Responsive font size */
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    /* Adjust based on your needs */
    color: #fff;
}

/* Navigation Bar */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    gap: 15px;
}

/* Mobile-first navigation */
nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: clamp(12px, 3vw, 16px);
    /* Responsive font size */
    white-space: nowrap;
}

/* Media Queries for different screen sizes */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
    }

    .logo {
        max-width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    nav ul {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: clamp(16px, 4vw, 20px);
        max-width: 150px;
        margin: 0 auto 10px;
        padding-top: 10px;
    }

    nav ul {
        gap: 8px;
    }

    nav ul li a {
        padding: 3px 6px;
        font-weight: bold;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px;
    min-height: 70vh;
}

.hero {
    background-color: #3949ab;
    color: white;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.warning {
    background-color: #ffeb3b;
    color: #333;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 5px solid #ffc107;
}

.app-detail {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    text-align: center;
}

.app-detail h1 {
    color: #1a237e;
    margin-bottom: 15px;
}

.app-detail p {
    margin-bottom: 20px;
}

.app-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
    font-size: 18px;
}

.download-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.withdrawal-info {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.download-btn {
    display: inline-block;
    background-color: #e30c00;
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.download-btn:hover {
    background-color: #d73a31;
}

.directory-title {
    color: #1a237e;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a237e;
    text-align: center;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.app-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    text-align: center;
}

.app-card:hover {
    transform: translateY(-5px);
}

.app-image {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
}

.logo-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

.logo-circle img {
    max-width: 80%;
    max-height: 80%;
}

.download-info {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px;
    font-size: 12px;
    text-align: center;
}

.app-content {
    padding: 20px;
}

.app-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1a237e;
}

.app-withdrawal {
    font-size: 12px;
    color: #1a237e;
    margin-bottom: 15px;
}

.app-download-btn {
    display: inline-block;
    background-color: #d73a31;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    width: 100%;
    text-align: center;
    font-size: 14px;
}

.app-download-btn:hover {
    background-color: #e30c00;
}

/* Active Page Indicator */
.active {
    color: #ffeb3b !important;
    font-weight: bold;
}

footer {
    background-color: #0a1153;
    color: white;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.age-warning {
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
}

.footer-warning {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.footer-note {
    font-size: 12px;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ffeb3b;
}

.copyright {
    text-align: center;
    font-size: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Horizontal App Card Styles */
.app-card-horizontal {
    display: flex;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 5px;
}

.app-image-container {
    width: 120px;
    position: relative;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-color: #f8f8f8;
}

.logo-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 5px;
}

.logo-circle img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.download-info {
    font-size: 10px;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.app-content-container {
    flex: 1;
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.app-title a {
    font-size: 18px;
    color: #1a237e;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: bold;
    text-decoration: none;
}

.app-title a:hover {
    color: #3949ab
}

.app-bonus {
    color: #e30c00;
    font-size: 12px;
    margin-bottom: 3px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    nav ul li {
        margin-left: 8px;
    }

    .hero h1 {
        font-size: 18px
    }

    .hero {
        padding: 20px
    }

    .app-card-horizontal {
        height: auto;
    }

    .app-image-container {
        width: 100px;
    }

    .logo-circle {
        width: 80px;
        height: 80px;
    }

    .app-content-container {
        padding: 10px;
    }

    .app-bonus {
        font-size: 14px
    }
}

.is-logo-circle {
    width: 150px;
    height: 150px;
    /*border-radius: 50%;*/
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    /*box-shadow: 0 2px 5px rgba(0,0,0,0.1);*/
    margin: 0 auto;
}

.is-logo-circle img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.xingxing img {
    max-width: 100px;
    max-height: 21px;
    object-fit: contain;
}

@media (max-width: 480px) {
    .is-logo-circle {
        width: 80px;
        height: 80px;
    }
}

.button-container {
    display: none !important
}

nav ul li button {
    background-color: #a30c00;
    color: #ffeb3b;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
}

@media (max-width: 480px) {
    nav ul li button {
        display: none
    }
}

.logo-circle .app-rank {
    font-weight: bold;
    background: #AD0000;
    font-size: 18px;
    display: inline-block;
    position: absolute;
    top: 28px;
    color: #ffff00;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    text-align: center;
}

.logo-circle .app-comment {
    margin-top: 4px;
    font-size: 14px;
}

.xingxingx {
    position: absolute;
    bottom: 25px;
}

.xingxingx img {
    max-width: 56px;
    max-height: 13px;
    object-fit: contain;
    box-shadow: none;
}

#floating-download-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgb(0 0 0 / 85%);
    border-top: 2px solid #f0c000;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 10px 15px;
    display: flex;
    justify-content: center;
    color: #f9eb26;
}

.download-bar-content {
    display: flex;
    align-items: center;
    max-width: 768px;
    width: 100%;
}

.app-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    margin-right: 10px;
}

.download-text {
    flex-grow: 1;
    font-size: 14px;
    line-height: 1.2;
}

.download-btn {
    border: none;
    background-color: #B30000;
    color: #fff;
    padding: 8px 16px;
    font-weight: bold;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.download-btn:hover {
    background-color: #e86e00;
}

@media screen and (max-width: 480px) {
    .download-text {
        font-size: 13px;
    }

    .download-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}