/* ==========================================================================
   mrgr.cn - 首页专属样式
   全屏 Hero / 核心优势 / 服务模块 / 案例卡片 / 流程 / CTA
   ========================================================================== */

/* ---------- Hero 全屏 Banner ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 60px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(45, 42, 62, 0.78) 0%, rgba(74, 45, 138, 0.58) 45%, rgba(74, 143, 204, 0.32) 100%);
}

.hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 123, 169, 0.28) 0%, transparent 32%),
    radial-gradient(circle at 82% 78%, rgba(127, 179, 232, 0.30) 0%, transparent 34%),
    radial-gradient(circle at 70% 18%, rgba(155, 126, 222, 0.26) 0%, transparent 30%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 880px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 20px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 13px;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 28px;
}

.hero-tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 123, 169, 0.35);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 123, 169, 0.35); }
  50% { box-shadow: 0 0 0 8px rgba(255, 123, 169, 0.12); }
}

.hero h1 {
  font-size: 60px;
  line-height: 1.16;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 24px;
  font-weight: 800;
}

.hero h1 .grad {
  background: linear-gradient(90deg, var(--pink-soft), var(--blue-soft), var(--purple-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 620px;
  line-height: 1.85;
  margin-bottom: 38px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 720px;
}

.hero-stats .stat {
  text-align: left;
}

.hero-stats .stat strong {
  display: block;
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-en);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.hero-stats .stat span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.hero-scroll span {
  display: block;
  font-size: 10.5px;
  letter-spacing: 3px;
  margin-bottom: 10px;
  font-family: var(--font-en);
}

.hero-scroll .mouse {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  margin: 0 auto;
  position: relative;
}

.hero-scroll .mouse::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  animation: scrollWheel 1.6s infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}

/* ---------- 核心优势卡片 ---------- */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.adv-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 34px 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.adv-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.adv-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--purple-soft);
}

.adv-card:hover::before {
  transform: scaleX(1);
}

.adv-no {
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--purple-soft);
  letter-spacing: 2px;
  font-weight: 700;
}

.adv-ico {
  width: 58px;
  height: 58px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--purple-mist), var(--blue-mist));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0 20px;
}

.adv-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.adv-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.78;
}

/* ---------- 地域/语言标签条 ---------- */
.locale-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 48px;
}

.loc-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--body);
  transition: all 0.25s ease;
}

.loc-tag:hover {
  background: var(--purple-mist);
  color: var(--purple-deep);
  border-color: var(--purple-soft);
  transform: translateY(-2px);
}

.loc-tag .loc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
}

/* ---------- 知识赛道模块（图文交错） ---------- */
.track-list {
  display: flex;
  flex-direction: column;
  gap: 70px;
}

.track-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.track-row.reverse {
  direction: rtl;
}

.track-row.reverse > * {
  direction: ltr;
}

.track-media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}

.track-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.track-media:hover img {
  transform: scale(1.05);
}

.track-media .badge-tag {
  position: absolute;
  top: 22px;
  left: 22px;
  padding: 7px 18px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--purple-deep);
}

.track-body .step-no {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--purple);
  letter-spacing: 3px;
  font-weight: 700;
  margin-bottom: 12px;
}

.track-body h3 {
  font-size: 27px;
  margin-bottom: 16px;
}

.track-body > p {
  font-size: 15px;
  color: var(--body);
  line-height: 1.85;
  margin-bottom: 22px;
}

.track-feat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 26px;
}

.track-feat li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--body);
}

.track-feat li svg {
  flex-shrink: 0;
  color: var(--pink);
}

/* ---------- 案例网格 ---------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.case-card {
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: all 0.35s ease;
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--purple-soft);
}

.case-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.case-card:hover .case-img img {
  transform: scale(1.08);
}

.case-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.92);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--purple-deep);
}

.case-info {
  padding: 22px 24px 24px;
}

.case-info h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.case-info p {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.case-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--muted);
}

.case-meta .more {
  color: var(--purple-deep);
  font-weight: 600;
}

/* ---------- 流程步骤 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.step-item {
  text-align: center;
  padding: 36px 24px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
  transition: all 0.35s ease;
}

.step-item:hover {
  transform: translateY(-6px);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.step-circle {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-en);
  margin: 0 auto 18px;
  box-shadow: var(--shadow-purple);
}

.step-item h4 {
  font-size: 18px;
  margin-bottom: 9px;
}

.step-item p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- CTA 横幅 ---------- */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 50px 56px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--purple-ink) 0%, var(--purple-deep) 55%, var(--pink-deep) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 123, 169, 0.3) 0%, transparent 70%);
}

.cta-text {
  position: relative;
}

.cta-text h3 {
  color: #fff;
  font-size: 26px;
  margin-bottom: 10px;
}

.cta-text p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.cta-actions {
  display: flex;
  gap: 14px;
  position: relative;
  flex-shrink: 0;
}

/* ---------- 首页资讯区块 ---------- */
.home-news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.home-news-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.home-news-side .side-card:first-child {
  background: linear-gradient(135deg, var(--purple-mist), var(--blue-mist));
  border-color: transparent;
}

/* ---------- 首页分类快速入口 ---------- */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.quick-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 24px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.quick-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--purple-soft);
}

.quick-card .qc-ico {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--purple-mist), var(--pink-mist));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: all 0.35s ease;
}

.quick-card:hover .qc-ico {
  background: linear-gradient(135deg, var(--purple), var(--pink));
}

.quick-card:hover .qc-ico svg {
  stroke: #fff;
}

.quick-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.quick-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.quick-card .qc-link {
  font-size: 13px;
  color: var(--purple-deep);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.25s ease;
}

.quick-card:hover .qc-link {
  gap: 10px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .hero h1 { font-size: 46px; }
  .adv-grid,
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .track-row { grid-template-columns: 1fr; gap: 32px; }
  .track-row.reverse { direction: ltr; }
  .home-news-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .hero h1 { font-size: 34px; }
  .hero-sub { font-size: 15px; }
  .cta-band {
    flex-direction: column;
    text-align: center;
    padding: 36px 26px;
  }
  .track-feat { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 28px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero-stats .stat strong { font-size: 26px; }
  .adv-grid,
  .quick-grid,
  .case-grid,
  .steps { grid-template-columns: 1fr; }
}
