/* ============================================
   Service Page Styles
   ============================================ */

/* ===== Page Hero ===== */
.service-hero {
  position: relative;
  width: 100%;
  height: 680px;
  margin-top: var(--header-height);
  overflow: hidden;
}

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

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

.service-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.service-hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.service-hero-content .container {
  margin-left: 260px;
  margin-right: 260px;
  max-width: none;
  width: calc(100% - 520px);
}

.service-hero-content h1 {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--color-text-white);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.service-hero-content p {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.95);
  max-width: 480px;
  line-height: var(--leading-relaxed);
}

/* Page sections with 260px side margins (1920px base) */
.service-about-section .container,
.our-services-section .container,
.our-team-section .container {
  margin-left: 260px;
  margin-right: 260px;
  max-width: none;
  width: calc(100% - 520px);
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 1650px) {
  .service-hero-content .container,
  .service-about-section .container,
  .our-services-section .container,
  .our-team-section .container {
    margin-left: 160px;
    margin-right: 160px;
    width: calc(100% - 320px);
  }
}

@media (max-width: 1399px) {
  .service-hero-content .container,
  .service-about-section .container,
  .our-services-section .container,
  .our-team-section .container {
    margin-left: 120px;
    margin-right: 120px;
    width: calc(100% - 240px);
  }
}

@media (max-width: 1199px) {
  .service-hero-content .container,
  .service-about-section .container,
  .our-services-section .container,
  .our-team-section .container {
    margin-left: 80px;
    margin-right: 80px;
    width: calc(100% - 160px);
  }
}

/* ===== About Us Intro Section ===== */
.service-about-section {
  padding: var(--space-3xl) 0;
}

.service-about-section .section-heading h2 {
  font-size: 36px;
}

.service-about-content {
  margin-bottom: var(--space-3xl);
}

.service-about-content h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-lg);
  line-height: var(--leading-tight);
}

.service-about-content p {
  font-size: var(--text-base);
  color: #0F0F0F;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-md);
}

.service-about-content p:last-child {
  margin-bottom: 0;
}

/* Service Stats Grid */
.service-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

.service-stat-item {
  text-align: center;
  padding: var(--space-xl) 0;
}

.service-stat-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-stat-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-stat-number {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.service-stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* ===== Our Services Section ===== */
.our-services-section {
  padding: var(--space-3xl) 0;
}

.our-services-section .section-heading h2 {
  font-size: 36px;
}

.service-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  margin-bottom: var(--space-3xl);
}

.service-item:last-child {
  margin-bottom: 0;
}

/* 左文右图（默认） */
.service-item .service-item-text {
  order: 1;
}

.service-item .service-item-img {
  order: 2;
}

/* 左图右文（交错） */
.service-item-reverse .service-item-text {
  order: 2;
}

.service-item-reverse .service-item-img {
  order: 1;
}

.service-item-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.service-item-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.service-item-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-primary);
  flex-shrink: 0;
}

.service-item-icon svg {
  width: 100%;
  height: 100%;
}

.service-item-text h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-primary);
}

.service-item-text p {
  font-size: var(--text-base);
  color: #0F0F0F;
  line-height: var(--leading-relaxed);
}

.service-item-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
}

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

/* ===== Our Team Section ===== */
.our-team-section {
  padding: var(--space-3xl) 0;
}

.our-team-section .section-heading h2 {
  font-size: 36px;
}

.our-team-desc {
  margin-bottom: var(--space-3xl);
}

.our-team-desc p {
  font-size: var(--text-base);
  color: #0F0F0F;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-md);
}

.our-team-desc p:last-child {
  margin-bottom: 0;
}

.our-team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.our-team-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.our-team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.our-team-card:hover img {
  transform: scale(1.05);
}

/* ===== Global Layout Section (uses index.html styles) ===== */
.global-layout-section {
  padding: var(--space-3xl) 0;
}

.global-layout-section .section-heading h2 {
  font-size: 36px;
}

.global-layout-section .container {
  margin-left: 260px;
  margin-right: 260px;
  max-width: none;
  width: calc(100% - 520px);
  padding-left: 0;
  padding-right: 0;
}

.global-layout-section .stats-grid {
  justify-content: space-between;
  gap: var(--space-xl);
}

.global-layout-section .global-desc {
  max-width: none;
  margin: 0 0 var(--space-3xl) 0;
  text-align: left;
}

.global-layout-section .global-map-section {
  margin-top: var(--space-3xl);
}

.global-layout-section .world-map-container {
  position: relative;
  max-width: none;
  margin: 0;
}

@media (max-width: 1650px) {
  .global-layout-section .container {
    margin-left: 160px;
    margin-right: 160px;
    width: calc(100% - 320px);
  }
}

@media (max-width: 1399px) {
  .global-layout-section .container {
    margin-left: 120px;
    margin-right: 120px;
    width: calc(100% - 240px);
  }
}

@media (max-width: 1199px) {
  .global-layout-section .container {
    margin-left: 80px;
    margin-right: 80px;
    width: calc(100% - 160px);
  }
}

/* ===== Responsive ===== */
@media (max-width: 1023px) {
  .service-hero {
    height: 360px;
  }

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

  .service-item {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .service-item .service-item-text,
  .service-item .service-item-img,
  .service-item-reverse .service-item-text,
  .service-item-reverse .service-item-img {
    order: unset;
  }

  .service-item-img {
    order: -1 !important;
  }

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

  .global-layout-section .stats-grid {
    flex-wrap: wrap;
    gap: var(--space-xl);
  }
}

@media (max-width: 1023px) {
  .service-about-section .container,
  .our-services-section .container,
  .our-team-section .container,
  .global-layout-section .container {
    margin-left: 40px;
    margin-right: 40px;
    width: calc(100% - 80px);
  }
}

@media (max-width: 767px) {
  .service-hero {
    height: 300px;
  }

  .service-hero-content h1 {
    font-size: 28px;
  }

  .service-hero-content p {
    font-size: var(--text-base);
  }

  .service-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .service-stat-number {
    font-size: 24px;
  }

  .our-team-grid {
    grid-template-columns: 1fr;
  }

  .global-layout-section .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .global-layout-section .stat-number {
    font-size: var(--text-2xl);
  }

  .global-layout-section .stat-label {
    font-size: var(--text-xs);
  }

  .global-layout-section .stat-number-red,
  .global-layout-section .stat-label-red {
    color: var(--color-text-primary);
  }

  .global-layout-section .global-desc p {
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
  }

  .global-layout-section .global-map-section {
    margin-top: var(--space-xl);
  }

  .global-layout-section .map-pin {
    width: 16px;
    height: 22px;
  }

  .service-about-section .container,
  .our-services-section .container,
  .our-team-section .container,
  .global-layout-section .container {
    margin-left: 16px;
    margin-right: 16px;
    width: calc(100% - 32px);
  }

  .service-about-section .section-heading h2,
  .our-services-section .section-heading h2,
  .our-team-section .section-heading h2,
  .global-layout-section .section-heading h2 {
    font-size: var(--text-3xl);
  }
}
