/**
 * QQ 快捷评论样式
 * QQ Comment Modal Styles
 */

/* ==================== 用户信息栏 ==================== */
.user-info-bar {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  animation: slideInDown 0.3s ease;
  margin-bottom: 12px;
}

body.dark-mode .user-info-bar {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-info-content {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.user-info-content svg {
  flex-shrink: 0;
  color: var(--primary-color);
}

.user-nickname {
  font-weight: 600;
  color: var(--text-color);
}

.user-email {
  color: #999;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comment-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #fff;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.comment-logout-btn:hover {
  background: #f86538;
  color: white;
  border-color: #f86538;
  transform: translateY(-1px);
}

body.dark-mode .comment-logout-btn {
  background: rgba(255, 255, 255, 0.05);
  color: #aaa;
  border-color: rgba(255, 255, 255, 0.1);
}

.comment-logout-btn svg {
  flex-shrink: 0;
}

/* ==================== QQ输入弹窗 ==================== */
.qq-input-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.qq-input-modal.show {
  opacity: 1;
  visibility: visible;
}

.qq-input-modal.show .qq-input-modal-content {
  transform: scale(1);
}

.qq-input-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.qq-input-modal-content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

body.dark-mode .qq-input-modal-content {
  background: #1a1d29;
}

.qq-input-header {
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.dark-mode .qq-input-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.qq-input-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.qq-input-header h3 svg {
  color: #12b7f5;
  flex-shrink: 0;
}

.qq-input-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qq-input-close:hover {
  color: #f86538;
  transform: rotate(90deg);
}

.qq-input-body {
  padding: 20px;
}

.qq-input-tip {
  color: #666;
  font-size: 14px;
  margin: 0 0 15px 0;
  text-align: center;
}

body.dark-mode .qq-input-tip {
  color: #aaa;
}

.qq-number-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  text-align: center;
  letter-spacing: 1px;
}

.qq-number-input:focus {
  outline: none;
  border-color: #12b7f5;
  box-shadow: 0 0 0 3px rgba(18, 183, 245, 0.1);
}

body.dark-mode .qq-number-input {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
}

.qq-input-error {
  color: #f86538;
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
}

.qq-input-footer {
  padding: 15px 20px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

body.dark-mode .qq-input-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.qq-input-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qq-input-cancel {
  background: #f5f5f5;
  color: #666;
}

.qq-input-cancel:hover {
  background: #e0e0e0;
}

body.dark-mode .qq-input-cancel {
  background: rgba(255, 255, 255, 0.05);
  color: #aaa;
}

body.dark-mode .qq-input-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
}

.qq-input-submit {
  background: linear-gradient(135deg, #12b7f5 0%, #0ba3dc 100%);
  color: white;
}

.qq-input-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(18, 183, 245, 0.4);
}

.qq-input-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==================== QQ信息确认弹窗 ==================== */
.qq-info-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.qq-info-modal.show {
  opacity: 1;
  visibility: visible;
}

.qq-info-modal.show .qq-info-modal-content {
  transform: scale(1);
}

.qq-info-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.qq-info-modal-content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

body.dark-mode .qq-info-modal-content {
  background: #1a1d29;
}

.qq-info-header {
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.dark-mode .qq-info-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.qq-info-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
}

.qq-info-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qq-info-close:hover {
  color: #f86538;
  transform: rotate(90deg);
}

.qq-info-body {
  padding: 30px 20px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.qq-info-avatar {
  flex-shrink: 0;
}

.qq-info-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #f0f0f0;
  display: block;
}

body.dark-mode .qq-info-avatar img {
  border-color: rgba(255, 255, 255, 0.1);
}

.qq-info-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qq-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qq-info-item label {
  font-weight: 600;
  color: #666;
  font-size: 13px;
  min-width: 60px;
}

body.dark-mode .qq-info-item label {
  color: #aaa;
}

.qq-info-item span {
  color: var(--text-color);
  font-size: 14px;
}

.qq-info-footer {
  padding: 15px 20px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

body.dark-mode .qq-info-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.qq-info-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qq-info-cancel {
  background: #f5f5f5;
  color: #666;
}

.qq-info-cancel:hover {
  background: #e0e0e0;
}

body.dark-mode .qq-info-cancel {
  background: rgba(255, 255, 255, 0.05);
  color: #aaa;
}

body.dark-mode .qq-info-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
}

.qq-info-confirm {
  background: var(--primary-color);
  color: white;
}

.qq-info-confirm:hover {
  background: #4c63d2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(94, 114, 228, 0.4);
}

/* ==================== 通知消息 ==================== */
.comment-notification {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: white;
  padding: 14px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10002;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  min-width: 250px;
  max-width: 90%;
}

body.dark-mode .comment-notification {
  background: #1a1d29;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.comment-notification.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.comment-notification svg {
  flex-shrink: 0;
}

.comment-notification span {
  font-size: 14px;
  color: var(--text-color);
}

.comment-notification.success {
  border-left: 4px solid #52c41a;
}

.comment-notification.success svg {
  color: #52c41a;
}

.comment-notification.error {
  border-left: 4px solid #f86538;
}

.comment-notification.error svg {
  color: #f86538;
}

/* ==================== 响应式设计 ==================== */

/* 平板 */
@media (max-width: 768px) {
  .user-info-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 12px;
  }
  
  .user-info-content {
    justify-content: center;
  }
  
  .user-email {
    display: none;
  }
  
  .comment-logout-btn {
    width: 100%;
    justify-content: center;
  }
  
  .qq-input-modal-content,
  .qq-info-modal-content {
    max-width: 90%;
    margin: 20px;
  }
  
  .qq-info-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }
  
  .qq-info-avatar img {
    width: 100px;
    height: 100px;
  }
  
  .qq-info-details {
    width: 100%;
  }
  
  .qq-info-item {
    justify-content: center;
  }
  
  .qq-info-footer,
  .qq-input-footer {
    flex-direction: column-reverse;
  }
  
  .qq-info-btn,
  .qq-input-btn {
    width: 100%;
  }
}

/* 手机 */
@media (max-width: 480px) {
  .qq-input-header,
  .qq-info-header {
    padding: 16px;
  }
  
  .qq-input-body,
  .qq-info-body {
    padding: 16px;
  }
  
  .qq-input-footer,
  .qq-info-footer {
    padding: 12px 16px;
  }
  
  .qq-input-header h3,
  .qq-info-header h3 {
    font-size: 16px;
  }
  
  .qq-number-input {
    font-size: 15px;
    padding: 10px 14px;
  }
  
  .comment-notification {
    top: 70px;
    min-width: auto;
    max-width: 85%;
    padding: 12px 16px;
  }
  
  .comment-notification span {
    font-size: 13px;
  }
  
  .qq-info-avatar img {
    width: 80px;
    height: 80px;
  }
  
  .qq-info-item {
    font-size: 13px;
  }
  
  .qq-info-item label {
    min-width: 50px;
    font-size: 12px;
  }
}

