/* 全局样式 */
body {
  font-family: "Microsoft JhengHei", "微軟正黑體", "SimHei", "黑體", sans-serif;
}

/* 导航栏样式 */
.navbar {
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  top: 48px;
}

@media (max-width: 768px) {
  .navbar {
    top: 0;
  }
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: #0d6efd;
  position: relative;
  padding-bottom: 5px;
}

.navbar-brand:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #0d6efd;
  transition: width 0.3s ease;
}

.navbar-brand:hover:after {
  width: 100%;
}

/* 导航链接样式 */
.navbar-nav .nav-link {
  position: relative;
  padding: 8px 16px;
  font-weight: 500;
  color: #333;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #0d6efd;
}

.navbar-nav .nav-link.active {
  color: #0d6efd;
  font-weight: 600;
}

.navbar-nav .nav-link.active:after {
  content: "";
  position: absolute;
  width: 70%;
  height: 2px;
  bottom: 0;
  left: 15%;
  background-color: #0d6efd;
}

/* 首页特殊样式 */
.section-title {
  position: relative;
  margin-bottom: 45px;
  font-weight: 700;
  letter-spacing: 1px;
}

.section-title:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -15px;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #0d6efd, #5cb5fd);
  transform: translateX(-50%);
}

.home-section {
  padding: 70px 0;
}

.home-section:nth-child(even) {
  background-color: #f8f9fa;
}

/* 轮播图样式 */
.carousel-item img {
  object-fit: cover;
}

.home-carousel {
  margin-bottom: 0;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.home-carousel .carousel-item img {
  height: 500px;
  filter: brightness(0.8);
}

.home-carousel .carousel-caption {
  bottom: 25%;
}

.home-carousel .carousel-caption h2 {
  font-size: 2.8rem;
  font-weight: 700;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.5s ease-out;
}

.home-carousel .carousel-caption p {
  font-size: 1.2rem;
  margin-top: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.7s ease-out;
}

.page-carousel .carousel-item img {
  height: 300px;
}

/* 服务卡片样式 */
.service-card {
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
  border: none;
  position: relative;
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-card img {
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover img {
  transform: scale(1.05);
}

.service-card .card-body {
  padding: 25px;
  position: relative;
  z-index: 1;
}

.service-card .card-title {
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
  position: relative;
  padding-bottom: 12px;
}

.service-card .card-title:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: #0d6efd;
}

/* 特点图标样式 */
.feature-icon {
  font-size: 3rem;
  color: #0d6efd;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.feature-box {
  padding: 30px 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.feature-box:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-box:hover .feature-icon {
  transform: translateY(-10px);
}

.feature-box h5 {
  font-weight: 700;
  margin-bottom: 15px;
}

/* 客户评价样式 */
.testimonial-card {
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  border: none;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.testimonial-card .text-warning {
  margin-bottom: 20px;
}

.testimonial-card .card-text {
  font-style: italic;
  position: relative;
  padding-left: 20px;
}

.testimonial-card .card-text:before {
  content: """;
  font-size: 3rem;
  position: absolute;
  left: -5px;
  top: -25px;
  color: #e9ecef;
}

/* 关于我们页面样式 */
.about-section {
  background-color: #f8f9fa;
  padding: 50px 0;
  border-radius: 10px;
}

/* 联系我们页面样式 */
.contact-card {
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.contact-card:hover {
  transform: translateY(-10px);
}

.contact-info i {
  font-size: 1.5rem;
  color: #0d6efd;
  margin-right: 10px;
}

.map-container {
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 隐私政策页面样式 */
.policy-section {
  background-color: #f8f9fa;
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.policy-section h5 {
  color: #0d6efd;
  margin-bottom: 15px;
}

/* 页脚样式 */
footer {
  background-color: #212529;
  color: white;
  padding: 30px 0;
  border-top: 1px solid #343a40;
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 行动号召区域 */
.cta-section {
  background: linear-gradient(rgba(13, 110, 253, 0.8), rgba(13, 110, 253, 0.9)), url('../images/cta-bg.webp');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 80px 0;
  text-align: center;
  position: relative;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 25px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.cta-section p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 40px auto;
}

.btn-cta {
  background-color: white;
  color: #0d6efd;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-cta:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background-color: #f8f9fa;
}

/* 数字计数器 */
.counter-section {
  padding: 80px 0;
  background-color: #f8f9fa;
  position: relative;
}

.counter-box {
  text-align: center;
  padding: 30px 15px;
  border-radius: 10px;
  background-color: white;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.counter-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.counter-box .counter-icon {
  font-size: 3rem;
  color: #0d6efd;
  margin-bottom: 20px;
}

.counter-box .counter-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.counter-box .counter-text {
  font-size: 1.1rem;
  color: #6c757d;
  font-weight: 500;
}

/* 波浪分隔符 */
.wave-container {
  position: relative;
  background: #0d6efd;
  color: #fff;
  padding: 40px 0;
  text-align: center;
  overflow: hidden;
}

.wave-container h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.wave-container p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

.wave-container::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 50px;
  background-color: #fff;
  clip-path: polygon(
    100% 0%,
    0% 0%,
    0% 65%,
    1% 64.95%,
    2% 64.8%,
    3% 64.6%,
    4% 64.3%,
    5% 63.9%,
    6% 63.45%,
    7% 62.9%,
    8% 62.25%,
    9% 61.55%,
    10% 60.8%,
    11% 59.95%,
    12% 59.05%,
    13% 58.1%,
    14% 57.1%,
    15% 56.05%,
    16% 55%,
    17% 53.9%,
    18% 52.8%,
    19% 51.65%,
    20% 50.5%,
    21% 49.35%,
    22% 48.2%,
    23% 47.05%,
    24% 45.9%,
    25% 44.8%,
    26% 43.75%,
    27% 42.75%,
    28% 41.75%,
    29% 40.8%,
    30% 39.9%,
    31% 39.1%,
    32% 38.35%,
    33% 37.65%,
    34% 37.05%,
    35% 36.5%,
    36% 36.05%,
    37% 35.65%,
    38% 35.35%,
    39% 35.15%,
    40% 35.05%,
    41% 35%,
    42% 35.05%,
    43% 35.2%,
    44% 35.45%,
    45% 35.75%,
    46% 36.15%,
    47% 36.65%,
    48% 37.2%,
    49% 37.85%,
    50% 38.55%,
    51% 39.35%,
    52% 40.2%,
    53% 41.1%,
    54% 42.05%,
    55% 43.05%,
    56% 44.1%,
    57% 45.15%,
    58% 46.3%,
    59% 47.4%,
    60% 48.55%,
    61% 49.7%,
    62% 50.85%,
    63% 52%,
    64% 53.15%,
    65% 54.25%,
    66% 55.35%,
    67% 56.4%,
    68% 57.45%,
    69% 58.4%,
    70% 59.35%,
    71% 60.25%,
    72% 61.1%,
    73% 61.9%,
    74% 62.65%,
    75% 63.3%,
    76% 63.9%,
    77% 64.4%,
    78% 64.85%,
    79% 65.25%,
    80% 65.55%,
    81% 65.8%,
    82% 65.95%,
    83% 66.05%,
    84% 66.1%,
    85% 66.05%,
    86% 65.95%,
    87% 65.75%,
    88% 65.5%,
    89% 65.2%,
    90% 64.85%,
    91% 64.45%,
    92% 64%,
    93% 63.5%,
    94% 62.95%,
    95% 62.35%,
    96% 61.75%,
    97% 61.15%,
    98% 60.5%,
    99% 59.85%,
    100% 59.2%
  );
  z-index: 2;
}

.home-intro-box {
  padding: 30px;
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-top: -50px;
  position: relative;
  z-index: 3;
}

.home-intro-box h3 {
  color: #0d6efd;
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 1.6rem;
}

.home-intro-box p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
}
