/* UI组件样式 */

/* 背包界面 */
#inventory-container {
    height: 100%;
    overflow-y: auto;
    padding: 1rem;
}

#inventory-container h3 {
    margin-bottom: 1rem;
    color: #4a8ac8;
    border-bottom: 2px solid #4a8ac8;
    padding-bottom: 0.5rem;
}

#ai-list, #item-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.ai-card, .item-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(74, 138, 200, 0.3);
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.ai-card:hover, .item-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #4a8ac8;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 138, 200, 0.3);
}

.ai-card.selected, .item-card.selected {
    background: rgba(74, 138, 200, 0.3);
    border-color: #4a8ac8;
    box-shadow: 0 0 20px rgba(74, 138, 200, 0.5);
}

.ai-name, .item-name {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #4a8ac8;
}

.ai-type, .item-type {
    font-size: 0.8rem;
    color: #8a8a8a;
    margin-bottom: 0.5rem;
}

.ai-stats, .item-stats {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.ai-level {
    background: linear-gradient(45deg, #4a8ac8, #8a4ac8);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-size: 0.8rem;
    display: inline-block;
}

/* 任务界面 */
#quest-container {
    height: 100%;
    overflow-y: auto;
    padding: 1rem;
}

.quest-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(74, 138, 200, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.quest-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #4a8ac8;
}

.quest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.quest-title {
    font-weight: bold;
    color: #4a8ac8;
}

.quest-type {
    background: linear-gradient(45deg, #4a8ac8, #8a4ac8);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-size: 0.8rem;
}

.quest-description {
    margin-bottom: 1rem;
    line-height: 1.4;
}

.quest-objectives {
    margin-bottom: 1rem;
}

.quest-objective {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.quest-objective.completed {
    color: #4ecdc4;
}

.quest-objective.completed::before {
    content: "✓";
    margin-right: 0.5rem;
    color: #4ecdc4;
}

.quest-objective::before {
    content: "○";
    margin-right: 0.5rem;
    color: #8a8a8a;
}

.quest-rewards {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.quest-reward {
    background: rgba(74, 138, 200, 0.2);
    border: 1px solid #4a8ac8;
    border-radius: 5px;
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
}

.quest-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

/* 商店界面 */
#shop-container {
    height: 100%;
    overflow-y: auto;
    padding: 1rem;
}

.shop-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(74, 138, 200, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.shop-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #4a8ac8;
}

.shop-item-info {
    flex: 1;
}

.shop-item-name {
    font-weight: bold;
    color: #4a8ac8;
    margin-bottom: 0.3rem;
}

.shop-item-description {
    font-size: 0.9rem;
    color: #cccccc;
    margin-bottom: 0.5rem;
}

.shop-item-price {
    font-size: 0.8rem;
    color: #ffd93d;
}

.shop-item-actions {
    display: flex;
    gap: 0.5rem;
}

.buy-btn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    border: none;
    border-radius: 5px;
    color: white;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.buy-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #4a8ac8;
    border-radius: 10px;
    padding: 1rem;
    max-width: 300px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-content h4 {
    color: #4a8ac8;
    margin-bottom: 0.5rem;
}

.notification-content p {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 工具提示 */
.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #4a8ac8;
    border-radius: 5px;
    padding: 0.5rem;
    font-size: 0.8rem;
    max-width: 200px;
    z-index: 1000;
    pointer-events: none;
    backdrop-filter: blur(10px);
}

/* 状态指示器 */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.status-indicator.online {
    background: #4ecdc4;
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
}

.status-indicator.offline {
    background: #ff6b6b;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.status-indicator.busy {
    background: #ffd93d;
    box-shadow: 0 0 10px rgba(255, 217, 61, 0.5);
}

/* 标签样式 */
.tag {
    display: inline-block;
    background: rgba(74, 138, 200, 0.2);
    border: 1px solid #4a8ac8;
    border-radius: 15px;
    padding: 0.2rem 0.6rem;
    font-size: 0.8rem;
    margin: 0.2rem;
}

.tag.rare {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    color: #ffd700;
}

.tag.legendary {
    background: rgba(255, 0, 255, 0.2);
    border-color: #ff00ff;
    color: #ff00ff;
}

.tag.virus {
    background: rgba(255, 0, 0, 0.2);
    border-color: #ff0000;
    color: #ff0000;
}

/* 列表样式 */
.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(74, 138, 200, 0.2);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.list-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #4a8ac8;
}

.list-item.selected {
    background: rgba(74, 138, 200, 0.3);
    border-color: #4a8ac8;
}

.list-item-info {
    flex: 1;
}

.list-item-title {
    font-weight: bold;
    color: #4a8ac8;
    margin-bottom: 0.2rem;
}

.list-item-subtitle {
    font-size: 0.8rem;
    color: #8a8a8a;
}

.list-item-actions {
    display: flex;
    gap: 0.5rem;
}

/* 搜索框 */
.search-box {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(74, 138, 200, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.search-box::placeholder {
    color: #8a8a8a;
}

.search-box:focus {
    outline: none;
    border-color: #4a8ac8;
    box-shadow: 0 0 10px rgba(74, 138, 200, 0.3);
}

/* 过滤器 */
.filter-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: rgba(74, 138, 200, 0.2);
    border: 1px solid #4a8ac8;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.filter-btn:hover {
    background: rgba(74, 138, 200, 0.4);
}

.filter-btn.active {
    background: linear-gradient(45deg, #4a8ac8, #8a4ac8);
    box-shadow: 0 2px 10px rgba(74, 138, 200, 0.3);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.page-btn {
    padding: 0.5rem 1rem;
    background: rgba(74, 138, 200, 0.2);
    border: 1px solid #4a8ac8;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: rgba(74, 138, 200, 0.4);
}

.page-btn.active {
    background: linear-gradient(45deg, #4a8ac8, #8a4ac8);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
} 