/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    color: #333;
    background-color: #f5f5f5;
    line-height: 1.6;
}

/* 容器样式 */
.container {
    width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.header {
    background-color: transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    width: 100%;
}

/* 滚动后的导航栏样式 */
.header.scrolled {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: fixed;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header.scrolled .logo {
    color: #0084ff;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    padding: 10px 0;
}

.nav-menu a:hover {
    color: #0084ff;
}

.header.scrolled .nav-menu a {
    color: #333;
}

.header.scrolled .nav-menu a:hover {
    color: #0084ff;
}

/* 小程序二维码提示框样式 */
.wechat-mini-program {
    position: relative;
}

.mini-program-qrcode {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 20px;
    z-index: 1000;
    display: none;
    text-align: center;
    min-width: 200px;
}

.wechat-mini-program:hover .mini-program-qrcode {
    display: block;
}

.qrcode-content img {
    width: 150px;
    height: 150px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    background-color: #fff;
}

.qrcode-content p {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-weight: 500;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 8px 15px;
    transition: all 0.3s ease;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    width: 200px;
    color: #fff;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.search-box button {
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s ease;
}

.header.scrolled .search-box {
    background-color: #f0f0f0;
}

.header.scrolled .search-box input {
    color: #333;
}

.header.scrolled .search-box input::placeholder {
    color: #999;
}

.header.scrolled .search-box button {
    color: #666;
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #0084ff;
}

.footer-section p,
.footer-section li {
    font-size: 14px;
    line-height: 1.8;
    color: #ccc;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #0084ff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    margin-top: 20px;
    font-size: 12px;
    color: #999;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0084ff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn:hover {
    background-color: #0066cc;
}

/* 卡片样式 */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 15px;
}

.card-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    text-decoration: none;
    display: block;
}

.card-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.card-price {
    font-size: 18px;
    font-weight: bold;
    color: #ff4d4f;
    margin-top: 10px;
}

/* 轮播图样式 */
.carousel {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: hidden;
    z-index: 1;
    margin-top: 0;
    border-radius: 10px 10px 10px 10px;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
}

.carousel-control.prev {
    left: 10px;
}

.carousel-control.next {
    right: 10px;
}

/* 筛选栏样式 */
.filter-bar {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-item label {
    font-size: 14px;
    color: #666;
}

.filter-item select,
.filter-item input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

/* 列表页样式 */
.property-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.pagination button {
    padding: 8px 15px;
    border: 1px solid #ddd;
    background-color: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.pagination button:hover,
.pagination button.active {
    background-color: #0084ff;
    color: #fff;
    border-color: #0084ff;
}

/* 详情页样式 */
.property-detail {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.detail-main-section {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.detail-images {
    flex: 1;
    max-width: 600px;
}

.detail-main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.detail-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.detail-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.detail-thumbnail.active {
    border-color: #0084ff;
}

.detail-header {
    flex: 1;
    min-width: 300px;
}

.detail-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.3;
}

.detail-price {
    font-size: 28px;
    font-weight: bold;
    color: #ff4d4f;
    margin-bottom: 20px;
}

.detail-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.detail-info-item {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

/* 微信扫码样式 */
.wechat-scan-in-header {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 8px;
    text-align: center;
    width: 100%;
}

.wechat-scan-in-header h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.wechat-content-in-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.wechat-qrcode-in-header img {
    width: 200px;
    height: 200px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wechat-text-in-header {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    text-align: left;
}

.wechat-text-in-header p {
    margin: 5px 0;
    font-weight: 500;
}

.detail-section {
    margin-bottom: 30px;
}

.detail-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.detail-description {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
}

/* 区域导航样式 */
.area-nav {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.area-nav h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.area-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.area-item {
    padding: 8px 15px;
    background-color: #f0f0f0;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.area-item:hover {
    background-color: #0084ff;
    color: #fff;
}

/* 分类导航样式 */
.category-nav {
    display: flex;
    justify-content: space-around;
    background-color: #fff;
    padding: 20px 0;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.category-item {
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.category-item:hover {
    color: #0084ff;
}

.category-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.category-name {
    font-size: 16px;
    font-weight: 500;
}

/* 资讯列表样式 */
.news-list {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-list h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.news-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
    text-decoration: none;
    display: block;
    transition: color 0.3s;
}

.news-title:hover {
    color: #0084ff;
}

.news-meta {
    font-size: 12px;
    color: #999;
}

/* 响应式样式 */
@media (max-width: 1200px) {
    .container {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
    }
    
    .nav-menu {
        margin: 15px 0;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-menu li {
        margin: 0 15px;
        margin-bottom: 10px;
    }
    
    .search-box {
        width: 100%;
        max-width: 300px;
    }
    
    .carousel {
        height: 250px;
    }
    
    .property-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .filter-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
    
    /* 详情页响应式 */
    .detail-main-section {
        flex-direction: column;
    }
    
    .detail-images {
        max-width: 100%;
    }
    
    .detail-header {
        min-width: auto;
    }
}