* {
    margin: 0;
    padding: 0;
}

/* .top-fixed {
    position: relative !important;
} */

.goods-list.grid-view,
.goods-list.list-view {
    padding-top: 206px;
}

.new-top {
    width: 100%;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px 0 10px;
    box-sizing: border-box;

}

.new-top-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.new-top-left-img-box {
    position: relative;
    width: 32px;
    height: 32px;
}

.new-top-left-img-box .icon {
    position: absolute;
    right: -4px;
    bottom: 0;
    width: 16px;
    height: 16px;
}


.new-top-left-img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 8px;
    overflow: hidden;
}

.new-top-right {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.new-top-right-img {
    width: 100%;
    height: 20px;
    display: flex;
    justify-content: center;
}

.new-top-right-text {
    font-size: 10px;
    line-height: 16px;
    color: #333;
}

.new-top .search-bar {
    flex: 1;
    padding: 0 10px;
    border: 0;
}

.new-top .search-input {
    width: 100%;
    height: 32px;
    border-radius: 10px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.new-top .search-input span {
    text-align: left;
    font-size: 12px;
}

/* 弹出层样式 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0px;
    overflow-y: auto;
}

.popup-overlay.show {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.image-popup-content {
    position: relative;
    max-width: 100%;
    max-height: 90vh;
    margin-top: 0;
    animation: slideDown 0.4s ease-out;
}

.image-popup-img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.image-popup-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s;
}

.image-popup-close:hover {
    background-color: #fff;
    transform: scale(1.1);
}

.filter-options {
    margin: 0 15px 10px 15px;
}

/* 从顶部向下弹出的动画 */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 游戏选择界面样式 */
.game-select-container {
    width: 100vw;
    max-width: 100%;
    background-color: #fff;
    border-radius: 0 0 12px 12px;
    padding: 10px 15px;
    box-sizing: border-box;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.1);
}

.game-select-container::before {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background-color: #ebebeb;
}


.game-select-title {
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    margin-bottom: 10px;
}

.game-select-list {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
}

.game-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.game-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    overflow: hidden;
}

.game-icon-valorant {
    background-color: #FF4655;
}

.game-icon-apex {
    background-color: #8B4513;
}

.game-icon-king {
    background: linear-gradient(135deg, #4A5568 0%, #2D3748 100%);
}

.game-icon-naruto {
    background: linear-gradient(135deg, #1A202C 0%, #2D3748 100%);
}

.game-icon-all {
    background-color: #f0f0f0;
    padding: 4px;
}

.game-icon-text {
    font-size: 10px;
    color: #fff;
    text-align: center;
    line-height: 1.2;
    font-weight: 500;
}

.game-icon-apex .game-icon-text {
    font-size: 8px;
    font-weight: 700;
}

.game-icon-king .game-icon-text {
    font-size: 9px;
}

.game-hot-tag {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: #FF4444;
    color: #fff;
    font-size: 8px;
    padding: 2px 4px;
    border-radius: 4px;
    z-index: 10;
    font-weight: 500;
}

.game-icon-grid {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
}

.game-icon-mini {
    border-radius: 4px;
    position: relative;
}

.game-icon-mini-1 {
    background: linear-gradient(135deg, #4A5568 0%, #2D3748 100%);
}

.game-icon-mini-2 {
    background-color: #60A5FA;
}

.game-icon-mini-3 {
    background-color: #34D399;
}

.game-icon-mini-4 {
    background-color: #3B82F6;
}

.game-label {
    font-size: 12px;
    color: #333;
    text-align: center;
    line-height: 1.4;
}

.game-item.active .game-label {
    color: #FF6B35;
    font-weight: 500;
}

.swiper {
    margin-top: 10px;
    width: 100%;
    height: 80px;
    padding: 0 10px;
    /* 渐隐/渐显动画 */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.swiper-slide {
    width: 100%;
    height: 100%;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 向下滑动后隐藏时的状态 */
.swiper--hidden {
    opacity: 0;
    transform: translateY(-15px);
    pointer-events: none;
}

.new-top--hidden {
    opacity: 0;
    transform: translateY(-15px);
    pointer-events: none;
}

.filter-tags-box {
    width: 100%;
    background-color: #fff;
    padding: 10px 10px 0 10px;
    box-sizing: border-box;
    overflow: hidden;
}

/* 筛选标签行样式 */
.filter-tags {
    display: flex;
    gap: 8px;
    background-color: #fff;
    overflow-x: auto;
    white-space: nowrap;

}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border: 0;
    border-radius: 16px;
    background-color: #f4f5f6;
    font-size: 12px;
    font-weight: 400;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

button:focus,
button:active {
    outline: none;
    box-shadow: none;
}


.filter-tag.tag-flash-sale {
    color: #ff4444;
    border-color: #ff4444;
}

.filter-tag.tag-coupon {
    border-color: #e0e0e0;
}

.filter-tag.tag-coupon span {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.filter-tag.active,
.filter-tag.tag-compensation {
    color: #ff8400;
    background-color: #fef5ec;
}

.filter-tag.tag-general {
    color: #333;
    background-color: #f5f5f5;
    border-color: #e0e0e0;
}

.lightning-icon {
    width: 12px;
    height: 12px;
    color: #ffd700;
}

/* 筛选操作栏样式 */
.filter-actions {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 8px 6px 15px;
    background-color: #fff;
    position: relative;
}

.filter-dropdown {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #333;
    cursor: pointer;
    transition: color 0.2s;



}

.filter-dropdown.active {
    color: #ff6b35;
}

.filter-dropdown span {
    white-space: nowrap;
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;

}

.filter-dropdown:hover {
    color: #ff6b35;
}

.dropdown-icon {
    width: 12px;
    height: 12px;
    transition: transform 0.2s;
}

.filter-dropdown.active .dropdown-icon {
    transform: rotate(180deg);
}

.filter-separator {
    width: 1px;
    height: 16px;
    background-color: #e0e0e0;
    margin-left: auto;
}

.view-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    cursor: pointer;
    color: #333;
    transition: color 0.2s;
}

.view-toggle:hover {
    color: #ff6b35;
}

.view-toggle svg {
    width: 18px;
    height: 18px;
}

/* 下拉菜单样式（综合排序） */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0px 0px 0;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 0px rgba(0, 0, 0, 0.08);
    padding: 4px 0;
    display: none;
    z-index: 1000;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
}

.dropdown-option+.dropdown-option {
    border-top: 1px solid #f2f2f2;
}


.dropdown-option .check-icon {
    width: 16px;
    height: 16px;
    color: #ff6b35;
    opacity: 0;
    transition: opacity 0.15s;
}

.dropdown-option.active {
    color: #ff6b35;
}

.dropdown-option.active .check-icon {
    opacity: 1;
}

/* 价格区间整体面板 */
.price-range-menu {
    padding: 10px 12px 12px;
    box-sizing: border-box;
}

/* 上方：最低 / 最高 输入区 */
.price-range-inputs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.price-input {
    flex: 1;
    background-color: #f9f9f9;
    border-radius: 6px;
    padding: 6px 8px;
    box-sizing: border-box;
    text-align: center;
}

.price-input-label {
    font-size: 12px;
    color: #999999;
    margin-bottom: 2px;
}

.price-input input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: #333333;
    text-align: center;
}

.price-input-separator {
    font-size: 14px;
    color: #cccccc;
}

/* 中间三块预设区间卡片 */
.price-range-presets {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.price-preset-btn {
    flex: 1;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    background-color: #f9f9f9;
    padding: 6px 4px;
    font-size: 12px;
    color: #333333;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.15s;
}

.price-preset-main {
    font-weight: 500;
}

.price-preset-sub {
    font-size: 10px;
    color: #b3b3b3;
    margin-top: 2px;
}

/* 选中 / hover 的预设卡片：边框+文字变橙色，背景稍微变浅 */
.price-preset-btn:hover,
.price-preset-btn.active {
    background-color: #fff7ec;
    border-color: #ffb870;
    color: #ff8400;
}

/* 底部按钮区：左重置、右确认 */
.price-range-actions {
    display: flex;
    gap: 8px;
}

.price-btn-reset,
.price-btn-confirm {
    flex: 1;
    height: 34px;
    border-radius: 18px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid transparent;
}

/* 左侧：白底、灰色文字、灰色描边 */
.price-btn-reset {
    background-color: #ffffff;
    color: #555555;
    border-color: #e0e0e0;
}

/* 右侧：橙色实心按钮 */
.price-btn-confirm {
    background-color: #ffb870;
    border-color: #ffb870;
    color: #ffffff;
}

/* 已选筛选标签样式 */
.selected-filters {
    display: flex;
    gap: 8px;
    padding: 0px 12px 6px 12px;
    background-color: #fff;
    overflow-x: auto;
    white-space: nowrap;
}

.selected-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid #ff6b35;
    border-radius: 16px;
    background-color: #fff5f0;
    font-size: 12px;
    color: #ff6b35;
    white-space: nowrap;
    position: relative;
}

.close-icon {
    width: 14px;
    height: 14px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.close-icon:hover {
    color: #ff6b35;
}

/** 隐藏滚动条 */
.filter-tags {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.filter-tags::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */
}

/* 账号类型按钮组样式 */
.account-type-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    padding: 12px 16px;
    box-shadow: 0 6px 0px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    display: none;
    z-index: 1000;
    margin-top: 0px;
}

.account-type-panel.show {
    display: block;
}

.account-type-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.account-type-btn {
    flex: 0 0 calc(33.333% - 6px);
    padding: 10px 12px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-weight: 400;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-type-btn:nth-child(4),
.account-type-btn:nth-child(5) {
    flex: 0 0 calc(50% - 4px);
}

.account-type-btn:hover {
    background-color: #e8e8e8;
}

.account-type-btn.active {
    background-color: #fff6e8;
    color: #ff8400;
}

.account-type-btn:focus,
.account-type-btn:active {
    outline: none;
    box-shadow: none;
}

.grid-view.grid-view,
.list-view.list-view {
    padding-left: 10px;
    padding-right: 10px;
}

.grid-view .card-v {
    padding-bottom: 0;
}

.grid-view .card-v-box {
    display: flex;
    justify-content: flex-start;
    padding: 0px 0 10px 0;
    margin: 2px 0;
    box-shadow: none;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 0;
    margin-bottom: 10px;

}

.grid-view .card-v-top {
    width: 110px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
}

.grid-view .card-v-top-mask {
    display: none;
}

.grid-view .card-v-top-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.grid-view .card-v-bottom {
    flex: 1;
}

.grid-view .card-v-bottom {
    padding: 0 12px 9px 12px;

}

.grid-view .card-v-right-title {
    font-size: 12px;
    color: #333;
    line-height: 18px;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
}