/* 国文市场弹窗样式 */
.guowen-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.guowen-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.guowen-modal {
  background: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s ease;
  border: 1px solid #e1e5e9;
}

.guowen-modal-overlay.active .guowen-modal {
  transform: translateY(0) scale(1);
}

.guowen-modal-header {
  background: linear-gradient(135deg, #d4af37, #f4d03f);
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.guowen-modal-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.guowen-modal-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.guowen-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.guowen-modal-body {
  padding: 0;
  max-height: calc(90vh - 80px);
  overflow-y: auto;
}

.guowen-modal-image {
  width: 100%;
  height: 200px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.guowen-modal-image img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #e1e5e9;
}

.guowen-modal-info {
  padding: 20px;
}

.guowen-modal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e1e5e9;
}

.guowen-modal-row:last-child {
  border-bottom: none;
}

.guowen-modal-label {
  font-size: 14px;
  color: #666666;
  font-weight: 500;
}

.guowen-modal-value {
  font-size: 14px;
  color: #333333;
  font-weight: 600;
  text-align: right;
}

.guowen-modal-value.primary {
  color: #d4af37;
}

.guowen-modal-value.positive {
  color: #22c55e;
}

.guowen-modal-value.negative {
  color: #ef4444;
}

.guowen-modal-value.large {
  font-size: 16px;
}

/* 暗色模式适配 */
.dark-mode .guowen-modal {
  background: #2a2a2a;
  border: 1px solid #404040;
}

.dark-mode .guowen-modal-header {
  background: linear-gradient(135deg, #b8941f, #d4af37);
}

.dark-mode .guowen-modal-image {
  background: #1a1a1a;
}

.dark-mode .guowen-modal-image img {
  border-color: #404040;
}

.dark-mode .guowen-modal-row {
  border-bottom-color: #404040;
}

.dark-mode .guowen-modal-label {
  color: #cccccc;
}

.dark-mode .guowen-modal-value {
  color: #ffffff;
}

/* 响应式适配 */
@media (max-width: 480px) {
  .guowen-modal-overlay {
    padding: 10px;
  }
  
  .guowen-modal {
    max-width: none;
    width: 100%;
  }
  
  .guowen-modal-header {
    padding: 14px 16px;
  }
  
  .guowen-modal-title {
    font-size: 15px;
  }
  
  .guowen-modal-info {
    padding: 16px;
  }
  
  .guowen-modal-row {
    padding: 10px 0;
  }
  
  .guowen-modal-image {
    height: 180px;
  }
  
  .guowen-modal-image img {
    width: 140px;
    height: 140px;
  }
}

/* 滚动条样式 */
.guowen-modal-body::-webkit-scrollbar {
  width: 6px;
}

.guowen-modal-body::-webkit-scrollbar-track {
  background: #f8f9fa;
}

.guowen-modal-body::-webkit-scrollbar-thumb {
  background: #e1e5e9;
  border-radius: 3px;
}

.dark-mode .guowen-modal-body::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.dark-mode .guowen-modal-body::-webkit-scrollbar-thumb {
  background: #404040;
}
