/* Global Reset & Variables */
:root {
    --primary-color: #003366;
    /* Deep Navy - Accents only */
    --secondary-color: #D4AF37;
    /* Muted Gold - Premium highlights */
    --text-main: #1F2937;
    /* Dark Gray */
    --text-sub: #6B7280;
    /* Medium Gray */
    --bg-body: #FFFFFF;
    --bg-section: #F9FAFB;
    /* Very Light Gray */
    --border-light: #E5E7EB;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius-md: 8px;
    --radius-lg: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-main);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-sub);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #002244;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.2);
}

.btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background-color: rgba(0, 51, 102, 0.05);
}

/* Hero Section - Refined */
.hero {
    height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F3F4F6;
    overflow: hidden;
}

/* Abstract Background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(0, 51, 102, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 20%);
    z-index: 0;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    /* Modern geometric pattern background */
    z-index: 0;
    filter: grayscale(5%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: center;
    max-width: 900px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3.5rem;
    color: var(--text-sub);
    font-weight: 400;
}

/* Refined Search Box */
.search-box {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease;
}

.search-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.search-tabs {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0;
}

.search-tabs .tab {
    background: none;
    border: none;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-sub);
    cursor: pointer;
    padding-bottom: 15px;
    position: relative;
    transition: color 0.3s;
}

.search-tabs .tab.active {
    color: var(--primary-color);
}

.search-tabs .tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.search-form {
    display: flex;
    gap: 12px;
}

.input-group {
    flex: 1;
    min-width: 0;
    background-color: #F9FAFB;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    padding: 0 12px 0 16px;
    height: 50px;
    transition: all 0.3s;
    box-sizing: border-box;
    position: relative;
    overflow: visible; /* 改为visible，允许下拉列表显示 */
}

.input-group:hover,
.input-group:focus-within {
    background-color: white;
    border-color: var(--border-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.input-group i {
    color: var(--text-sub);
    margin-right: 8px;
    margin-left: 4px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.input-group select {
    flex: 1;
    min-width: 0;
    width: 100%;
    border: none;
    outline: none;
    padding: 10px 0;
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-main);
    background: transparent;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
    /* 确保文本显示正常 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    /* 确保select有明确的宽度，下拉列表会跟随 */
    position: relative;
    /* 允许通过JavaScript设置宽度和margin */
    transition: none;
}

/* 区域选择触发器按钮样式 */
.location-trigger {
    flex: 1;
    min-width: 0;
    width: 100%;
    border: none;
    outline: none;
    padding: 10px 0;
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-main);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.location-trigger:hover {
    color: var(--primary-color);
}

.location-trigger i {
    margin-left: 8px;
    font-size: 0.8rem;
    color: var(--text-sub);
    flex-shrink: 0;
}

/* 针对不同浏览器的兼容性处理 */
.input-group select::-ms-expand {
    display: none;
}

/* 下拉列表选项样式 */
.input-group select option {
    padding: 10px 12px;
    font-size: 0.95rem;
    color: var(--text-main);
    background: white;
    white-space: nowrap;
}

.btn-search {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 36px;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    height: 50px;
}

.btn-search:hover {
    background-color: #002244;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.2);
}

/* Quick Access - Minimalist */
.quick-access {
    padding: 60px 0;
    background-color: white;
}

.access-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.access-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: var(--text-sub);
    transition: all 0.3s;
    padding: 20px;
    border-radius: var(--radius-md);
}

.access-item:hover {
    transform: translateY(-5px);
    color: var(--primary-color);
    background-color: #F9FAFB;
}

.icon-box {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background-color: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary-color);
    transition: all 0.3s;
}

.access-item:hover .icon-box {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.15);
}

.access-item span {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Sections */
.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-section);
}

/* Property Grid - Refined */
.property-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.property-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.card-image {
    height: 240px;
    min-height: 240px;
    max-height: 240px;
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5;
}

.card-image img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.property-card:hover .card-image img {
    transform: scale(1.08);
}

.badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    border-radius: 6px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.badge.top {
    background-color: var(--secondary-color);
    color: white;
}

.badge.hot {
    background-color: #E63946;
}

.badge.new {
    background-color: #10B981;
}

/* 图片右上角标签 */
.card-image-tags {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.card-image-tags .tag-image {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
}

.card-image-tags .tag-image.status-active {
    background-color: rgba(16, 185, 129, 0.95);
    color: white;
}

.card-body {
    padding: 24px;
}

.card-title {
    font-size: 1.15rem;
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
}

.card-tags {
    margin-bottom: 20px;
    display: flex;
    gap: 8px;
    flex-wrap: nowrap; /* 防止标签换行 */
    align-items: center;
}

.tag {
    background-color: #F3F4F6;
    color: var(--text-sub);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    flex-shrink: 0; /* 类型和状态标签不允许收缩，保持完整显示 */
    white-space: nowrap;
}

.tag.status-active {
    background-color: rgba(16, 185, 129, 0.1);
    color: #059669;
}

/* 优势标签容器 - 放在标签行内 */
.tag-advantages-container {
    display: flex;
    gap: 6px;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(0, 51, 102, 0.03));
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    flex: 1 1 0; /* 允许收缩和扩展，平分剩余空间 */
    min-width: 0; /* 允许收缩到0 */
    overflow: hidden;
    align-items: center;
}

.tag-advantages-container .advantage-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    color: var(--text-main);
    line-height: 1.3;
    flex: 1 1 0; /* 每个优势项平分长度 */
    min-width: 0;
    max-width: 100%;
}

.tag-advantages-container .advantage-item i {
    font-size: 0.65rem;
    color: #D4AF37;
    flex-shrink: 0;
}

.tag-advantages-container .advantage-item .advantage-text {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1 1 0;
    min-width: 0;
    width: 0; /* 配合 flex 实现省略号 */
}

.card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
    flex-wrap: nowrap; /* 桌面端默认不换行 */
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 0 0 auto;
    flex-shrink: 0; /* 防止被压缩 */
}

/* 面积和单价之间增加间距 */
.info-item:not(.info-item-manager) + .info-item:not(.info-item-manager) {
    margin-left: 24px;
}

.info-item .label {
    font-size: 0.75rem;
    color: var(--text-sub);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item .value {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1rem;
}

.info-item .value.price {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* 招商人员卡片样式（适配门户网页卡片） */
.info-item-manager {
    flex: 0 0 auto;
    min-width: 0;
    margin-top: 0;
    margin-left: auto; /* 自动推到最后 */
    flex-shrink: 0; /* 不允许收缩，保持原始大小 */
}

.info-item-manager .manager-card {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(0, 51, 102, 0.04);
    border-radius: 8px;
    border: 1px solid rgba(0, 51, 102, 0.1);
    transition: all 0.3s ease;
    min-width: 0;
    flex-shrink: 0;
    cursor: pointer;
}

.info-item-manager .manager-card:hover {
    background: rgba(0, 51, 102, 0.08);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 51, 102, 0.1);
}

.info-item-manager .manager-card-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #004080);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 51, 102, 0.2);
}

.info-item-manager .manager-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-item-manager .manager-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-item-manager .manager-card-name-row {
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.2;
}

.info-item-manager .manager-card-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-item-manager .manager-card-title {
    font-size: 0.65rem;
    color: var(--text-sub);
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.info-item-manager .manager-card-phone {
    font-size: 0.7rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 3px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.info-item-manager .manager-card-phone i {
    font-size: 0.65rem;
    flex-shrink: 0;
}

/* 移动端：招商人员卡片换行显示 */
@media (max-width: 767px) {
    .card-info {
        flex-wrap: wrap; /* 移动端允许换行 */
        align-items: flex-start;
    }
    
    .info-item-manager {
        flex: 1 1 100%;
        width: 100%;
        margin-top: 8px;
        margin-left: 0; /* 移动端移除自动左边距 */
    }
    
    .info-item-manager .manager-card {
        width: 100%;
        max-width: 100%;
    }
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.card-footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.card-tags-inline {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    align-items: center;
}

.card-tags-inline .tag.tag-inline {
    background-color: transparent;
    color: var(--text-sub);
    padding: 0;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 400;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-tags-inline .tag.tag-inline i {
    font-size: 0.85rem;
    color: var(--text-sub);
    opacity: 0.7;
    flex-shrink: 0;
}

.card-tags-inline .tag.tag-inline.status-active {
    color: #059669;
}

.card-tags-inline .tag.tag-inline.status-active i {
    color: #059669;
    opacity: 1;
}

.card-location {
    font-size: 0.9rem;
    color: var(--text-sub);
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-view {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.property-card:hover .btn-view {
    opacity: 1;
    transform: translateX(0);
}

/* Project Scroll - Refined */
.project-scroll {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.project-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 360px;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.project-img {
    height: 100%;
    position: relative;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 70%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    height: 100%;
    pointer-events: none;
}

.project-overlay-content {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    margin: 0 0 16px 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
    pointer-events: auto;
    display: inline-flex;
    flex-direction: column;
    width: fit-content;
    max-width: calc(100% - 32px);
}

.project-overlay h3 {
    font-size: 0.95rem;
    margin-bottom: 4px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.project-overlay p {
    opacity: 0.85;
    font-size: 0.75rem;
    line-height: 1.3;
    margin: 0;
    color: var(--text-sub);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.project-overlay-hoverable {
    cursor: help;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.project-overlay-hoverable:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.02);
}

/* 项目工具提示框 */
.project-tooltip {
    position: absolute;
    z-index: 10000;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15),
                0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-width: 420px;
    min-width: 300px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-height: 70vh;
    overflow-y: auto;
}

.project-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

.project-tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    left: var(--arrow-left, 24px);
    right: var(--arrow-right, auto);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
    filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.1));
    transition: left 0.3s ease, right 0.3s ease;
}

.project-tooltip.tooltip-top::before {
    top: auto;
    bottom: -8px;
    border-top: 8px solid white;
    border-bottom: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.tooltip-section {
    margin-bottom: 20px;
}

.tooltip-section:last-child {
    margin-bottom: 0;
}

.tooltip-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

.tooltip-section-title i {
    font-size: 0.9rem;
    color: var(--primary-color);
}

.tooltip-section-content {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-sub);
    word-wrap: break-word;
}

.tooltip-advantages-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tooltip-advantages-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    padding-left: 0;
    line-height: 1.5;
}

.tooltip-advantages-list li:last-child {
    margin-bottom: 0;
}

.tooltip-advantages-list li i {
    color: #D4AF37;
    font-size: 0.75rem;
    margin-top: 4px;
    flex-shrink: 0;
}

.project-tags {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    z-index: 2;
    max-width: calc(100% - 32px);
    align-items: flex-start;
}

.project-tags .badge {
    position: static;
    display: inline-block;
}

/* 政策级别标签（在项目名称前） */
.policy-badge {
    display: inline-block;
    background-color: rgba(0, 51, 102, 0.1);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-right: 8px;
    vertical-align: middle;
    line-height: 1.4;
}

.project-tag {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

/* Features Grid - Minimalist */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.feature-box {
    padding: 30px;
    background: #F9FAFB;
    border-radius: var(--radius-lg);
    transition: all 0.3s;
}

.feature-box:hover {
    background: white;
    box-shadow: var(--shadow-soft);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 24px;
}

.feature-box h3 {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.feature-box p {
    color: var(--text-sub);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Footer 样式已移至组件 css/portal-bottom-section.css */

/* 区域选择模态框样式（复用城市模态框样式） */
.location-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
    animation: fadeIn 0.3s ease;
}

/* 当模态框打开时，禁用body滚动 */
body.location-modal-open {
    overflow: hidden;
}

.location-modal-content {
    background-color: #fff;
    margin: 10vh auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 720px;
    height: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#location-selector-modal .location-modal-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px 24px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.95) 0%, rgba(212, 175, 55, 0.95) 100%) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    flex-shrink: 0 !important;
}

#location-selector-modal .location-modal-header .location-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

#location-selector-modal .location-modal-header .location-header-left i {
    font-size: 0.9rem;
    color: white !important;
}

#location-selector-modal .location-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: white !important;
    letter-spacing: 0.3px;
    line-height: 1.5;
}

#location-selector-modal .location-modal-close {
    background: none;
    border: none;
    font-size: 0.9rem;
    color: white !important;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    line-height: 1;
    opacity: 0.9;
}

#location-selector-modal .location-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    opacity: 1;
}

.location-modal-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
}

/* 搜索框样式 */
.location-search-box {
    position: relative;
    padding: 10px 20px;
    border-bottom: 1px solid #e5e7eb;
    background-color: #fff;
    flex-shrink: 0;
}

.location-search-box i.fa-search {
    position: absolute;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 1;
}

.location-search-box input {
    width: 100%;
    padding: 7px 32px 7px 32px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-main);
    background-color: #f9fafb;
    transition: all 0.2s ease;
    box-sizing: border-box;
    line-height: 1.5;
}

.location-search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(0, 51, 102, 0.05);
}

.location-search-box input::placeholder {
    color: #999;
}

.location-search-clear {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    z-index: 1;
}

.location-search-clear:hover {
    background-color: #f0f0f0;
    color: var(--text-main);
}

.location-list-container {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.location-list {
    padding: 20px 24px;
}

/* 加载状态 */
.location-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #999;
    gap: 12px;
}

.location-loading i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.location-loading span {
    font-size: 0.95rem;
}

/* 空状态 */
.location-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.location-empty i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.location-empty p {
    font-size: 0.95rem;
    margin: 0;
}

/* 全城选项（特殊样式） */
.location-item-all {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 10px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-weight: 500;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.location-item-all i {
    font-size: 0.9rem;
    color: var(--text-sub);
}

.location-item-all:hover {
    background-color: #f3f4f6;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 区县分组 */
.location-district-group {
    margin-bottom: 16px;
}

.location-district-group:last-child {
    margin-bottom: 0;
}

.location-district-header {
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.location-district-header:hover {
    opacity: 0.9;
}

.location-district-header-content {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: #f9fafb;
    border-left: 2px solid var(--primary-color);
    border-radius: 6px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.location-district-header:hover .location-district-header-content {
    background-color: #f3f4f6;
}

.location-district-header.expanded .location-district-header-content {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: 1px solid rgba(0, 51, 102, 0.1);
}

.location-district-header-content i.fa-map {
    font-size: 0.85rem;
    color: var(--text-sub);
}

.location-expand-icon {
    margin-left: auto;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    color: var(--text-sub);
    padding: 2px;
}

/* 街道选项容器 */
.location-townships {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 16px;
    background-color: #fff;
    border-left: 2px solid #e5e7eb;
    border-radius: 0 0 6px 6px;
    animation: slideDown 0.3s ease;
    margin-top: -1px;
}

/* 全区选项（在每个区县分组中，样式与街道选项一致，但字体稍粗） */
.location-item-all-district {
    font-weight: 500;
}

.location-item-all-district i {
    font-size: 0.75rem;
    color: var(--primary-color);
    opacity: 0.7;
}

.location-item-all-district:hover i {
    opacity: 1;
}

.location-item-all-district::before {
    background-color: var(--primary-color);
    opacity: 0.6;
}

/* 街道网格容器 */
.location-townships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 6px;
}

.location-item-township {
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-sub);
    font-size: 0.9rem;
    border: 1px solid #e5e7eb;
    background-color: #f9fafb;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.location-item-township::before {
    content: '';
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background-color: var(--text-sub);
    opacity: 0.4;
    flex-shrink: 0;
}

.location-item-township:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: #f3f4f6;
}

.location-item-township:hover::before {
    background-color: var(--primary-color);
    opacity: 0.6;
}

/* 全区选项使用街道选项的样式，但字体稍粗，图标颜色不同 */
.location-item-all-district {
    font-weight: 500;
}

.location-item-all-district::before {
    display: none; /* 全区选项不显示圆点 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .location-modal-content {
        width: 95%;
        margin: 5vh auto;
        height: 85vh;
    }
    
    .location-modal-header {
        padding: 16px 20px;
    }
    
    .location-modal-header h3 {
        font-size: 1.1rem;
    }
    
    .location-modal-close {
        width: 22px;
        height: 22px;
        font-size: 0.85rem;
    }
    
    .location-search-box {
        padding: 8px 16px;
    }
    
    .location-list {
        padding: 16px 20px;
    }
    
    .location-townships {
        grid-template-columns: 1fr;
        padding-left: 0;
    }
    
    .location-item-district {
        padding: 12px 16px;
    }
    
    .location-item-township {
        padding: 10px 12px;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .project-scroll {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    .hero {
        height: auto;
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .search-box {
        padding: 20px;
    }

    .search-form {
        flex-direction: column;
    }

    .btn-search {
        width: 100%;
    }
    
    /* 在小屏幕上，房源卡片仍然保持3列，但进一步缩小间距 */
    .property-grid {
        gap: 12px;
    }
    
    /* 确保卡片内容在小屏幕上也能正常显示 */
    .property-card {
        min-width: 0; /* 允许卡片缩小 */
    }
}
