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

/* 相关作品容器样式 */
#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;
  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-card-new-top {
  border-bottom: 1px solid #4a5568;
  margin-bottom: 10px;
}

/* 当新顶部区域为空时隐藏 */
.zrecords-ps-card-new-top:empty {
  display: none;
}

/* 奖项标签容器 */
.zrecords-ps-awards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 5px;
}

/* 奖项标签 */
.zrecords-ps-award-tag {
  display: inline-block;
  padding: 0px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  z-index: 1001;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

/* 奖项标签悬停效果 */
.zrecords-ps-award-tag:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* 奖项标签提示 */
.zrecords-ps-award-tag::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background-color: #1a1a1a;
  color: #e0e0e0;
  padding: 0px 5px;
  border-radius: 6px;
  font-size: 0.7rem;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid transparent; /* 默认边框透明 */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  pointer-events: none;
  overflow: visible;
  width: 100%;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

/* 金奖标签提示 */
.zrecords-ps-award-tag.award-gold::after {
  border-color: #FFD700; /* 与金奖背景色一致 */
}

/* 银奖标签提示 */
.zrecords-ps-award-tag.award-silver::after {
  border-color: #C0C0C0; /* 与银奖背景色一致 */
}

/* 默认奖项标签提示 */
.zrecords-ps-award-tag.award-default::after {
  border-color: var(--heo-theme); /* 与默认奖项背景色一致 */
}

/* 更多标签提示 */
.zrecords-ps-award-tag.award-more::after {
  display: none;
}

/* 暂无记录提示 */
.zrecords-ps-award-tag.zrecords-ps-no-awards::after {
  display: none;
}

/* 奖项标签提示显示 */
.zrecords-ps-award-tag:hover::after {
  opacity: 1;
  visibility: visible;
}

/* 金奖 */
.zrecords-ps-award-tag.award-gold {
  background-color: #FFD700;
  color: #1a1a1a;
  border-color: #FFD700;
}

/* 银奖 */
.zrecords-ps-award-tag.award-silver {
  background-color: #C0C0C0;
  color: #1a1a1a;
  border-color: #C0C0C0;
}

/* 默认奖项颜色 */
.zrecords-ps-award-tag.award-default {
  background-color: var(--heo-theme);
  border-color: var(--heo-theme);
  color: #1a1a1a;
}

/* 更多标签 */
.zrecords-ps-award-tag.award-more {
  background-color: var(--heo-theme);
  border-color: var(--heo-theme);
  color: #1a1a1a;
}

/* 暂无获奖记录文本 */
.zrecords-ps-award-tag.zrecords-ps-no-awards {
  background-color: none;
  border: none;
  color: #a0aec0;
  font-style: italic;
}

/* 奖项模态框遮罩 */
.zrecords-ps-awards-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 奖项模态框遮罩显示 */
.zrecords-ps-awards-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* 奖项模态框 */
.zrecords-ps-awards-modal {
  background: #2d2d2d;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

/* 奖项模态框显示动画 */
.zrecords-ps-awards-modal-overlay.active .zrecords-ps-awards-modal {
  transform: scale(1);
}

/* 模态框头部 */
.zrecords-ps-awards-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: linear-gradient(90deg, #1a1a1a, #2d2d2d);
  border-bottom: 1px solid #4a5568;
  position: relative;
  z-index: 1000;
}

.zrecords-ps-awards-modal-title {
  font-size: 0.9rem;
  font-weight: 600;
}

/* 关闭按钮 */
.zrecords-ps-awards-modal-close {
  background: none;
  border: none;
  color: #aaa;
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s;
  padding-bottom: 0.4rem;
}

/* 关闭按钮悬停效果 */
.zrecords-ps-awards-modal-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* 模态框内容 */
.zrecords-ps-awards-modal-content {
  padding: 20px;
}

/* 模态框中的奖项列表 */
.zrecords-ps-awards-modal-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* 模态框中的奖项项 */
.zrecords-ps-awards-modal-item {
  padding: 15px;
  border-radius: 8px;
  background-color: #1a1a1a;
  border: 1px solid #4a5568;
}

/* 模态框中的奖项标题 */
.zrecords-ps-awards-modal-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--heo-theme);
  word-break: break-word;
}

/* 模态框中的奖项信息 */
.zrecords-ps-awards-modal-item-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.zrecords-ps-awards-modal-item-info span {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

/* 模态框中的奖项描述 */
.zrecords-ps-awards-modal-item-description {
  font-size: 0.8rem;
  color: #a0aec0;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #4a5568;
  line-height: 1.4;
}

/* 顶部区域 */
.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;
  }
}