/* 照片点赞/评论交互 */
.photo-interaction {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
  z-index: 5;
}

.photo-interaction button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 13px;
  line-height: 1;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.photo-interaction button:hover {
  background: rgba(0, 0, 0, 0.75);
}

.photo-interaction button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* 评论弹窗 */
.comment-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 20px;
}

.comment-modal.active {
  display: flex;
}

.comment-modal-content {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 80vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.comment-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 24px;
  line-height: 1;
  border: none;
  background: none;
  cursor: pointer;
  color: #666;
}

.comment-modal-content h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.comment-list {
  max-height: 40vh;
  overflow-y: auto;
  margin-bottom: 14px;
}

.comment-item {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.comment-name {
  font-weight: 600;
  color: #333;
}

.comment-content {
  color: #444;
  word-break: break-word;
}

.comment-time {
  font-size: 12px;
  color: #999;
}

.comment-empty {
  color: #999;
  text-align: center;
  padding: 12px 0;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
}

.comment-form textarea {
  min-height: 80px;
  resize: vertical;
}

.captcha-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.captcha-question {
  font-weight: 600;
  white-space: nowrap;
}

.captcha-row input {
  width: 90px;
}

.comment-form button[type=submit] {
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: #1a73e8;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}

.comment-form button[type=submit]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
