/* 华旭通信 - 自定义样式 */

/* Hero背景渐变 */
.hero-bg {
  background: linear-gradient(135deg, #0a1628 0%, #111d32 40%, #0f1923 100%);
  position: relative;
  overflow: hidden;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(91, 141, 239, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(91, 141, 239, 0.05) 0%, transparent 50%);
}

/* 品牌蓝色 */
.brand-blue { color: #5B8DEF; }
.brand-blue-bg { background-color: #5B8DEF; }

/* 渐变品牌色 */
.gradient-brand {
  background: linear-gradient(90deg, #5B8DEF, #3B6FD9);
}

/* 卡片阴影 */
.shadow-card {
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.shadow-card-hover {
  box-shadow: 0 10px 30px rgba(91,141,239,0.15);
}

/* 产品卡片 */
.product-card {
  transition: all 0.3s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(91,141,239,0.15);
  border-color: rgba(91,141,239,0.4);
}

/* 导航激活状态 */
.nav-active {
  color: #5B8DEF;
  background-color: rgba(91,141,239,0.08);
}

/* 统计数字动画 */
@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 动画 */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* 分隔线 */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
}

/* 按钮品牌样式 */
.btn-brand {
  background-color: #5B8DEF;
  color: white;
  transition: all 0.2s;
}
.btn-brand:hover {
  background-color: #4a7de0;
  box-shadow: 0 4px 12px rgba(91,141,239,0.35);
}

/* 侧边栏分类 */
.sidebar-cat {
  transition: all 0.2s;
}
.sidebar-cat:hover {
  color: #5B8DEF;
  background-color: rgba(91,141,239,0.05);
}
.sidebar-cat.active {
  color: #5B8DEF;
  background-color: rgba(91,141,239,0.08);
  font-weight: 500;
}

/* 后台管理 */
.admin-sidebar {
  background: #1a2332;
  min-height: 100vh;
}
.admin-sidebar a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #94a3b8;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: all 0.2s;
  font-size: 0.875rem;
}
.admin-sidebar a:hover {
  background: rgba(255,255,255,0.08);
  color: white;
}
.admin-sidebar a.active {
  background: #5B8DEF;
  color: white;
}

/* 表单样式 */
.form-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: border-color 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: #5B8DEF;
  ring: 2px rgba(91,141,239,0.2);
}

/* 表格样式 */
.admin-table {
  width: 100%;
  font-size: 0.875rem;
}
.admin-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  color: #6b7280;
  font-weight: 500;
  border-bottom: 1px solid #e5e7eb;
}
.admin-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f3f4f6;
}
.admin-table tr:hover td {
  background-color: #f9fafb;
}

/* 滚动条美化 */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #a1a1a1; }

/* 响应式 */
@media (max-width: 768px) {
  .hero-bg { padding-top: 4rem; padding-bottom: 3rem; }
}
