/* 产业园区列表页样式 */

/* 页面内容区 */
.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-top: calc(var(--header-height) + 20px);
    min-height: 100vh;
    background: #fff;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #0060F0;
}

.breadcrumb .sep {
    margin: 0 8px;
    color: #999;
}

.breadcrumb .current {
    color: #333;
}

/* 搜索区域 */
.search-section {
    display: flex;
    margin: 20px 0 30px;
}

.search-input-large {
    flex: 1;
    height: 50px;
    padding: 0 20px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    outline: none;
}

.search-input-large:focus {
    border-color: #0060F0;
}

.search-btn-large {
    width: 120px;
    height: 50px;
    background: #0060F0;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn-large:hover {
    background: #0050D0;
}

/* 筛选区域 */
.filter-section {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.filter-row {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
}

.filter-row:last-of-type {
    border-bottom: none;
}

.filter-label {
    width: 80px;
    font-size: 14px;
    color: #666;
    flex-shrink: 0;
    padding-top: 6px;
}

.filter-tags {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tag {
    padding: 6px 16px;
    font-size: 14px;
    color: #333;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tag:hover {
    color: #0060F0;
}

.filter-tag.active {
    color: #0060F0;
    background: rgba(0, 96, 240, 0.08);
    font-weight: 500;
}

.filter-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 15px 0 0;
    color: #0060F0;
    font-size: 14px;
    cursor: pointer;
}

/* 已选条件 */
.selected-conditions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 0;
    margin-bottom: 20px;
}

.selected-conditions .label {
    font-size: 14px;
    color: #666;
}

.condition-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
}

.condition-tag .remove {
    cursor: pointer;
    color: #999;
    margin-left: 5px;
}

.condition-tag .remove:hover {
    color: #f00;
}

/* 园区列表 */
.park-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.park-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
}

.park-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: #0060F0;
}

.park-image {
    width: 160px;
    height: 120px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.park-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.park-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.park-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.park-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.park-tags .tag {
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 4px;
    background: #f5f5f5;
    color: #666;
}

.park-tags .tag.level {
    background: #FFF7E6;
    color: #D46B08;
}

.park-tags .tag.level.province {
    background: #FFF7E6;
    color: #D46B08;
}

.park-industry {
    font-size: 13px;
    color: #666;
    margin-bottom: auto;
}

.park-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 10px;
}

.park-area {
    font-size: 24px;
    font-weight: 600;
    color: #F5A623;
}

.park-area small {
    font-size: 12px;
    font-weight: 400;
    color: #999;
    margin-left: 2px;
}

.park-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #999;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 40px 0;
}

.page-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    border-color: #0060F0;
    color: #0060F0;
}

.page-btn:disabled {
    color: #ccc;
    cursor: not-allowed;
}

.page-num {
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

.page-num:hover {
    border-color: #0060F0;
    color: #0060F0;
}

.page-num.active {
    background: #0060F0;
    border-color: #0060F0;
    color: #fff;
}

.page-dots {
    padding: 0 5px;
    color: #999;
}

/* 右侧悬浮工具 */
.float-tools {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s;
}

.tool-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.tool-item span {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}

/* ========================================
   移动端响应式适配
   ======================================== */

/* 平板设备 (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .page-content {
        padding: 15px;
        padding-top: calc(var(--header-height) + 15px);
    }
    
    .park-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .park-card {
        padding: 15px;
    }
    
    .park-image {
        width: 140px;
        height: 100px;
    }
    
    .float-tools {
        display: none;
    }
}

/* 手机设备 (小于 768px) */
@media screen and (max-width: 768px) {
    :root {
        --header-height: 56px;
    }
    
    .page-content {
        padding: 12px;
        padding-top: calc(var(--header-height) + 12px);
    }
    
    /* 面包屑导航 */
    .breadcrumb {
        padding: 10px 0;
        font-size: 13px;
    }
    
    /* 搜索区域 */
    .search-section {
        margin: 15px 0 20px;
    }
    
    .search-input-large {
        height: 44px;
        padding: 0 15px;
        font-size: 14px;
    }
    
    .search-btn-large {
        width: 80px;
        height: 44px;
        font-size: 14px;
    }
    
    /* 筛选区域 */
    .filter-section {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .filter-row {
        flex-direction: column;
        padding: 12px 0;
        gap: 10px;
    }
    
    .filter-label {
        width: 100%;
        font-size: 13px;
        padding-top: 0;
        font-weight: 500;
        color: #333;
    }
    
    .filter-tags {
        gap: 8px;
    }
    
    .filter-tag {
        padding: 5px 12px;
        font-size: 12px;
    }
    
    .filter-toggle {
        padding: 12px 0 0;
        font-size: 13px;
    }
    
    /* 已选条件 */
    .selected-conditions {
        padding: 10px 0;
        margin-bottom: 15px;
        flex-wrap: wrap;
    }
    
    .selected-conditions .label {
        font-size: 13px;
    }
    
    .condition-tag {
        padding: 3px 10px;
        font-size: 12px;
    }
    
    /* 园区列表 */
    .park-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .park-card {
        flex-direction: column;
        padding: 12px;
        gap: 12px;
    }
    
    .park-image {
        width: 100%;
        height: 160px;
    }
    
    .park-info {
        gap: 8px;
    }
    
    .park-name {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .park-tags {
        gap: 6px;
        margin-bottom: 6px;
    }
    
    .park-tags .tag {
        padding: 2px 6px;
        font-size: 11px;
    }
    
    .park-industry {
        font-size: 12px;
    }
    
    .park-bottom {
        margin-top: 8px;
    }
    
    .park-area {
        font-size: 20px;
    }
    
    .park-area small {
        font-size: 11px;
    }
    
    .park-location {
        font-size: 12px;
    }
    
    /* 分页 */
    .pagination {
        padding: 30px 0;
        gap: 6px;
        flex-wrap: wrap;
    }
    
    .page-btn,
    .page-num {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
    
    .page-dots {
        padding: 0 3px;
    }
    
    /* 悬浮工具 */
    .float-tools {
        display: none;
    }
}

/* 小屏手机 (小于 480px) */
@media screen and (max-width: 480px) {
    :root {
        --header-height: 52px;
    }
    
    .page-content {
        padding: 10px;
        padding-top: calc(var(--header-height) + 10px);
    }
    
    .breadcrumb {
        padding: 8px 0;
        font-size: 12px;
    }
    
    .search-section {
        margin: 12px 0 15px;
    }
    
    .search-input-large {
        height: 44px;
        padding: 0 12px;
        font-size: 16px;
    }
    
    .search-btn-large {
        width: 75px;
        height: 44px;
        font-size: 14px;
    }
    
    .filter-section {
        padding: 10px;
    }
    
    .filter-row {
        padding: 10px 0;
    }
    
    .filter-label {
        font-size: 12px;
    }
    
    .filter-tag {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .park-image {
        height: 140px;
    }
    
    .park-name {
        font-size: 14px;
    }
    
    .park-tags .tag {
        font-size: 10px;
    }
    
    .park-area {
        font-size: 18px;
    }
    
    .page-btn,
    .page-num {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

/* 横屏手机适配 */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .park-card {
        flex-direction: row;
    }
    
    .park-image {
        width: 120px;
        height: 90px;
    }
}
