/* Service Page Styles */
/* 通用外壳 */
.page-hero {
  width: 100%;
  height: 260px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.home-hero {
    position: relative;    
}
.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/assets/images/motherboard-bg.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(1); /* 深一点，强调专业感 */
    z-index: 1;
}
.home-hero .hero-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    height: 100%;
    transform: translateY(0%);
  }
  
  /* 每种服务类型的 hero 背景 */
  .motherboard-hero {
    position: relative;
  }
  .motherboard-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/assets/images/motherboard-hero.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(1); /* 深一点，强调专业感 */
    z-index: 1;
  }
  
  .screen-hero {
    position: relative;
  }
  .screen-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/assets/images/screen-hero.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(1); /* 稍微明亮些 */
    z-index: 1;
  }
  
  .upgrade-hero {
    position: relative;
  }
  .upgrade-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/assets/images/upgrade-hero.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(1);
    z-index: 1;
  }
  /* 让 ssd/memory 也共享 upgrade 的背景图 */
.ssd-hero::before,
.memory-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/assets/images/upgrade-hero.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(1);
  z-index: 1;
}
.ssd-hero,
.memory-hero {
  position: relative;
}

  .data-hero {
    position: relative;
  }
  .data-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/assets/images/data-hero.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(1);
    z-index: 1;
  }
  
  .recovery-hero {
    position: relative;
  }
  .recovery-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/assets/images/recovery-hero.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(1);
    z-index: 1;
  }
  
  .replacement-hero {
    position: relative;
  }
  .replacement-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/assets/images/replacement-hero.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(1);
    z-index: 1;
  }

  .contact-hero {
    position: relative;
    height: 180px;
  }
  
  .contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/assets/images/contact-hero.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(1); /* ✅ 深色滤镜，保证白字清晰可见 */
    z-index: 1;
  }

  .examples-hero {
    position: relative;
    height: 180px;
  }
  
  .examples-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/assets/images/examples-hero.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(1); /* ✅ 深色滤镜，保证白字清晰可见 */
    z-index: 1;
  }

  
  /* ⛳️ 确保 .hero-overlay 设置正确的层级 */
  .hero-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    height: 100%;
    transform: translateY(5%);
  }
  
  
  .hero-title {
    color: #fff !important;
    font-size: 1.8rem;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    margin: 0;
  }
  
  .subtitel {
    color: #fff !important;
    font-size: 1rem;
    font-weight: 400;
    margin-top: 0.5rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  }

.service-selection {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem;
}



.service-page .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-page .hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.service-page .content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.service-selection h2 {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 600;
}

.service-selection .description {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.model-note {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  background: #F9FAFB;
  margin-bottom: 2rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-style: italic;
  font-size: 1rem;
  gap: 0.5rem;
}

/* recovery 服务独有的样式 */
.recovery-model-note {
  margin-bottom: 0.1rem; /* 调整 recovery 特有文字的间距 */
  font-weight: bold;    /* 可选：增加一些强调 */
}
.model-note::before {
    content: "\f05a"; /* FontAwesome info-circle */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #3B82F6;
    font-style: normal;
}



.device-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    margin-top: 3rem;
}


.category h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.subtitel {
    text-align: center;
    color: #666;
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

.subcategories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.category-link {
    display: block;
    padding: 0.75rem;
    text-align: center;
    background: var(--light-bg);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.home-main .service-grid {
    row-gap: 4rem; /* 或 gap: 4rem 如果你也想左右间距更大 */
}



.service-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon i {
    font-size: 24px;
    color: #02498f;
}

/* How It Works Section */
.how-it-works {
    padding: 2rem 2rem;
    text-align: center;
    background: white;
}

.how-it-works h3 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.how-it-works > p {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    margin: -1rem auto 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-page .hero {
        padding: 3rem 1rem;
    }

    .service-page .hero h1 {
        font-size: 2rem;
    }

    .service-page .content-wrapper {
        padding: 2rem 1rem;
    }

    .device-categories {
        grid-template-columns: 1fr;
    }

    .subcategories {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
}