/* ========================================
   萬年環球有限公司 - 自定义样式
   Manin Global Co., Ltd. Custom Styles
   ======================================== */

/* -- CSS 变量 -- */
:root {
  --primary-color: #0d6efd;
  --primary-dark: #0a58ca;
  --dark-bg: #1a1a2e;
  --section-padding: 5rem 0;
}

/* -- 全局样式 -- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: #333;
  overflow-x: hidden;
}

/* -- 导航栏 -- */
.navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.navbar-brand {
  font-size: 1.4rem;
  letter-spacing: 1px;
}

.navbar.scrolled {
  background-color: rgba(13, 110, 253, 0.95) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s ease;
}

/* -- 轮播图 Hero -- */
.hero-slide {
  height: 600px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-slide-1 {
  background: linear-gradient(135deg, #0d6efd 0%, #0a3d91 50%, #1a1a2e 100%);
}

.hero-slide-2 {
  background: linear-gradient(135deg, #1a1a2e 0%, #0a58ca 50%, #0d6efd 100%);
}

.hero-slide-3 {
  background: linear-gradient(135deg, #0a3d91 0%, #1a1a2e 50%, #0d6efd 100%);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-content h1 {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-content .lead {
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

/* -- 板块标题 -- */
.section-title {
  position: relative;
  display: inline-block;
}

.title-underline {
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  margin-top: 0.75rem;
}

/* -- 核心优势速览 -- */
.highlight-item {
  padding: 1.5rem 1rem;
  transition: transform 0.3s ease;
}

.highlight-item:hover {
  transform: translateY(-5px);
}

/* -- 企业简介 -- */
.about-img-wrapper {
  width: 100%;
  overflow: hidden;
}

.about-placeholder-img {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, #0d6efd, #0a3d91);
}

/* -- 业务卡片 -- */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12) !important;
}

.business-icon {
  width: 80px;
  height: 80px;
  line-height: 80px;
  margin: 0 auto;
}

/* -- 产品展示 -- */
.product-img-placeholder {
  height: 180px;
  background: linear-gradient(135deg, #e8f0fe, #f0f4ff);
  border-radius: 0.375rem 0.375rem 0 0;
}

.product-item {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.product-item.hidden {
  opacity: 0;
  transform: scale(0.8);
  position: absolute;
  pointer-events: none;
}

/* -- 合作流程 -- */
.step-circle {
  width: 70px;
  height: 70px;
  line-height: 70px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.coop-step:hover .step-circle {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
}

/* -- 联系我们 -- */
.contact-icon {
  width: 45px;
  height: 45px;
  min-width: 45px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.map-placeholder {
  height: 220px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  margin-top: 1.5rem;
}

/* -- 表单 -- */
.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* -- 页脚 -- */
.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

/* -- 回到顶部 -- */
.btn-back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
  padding: 0;
  font-size: 1.2rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.btn-back-to-top.show {
  display: flex;
}

.btn-back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.5);
}

/* ========================================
   响应式适配
   ======================================== */

/* 平板端 */
@media (max-width: 991.98px) {
  .hero-slide {
    height: 450px;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .hero-content .lead {
    font-size: 1rem;
  }

  .about-placeholder-img {
    height: 300px;
  }
}

/* 手机端 */
@media (max-width: 767.98px) {
  .hero-slide {
    height: 380px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content .lead {
    font-size: 0.9rem;
  }

  .hero-content .btn-lg {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  .about-placeholder-img {
    height: 250px;
  }

  .product-img-placeholder {
    height: 140px;
  }

  .map-placeholder {
    height: 180px;
  }

  .step-circle {
    width: 55px;
    height: 55px;
  }

  .btn-back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

/* 超小屏幕 */
@media (max-width: 575.98px) {
  .hero-slide {
    height: 340px;
  }

  .hero-content h1 {
    font-size: 1.25rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}