
/* 文字按钮 悬浮按钮组样式 */
.rmzy-float-container {
  position: fixed;
  bottom: 1.25rem;
  z-index: 9999;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.rmzy-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.625rem; 
  transition: all 0.3s ease;
}

.rmzy-btn {
  background-color: #2c3e50;
  color: white;
  border: none;
  border-radius: 2.5rem;    
  padding: 0.625rem 1.25rem;  
  font-size: 1rem;          
  cursor: pointer;
  box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.2); 
  transition: background-color 0.2s, transform 0.2s, width 0.3s, padding 0.3s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;        
  border: 1px solid rgba(255,255,255,0.2);
}

.rmzy-btn:hover {
  background-color: #1e2b37;
  transform: scale(1.05);
}

.rmzy-btn .rmzy-short { display: none; }

.rmzy-buttons.collapsed .rmzy-btn .rmzy-full { display: none; }
.rmzy-buttons.collapsed .rmzy-btn .rmzy-short { display: inline; }
.rmzy-buttons.collapsed .rmzy-btn {
  padding: 0.625rem;          
  width: 2.5rem;              
  border-radius: 50%;
}

/* 弹出框样式 */
.rmzy-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.rmzy-popup-content {
  background: white;
  border-radius: 1.5rem;     
  max-width: 37.5rem;      
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 1.5625rem 3.125rem -0.75rem rgba(0,0,0,0.5); 
  padding: 1.875rem 1.875rem 1.25rem; 
  color: #1e293b;
  line-height: 1.7;
  font-size: 1rem;           
  border: 1px solid #f1f5f9;
}

/* 装饰渐变块（新增） */
.rmzy-popup-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 15rem;               
  height: 15rem;
  background: radial-gradient(circle at 20% 80%, rgba(249,115,22,0.15) 0%, rgba(236,72,153,0.05) 70%, transparent 100%);
  border-radius: 50%;
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

/* 装饰圆点 */
.rmzy-popup-dots {
  position: absolute;
  top: 1rem;
  right: 2rem;
  width: 8rem;
  height: 8rem;
  pointer-events: none;
  z-index: 0;
}
.rmzy-popup-dots::before,
.rmzy-popup-dots::after {
  content: '';
  position: absolute;
  width: 0.5rem;
  height: 0.5rem;
  background: rgba(59,130,246,0.2);
  border-radius: 50%;
}
.rmzy-popup-dots::before {
  top: 20%;
  right: 30%;
  box-shadow: 2rem 3rem 0 rgba(236,72,153,0.15), 4rem 1rem 0 rgba(249,115,22,0.2);
}
.rmzy-popup-dots::after {
  bottom: 10%;
  left: 40%;
  box-shadow: -1rem 2rem 0 rgba(34,197,94,0.1), 3rem -1rem 0 rgba(168,85,247,0.1);
}

/* 关闭按钮 */
.rmzy-popup-close {
  position: absolute;
  top: 1.25rem;               
  right: 1.5625rem;           
  font-size: 2rem;            
  font-weight: 300;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 2;
  line-height: 1;
}
.rmzy-popup-close:hover { color: #0f172a; }

/* 内容主体 */
.rmzy-popup-body {
  position: relative;
  z-index: 1;
}

/* 标题行 */
.rmzy-popup-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;              
  margin-bottom: 1.5625rem;    
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 0.9375rem;  
}
.rmzy-popup-header svg {
  width: 2.25rem;            
  height: 2.25rem;
  color: #3b82f6;
  flex-shrink: 0;
}
.rmzy-popup-header h2 {
  font-size: 1.75rem;         
  font-weight: 600;
  margin: 0;
  color: #0f172a;
  letter-spacing: -0.02em;
}

/* 正文段落 */
.rmzy-popup-body p {
  margin: 1.2em 0;
  text-align: justify;
}

/* 关键词高亮 */
.rmzy-highlight {
  background-color: #fef9c3;
  padding: 0 0.25rem;         
  border-radius: 0.375rem;   
  font-weight: 500;
  color: #854d0e;
  border: 1px solid #facc15;
}

/* 引用来源标注 */
.rmzy-source {
  display: inline-block;
  font-style: italic;
  color: #64748b;
  background-color: #f8fafc;
  padding: 0.125rem 0.5rem;   
  border-radius: 1.25rem;     
  font-size: 0.9em;
  border-left: 3px solid #94a3b8;
  margin-top: 0.3125rem;      
}

/* 装饰 SVG（优化） */
.rmzy-popup-decor {
  position: absolute;
  bottom: 0.9375rem;           
  right: 0.9375rem;
  width: 7.5rem;             
  height: 3.75rem;           
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
  color: #cbd5e1;
}

/* 移动端优化 */
@media (max-width: 600px) {
  .rmzy-float-container {
    left: 0.625rem;         
    bottom: 0.625rem;
  }
  .rmzy-btn {
    font-size: 0.875rem;     
    padding: 0.5rem 1rem;   
  }
  .rmzy-buttons.collapsed .rmzy-btn {
    padding: 0.5rem;        
    width: 2.25rem;        
  }
  .rmzy-popup-content {
    padding: 1.5625rem 1.25rem; 
  }
  .rmzy-popup-header h2 {
    font-size: 1.5rem;      
  }
  .rmzy-popup-header svg {
    width: 1.75rem;          
    height: 1.75rem;
  }
  /* 装饰适当缩小 */
  .rmzy-popup-gradient {
    width: 10rem;
    height: 10rem;
  }
  .rmzy-popup-dots {
    width: 6rem;
    height: 6rem;
  }
  .rmzy-popup-decor {
    width: 5rem;
    height: 2.5rem;
  }
}
