/* Global Reset & Variables */
:root {
    --primary-color: #24508C;
    /* Deep Navy - Accents only */
    --secondary-color: #BE8421;
    /* 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: #3D6AAD;
}

.btn-primary:active {
    background-color: #16315F;
}

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

.btn-outline:hover {
    background-color: rgba(36, 80, 140, 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(36, 80, 140, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(190, 132, 33, 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;
}

/* 首页 Hero 搜索关键词（仅 .hero 内使用，避免影响其他页） */
.hero .search-form .input-group.portal-hero-keyword {
    flex: 1.25;
    min-width: 140px;
}

.hero .search-form .input-group.portal-hero-keyword input {
    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;
}

.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: #3D6AAD;
}

/* 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(36, 80, 140, 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(190, 132, 33, 0.05), rgba(36, 80, 140, 0.03));
    border-radius: 4px;
    border: 1px solid rgba(190, 132, 33, 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: #D4A24A;
    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 实现省略号 */
}

/* 移动端优势标签优化 */
@media (max-width: 768px) {
    .tag-advantages-container {
        flex-direction: column;
        gap: 4px;
        padding: 6px 8px;
    }
    
    .tag-advantages-container .advantage-item {
        width: 100%;
        flex: 1 1 auto;
        min-width: 0;
    }
    
    .tag-advantages-container .advantage-item .advantage-text {
        width: auto;
        max-width: 100%;
    }
}

.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: #D4A24A;
    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(36, 80, 140, 0.04);
    border-radius: 8px;
    border: 1px solid rgba(36, 80, 140, 0.1);
    transition: all 0.3s ease;
    min-width: 0;
    flex-shrink: 0;
    cursor: pointer;
}

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

.info-item-manager .manager-card-avatar {
    position: relative;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #24508C);
    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(36, 80, 140, 0.2);
}

.info-item-manager .manager-card-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

.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: 768px) {
    .card-info {
        flex-wrap: nowrap !important; /* 移动端不允许换行，保持同一行 */
        align-items: center !important; /* 垂直居中对齐 */
        gap: 12px;
    }
    
    /* 面积和单价包装器 - 让它们在同一行 */
    .info-item:not(.info-item-manager) {
        flex: 0 0 auto;
        min-width: 0;
    }
    
    /* 面积和单价之间间距 */
    .info-item:not(.info-item-manager) + .info-item:not(.info-item-manager) {
        margin-left: 16px;
    }
    
    /* 单价和招商卡片之间间距 */
    .info-item:not(.info-item-manager) + .info-item-manager {
        margin-left: 12px !important; /* 确保单价和招商卡片之间有间隔 */
    }
    
    .info-item-manager {
        flex: 0 0 auto !important; /* 不占据整行 */
        width: auto !important; /* 自动宽度 */
        margin-top: 0 !important; /* 移除顶部边距，保持同一行 */
        margin-left: 12px !important; /* 与单价保持间距 */
        align-self: center !important; /* 垂直居中对齐 */
        flex-shrink: 1 !important; /* 允许适当收缩 */
    }
    
    /* 缩短招商员按钮长度 - 进一步优化，确保不换行 */
    /* 缩短招商员按钮长度 - 进一步优化，确保不换行，与同一行内容对齐 */
    .info-item-manager .manager-card {
        width: auto !important; /* 强制自动宽度 */
        max-width: 160px !important; /* 进一步减小最大宽度，确保不换行 */
        padding: 3px 5px !important; /* 进一步减少padding */
        display: inline-flex !important;
        align-items: center !important; /* 垂直居中 */
        gap: 3px !important; /* 减少间距 */
        flex-shrink: 1 !important; /* 允许适当收缩 */
        height: auto !important; /* 自动高度 */
        min-height: 0 !important;
    }
    
    .info-item-manager .manager-card-avatar {
        width: 18px !important; /* 进一步缩小头像 */
        height: 18px !important;
        flex-shrink: 0;
    }
    
    .info-item-manager .manager-card-info {
        max-width: 120px !important; /* 进一步减小信息区域宽度 */
        min-width: 0;
        flex: 0 0 auto !important; /* 不允许扩展 */
        display: flex !important;
        flex-direction: column !important;
        gap: 1px !important; /* 减小间距 */
        justify-content: center !important; /* 垂直居中 */
    }
    
    /* 移动端隐藏"招商顾问"标题，节省空间 */
    .info-item-manager .manager-card-title {
        display: none !important;
    }
    
    .info-item-manager .manager-card-name {
        font-size: 0.6rem !important; /* 进一步缩小字体 */
        max-width: 40px !important; /* 进一步限制名称最大宽度 */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        line-height: 1.1 !important;
    }
    
    .info-item-manager .manager-card-name-row {
        gap: 0 !important; /* 移除名称和标题之间的间距 */
        display: flex !important;
        align-items: center !important;
        line-height: 1.1 !important;
    }
    
    .info-item-manager .manager-card-phone {
        font-size: 0.55rem !important; /* 进一步缩小字体 */
        max-width: 70px !important; /* 进一步限制电话最大宽度 */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        line-height: 1.1 !important;
        display: flex !important;
        align-items: center !important;
        gap: 2px !important;
        margin-top: 0 !important;
    }
    
    .info-item-manager .manager-card-phone i {
        font-size: 0.5rem !important; /* 进一步缩小图标 */
        flex-shrink: 0;
    }
}

.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: #D4A24A;
    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(36, 80, 140, 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: #D4A24A;
    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(36, 80, 140, 0.95) 0%, rgba(190, 132, 33, 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(36, 80, 140, 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(36, 80, 140, 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;
    }

    .property-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    /* 默认容器padding，但排除导航栏和列表页内容区域 */
    .container:not(.navbar .container):not(#portal-navbar-container .container):not(body.project-list-page #portal-navbar-container ~ .container):not(body.property-list-page #portal-navbar-container ~ .container) {
        padding: 0 16px;
    }

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

    .hero h1 {
        font-size: 1.5rem; /* 减小字体，使"智选厂房，助力企业腾飞"能够一行显示 */
        margin-bottom: 1rem;
        letter-spacing: -0.5px; /* 略微减小字间距，节省空间 */
        line-height: 1.3; /* 优化行高 */
    }

    .hero-subtitle {
        font-size: 0.7rem !important; /* 进一步减小字体，使"海量真实房源 · 专业招商团队 · 一站式企业选址服务"能够一行显示 */
        margin-bottom: 2rem;
        line-height: 1.4 !important; /* 优化行高 */
        letter-spacing: 0.1px !important; /* 减小字间距，节省空间 */
        white-space: nowrap !important; /* 强制不换行 */
        overflow: hidden !important; /* 防止溢出 */
        text-overflow: ellipsis !important; /* 如果还是太长，显示省略号 */
    }

    .search-box {
        padding: 16px;
        border-radius: 8px;
    }

    .search-tabs {
        gap: 20px;
        margin-bottom: 20px;
    }

    .search-tabs .tab {
        font-size: 0.95rem;
        padding-bottom: 12px;
    }

    .search-form {
        flex-direction: column;
        gap: 10px;
    }

    .input-group {
        height: 44px;
        padding: 0 10px 0 14px;
    }

    .input-group i {
        font-size: 1rem;
        margin-right: 6px;
    }

    .input-group select,
    .location-trigger,
    .hero .search-form .input-group.portal-hero-keyword input {
        font-size: 0.9rem;
        padding: 8px 0;
    }

    .btn-search {
        width: 100%;
        height: 44px;
        font-size: 1rem;
    }
    
    /* 移动端房源卡片改为单列垂直布局 */
    .property-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* 确保卡片内容在移动端正常显示 */
    .property-card {
        min-width: 0;
        width: 100%;
    }

    .card-image {
        height: 200px;
        min-height: 200px;
        max-height: 200px;
    }

    .card-body {
        padding: 16px;
    }

    .card-title {
        font-size: 1.05rem;
        white-space: normal;
        overflow: hidden !important; /* 确保溢出隐藏 */
        text-overflow: ellipsis !important; /* 超出显示省略号 */
        line-height: 1.4;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 3 !important; /* 最多显示三行 */
        -webkit-box-orient: vertical;
        max-height: calc(1.4em * 3) !important; /* 三行高度：line-height * 3 */
        word-break: break-word; /* 允许单词内换行 */
    }

    .card-tags {
        margin-bottom: 16px;
        flex-wrap: wrap;
    }

    /* .card-info 和 .info-item 样式已在第754行的媒体查询中定义，避免重复 */

    .info-item .label {
        font-size: 0.7rem;
    }

    .info-item .value {
        font-size: 0.95rem;
    }

    .info-item .value.price {
        font-size: 1.1rem;
    }

    .card-footer {
        flex-direction: row !important; /* 保持横向布局，不换行 */
        align-items: center !important;
        gap: 8px !important; /* 减小间距 */
        flex-wrap: nowrap !important; /* 强制不换行 */
    }

    .card-footer-left {
        flex: 1 1 auto !important; /* 占据剩余空间 */
        min-width: 0 !important; /* 允许收缩 */
        flex-direction: row !important; /* 保持横向布局 */
        align-items: center !important;
        gap: 6px !important; /* 减小间距 */
        overflow: hidden !important; /* 防止溢出 */
    }

    .card-tags-inline {
        flex-wrap: nowrap !important; /* 不换行 */
        gap: 6px !important; /* 减小间距 */
        flex-shrink: 1 !important; /* 允许收缩 */
    }
    
    /* 移动端：减小标签字体，节省空间 */
    .card-tags-inline .tag.tag-inline {
        font-size: 0.75rem !important; /* 减小字体 */
        gap: 4px !important; /* 减小图标和文字间距 */
    }
    
    .card-tags-inline .tag.tag-inline i {
        font-size: 0.7rem !important; /* 减小图标 */
    }
    
    /* 移动端：减小位置信息字体 */
    .card-location {
        font-size: 0.75rem !important; /* 减小字体 */
        white-space: nowrap !important; /* 不换行 */
        overflow: hidden !important; /* 防止溢出 */
        text-overflow: ellipsis !important; /* 显示省略号 */
        flex-shrink: 1 !important; /* 允许收缩 */
    }

    .card-tags-inline .tag.tag-inline {
        font-size: 0.85rem;
    }

    .card-location {
        font-size: 0.85rem;
        width: 100%;
    }

    .btn-view {
        opacity: 1 !important;
        transform: translateX(0) !important;
        width: auto !important; /* 自动宽度，不占据整行 */
        flex: 0 0 auto !important; /* 不拉伸，固定宽度 */
        flex-shrink: 0 !important; /* 不允许收缩 */
        justify-content: center !important;
        padding: 6px 12px !important; /* 减小内边距 */
        font-size: 0.8rem !important; /* 减小字体 */
        white-space: nowrap !important; /* 强制不换行 */
        gap: 4px !important; /* 减小图标和文字间距 */
    }
    
    .btn-view i {
        font-size: 0.7rem !important; /* 减小图标 */
        flex-shrink: 0 !important; /* 图标不允许收缩 */
    }

    /* 快速入口优化 - 使用更具体的选择器，避免影响其他元素 */
    .quick-access {
        padding: 40px 0;
    }

    .quick-access .access-grid {
        gap: 0px !important; /* 进一步减小间距，让项之间更紧凑 */
        display: flex !important; /* 使用flex布局 */
        flex-wrap: nowrap !important; /* 不换行，确保所有项在一行 */
        justify-content: space-between !important; /* 平均分布 */
        overflow: hidden !important; /* 禁止横向滚动 */
        padding: 0 4px !important; /* 左右留出少量空间 */
    }

    .quick-access .access-item {
        padding: 6px 1px !important; /* 进一步减小内边距 */
        gap: 4px !important; /* 进一步减小图标和文字间距 */
        flex: 1 1 0 !important; /* 平均分配空间，允许收缩 */
        min-width: 0 !important; /* 允许收缩到最小 */
        max-width: calc(16.666%) !important; /* 每个项最多占1/6宽度 */
    }

    .quick-access .access-item .icon-box {
        width: 44px !important; /* 增大图标框大小 */
        height: 44px !important;
        font-size: 1.3rem !important; /* 增大图标大小 */
        border-radius: 10px !important;
        flex-shrink: 0 !important; /* 图标框不收缩 */
        margin: 0 auto !important; /* 图标居中 */
    }

    .quick-access .access-item span {
        font-size: 0.65rem !important; /* 保持字体大小 */
        text-align: center !important;
        line-height: 1.1 !important;
        word-break: keep-all !important; /* 保持文字不换行 */
        white-space: nowrap !important; /* 文字不换行 */
        overflow: hidden !important;
        text-overflow: ellipsis !important; /* 超出显示省略号 */
        max-width: 100% !important;
        display: block !important;
    }

    /* 项目卡片优化 */
    .project-scroll {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .project-card {
        height: 240px;
    }

    .project-overlay-content {
        padding: 8px 12px;
        margin: 0 0 12px 12px;
        max-width: calc(100% - 24px);
    }

    .project-overlay h3 {
        font-size: 0.9rem;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        max-height: 2.6em;
        line-height: 1.3;
    }

    .project-overlay p {
        font-size: 0.7rem;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        max-height: 2.2em;
        line-height: 1.3;
        margin-top: 4px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    /* 确保标题最多显示三行，超出部分用省略号 */
    .card-title {
        word-break: break-word;
        overflow: hidden !important; /* 确保溢出隐藏 */
        text-overflow: ellipsis !important; /* 超出显示省略号 */
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important; /* 最多显示三行 */
        -webkit-box-orient: vertical !important;
        max-height: calc(1.4em * 3) !important; /* 三行高度：line-height * 3 */
    }

    .card-location {
        word-break: break-all;
    }

    /* 优化标签显示 */
    .tag {
        font-size: 0.75rem;
        padding: 3px 8px;
    }

    /* 优化徽章显示 */
    .badge {
        font-size: 0.7rem;
        padding: 4px 10px;
        top: 12px;
        left: 12px;
    }
}

/* 列表页（园区列表与房源列表）移动端容器左右留白单独加大，避免卡片和排序栏贴边 */
/* 注意：排除导航栏的.container，只影响内容区域的.container */
@media (max-width: 768px) {
    /* 更精确的选择器：只影响列表页主内容区域的container（导航栏之后的第一个container） */
    body.project-list-page #portal-navbar-container ~ .container,
    body.property-list-page #portal-navbar-container ~ .container {
        padding: 0 20px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* 确保导航栏的container不受影响 */
    body.project-list-page .navbar .container,
    body.property-list-page .navbar .container,
    body.project-list-page #portal-navbar-container .navbar .container,
    body.property-list-page #portal-navbar-container .navbar .container {
        padding: 0 12px !important; /* 保持导航栏原有的padding */
    }
}
