/* 华天房产交易管理系统主界面样式 - 贝壳找房风格 */

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* 顶部导航栏 */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 70px;
}

.logo h1 {
    color: #1e88e5;
    font-size: 24px;
    font-weight: 600;
}

.logo i {
    margin-right: 10px;
    color: #1e88e5;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-size: 16px;
    font-weight: 500;
    padding: 10px 0;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav .nav-active {
    color: #1e88e5;
    border-bottom: 2px solid #1e88e5;
}

.user-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.login-btn,
.register-btn {
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s;
}

.login-btn {
    border: 1px solid #1e88e5;
    color: #1e88e5;
}

.login-btn:hover {
    background: #1e88e5;
    color: white;
}

.register-btn {
    background: #1e88e5;
    color: white;
}

.register-btn:hover {
    background: #1565c0;
}

.user-center {
    color: #666;
    font-size: 14px;
}

.user-center i {
    margin-right: 5px;
}

/* 搜索区域 */
.search-section {
    background: linear-gradient(135deg, #1e88e5, #1565c0);
    color: white;
    padding: 60px 0;
}

.search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.search-container h2 {
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: 600;
}

.search-container p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.search-form {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.search-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
}

.search-tabs button {
    padding: 10px 30px;
    border: none;
    background: rgba(255,255,255,0.2);
    color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-tabs .tab-active {
    background: white;
    color: #1e88e5;
}

.search-fields {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    align-items: end;
}

.search-field {
    text-align: left;
}

.search-field label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    opacity: 0.9;
}

.search-field select {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    background: white;
    font-size: 14px;
}

.search-btn {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #e55a2b;
}

/* 主要内容区域 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.more-link {
    color: #1e88e5;
    font-size: 14px;
}

.more-link:hover {
    text-decoration: underline;
}

/* 房源网格布局 */
.houses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.house-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.house-card:hover {
    transform: translateY(-5px);
}

.house-image {
    width: 100%;
    height: 200px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.house-info {
    padding: 15px;
}

.house-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.house-details {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.house-price {
    color: #ff6b35;
    font-size: 18px;
    font-weight: 600;
}

.house-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.tag {
    background: #e3f2fd;
    color: #1e88e5;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

/* 小区网格布局 */
.communities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.community-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.community-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.community-info {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.community-price {
    color: #ff6b35;
    font-size: 16px;
    font-weight: 600;
}

/* 经纪人网格布局 */
.brokers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.broker-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.broker-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f0f0f0;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #999;
}

.broker-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.broker-company {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.broker-rating {
    color: #ffc107;
    margin-bottom: 10px;
}

.contact-btn {
    background: #1e88e5;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-btn:hover {
    background: #1565c0;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #bdc3c7;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.social-links a {
    font-size: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .houses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .brokers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }
    
    .main-nav ul {
        margin: 15px 0;
        gap: 20px;
    }
    
    .search-fields {
        grid-template-columns: 1fr;
    }
    
    .houses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .communities-grid {
        grid-template-columns: 1fr;
    }
    
    .brokers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .houses-grid {
        grid-template-columns: 1fr;
    }
    
    .brokers-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
}