@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
  /* Refined Color Palette - HSL */
  --primary: 16, 30%, 40%;
  /* Deep Warm Wood #835c49 */
  --secondary: 35, 100%, 55%;
  /* Vibrant Sun Orange #ff9d1c */
  --accent: 195, 80%, 65%;
  /* Soft Sky Blue #5ec2eb */
  --bg-warm: 35, 100%, 97%;
  /* Extra light warm bg #fffaf2 */

  --primary-color: hsl(var(--primary));
  --primary-dark: hsl(16, 30%, 30%);
  --secondary-color: hsl(var(--secondary));
  --secondary-hover: hsl(35, 100%, 45%);
  --accent-color: hsl(var(--accent));

  --text-main: #2d3436;
  --text-light: #636e72;
  --bg-color: #fdfdfd;
  --bg-white: #ffffff;
  --bg-warm-hex: #fff9f0;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  /* Typography */
  --font-main: 'Roboto', sans-serif;
  --font-heading: 'Outfit', sans-serif;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);

  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.btn-primary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
}

.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

/* Navbar */
.navbar {
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 0;
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  color: var(--primary-color);
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.logo-cn {
  font-size: 1.25rem;
  letter-spacing: 0.5px;
}

.logo-en {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.9;
  letter-spacing: 0.2px;
}

.nav-menu {
  display: flex;
  gap: var(--spacing-md);
}

.nav-link {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary-color);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  height: 85vh;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(16, 30, 40, 0.7) 0%,
      rgba(35, 100, 55, 0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: var(--spacing-md);
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: white;
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-lg);
  font-weight: 300;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
}

/* Key Stats */
.stats-section {
  padding: var(--spacing-lg) 0;
  background-color: var(--bg-warm-hex);
  position: relative;
}

.stats-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.stat-item {
  background: var(--bg-white);
  padding: var(--spacing-md);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all 0.3s ease;
  min-width: 280px;
  min-height: 180px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  font-size: 1.8rem;
  margin-bottom: var(--spacing-xs);
  display: block;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--secondary-color);
  display: block;
  font-family: var(--font-heading);
  line-height: 1.2;
}

.stat-label {
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.8;
  margin-top: 0.25rem;
}

/* Page Hero (for sub-pages) */
.page-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: var(--spacing-xl) 0;
  color: white;
}

.page-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(110, 75, 60, 0.85) 0%, rgba(50, 40, 35, 0.9) 100%);
}

.page-hero .img-disclaimer {
  position: absolute;
  bottom: 10px;
  right: 15px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  z-index: 2;
}

/* Section Common */
.section {
  padding: var(--spacing-lg) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-md);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
  position: relative;
}

.section-title span {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--secondary-color);
  letter-spacing: 2px;
  margin-bottom: var(--spacing-xs);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.card {
  background: var(--bg-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.card-img-container {
  height: 160px;
  overflow: hidden;
  position: relative;
}

.card-img-container::after {
  content: '示意图';
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  pointer-events: none;
}

.card-img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-content {
  padding: var(--spacing-md);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  color: var(--primary-dark);
}

.card-text {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, hsl(16, 30%, 25%) 0%, hsl(16, 35%, 18%) 50%, hsl(220, 20%, 15%) 100%);
  color: white;
  padding: 0;
  margin-top: var(--spacing-xl);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-color), var(--secondary-color));
}

.footer-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.footer-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 50px;
}

.footer-wave .shape-fill {
  fill: var(--bg-color);
}

.footer-main {
  padding: calc(var(--spacing-xl) + 20px) 0 var(--spacing-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.footer-brand {
  padding-right: var(--spacing-md);
}

.footer-brand .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--spacing-sm);
}

.footer-brand .logo i {
  color: var(--secondary-color);
}

.footer-brand p {
  opacity: 0.85;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

@media (max-width: 576px) {
  .footer-social {
    justify-content: center;
  }
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
}

.footer-column h4 {
  color: white;
  margin-bottom: var(--spacing-md);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--secondary-color);
}

@media (max-width: 576px) {
  .footer-column h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a::before {
  content: '›';
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--secondary-color);
  padding-left: 0.5rem;
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

@media (max-width: 576px) {
  .footer-contact p {
    justify-content: center;
  }
}

.footer-contact i {
  color: var(--secondary-color);
  font-size: 1rem;
  width: 20px;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  padding: var(--spacing-sm) 0;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 576px) {
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
}

.copyright {
  font-size: 0.9rem;
  opacity: 0.7;
  margin: 0;
  padding: 0;
  border: none;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: var(--secondary-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    flex-direction: column;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
    text-align: center;
  }

  .nav-menu.active {
    display: flex;
  }

  .hero-buttons {
    flex-direction: column;
  }
}

.img-disclaimer {
  position: absolute;
  bottom: 10px;
  right: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  z-index: 2;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: var(--font-main);
  pointer-events: none;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--bg-white);
  width: 90%;
  max-width: 650px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-header {
  background: var(--primary-color);
  color: white;
  padding: var(--spacing-md) var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.modal-close:hover {
  opacity: 1;
}

.modal-body {
  padding: var(--spacing-lg);
}

.booking-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

@media (max-width: 580px) {
  .booking-form {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(35, 87, 85, 0.1);
  /* Based on primary color hsl(175, 42%, 24%) approximate rgb */
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.booking-submit {
  grid-column: 1 / -1;
  background: var(--secondary-color);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  margin-top: 0.5rem;
}

.booking-submit:hover {
  background: hsl(35, 100%, 50%);
  transform: translateY(-2px);
}

.booking-submit:active {
  transform: translateY(0);
}

/* Form Success State */
.booking-success {
  text-align: center;
  padding: var(--spacing-xl) 0;
}

.booking-success i {
  font-size: 4rem;
  color: #4caf50;
  margin-bottom: var(--spacing-md);
}

.booking-success h3 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.booking-success p {
  color: var(--text-light);
}