﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

.app {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(to bottom, #7b2cbf, #48cae4);
}

body {
    overflow-x: hidden;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.carousel-title {
    position: absolute;
    z-index: 10;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
}

.navigate-btn-new {
    background: linear-gradient(135deg, #9d4edd, #48cae4);
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    flex-shrink: 0;
    min-width: fit-content;
    max-width: 120px;
    white-space: nowrap;
    cursor: pointer;
}

.container {
    background: linear-gradient(to bottom, #7b2cbf, #48cae4);
    min-height: 100vh;
    color: #fff;
    padding-bottom: 60px;
    box-sizing: border-box;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.carousel {
    width: 100%;
    height: 280px;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 16px 16px;
    margin: 0;
}

.carousel-inner {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    display: none;
}

.carousel-item.active {
    display: block;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.indicator.active {
    background: #fff;
}

.merchant-info {
    padding: 16px;
    text-align: center;
}

.merchant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    text-align: left;
}

.merchant-name {
    font-size: 24px;
    font-weight: bold;
}

.cashback {
    background: linear-gradient(135deg, #9d4edd, #48cae4);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.merchant-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
    text-align: left;
}

.star {
    color: #ffd700;
    font-size: 16px;
}

.merchant-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
    font-size: 14px;
    flex-wrap: wrap;
    text-align: left;
}

.business-hours {
    display: block;
    margin-bottom: 16px;
    font-size: 14px;
    text-align: left;
}

.address-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: nowrap;
    width: 100%;
    text-align: left;
}

.address-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.address {
    font-size: 12px;
    line-height: 1.4;
    word-break: break-all;
}

.distance-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.nav-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.nav-text-new {
    font-size: 13px;
    font-weight: 500;
}

.activity-btn {
    background: linear-gradient(to right, #7b2cbf, #48cae4);
    padding: 8px 16px;
    border-radius: 4px;
    margin: 0 auto 16px;
    font-size: 14px;
    color: #fff;
    border: none;
    text-align: center;
    cursor: pointer;
    display: inline-block;
    white-space: nowrap;
}

.services {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.service-item {
    background: linear-gradient(135deg, #48cae4, #9d4edd) !important;
    padding: 8px;
    border-radius: 4px;
    text-align: center;
    min-width: 80px;
    font-size: 12px;
    margin: 0 auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.service-name {
    display: block;
    margin-bottom: 4px;
}

.service-price {
    color: #ffd700;
    font-size: 12px;
}

.rooms {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    text-align: left;
}

.room-item {
    background: linear-gradient(to right, #5a189a, #3f37c9);
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
}

.room-name {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
}

.room-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

.book-btn-container {
    position: relative;
    margin: 0 auto 60px;
    padding: 0 16px;
    width: 100%;
    box-sizing: border-box;
    z-index: 5;
    display: flex;
    justify-content: center;
}

.book-tag {
    position: absolute;
    top: -8px;
    right: 24px;
    background: linear-gradient(135deg, #48cae4, #9d4edd);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    z-index: 10;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.book-btn {
    position: relative;
    background: linear-gradient(to right, #00d084, #76dd29);
    color: rgb(245, 240, 240);
    font-size: 20px;
    font-weight: bold;
    padding: 12px 0;
    border-radius: 25px;
    text-align: center;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    border: none;
    cursor: pointer;
}

.book-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.book-btn.pulse-animation {
    animation: pulse 2s infinite;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 62px;
    background: linear-gradient(to right, #7b2cbf, #48cae4);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 99;
    pointer-events: auto;
}

.nav-btn {
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.footer-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 0px;
}

.footer-text {
    font-size: 14px;
    display: block;
}

.sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 90;
    transition: right 0.3s ease;
}

.sidebar-btn {
    width: 56px !important;
    height: 40px !important;
    border-radius: 8px 0 0 8px;
    background: linear-gradient(to right, #7b2cbf, #48cae4);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

.sidebar-icon {
    width: 59px !important;
    height: 32px !important;
    object-fit: contain;
    display: block;
}

.sidebar-btn:active {
    transform: scale(1.05);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.modal-content {
    width: 85%;
    max-width: 300px;
    background: #fff;
    border-radius: 12px;
    padding: 24px 16px;
    position: relative;
    color: #333;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-title {
    display: block;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 16px;
    text-align: center;
}

.modal-text {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    white-space: pre-line;
}

.close {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 20px;
    color: #999;
    cursor: pointer;
}

.modal-text {
    text-align: left;
}

.modal-text p {
    margin-bottom: 0;
    margin-top: 0;
    line-height: 1.8;
}

.modal-text p:last-child {
    margin-bottom: 0;
}

.online-service {
    color: #0066cc;
}

@media (min-width: 768px) {
    .carousel {
        height: 600px !important;
        max-width: 1200px;
        margin: 0 auto !important;
        border-radius: 16px !important;
    }
    
   .carousel-title {
        /* 移除手机端的标签框样式 */
        background: none; /* 取消背景渐变 */
        padding: 0; /* 取消内边距 */
        border-radius: 0; /* 取消圆角 */
        /* 可根据需要调整logo位置 */
        top: 10px; /* 例如向下移动一点 */
    }
    
    .container {
        padding: 0 20px;
    }
    
    .merchant-info {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
    }
    
    .book-btn {
        max-width: 500px;
        font-size: 22px;
    }
    
    .activity-btn {
        font-size: 16px;
        padding: 10px 20px;
    }
}

@media (max-width: 767px) {
    .carousel {
        position: absolute;
        top: 0; 
        left: 0;
        right: 0;
        height: 280px !important;
        border-radius: 0 0 12px 12px !important;
    }
    
    .merchant-info {
        margin-top: 280px;
        padding-top: 20px;
    }
}