/* 用户福利弹窗 */
.benefits-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.benefits-modal-content {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalFadeIn 0.3s ease;
}

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

.benefits-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--primary-border);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
  color: var(--text-white);
}

.benefits-modal-header h3 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--text-white);
}

.benefits-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-white);
  transition: var(--transition-fast);
  font-weight: bold;
}

.benefits-modal-close:hover {
  transform: rotate(90deg);
}

.benefits-modal-body {
  padding: 25px;
  max-height: 70vh;
  overflow-y: auto;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--primary-border);
  background-color: var(--primary-bg);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.benefit-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.benefit-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.benefit-icon {
  font-size: 28px;
  margin-right: 16px;
  color: var(--primary-color);
  background-color: var(--primary-bg-hover);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.benefit-details {
  flex: 1;
}

.benefit-name {
  margin: 0 0 5px 0;
  font-size: 1.1rem;
  color: var(--primary-color);
  font-weight: 600;
}

.benefit-desc {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-medium);
  line-height: 1.5;
}

.highlight {
  color: var(--primary-color);
  font-weight: bold;
  padding: 0 3px;
  background-color: var(--accent-bg);
  border-radius: 3px;
}

.benefits-cta {
  margin-top: 20px;
  text-align: center;
}

.benefits-cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--text-white);
  padding: 12px 25px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-normal);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.benefits-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-dark) 100%);
}

/* 用户福利按钮 */
.benefits-button {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  height: 36px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
  color: var(--text-dark);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  position: fixed;
  top: 14px;
  right: 20px;
  z-index: 100;
  padding: 0 15px;
}

.benefits-button-icon {
  margin-right: 6px;
  font-size: 1.1rem;
}

.benefits-button:hover {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-color) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* 侧边栏版本的用户福利按钮（黑白简洁风格） */
.sidebar-benefits-button {
  width: 100%;
  height: 36px;
  border: 1px solid #e4e4e7;
  border-radius: 6px;
  background-color: #fff;
  color: #52525b;
  cursor: pointer;
  font-weight: 400;
  font-size: 13px;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-benefits-button:hover {
  background-color: #18181b;
  color: #fff;
  border-color: #18181b;
}

/* 响应式样式 */
@media (max-width: 768px) {
  .benefits-button {
    position: static;
    width: auto;
    margin-top: 10px;
    margin-bottom: 15px;
  }
  
  .benefits-modal-content {
    width: 95%;
  }
  
  .benefit-item {
    flex-direction: column;
  }
  
  .benefit-icon {
    margin-bottom: 15px;
    align-self: center;
  }
  
  .sidebar-benefits-button {
    display: none; /* 在移动端隐藏侧边栏的按钮 */
  }
} 