/* 游戏信息弹窗样式 */

/* 游戏信息按钮 */
.game-info-btn {
    background: transparent;
    border:1px solid var(--border-color);
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.game-info-btn:hover {
    background: var(--bg-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126,234, 0.2);
}

.game-info-btn:active {
    transform: translateY(0);
}

/* 背包内容 */
.inventory-content,
.character-content,
.attributes-content {
    max-height: 60vh;
    overflow-y: auto;
}

/* 加载和错误状态 */
.loading-state,
.error-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.error-state {
    color: var(--error);
}

/* 货币区域 */
.currency-section {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.currency-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 600;
}

.currency-item.gold .currency-icon {
    color: #ffd700;
}

.currency-item.silver .currency-icon {
    color: #c0c0c0;
}

.currency-item.copper .currency-icon {
    color: #b87333;
}

.currency-value {
    font-size: 1.2rem;
}

/* 装备区域 */
.equipment-section {
    margin-bottom: 1.5rem;
}

.equipment-section h3,
.tasks-section h3,
.skills-section h3,
.inventory-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.equipment-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.2s;
}

.equipment-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.equipment-item.empty {
    border-left: 3px dashed var(--border-color);
    color: var(--text-secondary);
}

.equipment-type {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.equipment-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.equipment-quality {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.equipment-quality.common,
.item-quality.common {
    background: #95a5a6;
    color: white;
}

.equipment-quality.uncommon,
.item-quality.uncommon {
    background: #2ecc71;
    color: white;
}

.equipment-quality.rare,
.item-quality.rare {
    background: #3498db;
    color: white;
}

.equipment-quality.epic,
.item-quality.epic {
    background: #9b59b6;
    color: white;
}

.equipment-quality.legendary,
.item-quality.legendary {
    background: #f39c12;
    color: white;
}

/* 背包物品 */
.inventory-section {
    margin-bottom: 1.5rem;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
}

.inventory-item-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 0;
    border-left: 3px solid var(--primary-color);
    transition: all 0.2s;
}

.inventory-item-card:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.item-icon {
    font-size: 2rem;
    margin-right: 1rem;
}

.item-info {
    flex: 1;
}

.item-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.item-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.item-quantity {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* 人物/任务基本信息 */
.character-basic-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    color: white;
}

.character-avatar {
    font-size: 4rem;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.character-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.character-level {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.experience-bar {
    width: 200px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.experience-fill {
    height: 100%;
    background: #ffd700;
    transition: width 0.3s ease;
}

.experience-text {
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* 任务列表 */
.tasks-section {
    margin-bottom: 1.5rem;
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.task-card {
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid;
    transition: all 0.2s;
}

.task-card.active {
    background: #e3f2fd;
    border-left-color: var(--primary-color);
}

.task-card.completed {
    background: #e8f5e9;
    border-left-color: #4caf50;
    opacity: 0.7;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.task-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.task-type {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.task-type.main {
    background: #f39c12;
    color: white;
}

.task-type.side {
    background: #3498db;
    color: white;
}

.task-type.daily {
    background: #2ecc71;
    color: white;
}

.task-type.hidden {
    background: #9b59b6;
    color: white;
}

.task-status {
    color: #4caf50;
    font-weight: 600;
}

.task-description {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.task-reward {
    color: #f39c12;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.task-completed-at {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.task-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* 属性区域 */
.attributes-section {
    margin-bottom: 1.5rem;
}

.attributes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.attribute-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    transition: all 0.2s;
}

.attribute-card:hover {
    background: #e9ecef;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.attr-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.attr-name {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.attr-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* 状态条区域 */
.stats-section {
    margin-bottom: 1.5rem;
}

.stat-bars {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-label {
    width: 60px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-bar-container {
    flex: 1;
    height: 24px;
    background: #e9ecef;
    border-radius: 12px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 12px;
}

.stat-bar-fill.health-bar {
    background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%);
}

.stat-bar-fill.mana-bar {
    background: linear-gradient(90deg, #3498db 0%, #2980b9 100%);
}

.stat-bar-fill.energy-bar {
    background: linear-gradient(90deg, #2ecc71 0%, #27ae60 100%);
}

.stat-value {
    width: 80px;
    text-align: right;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* 技能区域 */
.skills-section {
    margin-bottom: 1.5rem;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-card {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.2s;
}

.skill-card:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.skill-level {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

.skill-type {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.skill-type.active {
    background: #e74c3c;
    color: white;
}

.skill-type.passive {
    background: #3498db;
    color: white;
}

.skill-description {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.skill-effects {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.skill-effect {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.skill-cost {
    color: #3498db;
    font-weight: 600;
    font-size: 0.9rem;
}

/* 空状态 */
.empty-state {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
}

/* 文件不存在提示弹窗 */
.file-not-found-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.file-not-found-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}

.file-not-found-content .icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.file-not-found-content h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.file-not-found-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.file-not-found-content .close-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.file-not-found-content .close-btn:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

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

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .attributes-grid,
    .equipment-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.5rem;
    }

    .inventory-grid {
        grid-template-columns: 1fr;
    }

    .currency-section {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .character-avatar {
        width: 80px;
        height: 80px;
        font-size: 3rem;
    }

    .inventory-item-card,
    .equipment-item,
    .skill-card,
    .task-card {
        padding: 0.75rem;
    }

    .item-icon {
        font-size: 1.5rem;
    }

    .character-name {
        font-size: 1.5rem;
    }
}
