/* ===== 桂林鹿鸣国旅 - 全站共用样式（森绿·哑金品牌风） ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green: #2f6b4f;
  /* 森绿主色 */
  --green-dark: #214d3a;
  --gold: #b8944a;
  /* 哑金辅色 */
  --gold-light: #d6bb7f;
  --ink: #2b2b2b;
  --gray: #6b6b6b;
  --bg: #faf7f1;
  --white: #ffffff;
  --line: #e6e0d4;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  color: var(--gold);
}

/* ===== 顶部导航 ===== */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--green);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}

.nav-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  /* width: 42px; */
  height: 42px;
  border-radius: 50%;
  background: transparent;
  object-fit: contain;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--green-dark);
}

.brand-name small {
  display: block;
  font-size: 11px;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 2px;
}

.main-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  color: var(--green);
  border-bottom-color: var(--gold);
}

.lang-switch {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
}

.lang-switch a {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--gray);
}

.lang-switch a.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

/* ===== 页面主体 ===== */
.page {
  max-width: 1280px;
  /* width: 90%; */
  margin: 0 auto;
  padding: 30px 20px 50px;
}

/* 首页横幅 */
.hero {
  border-radius: 14px;
  background:
    linear-gradient(120deg, rgba(47, 107, 79, .9), rgba(47, 107, 79, .55)),
    url('../img/hero.jpg') center/cover no-repeat, var(--green);
  color: #fff;
  padding: 50px 40px;
  margin-bottom: 36px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.hero h1 {
  font-size: 34px;
  margin-bottom: 12px;
}

.hero p {
  font-size: 17px;
  /* max-width: 640px; */
  opacity: .95;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero .badge {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 14px;
}

/* 首页首屏横幅 */
.page-hero {
  width: 100%;
  height: 560px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
}

.carousel-slides,
.carousel-slide {
  width: 100%;
  height: 100%;
}

.carousel-slides {
  position: relative;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  object-fit: cover;
  opacity: 0;
  transition: opacity .7s ease;
}

.carousel-slide.is-active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  padding: 20px;
}

.hero-overlay h1 {
  font-size: 42px;
  margin-bottom: 12px;
}

.hero-overlay p {
  font-size: 18px;
  max-width: 700px;
}

.carousel-control {
  position: absolute;
  top: 50%;
  width: 42px;
  height: 42px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.carousel-control:hover {
  background: rgba(0, 0, 0, .6);
  color: #fff;
}

.carousel-prev {
  left: 18px;
}

.carousel-next {
  right: 18px;
}

.carousel-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .6);
  cursor: pointer;
}

.carousel-dot.is-active {
  background: var(--gold-light);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .75);
}

@media (max-width: 600px) {
  .page-hero {
    height: 300px;
  }

  .hero-overlay h1 {
    font-size: 30px;
  }

  .hero-overlay p {
    font-size: 15px;
  }

  .carousel-control {
    width: 34px;
    height: 34px;
    font-size: 28px;
  }
}

/* 线路页主图 */
.hero-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 30px;
}

/* 区块 */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 34px 0 18px;
}

.section-title {
  font-size: 24px;
  color: var(--green-dark);
  margin: 0;
  padding-left: 12px;
  border-left: 4px solid var(--gold);
  flex: 1;
  scroll-margin-top: 0px;
  margin: 16px 0px;
}

.section-more {
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.section-more:hover {
  text-decoration: underline;
}

.lead {
  color: var(--gray);
  margin-bottom: 20px;
}

/* 行程亮点 / 卡片 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
}

.card h3 {
  font-size: 16px;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.card p {
  font-size: 14px;
  color: var(--gray);
}

/* 分时行程表 */
.itinerary {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.itinerary th {
  background: var(--green);
  color: #fff;
  text-align: left;
  padding: 12px 16px;
  font-size: 14px;
  word-break: break-all;
}

.itinerary td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  vertical-align: top;
  word-break: break-all;
}

.itinerary td:first-child {
  white-space: nowrap;
  color: var(--green-dark);
  font-weight: 600;
}

.itinerary tr:nth-child(even) td {
  background: #f7f4ec;
}

.day-tag {
  display: inline-block;
  background: var(--gold-light);
  color: #fff;
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 999px;
  margin: 18px 0 8px;
}

/* 费用表 */
.fee {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.fee th {
  background: var(--green-dark);
  color: #fff;
  text-align: left;
  padding: 12px 16px;
}

.fee td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.fee td:first-child {
  width: 120px;
  font-weight: 600;
  color: var(--green-dark);
}

/* 预订须知 */
.notice {
  background: #fff8ec;
  border: 1px solid #eedcb4;
  border-radius: 10px;
  padding: 18px 22px;
  margin-top: 26px;
}

.notice h3 {
  color: #a07a2a;
  margin-bottom: 10px;
  font-size: 16px;
}

.notice li {
  margin-left: 18px;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 6px;
}

/* CTA */
.cta {
  text-align: center;
  margin-top: 40px;
  padding: 34px 20px;
  background: linear-gradient(120deg, var(--green), var(--green-dark));
  border-radius: 12px;
  color: #fff;
}

.cta h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.cta p {
  opacity: .9;
  margin-bottom: 16px;
}

.btn {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  padding: 11px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
}

.btn:hover {
  background: var(--gold-light);
  color: #fff;
}

/* 页脚 */
.site-footer {
  background: var(--green-dark);
  color: #cfd9d1;
  padding: 30px 20px;
}

.footer-wrap {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}

.footer-wrap .f-col h4 {
  color: var(--gold-light);
  margin-bottom: 8px;
  font-size: 15px;
}

.footer-wrap a {
  color: #cfd9d1;
}

.footer-wrap a:hover {
  color: var(--gold-light);
}

.copy {
  text-align: center;
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #9fb3a7;
  font-size: 12px;
}

/* 关于/联系 */
.about-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 18px;
}

.about-box h3 {
  color: var(--green-dark);
  margin-bottom: 10px;
}

.about-box p,
.about-box li {
  font-size: 14px;
  color: var(--ink);
}

.about-box ul {
  margin-left: 18px;
}

@media (max-width: 640px) {
  .hero {
    padding: 40px 22px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
  }
}

/* 三图图集 */
.img-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

.img-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
}

.img-item p {
  font-size: 14px;
  color: #555;
  text-align: center;
  margin-top: 6px;
}

.tour-hero img {
  width: 100%;
}

.gallery img {
  width: 100%;
}

h1 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #1a472a;
}

h2 {
  font-size: 22px;
  margin: 28px 0 14px;
  color: #2c5c3c;
  border-left: 4px solid #488c5c;
  padding-left: 12px;
}

.highlight-card {
  background: #f4f9f5;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
}

ul li {
  margin: 8px 0;
  padding-left: 4px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

th,
td {
  border: 1px solid #cbdbcf;
  padding: 12px 14px;
  text-align: left;
}

th {
  background: #e8f1ea;
  color: #1a472a;
}

.note-block {
  background: #fff8e8;
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid #f2bc57;
  margin: 18px 0;
}

/* 线路卡片首页 */
.tour-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 20px 0;
}

.tour-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px #00000014;
}

.tour-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.tour-card-body {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 8px;
  padding: 16px;
  min-height: 170px;
}

.tour-card-body .tour-content {
  min-width: 0;
}

.tour-card-body .tour-content h3 {
  margin: 0 0 8px;
}

.tour-card-body .tour-content p {
  margin: 0;
  line-height: 1.6;
}

.tour-card-body .tour-meta {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  /* max-width: calc(100% - 120px); */
}

.tour-card-body .tour-tag {
  display: inline-block;
  padding: 5px 6px;
  border-radius: 5px;
  background: #f5a623;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.tour-card-body .tour-link {
  justify-self: end;
  align-self: end;
  margin-top: 4px;
  font-size: 0.8rem;
  color: #0e7469;
  font-weight: 600;
  text-decoration: none;
}

.tour-card-body .tour-link:hover {
  text-decoration: underline;
}

/* 移动端适配 */
@media(max-width:768px) {
  .img-row {
    grid-template-columns: 1fr;
  }

  .hero-img {
    height: 240px;
  }

  .page-hero {
    height: 260px;
  }

  .hero-overlay h1 {
    font-size: 26px;
  }

  .tour-grid {
    grid-template-columns: 1fr;
  }
}