/**
 * 首页专有样式
 * 公告栏、推荐商品、合作伙伴滚动、公告弹窗
 */

/* ---------- Hero 英文副标题 ---------- */
.hero-subtitle-en {
  font-size: 14px;
  color: #64748b;
  margin-top: 8px;
  font-style: italic;
}

/* ---------- 业务入口 ---------- */
.business-entry-section {
  padding: 60px 0;
  background: #fff;
}

.business-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.business-entry-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid transparent;
  transition: all 0.3s;
}

.business-entry-card:hover {
  border-color: #4A7FFF;
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(74, 127, 255, 0.15);
}

.business-entry-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8f1ff 0%, #d6e4ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: #4A7FFF;
}

.business-entry-title {
  font-size: 20px;
  color: #333;
  font-weight: 600;
  margin-bottom: 10px;
}

.business-entry-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 25px;
  line-height: 1.6;
}

.business-entry-btn {
  display: inline-block;
  padding: 10px 30px;
  background: linear-gradient(135deg, #4A7FFF 0%, #6B8FFF 100%);
  color: #fff;
  border-radius: 25px;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s;
}

.business-entry-btn:hover {
  box-shadow: 0 4px 12px rgba(74, 127, 255, 0.4);
  transform: translateY(-2px);
}

/* ---------- 核心优势 ---------- */
.core-advantage-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.advantage-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid transparent;
  transition: all 0.3s;
}

.advantage-card:hover {
  border-color: #4A7FFF;
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(74, 127, 255, 0.12);
}

.advantage-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e8f1ff 0%, #d6e4ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
  color: #4A7FFF;
}

.advantage-title {
  font-size: 16px;
  color: #333;
  font-weight: 600;
  margin-bottom: 10px;
}

.advantage-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

/* ---------- 核心功能模块 ---------- */
.core-function-section {
  padding: 80px 0;
  background: #fff;
}

.function-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.function-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.function-card:hover {
  border-color: #4A7FFF;
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(74, 127, 255, 0.15);
}

.function-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4A7FFF 0%, #6B8FFF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
  color: #fff;
}

.function-title {
  font-size: 16px;
  color: #333;
  font-weight: 600;
  margin-bottom: 10px;
}

.function-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 16px;
}

.function-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(74, 127, 255, 0.1);
  color: #4A7FFF;
  border-radius: 4px;
  font-size: 12px;
}

/* ---------- 成功案例 ---------- */
.success-case-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.case-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid transparent;
  transition: all 0.3s;
}

.case-card:hover {
  border-color: #4A7FFF;
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(74, 127, 255, 0.12);
}

.case-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4A7FFF 0%, #6B8FFF 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}

.case-title {
  font-size: 18px;
  color: #333;
  font-weight: 600;
  margin-bottom: 16px;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-tag {
  display: inline-block;
  padding: 5px 14px;
  background: #f5f5f5;
  color: #666;
  border-radius: 20px;
  font-size: 13px;
}

/* ---------- 合作伙伴新样式 ---------- */
.partner-section {
  background: #fff;
  padding: 80px 0;
}

.partner-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

.partner-category-item {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 24px 20px;
  text-align: center;
  transition: all 0.3s;
}

.partner-category-item:hover {
  background: #e8f1ff;
}

.partner-category-title {
  font-size: 15px;
  color: #333;
  font-weight: 600;
  margin-bottom: 8px;
}

.partner-category-desc {
  font-size: 13px;
  color: #666;
}

.partner-service-header {
  text-align: center;
  margin-bottom: 30px;
}

.partner-service-title {
  font-size: 20px;
  color: #333;
  font-weight: 600;
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 3px solid #4A7FFF;
}

.partner-service-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.partner-service-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px 12px;
  text-align: center;
  font-size: 14px;
  color: #666;
  transition: all 0.3s;
}

.partner-service-item:hover {
  background: #4A7FFF;
  color: #fff;
}

/* ---------- 关于我们 ---------- */
.about-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
}

.about-content {
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: center;
}

.about-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 2;
  margin-bottom: 20px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.about-stat-item {
  text-align: center;
}

.about-stat-number {
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(135deg, #4A7FFF 0%, #6B8FFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.about-stat-plus {
  font-size: 24px;
}

.about-stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- 公告栏 ---------- */
.announcement {
  max-width: 1120px;
  width: calc(100% - 80px);
  margin: -30px auto 30px;
  background: #fff;
  border-radius: 50px;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 3;
  height: 56px;
  border: 1px solid transparent;
  transition: border-color 0.3s;
  cursor: pointer;
  overflow: hidden;
}

.announcement:hover { border-color: #4A7FFF; }
.announcement-icon { color: #4A7FFF; font-size: 24px; flex-shrink: 0; }
.announcement-text-wrapper { flex: 1; overflow: hidden; height: 24px; }
.announcement-text { color: #333; font-size: 14px; line-height: 24px; }
.announcement-text.slide-up { animation: slideUp 0.5s ease; }
.announcement-arrow { color: #999; font-size: 20px; flex-shrink: 0; }

@keyframes slideUp {
  0% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(-100%); opacity: 0; }
  51% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ---------- 推荐权益 ---------- */
.recommend-section { background: #fff; padding: 40px 0 60px; }
.recommend-content { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.recommend-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.recommend-tag {
  padding: 10px 24px; border-radius: 50px; font-size: 14px; cursor: pointer;
  border: none; font-weight: 500; transition: all 0.3s;
}
.recommend-tag.active { background: #4A7FFF; color: #fff; }
.recommend-tag:not(.active) { background: #fff; color: #666; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.recommend-tag:not(.active):hover { background: #f5f5f5; }

.recommend-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
  max-width: 1200px; margin: 40px auto 0; padding: 0 40px;
}
.recommend-item {
  background: #fff; border-radius: 12px; overflow: hidden; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.08); border: 1px solid transparent; transition: all .3s;
}
.recommend-item:hover {
  border-color: #4A7FFF; transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(74,127,255,.15);
}
.recommend-item-image {
  width: 100%;
  height: 110px;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-color: #f8f9fa;
}
.recommend-item-title { padding: 12px; font-size: 14px; color: #333; text-align: center; font-weight: 500; }

.view-more { text-align: center; margin-top: 40px; }
.view-more-button {
  display: inline-block;
  padding: 12px 40px; border: 1px solid #4A7FFF; background: #fff; color: #4A7FFF;
  border-radius: 6px; font-size: 14px; cursor: pointer; font-weight: 500; transition: all .3s;
  text-decoration: none;
}
.view-more-button:hover { background: #4A7FFF; color: #fff; }

/* ---------- 合作伙伴 ---------- */
.partner-section { background: #f8f9fa; padding: 80px 0; }
.partner-header { text-align: center; margin-bottom: 52px; }
.partner-liner { font-size: 14px; color: #999; letter-spacing: 2px; margin-bottom: 8px; }
.partner-title { font-size: 32px; color: #333; font-weight: 600; }
.partner-container { max-width: 1200px; margin: 0 auto; padding: 0 40px; overflow: hidden; }
.partner-scroll { position: relative; }
.partner-row {
  display: flex; align-items: center; margin-bottom: 40px;
  animation-duration: 30s; animation-timing-function: linear; animation-iteration-count: infinite;
}
.partner-row:nth-child(1) { animation-name: scrollRight; }
.partner-row:nth-child(2) { animation-name: scrollLeft; }
.partner-row:nth-child(3) { animation-name: scrollRight; }
.partner-row:nth-child(4) { animation-name: scrollLeft; }
.partner-row:hover { animation-play-state: paused; }
.partner-logo {
  height: 80px;
  margin-right: 20px;
  flex-shrink: 0;
  opacity: 1;
  transition: all 0.3s;
}
.partner-logo:hover { transform: scale(1.05); }

@keyframes scrollRight {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes scrollLeft {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ---------- 公告详情弹窗 ---------- */
.announcement-detail h3 { font-size: 20px; color: #333; margin-bottom: 16px; font-weight: 600; }
.announcement-meta { display: flex; gap: 20px; color: #999; font-size: 13px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #f0f0f0; }
.announcement-content { color: #666; font-size: 15px; line-height: 1.8; }

/* ---------- 企业介绍分隔标题 ---------- */
.corp-divider {
  text-align: center; padding: 50px 20px 10px; background: #fff;
}
.corp-divider h2 { font-size: 28px; color: #333; font-weight: 600; }
.corp-divider p { color: #666; margin-top: 10px; font-size: 15px; }

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .announcement { width: calc(100% - 40px); margin: -20px 20px 20px; padding: 12px 20px; height: 48px; }
  .recommend-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; padding: 0 20px; }
  .recommend-content { padding: 0 20px; }
  .partner-container { padding: 0 20px; }
  .partner-section { padding: 50px 0; }
  .partner-title { font-size: 24px; }
  .partner-logo { height: 60px; }

  /* 新增模块响应式 */
  .business-entry-grid { grid-template-columns: 1fr; gap: 20px; }
  .advantage-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .function-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .case-grid { grid-template-columns: 1fr; gap: 20px; }
  .partner-category-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .partner-service-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .about-stat-number { font-size: 32px; }
}

@media (max-width: 480px) {
  .advantage-grid { grid-template-columns: 1fr; }
  .function-grid { grid-template-columns: 1fr; }
  .partner-category-grid { grid-template-columns: 1fr; }
  .partner-service-grid { grid-template-columns: repeat(2, 1fr); }
  .about-stats { grid-template-columns: 1fr; }
}
