/* 产业园列表页样式 - 参考贝壳找房设计 */

.park-list-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    min-height: calc(100vh - 70px);
}

/* 搜索区域 - 贝壳风格 */
.search-section {
    background: #fff;
    padding: 20px 24px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.search-box {
    display: flex;
    align-items: center;
    max-width: 100%;
    margin: 0;
    gap: 12px;
}

.search-box input[type="text"] {
    flex: 1;
    height: 42px;
    padding: 0 16px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
    background: #fafafa;
    box-sizing: border-box;
}

.search-box input[type="text"]:focus {
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.search-box input[type="text"]::placeholder {
    color: #999;
}

.btn-search {
    height: 42px;
    padding: 0 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-search:hover {
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-search:active {
    opacity: 0.8;
}

/* 筛选区域 - 贝壳风格 */
.filter-section {
    background: #fff;
    padding: 16px 24px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.filter-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    line-height: 32px;
}

.filter-item:last-child {
    margin-bottom: 0;
}

.filter-item label {
    font-size: 14px;
    font-weight: 400;
    color: #666;
    min-width: 80px;
    margin-right: 16px;
    line-height: 32px;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    flex: 1;
}

.filter-tab {
    padding: 0 16px;
    background: transparent;
    color: #333;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    cursor: pointer;
    line-height: 32px;
    height: 32px;
    display: inline-block;
}

.filter-tab:hover {
    background: #f5f5f5;
    color: #667eea;
}

.filter-tab.active {
    background: #f0f0ff;
    color: #667eea;
    border: none;
    font-weight: 500;
}

.sort-dropdown select {
    padding: 6px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fff;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
    height: 32px;
}

.sort-dropdown select:hover {
    border-color: #667eea;
}

.sort-dropdown select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

/* 结果统计 */
.result-summary {
    background: #fff;
    padding: 12px 24px;
    margin-bottom: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.result-count {
    color: #232629;
    font-weight: 500;
}

.result-count strong {
    color: #667eea;
    font-size: 16px;
    margin: 0 4px;
}

.result-tip {
    color: #9199a1;
}

/* 主内容区 - 贝壳风格 */
.main-content {
    display: flex;
    gap: 12px;
}

.park-list-section {
    flex: 1;
    min-width: 0;
}

/* 产业园卡片列表 - 贝壳风格 */
.park-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.park-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: none;
    transition: all 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    min-height: 140px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
}

.park-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.park-image {
    width: 212px;
    min-width: 212px;
    height: 140px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
    border-radius: 8px 0 0 8px;
}

.park-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.park-card:hover .park-image img {
    transform: scale(1.08);
}

.park-info {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.park-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 8px;
}

.park-name {
    font-size: 18px;
    font-weight: 600;
    color: #232629;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    line-height: 1.4;
}

.park-price {
    font-size: 20px;
    font-weight: 600;
    color: #ff5a4e;
    white-space: nowrap;
    margin-left: 16px;
}

.park-price-unit {
    font-size: 13px;
    font-weight: 400;
    color: #999;
}

.park-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.park-tag {
    padding: 2px 8px;
    font-size: 12px;
    color: #667eea;
    background: #f0f0ff;
    border-radius: 4px;
    border: 1px solid #d0d0ff;
}

.park-tag.hot {
    color: #ff5a4e;
    background: #ffefee;
    border-color: #ffccc9;
    border-radius: 4px;
}

.park-address {
    font-size: 13px;
    color: #9199a1;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.5;
}

.icon-location::before {
    content: "📍";
    font-size: 13px;
}

.park-category {
    display: none; /* 用tags替代 */
}

/* 无数据提示 */
.no-data {
    text-align: center;
    padding: 80px 20px;
    color: #9199a1;
    font-size: 14px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.no-data::before {
    content: '📦';
    display: block;
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* 加载状态 */
.loading-container {
    text-align: center;
    padding: 60px 20px;
    color: #9199a1;
    font-size: 14px;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: #9199a1;
    font-size: 13px;
}

/* 骨架屏 */
.skeleton-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: row;
    min-height: 140px;
    margin-bottom: 12px;
}

.skeleton-image {
    width: 212px;
    min-width: 212px;
    height: 140px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px 0 0 8px;
}

.skeleton-info {
    flex: 1;
    padding: 16px 20px;
}

.skeleton-line {
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    margin-bottom: 12px;
    border-radius: 4px;
}

.skeleton-line.title {
    width: 60%;
    height: 20px;
}

.skeleton-line.tags {
    width: 40%;
    height: 14px;
}

.skeleton-line.address {
    width: 80%;
    height: 14px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 分页 - 贝壳风格 */
.pagination {
    background: transparent;
    padding: 20px 0;
    border-radius: 0;
    box-shadow: none;
}

.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-info {
    color: #9199a1;
    font-size: 13px;
    margin-right: 16px;
}

.page-btn,
.page-num {
    padding: 0px 10px;
    min-width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background: #fff;
    color: #333;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
    cursor: pointer;
    display: inline-block;
}

.page-btn:hover,
.page-num:hover {
    background: #fff;
    color: #667eea;
    border-color: #667eea;
}

.page-num.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
    cursor: default;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-btn:disabled:hover {
    color: #333;
    border-color: #e5e5e5;
}

/* 右侧选址需求表单 - 贝壳风格 */
.requirement-sidebar {
    width: 320px;
    flex-shrink: 0;
}

.requirement-form {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 20px;
}

.requirement-form h3 {
    font-size: 16px;
    font-weight: 600;
    color: #232629;
    margin: 0 0 20px 0;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: #666;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
    background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 70px;
    font-family: inherit;
}

.btn-submit {
    width: 100%;
    height: 42px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.btn-submit:hover {
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-submit:active {
    opacity: 0.8;
}

/* Toast提示框 */
.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background: rgba(35, 38, 41, 0.95);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 9999;
    max-width: 80%;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast.show {
    opacity: 1;
    visibility: visible;
    top: 100px;
}

.toast.success {
    background: rgba(24, 160, 88, 0.95);
}

.toast.error {
    background: rgba(255, 90, 78, 0.95);
}

.toast.info {
    background: rgba(35, 38, 41, 0.95);
}

/* ===== PC端样式结束 ===== */

/* ===== 响应式设计 - 平板和桌面 ===== */
@media (max-width: 1200px) {
    .main-content {
        flex-direction: column;
    }

    .requirement-sidebar {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }

    .requirement-form {
        position: static;
    }
}

/* ===== 移动端专属样式 ===== */
@media (max-width: 768px) {
    /* 整体容器 */
    .park-list-container {
        padding: 0;
        background: #f5f5f5;
    }

    /* 搜索区域 - 移动端 */
    .search-section {
        padding: 16px 12px;
        margin-bottom: 0;
        border-radius: 0;
        box-shadow: none;
        border-bottom: 8px solid #f0f0f0;
        background: #fff;
    }

    .search-box {
        gap: 10px;
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .search-box input[type="text"],
    .search-box #searchKeyword {
        flex: 1 1 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 42px !important;
        padding: 0 16px !important;
        font-size: 14px !important;
        border-radius: 21px !important;
        border: 1px solid #e5e5e5 !important;
        background: #f8f8f8 !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
    }

    .search-box input[type="text"]::placeholder,
    .search-box #searchKeyword::placeholder {
        color: #aaa;
        font-size: 13px;
    }

    .search-box input[type="text"]:focus,
    .search-box #searchKeyword:focus {
        background: #fff !important;
        border-color: #667eea !important;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
    }

    .search-box input[type="text"]:focus::placeholder,
    .search-box #searchKeyword:focus::placeholder {
        color: #ccc;
    }

    .btn-search {
        flex-shrink: 0 !important;
        height: 42px !important;
        padding: 0 20px !important;
        font-size: 14px !important;
        border-radius: 21px !important;
        min-width: 70px !important;
        white-space: nowrap !important;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    }

    .btn-search:active {
        transform: scale(0.98);
    }

    /* 筛选区域 - 移动端 */
    .filter-section {
        padding: 12px;
        margin-bottom: 0;
        box-shadow: none;
        border-bottom: 8px solid #f0f0f0;
        background: #fff;
    }

    .filter-item {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 12px;
        line-height: normal;
    }

    .filter-item:last-child {
        margin-bottom: 0;
    }

    .filter-item label {
        margin-bottom: 8px;
        line-height: normal;
        min-width: auto;
        font-size: 13px;
        color: #666;
    }

    .filter-tabs {
        width: 100%;
        gap: 8px;
    }

    /* 结果统计 - 移动端 */
    .result-summary {
        padding: 10px 12px;
        margin-bottom: 8px;
        box-shadow: none;
        border-bottom: 1px solid #f0f0f0;
        font-size: 12px;
    }

    .result-count strong {
        font-size: 14px;
    }

    .filter-tab {
        padding: 6px 12px;
        font-size: 13px;
        background: #fff;
        border: 1px solid #e5e5e5;
        border-radius: 6px;
        line-height: normal;
        height: auto;
    }

    .filter-tab.active {
        background: #f0f0ff;
        border-color: #d0d0ff;
        border-radius: 6px;
    }

    .sort-dropdown select {
        width: 100%;
        height: 36px;
        font-size: 13px;
    }

    /* 产业园卡片 - 移动端垂直布局 */
    .park-cards {
        gap: 8px;
        margin-bottom: 12px;
    }

    .park-card {
        flex-direction: column;
        min-height: auto;
        border-radius: 0;
        box-shadow: none;
        border-bottom: 8px solid #f5f5f5;
    }

    .park-card:hover {
        transform: none;
        box-shadow: none;
    }

    .park-image {
        width: 100%;
        min-width: 100%;
        height: 200px;
    }

    .park-info {
        padding: 12px;
    }

    .park-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 8px;
    }

    .park-name {
        font-size: 16px;
        margin-bottom: 8px;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        line-height: 1.5;
    }

    .park-price {
        font-size: 18px;
        margin-left: 0;
    }

    .park-tags {
        margin-bottom: 8px;
        gap: 6px;
    }

    .park-tag {
        font-size: 11px;
        padding: 2px 6px;
    }

    .park-address {
        font-size: 12px;
        line-height: 1.6;
    }

    /* 选址需求表单 - 移动端 */
    .requirement-sidebar {
        width: 100%;
        max-width: 100%;
    }

    .requirement-form {
        padding: 16px 12px;
        box-shadow: none;
        border-top: 8px solid #f5f5f5;
        border-radius: 0;
    }

    .requirement-form h3 {
        font-size: 15px;
        margin-bottom: 16px;
        padding-bottom: 10px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .form-group input[type="text"],
    .form-group input[type="tel"],
    .form-group textarea {
        padding: 10px;
        font-size: 13px;
        height: 38px;
    }

    .form-group textarea {
        height: auto;
        min-height: 60px;
    }

    .btn-submit {
        height: 40px;
        font-size: 14px;
        margin-top: 4px;
    }

    /* 分页 - 移动端 */
    .pagination {
        padding: 12px;
        background: #fff;
        border-top: 1px solid #f0f0f0;
    }

    .pagination-wrapper {
        gap: 6px;
        font-size: 12px;
    }

    .page-info {
        width: 100%;
        text-align: center;
        margin-right: 0;
        margin-bottom: 8px;
        font-size: 12px;
    }

    .page-btn,
    .page-num {
        min-width: 32px;
        height: 28px;
        line-height: 28px;
        font-size: 12px;
        padding:0px 10px;
    }

    /* 无数据提示 - 移动端 */
    .no-data {
        padding: 60px 20px;
        font-size: 13px;
        box-shadow: none;
    }

    /* Toast - 移动端 */
    .toast {
        max-width: 90%;
        font-size: 13px;
        padding: 10px 20px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .search-section {
        padding: 12px;
    }

    .search-box {
        flex-direction: column !important;
        gap: 10px;
    }

    .search-box input[type="text"],
    .search-box #searchKeyword {
        width: 100% !important;
        height: 44px !important;
        font-size: 14px !important;
        padding: 0 20px !important;
        border-radius: 22px !important;
        box-sizing: border-box !important;
    }

    .search-box input[type="text"]::placeholder,
    .search-box #searchKeyword::placeholder {
        font-size: 14px;
    }

    .btn-search {
        width: 100% !important;
        height: 44px !important;
        border-radius: 22px !important;
        font-size: 15px !important;
        font-weight: 600;
    }

    .filter-tab {
        flex: 0 0 calc(33.333% - 6px);
        text-align: center;
        padding: 6px 4px;
        font-size: 12px;
    }

    .park-image {
        height: 180px;
    }

    .park-name {
        font-size: 15px;
    }

    .park-price {
        font-size: 16px;
    }
}

/* 出租房源列表特有样式 */
.rent-slogan {
    font-size: 13px;
    color: #f97316;
    margin: 8px 0;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
    z-index: 1;
}
