.rank-list {
    background: linear-gradient(135deg, #fafdff 0%, #f3f7fa 100%);
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(30, 159, 255, 0.07);
    padding: 0;
    margin-top: 0;
    overflow: hidden;
    border: 1px solid #e6ecf2;
}

.rank-item {
    display: flex;
    align-items: center;
    padding: 16px 12px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s, box-shadow 0.2s;
    position: relative;
    z-index: 1;
}

.rank-item:last-child {
    border-bottom: none;
}

.rank-item:not(:first-child):hover {
    background: #f0f7ff;
    box-shadow: 0 2px 12px rgba(30, 159, 255, 0.06);
}

.rank-item:first-child {
    background: #f5f7fa;
}

.rank-num {
    font-size: 22px;
    font-weight: bold;
    width: 38px;
    text-align: center;
    color: #b0b8c1;
    position: relative;
    z-index: 2;
}

.rank-item:nth-child(2) .rank-num {
    color: #ffb800;
    text-shadow: 0 2px 8px #fffbe6;
}

.rank-item:nth-child(3) .rank-num {
    color: #b5b5b5;
    text-shadow: 0 2px 8px #f5f5f5;
}

.rank-item:nth-child(4) .rank-num {
    color: #cd7f32;
    text-shadow: 0 2px 8px #f7e7ce;
}

/* Top 3 add badges */
.rank-item:nth-child(2) .rank-num::after {
    content: "🥇";
    position: absolute;
    right: -8px;
    top: 2px;
    font-size: 18px;
}

.rank-item:nth-child(3) .rank-num::after {
    content: "🥈";
    position: absolute;
    right: -8px;
    top: 2px;
    font-size: 18px;
}

.rank-item:nth-child(4) .rank-num::after {
    content: "🥉";
    position: absolute;
    right: -8px;
    top: 2px;
    font-size: 18px;
}

.app-info-cell {
    transition: all 0.2s ease;
    padding: 5px;
    border-radius: 6px;
    width: 100%;
}

.app-info-cell:hover {
    background: #f5faff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.app-text {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.app-name,
.app-company {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.app-text>div {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: contain;
    background: #eee;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(30, 159, 255, 0.08);
    border: 2px solid #f0f4fa;
    transition: transform 0.15s;
}

.rank-item:hover .app-icon {
    transform: scale(1.06) rotate(-2deg);
}


.tag-filter-bar {
    background: #fff;
    padding: 12px 12px 8px 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}


.tag-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.tag-header i {
    font-size: 18px;
    color: #1b303f;
    margin-right: 8px;
}

.tag-header span {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 76px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.tag-list.expanded {
    max-height: 1000px;
}

.show-more-tags {
    display: inline-block;
    color: #1b303f;
    cursor: pointer;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 15px;
    background: #f0f7ff;
    transition: all 0.3s;
    align-self: flex-end;
    margin-top: 5px;
}

.show-more-tags:hover {
    background: #e6f3ff;
    color: #1b303f;
}

.show-more-tags i {
    font-size: 12px;
    margin-left: 4px;
    transition: transform 0.3s;
}

.show-more-tags.expanded i {
    transform: rotate(180deg);
}

.tag-item {
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 14px;
    background: #f0f2f5;
    transition: background 0.3s, transform 0.3s;
    position: relative;
    color: #565658;
}

.tag-item.active {
    background: #192b38;
    color: #fff;
}

.tag-item:hover {
    background: #e6f7ff;
    transform: translateY(-2px);
}

.tag-name {
    display: inline-block;
    vertical-align: middle;
}

.tag-count {
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
    padding: 2px 6px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.6);
    color: #6f6d6d;
    font-size: 12px;
}

.layui-form label {
    font-size: 13px;
    color: #888;
    margin-bottom: 2px;
    font-weight: normal;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 12px;
}

.form-label {
    font-size: 13px;
    color: #888;
    margin-bottom: 2px;
    font-weight: normal;
}



.rank-col {
    flex-shrink: 0;
    flex-grow: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    padding: 0 4px;
}

.layui-table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(30, 159, 255, 0.08);
    border: 1px solid #e6ecf2;
}

.layui-table thead th {
    background: #f8fbff;
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid #e6ecf2;
    text-align: center;
}

.layui-table tbody tr:hover {
    background: #f5faff;
    transition: background 0.25s;
}

.layui-table td {
    padding: 10px 8px;
    color: #555;
}

.layui-table tbody tr:nth-child(1) td:first-child {
    color: #ff5722;
    font-weight: bold;
}

.layui-table tbody tr:nth-child(2) td:first-child {
    color: #ffb800;
    font-weight: bold;
}

.layui-table tbody tr:nth-child(3) td:first-child {
    color: #5fb878;
    font-weight: bold;
}

td.rating-high {
    color: #ff9800;
    font-weight: bold;
}

td.rating-low {
    color: #f44336;
}

.badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
}

.badge-green {
    background: #5fb878;
}

.badge-red {
    background: #ff5722;
}

.badge-blue {
    background: #1e9fff;
}

.vip-inline-card {
    background: #fff8f0;
    border: 1px solid #ffd8a8;
    border-radius: 10px;
    padding: 22px;
    margin: 18px 0;
    display: flex;
    gap: 18px;
    align-items: center;
    box-shadow: 0 6px 20px rgba(23, 0, 0, 0.06);
    min-height: 450px;
}

.vip-inline-card .icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd666, #ff9a00);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    
}

.vip-inline-card .content {
    flex: 1
}

.vip-inline-card h3 {
    margin: 0 0 6px;
    font-size: 18px;
    color: #192b38
}

.vip-inline-card p {
    margin: 0;
    color: #586070;
    font-size: 14px
}

.vip-inline-card .features {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.vip-inline-card .features span {
    background: #fff2e8;
    padding: 6px 10px;
    border-radius: 8px;
    color: #ad5b00;
    font-size: 13px
}

.vip-inline-card .actions {
    display: flex;
    gap: 10px
}

.vip-btn {
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600
}

.vip-btn-primary {
    background: #1677ff;
    color: #fff
}

.vip-btn-ghost {
    background: transparent;
    color: #1677ff;
    border: 1px solid rgba(22, 119, 255, 0.12)
}

.vip-lock {
    cursor: pointer
}

@media (max-width:640px) {
    .vip-inline-card {
        flex-direction: column;
        align-items: flex-start
    }
}

@media (max-width: 768px) {



    .rank-item {
        padding: 10px 4px;
        font-size: 12px;
    }

    .app-icon {
        width: 32px;
        height: 32px;
        margin: 0 4px 0 2px;
    }

    .rank-num {
        font-size: 14px;
        width: 18px;
    }

    .rank-list {
        overflow-x: auto;
    }

    .rank-item>div,
    .rank-item>img,
    .rank-item>.app-info {
        min-width: 60px;
    }

    .rank-item>.app-info {
        min-width: 90px;
    }

    .rank-item>[style*="flex:2"] {
        min-width: 100px !important;
    }

    .form-group {
        margin-bottom: 8px;
    }

    .form-label {
        font-size: 12px;
    }

    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        /* iOS 流畅滚动 */
    }

    .layui-table {
        min-width: 800px;
        /* 保证表格不会太挤，自己调整 */
    }
}

@media (max-width: 480px) {
    .banner-title {
        font-size: 16px;
    }

    .banner-desc {
        font-size: 11px;
    }

    .rank-item {
        font-size: 11px;
    }

    .app-title {
        font-size: 13px;
    }

    .app-dev {
        font-size: 11px;
    }
}

.selected-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 6px;
    font-size: 14px;
    margin-bottom: 10px;
}

.selected-label {
    color: #888;
    margin-right: 6px;
    font-weight: 500;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    padding-right: 4px;
    border-radius: 12px;
    font-size: 13px;
}

.filter-remove {
    color: #fff;
    margin-left: 3px;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.filter-remove:hover {
    opacity: 1;
    color: #ff5722;
}

@media (max-width: 768px) {
    .selected-filters {
        font-size: 12px;
        gap: 6px 4px;
    }

    .filter-tag {
        font-size: 12px;
    }
}

.rank-switch-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.rank-switch-btn {
    min-width: 160px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 22px;
    transition: box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(30, 159, 255, 0.06);
}

@media (max-width: 768px) {
    .rank-switch-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .rank-switch-btn {
        width: 100%;
        min-width: 0;
        font-size: 15px;
        border-radius: 18px;
    }
}

/* Search button group styles */
.search-btn-group {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
}

.search-btn-group .layui-btn {
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.search-btn-group .layui-btn i {
    font-size: 16px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .search-btn-group {
        margin-top: 15px;
        justify-content: center;
    }

    .search-btn-group .layui-btn {
        flex: 1;
        min-width: 0;
        padding: 0 15px;
    }
}

/* Ranking period switch styles */
.rank-period-switch {
    background: #fff;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.switch-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #333;
    font-size: 15px;
    font-weight: 500;
}

.switch-title .layui-icon {
    font-size: 16px;
    color: #1e9fff;
}

.rank-switch-bar {
    display: flex;
    gap: 12px;
}

.rank-switch-btn {
    min-width: 180px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    border-radius: 20px;
    transition: all 0.3s;
}

.rank-switch-btn .layui-icon {
    font-size: 16px;
}

.rank-switch-btn.layui-btn-normal {
    background: #192b38;
    box-shadow: 0 2px 8px rgba(30, 159, 255, 0.2);
}

.rank-switch-btn.layui-btn-primary:hover {
    color: #1e9fff;
    border-color: #1e9fff;
    background: #f0f7ff;
}

.fav-btn .fav-icon {
    font-size: 18px;
    color: #ff9800;
    transition: color 0.2s;
    vertical-align: middle;
    cursor: pointer;
    text-decoration: none;
}

.fav-btn.favorited .fav-icon {
    color: #ff9800;
    content: '\2665';
    /* 实心心 */
}

.fav-btn .fav-icon.filled {
    color: #ff9800;
}

.fav-btn:hover .fav-icon {
    color: #ff9800;
    cursor: pointer;
    text-decoration: none;
}

@media (max-width: 768px) {
    .rank-period-switch {
        padding: 12px 15px;
    }

    .rank-switch-bar {
        flex-direction: column;
    }

    .rank-switch-btn {
        width: 100%;
        min-width: 0;
    }
}