/* 通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background: #f5f5f5;
    overflow: hidden;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background: #1890ff;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
    /* 去除点击时的蓝色背景闪烁 */
    -webkit-tap-highlight-color: transparent;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.btn:hover {
    background: #40a9ff;
}

.btn:active {
    background: #096dd9;
    /* 确保active状态也没有outline */
    outline: none;
}

.btn-primary {
    background: #1890ff;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* 模态框 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 20000;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 16px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.modal-close {
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 16px;
    border-top: 1px solid #e8e8e8;
    display: flex;
    justify-content: center;
    gap: 8px;
}

/* Alert 弹窗样式（与 modal 统一） */
.alert-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 20000;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-modal-content {
    background: #fff;
    border-radius: 8px;
    width: 80%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.alert-modal-body {
    padding: 24px;
    text-align: center;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.alert-modal-footer {
    padding: 12px 16px;
    border-top: 1px solid #e8e8e8;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.alert-modal-footer .btn {
    min-width: 80px;
}


.back-home-btn:hover {
    background: #f0f0f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.back-home-btn svg {
    color: #1890ff;
}

/* 查询面板共用样式 */
.query-panel {
    position: fixed;
    top: 10px;
    left: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 16px;
    box-sizing: border-box;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    pointer-events: auto;
    display: flex;
    gap: 10px;
    align-items: center;
}

.query-input,
.query-select {
    flex: 1;
    min-width: 120px;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    color: #333;
    /* 去除点击时的蓝色背景闪烁 */
    -webkit-tap-highlight-color: transparent;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

.query-input:focus,
.query-select:focus {
    outline: none;
    border-color: #1890ff;
}

.query-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.query-panel .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* 返回首页按钮 */
.back-home-btn {
    position: fixed;
    right: 15px;
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    pointer-events: auto;
    transition: all 0.3s;
    /* 去除点击时的蓝色背景闪烁 */
    -webkit-tap-highlight-color: transparent;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
.empty-tip{
    text-align: center;
}