:root {
    --primary-color: #FF6041;
    --bg-gray: #f8f8f8;
    --border-color: #eeeeee;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: #ffffff;
    padding-bottom: 70px;
}


header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-left {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 15px;
}

.logo img {
    height: 39px;
    display: block;
}


.search-wrap {
    flex: 1;
    max-width: 500px;
    display: flex;
    align-items: center;
    position: relative;
    background: #f5f5f5;
    border-radius: 25px;
    padding: 2px 2px 2px 2px;
    border: 1px solid #e5e5e5;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #333;
    height: 36px;
    margin: 2px 20px;
}

@media (max-width: 767px) {
    .search-input {
        margin: 2px 1px;
    }
}

.search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn svg {
    width: 18px;
    height: 18px;
    fill: white;
}


.content {
    margin-top: 75px;
    display: flex;
}


aside {
    width: 240px;
    display: none;
    position: fixed;
    left: 0;
    padding: 10px;
    border-right: 1px solid var(--border-color);
    height: calc(100vh - 75px);
}

.side-item {
    display: flex;
    align-items: center;
    padding: 8px 18px;
    text-decoration: none;
    color: #555;
    border-radius: 15px;
    margin-bottom: 5px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    font-size: 15px;
}

.side-item.active {
    background: var(--primary-color);
    color: #fff;
}

.side-item:hover:not(.active) {
    background: #f5f5f5;
}

.side-icon {
    margin-right: 15px;
    font-size: 20px;
    font-style: normal;
}

main {
    flex: 1;
    padding: 20px;
}

.banner {
    background: #333;
    border-radius: 24px;
    padding: 40px;
    color: white;
    min-height: 200px;
}


.header-promo {
    display: flex;
    align-items: center;
    background: #fff5f2;
    padding: 5px 12px;
    border-radius: 12px;
    margin: 0 15px;
    border: 1px solid #ffede8;
}

.promo-logo-box {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    border-radius: 8px;
    margin-right: 8px;
    position: relative;
}

.promo-logo-box::after {
    content: "";
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #fff;
}

.btn-download {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
}


.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 65px;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #eee;
    z-index: 1001;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.nav-item {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #888;
    font-size: 11px;
    flex: 1;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-item.active {
    color: var(--primary-color);
}


.menu-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.menu-mask.active {
    display: flex;
}

.menu-content {
    background: #fff;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
}

.menu-header {
    padding: 15px;
    display: flex;
    justify-content: flex-end;
    border-bottom: 1px solid #eee;
}

.close-btn {
    font-size: 24px;
    border: none;
    background: none;
    color: #888;
    cursor: pointer;
}

.menu-section {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.section-title {
    display: flex;
    align-items: center;
    font-weight: bold;
    margin-bottom: 15px;
    gap: 10px;
}

.tag-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    font-weight: bold;
}

.wallet-promo {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #fff;
    cursor: pointer;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
}

.wallet-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-right: 15px;
}


@media (min-width: 769px) {
    .bottom-nav {
        display: none;
    }

    aside {
        display: block;
    }

    main {
        margin-left: 240px;
        padding: 40px;
    }

    body {
        padding-bottom: 0;
    }

    .menu-content {
        width: 600px;
        height: auto;
        max-height: 85vh;
        border-radius: 28px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    }
}

@media (max-width: 768px) {

    .header-promo,
    .btn-download {
        display: none;
    }

    .content {
        margin-top: 65px;
    }
}

.search-wrap form {
    display: flex;
    width: 100%;
    align-items: center;
}