/* ==========================================================================
   组件库 - 弧形圆角包裹设计 · 通用可复用模块
   ========================================================================== */

/* ---------- 网格系统 ---------- */
.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, #E8F2F7 0%, #EEF7F0 50%, #F4F7F2 100%);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  padding-top: var(--nav-h);
}

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

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

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(232, 242, 247, 0.92) 0%, rgba(238, 247, 240, 0.7) 50%, transparent 100%);
}

/* 装饰弧线 */
.hero-deco {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.hero-deco.arc1 {
  top: -100px;
  right: -80px;
  width: 400px;
  height: 400px;
  border: 2px solid rgba(143, 193, 219, 0.15);
  border-radius: 50%;
}

.hero-deco.arc2 {
  bottom: -120px;
  left: -100px;
  width: 360px;
  height: 360px;
  border: 2px solid rgba(168, 216, 185, 0.15);
  border-radius: 50%;
}

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

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--blue-soft);
  color: var(--blue-ink);
  font-size: 13px;
  letter-spacing: 1.5px;
  margin-bottom: 26px;
  backdrop-filter: blur(8px);
}

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

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

.hero h1 {
  color: var(--ink);
  font-size: 58px;
  line-height: 1.18;
  letter-spacing: 1px;
  margin-bottom: 24px;
  max-width: 780px;
}

.hero h1 .accent {
  color: var(--blue-deep);
  position: relative;
}

.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 14px;
  background: var(--green-soft);
  z-index: -1;
  border-radius: 7px;
}

.hero .hero-sub {
  color: var(--body);
  font-size: 18px;
  max-width: 580px;
  margin-bottom: 38px;
  line-height: 1.85;
}

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

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 60px;
  padding: 32px 40px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--r-lg);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  max-width: 760px;
}

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

.hero-stats .stat span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
  display: block;
}

/* 滚动提示 */
.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--blue-deep);
  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 var(--blue);
  border-radius: 12px;
  position: relative;
}

.hero-scroll .mouse::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--blue);
  animation: scroll-dot 1.8s infinite;
}

@keyframes scroll-dot {
  0% { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 20px; }
}

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

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

.adv-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--blue-mist);
  opacity: 0.5;
  transition: all 0.35s ease;
}

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

.adv-card:hover::before {
  width: 160px;
  height: 160px;
  background: var(--green-mist);
}

.adv-card .adv-no {
  position: relative;
  z-index: 2;
  font-size: 13px;
  font-family: var(--font-en);
  color: var(--blue);
  letter-spacing: 2px;
  display: block;
  margin-bottom: 20px;
}

.adv-card .adv-ico {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: var(--r-sm);
  background: var(--blue-mist);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.adv-card:hover .adv-ico {
  background: var(--green-mist);
  transform: rotate(-6deg);
}

.adv-card h3 {
  position: relative;
  z-index: 2;
  font-size: 18px;
  margin-bottom: 10px;
}

.adv-card p {
  position: relative;
  z-index: 2;
  font-size: 13.5px;
  color: var(--body);
  line-height: 1.8;
}

/* ==========================================================================
   核心服务列表（图文交替）
   ========================================================================== */
.svc-list {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

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

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

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

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

.svc-media img {
  width: 100%;
  height: 100%;
  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: 20px;
  left: 20px;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue-ink);
  font-size: 12.5px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

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

.svc-body h3 {
  font-size: 26px;
  margin-bottom: 16px;
  line-height: 1.4;
}

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

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

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

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

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

.case-card {
  background: #fff;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s ease;
  display: block;
}

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

.case-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.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-img .case-cat {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue-ink);
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.case-info {
  padding: 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;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.case-meta span {
  font-size: 12px;
  color: var(--blue);
  letter-spacing: 1px;
}

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

/* ==========================================================================
   建站流程步骤
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--blue-soft) 0, var(--blue-soft) 8px, transparent 8px, transparent 16px);
}

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

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

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

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

/* ==========================================================================
   资讯列表
   ========================================================================== */
.news-list {
  margin-bottom: 20px;
}

.news-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  background: #fff;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s ease;
  padding: 16px;
  margin-bottom: 20px;
}

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

.news-item .n-thumb {
  border-radius: var(--r-sm);
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

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

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

.news-item .n-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-item .n-body h4 {
  font-size: 18px;
  margin-bottom: 10px;
  transition: color 0.25s ease;
}

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

.news-item .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 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.news-item .n-foot .date {
  font-size: 13px;
  color: var(--blue);
  font-family: var(--font-en);
}

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

/* ==========================================================================
   CTA 横幅
   ========================================================================== */
.cta-band {
  background: linear-gradient(135deg, var(--blue-ink) 0%, var(--blue-deep) 100%);
  border-radius: var(--r-lg);
  padding: 48px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(168, 216, 185, 0.15);
}

.cta-band::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: 20%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(143, 193, 219, 0.12);
}

.cta-text {
  position: relative;
  z-index: 2;
}

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

.cta-text p {
  color: rgba(251, 252, 250, 0.75);
  font-size: 14.5px;
}

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

/* ==========================================================================
   详情页组件
   ========================================================================== */

/* 详情页大图横幅 */
.detail-banner {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 50px;
  box-shadow: var(--shadow-md);
}

.detail-banner img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.detail-banner .banner-cap {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 30px 36px;
  background: linear-gradient(0deg, rgba(43, 61, 79, 0.88) 0%, transparent 100%);
  color: #fff;
}

.detail-banner .banner-cap h2 {
  color: #fff;
  font-size: 28px;
  margin-bottom: 8px;
}

.detail-banner .banner-cap p {
  color: rgba(251, 252, 250, 0.8);
  font-size: 15px;
}

/* 图文左右块 */
.split-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 50px;
}

.split-block.reverse .split-img {
  order: 2;
}

.split-img {
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 5 / 3;
}

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

.split-text h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

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

.check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--body);
}

.check-list li::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--green-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236FAE85' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

/* 规格卡片网格 */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.spec-card {
  background: #fff;
  border-radius: var(--r-md);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--line);
  transition: all 0.3s ease;
}

.spec-card:hover {
  border-color: var(--blue-soft);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.spec-ico {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border-radius: var(--r-sm);
  background: var(--blue-mist);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.spec-card:hover .spec-ico {
  background: var(--green-mist);
  transform: rotate(-6deg);
}

.spec-card h4 {
  font-size: 16px;
  margin-bottom: 10px;
}

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

/* ==========================================================================
   响应式（组件级）
   ========================================================================== */
@media (max-width: 900px) {
  .adv-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .svc-row,
  .svc-row.reverse {
    grid-template-columns: 1fr;
    gap: 24px;
    direction: ltr;
  }

  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps::before {
    display: none;
  }

  .spec-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-item {
    grid-template-columns: 1fr;
  }

  .news-item .n-thumb {
    aspect-ratio: 16 / 9;
  }

  .cta-band {
    padding: 32px;
    flex-direction: column;
    text-align: center;
  }

  .split-block,
  .split-block.reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .split-block.reverse .split-img {
    order: 0;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-stats {
    gap: 24px;
    padding: 24px;
  }
}

@media (max-width: 560px) {
  .adv-grid,
  .case-grid,
  .steps,
  .spec-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 32px;
  }

  .svc-feat {
    grid-template-columns: 1fr;
  }
}
