/**
 * 慢居 · 民宿短租 — 温暖生活美学主题
 * 设计基调：米白暖调 + 自然木色 + 暖绿点缀
 * 排版：大留白、大圆角、图文错落
 * 纯原生 CSS，无框架依赖
 */

/* ============================================================
   CSS 变量体系 — 暖色主题
   ============================================================ */
:root {
  /* 基底色 — 晨光暖白 */
  --bg-cream: #FDF8F0;
  --bg-white: #FFFFFF;
  --bg-warm: #F5EDE0;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFBF5;

  /* 点缀色 — 自然光谱 */
  --green: #7BA05B;
  --green-light: #E8F0E0;
  --green-dark: #5C7A3E;
  --beige: #D4C5A9;
  --beige-light: #EDE4D3;
  --terracotta: #C17F59;
  --terracotta-light: #F5E6DC;

  /* 文字色阶 — 温暖棕色系 */
  --text-primary: #3C2E20;
  --text-secondary: #6B5D4F;
  --text-muted: #9B8D7E;
  --text-white: #FFFFFF;

  /* 边框 */
  --border-light: #E8DFD3;
  --border-warm: #D4C5A9;

  /* 阴影 — 柔和暖调 */
  --shadow-sm: 0 2px 8px rgba(60, 46, 32, 0.06);
  --shadow-md: 0 4px 20px rgba(60, 46, 32, 0.08);
  --shadow-lg: 0 8px 40px rgba(60, 46, 32, 0.10);
  --shadow-card: 0 2px 16px rgba(60, 46, 32, 0.05);

  /* 圆角 — 大圆角柔和亲切 */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 100px;

  /* 间距 */
  --section-py: 100px;
  --container-max: 1200px;
  --header-h: 76px;

  /* 过渡 */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 180ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;

  /* 字体 — 系统无衬线 + 圆体感标题 + 楷体手写点缀 */
  --font-heading: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'STHeiti', -apple-system, 'Noto Sans SC', sans-serif;
  --font-body: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', sans-serif;
  --font-script: 'KaiTi', 'STKaiti', '楷体', 'Baskerville', 'Georgia', serif;
}

/* ============================================================
   全局重置 & 基础
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body {
  background: var(--bg-cream);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: rgba(123, 160, 91, 0.2);
  color: var(--text-primary);
}

/* 浏览器滚动条完全透明 */
::-webkit-scrollbar { width: 0; height: 0; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-thumb { background: transparent; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol { list-style: none; }

input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
}

input::placeholder, textarea::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

/* ============================================================
   排版
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.6rem;
}

.section-tag--terracotta {
  color: var(--terracotta);
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

.section-subtitle--center {
  margin: 0 auto;
}

/* 手写感文字 */
.text-script {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--terracotta);
  line-height: 1.4;
}

/* ============================================================
   布局容器
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 900px;
}

.container--wide {
  max-width: 1320px;
}

.section {
  padding: var(--section-py) 0;
  overflow-x: hidden;
}

.section--warm {
  background: var(--bg-warm);
}

.section--half {
  padding: 60px 0;
}

/* ============================================================
   Header 头部 — 米白半透明
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  height: var(--header-h);
  background: rgba(253, 248, 240, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--duration-normal) var(--ease-out);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  overflow-x: hidden;
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-right: auto;
  max-width: calc(100vw - 90px);
  overflow: hidden;
}

.header__logo-icon {
  width: 42px;
  height: 42px;
  background: var(--green);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
}

.header__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.header__logo-name {
  font-family: var(--font-script);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.header__logo-sub {
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  font-family: var(--font-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

/* 主导航 */
.header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header__nav-link {
  padding: 8px 16px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  font-weight: 500;
}

.header__nav-link:hover {
  color: var(--green);
  background: var(--green-light);
}

.header__nav-link.active {
  color: var(--green);
  background: var(--green-light);
  font-weight: 600;
}

/* 子导航链接 — 更小更轻 */
.header__nav-link--sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 6px 12px;
}

/* 下拉指示器 — 三横条，像迷你滚动条 */
.nav-dropdown-arrow {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  margin-left: 6px;
  vertical-align: middle;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.header__nav-link:hover .nav-dropdown-arrow,
.header__nav-link.active .nav-dropdown-arrow { opacity: 1; }
.nav-dropdown-arrow span {
  display: block;
  width: 14px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.nav-dropdown-arrow span:nth-child(2) { width: 10px; }
.nav-dropdown-arrow span:nth-child(3) { width: 6px; }

/* 导航下拉 */
.header__nav-item {
  position: relative;
}

.header__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 110px;
  max-height: 150px;
  overflow-y: auto;
  padding: 4px 0;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(60,46,32,0.12);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s, visibility 0.15s;
  z-index: 99999;
  scrollbar-width: thin;
  scrollbar-color: var(--beige) transparent;
}

.header__dropdown::-webkit-scrollbar { width: 4px; }
.header__dropdown::-webkit-scrollbar-track { background: transparent; }
.header__dropdown::-webkit-scrollbar-thumb { background: var(--beige); border-radius: 2px; }

.header__nav-item:hover .header__dropdown,
.header__nav-item:focus-within .header__dropdown {
  opacity: 1;
  visibility: visible;
}

.header__nav-item:hover .header__dropdown {
  opacity: 1;
  visibility: visible;
}

.header__dropdown a {
  display: block;
  padding: 7px 14px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: background 0.15s;
}

.header__dropdown a:hover {
  color: var(--green);
  background: var(--green-light);
}

/* 头部右侧操作区 */
.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 20px;
}

.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: var(--green);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-out);
}

.header__cta:hover {
  background: var(--green-dark);
  box-shadow: 0 4px 16px rgba(123, 160, 91, 0.3);
  transform: translateY(-1px);
  color: #fff;
}

.header__cta--outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}

.header__cta--outline:hover {
  background: var(--green);
  color: #fff;
}

/* ============================================================
   汉堡菜单（移动端）
   ============================================================ */
.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-out);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* 移动端强制显示汉堡 — 绝对定位，永不被logo挤出 */
@media (max-width: 1023px) {
  .hamburger {
    display: flex !important;
    position: absolute !important;
    right: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1010 !important;
    width: 42px !important;
    height: 42px !important;
    box-shadow: 0 2px 8px rgba(60,46,32,0.08);
  }
}

/* 移动端侧滑菜单 */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 80%;
  max-width: 360px;
  background: #fff;
  z-index: 1020;
  transform: translateX(-100%);
  transition: transform var(--duration-normal) var(--ease-out);
  overflow-y: auto;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav__inner {
  padding: 24px;
  padding-top: 80px;
}

.mobile-nav__link {
  display: block;
  padding: 14px 16px;
  font-size: 1rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-out);
  font-weight: 500;
}

.mobile-nav__link:hover {
  color: var(--green);
  background: var(--green-light);
}

.mobile-nav__sub {
  padding-left: 16px;
  display: none;
}

.mobile-nav__sub.open {
  display: block;
}

.mobile-nav__sub a {
  display: block;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
}

.mobile-nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(60, 46, 32, 0.4);
  z-index: 1015;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.mobile-nav__overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================================
   按钮系统
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
}

.btn--primary {
  background: var(--green);
  color: #fff;
}

.btn--primary:hover {
  background: var(--green-dark);
  box-shadow: 0 6px 24px rgba(123, 160, 91, 0.3);
  transform: translateY(-2px);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}

.btn--outline:hover {
  background: var(--green);
  color: #fff;
  transform: translateY(-2px);
}

.btn--terracotta {
  background: var(--terracotta);
  color: #fff;
}

.btn--terracotta:hover {
  background: #A0603C;
  box-shadow: 0 6px 24px rgba(193, 127, 89, 0.3);
  transform: translateY(-2px);
}

.btn--white {
  background: #fff;
  color: var(--text-primary);
}

.btn--white:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn--sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* ============================================================
   卡片系统 — 米白卡片 + 轻阴影
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-card);
}

.card:hover {
  border-color: var(--beige);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.card:hover .card__image img {
  transform: scale(1.06);
}

.card__body {
  padding: 22px;
}

.card__tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green);
  background: var(--green-light);
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.card__meta i {
  color: var(--green);
}

.card__price {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--terracotta);
  margin-top: 10px;
}

.card__price small {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* 无边框卡片 */
.card--borderless {
  border: none;
  box-shadow: var(--shadow-sm);
}

.card--borderless:hover {
  box-shadow: var(--shadow-md);
}

/* ============================================================
   首页 — Hero Banner
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
}

.hero .swiper {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg,
    rgba(60, 46, 32, 0.25) 0%,
    rgba(60, 46, 32, 0.08) 45%,
    rgba(60, 46, 32, 0.45) 100%);
}

.hero__content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  font-weight: 400;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__btn-primary {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 15px 36px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
}

.hero__btn-primary:hover {
  background: var(--green-dark);
  box-shadow: 0 8px 30px rgba(123, 160, 91, 0.4);
  transform: translateY(-2px);
}

.hero__btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
  padding: 15px 36px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
}

.hero__btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  transform: translateY(-2px);
}

/* Hero Swiper 分页 */
.hero-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.hero-pagination .swiper-pagination-bullet {
  width: 28px; height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.4);
  opacity: 1;
  transition: all 0.3s;
}
.hero-pagination .swiper-pagination-bullet-active {
  width: 40px;
  background: #fff;
}

/* ============================================================
   首页 — 精选民宿
   ============================================================ */
.featured-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 16px;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  overflow: hidden;
}

/* ============================================================
   首页 — 房东故事（左图右文）
   ============================================================ */
.story-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.story-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-warm);
  box-shadow: var(--shadow-md);
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-image::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  width: 100px;
  height: 100px;
  border-top: 3px solid var(--beige);
  border-left: 3px solid var(--beige);
  border-radius: var(--radius-sm) 0 0 0;
  z-index: 1;
}

.story-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.story-text p {
  color: var(--text-secondary);
  line-height: 1.9;
  font-size: 1.02rem;
}

.story-text .text-script {
  margin-bottom: 0;
}

/* ============================================================
   首页 — 房源分类
   ============================================================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  overflow: hidden;
}

.category-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
}

.category-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.category-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--green);
  transition: all var(--duration-normal) var(--ease-out);
}

.category-card:hover .category-card__icon {
  background: var(--green);
  color: #fff;
  transform: scale(1.1);
}

.category-card__name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.category-card__count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================================
   首页 — 实景细节（Swiper画廊）
   ============================================================ */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  overflow: hidden;
}

/* ============================================================
   区块标题 / 列表容器 / 表单行
   桌面保留大留白，移动端由 media query 收紧（见文件末尾）
   ============================================================ */
.section-head { text-align: center; margin-bottom: 44px; }
.section-head .section-subtitle { margin: 0 auto; }
.section-more { text-align: center; margin-top: 32px; }
.show-mobile-btn { display: none; }

/* 预订页双列表单行 */
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* 首页数据条 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

/* 关于页正文段落 */
.story-section--about { margin-bottom: 60px; }

/* 全局强制：禁止一切水平溢出 */
html, body, header, footer, section, main, nav,
.container, .section, .header, .footer,
.swiper, .swiper-wrapper, .swiper-slide,
.property-grid, .category-grid, .list-grid, .testimonial-grid, .related-grid, .detail-grid,
.hero, .hero__content, .hero__overlay,
.inner-banner, .inner-banner__content,
.breadcrumb-bar, .breadcrumb,
.filter-bar-wrap, .filter-bar,
.contact-grid, .booking-section,
.footer__grid, .footer__bottom,
.pagination, .stats, .features, .guide-section,
.news-list-item, .search-result-item {
  overflow-x: hidden !important;
}

.detail-slide {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  position: relative;
}

.detail-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-slide__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(60, 46, 32, 0.7));
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
}

/* ============================================================
   首页 — 住客分享
   ============================================================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--duration-normal) var(--ease-out);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.testimonial-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-warm);
}

.testimonial-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-card__name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-card__date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.testimonial-card__quote {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-style: italic;
}

.testimonial-card__quote::before {
  content: '\201C';
  font-size: 2rem;
  color: var(--green);
  line-height: 0;
  vertical-align: -0.3em;
  margin-right: 2px;
}

/* ============================================================
   首页 — CTA 区域
   ============================================================ */
.cta-section {
  text-align: center;
  padding: 90px 0;
  position: relative;
  background: var(--bg-warm);
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--beige) 20%,
    var(--green) 50%,
    var(--beige) 80%,
    transparent 100%);
}

.cta-section__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.8rem;
}

.cta-section__subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

/* ============================================================
   内页 Banner
   ============================================================ */
.inner-banner {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: var(--bg-warm);
}

.inner-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.inner-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(60, 46, 32, 0.4) 0%,
    rgba(60, 46, 32, 0.2) 50%,
    rgba(60, 46, 32, 0.55) 100%);
}

.inner-banner__content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.inner-banner__title {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.inner-banner__subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
}

/* 面包屑 */
.breadcrumb-bar {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 14px 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color var(--duration-fast);
}

.breadcrumb a:hover {
  color: var(--green);
}

.breadcrumb i {
  font-size: 0.6rem;
  color: var(--beige);
}

/* ============================================================
   列表页 — 子栏目过滤栏
   ============================================================ */
.filter-bar-wrap {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: var(--header-h);
  z-index: 40;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 0;
}

.filter-bar a {
  display: inline-flex;
  padding: 8px 20px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all var(--duration-fast) var(--ease-out);
  flex-shrink: 0;
}

.filter-bar a:hover,
.filter-bar a.active {
  color: var(--green);
  border-color: var(--green);
  background: var(--green-light);
}

/* ============================================================
   列表页 — 网格布局
   ============================================================ */
.list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.list-grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

.list-grid--4col {
  grid-template-columns: repeat(4, 1fr);
}

.list-header {
  text-align: center;
  margin-bottom: 48px;
}

.list-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  margin-bottom: 0.5rem;
}

/* ============================================================
   详情页
   ============================================================ */
.detail {
  max-width: 900px;
  margin: 0 auto;
}

/* 详情大图轮播 */
.detail-gallery {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
}

.detail-gallery .swiper-slide {
  aspect-ratio: 16 / 9;
}

.detail-gallery .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 详情头部 */
.detail__header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.detail__title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}

.detail__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.detail__meta-row i {
  margin-right: 4px;
  color: var(--green);
}

/* 参数卡片 */
.detail__params {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}

.detail__param {
  padding: 18px;
  background: var(--bg-warm);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  text-align: center;
}

.detail__param-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.detail__param-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

/* 正文 */
.detail__body {
  color: var(--text-secondary);
  line-height: 2;
  font-size: 0.98rem;
  letter-spacing: 0.015em;
}

.detail__body img {
  border-radius: var(--radius-lg);
  margin: 28px 0;
  max-width: 100%;
}

.detail__body p { margin-bottom: 16px; }

.detail__body h2, .detail__body h3, .detail__body h4 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin-top: 36px;
  margin-bottom: 16px;
}

/* 上下篇导航 */
.detail__pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.detail__pager a {
  color: var(--text-secondary);
  transition: color var(--duration-fast);
  font-weight: 500;
}

.detail__pager a:hover {
  color: var(--green);
}

/* 相关推荐 */
.related-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 56px 0 24px;
  color: var(--text-primary);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ============================================================
   联系我们/预订页
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  transition: all var(--duration-fast) var(--ease-out);
  box-shadow: var(--shadow-sm);
}

.contact-info__item:hover {
  border-color: var(--beige);
  box-shadow: var(--shadow-md);
}

.contact-info__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-info__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.contact-info__value {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* 联系表单卡片 */
.contact-form-card {
  padding: 36px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}

.form-group label .required {
  color: var(--terracotta);
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-cream);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.93rem;
  transition: all var(--duration-fast) var(--ease-out);
}

.form-control:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-light);
  background: #fff;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239B8D7E' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* ============================================================
   搜索页
   ============================================================ */
.search-box {
  max-width: 700px;
  margin: 0 auto;
}

.search-form-row {
  display: flex;
  gap: 10px;
}

.search-form-row input {
  flex: 1;
  padding: 16px 22px;
  padding-left: 48px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.98rem;
  box-shadow: var(--shadow-sm);
}

.search-form-row input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-light);
}

.search-input-wrap {
  position: relative;
  flex: 1;
}

.search-input-wrap i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
}

.search-result-item {
  display: flex;
  gap: 18px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}

.search-result-item:hover {
  border-color: var(--beige);
  box-shadow: var(--shadow-md);
}

.search-result-item__thumb {
  width: 120px;
  height: 90px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-warm);
}

.search-result-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-item__info {
  flex: 1;
  min-width: 0;
}

.search-result-item__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-item__date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.search-result-item__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   预订页 — 日历/房型选择
   ============================================================ */
.booking-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.booking-summary {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.booking-summary__price {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--terracotta);
}

/* ============================================================
   关于我们 — 时间轴
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--beige);
}

.timeline__item {
  position: relative;
  padding-bottom: 36px;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 4px;
  width: 12px;
  height: 12px;
  background: var(--green);
  border-radius: 50%;
  border: 3px solid var(--green-light);
}

.timeline__year {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline__text {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   分页
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 48px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
  border: 1px solid var(--border-light);
  background: #fff;
}

.pagination a:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-light);
}

.pagination .active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  font-weight: 600;
}

.pagination .disabled {
  color: var(--text-muted);
  pointer-events: none;
  opacity: 0.5;
}

/* ============================================================
   空状态
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 64px 20px;
}

.empty-state i {
  font-size: 3.5rem;
  color: var(--beige);
  margin-bottom: 16px;
  display: block;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ============================================================
   Footer 底部 — 暖色四列布局
   ============================================================ */
.footer {
  background: var(--bg-warm);
  border-top: 1px solid var(--border-light);
}

.footer__top-line {
  height: 3px;
  background: linear-gradient(90deg,
    var(--green) 0%,
    var(--beige) 40%,
    var(--terracotta) 100%);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 64px 0 44px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.footer__brand-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 16px 0;
}

.footer__social {
  display: flex;
  gap: 10px;
}

.footer__social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  border: 1px solid var(--border-light);
  transition: all var(--duration-fast) var(--ease-out);
}

.footer__social a:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.footer__col-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color var(--duration-fast);
}

.footer__links a:hover {
  color: var(--green);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.footer__contact-item i {
  color: var(--green);
  margin-top: 4px;
  flex-shrink: 0;
}

.footer__qrcode {
  width: 120px;
  height: 120px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}

.footer__bottom {
  border-top: 1px solid var(--border-light);
  padding: 20px 0;
}

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 10px;
}

.footer__bottom a {
  color: var(--text-muted);
  transition: color var(--duration-fast);
}

.footer__bottom a:hover {
  color: var(--green);
}

/* ============================================================
   友情链接
   ============================================================ */
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding: 18px 0;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.friend-links__label {
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-shrink: 0;
  font-weight: 500;
}

.friend-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--duration-fast);
  padding: 4px 12px;
  background: #fff;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}

.friend-links a:hover {
  color: var(--green);
  border-color: var(--green);
}

/* ============================================================
   在线客服按钮（右下角暖色）
   ============================================================ */
.online-service {
  position: fixed;
  right: 24px;
  bottom: 100px;
  z-index: 90;
}

.online-service__btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 20px rgba(193, 127, 89, 0.4);
  transition: all var(--duration-normal) var(--ease-out);
}

.online-service__btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(193, 127, 89, 0.5);
}

/* 在线客服弹窗 */
.online-service__panel {
  position: fixed;
  right: 24px;
  bottom: 170px;
  width: 320px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 89;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all var(--duration-normal) var(--ease-out);
}

.online-service__panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.online-service__header {
  padding: 18px 22px;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.online-service__close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  opacity: 0.8;
}

.online-service__close:hover { opacity: 1; }

.online-service__body {
  padding: 22px;
}

/* ============================================================
   返回顶部
   ============================================================ */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 36px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-sm);
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
}

.back-top:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

/* ============================================================
   Tab 切换（房源详情/预订）
   ============================================================ */
.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 28px;
  flex-wrap: wrap;
}


.tab-nav__item {
  padding: 14px 24px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.tab-nav__item:hover {
  color: var(--text-primary);
}

.tab-nav__item.active {
  color: var(--green);
  border-bottom-color: var(--green);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ============================================================
   News / Guide list items
   ============================================================ */
.news-list-item {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.news-list-item:hover {
  border-color: var(--beige);
  box-shadow: var(--shadow-md);
}

.news-list-item__thumb {
  width: 200px;
  min-height: 140px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-warm);
}

.news-list-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-list-item__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-list-item__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.news-list-item__date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.news-list-item__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   动画系统
   ============================================================ */

/* 淡入上移 */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* 缓缓浮动 */
@keyframes floatUpDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* 轻微呼吸 */
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(123, 160, 91, 0.3); }
  50% { box-shadow: 0 0 0 12px rgba(123, 160, 91, 0); }
}

/* Hero entrances */
.hero__title {
  animation: fadeInUp 0.8s var(--ease-out) both;
}

.hero__subtitle {
  animation: fadeInUp 0.8s var(--ease-out) 0.15s both;
}

.hero__actions {
  animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

/* CTA button pulse */
.btn--primary.pulse {
  animation: breathe 2.5s ease-in-out infinite;
}

/* 图片 scale 入场 */
.img-reveal {
  opacity: 0;
  transform: scale(0.95);
  transition: all var(--duration-slow) var(--ease-out);
}

.img-reveal.visible {
  opacity: 1;
  transform: scale(1);
}

/* AOS 覆盖 — 更柔和的缓动 */
[data-aos] {
  transition-timing-function: var(--ease-out) !important;
}

/* ============================================================
   AOS 暖色覆盖
   ============================================================ */
[data-aos="fade-up"] {
  transform: translateY(24px);
}

[data-aos="fade-up"].aos-animate {
  transform: translateY(0);
}

/* ============================================================
   响应式 — 平板 (768px - 1023px)
   ============================================================ */
@media (max-width: 1023px) {
  :root {
    --section-py: 72px;
  }

  .header__nav,
  .header__actions {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .story-section {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .property-grid,
  .list-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .booking-section {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail__pager {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .news-list-item {
    flex-direction: column;
  }

  .news-list-item__thumb {
    width: 100%;
    min-height: 180px;
  }
}

/* ============================================================
   响应式 — 移动端 (< 768px)（移动优先重排，非桌面压缩）
   ============================================================ */
@media (max-width: 767px) {
  :root {
    --section-py: 40px;
    --header-h: 58px;
    --container-max: 100%;
    --radius-lg: 14px;
    --radius-xl: 18px;
  }

  body { font-size: 14.5px; line-height: 1.72; }
  .container { padding: 0 16px; }

  /* main.js 里 AOS.init 的 disable 传的是函数，AOS 只认 true/'mobile'/'phone'，
     函数永远不会被调用 —— 结果移动端所有 [data-aos] 停在初始 translate(±100px)，
     造成横向溢出与卡片互相压盖。这里从样式层统一关掉。 */
  [data-aos] { transform: none !important; opacity: 1 !important; transition: none !important; }

  /* ---------- 顶栏 ---------- */
  .header__inner { height: var(--header-h); padding: 0 16px; }

  /* ---------- 首屏 ---------- */
  .hero { height: 62vh; min-height: 420px; max-height: 520px; }
  .hero__content { padding: 0 16px 58px; }
  .hero__title { font-size: clamp(1.6rem, 7.6vw, 2.1rem); line-height: 1.25; }
  .hero__subtitle { font-size: 0.88rem; line-height: 1.6; margin-top: 8px; }
  .hero__actions { flex-direction: column; gap: 10px; margin-top: 20px; }
  .hero__btn-primary,
  .hero__btn-outline {
    width: 100%; justify-content: center; padding: 13px 20px; font-size: 0.88rem;
  }
  .hero-pagination { bottom: 18px; }

  .inner-banner { height: 178px !important; }
  .inner-banner__content { padding: 0 16px 20px; }
  .inner-banner__title { font-size: 1.34rem; }
  .inner-banner__subtitle { font-size: 0.82rem; }
  .breadcrumb { padding: 10px 16px; font-size: 0.75rem; }

  /* ---------- 区块标题 ---------- */
  .section-head { margin-bottom: 22px; }
  .section-title { font-size: 1.32rem; }
  .section-subtitle { font-size: 0.85rem; line-height: 1.62; }
  .featured-header {
    flex-direction: column; align-items: center;
    text-align: center; gap: 12px; margin-bottom: 22px;
  }
  .featured-header .btn { width: 100%; justify-content: center; }
  .section-more { margin-top: 20px; }
  .list-header { margin-bottom: 22px; }
  .list-header h1 { font-size: 1.4rem; }

  /* ---------- 横滑卡片行（精选民宿 / 住客分享 / 推荐） ----------
     注：本站有全局 overflow-x:hidden!important，横滑容器必须显式加 !important 才能生效 */
  .property-grid.scroll-row,
  .testimonial-grid.scroll-row,
  .related-grid {
    display: flex; gap: 12px;
    overflow-x: auto !important; overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -16px; padding: 2px 16px 10px;
  }
  .property-grid.scroll-row::-webkit-scrollbar,
  .testimonial-grid.scroll-row::-webkit-scrollbar,
  .related-grid::-webkit-scrollbar { display: none; }

  .property-grid.scroll-row .card { flex: 0 0 74vw; max-width: 292px; scroll-snap-align: start; }
  .property-grid.scroll-row .card__image { aspect-ratio: 4 / 3; }
  .testimonial-grid.scroll-row .testimonial-card { flex: 0 0 82vw; max-width: 320px; scroll-snap-align: start; }
  .related-grid .card { flex: 0 0 62vw; max-width: 246px; scroll-snap-align: start; }

  /* ---------- 列表页卡片：图左文右紧凑行 ---------- */
  .list-grid { grid-template-columns: 1fr !important; gap: 12px; }
  .list-grid .card {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    align-items: stretch;
  }
  .list-grid .card__image { aspect-ratio: auto; height: 100%; min-height: 112px; }
  .list-grid .card__body { padding: 12px 14px; }
  .list-grid .card__desc { display: none; }
  /* 周边配套文字很长，压成一行省略号，让面积始终留在同一行 */
  .list-grid .card__meta { flex-wrap: nowrap; gap: 8px; margin-top: 10px; padding-top: 10px; }
  .list-grid .card__meta > span:first-child {
    min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .list-grid .card__meta > span:last-child { flex-shrink: 0; white-space: nowrap; }
  .list-grid .card__title { margin-bottom: 0; line-height: 1.4; }

  .card__body { padding: 16px; }
  .card__title { font-size: 1rem; }
  .card__desc { font-size: 0.82rem; }
  .card__meta { font-size: 0.74rem; gap: 10px; }
  .card__price { font-size: 1.2rem; margin-top: 8px; }
  .card__price small { font-size: 0.72rem; }

  /* ---------- 房源分类：2×2 紧凑块 ---------- */
  .category-grid { grid-template-columns: 1fr 1fr; gap: 10px; overflow: visible !important; }
  .category-card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 10px;
    text-align: left;
    padding: 14px 12px;
  }
  .category-card__icon {
    grid-row: 1 / 3; width: 40px; height: 40px;
    margin: 0; font-size: 1rem;
  }
  .category-card__name { grid-column: 2; font-size: 0.88rem; line-height: 1.35; margin: 0; }
  .category-card__count { grid-column: 2; font-size: 0.7rem; margin: 0; }

  /* ---------- 实景细节：2 列方图拼图 ---------- */
  .detail-grid {
    grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 0 16px; overflow: visible !important;
  }
  .detail-slide { aspect-ratio: 1 / 1; }
  .detail-slide__caption { padding: 10px; font-size: 0.72rem; }

  /* ---------- 房东故事 ---------- */
  .story-section { gap: 20px; }
  .story-section--about { margin-bottom: 30px; }
  .story-image { aspect-ratio: 16 / 10; }
  .story-image::before { display: none; }
  .story-text { gap: 12px; }
  .story-text p {
    font-size: 0.88rem; line-height: 1.8;
    display: -webkit-box; -webkit-line-clamp: 7;
    -webkit-box-orient: vertical; overflow: hidden;
  }

  /* ---------- 住客分享 ---------- */
  /* 分享列表页仍是栅格（非横滑），平板断点的 2 列在手机上会挤成窄条，改单列 */
  .testimonial-grid:not(.scroll-row) { grid-template-columns: 1fr; gap: 12px; }
  .testimonial-card { padding: 18px 16px; }
  .testimonial-card__header { gap: 12px; margin-bottom: 12px; }
  .testimonial-card__avatar { width: 42px; height: 42px; }
  .testimonial-card__name { font-size: 0.9rem; }
  .testimonial-card__quote {
    font-size: 0.84rem; line-height: 1.75;
    display: -webkit-box; -webkit-line-clamp: 5;
    -webkit-box-orient: vertical; overflow: hidden;
  }

  /* ---------- 数据条 ---------- */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 18px 10px; }

  /* ---------- 列表页筛选栏：整屏横滑 + 吸顶 ---------- */
  .filter-bar-wrap { top: var(--header-h); }
  .filter-bar {
    flex-wrap: nowrap; overflow-x: auto !important;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin: 0 -16px; padding: 11px 16px;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-bar a { padding: 7px 15px; font-size: 0.78rem; }

  /* ---------- 新闻 / 搜索结果行 ---------- */
  .news-list-item {
    flex-direction: row; gap: 12px; padding: 12px;
    background: #fff; border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
  }
  .news-list-item__thumb { width: 100px; height: 82px; min-height: 0; }
  .news-list-item__info { min-width: 0; }
  .news-list-item__title {
    font-size: 0.9rem; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
  }
  .news-list-item__desc { display: none; }

  .search-result-item { flex-direction: row; align-items: center; gap: 12px; padding: 12px; }
  .search-result-item__thumb { width: 96px; height: 84px; }
  .search-result-item__title { font-size: 0.9rem; }
  .search-result-item__desc { display: none; }
  .search-form-row { flex-direction: column; gap: 10px; }

  /* ---------- 详情页 ---------- */
  .detail__params { grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 24px; }
  .detail__param { padding: 12px; }
  .detail__param-label { font-size: 0.72rem; }
  .detail__param-value { font-size: 0.9rem; }
  .detail__pager { gap: 8px; font-size: 0.8rem; }

  /* ---------- 表单 / 预订 / 联系 ---------- */
  .form-row-2 { grid-template-columns: 1fr; gap: 12px; }
  .booking-section { gap: 22px; }
  .booking-summary { padding: 20px 16px; }
  .contact-grid { gap: 22px; }
  .contact-info__item { padding: 16px; gap: 12px; }
  .contact-form-card { padding: 20px 16px; }
  .form-control { font-size: 0.88rem; }

  /* ---------- 分页 ---------- */
  .pagination { gap: 4px; margin-top: 22px; }
  .pagination a,
  .pagination span { min-width: 34px; height: 34px; font-size: 0.78rem; }

  /* ---------- CTA ---------- */
  .cta-section { padding: 40px 16px; }
  .cta-section__title { font-size: 1.3rem; margin-bottom: 10px; }
  .cta-section__subtitle { font-size: 0.86rem; margin-bottom: 22px; }
  .cta-section .btn--lg { width: 100%; justify-content: center; }

  /* ---------- 页脚：品牌整行 + 两列 ---------- */
  .footer { padding-top: 34px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; padding: 0 16px 26px; }
  .footer__grid > div:nth-child(1) { grid-column: 1 / -1; }
  /* 重新排布：品牌整行 / 快速链接 + 关注我们 并排 / 联系我们整行。
     原顺序会让「快速链接」这列下方留出大片空白 */
  .footer__grid > div:nth-child(2) { grid-row: 2; grid-column: 1; }
  .footer__grid > div:nth-child(4) { grid-row: 2; grid-column: 2; align-self: start; }
  .footer__grid > div:nth-child(3) { grid-row: 3; grid-column: 1 / -1; }
  .footer__grid > div:nth-child(4) .footer__qrcode {
    width: 100%; max-width: 132px; height: auto;
    aspect-ratio: 1 / 1; margin: 0 0 10px;
  }
  .footer__grid > div:nth-child(4) p { margin-top: 0 !important; font-size: 0.76rem !important; }
  .footer__grid > div:nth-child(3) .footer__contact-item { margin-bottom: 10px; }
  .footer__brand-desc { font-size: 0.82rem; }
  .footer__bottom-inner { padding: 0 16px; font-size: 0.72rem; }

  /* ---------- 悬浮控件 ---------- */
  .back-top { right: 12px; bottom: 16px; width: 40px; height: 40px; font-size: 0.85rem; }
  .online-service { right: 12px; bottom: 64px; }
  .online-service__btn { width: 44px; height: 44px; font-size: 1rem; }
}

/* ============================================================
   响应式 — 小屏 (< 375px)
   ============================================================ */
@media (max-width: 374px) {
  body { font-size: 14px; }
  .container { padding: 0 14px; }

  .hero__title { font-size: 1.5rem; }

  .property-grid.scroll-row,
  .testimonial-grid.scroll-row,
  .related-grid { margin: 0 -14px; padding-left: 14px; padding-right: 14px; }
  .property-grid.scroll-row .card { flex-basis: 80vw; }
  .testimonial-grid.scroll-row .testimonial-card { flex-basis: 88vw; }
  .related-grid .card { flex-basis: 68vw; }

  .list-grid .card { grid-template-columns: 104px minmax(0, 1fr); }
  .list-grid .card__image { min-height: 104px; }

  .filter-bar { margin: 0 -14px; padding-left: 14px; padding-right: 14px; }

  .news-list-item__thumb { width: 88px; height: 72px; }
  .search-result-item__thumb { width: 84px; height: 74px; }

  .detail-grid { padding: 0 14px; gap: 8px; }
  .detail__params { grid-template-columns: 1fr; }
  .category-card { padding: 12px 10px; }
  .category-card__icon { width: 36px; height: 36px; font-size: 0.9rem; }
  .category-card__name { font-size: 0.84rem; }

  .booking-summary { padding: 18px 14px; }
  .footer__grid { gap: 20px 12px; }
}

/* ============================================================
   偏好：减少动画
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
