/* 收藏库页面样式 */

/* 卡片容器 */
.zrecords-container {
    margin-top: 20px;
}

/* 控制区域 */
.zrecords-controls {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

/* 筛选控制区域 */
.zrecords-filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* 搜索输入框 */
.zrecords-search-input {
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid #4a5568;
    background-color: #2d2d2d;
    color: #e0e0e0;
    font-size: 0.9rem;
    min-width: 150px;
}

.zrecords-search-input:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.zrecords-search-input::placeholder {
    color: #a0aec0;
}

/* 自定义标签筛选器 */
.zrecords-custom-filter {
    position: relative;
}

.zrecords-tag-selector {
    position: relative;
    min-width: 150px;
}

.zrecords-tag-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #2d2d2d;
    border: 1px solid #4a5568;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    margin-top: 5px;
}

.zrecords-tag-option {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #4a5568;
    color: #e0e0e0;
    font-size: 0.9rem;
}

.zrecords-tag-option:hover {
    background-color: #3a3a3a;
}

.zrecords-tag-option:last-child {
    border-bottom: none;
}

.zrecords-selected-tag {
    display: flex;
    align-items: center;
    background-color: #2d2d2d;
    border: 1px solid #FFD700;
    border-radius: 20px;
    padding: 6px 12px;
    color: #e0e0e0;
    font-size: 0.9rem;
}

.zrecords-clear-tag {
    margin-left: 8px;
    cursor: pointer;
    font-weight: bold;
    color: #e0e0e0;
}

.zrecords-clear-tag:hover {
    color: #FFD700;
}

/* 筛选下拉框 */
.zrecords-filter-select {
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid #4a5568;
    background-color: #2d2d2d;
    color: #e0e0e0;
    font-size: 0.9rem;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e0e0e0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 11px;
    padding-right: 35px;
    min-width: 120px;
}

.zrecords-filter-select:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

/* 重置按钮样式 - 继承纪念日页面样式 */
#resetFilters {
    background: #FFD700;
    color: #1a1a1a;
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    flex: 0 0 auto;
    font-size: 0.9rem;
}

#resetFilters:hover {
    background: #FFA500;
    transform: scale(1.05);
}

/* 刷新按钮样式 - 继承纪念日页面样式 */
#refreshDataBtn {
    background: #FFD700;
    color: #1a1a1a;
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    flex: 0 0 auto;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

#refreshDataBtn:hover {
    background: #FFA500;
    transform: scale(1.05);
}

/* 加载指示器 */
.importantdays-loading-indicator {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #1a1a1a;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 加载状态 */
.zrecords-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    grid-column: 1 / -1;
    color: #cccccc;
    font-size: 1rem;
}

.zrecords-loading .importantdays-loading-indicator {
    width: 32px;
    height: 32px;
    border-width: 4px;
    margin-bottom: 15px;
}

/* 卡片网格布局 - 响应式 */
.zrecords-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

/* 在较宽屏幕上显示两列 */
@media (min-width: 768px) {
    .zrecords-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 收藏库卡片基础样式 */
.zrecords-card {
    background: #2d2d2d;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #FFD700;
}

/* 卡片悬停效果 */
.zrecords-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* 卡片头部 - 渐变背景条 */
.zrecords-card-header {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a1a;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 游戏名称 */
.zrecords-card-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 5px;
}

/* 原始名称 */
.zrecords-card-origin-name {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* 游玩状态标识 */
.zrecords-play-status {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 不同状态的颜色 */
.status-wishlist {
    background-color: #4c6ef5;
}

.status-playing {
    background-color: #f59f00;
}

.status-completed {
    background-color: #37b24d;
}

.status-paused {
    background-color: #a0aec0;
}

.status-dropped {
    background-color: #e03131;
}

/* 卡片主体 */
.zrecords-card-body {
    padding: 20px;
    color: #e0e0e0;
}

/* 顶部区域 */
.zrecords-top-section {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

/* 封面区域 */
.zrecords-cover-section {
    flex: 0 0 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* 封面占位符 */
.zrecords-cover-placeholder {
    width: 100%;
    height: 160px;
    background-color: #1a1a1a;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cccccc;
    font-size: 0.8rem;
    text-align: center;
    padding: 10px;
    border: 2px solid #FFD700;
}

/* 游玩时长 */
.zrecords-play-time {
    font-size: 0.9rem;
    color: #FFD700;
    font-weight: 600;
}

/* 信息区域 */
.zrecords-info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 信息行 */
.zrecords-info-row {
    display: flex;
    align-items: flex-start;
}

/* 信息标签 */
.zrecords-info-label {
    font-weight: 600;
    min-width: 80px;
    color: #FFD700;
    font-size: 0.9rem;
}

/* 信息值 */
.zrecords-info-value {
    flex: 1;
    font-size: 0.9rem;
    color: #e0e0e0;
}

/* 标签容器 */
.zrecords-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
}

/* 标签样式 */
.zrecords-tag, .zrecords-type {
    background-color: #1a1a1a;
    color: #FFD700;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: help;
    position: relative;
    border: 1px solid #FFD700;
}

/* 类型样式 */
.zrecords-type {
    background-color: #1a1a1a;
    color: #4c6ef5;
    border: 1px solid #4c6ef5;
}

/* 标签悬停提示 */
.zrecords-tag:hover::after, .zrecords-type:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1a1a1a;
    color: #e0e0e0;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: normal;
    width: 250px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid #FFD700;
}

/* 标签输入容器 */
.zrecords-tag-input-container {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    padding: 5px;
    border-radius: 20px;
    border: 1px solid #4a5568;
    background-color: #2d2d2d;
    min-height: 40px;
    cursor: text;
}

.zrecords-tag-input-container:focus-within {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

/* 已选标签容器 */
.zrecords-selected-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

/* 已选标签样式 */
.zrecords-selected-tag-chip {
    display: flex;
    align-items: center;
    background-color: #4a5568;
    border-radius: 15px;
    padding: 3px 8px;
    color: #e0e0e0;
    font-size: 0.8rem;
}

.zrecords-selected-tag-chip .zrecords-clear-tag {
    margin-left: 5px;
    cursor: pointer;
    font-weight: bold;
    color: #e0e0e0;
}

.zrecords-selected-tag-chip .zrecords-clear-tag:hover {
    color: #FFD700;
}

/* 标签筛选输入框 */
.zrecords-tag-input-container .zrecords-search-input {
    flex: 1;
    min-width: 80px;
    border: none;
    background: transparent;
    padding: 5px 0;
    margin: 0;
}

.zrecords-tag-input-container .zrecords-search-input:focus {
    outline: none;
    box-shadow: none;
}

/* 自定义标签筛选器 */
.zrecords-custom-filter {
    position: relative;
    min-width: 200px;
}

.zrecords-tag-selector {
    position: relative;
}

.zrecords-tag-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #2d2d2d;
    border: 1px solid #4a5568;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    margin-top: 5px;
}

.zrecords-tag-option {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #4a5568;
    color: #e0e0e0;
    font-size: 0.9rem;
}

.zrecords-tag-option:hover {
    background-color: #3a3a3a;
}

.zrecords-tag-option:last-child {
    border-bottom: none;
}

/* 评分区域 */
.zrecords-score-section {
    flex: 0 0 180px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 评分框 */
.zrecords-score-box {
    text-align: center;
    padding: 8px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 8px;
    color: #1a1a1a;
    width: 100%;
}

/* 评分标题 */
.zrecords-score-title {
    font-size: 0.85rem;
    margin-bottom: 3px;
    font-weight: 600;
}

/* 评分值 */
.zrecords-score-value {
    font-size: 1.5rem;
    font-weight: 700;
}

/* 图表容器 */
.zrecords-chart-container {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #1a1a1a;
    border-radius: 8px;
}

/* 图表占位符 */
.zrecords-chart-placeholder {
    color: #cccccc;
    font-size: 0.9rem;
}

/* 底部区域 */
.zrecords-bottom-section {
    display: flex;
    gap: 20px;
}

/* 文本框 */
.zrecords-text-box {
    flex: 1;
    border-radius: 8px;
    padding: 15px;
    border: 2px solid #1a1a1a;
    background-color: #1a1a1a;
    display: flex;
    flex-direction: column;
}

/* 文本标题 */
.zrecords-text-title {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #FFD700;
}

/* 滚动区域 */
.zrecords-scrollable-area {
    max-height: 120px;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.5;
    padding-right: 5px;
    color: #e0e0e0;
}

/* 滚动条样式 */
.zrecords-scrollable-area::-webkit-scrollbar {
    width: 5px;
}

.zrecords-scrollable-area::-webkit-scrollbar-track {
    background: #2d2d2d;
    border-radius: 10px;
}

.zrecords-scrollable-area::-webkit-scrollbar-thumb {
    background: #FFD700;
    border-radius: 10px;
}

/* 无简介或评价时的提示 */
.zrecords-no-intro, .zrecords-no-comment {
    color: #a0aec0;
    font-style: italic;
    text-align: center;
    padding: 20px 0;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .zrecords-top-section {
        flex-direction: column;
    }
    
    .zrecords-cover-section {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }
    
    .zrecords-cover-placeholder {
        width: 100px;
        height: 133px;
    }
    
    .zrecords-score-section {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .zrecords-score-box {
        width: 45%;
    }
    
    .zrecords-chart-container {
        width: 45%;
        height: 120px;
    }
    
    .zrecords-bottom-section {
        flex-direction: column;
    }
    
    .zrecords-filter-controls {
        width: 100%;
    }
    
    .zrecords-search-input,
    .zrecords-filter-select,
    .zrecords-tag-selector {
        min-width: 100%;
    }
}