/* ============================================
   说说页面增强样式 - Photo Microblog Layout
   ============================================ */

/* --- CSS Variables --- */
:root {
  --shuoshuo-accent: #759976;
  --shuoshuo-accent-light: #a3c4a5;
  --shuoshuo-rose: #e98b9e;
  --shuoshuo-card-bg: rgba(255, 255, 255, 0.92);
  --shuoshuo-text: #444;
  --shuoshuo-meta: #999;
  --shuoshuo-tag-border: #c8e0c9;
  --shuoshuo-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  --shuoshuo-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}

[data-theme='dark'] {
  --shuoshuo-card-bg: rgba(40, 44, 52, 0.95);
  --shuoshuo-text: #ccc;
  --shuoshuo-meta: #888;
  --shuoshuo-tag-border: #4a6b5f;
  --shuoshuo-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
  --shuoshuo-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* --- Container --- */
#article-container .shuoshuo-item {
  background: var(--shuoshuo-card-bg);
  border-radius: 16px;
  margin-bottom: 28px;
  padding: 30px 32px 24px;
  box-shadow: var(--shuoshuo-shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1.2);
  position: relative;
  overflow: hidden;
}

#article-container .shuoshuo-item:hover {
  box-shadow: var(--shuoshuo-shadow-hover);
  transform: translateY(-3px);
}

/* Decorative top bar */
#article-container .shuoshuo-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--shuoshuo-accent), var(--shuoshuo-rose), var(--shuoshuo-accent-light));
  border-radius: 16px 16px 0 0;
  opacity: 0;
  transition: opacity 0.35s;
}

#article-container .shuoshuo-item:hover::before {
  opacity: 1;
}

/* --- Header: Avatar + Info --- */
#article-container .shuoshuo-item-header {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

#article-container .shuoshuo-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--shuoshuo-tag-border);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#article-container .shuoshuo-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  margin: 0 !important;
}

#article-container .shuoshuo-item:hover .shuoshuo-avatar {
  transform: rotate(15deg) scale(1.08);
}

#article-container .shuoshuo-info {
  margin-left: 12px;
  line-height: 1.4;
}

#article-container .shuoshuo-author {
  font-weight: 650;
  color: var(--shuoshuo-accent);
  font-size: .95em;
}

#article-container .shuoshuo-date {
  color: var(--shuoshuo-meta);
  font-size: .78em;
  margin-top: 1px;
}

/* --- Content: Text & Photos --- */
#article-container .shuoshuo-content {
  padding: 16px 0 12px;
  line-height: 1.85;
  color: var(--shuoshuo-text);
  font-size: 1.02em;
  word-break: break-word;
}

#article-container .shuoshuo-content p {
  margin: 0 0 12px;
}

#article-container .shuoshuo-content p:last-child {
  margin-bottom: 0;
}

/* Photo styling */
#article-container .shuoshuo-content img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: 12px;
  margin: 14px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1.2);
  cursor: pointer;
}

#article-container .shuoshuo-content img:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transform: scale(1.015);
}

/* Multi-image grid effect */
#article-container .shuoshuo-content img + img {
  margin-top: 8px;
}

/* Emoji styling in content */
#article-container .shuoshuo-content {
  font-size: 1.05em;
}

/* --- Footer: Tags + Comment Button --- */
#article-container .shuoshuo-footer {
  display: flex;
  align-items: center;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

#article-container .shuoshuo-footer.flex-between {
  justify-content: space-between;
}

#article-container .shuoshuo-footer.flex-end {
  justify-content: flex-end;
}

#article-container .shuoshuo-tag {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
  padding: 3px 12px;
  border: 1px solid var(--shuoshuo-tag-border);
  border-radius: 16px;
  color: var(--shuoshuo-accent);
  font-size: .8em;
  font-weight: 500;
  cursor: default;
  transition: all 0.25s ease;
  background: rgba(117, 153, 118, 0.04);
}

#article-container .shuoshuo-tag:hover {
  background: var(--shuoshuo-accent);
  color: #fff;
  border-color: var(--shuoshuo-accent);
  transform: translateY(-1px);
}

/* --- Comment Button --- */
#article-container .shuoshuo-comment-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  color: var(--shuoshuo-meta);
  cursor: pointer;
  border-radius: 16px;
  font-size: .82em;
  transition: all 0.25s ease;
}

#article-container .shuoshuo-comment-btn:hover {
  color: var(--shuoshuo-accent);
  background: rgba(117, 153, 118, 0.08);
}

#article-container .shuoshuo-comment {
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: 4px;
}

#article-container .shuoshuo-comment.no-comment {
  display: none;
}

/* --- Pagination Navigation --- */
.shuoshuo-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  padding: 20px 0;
  gap: 10px;
}

.shuoshuo-navigation button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  background: var(--shuoshuo-card-bg);
  color: var(--shuoshuo-accent);
  font-size: .9em;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shuoshuo-shadow);
}

.shuoshuo-navigation button:hover:not(:disabled) {
  background: var(--shuoshuo-accent);
  color: #fff;
  border-color: var(--shuoshuo-accent);
  box-shadow: 0 4px 12px rgba(117, 153, 118, 0.3);
  transform: translateY(-2px);
}

.shuoshuo-navigation button:disabled {
  background: #f0f0f0;
  color: #ccc;
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.shuoshuo-navigation .shuoshuo-page-info {
  margin: 0 12px;
  color: var(--shuoshuo-meta);
  font-size: .88em;
  white-space: nowrap;
}

.shuoshuo-navigation .shuoshuo-page-input {
  margin-right: 8px;
  width: 50px;
  height: 42px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background: var(--shuoshuo-card-bg);
  color: var(--shuoshuo-text);
  text-align: center;
  font-size: .88em;
  transition: all 0.2s;
}

.shuoshuo-navigation .shuoshuo-page-input:focus {
  outline: none;
  border-color: var(--shuoshuo-accent);
  box-shadow: 0 0 0 3px rgba(117, 153, 118, 0.12);
}

/* --- Pagination Page Title --- */
#page.nc .page-title {
  display: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  #article-container .shuoshuo-item {
    padding: 22px 18px 18px;
    margin-bottom: 20px;
    border-radius: 12px;
  }

  #article-container .shuoshuo-content {
    font-size: .98em;
    line-height: 1.75;
  }

  #article-container .shuoshuo-content img {
    border-radius: 8px;
    margin: 10px 0;
  }

  #article-container .shuoshuo-avatar {
    width: 36px;
    height: 36px;
  }

  #article-container .shuoshuo-tag {
    font-size: .75em;
    padding: 2px 10px;
  }

  .shuoshuo-navigation button {
    width: 36px;
    height: 36px;
    font-size: .8em;
  }
}
