/* ==========================================================================
   组件库 - 通用可复用模块（金筑财富 · 门垫清新风）
   ========================================================================== */

/* ---------- 网格系统 ---------- */
.grid {
  display: grid;
  gap: 30px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ==========================================================================
   首页 Hero（全屏Banner）
   ========================================================================== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1F3328 0%, #2A4A38 100%);
}

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

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

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(31, 51, 40, 0.88) 0%, rgba(42, 74, 56, 0.5) 60%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  border-radius: var(--r-pill);
  background: rgba(232, 215, 126, 0.16);
  border: 1px solid rgba(232, 215, 126, 0.4);
  color: var(--yellow);
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 26px;
}

.hero-tag .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
  color: #fff;
  font-size: 60px;
  line-height: 1.15;
  letter-spacing: 2px;
  margin-bottom: 24px;
  max-width: 780px;
}

.hero h1 .yel {
  color: var(--yellow);
  position: relative;
}

.hero .hero-sub {
  color: rgba(250, 247, 239, 0.82);
  font-size: 18px;
  max-width: 620px;
  margin-bottom: 38px;
  line-height: 1.8;
}

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

.hero-stats {
  display: flex;
  gap: 50px;
  margin-top: 60px;
  padding-top: 36px;
  border-top: 1px solid rgba(250, 247, 239, 0.15);
  flex-wrap: wrap;
}

.hero-stats .stat strong {
  display: block;
  font-size: 40px;
  color: var(--yellow);
  font-family: var(--font-en);
  line-height: 1;
}

.hero-stats .stat span {
  color: rgba(250, 247, 239, 0.7);
  font-size: 13.5px;
  margin-top: 8px;
  display: block;
}

/* 滚动提示 */
.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(250, 247, 239, 0.6);
  font-size: 12px;
  letter-spacing: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-scroll .mouse {
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(250, 247, 239, 0.4);
  border-radius: 12px;
  position: relative;
}

.hero-scroll .mouse::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 7px;
  background: var(--yellow);
  border-radius: 2px;
  animation: scrollWheel 1.6s infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; top: 7px; }
  100% { opacity: 0; top: 18px; }
}

/* ==========================================================================
   优势板块（首页 - 错落卡片）
   ========================================================================== */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.adv-card {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 34px 28px;
  border: 1px solid var(--line);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

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

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

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

.adv-card .adv-ico {
  width: 56px;
  height: 56px;
  border-radius: var(--r-sm);
  background: var(--green-mist);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: all 0.4s ease;
}

.adv-card:hover .adv-ico {
  background: linear-gradient(135deg, var(--green), var(--green-deep));
}

.adv-card h3 {
  font-size: 19px;
  margin-bottom: 12px;
  color: var(--ink);
}

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

.adv-card .adv-no {
  position: absolute;
  right: 22px;
  top: 18px;
  font-size: 44px;
  font-family: var(--font-en);
  color: var(--cream-3);
  font-weight: 700;
  line-height: 1;
}

/* ==========================================================================
   服务模块（首页 - 大图交错横向递进）
   ========================================================================== */
.svc-list {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

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

.svc-row.reverse .svc-media {
  order: 2;
}

.svc-media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

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

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

.svc-body .step-no {
  font-size: 14px;
  color: var(--yellow-deep);
  letter-spacing: 3px;
  font-family: var(--font-en);
  margin-bottom: 12px;
}

.svc-body h3 {
  font-size: 28px;
  margin-bottom: 18px;
  color: var(--ink);
}

.svc-body > p {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.9;
}

.svc-feat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
}

.svc-feat li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--body);
}

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

/* ==========================================================================
   案例展示（首页 - 网格卡片）
   ========================================================================== */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.case-card {
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  transition: all 0.4s ease;
}

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

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

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

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

.case-card .case-cat {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 14px;
  background: rgba(63, 107, 84, 0.88);
  color: #fff;
  font-size: 12px;
  border-radius: var(--r-pill);
  backdrop-filter: blur(4px);
}

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

.case-card .case-info h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--ink);
}

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

.case-card .case-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--green-soft);
}

.case-card .case-meta .more {
  color: var(--green-deep);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.3s ease;
}

.case-card:hover .case-meta .more {
  gap: 8px;
}

/* ==========================================================================
   资讯列表（首页 - 横向卡片流）
   ========================================================================== */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  background: var(--white);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all 0.35s ease;
}

.news-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(6px);
  border-color: var(--green-soft);
}

.news-item .n-thumb {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 150px;
}

.news-item .n-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-item:hover .n-thumb img {
  transform: scale(1.06);
}

.news-item .n-body {
  padding: 22px 26px 22px 0;
  display: flex;
  flex-direction: column;
}

.news-item .n-body h4 {
  font-size: 17.5px;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.news-item:hover .n-body h4 {
  color: var(--green-deep);
}

.news-item .n-body .n-excerpt {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item .n-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--green-soft);
}

.news-item .n-foot .date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.news-item .n-foot .read {
  color: var(--green-deep);
  font-weight: 600;
}

/* 紧凑文字列表（侧边/相关） */
.news-mini {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-mini .mini-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: var(--r-sm);
  transition: all 0.3s ease;
}

.news-mini .mini-item:hover {
  background: var(--green-mist);
}

.news-mini .mini-item .m-thumb {
  width: 84px;
  height: 64px;
  border-radius: var(--r-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.news-mini .mini-item .m-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-mini .mini-item .m-body h5 {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.news-mini .mini-item:hover .m-body h5 {
  color: var(--green-deep);
}

.news-mini .mini-item .m-body .m-date {
  font-size: 12px;
  color: var(--green-soft);
}

/* ==========================================================================
   CTA 行动召唤
   ========================================================================== */
.cta-band {
  background: linear-gradient(120deg, var(--green-deep) 0%, var(--green-ink) 100%);
  border-radius: var(--r-lg);
  padding: 56px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 215, 126, 0.25) 0%, transparent 70%);
}

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

.cta-band .cta-text p {
  color: rgba(250, 247, 239, 0.7);
  font-size: 15px;
}

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

/* ==========================================================================
   通用卡片/特性
   ========================================================================== */
.feature-card {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 36px 30px;
  border: 1px solid var(--line);
  transition: all 0.4s ease;
  height: 100%;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--green-soft);
}

.feature-card .f-ico {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-mist), var(--cream-2));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

/* 数字步骤 */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
}

.step-item {
  text-align: center;
  position: relative;
}

.step-item .step-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--white);
  border: 2px dashed var(--green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  font-size: 28px;
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--green-deep);
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
}

.step-item:hover .step-circle {
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  color: #fff;
  border-color: var(--green-deep);
  transform: scale(1.05);
}

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

.step-item p {
  font-size: 13.5px;
  color: var(--muted);
  padding: 0 10px;
}

/* ==========================================================================
   响应式组件
   ========================================================================== */
@media (max-width: 1100px) {
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 46px; }
  .svc-row { grid-template-columns: 1fr; gap: 36px; }
  .svc-row.reverse .svc-media { order: 0; }
  .svc-media img { height: 320px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cta-band { flex-direction: column; text-align: center; padding: 40px 30px; }
}

@media (max-width: 700px) {
  .hero { min-height: auto; padding: 80px 0 60px; }
  .hero h1 { font-size: 32px; }
  .hero .hero-sub { font-size: 15px; }
  .hero-stats { gap: 26px; }
  .hero-stats .stat strong { font-size: 28px; }
  .adv-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; }
  .news-item .n-thumb { min-height: 180px; }
  .news-item .n-body { padding: 18px 20px 22px; }
  .svc-feat { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
