/* =========================================
   启程出海官网样式 v1.0（最终优化版）
   说明：
   - 统一白底风格
   - 图文左右结构
   - 移除重复代码
   - 支持响应式布局
========================================= */

:root {
  --primary: #ffffff;
  --accent: #0c2c55;
  --text: #1a1a1a;
  --bg: #ffffff;
  --card-bg: #ffffff;
  --card-shadow: rgba(0, 0, 0, 0.08);
  --link-hover: #1a73e8;
  --footer-bg: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

/* ========== Header ========== */
header {
  background-color: var(--primary);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--text);
}

nav.nav-center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex: 1;
}

nav.nav-center a {
  text-decoration: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  padding: 6px 4px;
  transition: all 0.3s ease;
}

nav.nav-center a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background-color: var(--link-hover);
  transition: width 0.3s ease;
}

nav.nav-center a:hover::after {
  width: 100%;
}

nav.nav-center a:hover,
nav.nav-center a.active {
  color: var(--link-hover);
  font-weight: 600;
}

/* ========== Language Dropdown ========== */
.lang-dropdown {
  position: relative;
  cursor: pointer;
  font-size: 1.3rem;
  margin-left: auto;
  padding: 0.5rem;
}

.lang-icon {
  color: var(--text);
  transition: color 0.3s ease;
}

.lang-dropdown:hover .lang-icon {
  color: var(--link-hover);
}

.lang-menu {
  position: absolute;
  top: 140%;
  right: 0;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: none;
  z-index: 999;
}

.lang-menu div {
  padding: 0.5rem 1rem;
  white-space: nowrap;
  color: #333;
  transition: background 0.3s;
}

.lang-menu div:hover {
  background-color: var(--primary);
}

/* ========== consult ========== */
.customer-service-btn {
  position: fixed;
  top: 100px;
  right: 24px;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #0c2c55, #2d5caa);
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  z-index: 999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.customer-service-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

/* headset 图标 */
.icon-headset {
  width: 22px;
  height: 22px;
  background-image: url("../images/icon-headset.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* tooltip 气泡提示 */
.tooltip {
  position: absolute;
  top: 50%;
  right: 60px;
  transform: translateY(-50%);
  background-color: #0c2c55;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.customer-service-btn:hover .tooltip {
  opacity: 1;
}



/* ========== Carousel ========== */
.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 300px;
  margin-bottom: 2rem;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.carousel-track img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  flex-shrink: 0;
}

.carousel-arrows {
  position: absolute;
  width: 100%;
  top: 50%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 1rem;
}

.carousel-arrows .arrow {
  font-size: 2.2rem;
  color: #ffffff;
  cursor: pointer;
  padding: 0 10px;
  user-select: none;
  transition: color 0.3s ease;
}

.carousel-arrows .arrow:hover {
  color: #66b3ff;
}

.carousel-dots {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
}

.carousel-dots .dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  display: inline-block;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-dots .dot.active {
  background-color: var(--accent);
}

/* ========== Section + Card ========= */
.section {
  padding: 2rem 1.5rem;
  text-align: center;
}

.section-title h2 {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
  margin-bottom: 1.5rem;
}

.card,

.service-card {
  flex: 1 1 calc(48% - 1rem);
  max-width: calc(48% - 1rem);
  background-color: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform, box-shadow;
}

.about-section,
.advantages-section {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 16px var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text);
}

.card:hover,

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.about-section:hover,
.advantages-section:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.about-section,
.advantages-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3rem 2rem;
  margin: 2rem auto;
  gap: 2rem;
  max-width: 1200px;
}

.about-text,
.advantages-text {
  flex: 1;
  text-align: left;
  padding: 0 1rem;
}

.about-text h2,
.advantages-text h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--accent);
}

.about-text p,
.advantages-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}

.about-image,
.advantages-image {
  flex: 1;
}

.about-image img,
.advantages-image img {
  width: 100%;
  max-width: 480px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  border: none;
}

/* ========== Service Cards ========== */
.service-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.service-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.service-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, #0c2c55, #2d5caa); /* 更有质感的渐变 */
  color: #fff;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

/* 白色圆形按钮样式 + 箭头居中 */
.service-header .arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* 箭头图标 */
.service-header .arrow::before {
  content: '';
  width: 10px;
  height: 10px;
  border-top: 2px solid #0c2c55;
  border-right: 2px solid #0c2c55;
  transform: rotate(45deg);
}

/* Hover 动效 */
.service-header .arrow:hover {
  background-color: #e6f2ff;
  transform: scale(1.1);
}
/* ========== Footer ========== */
footer {
  background: var(--footer-bg);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #444;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .carousel {
    height: 200px;
  }
  .carousel-track img {
    height: 200px;
  }
  .about-section,
  .advantages-section {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1rem;
  }
  .about-text,
  .advantages-text {
    padding: 0;
  }
  .cards,
  .service-grid {
    flex-direction: column;
    align-items: center;
  }
  .service-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}




.back-button {
  position: absolute;
  top: 90px;
  left: 20px;
  font-size: 1rem;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent);
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.back-button:hover {
  background-color: var(--accent);
  color: #fff;
}



.service-region-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.region-card {
  width: calc(25% - 1.5rem);
  aspect-ratio: 1 / 1;
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--card-shadow);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.region-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

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

.region-card p {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.85);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
}


@media (max-width: 1024px) {
  .region-card {
    width: calc(50% - 1.5rem);
  }
}
@media (max-width: 600px) {
  .region-card {
    width: 100%;
  }
}
@media (max-width: 768px) {
  .back-button {
    top: 120px;
    left: 16px;
  }
}

html {
  scroll-behavior: smooth;
}

/* ========== Service Highlights Section ========== */
.service-highlights {
  padding: 3rem 1.5rem;
  text-align: center;
}

.service-highlights h2 {
  font-size: 2.2rem; /* 字体大小保持一致 */
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--accent); /* 深蓝色 */
}

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

.highlight-card {
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff; /* 卡片保持白色 */
}

.highlight-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.highlight-text h3 {
  font-size: 1.4rem; /* 字体大小保持一致 */
  font-weight: 600;
  margin-bottom: 1rem;
  color: #fff; /* 修改为白色字体 */
}

.highlight-card.highlight-1 {
  background-color: #0c2c55; /* 深蓝色 */
  color: #fff; /* 字体颜色为白色 */
}

.highlight-card.highlight-2 {
  background-color: #2d5caa; /* 蓝色 */
  color: #fff; /* 字体颜色为白色 */
}

.highlight-card.highlight-3 {
  background-color: #154377; /* 海蓝色 */
  color: #fff; /* 字体颜色为白色 */
}

.highlight-card.highlight-4 {
  background-color: #1071b9; /* 靛蓝色 */
  color: #fff; /* 字体颜色为白色 */
}

@media (max-width: 768px) {
  .highlight-grid {
    grid-template-columns: 1fr 1fr; /* 在移动设备上调整为两列 */
  }

  .highlight-text h3 {
    font-size: 1.4rem;
  }
}

/* ===================== About Us Section ===================== */
.about-page .about-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3rem 2rem;
  background-color: var(--primary); /* 保持背景白色 */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
}

.about-page .about-text {
  flex: 1;
  text-align: left;
  color: #333; /* 文字颜色 */
  font-size: 1.1rem;
  line-height: 1.8;
  padding-right: 2rem;
}

.about-page .about-text h2 {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--accent); /* 深蓝色标题 */
  margin-bottom: 1rem;
}

.about-page .about-text p {
  font-size: 1.1rem;
  color: #333; /* 保持文本颜色一致 */
}

.about-page .about-image {
  flex: 1;
  text-align: center;
}

.about-page .about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .about-page .about-section {
    flex-direction: column; /* 手机端改为垂直布局 */
    text-align: center;
  }
  
  .about-page .about-image {
    margin-top: 2rem;
  }

  .about-page .about-text h2 {
    font-size: 1.8rem; /* 小屏设备上字体略小 */
  }
}

/* ========== Our Story Section ========== */
.our-story-section {
  padding: 4rem 2rem;
  text-align: center; /* Center the text */
  background-color: #ffffff; /* White background */
}

.our-story-text {
  font-size: 1.1rem; /* Match the text size with About Us */
  color: #333333; /* Dark text for good contrast */
  line-height: 1.8; /* Same line height as About Us */
  margin: 0 auto; /* Center the text block */
  max-width: 900px; /* Ensure consistent width with About Us */
  padding: 0 1rem; /* Add padding for good spacing */
}

.our-story-text h2 {
  font-size: 2.2rem; /* Matching title size with About Us */
  font-weight: 700; /* Strong title weight */
  color: #2d5caa; /* Blue for the title */
  margin-bottom: 1.5rem;
}

.our-story-text p {
  font-size: 1rem; /* Same body text size */
  color: #555555; /* Lighter color for the body text */
  margin-bottom: 2rem;
  text-align: justify; /* Justified text */
}

@media (max-width: 768px) {
  .our-story-text h2 {
    font-size: 1.8rem; /* Slightly smaller title on smaller screens */
  }
  .our-story-text p {
    font-size: 0.95rem; /* Smaller text on smaller screens */
  }
}
