/* ========== 基础样式 ========== */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
    margin: 0;
    -webkit-user-select: none;
    user-select: none;
}

code {
    font-family: source-code-pro, Menlo, Monaco, Consolas, Courier New, monospace;
}

#root {
    margin: 0;
    padding: 0;
}

* {
    touch-action: none;
}

/* ========== UI屏幕内容 ========== */
.ui-screen-content,
canvas {
    background: #0e0e0e !important;
}

.ui-screen-content {
    align-items: center;
    color: #fff;
    display: flex;
    height: 100%;
    justify-content: center;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
}

.ui-screen-content-box {
    margin-top: -30px;
    text-align: center;
}

.ui-title {
    align-items: center;
    display: flex;
    flex-direction: column;
    font-size: 55px;
    font-weight: 700;
}

.ui-desc {
    font-size: 28px;
    font-weight: 700;
    opacity: 0.8;
}

.ui-sm {
    font-size: 18px;
    font-weight: 700;
    opacity: 0.6;
}

.ui-title span {
    background: #561dff;
    border-radius: 5px;
    color: #0e0e0e;
    font-size: 14px;
    font-weight: 700;
    padding: 5px 10px;
}

.ui-title span b {
    color: #ffffff9f;
}

/* ========== 加载器 ========== */
.ui-loader {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    margin-top: -20px;
}

.loader {
    --c: at 50% 66%, #000 60deg, #0000 0;
    animation: appear 1.5s infinite;
    background: #26bbff;
    -webkit-clip-path: polygon(50% 0, 100% 100%, 0 100%);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    height: 43.3px;
    -webkit-mask: conic-gradient(from 30deg var(--c)) right, conic-gradient(from 150deg var(--c)) bottom, conic-gradient(from -90deg var(--c)) left, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    -webkit-mask-repeat: no-repeat;
    width: 50px;
}

/* ========== 动画 ========== */
@keyframes appear {
    0% {
        -webkit-mask-size: 0 0, 0 0, 0 0, auto;
    }
    13.33% {
        -webkit-mask-size: 100% 100%, 0 0, 0 0, auto;
    }
    26.67% {
        -webkit-mask-size: 100% 100%, 100% 100%, 0 0, auto;
    }
    40%, 60% {
        -webkit-mask-size: 100% 100%, 100% 100%, 100% 100%, auto;
    }
    73.33% {
        -webkit-mask-size: 0 0, 100% 100%, 100% 100%, auto;
    }
    86.67% {
        -webkit-mask-size: 0 0, 0 0, 100% 100%, auto;
    }
    to {
        -webkit-mask-size: 0 0, 0 0, 0 0, auto;
    }
}

.fps {
    bottom: 10px;
    font-size: 14px;
    font-weight: 700;
    left: 10px;
    opacity: 0.5;
    position: fixed;
}

/* ========== Material UI 组件样式 ========== */
.MuiCheckbox-root {
    color: #26bbff !important;
    border: 0 !important;
    padding: 0 !important;
}

.MuiCheckbox-root svg {
    fill: #26bbff !important;
    height: 0.9em !important;
    width: 0.9em !important;
}

.MuiSlider-thumb {
    background-color: #fff !important;
    height: 13px !important;
    width: 13px !important;
    pointer-events: auto !important;
}

.MuiSlider-rail {
    background-color: #575757 !important;
}

.MuiSlider-track {
    background-color: #26bbff !important;
    border-color: #26bbff !important;
}

.MuiSlider-root {
    pointer-events: none !important;
}

/* ========== GUI 界面 ========== */
.gui {
    left: 0;
    position: fixed;
    top: 0;
    z-index: 999;
}

.gui:before {
    background-color: #0000;
    content: "";
    height: 100%;
    position: absolute;
    width: 100%;
}

.gui-bottom {
    bottom: calc(16px + env(safe-area-inset-bottom));
    height: 40px;
    position: fixed;
    width: 100%;
    align-items: center;
    display: flex;
    justify-content: center;
}

/* ========== 相机按钮 ========== */
.camera-button {
    align-items: center;
    display: flex;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: #2b282873;
    border: 1px solid oklch(1 0 0 / 10%);
    border-radius: 30px;
    color: #ffffffd3;
    cursor: pointer;
    font-size: 14px;
    height: 38px;
    max-width: none;
    width: auto;
    padding: 0 10px;
    position: relative;
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.camera-button:hover {
    background-color: #26bbff;
    border-color: #0000 !important;
    color: #000;
    font-weight: 700;
    transform: translateY(-10%) scale(1.02);
}

.camera-button:hover .icon {
    color: #000;
}

.camera-button .value {
    margin: 0 5px;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}

.camera-button .icon {
    color: #ffffffd3;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.camera-button .icon.open {
    transform: rotate(180deg);
}

.camera-button .hero {
    margin-right: 4px;
    overflow: hidden;
    border-radius: 100%;
    height: 20px;
    width: 20px;
}

.camera-button .hero img {
    border-radius: 100%;
    height: 20px;
    width: 20px;
}

.camera-button.isOpen {
    background-color: #26bbff;
    border-color: #0000 !important;
    color: #000;
    font-weight: 700;
}

.camera-button.isOpen .icon {
    color: #000;
}

/* ========== 设置按钮 ========== */
.settings-button {
    align-items: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: #2b282873;
    border: 1px solid oklch(1 0 0 / 10%);
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    font-size: 14px;
    height: 38px;
    justify-content: center;
    margin-left: 5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    width: 38px;
}

.settings-button:hover {
    background-color: #26bbff;
    border-color: #0000 !important;
    transform: translateY(-10%) scale(1.02);
}

.settings-button .icon {
    color: #ffffffd3;
    font-size: 20px;
}

.settings-button:hover .icon {
    color: #000;
}

/* ========== 列表 ========== */
.lists {
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    background-color: #2b2828d0;
    border: 1px solid oklch(1 0 0 / 10%);
    border-radius: 10px;
    bottom: 45px;
    box-sizing: border-box;
    color: #ffffffd3;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    justify-content: flex-end;
    left: 50%;
    min-width: 180px;
    opacity: 0;
    padding: 10px;
    pointer-events: none;
    position: absolute;
    transform: translateX(-50%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    visibility: hidden;
    width: 100%;
}

.lists.show {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.list {
    align-items: center;
    background-color: #0000002b;
    border-radius: 2px;
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    height: 38px;
    margin-bottom: 5px;
    padding: 0 10px;
    transition: background-color 0.2s ease;
}

.list:last-child {
    margin-bottom: 0;
}

.list.active,
.list:hover {
    background-color: #00000080;
}

.list.active {
    border-bottom: 2px solid #26bbff;
}

.list .name {
    margin-left: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========== 设置面板 ========== */
.setting-mark {
    background-color: rgba(0, 0, 0, 0.637);
    height: 100%;
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    top: 0;
    transition: opacity 0.2s;
    width: 100%;
    z-index: 9998;
}

.setting-mark.show {
    opacity: 1;
    pointer-events: auto;
}

.setting {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background-color: hsla(0, 0%, 9%, 0.424);
    border: 1px solid oklch(1 0 0 / 0.1);
    border-radius: 8px;
    box-shadow: 0 0 12px 0 #0000004d;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 90%;
    left: 50%;
    max-height: 800px;
    max-width: 1080px;
    opacity: 0;
    padding: 10px;
    pointer-events: none;
    position: fixed;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    transition: all 0.3s;
    width: 90%;
    z-index: 9999;
}

.setting.show {
    left: 50%;
    opacity: 1;
    pointer-events: auto;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
}

.setting .setting-content {
    pointer-events: none !important;
}

.setting.show .setting-content.show {
    pointer-events: auto !important;
}

/* ========== 设置头部 ========== */
.setting .setting-header {
    align-items: center;
    border-bottom: 1px solid #26bbff66;
    display: flex;
    flex-direction: row;
    flex-shrink: 0;
    height: 42px;
    padding-bottom: 8px;
}

.setting .setting-header .setting-header-left {
    align-items: center;
    display: flex;
    flex-direction: row;
}

.setting .setting-header .setting-header-left .setting-header-logo {
    height: 24px;
    margin-left: 8px;
    width: 24px;
}

.setting .setting-header .setting-header-left .setting-header-title {
    color: hsla(0, 0%, 100%, 0.827);
    font-size: 18px;
    font-weight: 700;
    margin-left: 8px;
}

.setting .setting-header .setting-header-left .setting-header-subtitle {
    background-color: #282828;
    border-radius: 30px;
    font-size: 12px;
    margin-left: 8px;
    margin-top: 2px;
    padding: 4px 8px;
}

.setting .setting-header .setting-header-right {
    display: flex;
    flex-direction: row;
    margin-left: auto;
}

.setting .setting-header .setting-header-right .setting-header-menus {
    align-items: center;
    background-color: #282828;
    border: 1px solid oklch(1 0 0 / 0.1);
    border-radius: 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    height: 36px;
    padding: 0 4px;
}

.setting .setting-header .setting-header-right .setting-header-menus .setting-header-menu-item {
    align-items: center;
    color: hsla(0, 0%, 100%, 0.616);
    cursor: pointer;
    display: flex;
    flex-direction: row;
    font-size: 14px;
    font-weight: 700;
    height: 100%;
    justify-content: center;
    padding: 0 8px;
    position: relative;
    transition: all 0.3s;
}

.setting .setting-header .setting-header-right .setting-header-menus .setting-header-menu-item:hover {
    color: #fff;
}

.setting .setting-header .setting-header-right .setting-header-menus .setting-header-menu-item.active {
    color: #26bbff;
}

.setting .setting-header .setting-header-right .setting-header-menus .setting-header-menu-item.active:after {
    background-color: #26bbff;
    border-radius: 18px;
    bottom: 0;
    content: "";
    height: 3px;
    left: 50%;
    opacity: 1;
    position: absolute;
    transform: translateX(-50%);
    transition: all 0.3s;
    width: 20px;
    z-index: 1;
}

.setting .setting-header .setting-header-right .setting-header-close {
    align-items: center;
    background-color: #26bbff;
    border-radius: 18px;
    color: #000;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    font-size: 14px;
    font-weight: 700;
    height: 36px;
    justify-content: center;
    margin-left: 12px;
    padding: 0 12px;
    transform: scale(1);
    transition: transform 0.3s;
}

.setting .setting-header .setting-header-right .setting-header-close:hover {
    transform: scale(0.92);
}

/* ========== 设置内容容器 ========== */
.setting .setting-content-container {
    flex: 1 1;
    height: 0;
    position: relative;
    touch-action: auto !important;
}

.setting .setting-content-container * {
    touch-action: auto !important;
}

.setting .setting-content-container .setting-content {
    filter: blur(4px);
    height: 100%;
    left: 0;
    opacity: 0;
    overflow: auto;
    pointer-events: none;
    position: absolute;
    top: 0;
    transform: translateX(-20px);
    transition: all 0.4s;
    width: 100%;
}

.setting .setting-content-container .setting-content::-webkit-scrollbar {
    display: none;
}

.setting .setting-content-container .setting-content.show {
    filter: blur(0) !important;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    transition: all 0.4s;
    transition-delay: 0.2s;
}

.setting .setting-content-container .setting-content.hide {
    filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transform: translateX(20px);
    transition: all 0.4s;
}

/* ========== 设置卡片 ========== */
.setting-card {
    background-color: rgba(27, 27, 27, 0.663);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 50%;
}

.setting-card.group {
    background-color: #0000;
    gap: 12px;
}

.setting-card .setting-card-header {
    align-items: center;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    background-color: rgba(27, 27, 27, 0.663);
    border-radius: 10px 10px 0 0;
    color: #eee;
    display: flex;
    flex-direction: row;
    font-size: 15px;
    font-weight: 700;
    height: 48px;
    left: 2px;
    padding-left: 8px;
    position: -webkit-sticky;
    position: sticky;
    right: 2px;
    top: -1px;
    z-index: 99;
}

.setting-card .setting-card-header:before {
    background-color: #26bbff;
    content: "";
    display: inline-block;
    height: 13px;
    margin-right: 8px;
    width: 4px;
}

.setting-card .setting-card-header:after {
    background-color: rgba(38, 187, 255, 0.267);
    bottom: 0;
    content: "";
    display: inline-block;
    height: 1px;
    left: 12px;
    position: absolute;
    right: 12px;
}

.setting-card .setting-card-content {
    display: flex;
    flex-direction: column;
    padding: 12px;
}

.setting-card .setting-card-content.no-padding {
    padding: 12px 0;
}

/* ========== 设置项 ========== */
.setting-card .setting-card-content .setting-item {
    align-items: center;
    display: flex;
    flex-direction: row;
    height: 32px;
    justify-content: space-between;
}

.setting-card .setting-card-content .setting-item.col {
    align-items: flex-start;
    flex-direction: column;
    height: auto;
    justify-content: flex-start;
}

.setting-card .setting-card-content .setting-item.col .setting-item-label {
    width: calc(100% - 10px);
}

.setting-card .setting-card-content .setting-item.col .setting-item-value {
    margin-bottom: 8px;
    margin-top: 8px;
    width: calc(100% - 10px);
}

.setting-card .setting-card-content .setting-item .setting-item-label {
    align-items: center;
    color: hsla(0, 0%, 100%, 0.733);
    display: flex;
    flex-direction: row;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s;
}

.setting-card .setting-card-content .setting-item .setting-item-label-desc {
    color: #ddd;
    margin-left: auto;
}

.setting-card .setting-card-content .setting-item .setting-item-value {
    align-items: center;
    display: flex;
    flex-direction: row;
    height: 18px;
    justify-content: center;
}

.setting-card .setting-card-content .setting-item:hover .setting-item-label {
    color: #26bbff;
}

.setting-card .setting-card-content .setting-item-line {
    background-color: oklch(1 0 0 / 0.1);
    height: 1px;
    margin: 8px 0;
    width: 100%;
}

/* ========== 用户容器 ========== */
.user-container .setting-card {
    height: auto;
    margin-top: 12px;
    width: 100%;
}

.user-container .masonry-grid {
    position: relative;
    width: 100%;
}

.user-container .masonry-item,
.user-container .masonry-sizer {
    box-sizing: border-box;
    width: calc(33.33333% - 8px);
}

.user-container .masonry-grid.masonry-no-anim .masonry-item {
    transition: none !important;
}

/* ========== 响应式设计 ========== */
@media (max-width: 780px) {
    .user-container .masonry-item,
    .user-container .masonry-sizer {
        width: calc(50% - 6px);
    }
}

@media (max-width: 600px) {
    .setting .setting-header {
        display: flex;
        flex-direction: column;
        height: auto;
        padding-bottom: 12px;
    }
    
    .setting .setting-header .setting-header-left .setting-header-title {
        font-size: 16px !important;
    }
    
    .setting .setting-header .setting-header-left .setting-header-subtitle {
        font-size: 10px !important;
    }
    
    .setting .setting-header .setting-header-right {
        margin-left: 0 !important;
        margin-top: 12px;
    }
    
    .setting .setting-header .setting-header-right .setting-header-menus {
        height: 28px !important;
    }
    
    .setting .setting-header .setting-header-right .setting-header-menus .setting-header-menu-item {
        font-size: 12px !important;
    }
    
    .setting .setting-header .setting-header-right .setting-header-close {
        font-size: 12px !important;
        height: 28px !important;
        margin-left: 6px !important;
    }
}

@media (max-width: 500px) {
    .setting {
        height: 98%;
        max-height: 98%;
        max-width: 98%;
        width: 98%;
    }
    
    .user-container .masonry-item,
    .user-container .masonry-sizer {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .item-container .item-list .item-card .item-card-level-icon {
        height: 16px !important;
        width: 16px !important;
    }
    
    .item-container .item-list .item-card .item-card-level,
    .item-container .item-list .item-card .item-card-money,
    .item-container .item-list .item-card .item-card-name {
        font-size: 10px !important;
    }
}

@media (max-width: 320px) {
    .item-container .item-list .item-card .item-card-level-icon {
        height: 18px !important;
        width: 18px !important;
    }
    
    .item-container .item-list .item-card .item-card-level,
    .item-container .item-list .item-card .item-card-money,
    .item-container .item-list .item-card .item-card-name {
        font-size: 12px !important;
    }
}

/* ========== 关于页面 ========== */
.about {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
}

.about-logo {
    height: 200px;
    width: 200px;
}

.about-name {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin-top: 16px;
}

.about-version {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-top: 12px;
}

.about-contact {
    display: flex;
    flex-direction: row;
    margin-top: 12px;
}

.about-desc {
    color: #aaa;
    font-size: 12px;
    font-weight: 700;
    margin-top: 16px;
}

/* ========== 楼层选择器 ========== */
.floor-selector-vertical {
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0.5;
    position: fixed;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.floor-selector-vertical:hover {
    opacity: 1;
}

.floor-button {
    align-items: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: #2b282873;
    border: 1px solid oklch(1 0 0 / 10%);
    border-radius: 8px;
    color: #ffffffd3;
    cursor: pointer;
    display: flex;
    font-size: 12px;
    font-weight: 700;
    height: 40px;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    width: 40px;
}

.floor-button:hover {
    background-color: #26bbff;
    border-color: #0000 !important;
    color: #000;
    transform: scale(1.05);
}

.floor-button.active {
    background-color: #ffffffe6;
    border-color: #0000;
    color: #000;
    font-weight: 700;
}

.floor-button svg {
    height: 20px;
    width: 20px;
}

/* ========== 物品容器布局 ========== */
.item-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 12px;
    padding-top: 12px;
}

.item-container .item-config {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: calc(33.33% - 12px);
}

.item-container .item-config .setting-card {
    height: auto !important;
    width: 100%;
}

.item-container > .setting-card {
    flex: 1 1;
}

.item-container .item-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0 7px;
}

.item-container .item-list .item-card-container {
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 5px;
    position: relative;
    width: 20%;
}

@media (max-width: 1050px) {
    .item-container .item-list .item-card-container {
        width: 25%;
    }
}

@media (max-width: 870px) {
    .item-container .item-list .item-card-container {
        width: 33.33%;
    }
}

@media (max-width: 800px) {
    .item-container .item-list .item-card-container {
        width: 25%;
    }
    
    .item-container .item-config {
        width: 100%;
    }
    
    .item-container .setting-card {
        width: 100% !important;
    }
    
    .item-container .setting-card:first-child,
    .item-container .setting-card:nth-child(2) {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .item-container .item-list .item-card-container {
        width: 33.33%;
    }
}

/* 物品卡片背景 */
.item-container .item-list .item-card-bg {
    background-image: linear-gradient(180deg, #484848, #282828);
    border-radius: 10px;
    flex: 1 1;
    height: 0;
    z-index: 0;
}

.item-container .item-list .item-card-bg.checked.level-1 {
    background-image: linear-gradient(180deg, rgba(246, 246, 246, 0.72), rgba(246, 246, 246, 0.20));
}

.item-container .item-list .item-card-bg.checked.level-2 {
    background-image: linear-gradient(180deg, rgba(68, 185, 82, 0.72), rgba(68, 185, 82, 0.20));
}

.item-container .item-list .item-card-bg.checked.level-3 {
    background-image: linear-gradient(180deg, rgba(54, 126, 226, 0.72), rgba(54, 126, 226, 0.20));
}

.item-container .item-list .item-card-bg.checked.level-4 {
    background-image: linear-gradient(180deg, rgba(143, 75, 213, 0.72), rgba(143, 75, 213, 0.20));
}

.item-container .item-list .item-card-bg.checked.level-5 {
    background-image: linear-gradient(180deg, rgba(244, 199, 57, 0.72), rgba(244, 199, 57, 0.20));
}

.item-container .item-list .item-card-bg.checked.level-6 {
    background-image: linear-gradient(180deg, rgba(232, 58, 58, 0.72), rgba(232, 58, 58, 0.20));
}

/* 物品卡片 */
.item-container .item-list .item-card {
    border-radius: 10px;
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    flex: 1 1;
    flex-direction: column;
    height: calc(100% - 10px);
    left: 5px;
    overflow: hidden;
    position: absolute;
    top: 5px;
    transition: all 0.3s;
    width: calc(100% - 10px);
    z-index: 1;
}

.item-container .item-list .item-card .item-card-header {
    align-items: center;
    box-sizing: border-box;
    color: #fff;
    display: flex;
    flex-direction: row;
    font-size: 12px;
    font-weight: 700;
    height: 20px;
    line-height: 20px;
    margin: 4px;
}

.item-container .item-list .item-card .item-card-header .item-card-level-icon {
    height: 18px;
    width: 18px;
}

.item-container .item-list .item-card .item-card-header .item-card-level {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    margin-left: 4px;
}

.item-container .item-list .item-card .item-card-header .item-card-money {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    margin-left: auto;
    margin-right: 2px;
}

.item-container .item-list .item-card .item-card-image {
    aspect-ratio: 1 / 1;
    flex: 1 1;
    height: 0;
    margin-bottom: 12px;
    object-fit: contain;
}

.item-container .item-list .item-card .item-card-content {
    align-items: center;
    display: flex;
    flex-direction: row;
    flex-shrink: 0;
    height: 12px;
    margin-bottom: 8px;
    padding: 0 8px 0 6px;
}

.item-container .item-list .item-card .item-card-content .item-card-name {
    color: #fff;
    flex: 1 1;
    font-size: 12px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 0;
}

.item-container .item-list .item-card .item-card-content .item-card-checked {
    align-items: center;
    background-color: #26bbff;
    border-radius: 50%;
    display: flex;
    filter: blur(6px);
    flex-direction: row;
    flex-shrink: 0;
    height: 14px;
    justify-content: center;
    margin-left: 4px;
    opacity: 0;
    transition: all 0.3s;
    width: 14px;
}

.item-container .item-list .item-card .item-card-content .item-card-checked.checked {
    filter: blur(0);
    opacity: 1;
}

/* ========== 物品类型导航栏 ========== */
.setting-card .setting-card-content .item-type {
    align-items: center;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: flex-start;
    margin-bottom: 12px;
    padding: 8px 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(38, 187, 255, 0.3) rgba(0, 0, 0, 0.1);
}

.setting-card .setting-card-content .item-type::-webkit-scrollbar {
    height: 6px;
}

.setting-card .setting-card-content .item-type::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.setting-card .setting-card-content .item-type::-webkit-scrollbar-thumb {
    background: rgba(38, 187, 255, 0.3);
    border-radius: 3px;
    transition: background 0.2s ease;
}

.setting-card .setting-card-content .item-type::-webkit-scrollbar-thumb:hover {
    background: rgba(38, 187, 255, 0.6);
}

.setting-card .setting-card-content .item-type .item-type-item {
    align-items: center;
    background-color: rgba(27, 27, 27, 0.663);
    border: 1px solid rgba(38, 187, 255, 0.1);
    border-radius: 8px;
    color: rgba(238, 238, 238, 0.8);
    cursor: pointer;
    display: flex;
    flex-direction: row;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    justify-content: center;
    padding: 6px 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    user-select: none;
}

.setting-card .setting-card-content .item-type .item-type-item:hover {
    background-color: rgba(38, 187, 255, 0.2);
    border-color: rgba(38, 187, 255, 0.4);
    color: #fff;
    transform: translateY(-2px);
}

.setting-card .setting-card-content .item-type .item-type-item.active {
    background-color: #26bbff;
    border-color: #26bbff;
    color: #000;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(38, 187, 255, 0.3);
}

/* ========== 搜索框美化 ========== */
.setting-card .setting-card-header .setting-card-header-input {
    align-items: center;
    background: linear-gradient(135deg, rgba(38, 187, 255, 0.05), rgba(38, 187, 255, 0.02));
    border: 1px solid rgba(38, 187, 255, 0.3);
    border-radius: 8px;
    display: flex;
    flex-direction: row;
    font-size: 14px;
    height: 36px;
    line-height: 36px;
    margin-left: auto;
    margin-right: 12px;
    outline: none;
    padding: 0 12px;
    width: 240px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.setting-card .setting-card-header .setting-card-header-input:hover {
    border-color: rgba(38, 187, 255, 0.5);
    background: linear-gradient(135deg, rgba(38, 187, 255, 0.08), rgba(38, 187, 255, 0.04));
}

.setting-card .setting-card-header .setting-card-header-input:focus-within {
    border-color: #26bbff;
    background: linear-gradient(135deg, rgba(38, 187, 255, 0.1), rgba(38, 187, 255, 0.05));
    box-shadow: 0 0 0 3px rgba(38, 187, 255, 0.1);
}

.setting-card .setting-card-header .setting-card-header-input > input {
    background-color: transparent;
    border: none;
    color: #fff;
    flex: 1 1;
    font-size: 14px;
    margin-left: 4px;
    outline: none;
    width: 0;
}

.setting-card .setting-card-header .setting-card-header-input > input::placeholder {
    color: rgba(153, 153, 153, 0.6);
    transition: color 0.3s;
}

.setting-card .setting-card-header .setting-card-header-input:hover > input::placeholder {
    color: rgba(153, 153, 153, 0.8);
}

.setting-card .setting-card-header .setting-card-header-input:focus-within > input::placeholder {
    color: rgba(38, 187, 255, 0.6);
}

/* 搜索图标 (如果需要添加) */
.setting-card .setting-card-header .setting-card-header-input::before {
    content: "🔍";
    font-size: 16px;
    opacity: 0.5;
    margin-right: 4px;
}

.setting-card .setting-card-header .setting-card-header-input:focus-within::before {
    opacity: 0.8;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .setting-card .setting-card-header .setting-card-header-input {
        width: 180px;
    }
}

@media (max-width: 480px) {
    .setting-card .setting-card-header .setting-card-header-input {
        width: 140px;
        font-size: 12px;
        height: 32px;
        padding: 0 8px;
    }
    
    .setting-card .setting-card-content .item-type {
        padding: 6px 8px;
        gap: 6px;
    }
    
    .setting-card .setting-card-content .item-type .item-type-item {
        font-size: 12px;
        padding: 4px 10px;
    }
}

/* ========== 容器面板布局 ========== */
.containers {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 12px;
    padding-top: 12px;
}

.containers .item-config {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: calc(33.33% - 12px);
}

.containers .item-config .setting-card {
    height: auto !important;
    width: 100%;
}

.containers > .setting-card {
    flex: 1 1;
}

.containers .item-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0 7px;
}

.containers .item-list .item-card {
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 8px;
    position: relative;
    transition: all 0.3s;
    width: 20%;
}

@media (max-width: 1050px) {
    .containers .item-list .item-card {
        width: 25%;
    }
}

@media (max-width: 870px) {
    .containers .item-list .item-card {
        width: 33.33%;
    }
}

@media (max-width: 800px) {
    .containers .item-list .item-card {
        width: 25%;
    }
    
    .containers .item-config {
        width: 100%;
    }
    
    .containers .setting-card {
        width: 100% !important;
    }
}

@media (max-width: 600px) {
    .containers .item-list .item-card {
        width: 33.33%;
    }
}

/* 容器卡片样式 */
.containers .item-list .item-card .item-card-image {
    aspect-ratio: 1 / 1;
    flex: 1 1;
    height: 0;
    margin-bottom: 8px;
    object-fit: contain;
}

.containers .item-list .item-card .item-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.containers .item-list .item-card .item-card-name {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 容器卡片等级背景 */
.containers .item-list .item-card.level-1 {
    background-image: linear-gradient(180deg, #484848, #282828);
}

.containers .item-list .item-card.level-5 {
    background-image: linear-gradient(180deg, #694329, #3f2819);
}

.containers .item-list .item-card.level-6 {
    background-image: linear-gradient(180deg, #5e2526, #331515);
}

.containers .item-list .item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(38, 187, 255, 0.3);
}

/* ========== 点位面板布局 ========== */
.point-container {
    padding: 12px;
}

.point-container .masonry-grid {
    position: relative;
    width: 100%;
}

.point-container .masonry-item,
.point-container .masonry-sizer {
    box-sizing: border-box;
    width: calc(33.33333% - 8px);
}

.point-container .masonry-grid.masonry-no-anim .masonry-item {
    transition: none !important;
}

.point-container .setting-card {
    width: 100%;
}

/* 响应式调整 - 点位面板 */
@media (max-width: 1200px) {
    .point-container .masonry-item,
    .point-container .masonry-sizer {
        width: calc(50% - 6px);
    }
}

@media (max-width: 768px) {
    .point-container .masonry-item,
    .point-container .masonry-sizer {
        width: 100%;
    }
}

/* ========== 图片加载失败处理 ========== */
/* 物品卡片图片加载失败时的占位样式 */
.item-container .item-list .item-card .item-card-image,
.containers .item-list .item-card .item-card-image {
    background: linear-gradient(135deg, rgba(38, 187, 255, 0.1), rgba(38, 187, 255, 0.05));
    border: 1px dashed rgba(38, 187, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.item-container .item-list .item-card .item-card-image::after,
.containers .item-list .item-card .item-card-image::after {
    content: "📦";
    font-size: 48px;
    opacity: 0.3;
    position: absolute;
}

/* 当图片成功加载时隐藏占位符 */
.item-container .item-list .item-card .item-card-image img,
.containers .item-list .item-card .item-card-image img {
    position: relative;
    z-index: 1;
}

/* 图片加载错误时的处理 */
img[src*="/static/media/"] {
    background: linear-gradient(135deg, rgba(38, 187, 255, 0.05), rgba(38, 187, 255, 0.02));
}

img[src*="/static/media/"]:not([src$=".png"]):not([src$=".jpg"]):not([src$=".jpeg"]) {
    opacity: 0.5;
}

/* ========== 右上角：高价值物资列表（与地图 filterWorldItemsForMapDraw 一致） ========== */
.nexo-hv-panel {
    position: fixed;
    top: 12px;
    right: 12px;
    width: min(320px, calc(100vw - 24px));
    max-height: min(48vh, 420px);
    min-height: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(12, 18, 24, 0.92);
    border: 1px solid rgba(56, 160, 220, 0.45);
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
    font-size: 12px;
    line-height: 1.35;
    color: #e8f4ff;
    pointer-events: auto;
}

.nexo-hv-panel--hidden {
    display: none !important;
}

.nexo-hv-panel--collapsed .nexo-hv-toolbar,
.nexo-hv-panel--collapsed .nexo-hv-body {
    display: none;
}

.nexo-hv-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(56, 160, 220, 0.25);
    flex-shrink: 0;
}

.nexo-hv-title {
    font-weight: 700;
    letter-spacing: 0.02em;
    flex: 1;
}

.nexo-hv-count {
    font-variant-numeric: tabular-nums;
    color: #7fd7ff;
    min-width: 2ch;
    text-align: right;
}

.nexo-hv-collapse {
    border: none;
    background: rgba(56, 160, 220, 0.2);
    color: #b8e8ff;
    width: 28px;
    height: 26px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0;
}

.nexo-hv-collapse:hover {
    background: rgba(56, 160, 220, 0.35);
}

.nexo-hv-toolbar {
    padding: 6px 10px 8px;
    flex-shrink: 0;
}

.nexo-hv-filter {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid rgba(56, 160, 220, 0.35);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 12px;
    outline: none;
    user-select: text;
    -webkit-user-select: text;
}

.nexo-hv-filter::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.nexo-hv-filter:focus {
    border-color: rgba(120, 210, 255, 0.65);
}

.nexo-hv-body {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 4px 6px 10px;
}

.nexo-hv-empty {
    padding: 12px 10px;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
    font-size: 11px;
}

.nexo-hv-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 6px 6px;
    border-radius: 6px;
    margin-bottom: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.nexo-hv-row-lv-1 { background: rgba(200, 205, 210, 0.12); border-color: rgba(235, 239, 243, 0.28); }
.nexo-hv-row-lv-2 { background: rgba(58, 160, 84, 0.17); border-color: rgba(126, 224, 150, 0.32); }
.nexo-hv-row-lv-3 { background: rgba(43, 116, 210, 0.18); border-color: rgba(109, 177, 255, 0.32); }
.nexo-hv-row-lv-4 { background: rgba(122, 67, 187, 0.2); border-color: rgba(190, 140, 255, 0.33); }
.nexo-hv-row-lv-5 { background: rgba(197, 153, 34, 0.21); border-color: rgba(255, 220, 120, 0.35); }
.nexo-hv-row-lv-6 { background: rgba(183, 46, 46, 0.24); border-color: rgba(255, 132, 132, 0.37); }

.nexo-hv-row:hover {
    background: rgba(56, 160, 220, 0.12);
}

.nexo-hv-row-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.25);
}

.nexo-hv-row-icon--empty {
    display: inline-block;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
}

.nexo-hv-row-main {
    min-width: 0;
    flex: 1;
}

.nexo-hv-row-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.nexo-hv-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 11px;
    color: rgba(200, 230, 255, 0.75);
}

.nexo-hv-row-level {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 1px 8px;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.2);
    letter-spacing: .2px;
}

.nexo-hv-row-level-lv-1 { color: #f3f5f7; background: rgba(176, 186, 196, 0.28); border-color: rgba(230, 234, 239, 0.42); }
.nexo-hv-row-level-lv-2 { color: #e9ffef; background: rgba(43, 138, 67, 0.34); border-color: rgba(132, 229, 154, 0.42); }
.nexo-hv-row-level-lv-3 { color: #eaf4ff; background: rgba(31, 97, 186, 0.36); border-color: rgba(126, 186, 255, 0.44); }
.nexo-hv-row-level-lv-4 { color: #f6ecff; background: rgba(99, 48, 160, 0.38); border-color: rgba(198, 154, 255, 0.46); }
.nexo-hv-row-level-lv-5 { color: #fff6d8; background: rgba(150, 112, 11, 0.39); border-color: rgba(255, 223, 126, 0.48); }
.nexo-hv-row-level-lv-6 { color: #ffe8e8; background: rgba(153, 33, 33, 0.42); border-color: rgba(255, 138, 138, 0.5); }

.nexo-hv-row-val {
    color: #ffd88a;
}

.nexo-hv-row-dist {
    color: #9de4ff;
    margin-left: auto;
}
