/* 物品栏和理财系统样式 */

/* 统计信息卡片 */
.inventory-stats,
.financial-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.stat-item,
.stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-label {
    font-size: 12px;
    color: #B7BDC6;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #FCD535;
}

.stat-value.highlight {
    color: #FF9800;
}

/* 分类标签 */
.category-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.tab-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #B7BDC6;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #FCD535;
    color: #0B0E11;
    border-color: #FCD535;
}

.tab-btn:hover {
    background: rgba(252, 213, 53, 0.1);
    border-color: rgba(252, 213, 53, 0.3);
}

/* 物品网格 */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

/* 物品卡片 */
.item-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    cursor: pointer;
}

.item-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(252, 213, 53, 0.5);
    transform: translateY(-2px);
}

.item-image {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-quantity {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(252, 213, 53, 0.9);
    color: #0B0E11;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.item-info {
    text-align: center;
    width: 100%;
}

.item-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #EAECEF;
}

.item-type {
    font-size: 11px;
    color: #B7BDC6;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 8px;
    display: inline-block;
}

.item-use-btn {
    width: 100%;
    padding: 8px;
    background: linear-gradient(90deg, #FCD535 0%, #FFB800 100%);
    border: none;
    border-radius: 8px;
    color: #0B0E11;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.item-use-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(252, 213, 53, 0.4);
}

/* 理财列表 */
.financial-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 400px;
    overflow-y: auto;
}

/* 理财卡片 */
.holding-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s;
}

.holding-card.has-rewards {
    border-color: rgba(255, 152, 0, 0.5);
    background: rgba(255, 152, 0, 0.05);
}

.holding-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.holding-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.3);
}

.holding-title {
    flex: 1;
}

.holding-name {
    font-size: 16px;
    font-weight: 600;
    color: #EAECEF;
    margin-bottom: 4px;
}

.holding-return {
    font-size: 13px;
    color: #4CAF50;
}

/* 进度条 */
.holding-progress {
    margin-bottom: 12px;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FCD535 0%, #FFB800 100%);
    transition: width 0.3s;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #B7BDC6;
}

/* 奖励信息 */
.holding-rewards {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 152, 0, 0.1);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.rewards-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rewards-label {
    font-size: 12px;
    color: #B7BDC6;
}

.rewards-amount {
    font-size: 18px;
    font-weight: 600;
    color: #FF9800;
}

.claim-btn {
    padding: 8px 20px;
    background: linear-gradient(90deg, #FF9800 0%, #F57C00 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.claim-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

/* 一键领取按钮 */
.claim-all-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #FF9800 0%, #F57C00 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.3s;
}

.claim-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

/* 下次领取提示 */
.holding-next-claim {
    text-align: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 13px;
    color: #B7BDC6;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #B7BDC6;
    font-size: 14px;
}

/* 响应式 */
@media (max-width: 768px) {
    .inventory-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }
    
    .item-image {
        width: 100px;
        height: 100px;
    }
    
    .stat-value {
        font-size: 20px;
    }
}
