/* ==========================================================================
   首页样式
   ========================================================================== */

/* --------------------------------------------------------------------------
   主视觉 Banner
   ------------------------------------------------------------------------ */

.hero {
  position: relative;
  /* 京东红纯色主背景 */
  background: #e1251b;
  color: #fff;
  padding: 72px 0 88px;
  overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -8%; top: -18%;
  width: 640px; height: 640px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .12);
}
.hero .wrap { position: relative; z-index: 2; }

.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 52px; align-items: center; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 20px;
  background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px);
  font-size: 13px; font-weight: 600; margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, .18);
}
.hero-tag .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #ffe14d;
  box-shadow: 0 0 0 3px rgba(255, 225, 77, .25);
}

.hero h1 {
  color: #fff; font-size: 46px; line-height: 1.22;
  letter-spacing: -1.2px; margin-bottom: 20px;
  text-shadow: 0 2px 14px rgba(90, 8, 12, .28);
}
.hero h1 em {
  font-style: normal;
  color: #ffe14d;
}
.hero-sub {
  font-size: 17px; line-height: 1.85; color: rgba(255, 255, 255, .86);
  margin-bottom: 32px; max-width: 560px;
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero .btn-primary { background: #fff; color: var(--brand-dark); }
.hero .btn-primary:hover { background: #f1f5f9; box-shadow: 0 8px 22px rgba(0, 0, 0, .22); }
.hero .btn-accent { background: #ffe14d; color: #7a0c12; box-shadow: 0 8px 22px rgba(90, 8, 12, .3); }
.hero .btn-accent:hover:not(:disabled) { background: #ffd633; color: #7a0c12; }
.hero .btn-outline {
  border-color: rgba(255, 255, 255, .35); color: #fff; background: rgba(255, 255, 255, .08);
}
.hero .btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, .18); color: #fff; }

.hero-stats { display: flex; gap: 38px; flex-wrap: wrap; }
.hero-stat b {
  display: block; font-size: 30px; font-weight: 800; letter-spacing: -.8px;
  line-height: 1.1;
}
.hero-stat b .unit { font-size: 15px; font-weight: 600; margin-left: 2px; }
.hero-stat span { font-size: 13px; color: rgba(255, 255, 255, .82); }

/* 右侧咨询卡 */
.hero-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 28px; box-shadow: 0 24px 60px rgba(2, 8, 23, .3);
  color: var(--text);
}
.hero-card h3 { font-size: 19px; margin-bottom: 6px; }
.hero-card .hint { font-size: 13px; color: var(--text-3); margin-bottom: 20px; }
.hero-card .field + .field { margin-top: 13px; }
.hero-card .btn { margin-top: 18px; }
.hero-card .tips {
  margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line);
  font-size: 12px; color: var(--text-3); line-height: 1.8;
}

/* --------------------------------------------------------------------------
   分类导航
   ------------------------------------------------------------------------ */

.cat-nav {
  background: #fff; border-bottom: 1px solid var(--line);
  position: relative; z-index: 5;
}
.cat-nav-inner {
  display: flex; align-items: center; gap: 4px;
  overflow-x: auto; padding: 0; scrollbar-width: none;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-nav a {
  display: flex; align-items: center; gap: 7px;
  padding: 17px 18px; font-size: 14.5px; font-weight: 500; color: var(--text-2);
  border-bottom: 2px solid transparent; white-space: nowrap; transition: all .16s;
}
.cat-nav a:hover, .cat-nav a.active { color: var(--brand); border-bottom-color: var(--brand); }
.cat-nav .ico { font-size: 17px; }

/* --------------------------------------------------------------------------
   核心业务 / 优势
   ------------------------------------------------------------------------ */

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

.feature {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px 24px;
  transition: all .22s;
}
.feature:hover { border-color: var(--brand-100); box-shadow: var(--shadow); transform: translateY(-3px); }
.feature .ico {
  width: 50px; height: 50px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px;
  background: var(--brand-50); color: var(--brand);
}
.feature .ico svg { width: 25px; height: 25px; }
.feature .ico img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: inherit; display: block;
}
.feature h3 { font-size: 16.5px; margin-bottom: 9px; }
.feature p { font-size: 13.5px; color: var(--text-2); line-height: 1.8; }

/* --------------------------------------------------------------------------
   热租产品
   ------------------------------------------------------------------------ */

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

/* 商品卡片组件样式已移至 base.css（列表页/首页共用，products.html 不引本文件） */

/* --------------------------------------------------------------------------
   行业解决方案
   ------------------------------------------------------------------------ */

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

.solution {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); background: #fff; padding: 30px 26px;
  transition: all .22s;
}
.solution:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--brand-100); }
.solution .ico {
  width: 52px; height: 52px; border-radius: 14px; font-size: 25px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.solution .ico svg { width: 26px; height: 26px; }
.solution .ico img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: inherit; display: block;
}
.solution h3 { font-size: 17.5px; margin-bottom: 10px; }
.solution p { font-size: 13.5px; color: var(--text-2); line-height: 1.85; margin-bottom: 16px; }
.solution ul { display: flex; flex-direction: column; gap: 8px; }
.solution li {
  font-size: 13px; color: var(--text-2);
  display: flex; align-items: flex-start; gap: 8px;
}
.solution li::before {
  content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   流程
   ------------------------------------------------------------------------ */

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.step { text-align: center; padding: 0 12px; position: relative; }
.step:not(:last-child)::after {
  content: ''; position: absolute; top: 25px; left: calc(50% + 30px); right: calc(-50% + 30px);
  height: 2px; background: linear-gradient(90deg, var(--brand-100), var(--brand-50));
}
.step .num {
  width: 52px; height: 52px; margin: 0 auto 15px; border-radius: 50%;
  background: #fff; border: 2px solid var(--brand-100); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 800; position: relative; z-index: 2;
  transition: all .22s;
}
.step:hover .num { background: var(--brand); border-color: var(--brand); color: #fff; transform: scale(1.06); }
.step h4 { font-size: 15px; margin-bottom: 7px; }
.step p { font-size: 12.5px; color: var(--text-3); line-height: 1.75; }

/* --------------------------------------------------------------------------
   客户案例
   ------------------------------------------------------------------------ */

.case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.case {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px 22px; transition: all .2s;
}
.case:hover { border-color: var(--brand-100); box-shadow: var(--shadow); }
.case .quote { font-size: 14px; color: var(--text-2); line-height: 1.85; margin: 14px 0 18px; min-height: 76px; }
.case .who { display: flex; align-items: center; gap: 11px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.case .avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
  color: var(--brand); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
}
.case .who b { display: block; font-size: 13.5px; }
.case .who span { display: block; font-size: 12px; color: var(--text-3); }
.case .stars { color: #f59e0b; font-size: 13px; letter-spacing: 1px; }

/* --------------------------------------------------------------------------
   资讯
   ------------------------------------------------------------------------ */

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; transition: all .22s;
}
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--brand-100); }
.news-cover {
  height: 158px; /* 固定高替代 aspect-ratio（旧内核兼容） */
  background: linear-gradient(140deg, var(--brand-50), #ffe0dd);
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; color: var(--brand); opacity: .9;
  overflow: hidden;
}
.news-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease;
}
.news-card:hover .news-cover img { transform: scale(1.05); }
.news-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.news-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-3); margin-bottom: 10px; }
.news-title { font-size: 15.5px; font-weight: 600; line-height: 1.55; margin-bottom: 9px; min-height: 48px; }
.news-sum { font-size: 13px; color: var(--text-2); line-height: 1.75; flex: 1; }
.news-more { margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--brand); }

/* --------------------------------------------------------------------------
   CTA 区块
   ------------------------------------------------------------------------ */

.cta {
  background: #e1251b;
  border-radius: var(--radius-lg); padding: 48px 44px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  position: relative; overflow: hidden;
}
.cta::after {
  content: ''; position: absolute; right: -60px; bottom: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255, 255, 255, .07);
}
.cta > * { position: relative; z-index: 2; }
.cta h2 { color: #fff; font-size: 27px; margin-bottom: 10px; letter-spacing: -.5px; }
.cta p { color: rgba(255, 255, 255, .88); font-size: 15px; }
.cta .btn-primary { background: #fff; color: var(--brand-dark); flex-shrink: 0; }
.cta .btn-primary:hover { background: #f1f5f9; }
.cta-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cta .btn-accent { background: #ffe14d; color: #7a0c12; box-shadow: 0 8px 22px rgba(90, 8, 12, .3); }
.cta .btn-accent:hover:not(:disabled) { background: #ffd633; color: #7a0c12; }

/* --------------------------------------------------------------------------
   响应式
   ------------------------------------------------------------------------ */

@media (max-width: 1080px) {
  .feature-grid, .product-grid, .case-grid { grid-template-columns: repeat(2, 1fr); }
  .solution-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 38px; }
  .hero-card { max-width: 520px; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .step:nth-child(3)::after { display: none; }
}

@media (max-width: 760px) {
  .hero { padding: 48px 0 60px; }
  .hero h1 { font-size: 28px; letter-spacing: -.6px; }
  .hero-sub { font-size: 15px; }
  .hero-stats { gap: 24px; }
  .hero-stat b { font-size: 24px; }
  .hero-btns { gap: 10px; }
  .hero-btns .btn { flex: 1; min-width: 130px; }
  .feature-grid, .product-grid, .case-grid, .solution-grid, .news-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; row-gap: 26px; }
  .step:not(:last-child)::after { display: none; }
  .cta { flex-direction: column; text-align: center; padding: 34px 22px; gap: 24px; }
  .cta h2 { font-size: 21px; }
  .cta-actions { width: 100%; flex-direction: column; }
  .cta-actions .btn { width: 100%; }
  .step:nth-child(3)::after { display: block; }
}
