/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 100%;
    margin: 0;
    background: #f5f5f5;
    min-height: 100vh;
}

/* 标题样式 */
.header h1 {
    font-size: 17px;
    padding: 15px;
    margin: 0;
    background: white;
    text-align: center;
    font-weight: normal;
}

/* 酒店列表样式 */
.hotel-list {
    padding: 12px;
}

.hotel-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: background-color 0.2s;
}

.hotel-card:active {
    background-color: #f5f5f5;
}

.hotel-card .img-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0;
    background-color: #f0f0f0; /* 灰色背景作为占位符 */
    overflow: hidden;
}

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

/* 图片加载失败时的样式 */
.hotel-card img.error {
    display: none;
}

.hotel-card .img-wrapper.error {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    padding: 8px;
}

.hotel-card .img-wrapper.error::before {
    content: "";
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999999'%3E%3Cpath d='M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin-bottom: 4px;
}

.hotel-card .img-wrapper.error::after {
    content: attr(data-name);
    font-size: 12px;
    color: #999;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 90%;
}

.hotel-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0; /* 防止文字溢出 */
}

.hotel-name {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.4;
}

.hotel-details {
    color: #666;
    font-size: 14px;
    margin-bottom: auto;
}

.hotel-price {
    color: #ff4d4f;
    font-size: 14px;
    text-align: right;
    margin-top: 8px;
}

/* 移除不需要的样式 */
.search-box,
.hotel-images,
.price-section,
.contact-btn,
.contact-section {
    display: none;
}

/* 添加详情页头部样式 */
.detail-header {
    display: flex;
    align-items: center;
    padding: 12px;
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-btn {
    display: flex;
    align-items: center;
    padding: 8px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
}

.back-btn::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333333'%3E%3Cpath d='M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z'/%3E%3C/svg%3E");
    background-size: contain;
    margin-right: 4px;
}

.detail-header h1 {
    flex: 1;
    font-size: 17px;
    text-align: center;
    margin: 0;
    padding: 0 8px;
    font-weight: normal;
}

/* 详情页样式 */
.hotel-detail {
    background: #f5f5f5;
    min-height: calc(100vh - 44px);
    padding-bottom: 60px;
}

.main-image {
    width: 100%;
    height: 200px;
    background-color: #f5f5f5;
    position: relative;
    margin-bottom: 0;
}

.main-image::before {
    display: none;
}

.hotel-info-card {
    background: white;
    padding: 20px 16px;
    padding-top: 45px;
    margin-bottom: 12px;
}

.logo-section {
    display: none;
}

.hotel-logo {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    position: absolute;
    left: 16px;
    bottom: -35px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    object-fit: cover;
    z-index: 1;
}

.hotel-basic-info {
    width: 100%;
}

.hotel-basic-info h2 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 12px;
    line-height: 1.4;
}

.hotel-capacity {
    color: #666;
    font-size: 16px;
    margin-bottom: 12px;
}

.hotel-capacity span {
    margin-right: 8px; /* 用间距替代竖线 */
}

.price-info {
    font-size: 16px;
}

.price-info .label {
    display: none; /* 隐藏"餐标："文字 */
}

.price-info .price {
    color: #ff4d4f;
}

.section-title {
    display: flex;
    padding: 12px 16px;
    background: white;
    margin-bottom: 1px;
}

.section-title h3 {
    font-size: 16px;
    font-weight: 500;
}

.arrow {
    display: none;
}

.venue-list {
    background: white;
    padding: 16px;
}

.venue-item {
    display: flex;
    margin-bottom: 16px;
}

.venue-item:last-child {
    margin-bottom: 0;
}

.venue-image {
    width: 120px;
    height: 80px;
    border-radius: 4px;
    margin-right: 12px;
    object-fit: cover;
}

.venue-info {
    flex: 1;
}

.venue-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.venue-details {
    color: #666;
    font-size: 14px;
}

.merchant-intro {
    background: white;
    padding: 16px;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    padding: 8px 16px;
    background: white;
    box-shadow: 0 -1px 4px rgba(0,0,0,0.1);
}

.bottom-bar button {
    height: 44px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.phone-btn {
    width: 80px;
    background: white;
    border: 1px solid #ff4d4f !important;
    color: #ff4d4f;
    margin-right: 12px;
}

.book-btn {
    flex: 1;
    background: #ff4d4f;
    color: white;
}

/* 添加评分样式 */
.rating-section {
    display: flex;
    align-items: center;
    margin-top: 12px;
}

.rating-stars {
    color: #FFD700;
    margin-right: 8px;
}

.rating-count {
    color: #666;
    font-size: 14px;
}

/* 关注按钮样式 */
.follow-btn {
    position: absolute;
    top: 20px;
    right: 16px;
    display: flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: white;
    color: #666;
    font-size: 14px;
}

.follow-btn::before {
    content: "+";
    margin-right: 4px;
    font-size: 16px;
}

/* 预览容器样式 */
.preview-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.video-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 二维码预览样式 */
.qrcode-preview {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.qrcode-container {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    width: 80%;
    max-width: 400px;
    margin: 0 auto;
}

.qrcode-image {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    display: block;
}

.qrcode-tip {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

/* 视频播放图标样式 */
.venue-item[data-video-url] {
    position: relative;
    display: block;
    margin-bottom: 15px;
}

.venue-item[data-video-url]:last-child {
    margin-bottom: 0;
}

.venue-item[data-video-url] img.venue-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 0;
}

.venue-item[data-video-url] .video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
}

.venue-item[data-video-url] .video-play-icon::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #fff;
    margin-left: 4px;
}

/* 视频预览样式 */
.video-preview {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.video-preview video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 优化场地列表项的点击效果 */
.venue-item {
    cursor: pointer;
}

.venue-item:active {
    opacity: 0.8;
}

/* 修改图片预览容器样式 */
.image-preview {
    flex: 1;
    position: relative;
    overflow: hidden;
}

/* 修改图片容器样式 */
.preview-images-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    transition: transform 0.3s ease-out;
}

.preview-image {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

/* 添加滑动动效 */
.preview-images-container.sliding {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-thumbnail {
    position: relative;
    width: 120px;
    height: 80px;
    margin-right: 12px;
}

.video-thumbnail .venue-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 0;
    pointer-events: none;
    background: #f5f5f5;
}

.video-thumbnail video.venue-image {
    object-fit: cover;
    background: #f5f5f5;
}

.video-thumbnail .video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
}

.video-thumbnail .video-play-icon::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #fff;
    margin-left: 4px;
}

/* 删除旧的播放图标样式 */
.venue-item[data-video-url] .video-play-icon,
.venue-item[data-video-url] .video-play-icon::before {
    display: none;
}

/* 预览头部样式 */
.preview-header {
    display: flex;
    align-items: center;
    padding: 16px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1001;
}

.preview-close {
    width: 24px;
    height: 24px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E") no-repeat center;
    cursor: pointer;
}

.preview-title {
    flex: 1;
    text-align: center;
    font-size: 16px;
    margin: 0 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 图片预览计数器样式 */
.preview-info {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-size: 14px;
    padding: 10px;
    z-index: 1001;
}

.preview-count {
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 12px;
} 