/* ============ seofenshi 首页模板样式 ============ */

body {
  background: #f5f7fb;
  font-family: "Source Sans Pro", -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1f2937;
}

/* ---------- 顶部导航 ---------- */
.seofenshi-header {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.seofenshi-header .navbar-brand .site-logo {
  max-height: 40px;
  display: block;
}
.seofenshi-header .navbar-brand .site-name {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin-left: 10px;
  line-height: 1;
  white-space: nowrap;
}
.seofenshi-header .nav-link {
  color: #4b5563;
  font-weight: 600;
}
.seofenshi-header .nav-link:hover {
  color: #2563eb;
}

/* ---------- 页面面包屑 ---------- */
.page-breadcrumb {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 20px;
}
.page-breadcrumb a {
  color: #2563eb;
  text-decoration: none;
}
.page-breadcrumb a:hover {
  text-decoration: underline;
}
.page-breadcrumb .sep {
  margin: 0 8px;
  color: #d1d5db;
}

/* ---------- 登录弹窗（与 /auth/login 卡片样式一致） ---------- */
.modal-backdrop.show {
  background-color: #111827;
  opacity: .55;
}
.auth-modal {
  max-width: 28rem; /* 448px，与登录页 .col-login 一致 */
  padding: 0 .75rem; /* 模拟栅格列 12px 内边距，使白色卡片与登录页同为 424px */
}
.auth-modal .modal-content {
  border: none;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.auth-modal .modal-body {
  padding: 1.5rem;
}
.auth-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  float: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.06);
  color: #6b7280 !important;
  text-shadow: none;
  opacity: 1;
}
.auth-modal-close:hover,
.auth-modal-close:focus {
  background: rgba(17, 24, 39, 0.12);
  color: #111827 !important;
  opacity: 1;
}

/* ---------- Hero ---------- */
.seofenshi-hero {
  position: relative;
  overflow: hidden;
  padding: 140px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, #eef4ff 0%, #f5f7fb 100%);
}

/* 浮动跳动图标 */
@keyframes seofenshiFloatUp {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(6deg); }
}
.seofenshi-float-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.seofenshi-float-icon {
  position: absolute;
  opacity: 0.75;
  animation: seofenshiFloatUp 6s ease-in-out infinite;
}
.seofenshi-float-icon.fi-1 { left: 6%;  top: 18%; width: 50px; height: 50px; animation-delay: 0s; }
.seofenshi-float-icon.fi-2 { left: 20%; bottom: 12%; width: 34px; height: 34px; animation-delay: 1.2s; }
.seofenshi-float-icon.fi-3 { right: 7%; top: 16%; width: 44px; height: 44px; animation-delay: 0.6s; }
.seofenshi-float-icon.fi-4 { right: 20%; bottom: 14%; width: 38px; height: 38px; animation-delay: 1.8s; }
.seofenshi-float-icon.fi-5 { right: 32%; top: 9%; width: 28px; height: 28px; animation-delay: 0.9s; }
.seofenshi-float-icon.fi-6 { left: 32%; bottom: 9%; width: 24px; height: 24px; animation-delay: 2.4s; }
.seofenshi-hero-badge {
  display: inline-block;
  background: #dbeafe;
  color: #1d4ed8;
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 14px;
  margin-bottom: 18px;
}
.seofenshi-hero-title {
  font-size: 42px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
}
.seofenshi-hero-sub {
  font-size: 17px;
  color: #6b7280;
  margin-bottom: 26px;
}
.seofenshi-hero-categories {
  max-width: 820px;
  margin: 0 auto 28px;
}
.seofenshi-cat-chip {
  display: inline-block;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #374151;
  border-radius: 8px;
  padding: 8px 14px;
  margin: 4px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none !important;
  transition: all 0.15s ease;
}
.seofenshi-cat-chip:hover {
  border-color: #2563eb;
  color: #2563eb;
  transform: translateY(-1px);
}
.seofenshi-cat-chip i {
  margin-right: 6px;
  color: #2563eb;
  font-size: 15px;
}
.seofenshi-hero-actions .btn {
  margin: 0 8px;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 10px;
}
.seofenshi-btn-primary {
  background: #2563eb !important;
  border: 1px solid #2563eb !important;
  color: #fff !important;
}
.seofenshi-btn-primary:hover {
  background: #1d4ed8 !important;
}
.seofenshi-btn-outline {
  background: #fff !important;
  border: 1px solid #d1d5db !important;
  color: #374151 !important;
}

/* ---------- 区块标题 ---------- */
.seofenshi-section-head {
  text-align: center;
  margin-bottom: 30px;
}
.seofenshi-section-head h2 {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
}
.seofenshi-section-head span {
  display: block;
  color: #6b7280;
  margin-top: 6px;
}
.seofenshi-more {
  display: inline-block;
  margin-top: 10px;
  color: #2563eb;
  font-weight: 600;
}

/* ---------- 商品卡片 ---------- */
.seofenshi-products {
  padding: 50px 0;
}
.seofenshi-product-card {
  display: block;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  text-decoration: none !important;
  transition: all 0.15s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.seofenshi-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.seofenshi-product-img {
  width: 100%;
  height: 130px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.seofenshi-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.seofenshi-product-noimg {
  font-size: 12px;
  color: #9ca3af;
  padding: 8px;
  text-align: center;
}
.seofenshi-product-name {
  padding: 10px 12px 4px;
  font-size: 14px;
  color: #1f2937;
  font-weight: 600;
  line-height: 1.4;
  min-height: 44px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.seofenshi-product-price {
  padding: 0 12px 12px;
  font-size: 16px;
  font-weight: 700;
  color: #2563eb;
}

/* ---------- 购买流程 ---------- */
.seofenshi-steps {
  padding: 50px 0;
  background: #fff;
}
.seofenshi-step {
  text-align: center;
  padding: 24px 10px;
  margin-bottom: 15px;
}
.seofenshi-step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #eef2ff;
  color: #2563eb;
  font-size: 22px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.seofenshi-step-num i {
  line-height: 1;
}
.seofenshi-step h4 {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
}
.seofenshi-step p {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}

/* ---------- 优势 ---------- */
.seofenshi-features {
  padding: 50px 0;
}
.seofenshi-feature {
  text-align: center;
  padding: 24px 10px;
}
.seofenshi-feature i {
  font-size: 34px;
  color: #2563eb;
}
.seofenshi-feature h4 {
  font-size: 17px;
  font-weight: 700;
  margin: 12px 0 4px;
  color: #111827;
}
.seofenshi-feature p {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}

/* ---------- 客户评价 ---------- */
.seofenshi-testimonials {
  padding: 50px 0;
  background: #fff;
}
.seofenshi-testimonial {
  background: #f8fafc;
  border: 1px solid #eef2f6;
  border-radius: 12px;
  padding: 24px 20px;
  height: 100%;
  margin-bottom: 20px;
}
.seofenshi-testimonial-stars {
  color: #f59e0b;
  font-size: 15px;
  margin-bottom: 14px;
}
.seofenshi-testimonial-stars i {
  margin-right: 2px;
}
.seofenshi-testimonial-text {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.7;
  min-height: 120px;
}
.seofenshi-testimonial-author {
  display: flex;
  align-items: center;
  margin-top: 16px;
}
.seofenshi-testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: 12px;
  overflow: hidden;
}
.seofenshi-testimonial-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.seofenshi-testimonial-meta h5 {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}
.seofenshi-testimonial-meta span {
  font-size: 13px;
  color: #6b7280;
}

/* ---------- 最新文章 ---------- */
.seofenshi-blog {
  padding: 50px 0;
}
.seofenshi-blog-card {
  display: block;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
  transition: all 0.15s ease;
  height: 100%;
  text-decoration: none !important;
  color: inherit;
}
.seofenshi-blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.seofenshi-blog-img {
  height: 150px;
  overflow: hidden;
}
.seofenshi-blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.seofenshi-blog-cover {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  color: #fff;
}
.seofenshi-blog-cover.cover-1 { background: linear-gradient(135deg, #6366f1, #2563eb); }
.seofenshi-blog-cover.cover-2 { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.seofenshi-blog-cover.cover-3 { background: linear-gradient(135deg, #14b8a6, #0ea5e9); }
.seofenshi-blog-body {
  padding: 18px 20px 20px;
}
.seofenshi-blog-date {
  font-size: 13px;
  color: #2563eb;
  font-weight: 600;
  margin-bottom: 8px;
}
.seofenshi-blog-body h4 {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  line-height: 1.5;
  margin-bottom: 8px;
  min-height: 48px;
}
.seofenshi-blog-body p {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 12px;
}
.seofenshi-blog-more {
  font-size: 14px;
  font-weight: 600;
  color: #2563eb;
}
.seofenshi-blog-more i {
  margin-left: 4px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 767px) {
  .seofenshi-hero {
    padding: 120px 0 40px;
  }
  .seofenshi-hero-title {
    font-size: 30px;
  }
  .seofenshi-product-img {
    height: 100px;
  }
  .seofenshi-float-icon {
    opacity: 0.5;
  }
  .seofenshi-float-icon.fi-1 { width: 32px; height: 32px; left: 4%; top: 12%; }
  .seofenshi-float-icon.fi-2 { width: 24px; height: 24px; left: 12%; bottom: 10%; }
  .seofenshi-float-icon.fi-3 { width: 30px; height: 30px; right: 5%; top: 10%; }
  .seofenshi-float-icon.fi-4 { width: 24px; height: 24px; right: 12%; bottom: 10%; }
  .seofenshi-float-icon.fi-5,
  .seofenshi-float-icon.fi-6 { display: none; }
}
