/* ===== 全局 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;
}

/* ===== 手机端导航栏：只影响手机，不影响电脑和 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;
  }
}


/* ===== 视频容器 ===== */
.video-section {
    width: 100%;
    height: 600px;
    overflow: hidden;   /* 裁切多余部分 */
    position: relative;
}

/* ===== 视频本体 ===== */
.bg-video {
    width: 100%;
    height: 580px;

    object-fit: cover;  /* 类似 background-size: cover */
    object-position: center; /* 居中裁切 */

    display: block;
}

/* ===== 中间标题 ===== */
.hero-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    text-align: center; /* ✅ 保证内部内容水平居中 */
}

/* 小logo */
.hero-mini-logo {
    width: 400px; /* 你可以随便调 */
    display: block;
    margin: 0 auto -120px auto; 
     filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.video-title {
    color: white;
    font-size: 3rem;
    font-weight: 330;
    letter-spacing: 6px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* ===== 右下角文案 ===== */
.video-caption {
    position: absolute;
    right: 40px;
    bottom: 30px;

    color: rgba(255,255,255,0.85);
    font-size: 14px;
    letter-spacing: 1px;

    /* 提升质感（重点） */
    font-weight: 350;
    opacity: 0.8;
    backdrop-filter: blur(2px); /* 微妙高级感 */
}       

/* 整个度假服务区域 */
.service-section {
    width: 100%;
    padding: 80px 6% 90px; /* 上边距你后面可以改 */
    background: #fff;
    text-align: center;
}

/* 标题始终左右居中 */
.service-title {
    font-size: 30px;
    font-weight: 400;
    letter-spacing: 6px;
    color: #333;
    margin-bottom: 10px;
}

/* 副标题始终左右居中 */
.service-subtitle {
    font-size: 16px;
    color: #7b8190;
    letter-spacing: 1px;
    margin-bottom: 56px;
}

/* 三张卡片外层 */
.service-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

/* 单张卡片 */
.service-card {
    flex: 1;
    max-width: 410px;
    height: 480px;

    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;

    display: flex;
    flex-direction: column;

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* 卡片图片 */
.card-img {
    width: 100%;
    height: 200px;      /* 图片高度固定200px */
    object-fit: cover;  /* 图片不变形，自动裁切 */
    display: block;
    flex-shrink: 0;
}

/* 卡片文本区域 */
.card-body {
    flex: 1;
    padding: 24px 34px 26px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-body h3 {
    font-weight: 350;
    font-size: 24px;
    letter-spacing: 2px;
    color: #333;
    margin-bottom: 5px;
}

.card-body p {
    letter-spacing: 1px;
    font-size: 15px;
    color: #7b8190;
    margin-bottom: 18px;
}

.card-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.card-body li {
    letter-spacing: 1px;
    position: relative;
    padding-left: 18px;
    margin-bottom: 10px;

    font-size: 15px;
    color: #444;
    line-height: 1.5;
}

.card-body li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;

    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #b58a44;
}

/* 了解更多 */
.more-link {
    margin-top: auto;
    padding: 6px 14px;

    color: #d4b173;
    font-size: 15px;
    text-decoration: none;

    border: 1px solid transparent;
    border-radius: 999px;

    transition: 0.25s ease;
}

/* 鼠标停留时出现橙色圆角矩形边框 */
.more-link:hover {
    border-color: #d4b173;
}

/* 屏幕变小：卡片宽度跟着缩小 */
@media (max-width: 1000px) {
  .service-section {
    padding-left: 4%;
    padding-right: 4%;
  }

  .service-cards {
    gap: 18px;
  }

  .card-body {
    padding: 22px 22px 24px;
  }
}

/* 手机端：竖排，每张仍然480px高 */
@media (max-width: 768px) {
  .service-cards {
    flex-direction: column;
    align-items: center;
  }

  .service-card {
    width: 100%;
    max-width: 410px;
    height: 480px;
  }
}

/* 卡片基础过渡（让动画顺滑） */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

/* 👉 悬停：当前卡片放大 + 高亮 */
.service-card:hover {
    transform: scale(1.04);                 /* 轻微放大 */
    box-shadow: 0 20px 40px rgba(0,0,0,0.15); /* 提升层级感 */
    z-index: 2;                              /* 防止被相邻卡片压住 */
}

/* 图片微放大（更有质感，可选但建议） */
.card-img {
    overflow: hidden;
}

.card-img img {
    transition: transform 0.5s ease;
}

.service-card:hover .card-img img {
    transform: scale(1.06);
}

.about-section {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;

    display: flex;
    align-items: center;   /* ✅ 整体上下居中 */
    justify-content: center; /* ✅ 水平居中 */
}

/* 关于环球路书背景图 */
.about-bg {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
    z-index: 1;
}

/* 文字内容 */
.about-content {
    position: relative;
    z-index: 2;

    max-width: 1000px;
    padding: 0 30px;
    text-align: center; /* ✅ 每一行左右居中 */
}

/* 标题 */
.about-content h2 {
    font-size: 30px;
    font-weight: 400;
    letter-spacing: 6px;
    margin-bottom: 30px;
    color: #333;
}

/* 文本 */
.about-content p {
    letter-spacing: 1px;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 16px;
}

/* 高亮句 */
.about-content p.highlight {
    font-size: 20px;
    color: #d4b173;
    font-weight: 500;
    margin-top: 10px;
}

/* ===== 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-weight: 400;
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin-bottom: 22px;
  letter-spacing: 1px;
}

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

.business {
  margin-top: 18px;
}

/* ===== 导航 ===== */
.footer-nav a {
  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 {
  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;
  }
}

