/* 说说容器 */
.shuoshuo-container {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.shuoshuo-header {
  margin-bottom: 24px;
}

/* 月份区块 - 垂直排列 */
.shuoshuo-month-section {
  margin-bottom: 32px;
  width: 100%;
}

/* 卡片网格布局 */
.shuoshuo-waterfall {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

/* 卡片固定大小 */
.shuoshuo-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shuoshuo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* 随机背景色 - 符合博客风格 */
.shuoshuo-card.bg-1 { background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%); }
.shuoshuo-card.bg-2 { background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%); }
.shuoshuo-card.bg-3 { background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%); }
.shuoshuo-card.bg-4 { background: linear-gradient(135deg, #fccb90 0%, #d57eeb 100%); }
.shuoshuo-card.bg-5 { background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%); }
.shuoshuo-card.bg-6 { background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); }
.shuoshuo-card.bg-7 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.shuoshuo-card.bg-8 { background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%); }

/* 玻璃遮罩 - 有图片时不覆盖图片区域 */
.shuoshuo-card .glass-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
  z-index: 1;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 图片区域 - 保持在遮罩上方 */
.shuoshuo-card.has-image .shuoshuo-card-image {
  position: relative;
  z-index: 2;
  width: 100%;
  overflow: hidden;
  margin-top: 12px;
}

.shuoshuo-card-image img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 300px;
  object-fit: contain;
  margin-bottom: 0;
}

/* 卡片内容区域 */
.shuoshuo-card-content {
  position: relative;
  z-index: 1;
  padding: 12px;
  padding-bottom: 12px;
}

/* 文字遮罩背景 - 确保文字清晰可见 */
.shuoshuo-card-content .content-bg {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 12px;
  width: 100%;
  box-sizing: border-box;
}

/* 文字内容样式 */
.shuoshuo-card-content p {
  color: #333;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}



.shuoshuo-card-content .ep-icon {
  width: 1.2em;
  height: 1.2em;
  vertical-align: -0.2em;
  margin-right: 4px;
}

/* 标签容器 */
.shuoshuo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* 加粗文字 */
.shuoshuo-card-content strong {
  color: #1a1a1a;
  font-weight: 700;
}

/* 日期样式 - 独立显示在卡片上方 */
.shuoshuo-card-item {
  margin-bottom: 16px;
  width: 100%;
}

.shuoshuo-card-date {
  color: var(--text-color, #666);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  padding-left: 8px;
  border-left: 3px solid var(--theme-color, #49b1f5);
}

/* 年份区块 - 包含年份标题和所有月份 */
.shuoshuo-year-section {
  margin-bottom: 32px;
  width: 100%;
}

.shuoshuo-year-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-highlight-color, #1d1d1d);
  margin: 0 0 16px;
  padding: 8px 16px;
  background: var(--card-bg, #fff);
  border-radius: 8px;
}

/* 月份区块 */
.shuoshuo-month-section {
  margin-bottom: 24px;
  margin-left: 16px;
  padding-left: 16px;
  border-left: 2px solid var(--border-color, #e5e7eb);
}

.shuoshuo-month-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color, #666);
  margin: 0 0 12px;
}

/* 暗色模式适配 */
[data-theme="dark"] .shuoshuo-card-content p {
  color: #e0e0e0;
}

[data-theme="dark"] .shuoshuo-card-content strong {
  color: #fff;
}

[data-theme="dark"] .shuoshuo-card-content .content-bg {
  background: rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .shuoshuo-card-date {
  color: #aaa;
}

[data-theme="dark"] .shuoshuo-year-title {
  color: var(--text-highlight-color, #e0e0e0);
  background: var(--card-bg, #1d1d1d);
}

[data-theme="dark"] .shuoshuo-month-title {
  color: var(--text-color, #aaa);
}

/* 响应式 */
@media (max-width: 768px) {
  .shuoshuo-card {
    min-height: 100px;
  }
}