/* ===== PbootCMS 写字楼租赁 - 全新设计 ===== */

/* ===== 全局 ===== */
:root {
    --primary: #e74c3c;
    --primary-dark: #c0392b;
    --dark: #1a1a2e;
    --gray: #6c757d;
    --light-gray: #f5f6fa;
    --border: #e8e8e8;
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background: #fff;
}

/* ===== 顶部信息栏 ===== */
.top-bar {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    padding: 6px 0;
}
.top-bar a {
    color: rgba(255,255,255,0.7);
}
.top-bar a:hover {
    color: #fff;
}
.top-bar .top-phone {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-left: 5px;
}

/* ===== 导航栏 ===== */
.navbar-wrap {
    background: #fff;
    border-bottom: 1px solid var(--border);
}
.navbar {
    padding: 0;
    min-height: auto;
}
.navbar .navbar-brand {
    padding: 10px 0;
}
.navbar .navbar-brand img {
    height: 42px;
}
.navbar .navbar-nav .nav-link {
    padding: 16px 14px !important;
    font-size: 14px;
    font-weight: 500;
    color: #333 !important;
    position: relative;
}
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .active > .nav-link {
    color: var(--primary) !important;
}
.navbar .navbar-nav .active > .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px 2px 0 0;
}
.navbar .dropdown-menu {
    border: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    padding: 0;
    margin-top: 0;
}
.navbar .dropdown-item {
    padding: 10px 20px;
    font-size: 14px;
    border-bottom: 1px solid #f5f5f5;
}
.navbar .dropdown-item:hover {
    background: var(--primary);
    color: #fff !important;
}
.navbar .dropdown-item:last-child {
    border-bottom: none;
}

/* ===== 搜索框（导航栏内） ===== */
.nav-search {
    margin-left: 15px;
}
.nav-search .input-group {
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}
.nav-search .form-control {
    border: none;
    height: 36px;
    font-size: 13px;
    padding: 0 12px;
    box-shadow: none;
}
.nav-search .btn-search-nav {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0 15px;
    font-size: 14px;
    cursor: pointer;
}
.nav-search .btn-search-nav:hover {
    background: var(--primary-dark);
}

/* ===== 幻灯片 ===== */
.slideshow {
    height: 420px;
    object-fit: cover;
}
.swiper-container {
    width: 100%;
}
.swiper-pagination-bullet-active {
    background: var(--primary) !important;
}

/* ===== 服务特色 ===== */
.service-feature {
    padding: 40px 0;
    background: #fff;
}
.service-feature .feature-item {
    text-align: center;
    padding: 20px 15px;
}
.service-feature .feature-icon {
    width: 64px;
    height: 64px;
    line-height: 64px;
    font-size: 30px;
    color: var(--primary);
    border-radius: 50%;
    background: #fff5f5;
    margin: 0 auto 12px;
}
.service-feature .feature-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}
.service-feature .feature-desc {
    font-size: 13px;
    color: var(--gray);
}

/* ===== 房源区块 ===== */
.section-wrap {
    padding: 50px 0;
}
.section-wrap.bg-light {
    background: var(--light-gray);
}
.section-title {
    text-align: center;
    margin-bottom: 30px;
}
.section-title h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}
.section-title p {
    font-size: 14px;
    color: var(--gray);
    margin: 0;
}

/* 分类切换标签 */
.category-tabs {
    text-align: center;
    margin-bottom: 25px;
}
.category-tabs .tab-link {
    display: inline-block;
    padding: 6px 18px;
    margin: 0 3px 5px;
    font-size: 13px;
    color: #666;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.2s;
}
.category-tabs .tab-link:hover,
.category-tabs .tab-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ===== 写字楼卡片（新版） ===== */
.building-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    margin-bottom: 20px;
    background: #fff;
}
.building-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}
.building-card .card-img-wrap {
    position: relative;
    overflow: hidden;
}
.building-card .card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.building-card:hover .card-img {
    transform: scale(1.05);
}
.building-card .price-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(231,76,60,0.9);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}
.building-card .price-tag small {
    font-size: 11px;
    font-weight: 400;
}
.building-card .card-body {
    padding: 14px;
}
.building-card .card-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.building-card .card-title a {
    color: #333;
}
.building-card .card-title a:hover {
    color: var(--primary);
}
.building-card .building-info {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 3px;
    line-height: 1.6;
}
.building-card .building-info i {
    width: 16px;
    color: #bbb;
    margin-right: 2px;
}
.building-card .card-footer {
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
    padding: 8px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.building-card .card-footer .building-tag {
    display: inline-block;
    padding: 2px 10px;
    font-size: 12px;
    color: var(--primary);
    background: #fff5f5;
    border-radius: 3px;
}
.building-card .card-footer .building-area {
    font-size: 12px;
    color: var(--gray);
}

/* ===== 筛选栏 ===== */
.filter-bar {
    background: #fff;
    padding: 18px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.filter-bar .filter-label {
    font-size: 13px;
    color: var(--gray);
    white-space: nowrap;
    padding-top: 6px;
    font-weight: 500;
}
.filter-bar .filter-item {
    margin-bottom: 10px;
}
.filter-bar .filter-item:last-child {
    margin-bottom: 0;
}
.filter-bar .btn-filter {
    font-size: 13px;
    padding: 4px 14px;
    margin: 2px 4px 2px 0;
    border-radius: 4px;
    border: 1px solid var(--border);
    color: #666;
    background: #fff;
    transition: all 0.2s;
}
.filter-bar .btn-filter:hover,
.filter-bar .btn-filter.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ===== 详情页 ===== */
.building-detail-header {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}
.building-detail-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
}
.building-detail-header .detail-price {
    font-size: 30px;
    font-weight: 700;
    color: var(--primary);
}
.building-detail-header .detail-price small {
    font-size: 14px;
    font-weight: 400;
    color: var(--gray);
}
.building-detail-info {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}
.building-detail-info .info-item {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #555;
}
.building-detail-info .info-item:last-child {
    border-bottom: none;
}
.building-detail-info .info-label {
    color: var(--gray);
    display: inline-block;
    width: 100px;
}
.building-detail-info .info-value {
    color: #333;
    font-weight: 500;
}
.contact-box {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}
.contact-box .contact-label {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 8px;
}
.contact-box .contact-phone {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
}
.contact-box .contact-btn {
    display: block;
    padding: 12px;
    background: var(--primary);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    margin-top: 12px;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.2s;
}
.contact-box .contact-btn:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* ===== 底部 ===== */
.footer {
    background: var(--dark) !important;
    color: rgba(255,255,255,0.6) !important;
    padding: 40px 0 0;
}
.footer h5 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}
.footer a {
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}
.footer a:hover {
    color: #fff;
}
.footer ul li {
    margin-bottom: 8px;
    font-size: 13px;
}
.footer .copyright {
    margin-top: 30px;
    padding: 15px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .slideshow {
        height: 200px;
    }
    .building-card .card-img {
        height: 140px;
    }
    .building-card .price-tag {
        font-size: 14px;
        top: 8px;
        right: 8px;
    }
    .section-title h2 {
        font-size: 20px;
    }
    .section-wrap {
        padding: 30px 0;
    }
    .nav-search {
        margin: 10px 0;
    }
    .navbar .navbar-nav .nav-link {
        padding: 10px 0 !important;
    }
    .navbar .navbar-nav .active > .nav-link::after {
        display: none;
    }
}
