/* 写手AI - 自定义样式 */

:root {
  --primary-color: #5D5FEF; /* 更现代的靛蓝色 */
  --primary-light: #8C8DFF;
  --primary-dark: #4240AC;
  --secondary-color: #00C2FF;
  --accent-color: #00E0B0;
  --dark-bg: #0E0E12; /* 更深的背景色 */
  --dark-surface: #1A1A24; /* 更有层次感的表面色 */
  --dark-card: #212130; /* 卡片背景色 */
  --text-light: #F5F6FA;
  --text-gray: #9EA3B8;
}

body {
  background-color: var(--dark-bg);
  color: var(--text-light);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.075em;
}

/* 导航菜单样式 */
.sidebar {
  background-color: var(--dark-surface);
  transition: all 0.3s ease;
}

.sidebar-menu-item {
  transition: all 0.2s ease;
}

.sidebar-menu-item:hover {
  background-color: rgba(93, 95, 239, 0.1);
}

.sidebar-menu-item.active {
  background-color: rgba(93, 95, 239, 0.15);
  border-left: 3px solid var(--primary-color);
}

/* 按钮样式 */
.btn-primary {
  background-color: var(--primary-color);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-light);
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: rgba(93, 95, 239, 0.1);
}

/* 卡片样式 */
.card {
  background-color: var(--dark-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(93, 95, 239, 0.2);
}

/* 充值套餐卡片样式 */
.card.active {
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 15px rgba(93, 95, 239, 0.3);
}

/* 优惠标签 */
.benefit-tag {
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  color: white;
  display: inline-block;
  margin-right: 4px;
}

/* 企业定制卡片 */
.enterprise-card {
  background: linear-gradient(135deg, rgba(93, 95, 239, 0.05) 0%, rgba(0, 224, 176, 0.05) 100%);
  border: 1px solid rgba(93, 95, 239, 0.2);
}

/* 渐变文字 */
.gradient-text-top {
  background: linear-gradient(90deg, #5D5FEF 0%, #00C2FF 40%, #00E0B0 70%, #00C2FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-text {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 动画效果 */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(93, 95, 239, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(93, 95, 239, 0); }
  100% { box-shadow: 0 0 0 0 rgba(93, 95, 239, 0); }
}

/* 特性卡片图标 */
.feature-icon {
  color: var(--primary-color);
  background: radial-gradient(circle, rgba(93, 95, 239, 0.15) 0%, rgba(93, 95, 239, 0.05) 70%);
  border-radius: 50%;
  padding: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(93, 95, 239, 0.3);
}

/* 英雄区背景 */
.hero-bg {
  position: absolute;
  background: #5D5FEF;
  top: 0%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  filter: blur(150px);
  width: 600px;
  height: 600px;
  z-index: 0;
  opacity: 0.3;
}

/* 功能卡片样式 */
.core-feature-card {
  position: relative;
  overflow: hidden;
  border: none;
  transition: none;
  box-shadow: none;
}

/* 移除顶部颜色条效果 */
.core-feature-card::before {
  display: none;
}

/* 大型背景图标 */
.big-icon {
  position: absolute;
  bottom: -15px;
  right: -15px;
  font-size: 10rem;
  opacity: 0.15;
  z-index: 1;
  transform: rotate(-5deg);
  line-height: 1;
}

.feature-icon-modern {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(93, 95, 239, 0.2) 0%, rgba(0, 194, 255, 0.1) 100%);
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.feature-icon-modern::after {
  display: none;
}

/* 卡片内容 */
.card-content {
  position: relative;
  z-index: 2;
}

/* 通用弹出框样式 */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--dark-card);
  color: var(--text-light);
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 2000;
  display: flex;
  align-items: center;
  border: 1px solid rgba(93, 95, 239, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  max-width: 90%;
}

.toast.show {
  opacity: 1;
  visibility: visible;
}

.toast.success {
  border-left: 4px solid var(--accent-color);
}

.toast.error {
  border-left: 4px solid #ff5757;
}

.toast.warning {
  border-left: 4px solid #ffc107;
}

.toast.info {
  border-left: 4px solid var(--secondary-color);
}

.toast-icon {
  margin-right: 12px;
  font-size: 1.25rem;
}

.toast.success .toast-icon {
  color: var(--accent-color);
}

.toast.error .toast-icon {
  color: #ff5757;
}

.toast.warning .toast-icon {
  color: #ffc107;
}

.toast.info .toast-icon {
  color: var(--secondary-color);
}

.toast-message {
  flex: 1;
  font-size: 0.95rem;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-gray);
  margin-left: 12px;
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
  transition: color 0.2s;
}

.toast-close:hover {
  color: var(--text-light);
}

/* 弹出框动画 */
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  to {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
}

.toast.show {
  animation: toastIn 0.3s ease forwards;
}

.toast.hide {
  animation: toastOut 0.3s ease forwards;
}

/* 模态弹窗样式 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--dark-surface);
  border-radius: 1rem;
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  position: relative;
  border: 2px solid #8C8DFF;
  box-shadow: 0 0 20px rgba(93, 95, 239, 0.1);
  animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-light);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-gray);
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--text-light);
}

.modal-body {
  color: var(--text-gray);
  line-height: 1.6;
}

.modal-footer {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式调整 */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    position: fixed;
    z-index: 40;
  }
  
  .sidebar.open {
    transform: translateX(0);
  }

  /* 移动端图标尺寸调整 */
  .big-icon {
    font-size: 6rem;
    bottom: -10px;
    right: -10px;
  }

  /* 特性卡片水平滚动 */
  .features-scroll-container {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    position: relative;
  }
  
  /* 弹出框调整 */
  .toast {
    width: 90%;
    max-width: 350px;
  }
}

/* 特殊边框样式 */
.special-border {
  border: 1px dashed #8C8DFF;
  border-radius: 0.75rem;
}

/* 点状背景图案 */
.dot-pattern {
  background-image: radial-gradient(rgba(148, 163, 184, 0.1) 1px, transparent 1px);
  background-size: 16px 16px;
}

/* AI徽章样式 */
.ai-badge {
  position: relative;
  padding: 0 0.5rem;
  z-index: 1;
  font-weight: bold;
}

.ai-badge::before {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 20px;
  background: linear-gradient(90deg, #8C8DFF, #00C2FF);
  border-radius: 6px;
  z-index: -1;
  transform: skewX(-6deg);
} 