/* ========================================
   1. Design Tokens
======================================== */
:root {
  /* Colors */
  --color-white: #fff;
  --color-black: #111;
  --color-heading: #222;
  --color-text-primary: #333;
  --color-text-secondary: #555;
  --color-text-muted: #666;
  --color-gold: #c6a46a;
  --color-gold-dark: #b58a44;
  --color-gold-light: #d4b173;
  --color-surface-nav: #f5f5f5;
  --color-surface-warm: #fbf8f3;

  /* Typography */
  --font-serif: "Cormorant Garamond", serif;

  /* Layout */
  --header-height: 60px;
  --header-height-mobile: 70px;
  --content-max-width: 1500px;
  --page-gutter: 6%;
  --page-gutter-mobile: 5%;

  /* Shape and motion */
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --transition-fast: 0.25s ease;
  --transition-base: 0.3s ease;
}

/* ========================================
   2. Reset / Base
======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  font-family: var(--font-serif);
}

/* ========================================
   3. Header / Navigation
======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: var(--header-height);
  background: var(--color-surface-nav);
}

.nav-container {
  display: flex;
  width: 100%;
  height: 100%;
}

.logo {
  min-width: 10rem;
  display: flex;
  align-items: center;
}

.logo img {
  width: auto;
  height: 2.5rem;
  display: block;
  padding-left: 1rem;
}

.mobile-menu-toggle,
.mobile-menu-button,
.mobile-home {
  display: none;
}

.menu {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3.7rem;
}

.menu a {
  color: var(--color-text-primary);
  font-size: 1.1rem;
  text-decoration: none;
  white-space: nowrap;
}

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

/* js/main.js adds .active to the current page link. */
.menu a.active {
  position: relative;
  color: var(--color-gold);
}

.menu a.active::after {
  content: "";
  position: absolute;
  left: 30%;
  bottom: -8px;
  width: 40%;
  height: 2px;
  background-color: var(--color-gold);
  border-radius: 2px;
}

/* The checkbox controls the mobile menu without JavaScript. */
@media (max-width: 600px) {
  body {
    padding-top: var(--header-height-mobile);
  }

  .header {
    height: var(--header-height-mobile);
    background: var(--color-white);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  }

  .nav-container {
    position: relative;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px 0 18px;
  }

  .logo {
    width: auto;
    min-width: 0;
    height: 100%;
    justify-content: flex-start;
    align-items: center;
  }

  .logo img {
    height: 2.8rem;
    padding-left: 0;
  }

  .mobile-menu-button {
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
  }

  .mobile-menu-button span {
    width: 27px;
    height: 2px;
    display: block;
    background: #b99555;
    border-radius: 2px;
  }

  .menu {
    position: absolute;
    top: 62px;
    right: 14px;
    width: min(68vw, 270px);
    height: auto;
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(185, 149, 85, 0.12);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(35, 28, 18, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .mobile-menu-toggle:checked ~ .menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .menu a {
    min-height: 54px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid rgba(185, 149, 85, 0.2);
    font-size: 1.08rem;
    line-height: 1.4;
    letter-spacing: 1px;
    text-align: left;
    white-space: nowrap;
  }

  .menu a:last-child {
    border-bottom: 0;
  }

  .menu a.active {
    color: #b58a45;
    background: #faf5eb;
    border-radius: var(--radius-lg);
  }

  .menu a.active::after {
    display: none;
  }

  .mobile-home {
    display: flex;
  }
}

/* ========================================
   4. Shared Hero
======================================== */
/* Shared by the cruise/train and custom-travel pages. */
.cruise-hero {
  position: relative;
  width: 100%;
  height: 580px;
  overflow: hidden;
  color: var(--color-white);
}

.cruise-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.cruise-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to right,
    rgba(5, 15, 22, 0.78),
    rgba(5, 15, 22, 0.42),
    rgba(5, 15, 22, 0.12)
  );
}

.cruise-hero-content {
  position: relative;
  z-index: 3;
  width: 88%;
  max-width: var(--content-max-width);
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.cruise-hero-content h1 {
  margin-bottom: 20px;
  font-size: 45px;
  font-weight: 500;
  letter-spacing: 6px;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.cruise-hero-content h2 {
  margin-bottom: 20px;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 3px;
  text-shadow: 0 5px 20px rgba(0, 0, 0, 0.35);
}

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

.cruise-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 13px 28px;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-sm);
  font-size: 16px;
  letter-spacing: 1px;
  text-decoration: none;
  transition: var(--transition-base);
}

.cruise-hero-btn span {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  font-size: 14px;
}

.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;
  z-index: 4;
  width: 88%;
  max-width: var(--content-max-width);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  transform: translateX(-50%);
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 16px;
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(239, 201, 135, 0.65);
  border-radius: 50%;
}

.feature-icon img {
  width: 35px;
  height: 35px;
  display: block;
  object-fit: contain;
}

.hero-feature h3 {
  margin-bottom: 6px;
  color: var(--color-white);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1px;
}

.hero-feature p {
  color: #b19a6e;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 1px;
}

@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;
  }
}

/* ========================================
   5. Shared Brand Grid
======================================== */
/* Shared by the hotel and cruise/train pages. */
.brand-section {
  width: 100%;
  padding: 70px var(--page-gutter) 80px;
  background: var(--color-surface-warm);
}

.brand-title {
  margin-bottom: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.brand-title span {
  width: 80px;
  height: 1px;
  background: var(--color-gold);
}

.brand-title h2 {
  color: var(--color-heading);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 6px;
}

.brand-grid {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.brand-card {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #eee4d6;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.035);
  transition: var(--transition-base);
}

.brand-card img {
  max-width: 85%;
  max-height: 80px;
  display: block;
  object-fit: contain;
}

.brand-card:hover {
  border-color: var(--color-gold-light);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.08);
  transform: translateY(-5px);
}

.more-brand {
  flex-direction: column;
  gap: 12px;
}

.more-dots {
  color: #b99555;
  font-size: 25px;
  line-height: 1;
  letter-spacing: 8px;
}

.more-brand p {
  color: var(--color-text-primary);
  font-size: 18px;
  letter-spacing: 2px;
}

@media (max-width: 1100px) {
  .brand-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .brand-section {
    padding: 55px var(--page-gutter-mobile) 60px;
  }

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

  .brand-title span {
    width: 52px;
  }

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

  .brand-card {
    height: 115px;
  }

  .brand-card img {
    max-width: 72%;
    max-height: 48px;
  }
}

/* ========================================
   6. QR Consultation Card
======================================== */
/* The homepage and hotel page use the same card with different positioning. */
.video-hero-qr,
.hotel-hero-qr {
  width: 180px;
  padding: 16px 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #303030;
  text-align: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(237, 237, 234, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.video-hero-qr-title,
.hotel-hero-qr-title {
  margin-bottom: 6px;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: 2px;
}

.video-hero-qr-subtitle,
.hotel-hero-qr-subtitle {
  color: #777;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 1px;
}

.video-hero-qr img,
.hotel-hero-qr img {
  width: 112px;
  height: 112px;
  display: block;
  margin: 10px 0;
  object-fit: cover;
  border: 1px solid #e4e4e1;
  border-radius: 9px;
}

.video-hero-qr-footer,
.hotel-hero-qr-footer {
  width: 100%;
  padding-top: 10px;
  color: var(--color-text-secondary);
  border-top: 1px solid rgba(90, 90, 90, 0.16);
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 2px;
}

@media (max-width: 600px) {
  .video-hero-qr,
  .hotel-hero-qr {
    width: 136px;
    padding: 10px 9px 8px;
    border-radius: 12px;
  }

  .video-hero-qr-title,
  .hotel-hero-qr-title {
    margin-bottom: 4px;
    font-size: 14px;
  }

  .video-hero-qr-subtitle,
  .hotel-hero-qr-subtitle {
    font-size: 9px;
  }

  .video-hero-qr img,
  .hotel-hero-qr img {
    width: 84px;
    height: 84px;
    margin: 7px 0;
  }

  .video-hero-qr-footer,
  .hotel-hero-qr-footer {
    padding-top: 7px;
    font-size: 8px;
    letter-spacing: 2px;
  }
}

/* ========================================
   7. Footer
======================================== */
.footer {
  width: 100%;
  padding: 60px var(--page-gutter) 32px;
  color: var(--color-text-primary);
  background: var(--color-white);
  border-top: 1px solid #eee;
}

.footer-inner {
  max-width: var(--content-max-width);
  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 {
  color: #6f7685;
  font-size: 11px;
  line-height: 1.5;
}

.footer h3 {
  margin-bottom: 22px;
  color: var(--color-heading);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
}

.footer-contact p {
  margin-bottom: 6px;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 1px;
}

.business {
  margin-top: 18px;
}

.footer-nav a {
  display: block;
  margin-bottom: 13px;
  color: var(--color-text-secondary);
  font-size: 14px;
  letter-spacing: 1px;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

.footer-follow {
  min-width: 0;
}

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

.qr-item {
  font-weight: 350;
  letter-spacing: 1px;
  text-align: center;
}

.qr-item img {
  width: 110px;
  height: 110px;
  display: block;
  margin-bottom: 10px;
  object-fit: cover;
  border: 1px solid #e6e6e6;
  border-radius: var(--radius-md);
  transition: var(--transition-base);
}

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

.qr-label {
  display: inline-block;
  padding: 5px 10px;
  color: var(--color-white);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

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

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

.footer-bottom {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 12px;
  color: #8a8a8a;
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
}

.footer-bottom a {
  color: #8a8a8a;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--color-text-muted);
}

.police-beian {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.beian-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
}

.footer-separator {
  color: #c6c6c6;
}

/* ========================================
   8. Responsive Footer
======================================== */
@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 var(--page-gutter-mobile) 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;
  }
}
