/* 全局简约大气配色 */
.tool-main {
    padding: 20px;
    max-width: 1300px;
    margin: 0 auto;
    box-sizing: border-box;
    background: #fff;
}

/* 顶部分类标签 */
.game-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.game-nav-item {
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    background: #f9fafb;
    transition: all 0.2s;
}

.game-nav-item.active {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

.game-nav-item:hover {
    border-color: #cbd5e1;
}

/* 主体布局 */
.game-wrap {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* 左侧筛选栏 */
.game-filter {
    width: 240px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    flex-shrink: 0;
}

.filter-title {
    font-size: 15px;
    color: #1e293b;
    margin-bottom: 15px;
    font-weight: 500;
}

.filter-item {
    margin-bottom: 14px;
}

.filter-item label {
    display: block;
    font-size: 13px;
    color: #475569;
    margin-bottom: 5px;
}

.filter-item select,
.filter-item input {
    width: 100%;
    height: 36px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0 8px;
    font-size: 13px;
    outline: none;
    background: #fff;
    color: #334155;
}

.filter-item select:focus,
.filter-item input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.08);
}

.btn-group {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.game-search {
    flex: 1;
    height: 36px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}

.game-search:hover {
    background: #2563eb;
}

.game-reset {
    flex: 1;
    height: 36px;
    background: #fff;
    border: 1px solid #d1d5db;
    color: #64748b;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}

.game-reset:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

/* 右侧内容区 */
.game-content {
    flex: 1;
    min-width: 300px;
}

.search-input-box {
    display: flex;
    margin-bottom: 20px;
}

.game-key-search {
    flex: 1;
    height: 42px;
    border: 1px solid #d1d5db;
    border-radius: 8px 0 0 8px;
    padding: 0 14px;
    font-size: 14px;
    outline: none;
    background: #fff;
    color: #334155;
}

.game-key-search:focus {
    border-color: #3b82f6;
    box-shadow: inset 0 0 0 2px rgba(59, 130, 246, 0.08);
}

.key-search-btn {
    width: 80px;
    height: 42px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}

.key-search-btn:hover {
    background: #2563eb;
}

/* 物品卡片 */
.stardew-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 16px;
}

.stardew-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: 0.2s;
}

.stardew-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.card-head {
    padding: 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-name {
    font-size: 15px;
    color: #1e293b;
    font-weight: 600;
}

.card-season {
    font-size: 12px;
    color: #3b82f6;
    background: #eff6ff;
    padding: 2px 7px;
    border-radius: 4px;
}

.card-body {
    padding: 14px;
}

.card-row {
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
    margin: 5px 0;
}

.card-row strong {
    color: #1e293b;
    font-weight: 500;
}

.card-tip {
    margin-top: 12px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}

.empty-game {
    text-align: center;
    padding: 60px;
    color: #94a3b8;
    font-size: 14px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .game-wrap {
        flex-direction: column;
    }

    .game-filter {
        width: 100%;
    }

    .stardew-list {
        grid-template-columns: 1fr;
    }
}