/* 房态表复刻 —— 尺寸/配色按原站实测值 1:1 还原 */

@font-face {
  font-family: vant-icon;
  font-style: normal;
  font-weight: 400;
  font-display: auto;
  src: url(vant-icon.ttf) format("truetype");
}

.van-icon {
  position: relative;
  font: normal normal normal 14px/1 vant-icon;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  vertical-align: -15%;
  speak: none;
  font-style: normal;
}

.van-icon-arrow-left::before { content: "\F008"; }
.van-icon-arrow::before { content: "\F00A"; }
.van-icon-comment-o::before { content: "\F03B"; }

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, system-ui, "Helvetica Neue", Helvetica, "Segoe UI", Arial, Roboto, "PingFang SC", miui, "Hiragino Sans GB", "Microsoft Yahei", sans-serif;
  font-size: 16px;
  color: #000;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
}

#app {
  position: relative;
}

/* ---------- 表格容器 ---------- */
.table-wrap {
  height: 85vh;
  overflow: scroll;
  position: relative;
  border-bottom: 1px solid #ddd;
  -webkit-overflow-scrolling: touch;
}

table {
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  border: 1px solid #ddd;
  font-size: 13px;
  color: #000;
  position: relative;
}

/* ---------- 表头 ---------- */
thead th {
  width: 60px;
  height: 50px;
  padding: 1px;
  box-sizing: border-box;
  background-color: #f4f4f5;
  border-bottom: 1px solid #ddd;
  border-right: 1px solid #ddd;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  text-align: center;
  vertical-align: middle;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 99;
}

thead th > div:first-child {
  font-size: 14px;
}

thead th .line2 {
  font-size: 13px;
  font-weight: 400;
}

thead th.today {
  background-color: #effaff;
  color: #2d8cf0;
  font-weight: 700;
}

thead th.today .line2 {
  color: #2d8cf0;
}

thead th.today .line2 strong {
  font-weight: 700;
}

thead th.weekend {
  color: #07c160;
}

/* 左上角翻页 */
thead th.corner {
  width: 94px;
  border-left: 1px solid #ddd;
  text-align: left;
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  top: 0;
  z-index: 100;
}

.pager {
  width: 90px;
  display: flex;
  justify-content: space-between;
}

.pager > div {
  cursor: pointer;
}

.pager > div:active {
  opacity: .6;
}

/* ---------- 行/单元格 ---------- */
tbody td {
  width: 60px;
  height: 63px;
  padding: 4px;
  box-sizing: border-box;
  border-bottom: 1px solid #ddd;
  border-right: 1px solid #ddd;
  position: relative;
  vertical-align: middle;
  font-size: 13px;
}

tbody td.today {
  background-color: #effaff;
  color: #2d8cf0;
}

tbody td:first-child {
  width: 94px;
  padding: 1px;
  border-left: 1px solid #ddd;
  background-color: #f4f4f5;
  text-align: left;
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  z-index: 99;
}

.name {
  width: 80px;
  height: 50px;
  padding: 5px;
  box-sizing: content-box;
  font-size: 13px;
  line-height: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.booked {
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  z-index: 0;
  padding: 0 5px;
  background-color: #ff8319;
  background-image: linear-gradient(rgba(255, 255, 255, .3), rgba(255, 255, 255, 0));
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: visible;
}

.booked span {
  display: block;
  text-align: center;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.price {
  width: 51px;
  color: #666;
  font-size: 13px;
  text-align: center;
  line-height: normal;
}

/* ---------- 房型介绍折叠 ---------- */
.collapse {
  position: relative;
  background: #fff;
}

.cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  line-height: 24px;
  font-size: 16px;
  color: #323233;
  background-color: #fff;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.cell__title {
  flex: 1;
  min-width: 0;
}

.cell__right-icon::before {
  display: inline-block;
  transform: rotate(90deg);
}

.cell__right-icon {
  margin-left: 4px;
  color: #969799;
  font-size: 16px;
  line-height: 24px;
  transition: transform .3s;
  flex: none;
}

.cell[aria-expanded="true"] .cell__right-icon {
  transform: rotate(90deg);
}

.collapse-item__wrapper {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
  background: #fff;
}

.collapse-item__content {
  height: 24px;
  padding: 0;
  font-size: 15px;
  color: #969799;
  line-height: 1.5;
}

.collapse-item__wrapper.is-open {
  max-height: 24px;
}

/* ---------- 右下角浮动按钮 ---------- */
.cal-mode {
  position: fixed;
  right: 10px;
  bottom: 70px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.cal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  font-size: 14px;
  color: #333;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 6px 0 #ddd;
  opacity: .9;
  text-decoration: none;
}

.cal-btn:active {
  opacity: 1;
}

.cal-btn .van-icon {
  margin-left: 0;
}

/* ---------- 底部推广条 ---------- */
.apply {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 199;
  background-color: #eee;
  font-size: 12px;
}

.apply .container {
  max-width: 600px;
  margin: 0 auto;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.apply .left {
  display: flex;
  align-items: center;
  min-width: 0;
}

.apply .left img {
  width: 38px;
  height: 38px;
  border-radius: 3px;
  display: block;
  flex: none;
}

.apply .title {
  padding-left: 10px;
  font-size: 12px;
  color: #000;
  line-height: 17px;
}

.apply .to-use {
  display: inline-block;
  width: 80px;
  padding: 5px;
  margin-right: 5px;
  background-color: #07c160;
  color: #fff;
  font-size: 12px;
  text-align: center;
  border-radius: 2px;
  text-decoration: none;
  flex: none;
}

.apply .to-use:active {
  background-color: #06ad56;
}
