/* ============================================================
 * Home page — visual parity with kffund.cn homepage.
 * Structure: banner swiper → intro block (左图右文 + 4 icon) →
 * stats strip → founder (右图左文) → honor (左图右文 + 年份) →
 * two-column news list.
 * ============================================================ */

/* ---- Banner Swiper (对齐 kffund .swiper-focus) ---- */
.home-swiper { position: relative; width: 100%; }
.home-swiper .swiper {
  position: relative;
  width: 100%;
  height: 360px;
  overflow: hidden;
}
.home-swiper .swiper-slide {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center center;
}
.home-swiper .swiper-slide .slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.home-swiper .swiper-slide .slide-bg picture,
.home-swiper .swiper-slide .slide-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* dot overlay 纹理（对齐 kffund .swiper-focus .swiper-slide::before） */
.home-swiper .swiper-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url('/uploads/image/2026/04/kffund-migration/ui/icon/bg-dot.png');
  background-repeat: repeat;
}
/* 左侧半透明蓝卡片容器（对齐 kffund .focus-text .bg-wrapper.bg-primary） */
.home-swiper .swiper-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 0 var(--space-md);
}
.home-swiper .swiper-content .content-inner {
  width: calc(100% - 15px);
  height: 50%;
  min-height: 120px;
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: rgba(42, 117, 188, .4);
}
.home-swiper .swiper-slide[data-theme="white"] .swiper-content .content-inner {
  background-color: rgba(255, 255, 255, .4);
}
.home-swiper .swiper-content h2 {
  position: relative;
  color: #fff;
  font-size: 18px;
  line-height: 1.7;
  font-weight: var(--fw-bold);
  margin: 20px 0 0;
  padding: 0;
}
.home-swiper .swiper-slide[data-theme="white"] .swiper-content h2 { color: var(--primary); }
.home-swiper .swiper-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: -20px;
  width: 2em;
  height: 3px;
  background: #fff;
}
.home-swiper .swiper-slide[data-theme="white"] .swiper-content h2::before { background: var(--primary); }
.home-swiper .swiper-content p {
  color: rgba(255,255,255,.9);
  margin: 10px 0 0;
  font-size: var(--fs-sm);
}
.home-swiper .swiper-slide[data-theme="white"] .swiper-content p { color: var(--text-2); }
.home-swiper .swiper-content .btn { margin-top: 16px; align-self: flex-start; }

/* 右侧纵向 pagination */
.home-swiper .swiper-pagination {
  position: absolute;
  right: 0;
  top: 0;
  left: auto;
  height: 100%;
  width: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 3;
}
.home-swiper .swiper-pagination-bullet {
  display: block;
  position: relative;
  width: 7px;
  height: 7px;
  margin: 15px 0 !important;
  background-color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,0);
  border-radius: 50%;
  opacity: 1;
  transition: .4s;
}
.home-swiper .swiper-pagination-bullet::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 25px;
  width: 1px;
  height: 14px;
  margin-left: -0.5px;
  background: rgba(255,255,255,.4);
}
.home-swiper .swiper-pagination-bullet:last-child::before { display: none; }
.home-swiper .swiper-pagination-bullet-active {
  background-color: transparent;
  border-color: #fff;
  transform: scale(1.6);
}
.home-swiper .swiper-pagination-bullet-active::before { display: none; }

.home-swiper .swiper-button-prev, .home-swiper .swiper-button-next { display: none; }

/* 底部鼠标箭头动画 */
.home-swiper .mouse-scroll {
  position: absolute;
  left: 50%;
  margin-left: -11px;
  bottom: 30px;
  width: 22px;
  height: 39px;
  z-index: 4;
  border: 2px solid #fff;
  border-radius: 20px;
  box-sizing: border-box;
}
.home-swiper .mouse-scroll::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  margin-left: -1px;
  width: 2px;
  height: 8px;
  background: #fff;
  animation: scrollDown 2s infinite;
}
@keyframes scrollDown {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

@media (min-width: 768px) {
  .home-swiper .swiper { height: 500px; }
  .home-swiper .swiper-content .content-inner { width: 60%; height: 50%; padding: 20px 60px; }
  .home-swiper .swiper-content h2 { font-size: 24px; margin-top: 30px; }
  .home-swiper .swiper-content h2::before { top: -30px; }
  .home-swiper .swiper-pagination { width: 50px; }
}
@media (min-width: 1024px) {
  .home-swiper .swiper { height: 80vh; min-height: 540px; }
  .home-swiper .swiper-content .content-inner { width: 500px; }
  .home-swiper .swiper-content h2 { font-size: 26px; }
  .home-swiper .swiper-pagination { width: 60px; }
  .home-swiper .swiper-pagination-bullet { width: 8px; height: 8px; margin: 22px 0 !important; }
}
@media (min-width: 1366px) {
  .home-swiper .swiper { height: 90vh; }
  .home-swiper .swiper-content .content-inner { width: 580px; }
  .home-swiper .swiper-content h2 { font-size: 32px; margin-top: 35px; }
  .home-swiper .swiper-content h2::before { top: -35px; height: 4px; }
  .home-swiper .swiper-pagination { width: 70px; }
}
@media (min-width: 1680px) {
  .home-swiper .swiper-content .content-inner { width: 644px; }
  .home-swiper .swiper-content h2 { font-size: 36px; margin-top: 40px; }
  .home-swiper .swiper-content h2::before { top: -40px; height: 5px; }
}

/* ============================================================
 * 公共 h-wrapper（左图右文 / 右图左文）— 对齐 kffund .h-wrapper
 * ============================================================ */
.home-page .h-wrapper {
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
}
.home-page .h-wrapper .img-wrapper {
  order: 2;
  min-height: 260px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.home-page .h-wrapper .con-wrapper {
  flex: 1 1 auto;
  padding: 25px 15px;
}
.home-page .h-wrapper .hmore {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 30px;
  font-size: 15px;
  border-radius: 0;
  border: 1px solid rgba(0,0,0,.15);
  color: rgba(0,0,0,.7);
  background: transparent;
  transition: .6s;
}
.home-page .h-wrapper .hmore:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
@media (min-width: 768px) {
  .home-page .h-wrapper { flex-direction: row; }
  .home-page .h-wrapper .img-wrapper { order: 0; min-height: auto; width: 40%; flex-shrink: 0; }
  .home-page .h-wrapper .con-wrapper { padding: 50px 35px; }
}
@media (min-width: 992px) {
  .home-page .h-wrapper .img-wrapper { width: 33%; }
  .home-page .h-wrapper .hmore { padding: 9px 40px; }
}
@media (min-width: 1200px) {
  .home-page .h-wrapper .img-wrapper { width: 36%; }
}
@media (min-width: 1366px) {
  .home-page .h-wrapper .con-wrapper { padding: 60px 50px; }
  .home-page .h-wrapper .hmore { padding: 10px 45px; }
}
@media (min-width: 1680px) {
  .home-page .h-wrapper .con-wrapper { padding: 70px; }
}

/* ---- "一分钟了解凯丰" intro ---- */
.home-intro .intro-box { display: block; transition: .4s; color: inherit; }
.home-intro .intro-box:hover { box-shadow: var(--shadow-2); text-decoration: none; }
.home-intro .intro-box .des-intro { margin-bottom: .5em; color: var(--text-2); }
.home-intro .intro-box .icon-list {
  display: flex;
  flex-wrap: wrap;
  margin: 25px -8px 0;
}
.home-intro .intro-box .icon-list .item {
  width: 50%;
  padding: 12px 8px;
}
.home-intro .intro-box .icon-list .iconfont {
  display: inline-block;
  font-size: 32px;
  line-height: 1;
  margin-bottom: .3em;
  color: var(--primary);
}
.home-intro .intro-box .icon-list .title {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--text-1);
  margin-bottom: .25em;
}
.home-intro .intro-box .icon-list .des {
  line-height: 1.5;
  font-size: 92%;
  color: var(--text-2);
}
@media (min-width: 768px) {
  .home-intro .intro-box .icon-list .item { width: 25%; }
  .home-intro .intro-box .icon-list .iconfont { margin-bottom: .4em; }
}
@media (min-width: 1024px) {
  .home-intro .intro-box .des-intro { font-size: 15px; }
  .home-intro .intro-box .icon-list .title { font-size: 15px; }
  .home-intro .intro-box .icon-list .des { font-size: 13px; }
}
@media (min-width: 1366px) {
  .home-intro .intro-box .des-intro { font-size: 16px; }
  .home-intro .intro-box .icon-list { margin-top: 35px; }
  .home-intro .intro-box .icon-list .iconfont { font-size: 40px; }
  .home-intro .intro-box .icon-list .title { font-size: 16px; }
  .home-intro .intro-box .icon-list .des { font-size: 14px; }
}

/* ---- 统计条 (list-htotal) ---- */
.home-intro .stat-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  text-align: center;
  padding: 30px 7px;
  background: #fff;
  border-top: 1px solid var(--border);
}
.home-intro .stat-strip .item { padding: 10px 8px; }
.home-intro .stat-strip .item:nth-child(1) { width: 40%; }
.home-intro .stat-strip .item:nth-child(2) { width: 60%; }
.home-intro .stat-strip .stat-value {
  font-size: 22px;
  color: var(--primary);
  font-weight: var(--fw-bold);
  display: inline-block;
  min-width: 2ch;
  font-variant-numeric: tabular-nums;
}
.home-intro .stat-strip .stat-suffix {
  font-size: 22px;
  color: var(--primary);
  font-weight: var(--fw-bold);
}
.home-intro .stat-strip .stat-label {
  line-height: 1.5;
  font-size: 92%;
  margin-top: .5em;
  color: var(--text-3);
}
.home-intro .stat-strip .stat-card { text-align: center; }
@media (min-width: 768px) {
  .home-intro .stat-strip { padding: 50px 42px; }
  .home-intro .stat-strip .item { width: auto !important; flex: 1; }
  .home-intro .stat-strip .stat-value, .home-intro .stat-strip .stat-suffix { font-size: 24px; }
}
@media (min-width: 1366px) {
  .home-intro .stat-strip { padding: 70px 90px; }
  .home-intro .stat-strip .stat-value, .home-intro .stat-strip .stat-suffix { font-size: 34px; }
  .home-intro .stat-strip .stat-label { margin-top: 1em; font-size: 15px; }
}
@media (min-width: 1680px) {
  .home-intro .stat-strip { padding: 70px 120px; }
  .home-intro .stat-strip .stat-value, .home-intro .stat-strip .stat-suffix { font-size: 38px; }
  .home-intro .stat-strip .stat-label { font-size: 16px; }
}

/* ---- Founder 块 ---- */
.home-founder .founder-box .title-founder {
  font-size: 22px;
  color: var(--text-1);
  margin-bottom: .4em;
}
.home-founder .founder-box .subtitle-founder {
  font-size: 105%;
  color: var(--text-2);
  margin-bottom: .6em;
}
.home-founder .founder-box .founder-intro { margin-bottom: 20px; color: var(--text-2); }
.home-founder .founder-box .founder-intro p { margin-bottom: .4em; }
.home-founder .founder-box .founder-awards {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}
.home-founder .founder-box .founder-awards li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}
.home-founder .founder-box .founder-awards .iconfont {
  font-size: 14px;
}
/* 创始人 is 右图左文（image order=2 in DOM) — override default h-wrapper */
@media (min-width: 768px) {
  .home-founder .h-wrapper .img-wrapper { order: 2; }
  .home-founder .h-wrapper .con-wrapper { order: 1; }
  .home-founder .founder-box .founder-intro { margin-bottom: 30px; }
}
@media (min-width: 1024px) {
  .home-founder .founder-box .founder-intro p { font-size: 92%; }
}
@media (min-width: 1366px) {
  .home-founder .founder-box .title-founder { font-size: 26px; }
  .home-founder .founder-box .founder-intro { margin-bottom: 40px; }
}
@media (min-width: 1680px) {
  .home-founder .founder-box .title-founder { font-size: 28px; margin-bottom: .5em; }
  .home-founder .founder-box .subtitle-founder { font-size: 18px; margin-bottom: .7em; }
  .home-founder .founder-box .founder-intro { margin-bottom: 55px; }
  .home-founder .founder-box .founder-intro p { font-size: 16px; margin-bottom: .4em; }
}

/* ---- 荣誉 块（年份列表） ---- */
.home-honor .honor-box .honor-list {
  border-top: 1px solid var(--border-dark);
  margin-bottom: 20px;
}
.home-honor .honor-box .honor-list .item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
}
.home-honor .honor-box .honor-list .item .year {
  flex-shrink: 0;
}
.home-honor .honor-box .honor-list .item .year .year-num {
  color: var(--text-1);
  font-weight: var(--fw-bold);
  font-size: 15px;
}
.home-honor .honor-box .honor-list .item .year::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 14px;
  background: var(--primary);
  margin: 0 12px;
  vertical-align: middle;
}
.home-honor .honor-box .honor-list .item .year-desc {
  flex: 1;
}
.home-honor .honor-box .honor-list .item .year-desc .des {
  line-height: 1.3;
  margin-bottom: 7px;
  display: flex;
  font-size: 14px;
  color: var(--text-2);
}
.home-honor .honor-box .honor-list .item .year-desc .des::before {
  content: '•';
  color: var(--primary);
  padding: 0 8px;
}
.home-honor .honor-box .honor-list .item .year-desc .des:last-child { margin-bottom: 0; }
@media (min-width: 768px) { .home-honor .honor-box .honor-list { margin-bottom: 30px; } }
@media (min-width: 1366px) {
  .home-honor .honor-box .honor-list { margin-bottom: 40px; }
  .home-honor .honor-box .honor-list .item { padding: 12px 0; }
  .home-honor .honor-box .honor-list .item .year .year-num { font-size: 16px; }
  .home-honor .honor-box .honor-list .item .year-desc .des { font-size: 14px; line-height: 1.7; margin-bottom: 0; }
}

/* ============================================================
 * 首页新闻（双栏简洁列表，对齐 kffund .list-hnews-wrapper）
 * ============================================================ */
.home-news .home-news-grid {
  display: grid;
  /* minmax(0, 1fr) prevents grid tracks from being expanded by news-item
   * title's min-content width (title uses white-space:nowrap + ellipsis,
   * which the grid auto algorithm ignores when measuring min size). */
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}
@media (min-width: 992px) {
  .home-news .home-news-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; }
}
@media (min-width: 1680px) {
  .home-news .home-news-grid { gap: 70px; }
}
.home-news .news-col .news-item {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
  transition: .4s;
}
.home-news .news-col .news-item .title {
  flex: 1;
  font-size: 15px;
  color: var(--text-1);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-news .news-col .news-item:hover .title { color: var(--primary); }
.home-news .news-col .news-item .time {
  flex-shrink: 0;
  color: var(--text-4);
  font-size: 90%;
  padding-left: 20px;
}
@media (min-width: 768px) {
  .home-news .news-col .news-item { padding: 18px 0; }
  .home-news .news-col .news-item .title { font-size: 16px; }
}
@media (min-width: 1024px) {
  .home-news .news-col .news-item .time { padding-left: 30px; }
}
@media (min-width: 1366px) {
  .home-news .news-col .news-item .time { padding-left: 50px; }
}

/* ============================================================
 * Section scaffolding — kffund py-section 节奏
 * ============================================================ */
.home-page section { padding-top: 40px; padding-bottom: 40px; }
.home-page section.home-swiper { padding: 0; }
@media (min-width: 576px) { .home-page section { padding: 44px 0; } }
@media (min-width: 768px) { .home-page section { padding: 50px 0; } }
@media (min-width: 992px) { .home-page section { padding: 65px 0; } }
@media (min-width: 1200px) { .home-page section { padding: 75px 0; } }
@media (min-width: 1366px) { .home-page section { padding: 85px 0; } }
.home-page section.home-swiper { padding: 0 !important; }
.home-page section.pb-section { padding-top: 0; }

.home-page .section-more { text-align: center; margin-top: 40px; }
