﻿/* Hero */
.hero { position: relative; width: 100%; overflow: hidden; min-height: 420px; background:url('/images/hero/bg.png') center/cover no-repeat; }
.hero-bg{}
.hero-mask { position:absolute; inset:auto 0 0 0; height:70px; background:linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 80%); }
.hero-bottom { height:1px; }
.search-bar { 
    position: relative; 
    z-index: 4; 
    max-width: 980px;
    background: rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px !important;
}
.search-bar .text-secondary { color: #fff !important; }
.search-tabs a { color:#fff; text-decoration:none; font-weight: 500; }
.search-tabs a.active { color:#fff; font-weight:600; text-decoration: underline; }
.search-icon { position:absolute; left:10px; top:50%; transform:translateY(-50%); opacity:.6 }
.toolbox { position: fixed; right: 24px; bottom: 24px; gap: 10px; z-index: 1000; }
.toolbox-left { left:10px; right:auto; }
.tool { display:flex; align-items:center; justify-content:center; width:48px; height:48px; background:#fff; color:#333; border-radius:8px; text-decoration:none; box-shadow:0 2px 8px rgba(0,0,0,.08) }

/* City Selector Button */
.city-selector-btn {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.city-selector-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
}

.city-selector-btn svg {
    vertical-align: middle;
}

/* Banners - 快速开始卡片 */
.banner-card { 
    border-radius: 12px; 
    height: 180px;
    display: block;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 0;
    position: relative;
}

.banner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* 三个卡片不同颜色 - 清新简洁 */
.banner-card-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.banner-card-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.banner-card-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* 卡片文字样式 - 使用 padding-top 实现垂直居中 */
.banner-card-text {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    letter-spacing: 1px;
    line-height: 1;
    padding-top: 74px;
    display: block;
}

/* Resource cards */
.res-card .res-thumb { height:160px; background:#f5f5f5 center/cover no-repeat; border-top-left-radius:.5rem; border-top-right-radius:.5rem }
.tabs a { display:inline-block; padding:.25rem .75rem; border-radius:999px; text-decoration:none; color:#666; margin-right:.25rem }
.tabs a.active { background:#f3d9dd; color:#d02; font-weight:600 }

/* Resource content switching animation */
.resource-container {
    position: relative;
    min-height: 300px;
}

.resource-content {
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
}

/* 产业园默认从左侧进入 */
#industrialContent:not(.active) {
    transform: translateX(-100%);
}

/* 开发区默认从右侧进入 */
#zoneContent:not(.active) {
    transform: translateX(100%);
}

.resource-content.active {
    position: relative;
    transform: translateX(0);
    pointer-events: auto;
}

/* Property content switching animation */
.property-container {
    position: relative;
    min-height: 500px;
}

.property-content {
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
}

.property-content.active {
    position: relative;
    transform: translateX(0);
    pointer-events: auto;
    display: block;
}

/* Sale Property content switching animation */
.sale-property-container {
    position: relative;
    min-height: 500px;
}

.sale-property-content {
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
}

.sale-property-content.active {
    position: relative;
    transform: translateX(0);
    pointer-events: auto;
    display: block;
}

/* ACN合作网络 - 简洁风格 */
.acn-section {
    padding: 60px 0;
}

.acn-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 50px 40px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.acn-card:hover {
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.acn-content {
    position: relative;
    z-index: 2;
}

.acn-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.acn-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.acn-form {
    display: flex;
    gap: 12px;
    max-width: 600px;
}

.acn-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.acn-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.acn-input:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.25);
}

.acn-btn {
    padding: 14px 32px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.acn-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: #f8f9ff;
}

@media (max-width: 768px) {
    .acn-card {
        padding: 30px 20px;
    }
    
    .acn-title {
        font-size: 1.5rem;
    }
    
    .acn-subtitle {
        font-size: 1rem;
    }
    
    .acn-form {
        flex-direction: column;
    }
    
    .acn-btn {
        width: 100%;
    }
}

/* ACN弹窗样式 */
.acn-modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.acn-modal-content .modal-header {
    padding: 24px 24px 16px;
}

.acn-modal-content .modal-body {
    padding: 16px 24px;
}

.acn-modal-content .modal-footer {
    padding: 16px 24px 24px;
}

.acn-modal-content .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* AI匹配动画弹窗 */
.ai-matching-content {
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.ai-animation {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.ai-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    z-index: 2;
}

.ai-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.ai-circle:nth-child(2) {
    animation-delay: 0.3s;
}

.ai-circle:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.matching-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: white;
    border-radius: 2px;
    animation: progress 2.5s ease-in-out forwards;
}

@keyframes progress {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

.ai-matching-content h4 {
    color: white;
    animation: fadeInUp 0.5s ease-out;
}

.ai-matching-content p {
    color: rgba(255, 255, 255, 0.9);
}

/* AI匹配描述文字 - 增强可见度 */
.ai-matching-desc {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 1.05rem;
    font-weight: 500;
}

.ai-matching-content .text-success {
    color: #4ade80 !important;
    animation: fadeInUp 0.8s ease-out;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}

/* AI确认按钮 */
.ai-confirm-btn {
    background: white !important;
    color: #667eea !important;
    border: none !important;
    font-weight: 600;
    padding: 12px 48px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.ai-confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    background: #f8f9ff !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo wall */
.logo-item { background:#fff; border:1px solid #eee; border-radius:.5rem; height:64px; display:flex; align-items:center; justify-content:center }
.logo-item img { max-height:38px; max-width:90%; filter:grayscale(30%) }
/* Ensure hero spans full width and stacks correctly */
.hero { position: relative; width: 100%; overflow: hidden; min-height: 480px; background:url('/images/hero/bg.png') center/cover no-repeat; }
.hero .container { position: relative; z-index: 2; }
.hero-bg{}
.search-bar { 
    position: relative; 
    z-index: 4; 
    max-width: 980px;
    background: rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px !important;
}

.hero::before{content:'';position:absolute;inset:0;background:rgba(0,0,0,.35);z-index:1}
.hero .navbar{z-index:3}

@media (max-width: 576px){ 
    .toolbox{ right:12px; bottom:12px }
    
    /* 移动端导航菜单样式优化 */
    .navbar-collapse {
        background: rgba(25, 46, 117, 0.38);
        backdrop-filter: blur(10px);
        margin-top: 12px;
        border-radius: 12px;
        padding: 16px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    }
    
    .navbar-collapse .navbar-nav {
        margin-bottom: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    .navbar-collapse .nav-item {
        margin: 4px 0;
    }
    
    .navbar-collapse .nav-link {
        padding: 10px 12px;
        border-radius: 8px;
        transition: all 0.3s;
    }
    
    .navbar-collapse .nav-link:hover {
        background: rgba(255, 255, 255, 0.15);
    }
    
    /* 移动端用户菜单按钮优化 */
    .navbar-collapse .btn {
        width: 100%;
        margin-top: 8px;
        justify-content: center;
    }
    
    /* 移动端下拉菜单优化 */
    .navbar-collapse .dropdown-menu {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        margin-top: 8px;
    }
}

/* 平板设备（577px - 767px）菜单样式优化 */
@media (min-width: 577px) and (max-width: 767px) {
    .navbar-collapse {
        background: rgba(25, 46, 117, 0.98);
        backdrop-filter: blur(10px);
        margin-top: 12px;
        border-radius: 12px;
        padding: 16px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    }
    
    .navbar-collapse .navbar-nav {
        margin-bottom: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    .navbar-collapse .nav-link {
        padding: 10px 12px;
        border-radius: 8px;
        transition: all 0.3s;
    }
    
    .navbar-collapse .nav-link:hover {
        background: rgba(255, 255, 255, 0.15);
    }
    
    .navbar-collapse .dropdown-menu {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
}

.tool:hover{ box-shadow:0 6px 18px rgba(0,0,0,.12); transform: translateY(-2px); transition: .2s }
