/* 现代风格CSS - 甘肃天庆房地产集团 */

:root {
    --primary-color: #1a365d;
    --secondary-color: #2d3748;
    --accent-color: #3182ce;
    --gold-color: #d4af37;
    --light-bg: #f7fafc;
    --white: #ffffff;
    --gray-light: #e2e8f0;
    --gray-dark: #4a5568;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--gray-dark);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    line-height: 1.6;
    scroll-behavior: smooth;
}

a, a:link {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
    transform: translateY(-1px);
}

ul, ol, li {
    list-style-type: none;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header_top {
    width: 1200px;
    height: 100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header_logo {
    padding-top: 0;
}

.header_logo img {
    height: 60px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.header_logo img:hover {
    transform: scale(1.05);
}

.header_search {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header_search form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 5px 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header_search input {
    background: transparent;
    border: none;
    color: white;
    width: 200px;
    padding: 8px;
    font-size: 14px;
}

.header_search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.header_search a {
    background: var(--gold-color);
    padding: 8px 12px;
    border-radius: 20px;
    color: white;
    font-size: 12px;
}

.header_search a:hover {
    background: var(--accent-color);
    transform: none;
}

/* 导航菜单 */
.header_nav_bg {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 0;
}

.header_nav {
    width: 1200px;
    margin: 0 auto;
}

.navmain {
    height: 60px;
    display: flex;
    align-items: center;
}

#nav_all {
    display: flex;
    gap: 0;
}

#nav_all li {
    position: relative;
}

#nav_all li a {
    color: white;
    padding: 0 25px;
    height: 60px;
    display: flex;
    align-items: center;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#nav_all li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gold-color);
}

#nav_all li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

#nav_all li:hover ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#nav_all li ul li a {
    color: var(--gray-dark);
    height: 45px;
    padding: 0 20px;
}

#nav_all li ul li a:hover {
    background: var(--light-bg);
    color: var(--accent-color);
}

/* 轮播图 - 显示原图大小并等比例调整 */
.banner {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
    margin-top: 0;
    min-height: 300px; /* 最小高度保障 */
    height: auto; /* 自适应高度 */
}

.slide-main {
    position: relative;
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    min-height: 300px;
    height: auto;
}

.slide-box {
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    margin: 0 auto;
    min-height: 300px;
    height: auto;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    opacity: 0;
    transition: opacity 0.6s ease;
    visibility: hidden;
    min-height: 300px;
    height: auto;
}

.slide.active {
    opacity: 1;
    z-index: 1;
    visibility: visible;
}

/* 防止轮播图区域鼠标悬停闪烁 */
.banner, .slide-main, .slide-box, .slide, .obj-b {
    pointer-events: auto;
}

.banner:hover, .slide-main:hover, .slide-box:hover {
    transform: none;
}

.obj-b img {
    pointer-events: auto;
    transition: filter 0.3s ease;
}

.obj-b img:hover {
    filter: brightness(1.0);
}

.obj-b {
    width: 100%;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    height: auto;
    /* 根据原图比例1920x410设置 */
    padding-bottom: calc((410 / 1920) * 100%); /* 保持21.35%的宽高比 */
}

.obj-b img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.9);
    display: block;
    max-width: 100%;
    min-height: 300px;
    /* 使用aspect-ratio属性确保正确的宽高比 */
    aspect-ratio: 1920 / 410;
    /* 跨浏览器兼容性 */
    -webkit-object-fit: cover;
    -moz-object-fit: cover;
    -o-object-fit: cover;
    -webkit-object-position: center;
    -moz-object-position: center;
    -o-object-position: center;
    /* 图片渲染优化 */
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
}

.item {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.item a {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 8px;
    transition: all 0.3s ease;
}

.item a.cur {
    background: var(--gold-color);
    transform: scale(1.2);
}

/* 主要内容区域 */
.home_content {
    width: 1200px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.home_content_news {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.home_content_news:hover {
    transform: translateY(-5px);
}

#wrapper {
    position: relative;
}

.tab_more {
    position: absolute;
    top: 0;
    right: 0;
    background: transparent !important;
    color: #3182ce !important;
    padding: 8px 16px !important;
    border-radius: 0 !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
}

.tab_more:hover {
    color: #1a365d !important;
    transform: translateX(2px) !important;
    text-decoration: underline !important;
}

#tabs ul {
    display: flex;
    border-bottom: 2px solid var(--gray-light);
    margin-bottom: 20px;
}

#tabs ul li {
    margin-right: 30px;
}

#tabs ul li a {
    padding: 10px 0;
    font-weight: 600;
    position: relative;
    color: var(--gray-dark);
}

/* 简单标签系统样式 - 强制优先级 */
.simple-tabs {
    width: 100% !important;
    margin: 0 auto !important;
}

/* 重置任何可能的干扰样式 */
.simple-tabs .tab-nav,
.simple-tabs .tab-nav a,
.simple-tabs .tab-nav a:hover,
.simple-tabs .tab-nav a.active {
    margin: 0 !important;
    float: none !important;
    display: flex !important;
}

.tab-nav {
    display: flex !important;
    border-bottom: 2px solid var(--gray-light) !important;
    background: var(--white) !important;
    border-radius: 8px 8px 0 0 !important;
    overflow: hidden !important;
    height: 50px !important;
    justify-content: flex-start !important;
}

.tab-nav a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 12px 20px !important;
    background: transparent !important;
    color: var(--gray-dark) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: 2px solid #ddd !important;
    border-radius: 25px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    position: relative !important;
    flex: none !important;
    height: 50px !important;
    min-width: auto !important;
    width: auto !important;
    white-space: nowrap !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
    box-sizing: border-box !important;
    text-align: left !important;
    margin-right: 10px !important;
}

.tab-nav a:hover {
    background: var(--light-bg) !important;
    color: var(--primary-color) !important;
    height: 50px !important;
    padding: 12px 20px !important;
    width: auto !important;
}

.tab-nav a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
    height: 50px !important;
    padding: 12px 20px !important;
    width: auto !important;
    border: none !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.tab-nav a.active::after {
    display: none;
}

.tab-content-container {
    background: var(--white) !important;
    border-radius: 0 0 8px 8px !important;
    padding: 20px !important;
    box-shadow: var(--shadow) !important;
    min-height: 400px !important;
    position: relative !important;
    overflow: hidden !important;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
    min-height: 300px !important;
    position: relative !important;
}

.tab-content::after {
    content: '' !important;
    display: block !important;
    clear: both !important;
    height: 0 !important;
    visibility: hidden !important;
}

.tab-content ol {
    clear: both !important;
    margin-top: -10px !important;
    padding-left: 20px !important;
}

.tab-content:first-child {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tabs_img {
    float: left !important;
    width: 150px !important;
    margin-right: 20px !important;
    min-height: 100px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.tabs_img img {
    width: 150px !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    transition: transform 0.3s ease !important;
}

.tabs_img img:hover {
    transform: scale(1.05);
}

.tabs_news {
    overflow: hidden !important;
    min-height: auto !important;
    display: flex !important;
    flex-direction: column !important;
}

.tabs_news h2 {
    font-size: 18px !important;
    margin-bottom: 10px !important;
    color: var(--primary-color) !important;
    line-height: 1.4 !important;
}

.tabs_news h2 a:hover {
    color: var(--accent-color) !important;
}

.tabs_news p {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.6 !important;
    color: var(--gray-dark) !important;
    font-size: 14px !important;
    flex: 1 !important;
}

#tabs-1 ol, #tabs-2 ol {
    margin-top: -10px !important;
    padding: 0 !important;
    list-style: none !important;
    min-height: 150px !important;
}

#tabs-1 ol li, #tabs-2 ol li {
    padding: 5px 0 !important;
    border-bottom: 1px solid var(--gray-light) !important;
    line-height: 1.5 !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: auto !important;
}

#tabs-1 ol li:first-child, #tabs-2 ol li:first-child {
    padding-top: 0 !important;
}

#tabs-1 ol li:last-child, #tabs-2 ol li:last-child {
    border-bottom: none;
}

#tabs-1 ol li span, #tabs-2 ol li span {
    color: var(--gray-dark);
    font-size: 12px;
    min-width: 50px;
}

/* 热门项目区域 */
.home_hot {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%; /* 确保容器占满可用宽度 */
    max-width: 1200px; /* 最大宽度限制 */
}

.home_hot_title {
    text-align: center;
    margin-bottom: 5px;
}

.home_hot_title img {
    max-width: 100%;
    height: auto;
}

.home_hot_property {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
}

#playBox {
    position: relative !important;
    height: 126px !important;
    width: 100% !important;
    max-width: 490px !important;
    margin: 0 auto !important;
}

.playBox {
    height: 126px !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    position: relative !important;
    width: 100% !important;
}

.oUlplay {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.oUlplay li {
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0;
    filter: alpha(opacity=0);
    transition: opacity 0.8s ease-in-out !important;
    vertical-align: top !important;
    left: 0 !important;
    top: 0 !important;
}

.oUlplay li.active {
    opacity: 1 !important;
    filter: alpha(opacity=100) !important;
    z-index: 10 !important;
}

.oUlplay li img {
    width: 100% !important;
    height: 126px !important;
    object-fit: cover !important; /* 使用cover保持填充 */
    -o-object-fit: cover !important; /* Opera兼容 */
    object-position: center !important;
    border-radius: 8px !important;
    display: block !important;
    max-width: 100% !important;
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: auto !important;
    /* 360浏览器兼容性修复 */
    visibility: visible !important;
    opacity: 1 !important;
    filter: alpha(opacity=100) !important;
    background: transparent !important;
}

.smalltitle {
    position: absolute !important;
    bottom: 15px !important;
    right: 15px !important;
    left: auto !important;
    transform: none !important;
    z-index: 20 !important;
    background: rgba(0, 0, 0, 0.3) !important;
    padding: 5px 10px !important;
    border-radius: 15px !important;
}

.smalltitle ul {
    display: flex !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    align-items: center !important;
    justify-content: center !important;
}

.smalltitle ul li {
    width: 10px !important;
    height: 10px !important;
    background: rgba(255, 255, 255, 0.6) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.smalltitle .thistitle {
    background: var(--gold-color) !important;
    transform: scale(1.2) !important;
}

/* 轮播图控制按钮 - 隐藏左右箭头 */
.pre, .next {
    display: none !important;
}

/* 业务分类 */
.home_hot_classification ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.home_hot_classification ul li {
    background: var(--white);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.home_hot_classification ul li:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.home_hot_classification ul li h2 {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.grid {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.grid img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.effect-ruby figcaption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 54, 93, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.effect-ruby:hover figcaption {
    opacity: 1;
}

.effect-ruby figcaption a {
    color: white;
    background: var(--gold-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
}

/* 底部版权区域优化 - 新版布局 */
.page_footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0f1a2b 100%);
    color: white;
    padding: 50px 0 30px;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}

.page_footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-color), transparent);
}

.footer {
    width: 1200px;
    margin: 0 auto;
}

.footer_content {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    justify-content: center;
}

.footer_left {
    flex-shrink: 0;
}

.wechat-qrcode {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.qrcode-image img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    border: 2px solid var(--gold-color);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.qrcode-text h4 {
    color: var(--gold-color);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.qrcode-text p {
    font-size: 12px;
    opacity: 0.8;
    margin: 0;
}

.footer_right {
    flex: 1;
    max-width: 600px;
}

.company-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gold-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.company-info .copyright {
    font-size: 14px;
    opacity: 0.8;
    margin: 0 0 20px 0;
}

.footer_links {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 20px;
}

.footer_links a {
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.footer_links a:hover {
    color: var(--gold-color);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
}

.footer_legal {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.icp-links {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.icp-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 3px;
}

.icp-item:hover {
    color: var(--gold-color);
    background: rgba(255, 255, 255, 0.05);
}

.icp-item img {
    height: 14px;
    filter: brightness(0) invert(1);
}

.legal-text {
    font-size: 12px;
    opacity: 0.6;
    max-width: 100%;
    line-height: 1.5;
    margin-top: 5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .footer_content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .wechat-qrcode {
        flex-direction: column;
        text-align: center;
    }
    
    .footer_links {
        justify-content: center;
    }
    
    .footer_legal {
        align-items: center;
    }
}

/* 轮播图响应式设计 */
@media (max-width: 1920px) {
    .obj-b {
        padding-bottom: calc((410 / 1920) * 100%); /* 保持原始宽高比 */
    }
}

@media (max-width: 1600px) {
    .obj-b {
        padding-bottom: calc((410 / 1600) * 100%); /* 适配1600px宽度 */
        max-height: 400px; /* 限制最大高度 */
    }
    
    .banner, .slide-main, .slide-box {
        max-height: 400px;
    }
}

@media (max-width: 1400px) {
    .obj-b {
        padding-bottom: calc((350 / 1400) * 100%); /* 适配1400px宽度 */
        max-height: 350px;
    }
    
    .banner, .slide-main, .slide-box {
        max-height: 350px;
    }
}

@media (max-width: 1240px) {
    .header_top, .header_nav, .home_content, .footer {
        width: 95%;
        max-width: 1200px;
    }
    
    .home_content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .home_hot_classification ul {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 轮播图在1240px时的调整 */
    .obj-b {
        padding-bottom: calc((320 / 1240) * 100%);
        max-height: 320px;
    }
    
    .banner, .slide-main, .slide-box {
        max-height: 320px;
    }
}

@media (max-width: 768px) {
    .header_top {
        flex-direction: column;
        height: auto;
        padding: 20px 0;
    }
    
    .header_search {
        margin-top: 15px;
    }
    
    #nav_all {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .home_hot_classification ul {
        grid-template-columns: 1fr;
    }
    
    .footer {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* 轮播图移动端适配 */
    .obj-b {
        padding-bottom: calc((240 / 768) * 100%);
        max-height: 240px;
        min-height: 200px;
    }
    
    .banner, .slide-main, .slide-box {
        max-height: 240px;
        min-height: 200px;
    }
    
    .slide {
        min-height: 200px;
    }
    
    .item {
        bottom: 15px;
    }
    
    .item a {
        width: 10px;
        height: 10px;
        margin: 0 6px;
    }
}

@media (max-width: 480px) {
    /* 轮播图小屏幕适配 */
    .obj-b {
        padding-bottom: calc((180 / 480) * 100%);
        max-height: 180px;
        min-height: 150px;
    }
    
    .banner, .slide-main, .slide-box {
        max-height: 180px;
        min-height: 150px;
    }
    
    .slide {
        min-height: 150px;
    }
    
    .item {
        bottom: 10px;
    }
    
    .item a {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.home_content_news, .home_hot_property, .home_hot_classification ul li {
    animation: fadeIn 0.6s ease-out;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-light);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* 首页底部Banner居中样式 */
.home-banner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    padding: 0 15px;
}

.home-banner-container img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.home-banner-container img:hover {
    transform: scale(1.02);
}

/* 热销楼盘轮播图样式 */
.hot-building-slide-section {
    width: 1200px;
    margin: 40px auto;
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.hot-building-slide-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-light);
}

.hot-building-slide-title h2 {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    position: relative;
}

.hot-building-slide-title h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-color), var(--accent-color));
    border-radius: 2px;
}

.hot-building-slide-title .view-more {
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 16px;
    border: 2px solid var(--accent-color);
    border-radius: 20px;
    /* 移除transition以防止闪烁 */
}

/* hover效果已移除以防止闪烁 */

.hot-building-slide-item.active {
    display: flex !important;
    z-index: 2;
    align-items: stretch; /* 使用stretch让内容填满容器 */
    justify-content: flex-start; /* 使用flex-start让内容从左侧开始 */
    opacity: 1; /* 激活状态时完全不透明 */
}

.hot-building-slide-wrapper {
    overflow: hidden;
    position: relative;
    width: 571px !important; /* 511px + 30px*2 左右内边距 */
    height: 196px !important; /* 176px + 10px*2 上下内边距 */
    margin: 0 auto;
    padding: 10px 30px;
    background-color: #fff;
    border: 2px solid #fff;
    border-radius: 12px;
    box-sizing: border-box;
}

.hot-building-slide-carousel {
    position: relative;
    width: 511px !important;
    height: 176px !important; /* 126px图片 + 50px文字区域 */
    overflow: hidden;
    margin: 0 auto;
    background: transparent; /* 移除灰色背景 */
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
}

.hot-building-slide-list {
    position: relative;
    width: 100%;
    height: 100%;
}

.hot-building-slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 511px !important;
    height: 176px !important; /* 126px图片 + 50px文字区域 */
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    z-index: 1;
    display: none; /* 默认隐藏 */
    /* 添加transition支持淡入淡出效果 */
    transition: opacity 1s ease-in-out;
}

/* hover效果已移除以防止闪烁 */

.hot-building-slide-item.active {
    display: flex !important;
    z-index: 2;
    align-items: stretch; /* 使用stretch让内容填满容器 */
    justify-content: flex-start; /* 使用flex-start让内容从左侧开始 */
    opacity: 1; /* 激活状态时完全不透明 */
}

.hot-building-slide-item a {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    position: relative;
}

.hot-building-slide-image {
    position: relative;
    width: 100%;
    height: 126px !important; /* 固定图片高度 */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 移除灰色背景以防止显示灰色方块 */
    z-index: 1;
}

.hot-building-slide-image img {
    width: 511px !important;
    height: 126px !important;
    object-fit: cover; /* 使用cover填满图片区域 */
    object-position: center;
    /* 移除transform transition以防止闪烁 */
    display: block;
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--gold-color), #f59e0b);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

.hot-building-slide-content {
    position: relative;
    width: 100%;
    height: 50px !important; /* 固定文字区域高度 */
    background: linear-gradient(to right, rgba(64,64,64,0.95), rgba(128,128,128,0.85));
    color: white;
    padding: 8px 15px;
    z-index: 2;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hot-building-slide-content h3 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hot-building-slide-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    line-height: 1.2;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: none; /* 在有限空间内隐藏描述文字 */
}

.hot-building-slide-controls {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    align-items: center;
    pointer-events: none;
    z-index: 10;
}

.hot-building-slide-controls button {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    /* 移除transition以防止闪烁 */
    font-size: 0;
    padding: 0;
}

/* 为每个圆点设置不同的颜色 */
.hot-building-slide-controls button:nth-child(1) { background: #FF6B6B; }
.hot-building-slide-controls button:nth-child(2) { background: #4ECDC4; }
.hot-building-slide-controls button:nth-child(3) { background: #45B7D1; }
.hot-building-slide-controls button:nth-child(4) { background: #96CEB4; }
.hot-building-slide-controls button:nth-child(5) { background: #FFEAA7; }
.hot-building-slide-controls button:nth-child(6) { background: #DDA0DD; }
.hot-building-slide-controls button:nth-child(7) { background: #98D8C8; }
.hot-building-slide-controls button:nth-child(8) { background: #FFB6C1; }

.hot-building-slide-controls button.active {
    border-color: #fff !important;
    /* 移除transform以防止闪烁 */
    /* transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255,255,255,0.8); */
}

/* hover效果已移除以防止闪烁 */

.hot-building-slide-item.active {
    display: flex !important;
    z-index: 2;
    align-items: stretch; /* 使用stretch让内容填满容器 */
    justify-content: flex-start; /* 使用flex-start让内容从左侧开始 */
    opacity: 1; /* 激活状态时完全不透明 */
}

/* 热销楼盘轮播图响应式设计 */
@media (max-width: 1240px) {
    .hot-building-slide-section {
        width: 95%;
        max-width: 1200px;
        margin: 30px auto;
    }
    
    .hot-building-slide-item {
        flex: 0 0 calc(33.333% - 10px);
    }
}

@media (max-width: 992px) {
    .hot-building-slide-item {
        flex: 0 0 calc(50% - 8px);
    }
    
    .hot-building-slide-list {
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .hot-building-slide-section {
        padding: 20px;
        margin: 20px auto;
    }
    
    .hot-building-slide-title {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .hot-building-slide-title h2 {
        font-size: 20px;
    }
    
    .hot-building-slide-item {
        flex: 0 0 100%;
    }
    
    .hot-building-slide-list {
        gap: 15px;
    }
    
    .hot-building-slide-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .hot-building-slide-section {
        padding: 15px;
    }
    
    .hot-building-slide-image {
        height: 160px;
    }
    
    .hot-building-slide-content {
        padding: 15px;
    }
    
    .hot-building-slide-content h3 {
        font-size: 16px;
    }
    
    .hot-building-slide-content p {
        font-size: 13px;
    }
}