/**
 * 首页重构样式 — 一页一叙事：价值 → 路径 → 平台 → 能力 → 证明 → 行动
 * mobile-guard.css 由 index.html 直接 <link>，勿在此 @import（会阻塞本表解析）
 */

body.home-page {
  padding-top: 55px;
  background: #f8fafc;
  color: #0f172a;
}

.home-shell {
  max-width: 72rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 768px) {
  .home-shell { padding-left: 1.5rem; padding-right: 1.5rem; }
}

/* Hero */
.home-hero {
  background: linear-gradient(165deg, #ecfdf5 0%, #f8fafc 45%, #fff 100%);
  border-bottom: 1px solid #e2e8f0;
  padding: 2.5rem 0 2rem;
}
@media (min-width: 768px) {
  .home-hero { padding: 3.5rem 0 3rem; }
}
.home-hero__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .home-hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; }
}
.home-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #047857;
  background: #fff;
  border: 1px solid #a7f3d0;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.home-hero__badge i { color: #10b981; font-size: 0.5rem; }
.home-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
  margin: 0 0 0.75rem;
}
.home-hero__highlight {
  color: #059669;
}
.home-hero__lead {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.65;
  max-width: 34rem;
  margin: 0 0 1.25rem;
}
.home-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.home-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.home-btn:hover { transform: translateY(-1px); }
.home-btn--primary {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.28);
}
.home-btn--primary:hover { color: #fff; filter: brightness(1.04); }
.home-btn--ghost {
  background: #fff;
  color: #047857;
  border: 1.5px solid #a7f3d0;
}
.home-btn--ghost:hover { background: #ecfdf5; color: #047857; }
.home-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(min(100%, 120px), 1fr));
  gap: 0.6rem;
}
@media (min-width: 640px) {
  .home-hero__stats { grid-template-columns: repeat(4, 1fr); }
}
.home-stat {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.65rem 0.5rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
a.home-stat:hover {
  border-color: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}
.home-stat strong {
  display: block;
  font-size: 1.125rem;
  font-weight: 800;
  color: #059669;
  line-height: 1.2;
}
.home-stat span {
  font-size: 0.6875rem;
  color: #64748b;
}
.home-hero__visual {
  position: relative;
}

/* Hero 三屏小 Banner */
.home-hero-banner {
  position: relative;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}
.home-hero-banner__track {
  position: relative;
  aspect-ratio: 4 / 3;
}
.home-hero-banner__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.home-hero-banner__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.home-hero-banner__photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.home-hero-banner__value {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem 1rem 2.5rem;
  background: linear-gradient(165deg, #ecfdf5 0%, #fff 50%, #f8fafc 100%);
}
.home-hero-banner__value--solo {
  padding-bottom: 2.75rem;
}
.home-hero-banner__value--solo .home-hero-banner__zhizi {
  font-size: clamp(2.75rem, 11vw, 4rem);
  letter-spacing: 0.32em;
  padding-left: 0.32em;
}
.home-hero-banner__value--solo .home-hero-banner__sub {
  max-width: 14rem;
  margin-top: 0.75rem;
  line-height: 1.65;
}
.home-hero-banner__tag {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #047857;
  background: #fff;
  border: 1px solid #a7f3d0;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.home-hero-banner__zhizi {
  margin: 0;
  font-size: clamp(2.25rem, 9vw, 3.25rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.28em;
  padding-left: 0.28em;
  background: linear-gradient(135deg, #047857 0%, #10b981 55%, #059669 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.home-hero-banner__sub {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.5;
  max-width: 16rem;
}
/* 第3屏：logo 墙独占 */
.home-hero-banner__brands {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem 0.85rem 2.5rem;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 40%, #ecfdf5 100%);
}
.home-hero-banner__brands-title {
  margin: 0 0 0.25rem;
  font-size: 0.9375rem;
  font-weight: 800;
  color: #0f172a;
}
.home-hero-banner__brands-desc {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  color: #64748b;
}
.home-hero-banner__logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-items: center;
  align-items: center;
  gap: 0.65rem 0.5rem;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border-top: none;
}
.home-hero-banner__logos img {
  height: 1.125rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  opacity: 0.82;
  filter: grayscale(8%);
  transition: opacity 0.2s, filter 0.2s;
}
.home-hero-banner__logos img:hover {
  opacity: 1;
  filter: none;
}
@media (min-width: 768px) {
  .home-hero-banner__brands-title { font-size: 1.0625rem; }
  .home-hero-banner__logos {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0.75rem 0.55rem;
  }
  .home-hero-banner__logos img { height: 1.35rem; }
  .home-hero-banner__value--solo .home-hero-banner__sub { font-size: 0.875rem; max-width: 16rem; }
}
.home-hero-banner__nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.65rem;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  pointer-events: none;
}
.home-hero-banner__dot {
  pointer-events: auto;
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.22);
  cursor: pointer;
  transition: width 0.2s, background 0.2s;
}
.home-hero-banner__dot.is-active {
  width: 1.25rem;
  background: #10b981;
}
.home-hero-banner__dot:focus-visible {
  outline: 2px solid #10b981;
  outline-offset: 2px;
}

/* 兼容旧类名（若其他页引用） */
.home-hero__img-wrap {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}
.home-hero__img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Section common */
.home-section {
  padding: 3rem 0;
}
.home-section--alt { background: #fff; }
.home-section__head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 1.75rem;
}
.home-section__head h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: #0f172a;
}
.home-section__head p {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
  line-height: 1.6;
}
.home-eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #059669;
  margin-bottom: 0.35rem;
}

/* 用户路径四格 */
.home-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(min(100%, 140px), 1fr));
  gap: 0.75rem;
  align-items: stretch;
}
@media (min-width: 768px) {
  .home-paths { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.home-path {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  height: 100%;
  min-height: 8.5rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.home-path:hover {
  border-color: #10b981;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.1);
  transform: translateY(-2px);
}
.home-path__num {
  font-size: 0.625rem;
  font-weight: 800;
  color: #10b981;
  letter-spacing: 0.08em;
}
.home-path h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0;
  color: #0f172a;
}
.home-path p {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
  flex: 1;
  line-height: 1.45;
}
.home-path__more {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #059669;
  margin-top: auto;
  padding-top: 0.25rem;
}

/* 核心价值 */
.home-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(min(100%, 140px), 1fr));
  gap: 0.75rem;
  align-items: stretch;
}
@media (min-width: 1024px) {
  .home-values { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.home-value {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 9rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.home-value:hover {
  border-color: #6ee7b7;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.08);
}
.home-value__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.65rem;
}
.home-value__icon--green { background: linear-gradient(135deg, #059669, #10b981); }
.home-value__icon--amber { background: linear-gradient(135deg, #d97706, #f59e0b); }
.home-value__icon--blue { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.home-value__icon--violet { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }
.home-value h3 {
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}
.home-value p {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
  flex: 1;
}

/* 能力中心 */
.home-hub {
  display: grid;
  gap: 0.75rem;
  align-items: stretch;
}
@media (min-width: 768px) {
  .home-hub { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.home-hub-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 11rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem;
}
.home-hub-card--featured {
  border-color: #6ee7b7;
  background: linear-gradient(180deg, #ecfdf5, #fff);
}
.home-hub-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.home-hub-card h3 i { color: #10b981; }
.home-hub-card > p {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0 0 0.85rem;
  line-height: 1.5;
  flex: 1;
}
.home-hub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}
.home-hub-links a {
  font-size: 0.75rem;
  font-weight: 600;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s;
}
.home-hub-links a:hover { background: #d1fae5; }

/* 避坑提示 — 单行入口 */
.home-antipattern {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #fff;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 1rem 1.25rem;
}
.home-antipattern p {
  font-size: 0.875rem;
  color: #475569;
  margin: 0;
  flex: 1;
  min-width: 200px;
}
.home-antipattern strong { color: #b91c1c; }
.home-antipattern a {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #059669;
  text-decoration: none;
  white-space: nowrap;
}
.home-antipattern a:hover { text-decoration: underline; }

/* 平台区 */
#platforms.home-platforms {
  background: #fff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}
body.home-page #platformGrid {
  align-items: stretch;
}
body.home-page #platformGrid .platform-card:not(.hidden):not([hidden]) {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 10.5rem;
}
body.home-page #platformGrid .platform-card.hidden,
body.home-page #platformGrid .platform-card[hidden] {
  display: none !important;
}
body.home-page .platform-card .line-clamp-2 {
  flex: 1;
}
body.home-page .platform-card > .flex.justify-between.items-center:last-child {
  margin-top: auto;
}

/* 平台 Tab 选中态（覆盖按钮上的 Tailwind 静态类） */
#platforms .platform-tab[aria-selected="true"] {
  background: #10b981 !important;
  color: #fff !important;
  border-color: #10b981 !important;
  box-shadow: 0 1px 2px rgba(16, 185, 129, 0.2);
}
#platforms .platform-tab[aria-selected="false"] {
  background: #fff !important;
  color: #475569 !important;
  border-color: #e2e8f0 !important;
  box-shadow: none;
}

/* ===== 首页全模块统一：宽度 / 标题 / 间距 / 卡片等高 ===== */
body.home-page main > section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
body.home-page #consult {
  padding-bottom: 3.5rem;
}
body.home-page .home-hero {
  padding-top: 3rem;
  padding-bottom: 2.5rem;
}

/* 旧版区块标题与 home-section__head 对齐 */
body.home-page main .about-head,
body.home-page main .cases-head,
body.home-page main .partner-head,
body.home-page main .consult-head {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.75rem;
  text-align: center;
}
body.home-page main .about-head h2,
body.home-page main .cases-head h2,
body.home-page main .partner-head h2,
body.home-page main .consult-head h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.5rem;
}
body.home-page main .about-desc,
body.home-page main .cases-desc,
body.home-page main .partner-desc,
body.home-page main .consult-desc {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
}

/* 取消各子样式表里的独立 padding / 背景，避免长短不一 */
body.home-page #about,
body.home-page #cases,
body.home-page #partner,
body.home-page #consult {
  padding-top: 0;
  padding-bottom: 0;
  background: transparent;
}

/* 合伙人 / 案例 / 咨询卡片等高 */
body.home-page .partner-hub-grid,
body.home-page .cases-grid,
body.home-page .consult-methods,
body.home-page .consult-faq-grid {
  align-items: stretch;
}
body.home-page .partner-hub-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 12rem;
}
body.home-page .partner-hub-card p {
  margin-bottom: 0.35rem;
}
body.home-page .partner-hub-card ul {
  flex: 1;
}
body.home-page .partner-hub-card__more {
  margin-top: auto;
  padding-top: 0.35rem;
}
body.home-page .cases-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
body.home-page .cases-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
body.home-page .cases-card__body p {
  flex: 1;
}
body.home-page .cases-card__more {
  margin-top: auto;
}
body.home-page .consult-method {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 10rem;
}
body.home-page .consult-method__qr {
  margin-top: auto;
}
body.home-page .consult-faq-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
body.home-page .consult-faq-card p {
  flex: 1;
}

/* 面板圆角与边框统一 */
body.home-page .about-panel,
body.home-page .cases-feature,
body.home-page .consult-panel,
body.home-page .home-antipattern {
  border-radius: 12px;
  border-color: #e2e8f0;
}

/* 导航 / 页脚 / 主体统一内容宽度 */
body.home-page #navbar > .home-shell,
body.home-page #mobileMenu > .home-shell,
body.home-page .micount-footer .home-shell,
body.home-page main .home-shell,
body.home-page > .home-shell {
  max-width: 72rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 768px) {
  body.home-page #navbar > .home-shell,
  body.home-page #mobileMenu > .home-shell,
  body.home-page .micount-footer .home-shell,
  body.home-page main .home-shell,
  body.home-page > .home-shell {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* 流量枢纽与主内容同宽 */
body.home-page .home-shell > .site-traffic-hub {
  margin-top: 0;
}
