/* ========== Explore Other Galleries 主容器 ========== */
#gallery-list-section {
  margin: 2rem 0;
  padding: 1rem 0;
  border-top: 2px solid #ddd;
}

#gallery-list-section h2 {
  text-align: center;
  font-size: 1.6rem;
  color: #333;
  margin-bottom: 1rem;
}

/* ========== 单个 gallery 外框 ========== */
.gallery-block {
  background: #fdfdfd;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  margin: 1rem auto;
  padding: 0;
  width: 90%;
  max-width: 1200px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.gallery-block:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

/* ========== gallery header（点击展开的标题） ========== */
.gallery-header {
  background: linear-gradient(90deg, #e06c9a, #007aff);
  color: white;
  padding: 0.8rem 1.2rem;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 12px 12px 0 0;
  cursor: pointer;
  user-select: none;
  transition: background 0.3s;
}

.gallery-header:hover {
  background: linear-gradient(90deg, #ff0080, #005ecb);
}

/* ========== 展开内容区（内含 slideshow 和评论） ========== */
.gallery-content {
  display: none;
  padding: 1rem 1.2rem;
  background: #fafafa;
  border-radius: 0 0 12px 12px;
}

/* ========== slideshow container（针对他人 gallery） ========== */
.gallery-content .slideshow-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 1rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(0,0,0,0.1);
  background: #fff;
}

.gallery-content .mySlides img {
  width: 100%;
  border-radius: 10px 10px 0 0;
  display: block;
}

.gallery-content .image-info {
  text-align: center;
  background: #f3f4f6;
  padding: 0.5rem;
  font-weight: 600;
  color: #333;
}

/* 左右箭头样式（更轻） */
.gallery-content .prev,
.gallery-content .next {
  background: rgba(0,0,0,0.25);
  border-radius: 50%;
  padding: 8px;
  color: white;
  position: absolute;
  top: 45%;
  cursor: pointer;
  transition: background 0.3s;
  user-select: none;
}

.gallery-content .prev:hover,
.gallery-content .next:hover {
  background: rgba(0,0,0,0.5);
}

.gallery-content .prev { left: 10px; }
.gallery-content .next { right: 10px; }

/* ========== 评论区（整体包裹） ========== */
.gallery-comment-section {
  background: #fff;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  border: 1px solid #eee;
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

.gallery-comment-section .comment-list {
  margin-bottom: 0.5rem;
}

.gallery-comment-section .comment {
  border-bottom: 1px solid #f0f0f0;
  padding: 0.5rem 0;
}

.gallery-comment-section .comment:last-child {
  border-bottom: none;
}

.gallery-comment-section .comment_user {
  font-weight: 600;
  color: #222;
}

.gallery-comment-section .comment_date {
  float: right;
  color: #888;
  font-size: 0.8rem;
}

.gallery-comment-section .comment_text {
  margin-top: 0.25rem;
  color: #444;
  font-size: 0.9rem;
}

/* 评论分页按钮 */
.gallery-comment-section .comment-nav {
  text-align: center;
  margin-top: 0.5rem;
}

.gallery-comment-section .comment-nav .btn {
  background: #007aff;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.gallery-comment-section .comment-nav .btn:hover {
  background: #005ecb;
}

/* ========== 评论输入区 ========== */
.gallery-comment-form {
  display: flex;
  flex-direction: column;
  margin-top: 0.5rem;
}

.gallery-comment-form textarea {
  resize: vertical;
  min-height: 60px;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.gallery-comment-form button {
  align-self: flex-end;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s;
}

.gallery-comment-form button:hover {
  background: #b7205a;
}

/* ========== 小屏幕自适应 ========== */
@media (max-width: 600px) {
  .gallery-content .slideshow-container {
    max-width: 100%;
  }
  .gallery-header {
    font-size: 1rem;
  }
}
.gallery-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1em;
  margin-top: 1.5em;
}

.gallery-nav .btn {
  padding: 0.4em 1em;
  border: none;
  background-color: #eee;
  border-radius: 6px;
  cursor: pointer;
}

.gallery-nav .btn:hover {
  background-color: #ddd;
}

.gallery-page-info {
  font-weight: bold;
}
