.comment-section {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}

.comment-section-title {
  font-size: 28px;
  margin-bottom: 20px;
  color: #333;
  border-bottom: 3px solid #1d72b3;
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.comment-count-badge {
  background: #1d72b3;
  color: white;
  font-size: 14px;
  padding: 2px 12px;
  border-radius: 12px;
  font-weight: normal;
}

.comment-summary {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
  padding: 15px 20px;
  background: #f8f9fa;
  border-radius: 10px;
}

.comment-avg-rating {
  font-size: 36px;
  font-weight: bold;
  color: #1d72b3;
}

.comment-avg-stars {
  color: #ffc107;
  font-size: 24px;
  letter-spacing: 2px;
}

.comment-avg-stars .comment-item-rating {
  font-size: 24px;
}

.comment-total-count {
  color: #999;
  font-size: 14px;
}

.comment-form-area {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 30px;
}

.comment-form-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.comment-textarea {
  width: 100%;
  min-height: 100px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  font-family: inherit;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.comment-textarea:focus {
  outline: none;
  border-color: #1d72b3;
  box-shadow: 0 0 0 3px rgba(29, 114, 179, 0.1);
}

.comment-textarea::placeholder {
  color: #aaa;
}

.comment-form-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.comment-rating-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-rating-area span {
  font-size: 14px;
  color: #666;
}

.comment-stars {
  display: flex;
  gap: 4px;
}

.comment-star {
  font-size: 24px;
  cursor: pointer;
  color: #ddd;
  transition: color 0.2s, transform 0.2s;
  user-select: none;
}

.comment-star:hover,
.comment-star.active {
  color: #ffc107;
  transform: scale(1.1);
}

.comment-char-count {
  font-size: 12px;
  color: #999;
}

.comment-submit-btn {
  padding: 10px 30px;
  background: #1d72b3;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.comment-submit-btn:hover {
  background: #155a8a;
  transform: translateY(-1px);
}

.comment-submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.comment-login-tip {
  text-align: center;
  padding: 20px;
  color: #999;
  font-size: 14px;
}

.comment-login-tip a {
  color: #1d72b3;
  text-decoration: none;
  font-weight: 600;
}

.comment-login-tip a:hover {
  text-decoration: underline;
}

.comment-list-area {
  margin-top: 10px;
}

.comment-item {
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.comment-item-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #e0e0e0;
}

.comment-item-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d72b3, #4a9edd);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  flex-shrink: 0;
}

.comment-item-info {
  flex: 1;
}

.comment-item-name {
  font-weight: 600;
  color: #333;
  font-size: 15px;
}

.comment-item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #999;
}

.comment-item-rating {
  color: #ffc107;
  font-size: 13px;
}

.comment-item-content {
  color: #555;
  line-height: 1.8;
  font-size: 14px;
  margin-left: 52px;
}

.comment-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 0;
  flex-wrap: wrap;
}

.comment-page-btn {
  padding: 8px 18px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  transition: all 0.2s;
}

.comment-page-btn:hover:not(:disabled) {
  background: #1d72b3;
  color: white;
  border-color: #1d72b3;
}

.comment-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.comment-page-info {
  font-size: 14px;
  color: #666;
}

.comment-empty {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}

.comment-empty-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.comment-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  z-index: 10000;
  animation: commentToastIn 0.3s ease;
}

.comment-toast-success { background: #28a745; }
.comment-toast-error { background: #dc3545; }
.comment-toast-info { background: #1d72b3; }

@keyframes commentToastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (max-width: 768px) {
  .comment-section { padding: 20px; }
  .comment-form-area { padding: 15px; }
  .comment-form-bottom { flex-direction: column; gap: 12px; align-items: stretch; }
  .comment-submit-btn { width: 100%; text-align: center; }
  .comment-item-content { margin-left: 0; margin-top: 8px; }
  .comment-summary { flex-direction: column; text-align: center; }
}
