body {
    background-color: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.search-container {
    background: white;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 20px;
    padding: 0 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 0;
    font-size: 16px;
    background: transparent;
}

.clear-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #999;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    display: none;
}

.clear-btn:hover {
    color: #666;
}

.history-section {
    background: white;
    margin-top: 8px;
    border-radius: 8px;
    overflow: hidden;
}

.history-header {
    padding: 12px 16px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.poi-item {
    border: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 16px;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.poi-content {
    flex: 1;
    min-width: 0;
}

.poi-item:last-child {
    border-bottom: none;
}

.poi-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.poi-address {
    font-size: 13px;
    color: #999;
    line-height: 1.4;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    padding: 0;
    flex-shrink: 0;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.action-btn-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 500;
    padding: 0;
    flex-shrink: 0;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.route-btn {
    color: #4A90E2;
    border-color: #4A90E2;
}

.route-btn:hover {
    background-color: #4A90E2;
    color: white;
}

.navi-btn {
    color: #52C41A;
    border-color: #52C41A;
}

.navi-btn:hover {
    background-color: #52C41A;
    color: white;
}

.suggestions-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-top: 4px;
    overflow: hidden;
}

.suggestion-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

.suggestion-item:last-child {
    border-bottom: none;
}

/* 顶部导航栏样式 */
.navbar-custom {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
}

/* 容器样式 */
.main-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 0;
}

/* 未授权页面样式 */
.unauthorized-container {
    margin-top: 2rem;
}

.device-id-code {
    background-color: #f8f9fa;
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-family: monospace;
}