/* 文章服务样式文件 */

/* 相关作品容器样式 */
#related-works-container {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
}

.related-works-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--heo-text-color);
}

.related-works-description {
  color: var(--heo-secondtext);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* 相关作品卡片网格布局 - 每行一张卡片 */
#related-works-content {
  display: grid;
  grid-template-columns: 1fr; /* 每行一张卡片 */
  gap: 20px;
}

/* 在较宽屏幕上可以显示多列 */
@media (min-width: 768px) {
  #related-works-content {
    grid-template-columns: 1fr; /* 仍然保持每行一张卡片 */
  }
}

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

.related-works-loading .haofont {
  font-size: 32px;
  margin-bottom: 15px;
}

/* 空状态样式 */
.related-works-empty {
  text-align: center;
  padding: 40px 20px;
  color: #cccccc;
  font-size: 1rem;
  grid-column: 1 / -1;
}

/* 响应式设计 */
@media (max-width: 768px) {
  #related-works-container {
    display: flex;
    flex-direction: column;
  }
}

/* 从zrecords.css中复制相关样式以确保卡片显示正确 */

/* 收藏库卡片基础样式 */
.zrecords-ps-card {
  background: var(--heo-secondbg);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  border: var(--style-border-always);
  display: flex;
  flex-direction: column;
}

/* 卡片头部 - 渐变背景条 */
.zrecords-ps-card-header {
  background: linear-gradient(135deg, var(--heo-theme), var(--heo-theme-op-deep));
  color: #1a1a1a;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 0 0 auto;
}

/* 卡片标题 */
.zrecords-ps-card-title{
  flex: 0 1 auto;
  max-width: 85%;
}

/* 游戏名称 */
.zrecords-ps-card-name {
  font-size: 1rem;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  font-family: 'weilai heavy' !important;
}

/* 原始名称 */
.zrecords-ps-card-origin-name {
  font-size: 0.8rem;
  opacity: 0.9;
  overflow: hidden;
  white-space: nowrap;
}

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

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

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

.status-completed {
  background-color: #2b8a3e;
}

.status-paused {
  background-color: #748cab;
}

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

/* 卡片主体 */
.zrecords-ps-card-body {
  padding: 10px;
  color: #e0e0e0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 0 auto;
}

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

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

/* 封面占位符 */
.zrecords-ps-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;
  border: 2px solid var(--heo-theme);
}

/* 为封面图片添加圆角样式，解决图片覆盖圆角的问题 */
.zrecords-ps-cover-placeholder img {
  border-radius: 8px;
}

/* 总时长 */
.zrecords-ps-time {
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* 时间标签 */
.zrecords-ps-time-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--heo-theme);
}

/* 游玩时长 */
.zrecords-ps-play-time {
  font-size: 0.9rem;
  color: white;
  font-weight: 600;
  font-family: 'weilai bold' !important;
}

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

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

/* 双栏布局的容器 */
.zrecords-ps-info-row.double-column {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* 信息标签 */
.zrecords-ps-info-label {
  font-weight: 600;
  min-width: 80px;
  color: var(--heo-theme);
  font-size: 0.7rem;
}

/* 双栏布局中的信息标签 */
.zrecords-ps-info-row.double-column .zrecords-ps-info-label {
  grid-column: 1;
}

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

/* 双栏布局中的信息值 */
.zrecords-ps-info-row.double-column .zrecords-ps-info-value {
  grid-column: 2;
}

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

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

/* 类型样式 */
.zrecords-ps-type {
  background-color: #1a1a1a;
  color: var(--heo-theme);
  border: 1px solid var(--heo-theme);
}

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

/* 评分区域 */
.zrecords-ps-score-section {
  max-width: 250px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  gap: 10px;
}

/* 评分框 */
.zrecords-ps-score-box {
  text-align: center;
  padding: 8px;
  background-color: #ffd700;
  border-radius: 8px;
  color: #1a1a1a;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-width: 120px;
  justify-content: center;
}

/* 评分标题 */
.zrecords-ps-score-title {
  font-size: 0.9rem;
  font-weight: 600;
}

/* 个人评分 */
.zrecords-ps-score-value {
  font-size: 1.2rem;
  font-weight: bold;
  font-family: 'weilai heavy'!important;
}

/* 神作 - 金色 */
.score-masterpiece {
  background-color: #ffd700;
}

/* 佳作 - 绿色 */
.score-great {
  background-color: #4CAF50;
}

/* 良好 - 蓝色 */
.score-good {
  background-color: #64B5F6;
}

/* 一般 - 橙色 */
.score-average {
  background-color: #FFB74D;
}

/* 较差 - 红色 */
.score-poor {
  background-color: #FF8A80;
}

/* 默认主题色 */
.score-default,
.score-description-default {
  background-color: var(--heo-theme);
}

/* 个人评分描述 */
.zrecords-ps-score-description {
  font-size: 0.7rem;
  margin-top: 2px;
}

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

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

/* 底部区域 */
.zrecords-ps-bottom-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

/* 文本标题 */
.zrecords-ps-text-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--heo-theme);
}

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

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

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

.zrecords-ps-scrollable-area::-webkit-scrollbar-thumb {
  background: var(--heo-theme);
  border-radius: 10px;
}

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

.zrecords-ps-comment-text {
  flex: 0 0 auto;
  gap: 10px;
  display: flex;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
  .zrecords-ps-top-section {
    flex-direction: column;
  }
  
  .zrecords-ps-cover-section {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }
  
  .zrecords-ps-cover-placeholder {
    width: 100px;
    height: 133px;
  }
  
  .zrecords-ps-score-section {
    flex-direction: column;
    justify-content: space-between;
  }
  
  .zrecords-ps-score-box {
    width: 45%;
  }
  
  .zrecords-ps-chart-container {
    width: 45%;
    height: 120px;
  }
  
  /* 移动端双栏布局调整为单栏 */
  .zrecords-ps-info-row.double-column {
    grid-template-columns: 1fr;
  }
  
  .zrecords-ps-info-row.double-column .zrecords-ps-info-label,
  .zrecords-ps-info-row.double-column .zrecords-ps-info-value {
    grid-column: 1;
  }
  
  /* 在移动端隐藏评分和评价模块 */
  .zrecords-ps-score-section {
    display: none;
  }
  
  .zrecords-ps-bottom-section {
    display: none;
  }
}