/* ========== find.css ��ͼ����ҳ����ʽ ========== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft Yahei", sans-serif;
    background: #f5f5f5;
    overflow: hidden;
    height: 100vh;
}

/* ������ */
.main-wrapper {
    height: calc(100vh - 60px);
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.main-content {
    flex: 1;
    display: flex;
    position: relative;
    overflow: hidden;
}

/* ������ */
.left-panel {
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
    overflow: hidden;
}

/* ��Ŀ���⣨����ģʽ�� */
.panel-toolbar {
    flex-shrink: 0;
    background: #fff;
    padding: 12px 14px;
    border-bottom: 1px solid #eee;
}

.panel-toolbar .toolbar-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.panel-toolbar .toolbar-title {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
    margin-right: 4px;
}

.panel-toolbar .toolbar-btns {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.panel-toolbar .toolbar-btns button {
    padding: 5px 10px;
    border: 1px solid #d9d9d9;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    white-space: nowrap;
    transition: all 0.2s;
}

.panel-toolbar .toolbar-btns button:hover {
    border-color: #293047;
    color: #293047;
}

.panel-toolbar .toolbar-btns button.active {
    background: #293047;
    color: #fff;
    border-color: #293047;
}

.panel-toolbar .toolbar-btns button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ����ɸѡ��ť */
.panel-toolbar .toolbar-btns button.correction-btn {
    background: #e67e22;
    border-color: #e67e22;
    color: #fff;
}

.panel-toolbar .toolbar-btns button.correction-btn:hover {
    background: #d35400;
    border-color: #d35400;
}

/* ������ģʽ���� */
#panelViewerToolbar .toolbar-row-viewer {
    display: flex;
    align-items: center;
    gap: 6px;
}

#panelViewerToolbar .toolbar-btns-viewer {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

#panelViewerToolbar .toolbar-btns-viewer button {
    padding: 4px 10px;
    border: 1px solid #d9d9d9;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    white-space: nowrap;
    transition: all 0.2s;
}

#panelViewerToolbar .toolbar-btns-viewer button:hover {
    border-color: #293047;
    color: #293047;
}

/* PC端：标题文字不显示 */
#panelViewerToolbar .viewer-title-text { display: none; }

/* ������������� */
.result-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.result-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.2s, border-color 0.2s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    border: 2px solid transparent;
}

.result-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.result-item.active-item {
    border-color: #ff0000;
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.3);
}

.result-item .thumb-wrap {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
    background: #eee;
}

.result-item .thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-item .item-info {
    padding: 8px 10px;
}

.result-item .item-name {
    font-size: 12px;
    font-weight: bold;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    line-height: 1.3;
}

.item-detail-line {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
    line-height: 1.4;
}

.item-detail-line:first-of-type {
    margin-top: 0;
}

.no-data {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 13px;
    grid-column: 1/-1;
}

.no-data img {
    max-width: 200px;
    margin-top: 10px;
    border-radius: 8px;
}

/* �Ҳ��ͼ */
.right-panel {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

.right-panel.hidden {
    display: none;
}

#map {
    width: 100%;
    height: 100%;
}

/* �ָ��� */
.split-divider {
    flex-shrink: 0;
    background: #293047;
    position: relative;
    z-index: 10;
    transition: background 0.2s;
}

.split-divider:hover {
    background: #1890ff;
}

.split-divider.hidden {
    display: none;
}

.drag-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
}

/* ȫ��iframe��� */
.iframe-panel {
    position: relative;
    overflow: hidden;
}

.iframe-panel iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
}

.iframe-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 10;
    display: none;
}

/* Ԥ�������س� */
#preloadPool {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
    z-index: -1;
}

#preloadPool iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ʮ�ּ� */
.cross {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 30px;
    height: 30px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 999;
    display: none;
}

.cross.clickable {
    pointer-events: auto;
    cursor: pointer;
}

.cross::before {
    content: "";
    position: absolute;
    width: 3px;
    height: 100%;
    background: #ff0000;
    left: 50%;
    margin-left: -2px;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.8);
    border-radius: 2px;
}

.cross::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 3px;
    background: #ff0000;
    top: 50%;
    margin-top: -2px;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.8);
    border-radius: 2px;
}

/* ʮ�ּ��Ϸ�״̬��ʾ */
.cross-status {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -70px);
    pointer-events: none;
    z-index: 1000;
    display: none;
    white-space: nowrap;
}

.cross-status span {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}

.cross-status .status-ready {
    background: rgba(24, 144, 255, 0.9);
    color: #fff;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.4);
}

.cross-status .status-no-data {
    background: rgba(255, 108, 0, 0.9);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 108, 0, 0.4);
}

/* ��ͼ�ײ������� - PC�� */
.bottom-toolbar {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.93);
    padding: 6px 12px;
    border-radius: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* ����������ť - PC�� */
.history-btn {
    position: relative;
}

.history-btn button {
    padding: 8px 16px;
    background: #293047;
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(41, 48, 71, 0.35);
    white-space: nowrap;
    transition: all 0.2s;
}

.history-btn button:hover {
    background: #3d4566;
    box-shadow: 0 5px 14px rgba(41, 48, 71, 0.5);
    transform: translateY(-1px);
}

/* ������ʷ���� */
.search-history {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    max-height: 360px;
    overflow-y: auto;
    display: none;
    z-index: 1002;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
    margin-bottom: 8px;
    min-width: 260px;
}

.search-history .history-header {
    padding: 10px 14px;
    font-size: 12px;
    color: #999;
    border-bottom: 1px solid #f5f5f5;
    font-weight: bold;
}

.search-history .history-item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-history .history-item:hover {
    background: #e6f7ff;
}

.search-history .history-item .history-num {
    font-size: 12px;
    color: #293047;
    font-weight: bold;
    min-width: 18px;
}

.search-history .history-item .history-time {
    font-size: 12px;
    color: #333;
    white-space: nowrap;
    font-weight: bold;
}

.search-history .history-item .history-coord {
    font-size: 11px;
    color: #666;
}

.search-history .history-empty {
    padding: 20px 14px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

/* �ص����� */
.search-container {
    position: relative;
    flex: 1;
}

.search-container input {
    width: 200px;
    padding: 8px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 20px;
    font-size: 13px;
    outline: none;
    background: #fff;
    transition: border-color 0.2s;
    color: #333;
}

.search-container input:focus {
    border-color: #293047;
    box-shadow: 0 0 0 2px rgba(41, 48, 71, 0.1);
}

.search-container input::placeholder {
    color: #999;
}

.search-suggestions {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    max-height: 320px;
    overflow-y: auto;
    display: none;
    z-index: 1001;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
    margin-bottom: 6px;
}

.search-suggestions .suggestion-item {
    padding: 9px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
}

.search-suggestions .suggestion-item:hover {
    background: #e6f7ff;
    color: #293047;
}

.search-suggestions .suggestion-item .name {
    font-weight: bold;
    font-size: 13px;
    color: #333;
}

.search-suggestions .suggestion-item .address {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

/* Toast��ʾ */
.info-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 13px;
    z-index: 10000;
    pointer-events: none;
    display: none;
    white-space: nowrap;
}

/* �״���ʾ���� */
.first-tip-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: none;
}

.first-tip-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 16px;
    padding: 40px 32px 28px;
    text-align: center;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
    max-width: 560px;
    width: 90%;
}

.first-tip-dialog h2 {
    color: #333;
    margin-bottom: 28px;
    font-size: 20px;
}

.first-tip-dialog .step {
    display: flex;
    align-items: flex-start;
    margin: 14px 0;
    text-align: left;
}

.first-tip-dialog .step-num {
    width: 28px;
    height: 28px;
    background: #293047;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    margin-right: 12px;
    flex-shrink: 0;
    margin-top: 2px;
}

.first-tip-dialog .step-text {
    font-size: 13px;
    color: #555;
    line-height: 1.7;
    flex: 1;
}

.first-tip-dialog .tip-img {
    margin: 16px auto 0;
    display: block;
    max-width: 200px;
    border-radius: 8px;
}

.first-tip-dialog .tip-check {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
}

.first-tip-dialog .tip-check input {
    margin: 0;
    cursor: pointer;
}

.first-tip-dialog button {
    padding: 10px 30px;
    background: #293047;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    margin-top: 14px;
}

.first-tip-dialog button:hover {
    background: #3d4566;
}

.first-tip-dialog .tip-remain {
    color: #293047;
    font-size: 13px;
    margin-top: 6px;
}

/* ========== ����ѡ������ʽ ========== */
.region-selector {
    display: flex;
    align-items: center;
    gap: 4px;
}

.region-selector select {
    padding: 8px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 20px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
    outline: none;
    color: #333;
}

.region-selector select:focus {
    border-color: #293047;
}

.region-selector select:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.region-selector .clear-region {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #999;
    padding: 4px 6px;
    border-radius: 20px;
}

.region-selector .clear-region:hover {
    background: #f0f0f0;
    color: #333;
}

/* ========== �ƶ������� ========== */
@media (max-width: 768px) {
    .nav-height,
    #header {
        display: none !important;
    }

    .main-wrapper {
        height: 100vh;
        margin-top: 0;
    }

    /* �ײ������� - �ƶ��˸���� */
    .bottom-toolbar {
        bottom: 12px;
        padding: 4px 8px;
        gap: 4px;
        border-radius: 18px;
    }

    /* ����������ť - �ƶ��� */
    .history-btn button {
        padding: 6px 10px;
        font-size: 11px;
        border-radius: 18px;
    }

    /* ����ѡ���� - �ƶ��� */
    .region-selector {
        gap: 2px;
    }
    
    .region-selector select {
        padding: 6px 6px;
        font-size: 11px;
        border-radius: 16px;
        min-width: 60px;
        max-width: 85px;
    }

    /* �����ť���ƶ������أ���ɾ��HTML�����Է���һ�� */
    .region-selector .clear-region {
        display: none;
    }

    /* ��ַ����� - �ƶ��˱�������Ҳ���� */
    .search-container {
        flex: 1;
    }
    
    .search-container input {
        width: 100%;
        min-width: 130px;
        padding: 6px 10px;
        font-size: 11px;
        border-radius: 16px;
    }

    /* ������ʷ���� */
    .search-history {
        min-width: 180px;
    }

    /* ����б� */
    .result-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    /* �����幤���� */
    .panel-toolbar {
        padding: 8px 10px;
    }

    .panel-toolbar .toolbar-title {
        font-size: 13px;
    }

    .panel-toolbar .toolbar-btns button {
        padding: 4px 8px;
        font-size: 11px;
    }

    /* ȫ���鿴�� */
    #panelViewerToolbar .viewer-title-text {
        display: block;
        font-size: 11px;
        color: #888;
        margin-top: 4px;
        text-align: center;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #panelViewerToolbar .toolbar-btns-viewer {
        gap: 8px;
    }

    #panelViewerToolbar .toolbar-btns-viewer button {
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* ========== 扩展工具栏 ========== */
.tb-label { font-weight:bold; color:#888; font-size:11px; margin:0 2px; }
.extras-num { width:50px; padding:2px 4px; border:1px solid #d9d9d9; border-radius:3px; font-size:11px; text-align:center; }
.extras-num:focus { border-color:#293047; outline:none; }