/* 城市选择器 */

/* logo+城市选择器 整体靠左 */
.header-logo-city { display: flex; align-items: center; flex-shrink: 0; } .header-logo-city .city-selector { margin-left: 20px; }
.city-selector { position: relative; flex-shrink: 0; }
.city-selector select {
    appearance: none;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 28px 6px 12px;
    font-size: 14px;
    color: var(--dark);
    cursor: pointer;
    min-width: 90px;
}
.city-selector select:focus { outline: none; border-color: var(--red); }
.city-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #999;
    pointer-events: none;
}
/* 企租网 - 1:1还原suban88风格 */
:root {
  --red: #e63946;
  --dark-red: #c1121f;
  --blue: #0197d9;
  --orange: #ff7800;
  --dark: #222;
  --gray: #666;
  --light-gray: #f5f5f5;
  --border: #eee;
  --white: #fff;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; color: var(--dark); background: var(--white); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* 顶部导航 */
.top-bar { background: var(--dark); color: #fff; font-size: 13px; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.top-bar a { color: #fff; }
.top-bar .tel { color: var(--orange); font-weight: bold; }

/* 主导航 */
header { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 100; }
.header-main { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; max-width: 1200px; margin: 0 auto; position: relative; }
.logo img { height: 48px; }
.logo span { font-size: 22px; font-weight: bold; color: var(--red); margin-left: 8px; vertical-align: middle; }
.nav { display: flex; gap: 40px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav a { font-size: 15px; color: var(--dark); padding: 8px 0; position: relative; transition: color 0.3s; }
.nav a:hover, .nav a.active { color: var(--red); }
.nav a::after { content: ""; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--red); transition: width 0.3s; }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav-right { display: flex; gap: 15px; align-items: center; }
.nav-right .btn { background: var(--red); color: #fff; padding: 8px 20px; border-radius: 4px; font-size: 14px; transition: background 0.3s; }
.nav-right .btn:hover { background: var(--dark-red); }

/* Banner */
.banner { position: relative; height: 480px; overflow: hidden; }
.banner-slider { position: relative; height: 100%; }
.banner-slider .slide { position: absolute; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s; }
.banner-slider .slide.active { opacity: 1; }
.banner-slider img { width: 100%; height: 100%; object-fit: cover; }
.banner-search { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 10; width: 700px; background: rgba(0,0,0,0.6); border-radius: 10px; padding: 25px; }
.banner-search h2 { color: #fff; text-align: center; font-size: 24px; margin-bottom: 15px; }
.search-box { display: flex; background: #fff; border-radius: 6px; overflow: hidden; }
.search-box input { flex: 1; border: none; outline: none; padding: 14px 18px; font-size: 15px; }
.search-box button { background: var(--red); color: #fff; border: none; padding: 14px 30px; font-size: 16px; cursor: pointer; transition: background 0.3s; }
.search-box button:hover { background: var(--dark-red); }
.banner-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.banner-dots span { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.6); cursor: pointer; }
.banner-dots span.active { background: var(--red); }

/* 区域快捷入口 */
.quick-entry { background: var(--light-gray); padding: 30px 0; }
.quick-entry h3 { font-size: 18px; margin-bottom: 15px; }
.quick-districts { display: flex; flex-wrap: wrap; gap: 10px; }
.quick-districts a { background: #fff; border: 1px solid var(--border); padding: 8px 16px; border-radius: 20px; font-size: 14px; transition: all 0.3s; }
.quick-districts a:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* 筛选栏 */
.filter-bar { background: var(--white); border: 1px solid var(--border); padding: 15px 20px; margin: 20px 0; border-radius: 6px; }
.filter-bar form { display: flex; flex-wrap: wrap; gap: 15px; align-items: center; }
.filter-item { display: flex; align-items: center; gap: 8px; }
.filter-item label { font-size: 14px; color: var(--gray); white-space: nowrap; }
.filter-item select, .filter-item input { border: 1px solid var(--border); padding: 8px 12px; border-radius: 4px; font-size: 14px; outline: none; }
.filter-item select:focus, .filter-item input:focus { border-color: var(--red); }
.filter-btn { background: var(--red); color: #fff; border: none; padding: 8px 24px; border-radius: 4px; cursor: pointer; font-size: 14px; }
.filter-reset { background: #fff; color: var(--gray); border: 1px solid var(--border); padding: 8px 16px; border-radius: 4px; cursor: pointer; font-size: 14px; }

/* 楼盘卡片网格 */
.section { padding: 40px 0; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; border-bottom: 2px solid var(--red); padding-bottom: 10px; }
.section-title h2 { font-size: 22px; color: var(--dark); }
.section-title a { color: var(--red); font-size: 14px; }
.building-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.building-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: all 0.3s; cursor: pointer; }
.building-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.12); transform: translateY(-3px); }
.building-card .card-img { position: relative; height: 186px; overflow: hidden; }
.building-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.building-card:hover .card-img img { transform: scale(1.05); }
.building-card .card-tag { position: absolute; top: 10px; left: 10px; background: var(--red); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 3px; }
.building-card .card-body { padding: 15px; }
.building-card .card-title { font-size: 16px; font-weight: bold; margin-bottom: 8px; color: var(--dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.building-card .card-info { font-size: 13px; color: var(--gray); margin-bottom: 8px; display: flex; gap: 15px; }
.building-card .card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.building-card .card-tags span { background: #fef0ef; color: var(--red); font-size: 12px; padding: 2px 8px; border-radius: 3px; }
.building-card .card-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 5px; }
.building-card .price { color: var(--red); font-size: 18px; font-weight: bold; margin-left: auto; }
.building-card .price small { font-size: 13px; font-weight: normal; color: var(--gray); }
.building-card .btn-detail { background: var(--red); color: #fff; font-size: 13px; padding: 6px 16px; border-radius: 4px; transition: background 0.3s; }
.building-card .btn-detail:hover { background: var(--dark-red); }

/* 热门楼盘卡片（新结构：信息在照片下方） */
.building-grid-overlay {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.building-card-new {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    transition: box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.building-card-new:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}
.building-card-new img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}
.building-card-new .card-info {
    padding: 10px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.building-card-new .card-name-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.building-card-new .card-name {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.building-card-new .card-price {
    font-size: 14px;
    font-weight: bold;
    color: #e74c3c;
    flex-shrink: 0;
    margin-left: 8px;
    text-align: right;
}
.building-card-new .card-location {
    font-size: 12px;
    color: #888;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* 分页 */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { display: inline-block; padding: 8px 14px; border: 1px solid var(--border); border-radius: 4px; font-size: 14px; transition: all 0.3s; }
.pagination a:hover { background: var(--red); color: #fff; border-color: var(--red); }
.pagination .active { background: var(--red); color: #fff; border-color: var(--red); }
.pagination a.disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* 底部 */
footer { background: var(--dark); color: #fff; padding: 40px 0 20px; margin-top: 60px; }
.footer-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 30px; }
.footer-col h4 { font-size: 16px; margin-bottom: 15px; color: #fff; }
.footer-col p { font-size: 13px; color: #aaa; line-height: 2; }
.footer-col a { color: #aaa; display: block; transition: color 0.3s; }
.footer-col a:hover { color: var(--red); }
.footer-bottom { border-top: 1px solid #444; padding-top: 20px; text-align: center; font-size: 13px; color: #888; }

/* 面包屑 */
.breadcrumb { padding: 15px 0; font-size: 13px; color: var(--gray); }
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { margin: 0 8px; }

/* 详情页 */
.detail-header { padding: 30px 0; border-bottom: 1px solid var(--border); }
.detail-title { font-size: 28px; font-weight: bold; margin-bottom: 15px; }
.detail-meta { font-size: 14px; color: var(--gray); display: flex; gap: 20px; flex-wrap: wrap; }
.detail-meta span { display: flex; align-items: center; gap: 5px; }
.detail-gallery { display: grid; grid-template-columns: 1fr 300px; gap: 15px; margin: 30px 0; }
.detail-gallery .main-img { height: 400px; border-radius: 8px; overflow: hidden; }
.detail-gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-gallery .thumbs { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; max-height: 400px; }
.detail-gallery .thumbs img { width: 100%; height: 95px; object-fit: cover; border-radius: 4px; cursor: pointer; opacity: 0.7; transition: opacity 0.3s; }
.detail-gallery .thumbs img:hover, .detail-gallery .thumbs img.active { opacity: 1; border: 2px solid var(--red); }
.detail-info { background: var(--light-gray); padding: 25px; border-radius: 8px; margin-bottom: 30px; }
.detail-price { font-size: 32px; color: var(--red); font-weight: bold; margin-bottom: 15px; }
.detail-price small { font-size: 16px; color: var(--gray); font-weight: normal; }
.detail-params { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.detail-params .param { font-size: 14px; }
.detail-params .param label { color: var(--gray); }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.detail-tags span { background: #fef0ef; color: var(--red); font-size: 13px; padding: 4px 12px; border-radius: 20px; }
.detail-section { margin: 30px 0; }
.detail-section h3 { font-size: 18px; border-left: 4px solid var(--red); padding-left: 12px; margin-bottom: 20px; }
.detail-content { font-size: 15px; line-height: 1.8; color: var(--gray); }
.detail-content p { margin-bottom: 15px; }
.detail-content img { max-width: 100%; height: auto; margin: 10px 0; border-radius: 4px; }

/* 关联小区 */
.xiaoqu-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 15px; margin-top: 20px; }
.xiaoqu-card { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 15px; transition: all 0.3s; }
.xiaoqu-card:hover { border-color: var(--red); box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.xiaoqu-card h4 { font-size: 15px; margin-bottom: 8px; }
.xiaoqu-card p { font-size: 13px; color: var(--gray); }
.xiaoqu-card .price { color: var(--red); font-weight: bold; margin-top: 5px; }

/* 咨询表单 */
.inquiry-form { background: var(--light-gray); padding: 30px; border-radius: 8px; margin: 30px 0; }
.inquiry-form h3 { font-size: 18px; margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; margin-bottom: 15px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 14px; color: var(--gray); }
.form-group input, .form-group select, .form-group textarea { border: 1px solid var(--border); padding: 10px 14px; border-radius: 4px; font-size: 14px; outline: none; transition: border-color 0.3s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--red); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit { background: var(--red); color: #fff; border: none; padding: 14px 40px; border-radius: 4px; font-size: 16px; cursor: pointer; transition: background 0.3s; }
.form-submit:hover { background: var(--dark-red); }

/* 管理后台 */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar { width: 260px; background: var(--dark); color: #fff; padding: 20px 0; flex-shrink: 0; }
.admin-sidebar .logo { padding: 15px 20px; font-size: 18px; font-weight: bold; border-bottom: 1px solid #444; margin-bottom: 20px; }
.admin-menu { list-style: none; }
.admin-menu li a { display: flex; align-items: center; padding: 12px 20px; font-size: 14px; color: #ccc; transition: all 0.3s; gap: 10px; }
.admin-menu li a:hover, .admin-menu li a.active { background: var(--red); color: #fff; }
.admin-menu li a i { width: 20px; text-align: center; }
.admin-main { flex: 1; padding: 20px 30px; background: var(--light-gray); overflow-y: auto; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.admin-header h1 { font-size: 22px; }
.admin-header .user-info { font-size: 14px; color: var(--gray); }
.admin-card { background: #fff; border-radius: 8px; padding: 25px; margin-bottom: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: #fff; border-radius: 8px; padding: 25px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.stat-card .num { font-size: 36px; font-weight: bold; color: var(--red); }
.stat-card .label { font-size: 14px; color: var(--gray); margin-top: 5px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 12px 15px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--border); }
.admin-table th { background: var(--light-gray); font-weight: 600; }
.admin-table tr:hover td { background: #fafafa; }
.admin-table .actions { display: flex; gap: 10px; }
.admin-table .btn-edit { background: var(--blue); color: #fff; padding: 5px 12px; border-radius: 4px; font-size: 12px; }
.admin-table .btn-del { background: var(--red); color: #fff; padding: 5px 12px; border-radius: 4px; font-size: 12px; cursor: pointer; border: none; }
.login-box { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--dark); }
.login-card { background: #fff; border-radius: 10px; padding: 40px; width: 400px; box-shadow: 0 10px 40px rgba(0,0,0,0.3); }
.login-card h2 { text-align: center; margin-bottom: 30px; color: var(--red); }
.login-card input { width: 100%; padding: 12px 15px; margin-bottom: 15px; border: 1px solid var(--border); border-radius: 4px; font-size: 15px; outline: none; }
.login-card input:focus { border-color: var(--red); }
.login-card button { width: 100%; background: var(--red); color: #fff; border: none; padding: 14px; border-radius: 4px; font-size: 16px; cursor: pointer; transition: background 0.3s; }
.login-card button:hover { background: var(--dark-red); }

/* 资讯列表 */
.news-grid { display: block; }

/* 楼市资讯 - 左右分栏布局 */
.news-split {
    display: flex;
    gap: 40px;
}
.news-panel {
    flex: 1;
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.news-panel h3 {
    font-size: 16px;
    font-weight: bold;
    color: var(--dark);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--red);
}
.news-row-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.news-row {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}
.news-row:last-child {
    border-bottom: none;
}
.news-row:hover {
    background: #fafafa;
}
.news-row-img {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}
.news-row-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-row-body {
    flex: 1;
    min-width: 0;
}
.news-row-body h4 {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.news-row:hover .news-row-body h4 {
    color: var(--red);
}
.news-row-meta {
    font-size: 12px;
    color: #999;
}
.news-row-loading {
    padding: 30px;
    text-align: center;
    color: #999;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.news-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: all 0.3s; cursor: pointer; }
.news-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.1); transform: translateY(-3px); }
.news-card .card-img { height: 200px; overflow: hidden; }
.news-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.news-card:hover .card-img img { transform: scale(1.05); }
.news-card .card-body { padding: 18px; }
.news-card .card-title { font-size: 16px; font-weight: bold; margin-bottom: 10px; color: var(--dark); }
.news-card .card-title:hover { color: var(--red); }
.news-card .card-meta { font-size: 13px; color: var(--gray); }
.news-card .card-summary { font-size: 14px; color: var(--gray); margin-top: 10px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* 响应式 */
@media (max-width: 768px) {
  .nav { display: none; }
  .header-main { flex-wrap: wrap; }
  .banner { height: 300px; }
  .banner-search { width: 95%; padding: 15px; }
  .banner-search h2 { font-size: 18px; }
  .detail-gallery { grid-template-columns: 1fr; }
  .admin-wrap { flex-direction: column; }
  .admin-sidebar { width: 100%; }
  .building-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}

/* 热门商圈 */

/* 热门商圈 - 照片卡片样式 */
.biz-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.biz-photo-card {
    display: block;
    text-decoration: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.biz-photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
.biz-photo {
    position: relative;
    height: 212px;
    overflow: hidden;
}
.biz-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.biz-photo-card:hover .biz-photo img {
    transform: scale(1.08);
}
.biz-mask {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}
.biz-icon { font-size: 20px; }
.biz-name { font-size: 15px; font-weight: bold; }

/* 楼市资讯 - 竖排列表样式 */
.news-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.news-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}
.news-item:hover {
    background: #fafafa;
}
.news-item .item-img {
    width: 180px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 20px;
}
.news-item .item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.news-item:hover .item-img img {
    transform: scale(1.05);
}
.news-item .item-body {
    flex: 1;
    min-width: 0;
}
.news-item .item-title {
    font-size: 17px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.news-item .item-title:hover { color: var(--red); }
.news-item .item-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}
.news-item .item-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
