/* ========================================
   蓝莎迪拜集团网站 - 页面特定样式文件
   ======================================== */

/* 通用容器样式 */
.container-fluid {
    padding: 0 0.94rem;
}

/* 通用间距类 */
.py-section {
    padding: 4rem 0;
}

.mb-section {
    margin-bottom: 4rem;
}

/* 通用文本样式 */
.text-primary {
    color: var(--primary-color) !important;
}

.text-light {
    color: var(--text-light) !important;
}

/* 通用阴影类 */
.shadow-light {
    box-shadow: var(--shadow-light);
}

.shadow-medium {
    box-shadow: var(--shadow-medium);
}

/* 通用表单样式 */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(139, 21, 56, 0.25);
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   页面自定义样式部分 - PAGE SPECIFIC STYLES
   ======================================== */

/* Banner轮播样式 */
.banner-section {
    /* margin-top: 238px; */
    position: relative;
}

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

.swiper-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: rgba(0, 0, 0, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
}

.swiper-pagination-bullet {
    background: white;
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
}

/* 房产精选部分样式 */
.property-section {}

.property-scroll-container {
    position: relative;
    max-height: 430px;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 2rem;
}

.property-scroll-container::-webkit-scrollbar {
    width: 5px;
}

.property-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.property-scroll-container::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 4px;
}

.property-scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.property-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding-right: 10px;
}

.property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: fit-content;
}


.property-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-content {
    padding: 1.5rem;
    background-color: #f5f4ef;
}

.property-title {
    color: var(--main-color);
    font-size: 1.37rem;
    font-weight: 400;
    height: 3.2rem;
    line-height: 1.6rem;
    margin-bottom: 0.8rem;
}

.property-price {
    font-size: 0.94rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.property-area {
    font-size: 0.94rem;
    margin-bottom: 0.8rem;
}

.property-location {
    font-size: 0.94rem;
    display: flex;
    align-items: flex-start;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 40px;
    line-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    gap: 0.5rem;
}

.property-location i {
    color: var(--primary-color);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.property-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.property-buttons .btn {
    background: var(--main-color);
    border: none;
    color: white;
    width: 440px;
    height: 60px;
    border-radius: 30px;
    font-weight: 300;
    font-size: 1.2rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    min-width: 200px;
    justify-content: center;
}



.property-buttons .property-icon {
    width: 45px;
    height: 45px;
    position: absolute;
    margin-left: 375px;
}

/* 新闻部分样式 */
.news-section {
    background-color: white;
    position: relative;
}

.news-layout {
    position: relative;
}

.news-featured-image {
    position: absolute;
    top: -116px;
    left: -12px;
    z-index: 1;
}

.news-featured-image img {
    max-width: 314px;
    object-fit: cover;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 6.5rem;
    position: relative;
    z-index: 2;
}

.news-item {
    position: relative;
    background: white;
}


.news-date {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.news-title {
    color: #333;
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-title::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 34px;
    bottom: 0;
    height: 3.5rem;
    width: 6px;
    background-color: var(--main-color);
}

/* 蓝莎一站式服务部分 */
.services-section {
    padding: 4rem 0;
}

.service-row {
    justify-content: space-between;
}

.service-item-col {
    width: 335px;
}

.service-item {
    position: relative;
    padding: 1.3rem 1.3rem;
    background: #f5f4ef;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-content {
    display: flex;
    justify-content: space-between;
}

.service-number {
    color: var(--main-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 2;
}

.service-icon {
    margin: 0;
}

.service-icon img {
    object-fit: contain;
}

.service-title {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-top: 8px;
    margin-bottom: 5px;
    line-height: 1.4;
    text-align: right;
}

.service-description {
    color: var(--primary-color);
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
    margin-top: 10px;
    text-align: right;
}

/* ========================================
   蓝莎一站式服务 - 背景图版本
   ======================================== */

.services-background-section {
    background-image: url('../images/蓝莎一战式服务.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 510px;
}

.services-bg-title {
    color: white;
    text-align: center;
    padding-top: 100px;
}

.service-bg-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #FFF;
    border-radius: 0.94rem;
    padding: 30px 25px;
    width: 306px;
    height: 235px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.service-bg-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.service-bg-row {
    gap: 50px;
}

.service-bg-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-bg-content p {
    color: white;
    font-size: 0.88rem;
    line-height: 1.8;
    margin-bottom: 0px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.service-bg-content p:last-child {
    margin-bottom: 0;
}

/* ========================================
   我们的伙伴部分
   ======================================== */

.partners-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.partners-title {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 60px;
}

.partners-grid {
    margin: 0 auto;
}

.partners-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.partners-row:last-child {
    margin-bottom: 0;
}

.partner-item {
    width: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    transition: all 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
}

.partner-logo {
    max-width: unset;
    width: 100%;
    max-height: 80%;
    object-fit: contain;
    transition: filter 0.3s ease;
}

.partner-item:hover .partner-logo {
    filter: grayscale(0%);
}

.partner-placeholder {
    color: #6c757d;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
}

/* ========================================
   响应式设计 - RESPONSIVE DESIGN
   ======================================== */

/* 手机设备 */
@media (max-width: 576px) {
  
    .banner-section {
        min-height: auto;
    }

    /* 房产精选响应式 */
    .property-cards-wrapper {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .property-scroll-container {
        max-height: 400px;
        /*padding: 10px;*/
    }

    .property-cards-wrapper {
        padding-right: 0;
    }

    .property-content {
        padding: 1rem;
    }

    .property-title,
    .property-price,
    .property-area,
    .property-location {
        margin-bottom: 0.4rem;
        font-size: 0.8rem;
        height: auto;
    }
    
    .property-buttons {
        flex-wrap: nowrap;
    }

    .property-buttons .btn {
        width: auto;
        font-size: 1rem;
        height:auto;
        min-width: 160px;
    }

    .property-buttons .property-icon {
        width: 20px;
        height: 20px;
        margin-left: 135px;
    }

    /* 新闻部分响应式 */

    .news-item:first-child {
        display: none;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem 1rem;
    }

    .news-layout {
        width: 350px;
        margin: 0 auto;
    }

    .news-title::before {
        width: 0;
    }

    .news-title {
        font-size: 0.9rem;
    }

    .news-featured-image img {
        height: 150px;
    }

    /* 服务部分响应式 */
    .services-section {
        padding: 3rem 0;

    }

    .service-row {
        flex-wrap: nowrap;
        overflow-y: scroll;
        width: 350px;
        margin: 0 auto;
    }


    .service-item {
        padding: 1.5rem 1rem;
        margin-bottom: 0rem;
    }

    .service-item-col {
        width: 280px;
    }

    .service-number {
        font-size: 1.2rem;
        top: 0.94rem;
        right: 0.94rem;
    }

    .service-icon {
        top: 0.94rem;
        left: 0.94rem;
    }

    .service-icon img {
        width: 40px;
        height: 40px;
    }

    .service-title {
        font-size: 0.9rem;
        margin-top: 10px;
    }

    .service-description {
        font-size: 0.9rem;
    }

    /* 背景图版本响应式设计 */
    .services-background-section {
        position: relative;
        min-height: 400px;
        overflow-y: auto;
        padding: 40px 0;
    }

    /* 
    .services-background-section::-webkit-scrollbar {
        width: 5px;
    }

    .services-background-section::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    .services-background-section::-webkit-scrollbar-thumb {
        border-radius: 4px;
    }

    */
    .service-bg-row {
        width: 330px;
        gap:10px;
        margin: 0 auto;
    }

    .services-bg-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
        padding-top: 0;
    }

    .service-bg-card {
        padding: 0;
        min-height: 200px;
        width: 100%;
        height: auto;
    }

    .service-bg-content p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    /* 伙伴部分响应式设计 */
    .partners-section {
        padding: 40px 0;

    }

    .partners-row {
        gap: 20px;
    }

    .partners-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    .partner-item {
        height: 80px;
        max-width: 250px;
    }

    .partner-placeholder {
        font-size: 1rem;
    }

}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

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