/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.nav-link.active {
    color: #E4B167 !important;
}

.floating-contact {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px;
    text-align: center;
    z-index: 1000;
    display: none;
}

.floating-contact a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    color: white;
    text-decoration: none;
    font-size: 16px;
}

.back-to-top {
    position: fixed;
    bottom: 60px;
    right: 20px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    display: none;
}

@media (max-width: 768px) {
    .floating-contact,
    .back-to-top {
        display: flex;
    }
}

.image-slider {
    position: relative;
    overflow: hidden;
}
.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 12px;
    cursor: pointer;
}
.slider-button.prev {
    left: 0;
}
.slider-button.next {
    right: 0;
}
.main-header.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1010;
}
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.menu-overlay.show {
    display: block;
    opacity: 1;
}

/* 移动端样式 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1010;
        position: relative;
        font-size: 24px;
        cursor: pointer;
        color: #a67c52;
        background: none;
        border: none;
        padding: 8px;
        border-radius: 4px;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        height: 100vh;
        background-color: white;
        padding: 70px 1.5rem 1.5rem;
        box-shadow: -2px 0 4px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1005; 
        overflow-y: auto;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .main-nav ul li {
        margin: 8px 0;
        width: 100%;
        text-align: center;
    }

    .main-nav ul li a {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 15px;
        color: #333;
        text-decoration: none;
        font-size: 16px;
        border-radius: 4px;
    }

    .main-nav ul li a:active,
    .main-nav ul li a:hover {
        background-color: rgba(166, 124, 82, 0.1);
    }

    .main-nav ul li a.phone-link {
        color: #e4393c !important;
        font-weight: bold;
    }
    
    /* 移动端导航栏样式 - 在这里覆盖下面的样式 */
    .main-header {
        padding: 15px 0;
    }
}

/* 房源详情页样式 */
.property-detail {
    padding: 40px 0;
    background-color: #fff;
}

.property-header {
    margin-bottom: 30px;
}

.property-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.property-price {
    display: flex;
    gap: 20px;
    font-size: 20px;
    color: #e4393c;
}

.property-gallery {
    margin-bottom: 40px;
}

.property-gallery .main-image {
    width: 100%;
    height: 400px;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.property-gallery .main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-list {
    display: flex;
    gap: 15px;
}

.thumbnail-list img {
    width: calc(25% - 12px);
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.thumbnail-list img:hover {
    opacity: 0.8;
}

.property-info {
    margin-bottom: 40px;
}

.property-info h3,
.property-facilities h3,
.contact-section h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 4px solid #a67c52;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table td {
    padding: 15px;
    border: 1px solid #eee;
}

.info-table td:nth-child(odd) {
    background-color: #f8f8f8;
    width: 120px;
}

.facilities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.facilities-list li {
    padding: 10px 20px;
    background-color: #f8f8f8;
    border-radius: 4px;
    color: #666;
}

.contact-info {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
}

.contact-info p {
    margin-bottom: 10px;
    color: #666;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f8f8;
    scroll-behavior: smooth;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 头部样式 */
.top-bar {
    background-color: #595959;
    color: #fff;
    padding: 8px 0;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    background-color: white;
}

.main-header.fixed {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    background: #f8f8f8;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-header.fixed .container {
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
    padding: 0 15px;
}

.logo h1 {
    color: #a67c52;
    font-size: 28px;
    font-weight: 700;
}

.main-nav ul {
    display: flex;
}

.main-nav a.active {
    color: #a67c52;
}

.main-nav a.active:after {
    width: 100%;
    left: 0;
}

.main-nav li {
    margin: 0 15px;
    text-align: center;
}

.main-nav a {
    display: block;
    color: #555;
    font-size: 16px;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
}

.main-nav a span {
    display: block;
    font-size: 12px;
    font-weight: normal;
    color: #a67c52;
}

.main-nav a.active,
.main-nav a:hover {
    color: #a67c52;
}

.main-nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #a67c52;
    transition: all 0.3s;
}

.main-nav a.active:after,
.main-nav a:hover:after {
    width: 100%;
    left: 0;
}

/* Banner样式 */
.banner {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.banner-slider {
    position: relative;
}

.slider-container {
    width: 100%;
    overflow: hidden;
}

.slide {
    display: flex;
    width: 100%;
}

.slide img {
    width: 33.333%;
    height: 500px;
    object-fit: cover;
}

.slider-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.slider-nav .prev {
    left: 20px;
}

.slider-nav .next {
    right: 20px;
}

/* 标题样式 */
.section-title {
    text-align: center;
    font-size: 32px;
    color: #333;
    margin-top: 80px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 600;
}

.section-title:after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: #a67c52;
    margin: 10px auto 5px;
}

.title-en {
    text-align: center;
    color: #a67c52;
    font-size: 16px;
    margin-bottom: 50px;
    text-transform: uppercase;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    padding-bottom: 20px;
    border-bottom: 1px solid #a67c52;
    letter-spacing: 2px;
}

/* 出租面积表格样式 */
.rental-area {
    padding: 20px 0 60px;
    background-color: #fff;
}

.area-table {
    margin-top: 30px;
}

.area-table table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.area-table th {
    background-color: #a67c52;
    color: #fff;
    padding: 15px;
    font-weight: 500;
}

.area-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.area-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.area-table tbody tr:hover {
    background-color: #f5f5f5;
}

/* 项目介绍样式 */
.intro {
    padding: 20px 0 60px;
}

.intro-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 30px;
}

.intro-images {
    width: 100%;
    display: flex;
    gap: 20px;
}

.main-image {
    width: 50%;
    height: 400px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.main-image img:hover {
    transform: scale(1.05);
}

.sub-images {
    width: 50%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-content: flex-start;
}

.sub-images img {
    width: calc(50% - 10px);
    height: calc(50% - 10px);
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.sub-images img:hover {
    transform: scale(1.05);
}

@media screen and (max-width: 768px) {
    .intro-images {
        flex-direction: column;
        gap: 15px;
    }

    .main-image {
        width: 100%;
        height: 300px;
    }

    .sub-images {
        width: 100%;
        gap: 15px;
    }

    .sub-images img {
        width: calc(50% - 7.5px);
        height: 150px;
    }

    .intro-content {
        gap: 30px;
    }

    .intro-video {
        height: auto;
    }
}

.intro-text {
    width: 100%;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.intro-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.intro-text p:last-child {
    margin-bottom: 0;
}

.intro-video {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.intro-video video {
    width: 100%;
    display: block;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
}

.slider-wrapper img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slider-wrapper img.active {
    opacity: 1;
}

.slider-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(166, 124, 82, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 2;
}

.slider-nav button:hover {
    background-color: rgba(166, 124, 82, 0.9);
}

.slider-nav .prev {
    left: 10px;
}

.slider-nav .next {
    right: 10px;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-dots .dot.active {
    background-color: #a67c52;
}

.intro-text {
    flex: 0 0 calc(60% - 15px);
}

.intro-text p {
    margin-bottom: 15px;
    text-align: justify;
    line-height: 1.8;
}

/* 出租房源样式 */
.rental-area,
.rental {
    background-color: #f8f8f8;
    padding: 40px 0;
}

.rental-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.rental-item {
    position: relative;
    border: 1px solid #eee;
    overflow: hidden;
    transition: transform 0.3s;
}

.rental-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.rental-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    opacity: 0;
    transform: translateY(30%);
    transition: all 0.3s ease;
}

.rental-item:hover .rental-info {
    opacity: 1;
    transform: translateY(0);
}

.rental-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.album-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    opacity: 0;
    transform: translateY(30%);
    transition: all 0.3s ease;
}

.rental-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.rental-info .price {
    color: #a67c52;
    font-weight: bold;
}

/* 基本信息样式 */
.basic-info {
    padding: 20px 0 60px;
}

.info-table {
    width: 80%;
    margin: 0 auto;
    border-collapse: collapse;
}

.info-table table {
    width: 100%;
    border-collapse: collapse;
}

.info-table tr {
    border-bottom: 1px solid #eee;
}

.info-table tr.odd {
    background-color: #f5f5f5;
}

.info-table td {
    padding: 15px;
}

.info-table td:first-child {
    width: 30%;
    color: #777;
}

/* 联系我们样式 */
.contact-info {
    padding: 40px 0;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-details {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-section {
    margin-bottom: 40px;
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #a67c52;
}

.contact-section h3 {
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.contact-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #a67c52;
}

.contact-section p {
    margin: 15px 0;
    font-size: 16px;
    color: #555;
    line-height: 1.8;
}

.contact-section i {
    color: #a67c52;
    margin-right: 10px;
}

.transport-info h4 {
    color: #444;
    font-size: 18px;
    margin: 20px 0 10px;
    display: flex;
    align-items: center;
}

.transport-info p {
    padding-left: 24px;
    border-left: 2px solid #eee;
    margin: 10px 0 20px 10px;
}

/* 企业入驻样式 */
.enterprise-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
    padding: 0 15px;
}

.enterprise-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    aspect-ratio: 4/3;
}

.enterprise-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(166, 124, 82, 0.2);
}

.enterprise-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.enterprise-item:hover img {
    transform: scale(1.05);
}

.enterprise-text {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    line-height: 1.8;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 40px 0;
}

.album-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 4/3;
}

.album-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.album-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.album-item:hover .album-image {
    transform: scale(1.05);
}

.album-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    opacity: 0;
    transform: translateY(30%);
    transition: all 0.3s ease;
}

.album-item:hover .album-overlay {
    opacity: 1;
    transform: translateY(0);
}

.album-overlay h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.album-overlay p {
    font-size: 14px;
    opacity: 0.9;
}

/* 周边配套样式 */
.facilities-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.facilities-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.facilities-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.facilities-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.facilities-item:hover img {
    transform: scale(1.05);
}

.facilities-text {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    line-height: 1.8;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

/* 响应式样式 */
@media (max-width: 992px) {
    .intro-content {
        flex-direction: column;
    }
    
    .intro-image, .intro-text {
        flex: 0 0 100%;
    }
    
    .rental-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-table {
        width: 95%;
    }
}

@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
    }
    
    .main-nav {
        margin-top: 20px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .rental-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .rental-info {
        opacity: 1;
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
    }

    .rental-item:hover {
        transform: none;
        box-shadow: none;
    }

    .rental-item:hover .rental-info {
        transform: none;
    }

    .facilities-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        margin: 20px 0;
        padding: 0 15px;
    }

    .facilities-item {
        aspect-ratio: 4/3;
        border-radius: 12px;
    }

    .facilities-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .facilities-item:hover {
        transform: none;
        box-shadow: none;
    }

    .facilities-item:hover img {
        transform: none;
    }
    
    .slide img {
        height: 300px;
    }
}