/* Global Styles */
body {
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
    padding-top: 60px; /* 减小间距，适配导航栏高度 */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    transition: padding-top 0.3s;
}

#app.ui-hidden body,
body.ui-hidden {
    padding-top: 0 !important;
}

/* 沉浸模式下隐藏元素 */
.ui-hidden .navbar,
.ui-hidden .top-right-actions,
.ui-hidden .social-floating-container {
    display: none !important;
}

.top-right-actions {
    position: fixed;
    top: 15px;
    right: 20px;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-sidebar-trigger {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.user-sidebar-trigger:hover {
    transform: scale(1.1) rotate(5deg);
}

.global-wallpaper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    transition: background-image 0.5s ease-in-out;
}

#app {
    min-height: 100vh;
}
/* 主内容区域 */
.main-container {
    padding: 20px;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
    box-sizing: border-box;
}

/* 使主要容器半透明以显示背景 */
.el-tabs--border-card {
    background-color: rgba(255, 255, 255, 0.7) !important;
    border: none !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.el-tabs--border-card > .el-tabs__header {
    background-color: rgba(245, 247, 250, 0.5) !important;
}

.el-card {
    background-color: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}

.el-input__wrapper, .el-textarea__inner, .el-select__wrapper {
    background-color: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(4px);
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(235, 238, 245, 0.5);
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.collapsed {
    right: auto;
    width: 60px;
    padding: 0;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-radius: 0 0 12px 0;
    border-bottom: 1px solid rgba(235, 238, 245, 0.8);
    border-right: 1px solid rgba(235, 238, 245, 0.8);
}

.navbar-header {
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar-brand {
    font-size: 20px;
    font-weight: bold;
    color: #409eff;
    display: flex;
    align-items: center;
    white-space: nowrap;
    transition: all 0.3s;
}

.navbar.collapsed .navbar-brand span {
    display: none;
}

.collapse-btn {
    margin-left: 10px;
    font-size: 20px;
    padding: 8px;
}

.navbar.collapsed .collapse-btn {
    margin-left: 0;
}

.navbar-content {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: space-between;
    margin-left: 30px;
    transition: all 0.3s;
}

.navbar.collapsed .navbar-content {
    margin-left: 10px;
}

.navbar-menu {
    display: flex;
    gap: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 8px;
    color: #606266;
    transition: all 0.2s;
    white-space: nowrap;
}

.navbar.collapsed .nav-item span {
    display: none;
}

.navbar.collapsed .nav-item {
    padding: 8px;
}

.nav-item:hover {
    background: #f5f7fa;
    color: #409eff;
}

.nav-item.active {
    background: #ecf5ff;
    color: #409eff;
    font-weight: 600;
}

.navbar-user {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.user-info-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar.collapsed .user-info-bar .el-tag,
.navbar.collapsed .user-info-bar span,
.navbar.collapsed .user-info-bar .el-button--danger {
    display: none;
}

/* 管理员面板全局样式优化 */
.admin-panel {
    font-size: 16px;
}

.admin-panel .el-table {
    font-size: 15px;
}

.admin-panel .el-table .el-button {
    padding: 8px 16px;
    font-size: 14px;
}

.admin-panel .el-tag {
    font-size: 13px;
    padding: 4px 8px;
    height: auto;
}

.admin-panel .el-input__inner {
    height: 40px;
    font-size: 15px;
}

.admin-panel .el-tabs__item {
    font-size: 16px;
    height: 50px;
    line-height: 50px;
}

.admin-panel .status-card .status-value {
    font-size: 28px !important;
}

.admin-panel .status-card .status-label {
    font-size: 16px;
}

.admin-panel .el-card__header {
    padding: 18px 20px;
    font-size: 18px;
}

.admin-panel .el-table__row {
    height: 60px;
}

/* 弹窗内部样式优化 */
.el-dialog {
    border-radius: 12px !important;
    overflow: hidden;
}

.el-dialog__header {
    padding: 20px 25px !important;
    margin-right: 0 !important;
    border-bottom: 1px solid #eee;
}

.el-dialog__title {
    font-size: 20px !important;
    font-weight: bold !important;
}

.el-dialog__body {
    padding: 30px 25px !important;
}

.el-dialog__footer {
    padding: 15px 25px 25px !important;
    border-top: 1px solid #f5f7fa;
}

/* 首页 Hero 区域样式 */
.server-hero {
    padding: 60px 40px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    color: white;
    margin-bottom: 30px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.server-name {
    font-size: 48px;
    margin: 0;
    font-weight: 800;
}

.server-motd {
    font-size: 20px;
    margin: 15px 0 25px;
    opacity: 0.9;
}

/* 隐藏 el-tabs 的头部，因为我们有了顶端导航栏 */
.main-tabs > .el-tabs__header {
    display: none;
}

.main-tabs.el-tabs--border-card {
    border: none !important;
    background: transparent !important;
}

.main-tabs.el-tabs--border-card > .el-tabs__content {
    padding: 0;
    background: transparent !important;
}

[v-cloak] {
    display: none;
}

/* 背包格子化布局 */
.inventory-container {
    padding: 24px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    margin-top: 10px;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(15, 1fr); /* 增加到 15 列 */
    gap: 12px;
    padding: 10px;
    background: rgba(139, 139, 139, 0.1);
    border: 2px solid #373737;
    border-radius: 4px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
}

.item-slot {
    aspect-ratio: 1;
    background: #8b8b8b;
    border: 2px solid;
    border-color: #373737 #ffffff #ffffff #373737; /* MC 风格边框 */
    position: relative;
    cursor: pointer;
    transition: all 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-slot:hover {
    background: #c6c6c6;
    z-index: 2;
}

.item-slot.active {
    background: #c6c6c6;
    outline: 2px solid #ffffff;
}

.item-icon-container {
    width: 80%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    user-select: none;
}

.item-slot-amount {
    position: absolute;
    bottom: 2px;
    right: 4px;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 2px 2px 0px #3f3f3f;
    z-index: 1;
}

.item-slot-durability {
    position: absolute;
    bottom: 2px;
    left: 4px;
    right: 4px;
    height: 3px;
    background: #000;
    border: 0.5px solid #000;
}

.durability-bar {
    height: 100%;
    transition: width 0.3s;
}

/* Minecraft 风格 Tooltip */
.mc-tooltip {
    background: rgba(16, 0, 16, 0.95) !important;
    border: 2px solid #2d0a63 !important;
    padding: 12px !important;
    border-radius: 4px !important;
    color: #ffffff !important;
    font-family: 'Minecraft', 'Courier New', Courier, monospace;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    pointer-events: none;
}

.mc-tooltip-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
    text-shadow: 2px 2px 0px #3f3f3f;
}

.mc-tooltip-id {
    color: #aaaaaa;
    font-size: 12px;
    margin-bottom: 8px;
}

.mc-tooltip-enchants {
    color: #ffff55;
    margin-bottom: 6px;
}

.mc-tooltip-lore {
    color: #55ff55;
    font-style: italic;
    line-height: 1.4;
}

.mc-tooltip-durability {
    margin-top: 8px;
    color: #ffffff;
    font-size: 12px;
}

/* 操作面板样式 */
.item-action-panel {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(64, 158, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100px;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.item-action-panel.v-enter-active,
.item-action-panel.v-leave-active {
    transition: opacity 0.3s, transform 0.3s;
}

.item-action-panel.v-enter-from,
.item-action-panel.v-leave-to {
    opacity: 0;
    transform: translateY(-10px);
}

.selected-item-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.selected-item-name {
    font-size: 18px;
    font-weight: bold;
    color: #303133;
}

/* 潜影盒预览专用样式 */
.shulker-grid {
    display: grid;
    grid-template-columns: repeat(9, 45px); /* 固定 9 列，每列 45px */
    gap: 4px;
    padding: 10px;
    background: #8b8b8b;
    border: 2px solid #373737;
    width: fit-content;
    margin: 0 auto;
    box-sizing: border-box;
}

.shulker-slot {
    width: 45px;
    height: 45px;
    background: #8b8b8b;
    border: 2px solid;
    border-color: #373737 #ffffff #ffffff #373737; /* MC 风格边框 */
    position: relative;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shulker-slot .item-icon-container {
    width: 32px;
    height: 32px;
}

.shulker-slot .item-slot-amount {
    position: absolute;
    bottom: 2px;
    right: 2px;
    color: white;
    text-shadow: 1px 1px 0 #3f3f3f;
    font-size: 14px;
    font-weight: bold;
    pointer-events: none;
}

/* 响应式适配 */
@media (max-width: 1600px) {
    .inventory-grid {
        grid-template-columns: repeat(12, 1fr);
    }
}

@media (max-width: 1200px) {
    .inventory-grid {
        grid-template-columns: repeat(9, 1fr);
    }
}

@media (max-width: 768px) {
    .inventory-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .navbar {
        height: 50px;
        padding: 0 10px;
    }
    
    .navbar-brand span {
        display: none;
    }
    
    .main-container {
        padding: 10px;
        margin-top: 50px; /* 适配导航栏 */
    }
    
    .user-info-bar .el-tag {
        display: none; /* 手机端隐藏部分信息，节省空间 */
    }
    
    .user-info-bar .el-tag:last-of-type {
        display: inline-flex; /* 仅保留用户名 */
    }
}

/* 手机端专用优化 (小于 600px) */
@media (max-width: 600px) {
    body {
        padding-top: 0;
    }

    .navbar {
        position: static;
        height: auto;
        flex-direction: column;
        padding: 10px;
    }

    .navbar.collapsed {
        width: 100%;
        height: 50px;
        flex-direction: row;
        justify-content: space-between;
        padding: 0 15px;
        border-radius: 0;
    }

    .navbar-content {
        width: 100%;
    }

    .navbar-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    .nav-item {
        padding: 8px;
        font-size: 12px;
    }

    .nav-item span {
        display: none; /* 手机端只显示图标 */
    }

    .main-container {
        margin-top: 0;
    }
}

/* 强制横屏提示样式 */
.landscape-hint {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.animation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(23, 32, 42, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.animation-container {
    width: 100%;
    max-width: 800px;
    height: 400px;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* CSGO 跑马灯 */
.marquee-container {
    position: relative;
    width: 100%;
    height: 150px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    overflow: hidden;
    margin-top: 100px; /* 垂直居中 */
    border-radius: 8px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.marquee-track {
    display: flex;
    height: 100%;
    position: absolute;
    left: 0;
    will-change: transform;
    align-items: center;
}

.marquee-item {
    width: 100px;
    height: 100px;
    margin: 0 10px;
    background: linear-gradient(145deg, #2b323b, #1e2329);
    border: 2px solid #444;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.marquee-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--rarity-color, transparent) 0%, transparent 70%);
    opacity: 0.3;
    pointer-events: none;
}

.marquee-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #ffd700;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

/* 稀有度样式 - 增强版 */
.rarity-0 { border-color: #b0c3d9 !important; --rarity-color: #b0c3d9; }
.rarity-1 { border-color: #4b69ff !important; --rarity-color: #4b69ff; }
.rarity-2 { border-color: #8847ff !important; --rarity-color: #8847ff; }
.rarity-3 { border-color: #d32ce6 !important; --rarity-color: #d32ce6; }
.rarity-4 { border-color: #eb4b4b !important; --rarity-color: #eb4b4b; }
.rarity-5 { border-color: #e4ae39 !important; --rarity-color: #e4ae39; }
.rarity-6 { border-color: #f56c6c !important; --rarity-color: #f56c6c; }
.rarity-7 { border-color: #ff00ff !important; --rarity-color: #ff00ff; }

/* 奖品展示背景色 - 适配稀有度 */
.rarity-bg-0 { background: radial-gradient(circle, rgba(176, 195, 217, 0.1) 0%, rgba(255,255,255,0.05) 100%) !important; border-color: rgba(176, 195, 217, 0.3) !important; }
.rarity-bg-1 { background: radial-gradient(circle, rgba(75, 105, 255, 0.1) 0%, rgba(255,255,255,0.05) 100%) !important; border-color: rgba(75, 105, 255, 0.3) !important; }
.rarity-bg-2 { background: radial-gradient(circle, rgba(136, 71, 255, 0.1) 0%, rgba(255,255,255,0.05) 100%) !important; border-color: rgba(136, 71, 255, 0.3) !important; }
.rarity-bg-3 { background: radial-gradient(circle, rgba(211, 44, 230, 0.1) 0%, rgba(255,255,255,0.05) 100%) !important; border-color: rgba(211, 44, 230, 0.3) !important; }
.rarity-bg-4 { background: radial-gradient(circle, rgba(235, 75, 75, 0.1) 0%, rgba(255,255,255,0.05) 100%) !important; border-color: rgba(235, 75, 75, 0.3) !important; }
.rarity-bg-5 { background: radial-gradient(circle, rgba(228, 174, 57, 0.1) 0%, rgba(255,255,255,0.05) 100%) !important; border-color: rgba(228, 174, 57, 0.3) !important; }
.rarity-bg-6 { background: radial-gradient(circle, rgba(245, 108, 108, 0.1) 0%, rgba(255,255,255,0.05) 100%) !important; border-color: rgba(245, 108, 108, 0.3) !important; }
.rarity-bg-7 { background: radial-gradient(circle, rgba(255, 0, 255, 0.1) 0%, rgba(255,255,255,0.05) 100%) !important; border-color: rgba(255, 0, 255, 0.3) !important; }

.pull-result-dialog .el-dialog__body {
    padding: 30px;
    text-align: center;
}

/* =========================================
   PRESET THEMES CSS
   ========================================= */

.preset-theme-container {
    position: relative;
    width: 100%;
    min-height: 700px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.5s ease;
}

/* Theme Actions (Title & Buttons) */
.theme-actions {
    position: absolute;
    bottom: 50px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
    pointer-events: none; /* Let clicks pass through if needed, but buttons need pointer-events auto */
}

.theme-title {
    font-size: 32px;
    color: #fff;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.theme-buttons {
    pointer-events: auto;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.theme-buttons button {
    border: none;
    outline: none;
    cursor: pointer;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 180px;
    text-transform: uppercase;
}

.btn-pull-one {
    background: linear-gradient(135deg, #409eff, #3a8ee6);
    box-shadow: 0 10px 20px rgba(64, 158, 255, 0.3);
    color: white;
}
.btn-pull-one:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(64, 158, 255, 0.5);
}

.btn-pull-ten {
    background: linear-gradient(135deg, #e6a23c, #cf9236);
    box-shadow: 0 10px 20px rgba(230, 162, 60, 0.3);
    color: white;
}
.btn-pull-ten:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(230, 162, 60, 0.5);
}

.btn-cost {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 4px;
    font-weight: normal;
}

/* CSGO 风格按钮 */
.btn-csgo {
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 0 rgba(0,0,0,0.2);
}

/* =========================================
   GENSHIN STYLE UI
   ========================================= */

.genshin-sidebar {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.sidebar-item {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.sidebar-item.active {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.sidebar-item.active .sidebar-icon {
    filter: invert(1) brightness(0.5);
}

.sidebar-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: all 0.3s;
}

/* 定轨按钮容器 */
.fate-target-container {
    position: absolute;
    left: 100px;
    bottom: 50px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.fate-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
}

.fate-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: scale(1.05);
}

.fate-btn.has-target {
    border-color: #f3ae33;
    box-shadow: 0 0 15px rgba(243, 174, 51, 0.4);
}

.fate-points-display {
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.fate-points-val {
    color: #f3ae33;
    font-weight: bold;
}

/* 定轨选择弹窗内容 */
.fate-target-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    padding: 10px;
}

.fate-target-item {
    background: rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.fate-target-item:hover {
    background: rgba(64, 158, 255, 0.1);
}

.fate-target-item.is-selected {
    border-color: #f3ae33;
    background: rgba(243, 174, 51, 0.1);
}

.fate-target-item .item-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 8px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.fate-target-item .item-name {
    font-size: 12px;
    color: #333;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 抽奖结果样式 */
.wish-result-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
}

.wish-card {
    width: 160px;
    height: 240px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background: #1c1c22;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wish-card:hover {
    transform: translateY(-10px) scale(1.05);
    z-index: 10;
}

.wish-card.rarity-5 {
    background: linear-gradient(180deg, #514030 0%, #a47b3b 100%);
    border: 1px solid #f3ae33;
}

.wish-card.rarity-4 {
    background: linear-gradient(180deg, #3e3852 0%, #7d5b9d 100%);
    border: 1px solid #a256e1;
}

.wish-card.rarity-3 {
    background: linear-gradient(180deg, #354556 0%, #4a7293 100%);
    border: 1px solid #4a7293;
}

.wish-card-icon {
    width: 100%;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.wish-card-icon .item-img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
}

.wish-card-info {
    width: 100%;
    padding: 10px;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wish-card-name {
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.wish-card-stars {
    color: #f3ae33;
    font-size: 12px;
}

/* 流星动画 */
.wish-animation-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background: #000;
    overflow: hidden;
}

.meteor-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.meteor {
    position: absolute;
    width: 400px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 80%, rgba(255,255,255,1) 100%);
    transform: rotate(45deg);
    opacity: 0;
}

.meteor-5 {
    background: linear-gradient(90deg, rgba(255,215,0,0) 0%, rgba(255,215,0,1) 80%, #fff 100%);
    box-shadow: 0 0 20px #f3ae33;
}

.meteor-4 {
    background: linear-gradient(90deg, rgba(162,86,225,0) 0%, rgba(162,86,225,1) 80%, #fff 100%);
    box-shadow: 0 0 20px #a256e1;
}

.animate-meteor {
    animation: meteorSlide 1.5s ease-out forwards;
}

@keyframes meteorSlide {
    0% {
        transform: translate(100%, -100%) rotate(45deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(-100%, 100%) rotate(45deg);
        opacity: 0;
    }
}

/* =========================================
   ADMIN PANEL STYLES
   ========================================= */

.admin-panel {
    animation: fadeIn 0.5s ease-out;
    padding-bottom: 100px; /* 增加底部间距，防止内容贴底 */
}

.status-card {
    height: 180px; /* 大幅增加高度 */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(64, 158, 255, 0.2) !important;
}

.status-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(64, 158, 255, 0.2) !important;
    border-color: rgba(64, 158, 255, 0.6) !important;
}

.status-content {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 25px; /* 增加内边距 */
}

.status-content.center {
    justify-content: center;
    flex-direction: column;
    height: 100%;
}

.status-icon {
    font-size: 48px; /* 图标变大 */
    padding: 18px;
    border-radius: 16px;
    margin-right: 25px;
    background: rgba(64, 158, 255, 0.1);
    color: #409eff;
}

.status-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.status-label {
    font-size: 16px; /* 文字变大 */
    color: #909399;
    margin-bottom: 6px;
}

.status-value {
    font-size: 32px; /* 数值变大 */
    font-weight: bold;
    color: #303133;
    display: flex;
    align-items: baseline;
    gap: 6px;
    line-height: 1.1;
}

.status-unit {
    font-size: 14px;
    font-weight: normal;
    color: #909399;
}

.action-card {
    cursor: pointer;
    background: linear-gradient(135deg, #409eff, #3a8ee6) !important;
    border: none !important;
    color: white !important;
}

.action-card .status-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: bold;
    font-size: 18px;
    margin-top: 15px;
}

.refresh-icon {
    font-size: 48px; /* 刷新图标变大 */
    color: white;
    animation: rotate 2s linear infinite paused;
}

.action-card:hover .refresh-icon {
    animation-play-state: running;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.admin-tabs {
    margin-top: 30px;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.admin-tabs .el-tabs__content {
    min-height: 800px; /* 进一步增加内容区域最小高度 */
    padding: 25px !important;
}

.admin-tabs .el-tabs__item {
    font-weight: bold;
    height: 60px;
    line-height: 60px;
    font-size: 16px;
}

.cdk-dialog .el-dialog__body {
    max-height: 70vh; /* 调整为更合理的高度，确保页头页脚不被挤出屏幕 */
    overflow-y: auto;
    padding: 30px 50px; /* 增加内边距 */
}

.cdk-dialog .el-form-item {
    margin-bottom: 25px; /* 增加表单项间距 */
}

.cdk-form-item-tip {
    font-size: 13px;
    color: #909399;
    margin-top: 6px;
    line-height: 1.4;
}

.inventory-grid-mini {
    display: grid;
    grid-template-columns: repeat(15, 1fr); /* 进一步增加到 15 列 */
    gap: 8px;
    padding: 15px;
    background: #f5f7fa;
    border-radius: 8px;
}

.item-slot-mini {
    aspect-ratio: 1;
    background: #fff;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.item-slot-mini:hover {
    border-color: #409eff;
    background: #ecf5ff;
}

.item-slot-mini.selected {
    border-color: #409eff;
    background: #ecf5ff;
    box-shadow: inset 0 0 0 2px #409eff;
}

.item-icon-mini {
    width: 32px;
    height: 32px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
}

.item-icon-mini .amount {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 10px;
    padding: 0 4px;
    border-radius: 4px;
    line-height: 1.4;
}

/* =========================================
   GENSHIN IMPACT THEME (原神祈愿风格) - 还原度优化
   ========================================= */

.theme-GENSHIN_WISH {
    background: #000 url('https://img.api.aa1.cn/2022/05/20/4e8b8c7b8c7b8.jpg') no-repeat center center;
    background-size: cover;
    color: #333;
    min-height: 800px;
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: "Genshin", "HYWenHei-85W", "Microsoft YaHei", sans-serif;
    user-select: none;
}

/* 增加星空动态感 */
.theme-GENSHIN_WISH::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
    z-index: 1;
}

/* 动态背景星光 */
.genshin-starfield {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 2;
    opacity: 0.6;
}

.genshin-star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    filter: blur(1px);
    animation: glowPulse var(--duration) infinite ease-in-out;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.2); opacity: 0.5; }
}

/* 顶部栏优化 */
.genshin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 30px 60px;
    z-index: 10;
    position: relative;
}

.genshin-banner-tag {
    background: #ede5d8;
    color: #3b4255;
    padding: 6px 20px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 12px;
    box-shadow: 0 4px 0 #d4c6af;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.genshin-banner-title {
    color: #fff;
    font-size: 42px;
    margin: 0;
    text-shadow: 0 2px 15px rgba(0,0,0,0.8), 0 0 30px rgba(255,255,255,0.2);
    font-weight: 900;
    letter-spacing: 1px;
}

.genshin-currency-bar {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 40px;
    padding: 6px 8px 6px 18px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.currency-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.currency-icon {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.5));
}

.currency-value {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    min-width: 60px;
    text-align: right;
}

.currency-add {
    width: 24px;
    height: 24px;
    background: #ece5d8;
    color: #3b4255;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
    margin-left: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.currency-add:hover {
    background: #fff;
    transform: scale(1.1);
}

/* 主体区域 */
.genshin-main-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0 40px 120px;
}

.genshin-wish-stage {
    width: 100%;
    max-width: 1200px;
    height: 500px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-image-container {
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 100px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.1);
}

.placeholder-art {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(64, 158, 255, 0.1) 0%, transparent 70%);
    position: relative;
}

.art-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80%; height: 80%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 80%);
    animation: pulseGlow 4s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

/* 底部操作区 */
.genshin-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 80px;
    display: flex;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    z-index: 20;
}

.genshin-controls {
    display: flex;
    gap: 30px;
}

.btn-genshin {
    background: #ece5d8;
    border: none;
    border-radius: 50px;
    padding: 10px 40px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 0 #3b4255, 0 12px 24px rgba(0,0,0,0.5);
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.btn-genshin::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.2s;
}

.btn-genshin:hover {
    transform: translateY(-4px);
    background: #fff;
    box-shadow: 0 10px 0 #3b4255, 0 20px 40px rgba(0,0,0,0.6);
}

.btn-genshin:hover::after {
    opacity: 1;
}

.btn-genshin:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #3b4255, 0 5px 10px rgba(0,0,0,0.4);
}

.btn-label {
    display: block;
    font-size: 18px;
    color: #3b4255;
    font-weight: 800;
    margin-bottom: 4px;
}

.btn-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #3b4255;
    opacity: 0.8;
}

.price-icon {
    width: 20px;
    height: 20px;
}

.price-num {
    font-size: 16px;
    font-weight: 900;
}

/* 结果弹窗优化 */
.genshin-result-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.4s ease;
}

/* 侧边栏：卡池切换 */
.genshin-sidebar {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.sidebar-item {
    width: 64px;
    height: 64px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    position: relative;
}

.sidebar-item:hover {
    transform: scale(1.1);
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-item.is-active {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.sidebar-item.is-active .sidebar-icon-text {
    color: #3b4255;
}

.sidebar-icon-text {
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    line-height: 1.2;
}

.sidebar-item::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-item:last-child::after {
    display: none;
}

/* 定轨系统样式 */
.fate-targeting-container {
    position: absolute;
    left: 60px;
    bottom: 60px;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 15px;
}

.fate-targeting-btn {
    width: 100px;
    height: 100px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #ede5d8;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    color: #ede5d8;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.fate-targeting-btn:hover {
    background: #ede5d8;
    color: #3b4255;
    transform: scale(1.05);
}

.fate-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.fate-text {
    font-size: 12px;
    font-weight: bold;
}

.fate-points-display {
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(5px);
}

.fate-point-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.fate-point-dot.is-active {
    background: #fadb14;
    box-shadow: 0 0 10px #fadb14;
    border-color: #fff;
}

/* 流星动画背景 */
.wish-animation-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 9998;
    background: #000;
    overflow: hidden;
}

.meteor-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

.meteor {
    position: absolute;
    width: 4px;
    height: 400px;
    background: linear-gradient(to bottom, transparent, var(--meteor-color, #fff));
    transform: rotate(45deg);
    filter: drop-shadow(0 0 20px var(--meteor-color, #fff));
    opacity: 0;
}

.meteor-5 { --meteor-color: #f1b131; }
.meteor-4 { --meteor-color: #a256e1; }
.meteor-3 { --meteor-color: #4b69ff; }

@keyframes meteorSlide {
    0% { transform: translate(100%, -100%) rotate(45deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translate(-100%, 100%) rotate(45deg); opacity: 0; }
}

.animate-meteor {
    animation: meteorSlide 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* 定轨选择对话框优化 */
.fate-target-dialog .el-dialog {
    background: #ede5d8 !important;
    border-radius: 0 !important;
    border: 4px solid #3b4255;
}

.fate-target-dialog .el-dialog__header {
    background: #3b4255;
    padding: 15px 25px !important;
}

.fate-target-dialog .el-dialog__title {
    color: #ede5d8 !important;
}

.fate-target-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.fate-target-item {
    background: #d4c6af;
    border: 3px solid transparent;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.fate-target-item:hover {
    background: #fff;
    transform: translateY(-5px);
}

.fate-target-item.is-selected {
    border-color: #3b4255;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.fate-target-item .item-icon {
    width: 80px;
    height: 80px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.fate-target-item .item-name {
    font-size: 14px;
    font-weight: bold;
    color: #3b4255;
    text-align: center;
}

/* 结果弹窗优化 */
.genshin-result-screen {
    display: none; /* 这是一个占位，实际样式在后面有重复定义，或者这里应该关闭 */
}

.genshin-result-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.genshin-single-reveal {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.reveal-card {
    position: relative;
    width: 350px;
    height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: genshinReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes genshinReveal {
    0% { transform: scale(0.5) rotateY(90deg); opacity: 0; }
    100% { transform: scale(1) rotateY(0deg); opacity: 1; }
}

.reveal-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--rarity-color, #fff) 0%, transparent 70%);
    opacity: 0.4;
    z-index: -1;
    filter: blur(30px);
}

.item-icon-huge {
    width: 250px;
    height: 250px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
    z-index: 2;
}

.reveal-info {
    margin-top: 40px;
    text-align: center;
    z-index: 2;
}

.reveal-name {
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 12px;
    text-shadow: 0 0 20px rgba(0,0,0,1);
    letter-spacing: 2px;
}

.reveal-stars {
    color: #fadb14;
    font-size: 24px;
    display: flex;
    gap: 5px;
    justify-content: center;
}

.reveal-stars i {
    filter: drop-shadow(0 0 5px rgba(250, 219, 20, 0.8));
}

/* 十连结果网格 */
.genshin-multi-reveal {
    width: 100%;
    max-width: 1400px;
}

.multi-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.multi-item-card {
    width: 120px;
    height: 450px;
    position: relative;
    animation: slideUpIn 0.5s both;
}

@keyframes slideUpIn {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.multi-item-inner {
    width: 100%;
    height: 100%;
    background: #ece5d8;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    border: 2px solid transparent;
    position: relative;
}

.multi-item-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 85%;
    background: linear-gradient(to bottom, #ece5d8 0%, #d8cfbc 100%);
    z-index: 1;
}

.rarity-5 .multi-item-bg, .rarity-6 .multi-item-bg, .rarity-7 .multi-item-bg {
    background: linear-gradient(to bottom, #f1b131 0%, #e4ae39 100%);
    border-color: #f1b131;
}

.rarity-4 .multi-item-bg {
    background: linear-gradient(to bottom, #a256e1 0%, #8847ff 100%);
}

.item-icon-wrap {
    width: 100px;
    height: 100px;
    margin-top: 80px;
    z-index: 2;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4));
}

.item-info-mini {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 15%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.item-name-mini {
    font-size: 13px;
    font-weight: 800;
    color: #333;
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-stars-mini {
    color: #fadb14;
    font-size: 10px;
    margin-top: 2px;
}

.genshin-result-close {
    margin-top: 50px;
    text-align: center;
}

.btn-genshin-close {
    background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 10px 40px;
    border-radius: 40px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.btn-genshin-close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}


/* CSGO 风格按钮 */
.btn-csgo {
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 0 rgba(0,0,0,0.2);
}

.btn-csgo:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(0,0,0,0.2);
}

.btn-csgo-orange {
    background: #e67e22;
    border-bottom: 3px solid #d35400;
}
.btn-csgo-orange:hover {
    background: #f39c12;
}

.btn-csgo-blue {
    background: #3498db;
    border-bottom: 3px solid #2980b9;
}
.btn-csgo-blue:hover {
    background: #5dade2;
}

/* 跑马灯项稀有度增强 */
.marquee-item.rarity-0 { border-color: #b0c3d9; }
.marquee-item.rarity-1 { border-color: #4b69ff; }
.marquee-item.rarity-2 { border-color: #8847ff; }
.marquee-item.rarity-3 { border-color: #d32ce6; }
.marquee-item.rarity-4 { border-color: #eb4b4b; }
.marquee-item.rarity-5 { border-color: #e4ae39; }

.marquee-item.rarity-0::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background: #b0c3d9; }
.marquee-item.rarity-1::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background: #4b69ff; }
.marquee-item.rarity-2::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background: #8847ff; }
.marquee-item.rarity-3::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background: #d32ce6; }
.marquee-item.rarity-4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background: #eb4b4b; }
.marquee-item.rarity-5::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background: #e4ae39; }

/* 物品卡片居中优化 */
.csgo-item-grid::-webkit-scrollbar {
    height: 6px;
}

/* 社交侧边栏抽屉优化 */
.social-drawer .el-drawer__body {
    padding: 0 !important;
    overflow: hidden;
}

.social-drawer .el-drawer {
    background-color: #fff;
}

/* 管理员页面样式 */
.admin-panel {
    padding: 10px;
}

.status-card {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(64, 158, 255, 0.2) !important;
}

.status-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(64, 158, 255, 0.15) !important;
    border-color: rgba(64, 158, 255, 0.5) !important;
}

.status-content {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 15px;
}

.status-content.center {
    justify-content: center;
    flex-direction: column;
}

.status-icon {
    font-size: 32px;
    padding: 12px;
    border-radius: 12px;
    margin-right: 15px;
    background: rgba(64, 158, 255, 0.1);
    color: #409eff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-info {
    flex: 1;
    overflow: hidden;
}

.status-label {
    font-size: 13px;
    color: #909399;
    margin-bottom: 4px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.status-value {
    font-size: 22px;
    font-weight: bold;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
}

.status-unit {
    font-size: 12px;
    color: #909399;
    font-weight: normal;
    margin-left: 2px;
}

.action-card {
    cursor: pointer;
    background: linear-gradient(135deg, rgba(64, 158, 255, 0.05), rgba(64, 158, 255, 0.1)) !important;
}

.refresh-icon {
    font-size: 24px;
    margin-bottom: 8px;
    color: #409eff;
}

.color-primary { color: #409eff; }
.color-success { color: #67c23a; }
.color-warning { color: #e6a23c; }
.color-danger { color: #f56c6c; }

/* CDK 管理样式 */
.cdk-dialog .el-dialog__body {
    max-height: 60vh;
    overflow-y: auto;
    padding: 20px 40px;
}

.cdk-form-item-tip {
    font-size: 12px;
    color: #909399;
    margin-top: 4px;
    line-height: 1.4;
}

.item-icon-mini {
    width: 32px;
    height: 32px;
    background: #8b8b8b;
    border: 1px solid #373737;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.item-icon-mini .amount {
    position: absolute;
    bottom: -2px;
    right: 1px;
    color: #fff;
    font-size: 10px;
    text-shadow: 1px 1px 0 #000;
    pointer-events: none;
}

.inventory-grid-mini {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 8px;
    background: #8b8b8b;
    padding: 10px;
    border: 2px solid #373737;
}

.item-slot-mini {
    aspect-ratio: 1;
    background: #8b8b8b;
    border: 2px solid;
    border-color: #373737 #ffffff #ffffff #373737;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-slot-mini:hover {
    background: #c6c6c6;
}

.item-slot-mini.selected {
    outline: 2px solid #409eff;
    z-index: 1;
}

.admin-tabs {
    margin-top: 10px;
}

.admin-tabs .el-tabs__content {
    padding: 20px;
}


.csgo-item-grid::-webkit-scrollbar-thumb {
    background: #e67e22;
    border-radius: 10px;
}
.csgo-item-grid::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
}

.csgo-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-left: 4px solid #e67e22;
    padding-left: 15px;
}

.csgo-section-title {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
}



/* =========================================
   CSGO THEME (CSGO 开箱风格) - 还原度优化
   ========================================= */

.theme-CSGO_MARQUEE {
    background: #0b0e11 radial-gradient(circle at center, #1b1f26 0%, #0b0e11 100%);
    color: #fff;
    min-height: 800px;
    height: 100vh;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    font-family: "Stratum2", "Microsoft YaHei", sans-serif;
    user-select: none;
}

/* CSGO 标题 */
.csgo-title {
    font-size: 48px;
    font-weight: 900;
    text-align: center;
    margin: 40px 0;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* 核心视觉：容器 */
.csgo-hero-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

/* 箱子展示区 */
.csgo-crate-highlight {
    width: 100%;
    max-width: 1000px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 50px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
}

.csgo-crate-visual {
    width: 280px;
    height: 200px;
    perspective: 1000px;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.8));
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.csgo-crate-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f39c12, #d35400);
    border: 4px solid #f39c12;
    border-radius: 4px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.2);
}

.csgo-crate-inner::after {
    content: 'WEAPON CASE';
    font-weight: 900;
    font-size: 24px;
    color: rgba(0,0,0,0.3);
    border: 3px solid rgba(0,0,0,0.2);
    padding: 10px 20px;
    transform: rotate(-5deg);
}

/* 跑马灯轨道 */
.csgo-animation-track-container {
    width: 100%;
    height: 200px;
    background: rgba(0, 0, 0, 0.7);
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.8);
}

.marquee-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 100%;
    background: #ffd700;
    transform: translateX(-50%);
    z-index: 100;
    box-shadow: 0 0 30px rgba(255, 215, 0, 1), 0 0 10px rgba(255, 255, 255, 0.5);
}

.marquee-line::before, .marquee-line::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
}

.marquee-line::before {
    top: 0;
    border-top: 15px solid #ffd700;
}

.marquee-line::after {
    bottom: 0;
    border-bottom: 15px solid #ffd700;
}

.marquee-track {
    display: flex;
    height: 100%;
    position: absolute;
    left: 0;
    align-items: center;
    padding: 0 50%; 
    will-change: transform;
}

.marquee-item {
    width: 140px;
    height: 140px;
    margin: 0 4px;
    background: linear-gradient(180deg, rgba(45, 52, 54, 0.8) 0%, rgba(30, 39, 46, 0.9) 100%);
    border-bottom: 5px solid #555;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: transform 0.2s, background 0.2s;
    box-sizing: border-box;
    overflow: hidden;
}

.marquee-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.marquee-item:hover::before {
    opacity: 1;
}

.item-icon-medium {
    width: 100px;
    height: 100px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.6));
    z-index: 2;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.marquee-item:hover .item-icon-medium {
    transform: scale(1.1) rotate(5deg);
}

/* CSGO 稀有度颜色 */
.rarity-0 { border-bottom-color: #b0c3d9 !important; } /* Consumer */
.rarity-1 { border-bottom-color: #5e98d9 !important; } /* Industrial */
.rarity-2 { border-bottom-color: #4b69ff !important; } /* Mil-Spec */
.rarity-3 { border-bottom-color: #8847ff !important; } /* Restricted */
.rarity-4 { border-bottom-color: #d32ce6 !important; } /* Classified */
.rarity-5 { border-bottom-color: #eb4b4b !important; } /* Covert */
.rarity-6 { border-bottom-color: #e4ae39 !important; } /* Gold */

/* 按钮组 */
.csgo-main-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.btn-csgo {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 0 rgba(0,0,0,0.3);
}

.btn-csgo-orange {
    background: linear-gradient(to bottom, #f39c12, #e67e22);
    border-bottom: 4px solid #d35400;
}

.btn-csgo-orange:hover {
    background: linear-gradient(to bottom, #f1c40f, #f39c12);
    transform: translateY(-2px);
}

.btn-csgo-blue {
    background: linear-gradient(to bottom, #3498db, #2980b9);
    border-bottom: 4px solid #2471a3;
}

.btn-csgo-blue:hover {
    background: linear-gradient(to bottom, #5dade2, #3498db);
    transform: translateY(-2px);
}

/* 物品展示网格 */
.csgo-items-container {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
}

.csgo-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.csgo-section-title {
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    color: #888;
}

.csgo-item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.csgo-item-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 4px;
    border-bottom: 4px solid #444;
    text-align: center;
    transition: all 0.3s;
}

.csgo-item-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.csgo-item-icon {
    width: 100px;
    height: 80px;
    margin: 0 auto 15px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.csgo-item-name {
    font-size: 14px;
    font-weight: bold;
    color: #eee;
    height: 40px;
    overflow: hidden;
}

/* CSGO 结果弹窗 */
.csgo-result-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(15px);
}

.csgo-result-modal {
    width: 90%;
    max-width: 1100px;
    background: radial-gradient(circle at center, #2c3e50 0%, #000 100%);
    border-radius: 4px;
    box-shadow: 0 0 100px rgba(0,0,0,0.8);
    position: relative;
    padding: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.csgo-result-title {
    font-size: 42px;
    font-weight: 900;
    color: #ffd700;
    text-transform: uppercase;
    margin-bottom: 50px;
    letter-spacing: 5px;
}

.csgo-result-item-large {
    text-align: center;
    position: relative;
}

.item-icon-huge {
    width: 350px;
    height: 250px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 40px rgba(255,255,255,0.2));
}

.csgo-result-item-large .item-info {
    margin-top: 40px;
}

.csgo-result-item-large .item-name {
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
}

.csgo-result-item-large .item-rarity-text {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
}

/* 十连结果 */
.csgo-multi-result {
    width: 100%;
}

.csgo-result-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.csgo-result-item-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-bottom: 4px solid #444;
    text-align: center;
    animation: itemEntrance 0.5s backwards cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: all 0.3s;
}

.csgo-result-item-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.csgo-result-item-card.rarity-4 { border-bottom-color: #eb4b4b; background: linear-gradient(to bottom, rgba(235, 75, 75, 0), rgba(235, 75, 75, 0.15)); }
.csgo-result-item-card.rarity-3 { border-bottom-color: #d32ce6; background: linear-gradient(to bottom, rgba(211, 44, 230, 0), rgba(211, 44, 230, 0.15)); }
.csgo-result-item-card.rarity-2 { border-bottom-color: #8847ff; background: linear-gradient(to bottom, rgba(136, 71, 255, 0), rgba(136, 71, 255, 0.15)); }
.csgo-result-item-card.rarity-1 { border-bottom-color: #4b69ff; background: linear-gradient(to bottom, rgba(75, 105, 255, 0), rgba(75, 105, 255, 0.15)); }

@keyframes itemEntrance {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.csgo-result-footer {
    margin-top: 60px;
}


/* THEME: GENSHIN_WISH - 还原度优化 */
.theme-GENSHIN_WISH {
    background: #000 url('https://img.api.aa1.cn/2022/05/20/4e8b8c7b8c7b8.jpg') no-repeat center center;
    background-size: cover;
    color: #333;
    min-height: 800px;
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: "Genshin", "HYWenHei-85W", "Microsoft YaHei", sans-serif;
    user-select: none;
}

/* 增加星空动态感 */
.theme-GENSHIN_WISH::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
    z-index: 1;
}

.genshin-starfield {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2;
    pointer-events: none;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 160px, #ddd, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 130px 80px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 160px 120px, #ddd, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.3;
    animation: starfieldMove 100s linear infinite;
}

@keyframes starfieldMove {
    from { background-position: 0 0; }
    to { background-position: 1000px 1000px; }
}

/* 原神发光粒子 */
.genshin-glow-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 3;
    background: radial-gradient(circle at 50% 50%, rgba(102, 252, 241, 0.1) 0%, transparent 60%);
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.genshin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 30px 60px;
    z-index: 10;
    position: relative;
}

.genshin-banner-info {
    position: relative;
}

.genshin-banner-tag {
    background: #ede5d8;
    color: #3b4255;
    padding: 4px 16px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 12px;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%); /* 仿原神标签形状 */
}

.genshin-banner-title {
    color: #fff;
    font-size: 42px;
    margin: 0;
    text-shadow: 0 4px 12px rgba(0,0,0,0.8);
    font-weight: 900;
    letter-spacing: 2px;
}

.genshin-currency-bar {
    display: flex;
    gap: 20px;
}

.currency-item {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 30px;
    padding: 6px 15px 6px 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.currency-icon {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 5px rgba(102, 252, 241, 0.5));
}

.currency-value {
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    min-width: 60px;
}

.currency-add {
    width: 24px;
    height: 24px;
    background: #ede5d8;
    color: #3b4255;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s;
}

.currency-add:hover {
    background: #fff;
    transform: scale(1.1);
}

/* 主体舞台 */
.genshin-main-body {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
}

.genshin-wish-stage {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-image-container {
    width: 100%;
    height: 100%;
    max-height: 550px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    border: 2px solid rgba(255,255,255,0.1);
    position: relative;
}

.placeholder-art {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    opacity: 0.4;
    position: relative;
}

.placeholder-art::after {
    content: 'WISH BANNER ART';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 64px;
    font-weight: 900;
    color: rgba(255,255,255,0.1);
    letter-spacing: 10px;
}

.genshin-info-btn {
    position: absolute;
    bottom: 40px;
    left: 40px;
    background: rgba(237, 229, 216, 0.9);
    color: #3b4255;
    padding: 10px 35px;
    border-radius: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid #3b4255;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 5;
}

.genshin-info-btn:hover {
    background: #fff;
    transform: scale(1.05) translateY(-2px);
}

/* 底部操作区 */
.genshin-footer {
    padding: 40px 60px 60px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 10;
    position: relative;
}

.genshin-controls {
    display: flex;
    gap: 40px;
}

.btn-genshin {
    background: #ede5d8;
    border: 3px solid #3b4255;
    border-radius: 50px;
    padding: 12px 0;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 240px;
    box-shadow: 0 8px 0 #3b4255, 0 15px 30px rgba(0,0,0,0.4);
    position: relative;
}

.btn-genshin:hover {
    background: #fff;
    transform: translateY(-4px);
    box-shadow: 0 12px 0 #3b4255, 0 20px 40px rgba(0,0,0,0.5);
}

.btn-genshin:active {
    transform: translateY(4px);
    box-shadow: 0 4px 0 #3b4255;
}

.btn-label {
    display: block;
    font-size: 20px;
    color: #3b4255;
    font-weight: 900;
    margin-bottom: 4px;
}

.btn-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #444;
}

.price-icon {
    width: 24px;
    height: 24px;
}

.price-num {
    font-size: 18px;
    font-weight: bold;
}

/* 结果弹窗全屏覆盖 */
.genshin-result-screen {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: resultFadeIn 0.4s ease-out;
}

@keyframes resultFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.genshin-result-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* 十连抽网格优化 */
.multi-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 95%;
    max-width: 1600px;
    padding: 20px;
}

.multi-item-card {
    width: 140px;
    height: 520px;
    position: relative;
    perspective: 1000px;
}

.multi-item-inner {
    width: 100%;
    height: 100%;
    background: #ede5d8;
    border-radius: 8px 8px 60px 8px; /* 底部削圆仿原神卡片 */
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    border: 2px solid transparent;
    transition: transform 0.3s;
    animation: cardEntrance 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes cardEntrance {
    from { transform: translateY(100px) scale(0.5) rotateY(90deg); opacity: 0; }
    to { transform: translateY(0) scale(1) rotateY(0); opacity: 1; }
}

/* 管理员页面专用样式 */
.status-card {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(64, 158, 255, 0.2) !important;
}

.action-card {
    cursor: pointer;
    background: rgba(64, 158, 255, 0.1) !important;
    border: 1px dashed #409eff !important;
}

.action-card:hover {
    background: rgba(64, 158, 255, 0.2) !important;
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(64, 158, 255, 0.2) !important;
}

.status-content {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 0 20px;
}

.status-content.center {
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.status-icon {
    font-size: 32px;
    color: #409eff;
    background: rgba(64, 158, 255, 0.1);
    padding: 12px;
    border-radius: 12px;
}

.refresh-icon {
    font-size: 36px;
    color: #409eff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.status-info {
    display: flex;
    flex-direction: column;
}

.status-label {
    font-size: 14px;
    color: #909399;
    margin-bottom: 4px;
}

.status-value {
    font-size: 24px;
    font-weight: bold;
    color: #303133;
}

.status-unit {
    font-size: 14px;
    margin-left: 4px;
    font-weight: normal;
    color: #606266;
}

/* CDK 管理对话框高度优化 */
.cdk-dialog .el-dialog__body {
    max-height: 60vh;
    overflow-y: auto;
    padding: 20px 40px;
}

.cdk-form-item-tip {
    font-size: 12px;
    color: #909399;
    margin-top: 4px;
    line-height: 1.4;
}

.multi-item-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 88%;
    background: linear-gradient(180deg, #ede5d8 0%, #c7bdac 100%);
    z-index: 1;
}

/* 稀有度颜色 */
.rarity-3 .multi-item-bg { background: linear-gradient(180deg, #5180cc 0%, #3e5396 100%); }
.rarity-4 .multi-item-bg { background: linear-gradient(180deg, #a256e1 0%, #7e3eb6 100%); }
.rarity-5 .multi-item-bg, .rarity-6 .multi-item-bg, .rarity-7 .multi-item-bg { 
    background: linear-gradient(180deg, #f1b131 0%, #b88629 100%); 
}

.item-icon-wrap {
    width: 110px;
    height: 110px;
    margin-top: 100px;
    z-index: 5;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

.item-info-mini {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 12%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    padding: 5px;
}

.item-name-mini {
    font-size: 14px;
    color: #333;
    font-weight: 900;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 90%;
}

.item-stars-mini {
    color: #fadb14;
    font-size: 12px;
    margin-top: 2px;
}

/* 单抽大图展示优化 */
.genshin-single-reveal {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.reveal-card {
    position: relative;
    width: 400px;
    height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: singleReveal 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes singleReveal {
    from { transform: scale(0) rotate(10deg); opacity: 0; }
    to { transform: scale(1) rotate(0); opacity: 1; }
}

.reveal-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--rarity-color, #fff) 0%, transparent 70%);
    opacity: 0.2;
    filter: blur(40px);
    z-index: -1;
    animation: glowPulse 2s infinite ease-in-out;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.2); opacity: 0.3; }
}

.reveal-name {
    color: #fff;
    font-size: 48px;
    font-weight: 900;
    margin-top: 40px;
    text-shadow: 0 0 20px var(--rarity-color, #fff);
    letter-spacing: 4px;
}

.reveal-stars {
    color: #fadb14;
    font-size: 32px;
    margin-top: 15px;
}

/* 结果页关闭按钮 */
.genshin-result-close {
    position: absolute;
    bottom: 60px;
    width: 100%;
    text-align: center;
}

.btn-genshin-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 18px;
    letter-spacing: 4px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-genshin-close:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.8);
}

.genshin-main-body {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.genshin-wish-stage {
    width: 100%;
    height: 100%;
    position: relative;
}

.genshin-stage-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://img.api.aa1.cn/2024/01/20/genshin-bg.jpg') center/cover;
    opacity: 0.6;
    filter: blur(5px);
}

.genshin-banner-preview {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.banner-image-container {
    width: 80%;
    max-width: 1000px;
    height: 80%;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    overflow: hidden;
}

.placeholder-art {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.art-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(236, 229, 216, 0.2) 0%, transparent 70%);
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    from { transform: scale(1); opacity: 0.3; }
    to { transform: scale(1.5); opacity: 0.6; }
}

.genshin-info-btn {
    position: absolute;
    bottom: 40px;
    left: 40px;
    background: rgba(255,255,255,0.9);
    padding: 8px 25px;
    border-radius: 20px;
    color: #333;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.genshin-info-btn:hover {
    background: #fff;
    transform: scale(1.05);
}

.genshin-footer {
    padding: 40px;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.genshin-controls {
    display: flex;
    gap: 30px;
}

.btn-genshin {
    width: 240px;
    height: 60px;
    background: url('https://img.api.aa1.cn/2024/01/20/genshin-btn.png') center/contain no-repeat;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.btn-genshin:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.4));
}

.btn-genshin:active {
    transform: scale(0.98);
}

.btn-label {
    font-size: 18px;
    color: #333;
    font-weight: bold;
    margin-bottom: 2px;
}

.btn-price {
    display: flex;
    align-items: center;
    gap: 5px;
}

.price-icon {
    width: 18px;
    height: 18px;
}

.price-num {
    font-size: 14px;
    color: #666;
    font-weight: bold;
}

/* 祈愿动画叠加层 */
.genshin-animation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.genshin-wish-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- 原神风格：结果页面增强 --- */
.genshin-result-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: genshinFadeIn 0.4s ease-out;
}

@keyframes genshinFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.genshin-result-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 5;
}

/* 单抽展示动画 */
.genshin-single-reveal {
    animation: genshinSingleEnter 0.8s cubic-bezier(0.15, 0, 0.15, 1);
}

@keyframes genshinSingleEnter {
    0% { transform: scale(0.6) translateY(50px); opacity: 0; filter: brightness(3); }
    50% { filter: brightness(1.5); }
    100% { transform: scale(1) translateY(0); opacity: 1; filter: brightness(1); }
}

.reveal-card {
    position: relative;
    width: 320px;
    height: 500px;
    background: #fff;
    border-radius: 8px 8px 60px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    border: 3px solid #fff;
    overflow: hidden;
}

.reveal-card.rarity-4 { background: linear-gradient(180deg, #f9d792 0%, #e3a03a 100%); border-color: #ffda7e; }
.reveal-card.rarity-3 { background: linear-gradient(180deg, #d2b0ef 0%, #9c67cf 100%); border-color: #d1b1f3; }
.reveal-card.rarity-2 { background: linear-gradient(180deg, #9cc8ef 0%, #518ecc 100%); border-color: #a1ccf2; }

.reveal-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.5) 0%, transparent 70%);
    z-index: -1;
    animation: rotateGlow 15s linear infinite;
}

@keyframes rotateGlow {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.item-icon-huge {
    width: 240px;
    height: 240px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 40px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.4));
}

.reveal-info {
    margin-top: auto;
    text-align: center;
    width: 100%;
}

.reveal-name {
    font-size: 28px;
    font-weight: 900;
    color: #333;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(255,255,255,0.5);
}

.reveal-stars {
    color: #ffda7e;
    font-size: 24px;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.reveal-stars i {
    animation: starPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

@keyframes starPop {
    0% { transform: scale(0) rotate(-45deg); opacity: 0; }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* 十连展示增强 */
.genshin-multi-reveal {
    width: 95%;
    max-width: 1400px;
}

.multi-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 12px;
    padding: 20px;
}

.multi-item-card {
    height: 380px;
    background: #fff;
    border-radius: 5px 5px 35px 5px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(30px);
    animation: multiItemEnter 0.5s forwards cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes multiItemEnter {
    to { opacity: 1; transform: translateX(0); }
}

.multi-item-card.rarity-4 { background: linear-gradient(180deg, #f9d792 0%, #e3a03a 100%); box-shadow: 0 0 15px rgba(227, 160, 58, 0.6); }
.multi-item-card.rarity-3 { background: linear-gradient(180deg, #d2b0ef 0%, #9c67cf 100%); box-shadow: 0 0 15px rgba(156, 103, 207, 0.6); }
.multi-item-card.rarity-2 { background: linear-gradient(180deg, #9cc8ef 0%, #518ecc 100%); }

.multi-item-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.item-icon-wrap {
    flex: 1;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.item-info-mini {
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.item-name-mini {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.item-stars-mini {
    color: #ffda7e;
    font-size: 12px;
}

.genshin-result-close {
    position: absolute;
    bottom: 50px;
    z-index: 10;
}

.btn-genshin-close {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.7);
    padding: 10px 40px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-genshin-close:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: #fff;
}

/* --- CSGO 跑马灯：稀有度与细节优化 --- */
.csgo-item.rarity-4 { border-bottom: 5px solid #eb4b4b; background: linear-gradient(to bottom, rgba(235, 75, 75, 0.05), rgba(235, 75, 75, 0.2)); }
.csgo-item.rarity-3 { border-bottom: 5px solid #d32ce6; background: linear-gradient(to bottom, rgba(211, 44, 230, 0.05), rgba(211, 44, 230, 0.2)); }
.csgo-item.rarity-2 { border-bottom: 5px solid #8847ff; background: linear-gradient(to bottom, rgba(136, 71, 255, 0.05), rgba(136, 71, 255, 0.2)); }
.csgo-item.rarity-1 { border-bottom: 5px solid #4b69ff; background: linear-gradient(to bottom, rgba(75, 105, 255, 0.05), rgba(75, 105, 255, 0.2)); }

/* CSGO 闪光特效 (Shimmer) */
.csgo-item.rarity-4::after, .csgo-item.rarity-3::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(
        45deg,
        transparent 45%,
        rgba(255, 255, 255, 0.1) 48%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0.1) 52%,
        transparent 55%
    );
    transform: rotate(30deg);
    animation: csgoShimmer 3s infinite;
    pointer-events: none;
}

@keyframes csgoShimmer {
    0% { transform: translateX(-100%) rotate(30deg); }
    100% { transform: translateX(100%) rotate(30deg); }
}

.csgo-item:hover {
    transform: scale(1.05) translateY(-5px);
    z-index: 10;
    filter: brightness(1.2);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.csgo-item.rarity-4:hover { box-shadow: 0 0 25px rgba(235, 75, 75, 0.6); }
.csgo-item.rarity-3:hover { box-shadow: 0 0 25px rgba(211, 44, 230, 0.6); }

/* 全局按钮反馈 */
button:active {
    transform: scale(0.95) !important;
}

/* 仿原神点击波纹 */
.genshin-click-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    pointer-events: none;
    animation: clickRipple 0.6s ease-out;
}

@keyframes clickRipple {
    to { transform: scale(4); opacity: 0; }
}

.wish-meteor-effect {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, #1a1a2e 0%, #000 100%);
}

.meteor-sky {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('https://img.api.aa1.cn/2024/01/20/genshin-stars.png') repeat;
    opacity: 0.3;
    animation: starsMove 100s linear infinite;
}

@keyframes starsMove {
    from { background-position: 0 0; }
    to { background-position: 1000px 1000px; }
}

.meteor-core {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 4px;
    height: 300px;
    transform: rotate(45deg);
    filter: drop-shadow(0 0 10px currentColor);
}

.meteor-core::before {
    content: '';
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, currentColor, transparent);
}

.meteor-core.rarity-5, .meteor-core.rarity-6, .meteor-core.rarity-7 { color: #ffb84c; animation: meteorSlide 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.meteor-core.rarity-4 { color: #a27bdd; animation: meteorSlide 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.meteor-core.rarity-3 { color: #4b69ff; animation: meteorSlide 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite; }

@keyframes meteorSlide {
    0% { transform: translate(0, 0) rotate(45deg); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translate(-1200px, 1200px) rotate(45deg); opacity: 0; }
}

.wish-skip-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 14px;
    z-index: 101;
    padding: 5px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    transition: all 0.2s;
}

.wish-skip-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.wish-loading-text {
    position: absolute;
    bottom: 50px;
    color: #fff;
    font-size: 18px;
    letter-spacing: 4px;
}

/* 结果屏幕 */
.genshin-result-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.genshin-result-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.genshin-single-reveal {
    animation: genshinReveal 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes genshinReveal {
    from { transform: scale(0.5) rotate(-5deg); opacity: 0; }
    to { transform: scale(1) rotate(0); opacity: 1; }
}

.reveal-card {
    width: 320px;
    padding: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
}

.reveal-card.rarity-5, .reveal-card.rarity-6, .reveal-card.rarity-7 {
    background: radial-gradient(circle at center, rgba(255, 184, 76, 0.15) 0%, rgba(255, 184, 76, 0.05) 100%);
    border-color: rgba(255, 184, 76, 0.3);
}

.reveal-card.rarity-4 {
    background: radial-gradient(circle at center, rgba(162, 123, 221, 0.15) 0%, rgba(162, 123, 221, 0.05) 100%);
    border-color: rgba(162, 123, 221, 0.3);
}

.reveal-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    z-index: -1;
}

.item-icon-huge {
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

.reveal-info {
    color: #fff;
}

.reveal-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.reveal-stars {
    color: #ffb84c;
    font-size: 20px;
    letter-spacing: 4px;
}

.genshin-multi-reveal {
    width: 100%;
    max-width: 1200px;
}

.multi-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.multi-item-card {
    width: 100px;
    height: 480px;
    background: #ede5d8;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
    animation: multiItemEntry 0.5s forwards;
    border: 2px solid transparent;
}

.multi-item-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
    position: relative;
}

.multi-item-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.03);
    z-index: 1;
}

.multi-item-card.rarity-5 .multi-item-bg,
.multi-item-card.rarity-6 .multi-item-bg,
.multi-item-card.rarity-7 .multi-item-bg {
    background: linear-gradient(to bottom, transparent 0%, rgba(255, 184, 76, 0.4) 100%);
}

.multi-item-card.rarity-4 .multi-item-bg {
    background: linear-gradient(to bottom, transparent 0%, rgba(162, 123, 221, 0.4) 100%);
}

.multi-item-card.rarity-3 .multi-item-bg {
    background: linear-gradient(to bottom, transparent 0%, rgba(75, 105, 255, 0.4) 100%);
}

.item-info-mini {
    position: absolute;
    bottom: 30px;
    width: 100%;
    text-align: center;
    z-index: 2;
    padding: 0 5px;
}

.item-name-mini {
    color: #333;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-stars-mini {
    color: #ffb84c;
    font-size: 10px;
    display: flex;
    justify-content: center;
}

.multi-item-card.rarity-5, .multi-item-card.rarity-6, .multi-item-card.rarity-7 {
    box-shadow: 0 0 20px rgba(255, 184, 76, 0.4);
    border-color: rgba(255, 184, 76, 0.6);
}

.multi-item-card.rarity-4 {
    box-shadow: 0 0 15px rgba(162, 123, 221, 0.3);
    border-color: rgba(162, 123, 221, 0.5);
}

.item-icon-wrap {
    width: 80px;
    height: 80px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 2;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.2));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.multi-item-card:hover .item-icon-wrap {
    transform: scale(1.15);
}

.multi-item-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 45%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 55%,
        transparent 100%
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
    z-index: 3;
    pointer-events: none;
}

@keyframes shine {
    0% { transform: translate(-100%, -100%) rotate(45deg); }
    100% { transform: translate(100%, 100%) rotate(45deg); }
}

@keyframes multiItemEntry {
    from { opacity: 0; transform: translateY(100px) scale(0.8); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.genshin-result-close {
    margin-top: 60px;
}

.btn-genshin-close {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    cursor: pointer;
    letter-spacing: 2px;
}

.btn-genshin-close:hover {
    color: #fff;
}

/* --- CDK System Styles --- */
.inventory-grid-mini {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    gap: 8px;
    padding: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.item-slot-mini {
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.item-slot-mini:hover {
    background: rgba(64, 158, 255, 0.1);
    border-color: #409eff;
}

.item-slot-mini.selected {
    background: rgba(64, 158, 255, 0.2);
    border-color: #409eff;
    box-shadow: 0 0 8px rgba(64, 158, 255, 0.4);
}

.item-icon-mini {
    width: 32px;
    height: 32px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    image-rendering: pixelated;
    position: relative;
}

.item-icon-mini .amount {
    position: absolute;
    bottom: -2px;
    right: -2px;
    font-size: 11px;
    color: white;
    text-shadow: 1px 1px 1px black;
    font-weight: bold;
}

.form-tip {
    font-size: 12px;
    color: #909399;
    line-height: 1.5;
    margin-top: 4px;
}

/* Mailbox Retro Theme */
.retro-theme-container {
    --retro-bg: #5a4d4d;
    --retro-dark-bg: #4a3f3f;
    --retro-active-bg: #3a3131;
    --retro-border: #373737;
    --retro-text: #ffffff;
    --retro-text-secondary: #b2a8a8;
    --retro-green: #55ff55;
    --retro-red: #ff5555;
    --retro-button-bg: #6e5f5f;
    --retro-button-hover: #827171;
    color: var(--retro-text);
    font-family: 'Minecraft', 'Microsoft YaHei', sans-serif;
}

/* Custom Background Overrides */
.mailbox-view.has-bg,
.cdk-view.has-bg {
    background-repeat: no-repeat !important;
}

.mailbox-view.has-bg .retro-pixel-border:not([style*="background-color"]),
.cdk-view.has-bg .el-card:not([style*="background-color"]) {
    background-color: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Fallback background color if not set via inline style */
.mailbox-view:not(.has-bg) .retro-pixel-border:not([style*="background-color"]) {
    background-color: var(--retro-bg) !important;
}

.mailbox-view.has-bg .retro-list-pane,
.mailbox-view.has-bg .retro-detail-pane,
.mailbox-view .retro-pixel-border[style*="background-color"] .retro-list-pane,
.mailbox-view .retro-pixel-border[style*="background-color"] .retro-detail-pane {
    background: rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.mailbox-view.has-bg .retro-content-box,
.mailbox-view.has-bg .retro-attach-area,
.mailbox-view .retro-pixel-border[style*="background-color"] .retro-content-box,
.mailbox-view .retro-pixel-border[style*="background-color"] .retro-attach-area {
    background: rgba(0, 0, 0, 0.15) !important;
}

.cdk-view .el-card {
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 12px !important;
    overflow: hidden;
}

.cdk-view.has-bg .el-card {
    backdrop-filter: blur(10px);
    border: none !important;
}

.cdk-view.has-bg .el-card__header {
    background: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.retro-pixel-border {
    background-color: var(--retro-bg);
    border: 4px solid var(--retro-border) !important;
    box-shadow: inset -4px -4px 0px 0px rgba(0,0,0,0.2), inset 4px 4px 0px 0px rgba(255,255,255,0.1) !important;
    padding: 15px;
    position: relative;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
}

.retro-pixel-border[style*="background-image"] {
    opacity: 0;
}

.retro-pixel-border.bg-loaded {
    opacity: 1;
}

/* Ensure dynamic background color works */
.mailbox-view .retro-pixel-border[style*="background-color"] {
    background-color: inherit; /* Allow background image to coexist with color */
}

.mailbox-view .retro-header-bar {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: #3c3434 !important;
    border: 2px solid var(--retro-border) !important;
    padding: 10px 15px !important;
    margin-bottom: 15px !important;
    box-shadow: inset -2px -2px 0px 0px rgba(0,0,0,0.3) !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 60px !important;
    flex-shrink: 0 !important;
}

.mailbox-view .retro-tab-group {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    align-items: center !important;
    flex: 1 !important;
}

.mailbox-view .retro-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #4a3f3f !important;
    border: 2px solid var(--retro-border) !important;
    color: #ffffff !important;
    padding: 8px 16px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    box-shadow: inset -2px -2px 0px 0px rgba(0,0,0,0.3), inset 2px 2px 0px 0px rgba(255,255,255,0.1) !important;
    text-align: center !important;
    user-select: none !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    transition: all 0.1s ease !important;
    height: 36px !important;
}

.mailbox-view .retro-btn:hover {
    background: #5a4f4f !important;
    transform: translateY(-1px) !important;
}

.mailbox-view .retro-btn:active {
    transform: translateY(1px) !important;
    box-shadow: inset 2px 2px 0px 0px rgba(0,0,0,0.3) !important;
}

.mailbox-view .retro-btn.active {
    background: #6a5f5f !important;
    border-color: #ffff55 !important;
    box-shadow: inset 2px 2px 0px 0px rgba(0,0,0,0.3) !important;
    color: #ffff55 !important;
}

.mailbox-view .retro-header-bar-right {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
}

.mailbox-view .retro-close-x {
    background: #ff4d4f !important;
    border: 2px solid #ffffff !important;
    color: white !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-weight: bold !important;
    box-shadow: inset -2px -2px 0px 0px rgba(0,0,0,0.3) !important;
    font-size: 16px !important;
}

.mailbox-view .retro-close-x:hover {
    background: #ff7875 !important;
}

.mailbox-view .qq-win-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffff55 !important;
}

.mailbox-view .retro-main-layout {
    display: flex !important;
    height: 650px !important;
    gap: 15px !important;
    transition: height 0.3s ease !important;
    background: rgba(0, 0, 0, 0.1) !important;
    padding: 10px !important;
    border: 2px solid var(--retro-border) !important;
}

.mailbox-view, .mailbox-view * {
    box-sizing: border-box !important;
}

.mailbox-view.is-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 2000 !important;
    background-color: var(--retro-bg) !important;
    overflow: hidden !important;
}

.mailbox-view.is-fullscreen .retro-pixel-border {
    height: 100vh !important;
    width: 100vw !important;
    max-width: 100vw !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 0 !important;
}

.mailbox-view.is-fullscreen .retro-header-bar {
    width: calc(100% - 30px) !important;
    margin: 15px 15px 10px 15px !important;
    flex-shrink: 0 !important;
}

.mailbox-view.is-fullscreen .retro-main-layout {
    flex: 1 !important;
    width: calc(100% - 30px) !important;
    margin: 0 15px 15px 15px !important;
    min-height: 0 !important;
    height: auto !important;
}

.mailbox-view .retro-empty-state {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: #2a2222 !important;
    border: 2px solid var(--retro-border) !important;
    margin: 15px !important;
    min-height: 450px !important;
    flex: 1 !important;
    box-shadow: inset 2px 2px 10px rgba(0,0,0,0.5) !important;
    color: var(--retro-text-secondary) !important;
    text-align: center !important;
    padding: 40px !important;
}

.mailbox-view.is-fullscreen .retro-empty-state {
    margin: 20px !important;
}

.mailbox-view .retro-list-pane {
    width: 320px !important;
    background: #3c3434 !important;
    border: 2px solid var(--retro-border) !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.2) !important;
}

.mailbox-view .retro-item-card {
    padding: 12px 15px !important;
    border-bottom: 2px solid var(--retro-border) !important;
    cursor: pointer !important;
    position: relative !important;
    background: transparent !important;
    transition: all 0.1s !important;
}

.mailbox-view .retro-item-card:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

.mailbox-view .retro-item-card.is-active {
    background: #4a3f3f !important;
    border-left: 6px solid #ffff55 !important;
    padding-left: 11px !important;
}

.mailbox-view .retro-item-title {
    font-size: 15px !important;
    margin-bottom: 4px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-weight: bold !important;
    color: #ffffff !important;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.5) !important;
}

.mailbox-view .retro-item-time {
    font-size: 11px !important;
    color: var(--retro-text-secondary) !important;
}

.mailbox-view .retro-status-tag {
    font-size: 11px !important;
    position: absolute !important;
    right: 12px !important;
    bottom: 12px !important;
    font-weight: bold !important;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.5) !important;
}

.mailbox-view .retro-detail-pane {
    flex: 1 !important;
    background: #3c3434 !important;
    border: 2px solid var(--retro-border) !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    position: relative !important;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.2) !important;
    min-width: 0 !important;
}

.mailbox-view .retro-detail-top {
    border-bottom: 2px solid var(--retro-border) !important;
    padding: 20px !important;
    background: rgba(0, 0, 0, 0.1) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    flex-shrink: 0 !important;
}

.mailbox-view .retro-detail-title {
    font-size: 22px !important;
    font-weight: bold !important;
    margin-bottom: 10px !important;
    color: #ffff55 !important;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.5) !important;
}

.mailbox-view .retro-detail-info {
    font-size: 13px !important;
    color: var(--retro-text-secondary) !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
}

.mailbox-view .retro-content-box {
    flex: 1;
    background: #2a2222 !important;
    border: 2px solid var(--retro-border) !important;
    padding: 20px !important;
    margin: 20px !important;
    font-size: 15px !important;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-y: auto;
    box-shadow: inset 4px 4px 0px rgba(0,0,0,0.3) !important;
    color: #e0e0e0 !important;
}

.mailbox-view .retro-attach-area {
    background: #342a2a !important;
    border-top: 2px solid var(--retro-border) !important;
    padding: 15px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
}

.mailbox-view .retro-attach-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

.mailbox-view .retro-attach-item {
    background: #4a3f3f !important;
    border: 2px solid var(--retro-border) !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px !important;
    min-width: 180px !important;
    box-shadow: inset -2px -2px 0px 0px rgba(0,0,0,0.3), inset 2px 2px 0px 0px rgba(255,255,255,0.05) !important;
}

.mailbox-view .retro-attach-item:hover {
    background: #5a4f4f !important;
}

.mailbox-view .retro-slot {
    width: 48px !important;
    height: 48px !important;
    background: #3c3434 !important;
    border: 2px solid var(--retro-border) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: inset 2px 2px 4px rgba(0,0,0,0.5) !important;
    flex-shrink: 0 !important;
}

.mailbox-view .retro-slot img {
    width: 32px !important;
    height: 32px !important;
    image-rendering: pixelated !important;
}

.mailbox-view .retro-actions {
    padding: 0 20px 20px 20px !important;
    flex-shrink: 0 !important;
}

.mailbox-view .retro-action-btn {
    background: #4a3f3f !important;
    border: 2px solid var(--retro-border) !important;
    color: #ffffff !important;
    padding: 12px !important;
    width: 100% !important;
    cursor: pointer !important;
    font-size: 16px !important;
    text-align: center !important;
    box-shadow: inset -3px -3px 0px 0px rgba(0,0,0,0.3), inset 3px 3px 0px 0px rgba(255,255,255,0.1) !important;
    font-weight: bold !important;
    transition: all 0.1s !important;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.5) !important;
}

.mailbox-view .retro-action-btn:hover:not(:disabled) {
    background: #5a4f4f !important;
    transform: translateY(-1px) !important;
}

.mailbox-view .retro-action-btn:active:not(:disabled) {
    transform: translateY(1px) !important;
    box-shadow: inset 3px 3px 0px 0px rgba(0,0,0,0.3) !important;
}

.mailbox-view .retro-action-btn:disabled {
    background: #443a3a !important;
    color: #7a6d6d !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

.mailbox-view .retro-scroll-area {
    overflow-y: auto !important;
}

.mailbox-view .retro-scroll-area::-webkit-scrollbar {
    width: 12px !important;
}

.mailbox-view .retro-scroll-area::-webkit-scrollbar-track {
    background: #3c3434 !important;
    border-left: 2px solid var(--retro-border) !important;
}

.mailbox-view .retro-scroll-area::-webkit-scrollbar-thumb {
    background: var(--retro-button-bg) !important;
    border: 2px solid var(--retro-border) !important;
    box-shadow: inset -2px -2px 0px 0px rgba(0,0,0,0.3) !important;
}

.retro-dialog .el-dialog__header {
    background: #3c3434 !important;
    border-bottom: 2px solid var(--retro-border) !important;
    margin-right: 0 !important;
    padding: 15px !important;
}
.retro-dialog .el-dialog__title {
    color: white !important;
    font-weight: bold !important;
}
.retro-dialog .el-dialog__body {
    background: #5a4d4d !important;
    color: white !important;
}
.retro-dialog .el-dialog__footer {
    background: #5a4d4d !important;
    border-top: 2px solid var(--retro-border) !important;
    padding: 15px !important;
}

/* 侧边栏触发器样式 */
.user-sidebar-trigger {
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.user-sidebar-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* 玩家信息抽屉样式 */
.user-info-drawer .el-drawer__body {
    padding: 0;
}

.user-sidebar-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 24px;
    box-sizing: border-box;
}

.user-profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.user-profile-header .user-name {
    font-size: 20px;
    font-weight: bold;
    margin-top: 12px;
    color: #303133;
}

.user-profile-header .user-uuid {
    font-size: 12px;
    color: #909399;
    margin-top: 4px;
    font-family: monospace;
}

.user-stats {
    flex: 1;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #ebeef5;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #606266;
    font-size: 14px;
}

.stat-value {
    font-weight: 600;
    font-size: 16px;
}

.stat-value.money {
    color: #67c23a;
}

.stat-value.points {
    color: #e6a23c;
}

.stat-value.guild {
    color: #409eff;
}

.user-sidebar-footer {
    margin-top: 20px;
}

.navbar-user.logged-in {
    padding-right: 0; /* 移除之前的右间距，因为头像已集成 */
}

/* 适配移动端 */
@media (max-width: 768px) {
    .navbar-user.logged-in {
        padding-right: 0; /* 移除之前的右间距 */
    }
    
    .user-sidebar-trigger .el-avatar {
        width: 32px !important;
        height: 32px !important;
        line-height: 32px !important;
    }

    .user-info-drawer {
        width: 100% !important;
    }
}