:root {
    --primary-color: #304ffe;
    --secondary-color: #ffd400;
    --text-color: #1a1a1a;
    --bg-color: #f5f7fa;
    --card-bg: #ffffff;
    --accent-gradient: linear-gradient(135deg, #304ffe 0%, #3f51b5 100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: var(--card-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.logo {
    height: 40px;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-item {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 12px;
    transition: color 0.3s, background 0.3s;
}

.nav-item:hover, .nav-item.active {
    color: var(--primary-color);
    background: rgba(48, 79, 254, 0.1);
    border-radius: 6px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: all 0.3s;
}

.section {
    margin: 40px 0;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

h1, h2 {
    color: var(--primary-color);
    margin-bottom: 16px;
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
}

h2 {
    font-size: 1.8rem;
    font-weight: 600;
}

p {
    margin-bottom: 16px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.app-list .app-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    gap: 20px;
}

.app-rank {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    width: 40px;
    text-align: center;
    background: rgba(48, 79, 254, 0.1);
    padding: 10px;
    border-radius: 8px;
}

.app-main {
    flex: 1;
}

.app-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.app-logo-sm {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.app-info {
    flex: 1;
}

.app-title {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-color);
}

.app-meta {
    display: flex;
    gap: 12px;
    font-size: 0.9rem;
    color: #666;
    margin-top: 8px;
    flex-wrap: wrap;
}

.app-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.app-details {
    margin-top: 12px;
}

.app-desc {
    font-size: 0.9rem;
    color: #666;
}

.app-actions {
    margin-left: auto;
    text-align: right;
}

.download-btn {
    background: var(--secondary-color);
    color: var(--text-color);
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
    text-decoration: none;
    display: inline-block;
}

.download-btn:hover {
    background: #e6c200;
    transform: translateY(-2px);
}

.rating {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-top: 8px;
}

.withdrawal {
    display: flex;
    gap: 8px;
    font-size: 0.9rem;
    margin-top: 8px;
}

.label {
    font-weight: 500;
}

.value {
    color: #666;
}

.footer {
    background: var(--primary-color);
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    margin-top: 60px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.contact-icon {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.contact-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.contact-detail {
    font-size: 0.9rem;
}

.footer nav {
    margin: 20px 0;
}

.footer nav a {
    color: #fff;
    margin: 0 10px;
    font-size: 0.9rem;
}

.footer nav a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--card-bg);
        padding: 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .app-item {
        flex-direction: column;
        text-align: center;
    }

    .app-actions {
        margin-left: 0;
        margin-top: 16px;
    }

    .app-header {
        flex-direction: column;
        align-items: center;
    }

    .app-meta {
        justify-content: center;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

