/**
 * 写字楼详情页样式
 * 使用od-前缀避免与其他样式冲突
 */

/* Banner区域 */
.od-banner {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/banner.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0 50px;
    color: #fff;
    text-align: center;
    margin-top: 70px;
}

.od-banner-content {
    max-width: 800px;
    margin: 0 auto;
}

.od-banner h1 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: bold;
}

.od-banner p {
    font-size: 18px;
    opacity: 0.9;
}

/* 通用区域标题 */
.od-section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: #333;
    position: relative;
    padding-bottom: 15px;
}

.od-section-title:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #1890ff;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* 内容区块 */
.od-overview,
.od-features,
.od-layout,
.od-types,
.od-booking {
    padding: 60px 0;
}

.od-overview,
.od-layout,
.od-booking {
    background-color: #fff;
}

.od-features,
.od-types {
    background-color: #f8f9fa;
}

/* 办公室概览 */
.od-overview-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.od-gallery {
    flex: 0 0 60%;
    max-width: 60%;
    padding: 0 15px;
}

.od-gallery-main {
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.od-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.od-gallery-main:hover img {
    transform: scale(1.03);
}

.od-gallery-thumbs {
    display: flex;
    gap: 10px;
}

.od-gallery-thumbs img {
    width: 90px;
    height: 70px;
    border-radius: 5px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.od-gallery-thumbs img:hover {
    opacity: 0.8;
    transform: translateY(-3px);
}

.od-gallery-thumbs img.active {
    border-color: #1890ff;
}

.od-info {
    flex: 0 0 40%;
    max-width: 40%;
    padding: 0 15px;
}

.od-info-title {
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.od-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.od-info-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 15px;
}

.od-info-list i {
    color: #1890ff;
    margin-right: 12px;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.od-info-list span {
    font-weight: 600;
    margin-right: 5px;
    color: #333;
}

.od-price {
    color: #f5222d;
    font-size: 18px;
}

.od-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.od-btn {
    display: block;
    padding: 12px 0;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    flex: 1;
    transition: all 0.3s;
}

.od-btn-primary {
    background: #1890ff;
    color: #fff;
    border: 1px solid #1890ff;
}

.od-btn-primary:hover {
    background: #0c7cd5;
    border-color: #0c7cd5;
}

.od-btn-outline {
    border: 1px solid #1890ff;
    color: #1890ff;
    background: transparent;
}

.od-btn-outline:hover {
    background: #1890ff;
    color: #fff;
}

/* 特色配套 */
.od-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.od-feature-item {
    background: #fff;
    padding: 25px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.od-feature-item:hover {
    transform: translateY(-7px);
}

.od-feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(24,144,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.od-feature-icon i {
    font-size: 28px;
    color: #1890ff;
}

.od-feature-item h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.od-feature-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 平面布局 */
.od-layout-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.od-layout-image {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.od-layout-image img {
    width: 100%;
    display: block;
    transition: transform 0.3s;
}

.od-layout-image:hover img {
    transform: scale(1.03);
}

.od-layout-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.od-layout-description p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.od-layout-features {
    list-style: none;
    padding: 0;
}

.od-layout-features li {
    padding: 8px 0;
    color: #555;
    display: flex;
    align-items: flex-start;
}

.od-layout-features i {
    color: #1890ff;
    margin-right: 10px;
    margin-top: 4px;
}

/* 更多户型 */
.od-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.od-type-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    height: 100%;
}

.od-type-card:hover {
    transform: translateY(-7px);
}

.od-type-image {
    height: 200px;
    overflow: hidden;
}

.od-type-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.od-type-card:hover .od-type-image img {
    transform: scale(1.08);
}

.od-type-content {
    padding: 20px;
}

.od-type-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.od-type-details {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.od-type-details li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.od-type-details i {
    color: #1890ff;
    margin-right: 8px;
    width: 16px;
}

.od-type-details span {
    font-weight: 600;
    margin-right: 5px;
    color: #333;
}

.od-type-link {
    display: inline-block;
    color: #1890ff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    transition: all 0.3s;
}

.od-type-link:after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s;
}

.od-type-link:hover {
    color: #0c7cd5;
}

.od-type-link:hover:after {
    transform: translateX(3px);
}

/* 预约看房 */
.od-booking-form {
    max-width: 800px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.od-form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px 15px;
}

.od-form-group {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 10px;
}

.od-form-group.od-full-width {
    flex: 0 0 100%;
    max-width: 100%;
}

.od-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.od-form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.3s;
}

.od-form-control:focus {
    border-color: #1890ff;
    outline: none;
}

textarea.od-form-control {
    min-height: 100px;
    resize: vertical;
}

.od-form-submit {
    text-align: center;
    margin-top: 20px;
}

.od-btn-submit {
    background: #1890ff;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.od-btn-submit:hover {
    background: #0c7cd5;
}

/* 浮动按钮 */
.od-float-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.od-float-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1890ff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.od-float-button:hover {
    background: #0c7cd5;
    transform: translateY(-3px);
}

.od-float-button i {
    font-size: 20px;
}

.od-back-to-top {
    display: none;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .od-overview-wrapper {
        flex-direction: column;
    }
    
    .od-gallery,
    .od-info {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .od-gallery {
        margin-bottom: 30px;
    }
    
    .od-features-grid,
    .od-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .od-layout-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .od-banner {
        padding: 80px 0 40px;
    }
    
    .od-banner h1 {
        font-size: 28px;
    }
    
    .od-banner p {
        font-size: 16px;
    }
    
    .od-gallery-main {
        height: 300px;
    }
    
    .od-form-group {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 15px;
    }
    
    .od-form-row {
        margin-bottom: 0;
    }
    
    .od-section-title {
        font-size: 24px;
    }
    
    .od-feature-item h3,
    .od-type-title {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .od-types-grid {
        grid-template-columns: 1fr;
    }
    
    .od-gallery-main {
        height: 250px;
    }
    
    .od-gallery-thumbs {
        flex-wrap: wrap;
    }
    
    .od-gallery-thumbs img {
        width: calc(25% - 8px);
    }
    
    .od-actions {
        flex-direction: column;
    }
    
    .od-btn {
        margin-bottom: 10px;
    }
    
    .od-booking-form {
        padding: 20px 15px;
    }
} 