/* ============================================================
 * 寂岚 · 岩茶民宿  公共样式 common.css
 * 所有页面共用：配色变量、reset、顶部导航、底部Tab、按钮、卡片、页脚
 * ============================================================ */

/* ---------- 1. 设计变量 ---------- */
:root {
  --bg: #fbf9f4;
  --bg-soft: #fbf9f4;
  --card: #ffffff;
  --primary: #5c6b4a;
  --primary-dark: #4a5739;
  --text: #2c2c2c;
  --text-sub: #8a8a7a;
  --price: #6b7a55;
  --line: #ebe7df;

  --fs-xl: 26px;
  --fs-lg: 20px;
  --fs-md: 16px;
  --fs-sm: 14px;
  --fs-xs: 12px;

  --radius: 10px;
  --radius-sm: 10px;
  --gap: 12px;
  --pad: 12px;
}

/* ---------- 2. Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

em {
  font-style: normal;
}

.iconfont {
  font-size: inherit;
}

html, body {
  height: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  color: var(--text);
  font-size: var(--fs-sm);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  max-width: 100vw;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
  padding: 0;
}

.font-serif,
.section-title,
.card-title,
.hero-title,
.logo {
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
}

/* ---------- 3. App 容器 ---------- */
.app {
  max-width: 750px;
  margin: 0 auto;
  min-height: 100%;
  background: var(--bg);
  position: relative;
  padding-bottom: 70px;
}

/* ---------- 4. 顶部导航（首页版） ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px var(--pad);
  background: var(--bg);
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 750px;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
}

.logo img {
  height: 35px;
}

.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #efeade;
  border-radius: 20px;
  padding: 9px 14px;
  color: var(--text-sub);
  font-size: var(--fs-sm);
  min-width: 0;
}

.search svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: var(--text-sub);
}

.search input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: var(--fs-sm);
  color: var(--text);
}

.search input::placeholder {
  color: var(--text-sub);
}

.hamburger {
  width: 24px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  background: transparent;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- 4b. 二级页顶部导航 ---------- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px var(--pad);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.navbar .nav-share {
  font-size: 18px;
}

.navbar .nav-back,
.navbar .nav-more,
.navbar .nav-share {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar .nav-back svg,
.navbar .nav-more svg,
.navbar .nav-share svg {
  width: 22px;
  height: 22px;
  stroke: var(--text);
}

.navbar .nav-title {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 18px;
  font-weight: 600;
}

/* ---------- 5. Banner（Swiper 容器） ---------- */
.banner {
  width: 100%;
  margin-top: 55px;
}

.banner .swiper-slide {
  position: relative;
  padding-bottom: 60%;
}

.banner .swiper-slide img, .card-thumb img, .big-card img, .tea-list-item em img, .tea-card .tea-card-img img {
  position: absolute;
}

/* Banner 文字叠层（图文分离） */
.banner-caption {
  position: absolute;
  left: 24px;
  bottom: 24px;
  color: #fff;
  z-index: 2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

.banner-caption h2 {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: 6px;
}

.banner-caption p {
  font-size: var(--fs-md);
  opacity: .95;
}

/* Swiper 分页：active 是白色长条，其他是半透圆点 */
.banner .swiper-pagination {
  bottom: 14px !important;
}

.banner .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  opacity: 1;
  transition: all .3s;
}

.banner .swiper-pagination-bullet-active {
  width: 18px;
  border-radius: 3px;
  background: #fff;
}

/* ---------- 6. 四大入口 ---------- */
.entry-grid {
  display: flex;
  padding: 18px 0;
  background: var(--bg);
}

.entry-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: var(--fs-sm);
  position: relative;
}

.entry-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 32px;
  background: var(--line);
}

.entry-item i {
  font-size: 30px;
  color: var(--primary);
}

/* ---------- 7. 通用区块 ---------- */
.section {
  padding: 10px var(--pad);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text);
}

.section-more {
  font-size: var(--fs-sm);
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 2px;
}

.section-more i {
  font-size: 12px;
  margin-left: 5px;
}

/* ---------- 8. 双列卡片 ---------- */
.card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.card {
  background: transparent;
}

.card-thumb {
  width: 100%;
  aspect-ratio: 3/2;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 10px;
  position: relative;
}


/* 图上白色标签（图文分离，HTML叠层） */
.thumb-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}

.card-title {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.card-desc {
  font-size: var(--fs-sm);
  color: var(--text-sub);
}

.card-price {
  font-size: var(--fs-lg);
  color: var(--price);
  font-weight: 600;
}

.card-price .unit, .card-price em {
  font-size: var(--fs-md);
  color: var(--text-sub);
  font-weight: 400;
  margin-left: 2px;
}

/* ---------- 9. 2x2 宫格 ---------- */
.grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.tygf-list .card-thumb {
  padding-bottom: 50%;
}

.tygf-list .thumb-tag {
  background: rgba(255, 255, 255, .6);
  color: var(--text);
  left: 0;
  bottom: 0;
  padding: 2px 10px;
  border-radius: 0 10px 0 0;
  backdrop-filter: blur(10px);
}

/* ---------- 10. 横条推荐卡 ---------- */
.nearby-card {
  display: flex;
  align-items: center;
  gap: var(--gap);
  background: var(--card);
  border-radius: var(--radius);
}

.nearby-card .nearby-thumb {
  width: 120px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.nearby-card .nearby-info {
  flex: 1;
  min-width: 0;
  padding: 10px;
}

.nearby-card .nearby-info h4 {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: var(--fs-md);
  font-weight: 600;
  margin-bottom: 4px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden
}

.nearby-card .nearby-info p {
  font-size: var(--fs-xs);
  color: var(--text-sub);
}

.nearby-card .nearby-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nearby-card .nearby-arrow svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-sub);
}

/* ---------- 11. 到访按钮组 ---------- */
.visit-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 6px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-md);
  font-weight: 500;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--primary);
  color: #fff !important;
}

.btn-primary svg {
  stroke: #fff;
}

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

.btn-outline svg {
  stroke: var(--primary);
}

/* ---------- 12. 页脚 ---------- */
.footer {
  text-align: center;
  padding: 20px 0;
  color: var(--text-sub);
  font-size: var(--fs-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap);
}

.footer::before, .footer::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--line);
}

/* ---------- 13. 底部 Tab 栏 ---------- */
.tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 750px;
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  padding: 5px 0 calc(6px + env(safe-area-inset-bottom));
  z-index: 2;
}

.tabbar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  color: var(--text-sub);
  line-height: 1.5;
}

/* 图标：线性版默认显示，填充版隐藏 */
.tabbar-item .icon-line {
  display: block;
}

.tabbar-item .icon-fill {
  display: none;
}

.tabbar-item .icon-line,
.tabbar-item .icon-fill {
  font-size: 24px;
  color: var(--text-sub);
  line-height: 1.2;
}

/* 激活态：文字变墨绿，隐藏线性版显示填充版 */

.tabbar-item.active .icon-line {
  display: none;
}

.tabbar-item.active .icon-fill {
  display: block;
}

.tabbar-item.active .icon-fill, .tabbar-item.active {
  color: var(--primary);
}

/* ---------- 14. 工具类 ---------- */
.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

/* ---------- 15. 侧边抽屉菜单 ---------- */
.menu-drawer {
  position: fixed;
  inset: 0;
  z-index: 300;
  overflow: hidden;
  visibility: hidden;
}

.menu-drawer .menu-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  opacity: 0;
  transition: opacity .3s;
}

.menu-drawer .menu-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 75%;
  max-width: 300px;
  background: var(--bg);
  transform: translateX(100%);
  transition: transform .3s;
  padding: 70px 24px 24px;
  overflow: hidden;
}

.menu-drawer.open {
  visibility: visible;
}

.menu-drawer.open .menu-mask {
  opacity: 1;
}

.menu-drawer.open .menu-panel {
  transform: translateX(0);
}

.menu-panel .menu-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--text-sub);
}

.menu-panel .menu-close:hover {
  color: var(--text);
}

.menu-panel .menu-logo {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--text);
}

.menu-panel nav a {
  display: flex;
  align-items: center;
  padding: 14px 0;
  font-size: 17px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  font-family: "Noto Serif SC", "Songti SC", serif;
}

.menu-panel nav a:last-child {
  border-bottom: none;
}

/* ---------- 15b. 分享弹层 ---------- */
.share-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 400;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.share-mask.show {
  display: flex;
}

.share-panel {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 20px 20px 30px;
}

.share-title {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.share-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text);
}

.share-item i {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgb(7, 193, 96);
  color: white;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-lg);
}

.share-grid .share-item:nth-child(2) i {
  background: rgb(18, 183, 245);
}

.share-grid .share-item:nth-child(3) i {
  background: rgb(230, 22, 45);
}

.share-copy {
  width: 100%;
  padding: 14px;
  background: #efeade;
  border-radius: 10px;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 10px;
}

.share-cancel {
  width: 100%;
  padding: 14px;
  background: transparent;
  border-radius: 10px;
  font-size: 15px;
  color: var(--text-sub);
}

/* ---------- 16. 一级页头Banner（Swiper轮播，图文分离） ---------- */
.page-banner .banner-caption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  color: #fff;
  z-index: 2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}

.page-banner .banner-caption h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 4px;
}

.page-banner .banner-caption p {
  font-size: 14px;
  opacity: .95;
}

.page-banner .swiper-pagination {
  bottom: 10px !important;
}

.page-banner .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  opacity: 1;
}

.page-banner .swiper-pagination-bullet-active {
  width: 18px;
  border-radius: 3px;
  background: #fff;
}

/* 描述条（浅色底） */
.desc-bar {
  margin: 14px var(--pad);
  padding: 14px 16px;
  background: #efeade;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: var(--fs-sm);
  display: flex;
  align-items: center;
  gap: 10px;
}

.desc-bar i {
  font-size: var(--fs-lg);
  color: var(--primary);
}

/* 区块标题（带墨绿竖条） */
.section-head-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px var(--pad) 14px;
}

.section-head-bar .title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-head-bar .title-bar {
  width: 4px;
  height: 20px;
  background: var(--primary);
  border-radius: 2px;
  display: inline-block;
}

.section-head-bar .title-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.section-head-bar .count {
  font-size: var(--fs-sm);
  color: var(--text-sub);
}

.tea-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 12px;
}

.tea-list-item em {
  width: 42%;
  border-radius: 8px 0 0 8px;
  object-fit: cover;
  flex-shrink: 0;
  overflow: hidden;
  display: block;
}

.tea-list-item em {
  aspect-ratio: 3 / 2;
  position: relative;
}

.tea-list-item-text {
  padding: 10px 0;
  flex: 1;
}

.tea-list-item-text h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px 0;
}

.tea-list-item-text span {
  font-size: 14px;
  color: var(--text-sub);
  display: block;
}

.tea-list-item-text p {
  font-size: 22px;
  font-weight: 700;
  color: #e74c3c;
  margin: 0;
}

.tea-list-item-text p small {
  font-size: 16px;
}

.tea-list-item i {
  color: var(--text-sub);
  margin-right: 10px;
}

.menu-list {
  display: grid;
  gap: 5px;
  grid-auto-flow: column;
  /* 横向排列 */
  grid-auto-columns: auto;
  padding: 15px var(--pad) 0;
  overflow-x: auto;
  position: sticky;
  top: 38px;
  background: var(--bg);
  padding-bottom: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  z-index: 2;
}

.menu-list a {
  padding: 5px 10px;
  border: 1px solid rgba(0, 0, 0, .1);
  white-space: nowrap;
  border-radius: 10px;
  text-align: center;
}

.menu-list a:hover, .menu-list a.active {
  background: var(--primary);
  border: 1px solid var(--primary);
  color: white;
}

/* ---------- 17. 横向大卡片（品茗页/庭舍楼层） ---------- */
.big-card {
  margin: 0 var(--pad) 14px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  padding-bottom: 35%;
  display: block;
  aspect-ratio: 3/2;
}

.big-card .big-card-caption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  color: #fff;
  z-index: 2;
}

.big-card .big-card-caption h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

.big-card .big-card-caption p {
  font-size: 13px;
  opacity: .95;
}

.big-card .big-card-arrow {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  background: rgba(255, 255, 255, .6);
  border-radius: 50%;
  font-size: var(--fs-sm);
}

.big-card .big-card-arrow i {
  font-size: 14px;
  color: #fff;
}

.big-card .tag {
  display: inline-block;
  background: rgba(92, 107, 74, .8);
  border: 1px solid var(--primary);
  color: #fff;
  font-size: var(--fs-xs);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}

/* ---------- 18. 茶品卡片（岩茶页2x2） ---------- */
.tea-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
}

.tea-card .tea-card-img {
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
  position: relative;
}

.tea-card .tea-card-body {
  padding: 12px 14px;
  position: relative;
}

.tea-card .tea-card-body h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 2px;
}

.tea-card .tea-card-body .meta {
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 4px;
}

.tea-card .tea-card-body .price {
  font-size: var(--fs-lg);
  color: #c0392b;
  font-weight: 700;
}

.tea-card .tea-card-body .price em {
  font-size: var(--fs-md);
}

.tea-card .tea-card-body .arrow {
  position: absolute;
  right: 10px;
  top: 14px;
}

.tea-card .tea-card-body .arrow {
  font-size: 16px;
  color: var(--text-sub);
}

/* ---------- 19. 区域宫格卡（庭院工坊页） ---------- */
.zone-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.zone-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 底部渐变遮罩 */
.zone-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(0, 0, 0, .65), transparent);
  pointer-events: none;
}

.zone-card .zone-caption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  color: #fff;
  z-index: 2;
}

.zone-card .zone-caption h4 {
  font-size: 16px;
  font-weight: 700;
}

.zone-card .zone-caption p {
  font-size: 11px;
  opacity: .9;
}

.zone-card .zone-arrow {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 22px;
  height: 22px;
  z-index: 2;
}

.zone-card .zone-arrow svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
}

/* ---------- 20. 详情页（茶品/茶点/客房） ---------- */
.detail-banner {
  width: calc(100% - 24px);
  margin: 10px auto;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.detail-banner .swiper-slide {
  aspect-ratio: 3/2;
}

.detail-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-banner .swiper-pagination {
  bottom: 10px !important;
}

.detail-banner .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  opacity: 1;
}

.detail-banner .swiper-pagination-bullet-active {
  width: 6px;
  height: 6px;
  background: #fff;
}

/* 轮播 "当前页/总数" 计数器（右下角） */
.detail-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 10;
  min-width: 34px;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(0, 0, 0, .4);
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  font-style: normal;
}

.detail-count em {
  font-style: normal;
  font-weight: 600;
}

.detail-count i {
  font-style: normal;
  opacity: .8;
}

/* 产品信息卡 */
.detail-info {
  margin: 0 var(--pad) 14px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-info .name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.detail-info .sub {
  font-size: var(--fs-sm);
  color: var(--text-sub);
}

.detail-info .price {
  font-size: 32px;
  color: #c0392b;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
}

.detail-info .price small {
  font-size: var(--fs-md);
}

.detail-info .price .unit {
  font-size: 14px;
  color: var(--text-sub);
  font-weight: 400;
  display: block;
}

/* 信息列表 */
.detail-list {
  margin: 0 var(--pad) 14px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid #eee;
  overflow: hidden;
}

.detail-list table {
  width: 100% !important;
  border-collapse: collapse;
  border: 0;
  overflow: hidden;
}

.detail-list table tr td {
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid #eee;
}

.detail-list table tr td:first-child {
  color: var(--text-sub);
}

.detail-list table tr:last-child td {
  border: 0;
}

/* 提示条 */
.detail-tip {
  margin: 0 var(--pad) 14px;
  padding: 10px 15px;
  background: #efeade;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  color: var(--text);
}

.detail-tip i {
  font-size: 32px;
  color: var(--primary);
}

.detail-tip span::before {
  content: "";
  width: 2px;
  height: 20px;
  background: #ccc;
  flex-shrink: 0;
  display: inline-block;
  margin-right: 15px;
  vertical-align: middle;
  margin-top: -3px;
}

/* 详情页第二张图 */
.detail-img {
  margin: 0 var(--pad) 14px;
}

.detail-img img {
  border-radius: var(--radius);
  width: 100% !important;
  height: auto !important
}

/* 页脚slogan */
.detail-slogan {
  text-align: center;
  color: var(--text-sub);
  font-size: 13px;
  padding: 10px 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* ---------- 22. 图片预览弹层（Swiper Zoom） ---------- */
.preview-swiper-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.preview-swiper {
  width: 100%;
  height: 100%;
}

.preview-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-swiper .swiper-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.preview-swiper .swiper-pagination {
  bottom: 20px !important;
}

.preview-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  color: #fff;
  font-size: 24px;
  border: none;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-slogan::before, .detail-slogan::after {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--line);
}

.lightgallery-list {
  padding: 0 var(--pad);
}

.lightgallery-list ul .grid {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.lightgallery-list ul .grid img {
  width: 100%;
  height: auto;
  display: block;
}

.lightgallery-list ul .grid::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: rgba(0, 0, 0, .5);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---------- 23. 二级标签导航（枯山水/锦鲤池/生态池） ---------- */
.sub-tabs {
  display: flex;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 56px;
  z-index: 99;
}

.sub-tab {
  flex: 1;
  text-align: center;
  padding: 14px 0;
  font-size: 16px;
  color: var(--text-sub);
  text-decoration: none;
  position: relative;
  transition: color .2s;
}

.sub-tab.active {
  color: var(--primary);
  font-weight: 500;
}

.sub-tab.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

/* ---------- 24. 空间选择卡片 ---------- */
.space-select {
  padding: 0 var(--pad);
  margin-bottom: 16px;
}

.space-select-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.space-select-bar {
  width: 4px;
  height: 20px;
  background: var(--primary);
  border-radius: 2px;
}

.space-select-card {
  background: #eeeee4;
  border-radius: 12px;
  padding: 8px 16px;
}

.space-select-row {
  display: flex;
  align-items: center;
  padding: 10px 0;
}

.space-select-label {
  width: 90px;
  color: var(--text-sub);
  font-size: 15px;
}

.space-select-value {
  flex: 1;
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
}

.space-select-arrow {
  width: 20px;
  height: 20px;
  color: var(--text-sub);
}

.space-select-divider {
  height: 1px;
  background: var(--line);
}

.space-select-current {
  margin-top: 12px;
  color: var(--text-sub);
  font-size: 14px;
}

/* ---------- 25. 庭院工坊页（court.html） ---------- */
.navbar .nav-title {
  color: var(--primary);
  font-weight: 600;
}

.page-banner {
  width: calc(100% - 24px);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 68px;
}

.page-banner .swiper-slide {
  aspect-ratio: 3/2;
}

.page-banner .banner-caption {
  position: absolute;
  left: 20px;
  bottom: 18px;
  color: #fff;
  z-index: 2;
}

.page-banner .banner-caption h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

.page-banner .banner-caption p {
  font-size: 13px;
  opacity: .9;
}

.page-banner .swiper-pagination {
  bottom: 10px !important;
}

.page-banner .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, .5);
  opacity: 1;
}

.page-banner .swiper-pagination-bullet-active {
  width: 6px;
  height: 6px;
  background: #fff;
}

.zone-grid {
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 10px;
}

.zone-card {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
}

.zone-card em {
  display: block;
  aspect-ratio: 3/2;
  position: relative;
}

.zone-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 1), transparent);
}

.zone-caption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  color: #fff;
}

.zone-caption h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 2px;
}

.zone-caption p {
  font-size: 11px;
  opacity: .9;
}

.zone-arrow {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.zone-arrow svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
}

/* ---------- 26. 静态Banner（品茗页） ---------- */
.page-banner-static {
  width: calc(100% - 24px);
  position: relative;
  margin: 10px auto;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.banner-static-title {
  position: absolute;
  top: 16px;
  left: 24px;
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  z-index: 2;
}

.banner-static-sub-left {
  position: absolute;
  top: 78px;
  left: 24px;
  z-index: 2;
}

.banner-static-sub-left p {
  font-size: 14px;
  color: var(--text);
  margin: 0 0 6px 0;
  line-height: 1.6;
}

.banner-static-sub-right {
  position: absolute;
  top: 30px;
  right: 24px;
  text-align: right;
  z-index: 2;
}

.banner-static-sub-right p {
  font-size: 16px;
  color: var(--text);
  margin: 0 0 6px 0;
  line-height: 1.6;
}


.detail-banner .swiper-pagination {
  bottom: 10px !important;
}

.room-page-num {
  position: absolute;
  right: 16px;
  bottom: 16px;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 10;
}

.info-card {
  margin: 0 var(--pad) 14px;
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 16px;
}

.info-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.info-card-title i {
  font-size: var(--fs-lg);
  color: var(--primary);
  vertical-align: middle;
  margin-top: 2px;
}

.info-row {
  display: flex;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row .label {
  width: 90px;
  color: var(--text-sub);
  flex-shrink: 0;
}

.info-row .value {
  flex: 1;
  color: var(--text);
}

.room-tip {
  margin: 0 var(--pad) 14px;
  padding: 14px 16px;
  background: #f5f2ea;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-sub);
}

.room-tip svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-sub);
  flex-shrink: 0;
}

/* 周边推荐专属 */
.nearby-banner {
  margin: 0 auto;
  overflow: hidden;
}

.nearby-banner .swiper-slide {
  aspect-ratio: 3/2;
}

.nearby-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nearby-banner .swiper-pagination {
  bottom: 8px !important;
}

.nearby-banner .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, .5);
  opacity: 1;
}

.nearby-banner .swiper-pagination-bullet-active {
  width: 6px;
  height: 6px;
  background: #fff;
}

.nearby-title {
  text-align: center;
  padding: 20px var(--pad) 10px;
}

.nearby-title h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px 0;
  font-family: "Noto Serif SC", serif;
}

.nearby-title .sub {
  font-size: 16px;
  color: var(--text-sub);
  margin: 0 0 16px 0;
}

.nearby-tags {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.nearby-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  font-size: 14px;
  color: var(--text);
  border-right: 1px solid var(--line);
}

.nearby-tag:last-child {
  border-right: none;
}

.nearby-tag svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-sub);
}

.nearby-desc {
  padding: 0 var(--pad) 20px;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.8;
  text-align: center;
}

.nearby-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 var(--pad) 20px;
  color: var(--primary);
}

.nearby-divider::before, .nearby-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.nearby-divider svg {
  width: 20px;
  height: 20px;
  margin: 0 12px;
}

.nearby-section {
  padding: 0 var(--pad) 24px;
}

.nearby-section img {
  max-width: 100% !important;
  height: auto !important;
}

.nearby-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px 0;
  font-family: "Noto Serif SC", serif;
}

.nearby-section .section-sub {
  font-size: 15px;
  color: var(--primary);
  margin: 0 0 16px 0;
}

.nearby-section .big-img {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
}

.nearby-section .big-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.nearby-section .section-desc {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.8;
  margin: 0 0 12px 0;
}

.nearby-section .two-imgs {
  display: flex;
  gap: 10px;
}

.nearby-section .two-imgs img {
  width: 50%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}

.nearby-tip-card {
  margin: 0 var(--pad) 14px;
  background: #f5f2ea;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  gap: var(--gap);
  align-items: center;
}

.nearby-tip-card .tip-icon {
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nearby-tip-card .tip-icon i {
  font-size: var(--fs-lg);
  vertical-align: middle;
  margin-right: 5px;
}

.nearby-tip-card .tip-content {
  flex: 1;
  border-left: 1px solid rgb(92, 107, 74, .2);
  padding-left: 15px;
}

.nearby-tip-card .tip-title {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--text);
}

.nearby-tip-card .tip-row {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.8;
}

.nearby-nav-btn {
  margin: 0 var(--pad) 20px;
  height: 48px;
  border-radius: 24px;
  background: var(--primary);
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.nearby-nav-btn svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
}

.nearby-footer {
  text-align: center;
  padding: 20px 0;
  font-size: 13px;
  color: var(--text-sub);
}

.page {
  width: 100%;
  padding: 50px 0 15px 0;
  text-align: center;
  overflow: hidden;
  font-size: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page a,
.page span {
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 3px 10px;
  margin: 0 3px;
  background: #fff
}

.page span,
.page a:hover {
  background: var(--primary);
  border: 1px solid var(--primary);
  color: #fff !important;
  border-radius: 5px;
}

.page .prev,
.page .next {
  margin: 0 10px;
}

/* 庭院工坊瀑布流加载转圈 */
.lg-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.lg-loading::after {
  content: '';
  width: 26px;
  height: 26px;
  border: 3px solid rgba(0, 0, 0, .12);
  border-top-color: var(--primary, #5c6b4a);
  border-radius: 50%;
  animation: lgspin .7s linear infinite;
}

@keyframes lgspin {
  to {
    transform: rotate(360deg)
  }
}

.tea-list {
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}