/* ===== 全局 reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== 设置网站字体初始值 ===== */
html {
    font-size: 16px;
    font-family: "Cormorant Garamond", serif;
}

/* ===== 导航栏整体 ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #f5f5f5;
    z-index: 1000;
}

/* ===== 内部容器 ===== */
.nav-container {
    display: flex;
    height: 100%;
    width: 100%;
}

/* ===== logo区域 ===== */
.logo {
    display: flex;
    align-items: center;
    /* ⚠️ 关键：固定一个基础宽度，但允许缩小 */
    min-width: 10rem;
   
}

/* 控制logo图片 */
.logo img {
    height: 2.5rem;   /* ✅ 控高度 */
    width: auto;    /* ✅ 保持比例 */
    display: block; /* ✅ 去掉底部间隙 */
    padding-left: 1rem;
    
}

/* ===== 菜单区域 ===== */
.menu {
    flex: 1; 
    /* ⚠️ 吃掉剩余空间 */

    display: flex;

    /* 水平居中 */
    justify-content: center;

    /* 垂直居中 */
    align-items: center;

    gap: 3.7rem;

    /* 防止缩太小挤爆 */
    flex-wrap: wrap;
}

/* ===== 菜单项 ===== */
.menu a {
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
    white-space: nowrap;
}

/* 导航栏点击变色 */
.menu a:hover {
    color: #c6a46a;
}

/* 当前页面导航下划线 */
.menu a.active {
    position: relative;  /* 必须加，才能定位伪元素 */
    color: #c6a46a;      
}

.menu a.active::after {
    content: "";
    position: absolute;
    left: 30%;
    bottom: -8px;  /* 下划线距离文字的间距，可调 */
    width: 40%;
    height: 2px;   /* 下划线高度，可调 */
    background-color: #c6a46a;  /* 下划线颜色，可以自己改 */
    border-radius: 2px; /* 圆角，看起来高级一点 */
}

/* ===== 手机端导航栏：只影响手机，不影响电脑和 iPad ===== */
@media (max-width: 600px) {
  body {
    padding-top: 96px;
  }

  .header {
    height: 96px;
  }

  .nav-container {
    flex-direction: column;
    align-items: stretch;
  }

  .logo {
    width: 100%;
    min-width: 0;
    height: 54px;
    justify-content: center;
    align-items: center;
  }

  .logo img {
    height: 2.35rem;
    padding-left: 1rem;
  }

  .menu {
    flex: none;
    width: 100%;
    height: 42px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;

    gap: 0;
    padding: 0 10px 8px;

    flex-wrap: nowrap;
  }

  .menu a {
    text-align: center;
    font-size: 0.95rem;
    line-height: 1;
    white-space: nowrap;
  }
}


/* ===== 定制旅行最上面封面 ===== */
.cruise-hero {
  position: relative;
  width: 100%;
  height: 580px;
  overflow: hidden;

  color: #fff;
}

/* ===== 背景图 ===== */
.cruise-hero-bg {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  display: block;
  z-index: 1;
}

/* ===== 深色遮罩 ===== */
.cruise-hero-overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to right,
    rgba(5, 15, 22, 0.78),
    rgba(5, 15, 22, 0.42),
    rgba(5, 15, 22, 0.12)
  );

  z-index: 2;
}

/* ===== 左侧主文案 ===== */
.cruise-hero-content {
  position: relative;
  z-index: 3;

  width: 88%;
  max-width: 1500px;
  height: 100%;

  margin: 0 auto;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

/* 主标题 */
.cruise-hero-content h1 {
    font-size: 45px;
    font-weight: 500;
    letter-spacing: 6px;
    margin-bottom: 20px;

  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

/* 副标题 */
.cruise-hero-content h2 {
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 3px;
  margin-bottom: 20px;

  text-shadow: 0 5px 20px rgba(0, 0, 0, 0.35);
}

/* 小字 */

.cruise-hero-content p {
  font-size: 17px;
  letter-spacing: 2px;
  margin-bottom: 42px;
  color: #b19a6e;
}

/* ===== 按钮 ===== */
.cruise-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;

    padding: 13px 28px;

    border: 1px solid #c6a46a;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    letter-spacing: 1px;

    background: rgba(255, 255, 255, 0.04);

    transition: 0.3s ease;
}

/* 按钮里的圆形箭头 */
.cruise-hero-btn span {
  width: 24px;
  height: 24px;

  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 14px;
}

/* 按钮 hover */
.cruise-hero-btn:hover {
  background: rgba(202, 164, 97, 0.9);
  border-color: rgba(202, 164, 97, 0.9);
  transform: translateY(-2px);
}

/* ===== 底部四个优势 ===== */
.cruise-hero-features {
  position: absolute;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);

  z-index: 4;

  width: 88%;
  max-width: 1500px;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
}

/* 单个优势 */
.hero-feature {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 图标圆形框 */
.feature-icon {
  width: 48px;
  height: 48px;

  border: 1px solid rgba(239, 201, 135, 0.65);
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;
}

/* 图标图片 */
.feature-icon img {
  width: 35px;
  height: 35px;
  object-fit: contain;
  display: block;
}

/* 优势标题 */
.hero-feature h3 {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 6px;
}

/* 优势描述 */
.hero-feature p {
    font-size: 13px;
    letter-spacing: 1px;
    line-height: 1.3;
    color: #b19a6e;
}

/* ===== 平板响应式 ===== */
@media (max-width: 1100px) {
  .cruise-hero {
    height: 680px;
  }

  .cruise-hero-content h1 {
    font-size: 48px;
  }

  .cruise-hero-content h2 {
    font-size: 28px;
  }

  .cruise-hero-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 36px;
  }
}

/* ===== 手机响应式 ===== */
@media (max-width: 768px) {
  .cruise-hero {
    height: 720px;
  }

  .cruise-hero-content {
    justify-content: center;
  }

  .cruise-hero-content h1 {
    font-size: 38px;
    letter-spacing: 4px;
  }

  .cruise-hero-content h2 {
    font-size: 22px;
    line-height: 1.6;
    letter-spacing: 2px;
  }

  .cruise-hero-content p {
    font-size: 14px;
    line-height: 1.8;
  }

  .cruise-hero-features {
    bottom: 32px;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .feature-icon {
    width: 42px;
    height: 42px;
  }

  .feature-icon img {
    width: 22px;
    height: 22px;
  }

  .hero-feature h3 {
    font-size: 14px;
  }

  .hero-feature p {
    font-size: 12px;
  }
}

/* ===== 为什么选择环球路书 ===== */
.why-section {
  width: 100%;
  padding: 80px 6%;
  background: #fbf8f3;
}

/* ===== 标题区域 ===== */
.why-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 42px;
}

.why-title span {
  width: 80px;
  height: 1px;
  background: #c9a76a;
}

.why-title h2 {
  font-size: 30px;
  font-weight: 400;
  color: #222;
  letter-spacing: 6px;
}

/* ===== 2行3列卡片 ===== */
.why-grid {
  max-width: 1500px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ===== 单张卡片 ===== */
.why-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #eee4d7;
  border-radius: 12px;
  overflow: hidden;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.035);
  transition: 0.3s ease;
}

/* 图片 */
.why-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;

  transition: 0.6s ease;
}

/* 内容 */
.why-card-content {
  padding: 22px 24px 26px;
  text-align: center;
}

.why-card-content h3 {
  font-size: 22px;
  font-weight: 400;
  color: #b19a6e;
  margin-bottom: 10px;
  letter-spacing: 1.5px;
}

.why-card-content p {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}

/* hover */
.why-card:hover {
  transform: translateY(-6px);
  border-color: #d4b173;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.08);
}

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

/* ===== 平板：2列 ===== */
@media (max-width: 1100px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== 手机：仍然2列 ===== */
@media (max-width: 768px) {
  .why-section {
    padding: 60px 5%;
  }

  .why-title h2 {
    font-size: 26px;
  }

  .why-title span {
    width: 48px;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .why-card img {
    height: 140px;
  }

  .why-card-content {
    padding: 18px 14px 20px;
  }

  .why-card-content h3 {
    font-size: 18px;
  }

  .why-card-content p {
    font-size: 12px;
  }
}

/* ===== 定制旅行方式 ===== */
.custom-mode-section {
  width: 100%;
  padding: 70px 6% 45px;
  background: #fbf8f3;
}

/* 标题区域 */
.custom-mode-header {
  max-width: 1500px;
  margin: 0 auto 28px;
}

.custom-mode-header h2 {
  font-size: 30px;
  font-weight: 400;
  color: #222;
  letter-spacing: 3px;
  margin-bottom: 10px;
}

/* 副标题 */
.custom-mode-header p {
  font-size: 15px;
  color: #666;
  letter-spacing: 1px;
  line-height: 1.8;
}

/* 两张卡片 */
.custom-mode-grid {
  max-width: 1500px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

/* 单张卡片 */
.custom-mode-card {
  position: relative;

  height: 270px;
  display: block;

  overflow: hidden;
  border-radius: 18px;
  text-decoration: none;

  background: #111;
}

/* 图片 */
.custom-mode-card img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  display: block;

  transition: transform 0.7s ease;
}

/* 遮罩 */
.custom-mode-overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.68),
    rgba(0, 0, 0, 0.28),
    rgba(0, 0, 0, 0.05)
  );

  z-index: 1;
}

/* 文字 */
.custom-mode-content {
  position: absolute;
  left: 44px;
  top: 35%;
  transform: translateY(-50%);

  z-index: 2;
  color: #fff;
}

.custom-mode-content h3 {
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.custom-mode-content p {
  font-size: 15px;
  color: rgba(209, 209, 209, 0.86);
  line-height: 1.8;
  letter-spacing: 1px;
}

/* 圆形箭头 */
.custom-mode-arrow {
  position: absolute;
  left: 44px;
  bottom: 34px;

  z-index: 2;

  width: 40px;
  height: 40px;

  border: 1px solid rgba(212, 177, 115, 0.85);
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #d4b173;
  font-size: 18px;

  transition: 0.3s ease;
}

/* hover */
.custom-mode-card:hover img {
  transform: scale(1.08);
}

.custom-mode-card:hover .custom-mode-arrow {
  background: #d4b173;
  color: #fff;
  transform: translateX(4px);
}

/* 平板 */
@media (max-width: 1100px) {
  .custom-mode-card {
    height: 250px;
  }

  .custom-mode-content {
    left: 34px;
  }

  .custom-mode-arrow {
    left: 34px;
  }
}

/* 手机 */
@media (max-width: 768px) {
  .custom-mode-section {
    padding: 60px 5% 40px;
  }

  .custom-mode-header h2 {
    font-size: 28px;
  }

  .custom-mode-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .custom-mode-card {
    height: 230px;
  }

  .custom-mode-content {
    left: 28px;
  }

  .custom-mode-content h3 {
    font-size: 28px;
  }

  .custom-mode-content p {
    font-size: 13px;
  }

  .custom-mode-arrow {
    left: 28px;
    bottom: 28px;
    width: 36px;
    height: 36px;
  }
}

/* ===== footer整体 ===== */
.footer {
  width: 100%;
  background: #fff;
  padding: 60px 6% 32px;
  color: #333;
  border-top: 1px solid #eee;
}

/* ===== footer内部四栏布局 ===== */
.footer-inner {
  max-width: 1500px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 260px 260px 160px 1fr;
  column-gap: 50px;
  align-items: flex-start;
}

/* ===== 左侧品牌区 ===== */
.footer-brand {
  width: 220px;
  text-align: center;
}

.footer-logo {
  margin-bottom: 10px;
}

.footer-logo img {
  width: 90px;
  height: 90px;
  display: block;
  margin: 0 auto;
}

.footer-brand p {
  font-size: 11px;
  color: #6f7685;
  line-height: 1.5;
}

/* ===== 公共标题 ===== */
.footer h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin-bottom: 22px;
  letter-spacing: 1px;
}

/* ===== 服务联系 ===== */
.footer-contact p {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 1px;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 6px;
}

.business {
  margin-top: 18px;
}

/* ===== 导航 ===== */
.footer-nav a {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 1px;
  display: block;
  font-size: 14px;
  color: #555;
  text-decoration: none;
  margin-bottom: 13px;
  transition: 0.25s ease;
}

.footer-nav a:hover {
  color: #c6a46a;
  transform: translateX(4px);
}

/* ===== 关注我们 ===== */
.footer-follow {
  min-width: 0;
}

.qr-list {
  display: grid;
  grid-template-columns: repeat(4, 110px);
  gap: 18px;
  justify-content: start;
}

/* ===== 单个二维码 ===== */
.qr-item {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 1px;
  font-weight: 350;
  text-align: center;
}

.qr-item img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  display: block;

  border: 1px solid #e6e6e6;
  border-radius: 8px;
  margin-bottom: 10px;

  transition: 0.3s ease;
}

.qr-item:hover img {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
}

/* ===== 二维码标签 ===== */
.qr-label {
  display: inline-block;
  padding: 5px 10px;

  font-size: 12px;
  line-height: 1;
  color: #fff;
  border-radius: 999px;
  white-space: nowrap;
}

.qr-label.green {
  background: #25a64a;
}

.qr-label.red {
  background: #ff2b4f;
}

/* ===== 底部备案 ===== */
.footer-bottom {
    margin-top: 40px;
    text-align: center;
    font-size: 12px;
    color: #777;
} 

/* ===== 平板响应式 ===== */
@media (max-width: 1200px) {
  .footer-inner {
    grid-template-columns: 220px 1fr;
    row-gap: 46px;
    column-gap: 150px;
    justify-content: center;
  }

  .footer-brand,
  .footer-nav {
    width: 220px;
    justify-self: start;
    text-align: center;
  }

  .footer-nav a {
    text-align: center;
  }

  .qr-list {
    grid-template-columns: repeat(4, 110px);
  }
}

/* ===== 手机响应式 ===== */
@media (max-width: 768px) {
  .footer {
    padding: 48px 5% 28px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    row-gap: 38px;
    text-align: center;
  }

  .footer-brand {
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
    justify-self: center;
    text-align: center;
  }

  .footer-logo img {
    margin: 0 auto;
  }

  .footer-nav {
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
    justify-self: center;
    text-align: center;
  }

  .footer-nav h3,
  .footer-nav a {
    text-align: center;
  }

  .footer-nav a:hover {
    transform: none;
  }

  .qr-list {
    grid-template-columns: repeat(2, 110px);
    justify-content: center;
    gap: 18px 22px;
  }

  .footer-bottom {
    margin-top: 38px;
    font-size: 12px;
  }
}

